diff --git a/config/demo-prod.json b/config/demo-prod.json index f9789f1e..ffa1169e 100644 --- a/config/demo-prod.json +++ b/config/demo-prod.json @@ -1,6 +1,6 @@ { "useStrict" : "use strict", - "apiUrl" : "https://api-demo.ottemo.io", + "apiUrl" : "https://api.demo.ottemo.io", "mediaPath" : "https://demo.ottemo.io/media/", "itemsPerPage" : "15" } \ No newline at end of file diff --git a/package.json b/package.json index c40b32bb..49bb3e0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Dashboard", - "version": "1.1.14", + "version": "1.1.141", "description": "Ottemo Administration Tool", "main": "gulpfile.js", "repository": { diff --git a/src/app/app.scss b/src/app/app.scss index ae3b7c42..06961629 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -16,7 +16,7 @@ @import 'cms/cms'; @import 'config/config'; @import 'dashboard/dashboard'; -@import 'design/design'; +@import 'core/core'; @import 'discounts/discounts'; @import 'impex/impex'; @import 'login/login'; diff --git a/src/app/category/service/api.js b/src/app/category/api.service.js similarity index 100% rename from src/app/category/service/api.js rename to src/app/category/api.service.js diff --git a/src/app/category/controller/edit.js b/src/app/category/edit.controller.js similarity index 100% rename from src/app/category/controller/edit.js rename to src/app/category/edit.controller.js diff --git a/src/app/category/edit.html b/src/app/category/edit.html index 7e3a85ce..dc7486d6 100644 --- a/src/app/category/edit.html +++ b/src/app/category/edit.html @@ -10,7 +10,7 @@

- + - + diff --git a/src/app/category/init.js b/src/app/category/init.js index 0a8cf1f0..1a544e8f 100644 --- a/src/app/category/init.js +++ b/src/app/category/init.js @@ -1,4 +1,4 @@ -angular.module("categoryModule", ["ngRoute", "ngResource", "designModule"]) +angular.module("categoryModule", ["ngRoute", "ngResource", "coreModule"]) /* * Basic routing configuration diff --git a/src/app/category/controller/list.js b/src/app/category/list.controller.js similarity index 100% rename from src/app/category/controller/list.js rename to src/app/category/list.controller.js diff --git a/src/app/category/list.html b/src/app/category/list.html index 09c191ba..693d26da 100644 --- a/src/app/category/list.html +++ b/src/app/category/list.html @@ -5,5 +5,5 @@

- + diff --git a/src/app/cms/service/api.js b/src/app/cms/api.service.js similarity index 100% rename from src/app/cms/service/api.js rename to src/app/cms/api.service.js diff --git a/src/app/cms/controller/blockEdit.js b/src/app/cms/block/edit.controller.js similarity index 100% rename from src/app/cms/controller/blockEdit.js rename to src/app/cms/block/edit.controller.js diff --git a/src/app/cms/block-edit.html b/src/app/cms/block/edit.html similarity index 53% rename from src/app/cms/block-edit.html rename to src/app/cms/block/edit.html index 22856b8d..c6ec4d8e 100644 --- a/src/app/cms/block-edit.html +++ b/src/app/cms/block/edit.html @@ -7,7 +7,7 @@

- + - + diff --git a/src/app/cms/controller/blockList.js b/src/app/cms/block/list.controller.js similarity index 100% rename from src/app/cms/controller/blockList.js rename to src/app/cms/block/list.controller.js diff --git a/src/app/cms/block-list.html b/src/app/cms/block/list.html similarity index 59% rename from src/app/cms/block-list.html rename to src/app/cms/block/list.html index 9d278daf..39915bd6 100644 --- a/src/app/cms/block-list.html +++ b/src/app/cms/block/list.html @@ -3,4 +3,4 @@

Blocks

- + diff --git a/src/app/cms/init.js b/src/app/cms/init.js index 0dffe039..2a408d14 100644 --- a/src/app/cms/init.js +++ b/src/app/cms/init.js @@ -1,29 +1,29 @@ angular.module('cmsModule', [ 'ngRoute', 'ngResource', - 'designModule' + 'coreModule' ]) .config(['$routeProvider', function($routeProvider) { $routeProvider .when('/cms/pages', { - templateUrl: '/views/cms/page-list.html', + templateUrl: '/views/cms/page/list.html', controller: 'cmsPageListController' }) .when('/cms/pages/:id', { - templateUrl: '/views/cms/page-edit.html', + templateUrl: '/views/cms/page/edit.html', controller: 'cmsPageEditController' }) .when('/cms/blocks', { - templateUrl: '/views/cms/block-list.html', + templateUrl: '/views/cms/block/list.html', controller: 'cmsBlockListController' }) .when('/cms/blocks/:id', { - templateUrl: '/views/cms/block-edit.html', + templateUrl: '/views/cms/block/edit.html', controller: 'cmsBlockEditController' }) .when('/cms/media', { - templateUrl: '/views/cms/media-list.html', + templateUrl: '/views/cms/media/list.html', controller: 'cmsMediaListController' }); diff --git a/src/app/cms/service/media.js b/src/app/cms/media.service.js similarity index 100% rename from src/app/cms/service/media.js rename to src/app/cms/media.service.js diff --git a/src/app/cms/controller/mediaList.js b/src/app/cms/media/list.controller.js similarity index 100% rename from src/app/cms/controller/mediaList.js rename to src/app/cms/media/list.controller.js diff --git a/src/app/cms/media-list.html b/src/app/cms/media/list.html similarity index 96% rename from src/app/cms/media-list.html rename to src/app/cms/media/list.html index 30ee6455..40680bbe 100644 --- a/src/app/cms/media-list.html +++ b/src/app/cms/media/list.html @@ -12,7 +12,7 @@

Uploading Images

Accepted file formats: .jpg, .jpeg, .png, .gif

- +
diff --git a/src/app/cms/controller/pageEdit.js b/src/app/cms/page/edit.controller.js similarity index 100% rename from src/app/cms/controller/pageEdit.js rename to src/app/cms/page/edit.controller.js diff --git a/src/app/cms/page-edit.html b/src/app/cms/page/edit.html similarity index 52% rename from src/app/cms/page-edit.html rename to src/app/cms/page/edit.html index dc6ce030..62bf20b5 100644 --- a/src/app/cms/page-edit.html +++ b/src/app/cms/page/edit.html @@ -6,7 +6,7 @@

- + - + diff --git a/src/app/cms/controller/pageList.js b/src/app/cms/page/list.controller.js similarity index 100% rename from src/app/cms/controller/pageList.js rename to src/app/cms/page/list.controller.js diff --git a/src/app/cms/page-list.html b/src/app/cms/page/list.html similarity index 61% rename from src/app/cms/page-list.html rename to src/app/cms/page/list.html index 3873e808..cf949c0c 100644 --- a/src/app/cms/page-list.html +++ b/src/app/cms/page/list.html @@ -6,4 +6,4 @@

- + diff --git a/src/app/config/directives/guiConfigEditorForm.js b/src/app/config/directives/ot-config-editor-form.directive.js similarity index 95% rename from src/app/config/directives/guiConfigEditorForm.js rename to src/app/config/directives/ot-config-editor-form.directive.js index 64aaefe8..ef32564a 100644 --- a/src/app/config/directives/guiConfigEditorForm.js +++ b/src/app/config/directives/ot-config-editor-form.directive.js @@ -1,9 +1,9 @@ -angular.module("designModule") +angular.module("coreModule") /** * Directive used for automatic attributes editor form creation */ -.directive("guiConfigEditorForm", [function () { +.directive("otConfigEditorForm", [function () { return { restrict: "E", scope: { @@ -11,7 +11,7 @@ angular.module("designModule") "item": "=item", "attributes": "=attributesList" }, - templateUrl: "/views/config/gui/configEditorForm.html", + templateUrl: "/views/config/directives/ot-config-editor-form.html", controller: function ($scope) { var updateAttributes, addTab, addFields, sortFieldsInGroups; diff --git a/src/app/config/gui/configEditorForm.html b/src/app/config/directives/ot-config-editor-form.html similarity index 91% rename from src/app/config/gui/configEditorForm.html rename to src/app/config/directives/ot-config-editor-form.html index e84d27b2..9f371602 100644 --- a/src/app/config/gui/configEditorForm.html +++ b/src/app/config/directives/ot-config-editor-form.html @@ -14,7 +14,7 @@
- +

diff --git a/src/app/config/controller/configEdit.js b/src/app/config/edit.controller.js similarity index 100% rename from src/app/config/controller/configEdit.js rename to src/app/config/edit.controller.js diff --git a/src/app/config/edit.html b/src/app/config/edit.html index dcd56746..d54dd364 100644 --- a/src/app/config/edit.html +++ b/src/app/config/edit.html @@ -7,9 +7,9 @@

- + - +
\ No newline at end of file diff --git a/src/app/config/filters/storedate.js b/src/app/config/filters/ot-storedate.js similarity index 100% rename from src/app/config/filters/storedate.js rename to src/app/config/filters/ot-storedate.js diff --git a/src/app/config/init.js b/src/app/config/init.js index 74d983f4..03a49c1e 100644 --- a/src/app/config/init.js +++ b/src/app/config/init.js @@ -1,7 +1,7 @@ /** * Config Module */ -angular.module("configModule", ["ngRoute", "ngResource", "designModule"]) +angular.module("configModule", ["ngRoute", "ngResource", "coreModule"]) .config(["$routeProvider", function ($routeProvider) { $routeProvider diff --git a/src/app/design/api.service.js b/src/app/core/api.service.js similarity index 84% rename from src/app/design/api.service.js rename to src/app/core/api.service.js index e924b1dd..d5d1b98c 100644 --- a/src/app/design/api.service.js +++ b/src/app/core/api.service.js @@ -1,8 +1,8 @@ -angular.module("designModule") +angular.module("coreModule") /* * productApiService interaction service */ -.service("designApiService", ["$resource", "REST_SERVER_URI", function ($resource, REST_SERVER_URI) { +.service("coreApiService", ["$resource", "REST_SERVER_URI", function ($resource, REST_SERVER_URI) { return $resource(REST_SERVER_URI, {}, { "attributesModel": { method: "GET", diff --git a/src/app/design/design.scss b/src/app/core/core.scss similarity index 100% rename from src/app/design/design.scss rename to src/app/core/core.scss diff --git a/src/app/design/directives/editor/guiArrayModelSelector.js b/src/app/core/directives/editor/ot-array-model-selector.directive.js similarity index 92% rename from src/app/design/directives/editor/guiArrayModelSelector.js rename to src/app/core/directives/editor/ot-array-model-selector.directive.js index af676ecb..d19aef7d 100644 --- a/src/app/design/directives/editor/guiArrayModelSelector.js +++ b/src/app/core/directives/editor/ot-array-model-selector.directive.js @@ -1,14 +1,14 @@ -angular.module("designModule") +angular.module("coreModule") /** * Directive used for automatic attribute editor creation */ - .directive("guiArrayModelSelector", [ - "designApiService", - "designImageService", - function (designApiService, designImageService) { + .directive("otArrayModelSelector", [ + "coreApiService", + "coreImageService", + function (coreApiService, coreImageService) { return { restrict: "E", - templateUrl: "/views/design/gui/editor/arrayModelSelector.html", + templateUrl: "/views/core/directives/editor/ot-array-model-selector.html", scope: { "attribute": "=editorScope", @@ -154,7 +154,7 @@ angular.module("designModule") parseOptions($scope.attribute.Options); - designApiService.attributesModel(getParams(options.model, $scope.item)).$promise.then( + coreApiService.attributesModel(getParams(options.model, $scope.item)).$promise.then( function (response) { var result = response.result || []; $scope.items = result; @@ -169,7 +169,7 @@ angular.module("designModule") * @returns {string} - full path to image */ $scope.getImage = function (image) { - return designImageService.getImage(image); + return coreImageService.getImage(image); }; } diff --git a/src/app/design/gui/editor/arrayModelSelector.html b/src/app/core/directives/editor/ot-array-model-selector.html similarity index 100% rename from src/app/design/gui/editor/arrayModelSelector.html rename to src/app/core/directives/editor/ot-array-model-selector.html diff --git a/src/app/design/directives/editor/guiBoolean.js b/src/app/core/directives/editor/ot-boolean.directive.js similarity index 83% rename from src/app/design/directives/editor/guiBoolean.js rename to src/app/core/directives/editor/ot-boolean.directive.js index 1f1e6f74..a74d4975 100644 --- a/src/app/design/directives/editor/guiBoolean.js +++ b/src/app/core/directives/editor/ot-boolean.directive.js @@ -1,9 +1,9 @@ -angular.module('designModule') +angular.module('coreModule') -.directive('guiBoolean', [function() { +.directive('otBoolean', [function() { return { restrict: 'E', - templateUrl: '/views/design/gui/editor/select.html', + templateUrl: '/views/core/directives/editor/ot-select.html', scope: { 'attribute': '=editorScope', diff --git a/src/app/design/directives/editor/guiCategorySelector.js b/src/app/core/directives/editor/ot-category-selector.directive.js similarity index 97% rename from src/app/design/directives/editor/guiCategorySelector.js rename to src/app/core/directives/editor/ot-category-selector.directive.js index bd7a5360..dfc876f4 100644 --- a/src/app/design/directives/editor/guiCategorySelector.js +++ b/src/app/core/directives/editor/ot-category-selector.directive.js @@ -1,8 +1,8 @@ -angular.module("designModule") +angular.module("coreModule") /** * Directive used for automatic attribute editor creation */ -.directive("guiCategorySelector", [ +.directive("otCategorySelector", [ "$location", "$routeParams", "dashboardListService", @@ -16,7 +16,7 @@ angular.module("designModule") return { restrict: "E", - templateUrl: "/views/design/gui/editor/categorySelector.html", + templateUrl: "/views/core/directives/editor/ot-category-selector.html", scope: { "attribute": "=editorScope", diff --git a/src/app/design/gui/editor/categorySelector.html b/src/app/core/directives/editor/ot-category-selector.html similarity index 88% rename from src/app/design/gui/editor/categorySelector.html rename to src/app/core/directives/editor/ot-category-selector.html index d01ea283..bd329f89 100644 --- a/src/app/design/gui/editor/categorySelector.html +++ b/src/app/core/directives/editor/ot-category-selector.html @@ -16,7 +16,7 @@