-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vamsee
committed
Feb 19, 2019
1 parent
8ec45f7
commit f7a4653
Showing
62 changed files
with
1,465 additions
and
1,613 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 |
---|---|---|
|
@@ -9,4 +9,6 @@ jspm_packages | |
bower_components | ||
|
||
# IDE | ||
.vscode | ||
.vscode | ||
|
||
package-lock.json |
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
File renamed without changes.
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
File renamed without changes
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,19 @@ | ||
{ | ||
"name": "SampleModel", | ||
"base": "BaseEntity", | ||
"idInjection": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"unique" : true | ||
}, | ||
"age": { | ||
"type": "number" | ||
} | ||
}, | ||
"validations": [], | ||
"relations": {}, | ||
"acls": [], | ||
"methods": {} | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
app/templates/bower.json → app/templates/1.0/settings/bower.json
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "<%=appName%>", | ||
"name": "App", | ||
"private": true, | ||
"dependencies": { | ||
"polymer": "^1.9.1", | ||
|
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,27 @@ | ||
const utils = require('../../lib/utils.js'); | ||
const log = require('oe-logger')('Skeleton-Mixin'); | ||
|
||
// var ModelDefinition; | ||
log.info('Skeleton Mixin Loaded.'); | ||
|
||
module.exports = Model => { | ||
// ModelDefinition = Model; | ||
if ((Model.settings.overridingMixins && !Model.settings.overridingMixins.SkeletonMixin) || !Model.definition.settings.mixins.SkeletonMixin) { | ||
Model.evRemoveObserver('access', beforeAccess); | ||
} else { | ||
Model.evObserve('access', beforeAccess); | ||
} | ||
}; | ||
|
||
function beforeAccess(ctx, next) { | ||
const modelSettings = ctx.Model.definition.settings; | ||
if (modelSettings.mixins.SkeletonMixin === false) { | ||
return next(); | ||
} | ||
var x = utils.addNumbers(3, 4); | ||
if ( x !== 7 ) { | ||
return next(new Error('Addition not good')); | ||
} | ||
return next(); | ||
} | ||
|
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,19 @@ | ||
{ | ||
"name": "Skeleton", | ||
"base": "BaseEntity", | ||
"idInjection": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"unique" : true | ||
}, | ||
"age": { | ||
"type": "number" | ||
} | ||
}, | ||
"validations": [], | ||
"relations": {}, | ||
"acls": [], | ||
"methods": {} | ||
} | ||
|
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,11 @@ | ||
/** | ||
* | ||
* ©2018-2019 EdgeVerve Systems Limited (a fully owned Infosys subsidiary), | ||
* Bangalore, India. All Rights Reserved. | ||
* | ||
*/ | ||
|
||
function _addNumbers(a, b) { | ||
return (a + b); | ||
} | ||
module.exports.addNumbers = _addNumbers; |
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,4 @@ | ||
const log = require('oe-logger')('oe-skeleton'); | ||
module.exports = function (app) { | ||
log.info('oe-skeleton is loaded : '); | ||
}; |
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,52 @@ | ||
{ | ||
"name": "<%=appName%>", | ||
"version": "<%=version%>", | ||
"description": "<%=description%>", | ||
"author":"<%=author%>", | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"main": "index.js", | ||
"scripts": { | ||
"pretest": "npm install --no-optional", | ||
"test": "mocha test/test.js", | ||
"lint": "eslint .", | ||
"fix-lint": "eslint --fix .", | ||
"grunt-cover": "grunt test-with-coverage" | ||
}, | ||
"dependencies": { | ||
"async": "^2.5.0", | ||
"oe-logger": "^1.0.0", | ||
"camelcase": "^3.0.0", | ||
"lodash": "4.17.10", | ||
"loopback-connector-mongodb": "^3.9.2", | ||
"oe-cloud": "git+http://evgit/oecloud.io/oe-cloud.git#master" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^7.2.3", | ||
"chai": "^3.4.1", | ||
"chai-datetime": "^1.4.0", | ||
"chai-things": "^0.2.0", | ||
"chalk": "^1.1.1", | ||
"eslint": "^4.10.0", | ||
"grunt": "^0.4.5", | ||
"grunt-banner": "^0.6.0", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-clean": "^0.7.0", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-jsbeautifier": "^0.2.12", | ||
"grunt-mkdir": "^1.0.0", | ||
"grunt-mocha-istanbul": "^5.0.2", | ||
"grunt-mocha-test": "^0.13.2", | ||
"istanbul": "0.4.1", | ||
"mocha": "^3.4.2", | ||
"superagent-defaults": "^0.1.14", | ||
"supertest": "^1.1.0", | ||
"loopback-connector-postgresql": "git+http://evgit/oecloud.io/loopback-connector-postgresql.git#master" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@evgit:oecloud.io/oe-skeleton.git" | ||
}, | ||
"license": "MIT" | ||
} |
Oops, something went wrong.