diff --git a/app/component/component.service.js b/app/component/component.service.js index 663fb5c..fde0183 100644 --- a/app/component/component.service.js +++ b/app/component/component.service.js @@ -46,7 +46,7 @@ class CellularService { get() { let toPath = this.pathToRegexp.compile(config.get.url); - return this.rest.get(toPath(), (__DEV__) ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined) + return this.rest.get(toPath(), (__DEV__) ? {basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com'} : undefined) .then(res => { this.data = this._transform(res.data); }) @@ -59,7 +59,7 @@ class CellularService { update(data) { let toPath = this.pathToRegexp.compile(config.put.url); let path = (undefined !== data.content.id) ? toPath({id: data.content.id}) : toPath(); - return this.rest.put(path, data.content, data.formOptions.files, (__DEV__) ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined) + return this.rest.put(path, data.content, data.formOptions.files, (__DEV__) ? {basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com' } : undefined) .catch(err => { this.exception.catcher('[CellularService] Update data error.')(err); return this.$q.reject(); diff --git a/dist/sanji-cellular-ui.js b/dist/sanji-cellular-ui.js index efeeca6..70f3c12 100644 --- a/dist/sanji-cellular-ui.js +++ b/dist/sanji-cellular-ui.js @@ -577,7 +577,7 @@ return /******/ (function(modules) { // webpackBootstrap var _this2 = this; var toPath = this.pathToRegexp.compile(config.get.url); - return this.rest.get(toPath(), false ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined).then(function (res) { + return this.rest.get(toPath(), false ? { basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com' } : undefined).then(function (res) { _this2.data = _this2._transform(res.data); })['catch'](function (err) { _this2.exception.catcher('[CellularService] Get data error.')(err); @@ -591,7 +591,7 @@ return /******/ (function(modules) { // webpackBootstrap var toPath = this.pathToRegexp.compile(config.put.url); var path = undefined !== data.content.id ? toPath({ id: data.content.id }) : toPath(); - return this.rest.put(path, data.content, data.formOptions.files, false ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined)['catch'](function (err) { + return this.rest.put(path, data.content, data.formOptions.files, false ? { basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com' } : undefined)['catch'](function (err) { _this3.exception.catcher('[CellularService] Update data error.')(err); return _this3.$q.reject(); }); diff --git a/dist/sanji-cellular-ui.js.map b/dist/sanji-cellular-ui.js.map index 7b23bd2..9beaf65 100644 --- a/dist/sanji-cellular-ui.js.map +++ b/dist/sanji-cellular-ui.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap a2dec23488950266d883","webpack:///./component/index.js","webpack:///./component/index.js?3f52","webpack:///./component/component.style.scss","webpack:///./component/component.resource.json","webpack:///./component/lang/en.json","webpack:///./component/lang/zh-tw.json","webpack:///./component/component-container.controller.js","webpack:///./component/component-container.controller.js?f98c","webpack:///./component/component-container.directive.js","webpack:///./component/component-container.directive.js?2562","webpack:///./component/component-window.directive.js","webpack:///./component/component-window.directive.js?f7ed","webpack:///./component/component.controller.js","webpack:///./component/component.controller.js?da70","webpack:///./component/component.directive.js","webpack:///./component/component.directive.js?f4c9","webpack:///./component/component.i18n.js","webpack:///./component/component.i18n.js?8013","webpack:///./component/component.service.js","webpack:///./component/component.service.js?49c1","webpack:///./component/component.tpl.html","webpack:///external \"sanji-core-ui\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;ACtCA;;AAEA,QAAO,eAAe,SAAS,cAAc;GAC3C,OAAO;;;AAGT,UAAS,uBAAuB,KAAK,EAAE,OAAO,OAAO,IAAI,aAAa,MAAM,EAAE,WAAW;;AAEzF,KAAI,eAAe,oBCRA;;ADUnB,KAAI,gBAAgB,uB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F,OAAO,KAAK,EAAE,IAAI,MAAM,UAAC,MAAM,OAAU;aACvC,OAAO;eACL,OAAO,CAAC,OAAO,IAAI,eAAe,SAAS;eAC3C,SAAS;eACT,aAAa;eACb,QAAQ,OAAO;;;;;MD4BtB;KACD,KAAK;KACL,OCxBC,eAAG;ODyBF,IAAI,SAAS;;OCxBf,IAAI,SAAS,KAAK,aAAa,QAAQ,OAAO,IAAI;OAClD,OAAO,KAAK,KAAK,IAAI,UAAU,SAAY,sDAAsD,WAChG,KAAK,eAAO;SACX,OAAK,OAAO,OAAK,WAAW,IAAI;UAChC,SACK,eAAO;SACZ,OAAK,UAAU,QAAQ,qCAAqC;SAC5D,OAAO,OAAK,GAAG;;;MD2BhB;KACD,KAAK;KACL,OCzBI,gBAAC,MAAM;OD0BT,IAAI,SAAS;;OCzBf,IAAI,SAAS,KAAK,aAAa,QAAQ,OAAO,IAAI;OAClD,IAAI,OAAO,cAAe,KAAK,QAAQ,KAAM,OAAO,EAAC,IAAI,KAAK,QAAQ,QAAO;OAC7E,OAAO,KAAK,KAAK,IAAI,MAAM,KAAK,SAAS,KAAK,YAAY,OAAO,SAAY,sDAAsD,WAAU,SACtI,eAAO;SACZ,OAAK,UAAU,QAAQ,wCAAwC;SAC/D,OAAO,OAAK,GAAG;;;;;GD+BnB,OC7FI;;;AAkEN,iBAAgB,UAAU;AD+B1B,SAAQ,aC9BO;AD+Bf,QAAO,UAAU,QAAQ,W;;;;;;AEpGzB;AACA,MAAK;AACL,UAAS;AACT,8IAA6I,aAAa;AAC1J,4CAA2C,yCAAyC;AACpF,mB;;;;;;ACLA,iD","file":"sanji-cellular-ui.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"sanji-core-ui\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"sanji-core-ui\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"sanji-core-ui\")) : factory(root[\"sanji-core-ui\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function(__WEBPACK_EXTERNAL_MODULE_13__) {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap a2dec23488950266d883\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _sanjiCoreUi = require('sanji-core-ui');\n\nvar _sanjiCoreUi2 = _interopRequireDefault(_sanjiCoreUi);\n\nrequire('./component.tpl.html');\n\nrequire('./component.style.scss');\n\nvar _componentI18n = require('./component.i18n');\n\nvar _componentI18n2 = _interopRequireDefault(_componentI18n);\n\nvar _componentService = require('./component.service');\n\nvar _componentService2 = _interopRequireDefault(_componentService);\n\nvar _componentContainerController = require('./component-container.controller');\n\nvar _componentContainerController2 = _interopRequireDefault(_componentContainerController);\n\nvar _componentController = require('./component.controller');\n\nvar _componentController2 = _interopRequireDefault(_componentController);\n\nvar _componentContainerDirective = require('./component-container.directive');\n\nvar _componentContainerDirective2 = _interopRequireDefault(_componentContainerDirective);\n\nvar _componentDirective = require('./component.directive');\n\nvar _componentDirective2 = _interopRequireDefault(_componentDirective);\n\nvar _componentWindowDirective = require('./component-window.directive');\n\nvar _componentWindowDirective2 = _interopRequireDefault(_componentWindowDirective);\n\nvar app = angular.module('sanji.cellular', [_sanjiCoreUi2['default']]);\napp.config(_componentI18n2['default']);\napp.service('cellularService', _componentService2['default']);\napp.controller('CellularContainerController', _componentContainerController2['default']);\napp.controller('CellularController', _componentController2['default']);\napp.directive('sanjiCellularContainer', _componentContainerDirective2['default'].directiveFactory);\napp.directive('sanjiCellular', _componentDirective2['default'].directiveFactory);\napp.directive('sanjiCellularWindow', _componentWindowDirective2['default'].directiveFactory);\nexports['default'] = app = app.name;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/index.js\n **/","import sjCore from 'sanji-core-ui';\n\nimport './component.tpl.html';\nimport './component.style.scss';\nimport i18nConfig from './component.i18n';\nimport CellularService from './component.service';\nimport CellularContainerController from './component-container.controller';\nimport CellularController from './component.controller';\nimport CellularContainerDirective from './component-container.directive';\nimport CellularDirective from './component.directive';\nimport CellularWindowDirective from './component-window.directive';\n\nlet app = angular.module('sanji.cellular', [sjCore]);\napp.config(i18nConfig);\napp.service('cellularService', CellularService);\napp.controller('CellularContainerController', CellularContainerController);\napp.controller('CellularController', CellularController);\napp.directive('sanjiCellularContainer', CellularContainerDirective.directiveFactory);\napp.directive('sanjiCellular', CellularDirective.directiveFactory);\napp.directive('sanjiCellularWindow', CellularWindowDirective.directiveFactory);\nexport default app = app.name\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/index.js\n **/","// removed by extract-text-webpack-plugin\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/component.style.scss\n ** module id = 1\n ** module chunks = 0\n **/","module.exports = {\n\t\"get\": {\n\t\t\"url\": \"/network/cellulars\",\n\t\t\"type\": \"collection\",\n\t\t\"titlePrefix\": \"cellular\"\n\t},\n\t\"put\": {\n\t\t\"url\": \"/network/cellulars/:id\",\n\t\t\"type\": \"model\"\n\t},\n\t\"fields\": [\n\t\t{\n\t\t\t\"key\": \"enable\",\n\t\t\t\"type\": \"switch\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_ENABLE\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"apn\",\n\t\t\t\"type\": \"input\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_APN\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"pinCode\",\n\t\t\t\"type\": \"input\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_PINCODE\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"keepalive.enable\",\n\t\t\t\"type\": \"switch\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_ENABLE_KEEPALIVE\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"keepalive.targetHost\",\n\t\t\t\"type\": \"input\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_TARGET_HOST\"\n\t\t\t},\n\t\t\t\"hideExpression\": \"!model.keepalive.enable\"\n\t\t},\n\t\t{\n\t\t\t\"key\": \"keepalive.intervalSec\",\n\t\t\t\"type\": \"number\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_PING_INTERVAL\",\n\t\t\t\t\"min\": 0,\n\t\t\t\t\"max\": null\n\t\t\t},\n\t\t\t\"hideExpression\": \"!model.keepalive.enable\"\n\t\t}\n\t]\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/component.resource.json\n ** module id = 2\n ** module chunks = 0\n **/","module.exports = {\n\t\"CELLULAR\": \"Cellular\",\n\t\"CELLULAR_FORM_SETTING\": \"Setting\",\n\t\"CELLULAR_FORM_LABEL_ENABLE\": \"Enable\",\n\t\"CELLULAR_FORM_LABEL_APN\": \"APN\",\n\t\"CELLULAR_FORM_LABEL_PINCODE\": \"Pin Code\",\n\t\"CELLULAR_FORM_LABEL_ENABLE_KEEPALIVE\": \"Enable Keep-alive\",\n\t\"CELLULAR_FORM_LABEL_TARGET_HOST\": \"Target Host\",\n\t\"CELLULAR_FORM_LABEL_PING_INTERVAL\": \"Ping Interval\",\n\t\"CELLULAR_FORM_SAVE\": \"Save\"\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/lang/en.json\n ** module id = 3\n ** module chunks = 0\n **/","module.exports = {\n\t\"CELLULAR\": \"Cellular\",\n\t\"CELLULAR_FORM_SETTING\": \"設定\",\n\t\"CELLULAR_FORM_LABEL_ENABLE\": \"啟用\",\n\t\"CELLULAR_FORM_LABEL_APN\": \"APN\",\n\t\"CELLULAR_FORM_LABEL_PINCODE\": \"Pin 碼\",\n\t\"CELLULAR_FORM_LABEL_ENABLE_KEEPALIVE\": \"啟用保持連線\",\n\t\"CELLULAR_FORM_LABEL_TARGET_HOST\": \"目標主機\",\n\t\"CELLULAR_FORM_LABEL_PING_INTERVAL\": \"Ping 間隔\",\n\t\"CELLULAR_FORM_SAVE\": \"儲存\"\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/lang/zh-tw.json\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$scope', 'sanjiWindowService', 'cellularService'];\nvar WINDOW_ID = 'sanji-cellular-ui';\n\nvar CellularContainerController = (function () {\n function CellularContainerController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, CellularContainerController);\n\n CellularContainerController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n\n this.sanjiWindowMgr = this.sanjiWindowService.get(WINDOW_ID);\n this.data = this.cellularService.data;\n\n this.activate();\n\n this.$scope.$on('sj:window:refresh', this.onRefresh.bind(this));\n }\n\n _createClass(CellularContainerController, [{\n key: 'activate',\n value: function activate() {\n var _this2 = this;\n\n this.sanjiWindowMgr.promise = this.cellularService.get().then(function () {\n _this2.data = _this2.cellularService.data;\n });\n }\n }, {\n key: 'onRefresh',\n value: function onRefresh(event, args) {\n if (args.id === WINDOW_ID) {\n this.activate();\n }\n }\n }, {\n key: 'onSave',\n value: function onSave(data) {\n this.sanjiWindowMgr.promise = this.cellularService.update(data);\n }\n }]);\n\n return CellularContainerController;\n})();\n\nCellularContainerController.$inject = $inject;\nexports['default'] = CellularContainerController;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component-container.controller.js\n **/","const $inject = ['$scope', 'sanjiWindowService', 'cellularService'];\nconst WINDOW_ID = 'sanji-cellular-ui';\nclass CellularContainerController {\n constructor(...injects) {\n CellularContainerController.$inject.forEach((item, index) => this[item] = injects[index]);\n\n this.sanjiWindowMgr = this.sanjiWindowService.get(WINDOW_ID);\n this.data = this.cellularService.data;\n\n this.activate();\n\n this.$scope.$on('sj:window:refresh', this.onRefresh.bind(this))\n }\n\n activate() {\n this.sanjiWindowMgr.promise = this.cellularService.get().then(() => {\n this.data = this.cellularService.data;\n });\n }\n\n onRefresh(event, args) {\n if (args.id === WINDOW_ID) {\n this.activate();\n }\n }\n\n onSave(data) {\n this.sanjiWindowMgr.promise = this.cellularService.update(data);\n }\n}\nCellularContainerController.$inject = $inject;\nexport default CellularContainerController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component-container.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar CellularContainerDirective = (function () {\n function CellularContainerDirective(injects) {\n _classCallCheck(this, CellularContainerDirective);\n\n CellularContainerDirective.directiveFactory.$inject.forEach(function (item, index) {\n CellularContainerDirective[item] = injects[index];\n injectMap.set(CellularContainerDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.controller = 'CellularContainerController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = true;\n this.template = '';\n }\n\n _createClass(CellularContainerDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n CellularContainerDirective.instance = new CellularContainerDirective(injects);\n return CellularContainerDirective.instance;\n }\n }]);\n\n return CellularContainerDirective;\n})();\n\nCellularContainerDirective.directiveFactory.$inject = $inject;\nexports['default'] = CellularContainerDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component-container.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass CellularContainerDirective {\n constructor(injects) {\n CellularContainerDirective.directiveFactory.$inject.forEach((item, index) => {\n CellularContainerDirective[item] = injects[index];\n injectMap.set(CellularContainerDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.controller = 'CellularContainerController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = true;\n this.template = ``;\n }\n\n static directiveFactory(...injects) {\n CellularContainerDirective.instance = new CellularContainerDirective(injects);\n return CellularContainerDirective.instance;\n }\n}\nCellularContainerDirective.directiveFactory.$inject = $inject;\nexport default CellularContainerDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component-container.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar CellularWindowDirective = (function () {\n function CellularWindowDirective(injects) {\n _classCallCheck(this, CellularWindowDirective);\n\n CellularWindowDirective.directiveFactory.$inject.forEach(function (item, index) {\n CellularWindowDirective[item] = injects[index];\n injectMap.set(CellularWindowDirective[item], injects[index]);\n });\n this.restrict = 'E';\n this.template = '\\n \\n \\n \\n ';\n }\n\n _createClass(CellularWindowDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n CellularWindowDirective.instance = new CellularWindowDirective(injects);\n return CellularWindowDirective.instance;\n }\n }]);\n\n return CellularWindowDirective;\n})();\n\nCellularWindowDirective.directiveFactory.$inject = $inject;\nexports['default'] = CellularWindowDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component-window.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass CellularWindowDirective {\n constructor(injects) {\n CellularWindowDirective.directiveFactory.$inject.forEach((item, index) => {\n CellularWindowDirective[item] = injects[index];\n injectMap.set(CellularWindowDirective[item], injects[index]);\n });\n this.restrict = 'E';\n this.template = `\n \n \n \n `;\n }\n\n static directiveFactory(...injects) {\n CellularWindowDirective.instance = new CellularWindowDirective(injects);\n return CellularWindowDirective.instance;\n }\n}\nCellularWindowDirective.directiveFactory.$inject = $inject;\nexport default CellularWindowDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component-window.directive.js\n **/","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar $inject = [];\n\nvar CellularController = (function () {\n function CellularController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, CellularController);\n\n CellularController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n }\n\n _createClass(CellularController, [{\n key: \"save\",\n value: function save(data) {\n this.submitCallback({ data: data });\n }\n }]);\n\n return CellularController;\n})();\n\nCellularController.$inject = $inject;\nexports[\"default\"] = CellularController;\nmodule.exports = exports[\"default\"];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.controller.js\n **/","const $inject = [];\nclass CellularController {\n constructor(...injects) {\n CellularController.$inject.forEach((item, index) => this[item] = injects[index]);\n }\n\n save(data) {\n this.submitCallback({data: data});\n }\n}\nCellularController.$inject = $inject;\nexport default CellularController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar CellularDirective = (function () {\n function CellularDirective(injects) {\n _classCallCheck(this, CellularDirective);\n\n CellularDirective.directiveFactory.$inject.forEach(function (item, index) {\n CellularDirective[item] = injects[index];\n injectMap.set(CellularDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-cellular-edit.tpl.html';\n this.restrict = 'EA';\n this.controller = 'CellularController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = {\n\n tabs: '=data',\n\n submitCallback: '&onSubmit'\n };\n }\n\n _createClass(CellularDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n CellularDirective.instance = new CellularDirective(injects);\n return CellularDirective.instance;\n }\n }]);\n\n return CellularDirective;\n})();\n\nCellularDirective.directiveFactory.$inject = $inject;\nexports['default'] = CellularDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass CellularDirective {\n constructor(injects) {\n CellularDirective.directiveFactory.$inject.forEach((item, index) => {\n CellularDirective[item] = injects[index];\n injectMap.set(CellularDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-cellular-edit.tpl.html'\n this.restrict = 'EA';\n this.controller = 'CellularController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = {\n \n tabs: '=data',\n \n submitCallback: '&onSubmit'\n };\n }\n\n static directiveFactory(...injects) {\n CellularDirective.instance = new CellularDirective(injects);\n return CellularDirective.instance;\n }\n}\nCellularDirective.directiveFactory.$inject = $inject;\nexport default CellularDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nexports['default'] = function ($translateProvider) {\n $translateProvider.translations('en', require('./lang/en.json'));\n $translateProvider.translations('zh-tw', require('./lang/zh-tw.json'));\n};\n\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.i18n.js\n **/","export default ($translateProvider) => {\n $translateProvider.translations('en', require('./lang/en.json'));\n $translateProvider.translations('zh-tw', require('./lang/zh-tw.json'));\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.i18n.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$q', 'rest', 'exception', '_', 'pathToRegexp'];\nvar config = require('./component.resource.json');\n\nvar CellularService = (function () {\n function CellularService() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, CellularService);\n\n CellularService.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n switch (config.get.type) {\n case 'collection':\n this.data = [];\n break;\n case 'model':\n this.data = {};\n break;\n default:\n this.data = [];\n }\n }\n\n _createClass(CellularService, [{\n key: '_transform',\n value: function _transform(data) {\n switch (config.get.type) {\n case 'collection':\n return this._.map(data, function (item, index) {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n case 'model':\n return {\n content: data,\n formOptions: {},\n fields: config.fields\n };\n default:\n return this._.map(data, function (item, index) {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n }\n }\n }, {\n key: 'get',\n value: function get() {\n var _this2 = this;\n\n var toPath = this.pathToRegexp.compile(config.get.url);\n return this.rest.get(toPath(), __DEV__ ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined).then(function (res) {\n _this2.data = _this2._transform(res.data);\n })['catch'](function (err) {\n _this2.exception.catcher('[CellularService] Get data error.')(err);\n return _this2.$q.reject();\n });\n }\n }, {\n key: 'update',\n value: function update(data) {\n var _this3 = this;\n\n var toPath = this.pathToRegexp.compile(config.put.url);\n var path = undefined !== data.content.id ? toPath({ id: data.content.id }) : toPath();\n return this.rest.put(path, data.content, data.formOptions.files, __DEV__ ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined)['catch'](function (err) {\n _this3.exception.catcher('[CellularService] Update data error.')(err);\n return _this3.$q.reject();\n });\n }\n }]);\n\n return CellularService;\n})();\n\nCellularService.$inject = $inject;\nexports['default'] = CellularService;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.service.js\n **/","const $inject = ['$q', 'rest', 'exception', '_', 'pathToRegexp'];\nconst config = require('./component.resource.json');\nclass CellularService {\n constructor(...injects) {\n CellularService.$inject.forEach((item, index) => this[item] = injects[index]);\n switch(config.get.type) {\n case 'collection':\n this.data = [];\n break;\n case 'model':\n this.data = {};\n break;\n default:\n this.data = [];\n }\n }\n\n _transform(data) {\n switch(config.get.type) {\n case 'collection':\n return this._.map(data, (item, index) => {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n case 'model':\n return {\n content: data,\n formOptions: {},\n fields: config.fields\n };\n default:\n return this._.map(data, (item, index) => {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n }\n }\n\n get() {\n let toPath = this.pathToRegexp.compile(config.get.url);\n return this.rest.get(toPath(), (__DEV__) ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined)\n .then(res => {\n this.data = this._transform(res.data);\n })\n .catch(err => {\n this.exception.catcher('[CellularService] Get data error.')(err);\n return this.$q.reject();\n });\n }\n\n update(data) {\n let toPath = this.pathToRegexp.compile(config.put.url);\n let path = (undefined !== data.content.id) ? toPath({id: data.content.id}) : toPath();\n return this.rest.put(path, data.content, data.formOptions.files, (__DEV__) ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined)\n .catch(err => {\n this.exception.catcher('[CellularService] Update data error.')(err);\n return this.$q.reject();\n });\n }\n}\nCellularService.$inject = $inject;\nexport default CellularService;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.service.js\n **/","var angular=window.angular,ngModule;\ntry {ngModule=angular.module([\"ng\"])}\ncatch(e){ngModule=angular.module(\"ng\",[])}\nvar v1=\"\\n \\n \\n
\\n \\n \\n
\\n \\n \\n \\n
\\n \\n
\\n
\\n
\\n
\\n
\";\nngModule.run([\"$templateCache\",function(c){c.put(\"sanji-cellular-edit.tpl.html\",v1)}]);\nmodule.exports=v1;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/component.tpl.html\n ** module id = 12\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_13__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"sanji-core-ui\"\n ** module id = 13\n ** module chunks = 0\n **/"],"sourceRoot":""} +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 91aca71898eaf04b3c86","webpack:///./component/index.js","webpack:///./component/index.js?3f52","webpack:///./component/component.style.scss","webpack:///./component/component.resource.json","webpack:///./component/lang/en.json","webpack:///./component/lang/zh-tw.json","webpack:///./component/component-container.controller.js","webpack:///./component/component-container.controller.js?f98c","webpack:///./component/component-container.directive.js","webpack:///./component/component-container.directive.js?2562","webpack:///./component/component-window.directive.js","webpack:///./component/component-window.directive.js?f7ed","webpack:///./component/component.controller.js","webpack:///./component/component.controller.js?da70","webpack:///./component/component.directive.js","webpack:///./component/component.directive.js?f4c9","webpack:///./component/component.i18n.js","webpack:///./component/component.i18n.js?8013","webpack:///./component/component.service.js","webpack:///./component/component.service.js?49c1","webpack:///./component/component.tpl.html","webpack:///external \"sanji-core-ui\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;ACtCA;;AAEA,QAAO,eAAe,SAAS,cAAc;GAC3C,OAAO;;;AAGT,UA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S;eAC3C,SAAS;eACT,aAAa;eACb,QAAQ,OAAO;;;SAEhB,KACA;WACH,OAAO;aACL,SAAS;aACT,aAAa;aACb,QAAQ,OAAO;;SACf;WAEF,OAAO,KAAK,EAAE,IAAI,MAAM,UAAC,MAAM,OAAU;aACvC,OAAO;eACL,OAAO,CAAC,OAAO,IAAI,eAAe,SAAS;eAC3C,SAAS;eACT,aAAa;eACb,QAAQ,OAAO;;;;;MD4BtB;KACD,KAAK;KACL,OCxBC,eAAG;ODyBF,IAAI,SAAS;;OCxBf,IAAI,SAAS,KAAK,aAAa,QAAQ,OAAO,IAAI;OAClD,OAAO,KAAK,KAAK,IAAI,UAAU,SAAY,EAAC,UAAU,wDAAuD,WAC5G,KAAK,eAAO;SACX,OAAK,OAAO,OAAK,WAAW,IAAI;UAChC,SACK,eAAO;SACZ,OAAK,UAAU,QAAQ,qCAAqC;SAC5D,OAAO,OAAK,GAAG;;;MD2BhB;KACD,KAAK;KACL,OCzBI,gBAAC,MAAM;OD0BT,IAAI,SAAS;;OCzBf,IAAI,SAAS,KAAK,aAAa,QAAQ,OAAO,IAAI;OAClD,IAAI,OAAO,cAAe,KAAK,QAAQ,KAAM,OAAO,EAAC,IAAI,KAAK,QAAQ,QAAO;OAC7E,OAAO,KAAK,KAAK,IAAI,MAAM,KAAK,SAAS,KAAK,YAAY,OAAO,SAAY,EAAC,UAAU,wDAAwD,WAAU,SACnJ,eAAO;SACZ,OAAK,UAAU,QAAQ,wCAAwC;SAC/D,OAAO,OAAK,GAAG;;;;;GD+BnB,OC7FI;;;AAkEN,iBAAgB,UAAU;AD+B1B,SAAQ,aC9BO;AD+Bf,QAAO,UAAU,QAAQ,W;;;;;;AEpGzB;AACA,MAAK;AACL,UAAS;AACT,8IAA6I,aAAa;AAC1J,4CAA2C,yCAAyC;AACpF,mB;;;;;;ACLA,iD","file":"sanji-cellular-ui.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"sanji-core-ui\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"sanji-core-ui\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"sanji-core-ui\")) : factory(root[\"sanji-core-ui\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function(__WEBPACK_EXTERNAL_MODULE_13__) {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 91aca71898eaf04b3c86\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _sanjiCoreUi = require('sanji-core-ui');\n\nvar _sanjiCoreUi2 = _interopRequireDefault(_sanjiCoreUi);\n\nrequire('./component.tpl.html');\n\nrequire('./component.style.scss');\n\nvar _componentI18n = require('./component.i18n');\n\nvar _componentI18n2 = _interopRequireDefault(_componentI18n);\n\nvar _componentService = require('./component.service');\n\nvar _componentService2 = _interopRequireDefault(_componentService);\n\nvar _componentContainerController = require('./component-container.controller');\n\nvar _componentContainerController2 = _interopRequireDefault(_componentContainerController);\n\nvar _componentController = require('./component.controller');\n\nvar _componentController2 = _interopRequireDefault(_componentController);\n\nvar _componentContainerDirective = require('./component-container.directive');\n\nvar _componentContainerDirective2 = _interopRequireDefault(_componentContainerDirective);\n\nvar _componentDirective = require('./component.directive');\n\nvar _componentDirective2 = _interopRequireDefault(_componentDirective);\n\nvar _componentWindowDirective = require('./component-window.directive');\n\nvar _componentWindowDirective2 = _interopRequireDefault(_componentWindowDirective);\n\nvar app = angular.module('sanji.cellular', [_sanjiCoreUi2['default']]);\napp.config(_componentI18n2['default']);\napp.service('cellularService', _componentService2['default']);\napp.controller('CellularContainerController', _componentContainerController2['default']);\napp.controller('CellularController', _componentController2['default']);\napp.directive('sanjiCellularContainer', _componentContainerDirective2['default'].directiveFactory);\napp.directive('sanjiCellular', _componentDirective2['default'].directiveFactory);\napp.directive('sanjiCellularWindow', _componentWindowDirective2['default'].directiveFactory);\nexports['default'] = app = app.name;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/index.js\n **/","import sjCore from 'sanji-core-ui';\n\nimport './component.tpl.html';\nimport './component.style.scss';\nimport i18nConfig from './component.i18n';\nimport CellularService from './component.service';\nimport CellularContainerController from './component-container.controller';\nimport CellularController from './component.controller';\nimport CellularContainerDirective from './component-container.directive';\nimport CellularDirective from './component.directive';\nimport CellularWindowDirective from './component-window.directive';\n\nlet app = angular.module('sanji.cellular', [sjCore]);\napp.config(i18nConfig);\napp.service('cellularService', CellularService);\napp.controller('CellularContainerController', CellularContainerController);\napp.controller('CellularController', CellularController);\napp.directive('sanjiCellularContainer', CellularContainerDirective.directiveFactory);\napp.directive('sanjiCellular', CellularDirective.directiveFactory);\napp.directive('sanjiCellularWindow', CellularWindowDirective.directiveFactory);\nexport default app = app.name\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/index.js\n **/","// removed by extract-text-webpack-plugin\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/component.style.scss\n ** module id = 1\n ** module chunks = 0\n **/","module.exports = {\n\t\"get\": {\n\t\t\"url\": \"/network/cellulars\",\n\t\t\"type\": \"collection\",\n\t\t\"titlePrefix\": \"cellular\"\n\t},\n\t\"put\": {\n\t\t\"url\": \"/network/cellulars/:id\",\n\t\t\"type\": \"model\"\n\t},\n\t\"fields\": [\n\t\t{\n\t\t\t\"key\": \"enable\",\n\t\t\t\"type\": \"switch\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_ENABLE\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"apn\",\n\t\t\t\"type\": \"input\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_APN\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"pinCode\",\n\t\t\t\"type\": \"input\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_PINCODE\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"keepalive.enable\",\n\t\t\t\"type\": \"switch\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_ENABLE_KEEPALIVE\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"key\": \"keepalive.targetHost\",\n\t\t\t\"type\": \"input\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_TARGET_HOST\"\n\t\t\t},\n\t\t\t\"hideExpression\": \"!model.keepalive.enable\"\n\t\t},\n\t\t{\n\t\t\t\"key\": \"keepalive.intervalSec\",\n\t\t\t\"type\": \"number\",\n\t\t\t\"templateOptions\": {\n\t\t\t\t\"label\": \"CELLULAR_FORM_LABEL_PING_INTERVAL\",\n\t\t\t\t\"min\": 0,\n\t\t\t\t\"max\": null\n\t\t\t},\n\t\t\t\"hideExpression\": \"!model.keepalive.enable\"\n\t\t}\n\t]\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/component.resource.json\n ** module id = 2\n ** module chunks = 0\n **/","module.exports = {\n\t\"CELLULAR\": \"Cellular\",\n\t\"CELLULAR_FORM_SETTING\": \"Setting\",\n\t\"CELLULAR_FORM_LABEL_ENABLE\": \"Enable\",\n\t\"CELLULAR_FORM_LABEL_APN\": \"APN\",\n\t\"CELLULAR_FORM_LABEL_PINCODE\": \"Pin Code\",\n\t\"CELLULAR_FORM_LABEL_ENABLE_KEEPALIVE\": \"Enable Keep-alive\",\n\t\"CELLULAR_FORM_LABEL_TARGET_HOST\": \"Target Host\",\n\t\"CELLULAR_FORM_LABEL_PING_INTERVAL\": \"Ping Interval\",\n\t\"CELLULAR_FORM_SAVE\": \"Save\"\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/lang/en.json\n ** module id = 3\n ** module chunks = 0\n **/","module.exports = {\n\t\"CELLULAR\": \"Cellular\",\n\t\"CELLULAR_FORM_SETTING\": \"設定\",\n\t\"CELLULAR_FORM_LABEL_ENABLE\": \"啟用\",\n\t\"CELLULAR_FORM_LABEL_APN\": \"APN\",\n\t\"CELLULAR_FORM_LABEL_PINCODE\": \"Pin 碼\",\n\t\"CELLULAR_FORM_LABEL_ENABLE_KEEPALIVE\": \"啟用保持連線\",\n\t\"CELLULAR_FORM_LABEL_TARGET_HOST\": \"目標主機\",\n\t\"CELLULAR_FORM_LABEL_PING_INTERVAL\": \"Ping 間隔\",\n\t\"CELLULAR_FORM_SAVE\": \"儲存\"\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/lang/zh-tw.json\n ** module id = 4\n ** module chunks = 0\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$scope', 'sanjiWindowService', 'cellularService'];\nvar WINDOW_ID = 'sanji-cellular-ui';\n\nvar CellularContainerController = (function () {\n function CellularContainerController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, CellularContainerController);\n\n CellularContainerController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n\n this.sanjiWindowMgr = this.sanjiWindowService.get(WINDOW_ID);\n this.data = this.cellularService.data;\n\n this.activate();\n\n this.$scope.$on('sj:window:refresh', this.onRefresh.bind(this));\n }\n\n _createClass(CellularContainerController, [{\n key: 'activate',\n value: function activate() {\n var _this2 = this;\n\n this.sanjiWindowMgr.promise = this.cellularService.get().then(function () {\n _this2.data = _this2.cellularService.data;\n });\n }\n }, {\n key: 'onRefresh',\n value: function onRefresh(event, args) {\n if (args.id === WINDOW_ID) {\n this.activate();\n }\n }\n }, {\n key: 'onSave',\n value: function onSave(data) {\n this.sanjiWindowMgr.promise = this.cellularService.update(data);\n }\n }]);\n\n return CellularContainerController;\n})();\n\nCellularContainerController.$inject = $inject;\nexports['default'] = CellularContainerController;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component-container.controller.js\n **/","const $inject = ['$scope', 'sanjiWindowService', 'cellularService'];\nconst WINDOW_ID = 'sanji-cellular-ui';\nclass CellularContainerController {\n constructor(...injects) {\n CellularContainerController.$inject.forEach((item, index) => this[item] = injects[index]);\n\n this.sanjiWindowMgr = this.sanjiWindowService.get(WINDOW_ID);\n this.data = this.cellularService.data;\n\n this.activate();\n\n this.$scope.$on('sj:window:refresh', this.onRefresh.bind(this))\n }\n\n activate() {\n this.sanjiWindowMgr.promise = this.cellularService.get().then(() => {\n this.data = this.cellularService.data;\n });\n }\n\n onRefresh(event, args) {\n if (args.id === WINDOW_ID) {\n this.activate();\n }\n }\n\n onSave(data) {\n this.sanjiWindowMgr.promise = this.cellularService.update(data);\n }\n}\nCellularContainerController.$inject = $inject;\nexport default CellularContainerController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component-container.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar CellularContainerDirective = (function () {\n function CellularContainerDirective(injects) {\n _classCallCheck(this, CellularContainerDirective);\n\n CellularContainerDirective.directiveFactory.$inject.forEach(function (item, index) {\n CellularContainerDirective[item] = injects[index];\n injectMap.set(CellularContainerDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.controller = 'CellularContainerController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = true;\n this.template = '';\n }\n\n _createClass(CellularContainerDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n CellularContainerDirective.instance = new CellularContainerDirective(injects);\n return CellularContainerDirective.instance;\n }\n }]);\n\n return CellularContainerDirective;\n})();\n\nCellularContainerDirective.directiveFactory.$inject = $inject;\nexports['default'] = CellularContainerDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component-container.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass CellularContainerDirective {\n constructor(injects) {\n CellularContainerDirective.directiveFactory.$inject.forEach((item, index) => {\n CellularContainerDirective[item] = injects[index];\n injectMap.set(CellularContainerDirective[item], injects[index]);\n });\n this.restrict = 'EA';\n this.controller = 'CellularContainerController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = true;\n this.template = ``;\n }\n\n static directiveFactory(...injects) {\n CellularContainerDirective.instance = new CellularContainerDirective(injects);\n return CellularContainerDirective.instance;\n }\n}\nCellularContainerDirective.directiveFactory.$inject = $inject;\nexport default CellularContainerDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component-container.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar CellularWindowDirective = (function () {\n function CellularWindowDirective(injects) {\n _classCallCheck(this, CellularWindowDirective);\n\n CellularWindowDirective.directiveFactory.$inject.forEach(function (item, index) {\n CellularWindowDirective[item] = injects[index];\n injectMap.set(CellularWindowDirective[item], injects[index]);\n });\n this.restrict = 'E';\n this.template = '\\n \\n \\n \\n ';\n }\n\n _createClass(CellularWindowDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n CellularWindowDirective.instance = new CellularWindowDirective(injects);\n return CellularWindowDirective.instance;\n }\n }]);\n\n return CellularWindowDirective;\n})();\n\nCellularWindowDirective.directiveFactory.$inject = $inject;\nexports['default'] = CellularWindowDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component-window.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass CellularWindowDirective {\n constructor(injects) {\n CellularWindowDirective.directiveFactory.$inject.forEach((item, index) => {\n CellularWindowDirective[item] = injects[index];\n injectMap.set(CellularWindowDirective[item], injects[index]);\n });\n this.restrict = 'E';\n this.template = `\n \n \n \n `;\n }\n\n static directiveFactory(...injects) {\n CellularWindowDirective.instance = new CellularWindowDirective(injects);\n return CellularWindowDirective.instance;\n }\n}\nCellularWindowDirective.directiveFactory.$inject = $inject;\nexport default CellularWindowDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component-window.directive.js\n **/","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar $inject = [];\n\nvar CellularController = (function () {\n function CellularController() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, CellularController);\n\n CellularController.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n }\n\n _createClass(CellularController, [{\n key: \"save\",\n value: function save(data) {\n this.submitCallback({ data: data });\n }\n }]);\n\n return CellularController;\n})();\n\nCellularController.$inject = $inject;\nexports[\"default\"] = CellularController;\nmodule.exports = exports[\"default\"];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.controller.js\n **/","const $inject = [];\nclass CellularController {\n constructor(...injects) {\n CellularController.$inject.forEach((item, index) => this[item] = injects[index]);\n }\n\n save(data) {\n this.submitCallback({data: data});\n }\n}\nCellularController.$inject = $inject;\nexport default CellularController;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.controller.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar injectMap = new WeakMap();\nvar $inject = [];\n\nvar CellularDirective = (function () {\n function CellularDirective(injects) {\n _classCallCheck(this, CellularDirective);\n\n CellularDirective.directiveFactory.$inject.forEach(function (item, index) {\n CellularDirective[item] = injects[index];\n injectMap.set(CellularDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-cellular-edit.tpl.html';\n this.restrict = 'EA';\n this.controller = 'CellularController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = {\n\n tabs: '=data',\n\n submitCallback: '&onSubmit'\n };\n }\n\n _createClass(CellularDirective, null, [{\n key: 'directiveFactory',\n value: function directiveFactory() {\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n CellularDirective.instance = new CellularDirective(injects);\n return CellularDirective.instance;\n }\n }]);\n\n return CellularDirective;\n})();\n\nCellularDirective.directiveFactory.$inject = $inject;\nexports['default'] = CellularDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.directive.js\n **/","const injectMap = new WeakMap();\nconst $inject = [];\nclass CellularDirective {\n constructor(injects) {\n CellularDirective.directiveFactory.$inject.forEach((item, index) => {\n CellularDirective[item] = injects[index];\n injectMap.set(CellularDirective[item], injects[index]);\n });\n this.templateUrl = 'sanji-cellular-edit.tpl.html'\n this.restrict = 'EA';\n this.controller = 'CellularController';\n this.controllerAs = 'vm';\n this.scope = {};\n this.bindToController = {\n \n tabs: '=data',\n \n submitCallback: '&onSubmit'\n };\n }\n\n static directiveFactory(...injects) {\n CellularDirective.instance = new CellularDirective(injects);\n return CellularDirective.instance;\n }\n}\nCellularDirective.directiveFactory.$inject = $inject;\nexport default CellularDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.directive.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nexports['default'] = function ($translateProvider) {\n $translateProvider.translations('en', require('./lang/en.json'));\n $translateProvider.translations('zh-tw', require('./lang/zh-tw.json'));\n};\n\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.i18n.js\n **/","export default ($translateProvider) => {\n $translateProvider.translations('en', require('./lang/en.json'));\n $translateProvider.translations('zh-tw', require('./lang/zh-tw.json'));\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.i18n.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = ['$q', 'rest', 'exception', '_', 'pathToRegexp'];\nvar config = require('./component.resource.json');\n\nvar CellularService = (function () {\n function CellularService() {\n var _this = this;\n\n for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n injects[_key] = arguments[_key];\n }\n\n _classCallCheck(this, CellularService);\n\n CellularService.$inject.forEach(function (item, index) {\n return _this[item] = injects[index];\n });\n switch (config.get.type) {\n case 'collection':\n this.data = [];\n break;\n case 'model':\n this.data = {};\n break;\n default:\n this.data = [];\n }\n }\n\n _createClass(CellularService, [{\n key: '_transform',\n value: function _transform(data) {\n switch (config.get.type) {\n case 'collection':\n return this._.map(data, function (item, index) {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n case 'model':\n return {\n content: data,\n formOptions: {},\n fields: config.fields\n };\n default:\n return this._.map(data, function (item, index) {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n }\n }\n }, {\n key: 'get',\n value: function get() {\n var _this2 = this;\n\n var toPath = this.pathToRegexp.compile(config.get.url);\n return this.rest.get(toPath(), __DEV__ ? { basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com' } : undefined).then(function (res) {\n _this2.data = _this2._transform(res.data);\n })['catch'](function (err) {\n _this2.exception.catcher('[CellularService] Get data error.')(err);\n return _this2.$q.reject();\n });\n }\n }, {\n key: 'update',\n value: function update(data) {\n var _this3 = this;\n\n var toPath = this.pathToRegexp.compile(config.put.url);\n var path = undefined !== data.content.id ? toPath({ id: data.content.id }) : toPath();\n return this.rest.put(path, data.content, data.formOptions.files, __DEV__ ? { basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com' } : undefined)['catch'](function (err) {\n _this3.exception.catcher('[CellularService] Update data error.')(err);\n return _this3.$q.reject();\n });\n }\n }]);\n\n return CellularService;\n})();\n\nCellularService.$inject = $inject;\nexports['default'] = CellularService;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.service.js\n **/","const $inject = ['$q', 'rest', 'exception', '_', 'pathToRegexp'];\nconst config = require('./component.resource.json');\nclass CellularService {\n constructor(...injects) {\n CellularService.$inject.forEach((item, index) => this[item] = injects[index]);\n switch(config.get.type) {\n case 'collection':\n this.data = [];\n break;\n case 'model':\n this.data = {};\n break;\n default:\n this.data = [];\n }\n }\n\n _transform(data) {\n switch(config.get.type) {\n case 'collection':\n return this._.map(data, (item, index) => {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n case 'model':\n return {\n content: data,\n formOptions: {},\n fields: config.fields\n };\n default:\n return this._.map(data, (item, index) => {\n return {\n title: (config.get.titlePrefix || 'tab') + index,\n content: item,\n formOptions: {},\n fields: config.fields\n };\n });\n }\n }\n\n get() {\n let toPath = this.pathToRegexp.compile(config.get.url);\n return this.rest.get(toPath(), (__DEV__) ? {basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com'} : undefined)\n .then(res => {\n this.data = this._transform(res.data);\n })\n .catch(err => {\n this.exception.catcher('[CellularService] Get data error.')(err);\n return this.$q.reject();\n });\n }\n\n update(data) {\n let toPath = this.pathToRegexp.compile(config.put.url);\n let path = (undefined !== data.content.id) ? toPath({id: data.content.id}) : toPath();\n return this.rest.put(path, data.content, data.formOptions.files, (__DEV__) ? {basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com' } : undefined)\n .catch(err => {\n this.exception.catcher('[CellularService] Update data error.')(err);\n return this.$q.reject();\n });\n }\n}\nCellularService.$inject = $inject;\nexport default CellularService;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.service.js\n **/","var angular=window.angular,ngModule;\ntry {ngModule=angular.module([\"ng\"])}\ncatch(e){ngModule=angular.module(\"ng\",[])}\nvar v1=\"\\n \\n \\n
\\n \\n \\n
\\n \\n \\n \\n
\\n \\n
\\n
\\n
\\n
\\n
\";\nngModule.run([\"$templateCache\",function(c){c.put(\"sanji-cellular-edit.tpl.html\",v1)}]);\nmodule.exports=v1;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./component/component.tpl.html\n ** module id = 12\n ** module chunks = 0\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_13__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"sanji-core-ui\"\n ** module id = 13\n ** module chunks = 0\n **/"],"sourceRoot":""} diff --git a/package.json b/package.json index 35bd2c1..1c5b213 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "sanji-cellular-ui", "author": "Zack Yang (https://github.com/zack9433)", "description": "Sanji cellualr UI", - "version": "1.0.6", + "version": "1.0.7", "main": "index", "config": { "ghooks": { @@ -85,7 +85,7 @@ "angular-material": "~0.11.4", "angular-material-icons": "~0.6.0", "jquery": "~2.1.4", - "sanji-core-ui": "~1.9.1", + "sanji-core-ui": "~1.9.8", "socket.io-client": "~1.3.7", "svg-morpheus": "alexk111/SVG-Morpheus#v0.1.8", "toastr": "~2.1.2"