-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1330 - Create ClayDataProvider
- Loading branch information
1 parent
83f50af
commit f577fc9
Showing
10 changed files
with
490 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Software License Agreement (BSD License) | ||
|
||
Copyright (c) 2014, Liferay Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use of this software in source and binary forms, with or without modification, are | ||
permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above | ||
copyright notice, this list of conditions and the | ||
following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the | ||
following disclaimer in the documentation and/or other | ||
materials provided with the distribution. | ||
|
||
* The name of Liferay Inc. may not be used to endorse or promote products | ||
derived from this software without specific prior | ||
written permission of Liferay Inc. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED | ||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | ||
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# clay-data-provider | ||
|
||
Clay DataProvider | ||
|
||
## Setup | ||
|
||
1. Install NodeJS >= v0.12.0 and NPM >= v3.0.0, if you don't have it yet. You | ||
can find it [here](https://nodejs.org). | ||
|
||
2. Install local dependencies: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
3. Build the code: | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
4. Open the demo at demos/index.html on your browser. | ||
|
||
## Contribute | ||
|
||
We'd love to get contributions from you! Please, check our [Contributing Guidelines](CONTRIBUTING.md) to see how you can help us improve. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Demo: ClayDataProvider</title> | ||
|
||
<link rel="stylesheet" href="../../../node_modules/clay-css/lib/css/atlas.css"> | ||
|
||
<style> | ||
body { | ||
background-color: #FFF; | ||
} | ||
|
||
.row { | ||
margin-bottom: 20px; | ||
} | ||
</style> | ||
|
||
<script src="../build/globals/clay-data-provider.js"></script> | ||
</head> | ||
<body class="container" role="main"> | ||
<h1 class="page-title"> | ||
ClayDataProvider | ||
</h1> | ||
|
||
<div id="container"></div> | ||
|
||
<script type="text/javascript"> | ||
|
||
new metal.ClayDataProvider({}, '#container'); | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Demo: ClayDataProvider</title> | ||
|
||
<link rel="stylesheet" href="../../../node_modules/clay-css/lib/css/atlas.css"> | ||
|
||
<style> | ||
body { | ||
background-color: #FFF; | ||
} | ||
|
||
.row { | ||
margin-bottom: 20px; | ||
} | ||
</style> | ||
|
||
<script src="../build/globals/clay-data-provider.js"></script> | ||
</head> | ||
<body class="container" role="main"> | ||
<h1 class="page-title"> | ||
ClayDataProvider | ||
</h1> | ||
|
||
<div id="container"></div> | ||
|
||
<script type="text/javascript"> | ||
|
||
new metal.ClayDataProvider({}, '#container'); | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "clay-data-provider", | ||
"version": "2.3.4", | ||
"description": "Metal ClayDataProvider component", | ||
"license": "BSD", | ||
"repository": "https://github.com/liferay/clay/tree/master/packages/clay-data-provider", | ||
"engines": { | ||
"node": ">=0.12.0", | ||
"npm": ">=3.0.0" | ||
}, | ||
"main": "lib/ClayDataProvider.js", | ||
"esnext:main": "src/ClayDataProvider.js", | ||
"jsnext:main": "src/ClayDataProvider.js", | ||
"files": [ | ||
"lib", | ||
"src", | ||
"test" | ||
], | ||
"scripts": { | ||
"build": "npm run soy && webpack", | ||
"compile": "babel -d lib/ src/ -s --ignore src/__tests__", | ||
"prepublish": "npm run soy && npm run compile", | ||
"soy": "metalsoy" | ||
}, | ||
"keywords": [ | ||
"clay", | ||
"metal" | ||
], | ||
"dependencies": { | ||
"clay-component": "^2.3.4", | ||
"metal": "^2.16.0", | ||
"metal-component": "^2.16.0", | ||
"metal-soy": "^2.16.0", | ||
"metal-state": "^2.16.0", | ||
"metal-web-component": "^2.16.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.24.1", | ||
"babel-core": "^6.25.0", | ||
"babel-loader": "^7.0.0", | ||
"babel-plugin-transform-node-env-inline": "^0.1.1", | ||
"babel-preset-env": "^1.6.0", | ||
"browserslist-config-clay": "^2.1.12", | ||
"clay-css": "^2.1.12", | ||
"metal-dom": "^2.13.2", | ||
"metal-tools-soy": "^6.0.0", | ||
"webpack": "^3.0.0", | ||
"webpack-config-clay": "^2.1.12" | ||
}, | ||
"browserslist": [ | ||
"extends browserslist-config-clay" | ||
] | ||
} |
Oops, something went wrong.