-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
31 changed files
with
157 additions
and
257 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,4 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": ["transform-runtime", "add-module-exports"] | ||
} |
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,23 +1,25 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"node": 1, | ||
"browser": 1, | ||
"es6": 1 | ||
"es6": true, | ||
"browser": true, | ||
"node": true | ||
}, | ||
"globals": { | ||
"angular": 1 | ||
"__DEV__": true, | ||
"__TEST__": true, | ||
"__RELEASE__": true, | ||
"__BASE_PATH__": true | ||
}, | ||
"rules": { | ||
"quotes": [2, "single", "avoid-escape"], | ||
"eqeqeq": 0, | ||
"no-use-before-define": 0, | ||
"no-shadow": 0, | ||
"brace-style": [2, "stroustrup"], | ||
"eol-last": 0, | ||
"no-nested-ternary": 1, | ||
"padded-blocks": [1, "never"], | ||
"space-before-function-paren": [1, "never"], | ||
"space-before-blocks": [1, "always"] | ||
"indent": [ 2, 2 ], | ||
"quotes": [ 2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }], | ||
"linebreak-style": [ 2, "unix" ], | ||
"semi": [ 2, "always" ] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
const CellularFormContainerComponent = { | ||
template: `<sanji-cellular-form data="vm.data" on-submit="vm.onSave(data)"></sanji-cellular-form>`, | ||
controller: 'CellularFormContainerController', | ||
controllerAs: 'vm' | ||
}; | ||
export default CellularFormContainerComponent; |
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
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,10 @@ | ||
const CellularFormComponent = { | ||
bindings: { | ||
tabs: '<data', | ||
submitCallback: '&onSubmit' | ||
}, | ||
templateUrl: 'sanji-cellular-form.tpl.html', | ||
controller: 'CellularFormController', | ||
controllerAs: 'vm' | ||
}; | ||
export default CellularFormComponent; |
File renamed without changes.
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import angular from 'angular'; | ||
import sjCore from 'sanji-core-ui'; | ||
|
||
import './component.tpl.html'; | ||
import CellularFormContainerController from './component-container.controller'; | ||
import CellularFormController from './component.controller'; | ||
import CellularFormContainerDirective from './component-container.directive'; | ||
import CellularFormDirective from './component.directive'; | ||
import './form.tpl.html'; | ||
import CellularFormContainerController from './container.controller'; | ||
import CellularFormController from './form.controller'; | ||
import CellularFormContainerComponent from './container.component'; | ||
import CellularFormComponent from './form.component'; | ||
|
||
let app = angular.module('sanji.cellular.form', [sjCore]); | ||
app.controller('CellularFormContainerController', CellularFormContainerController); | ||
app.controller('CellularFormController', CellularFormController); | ||
app.directive('sanjiCellularFormContainer', CellularFormContainerDirective.directiveFactory); | ||
app.directive('sanjiCellularForm', CellularFormDirective.directiveFactory); | ||
export default app = app.name | ||
app.component('sanjiCellularFormContainer', CellularFormContainerComponent); | ||
app.component('sanjiCellularForm', CellularFormComponent); | ||
export default app = app.name; |
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
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,10 @@ | ||
// reference from http://codepen.io/shorepound/details/GpXVwW/ | ||
const CellularSignalComponent = { | ||
bindings: { | ||
signal: '<' | ||
}, | ||
templateUrl: 'sanji-cellular-signal.tpl.html', | ||
controller: 'CellularSignalController', | ||
controllerAs: 'vm' | ||
}; | ||
export default CellularSignalComponent; |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
const CellularInfoContainerComponent = { | ||
template: `<sanji-cellular-info data="vm.data"></sanji-cellular-info>`, | ||
controller: 'CellularInfoContainerController', | ||
controllerAs: 'vm' | ||
}; | ||
export default CellularInfoContainerComponent; |
Oops, something went wrong.