From 77521abc07a45b8a0fd3ea7d35e1ea3f6bfc072c Mon Sep 17 00:00:00 2001 From: Adam Knox Date: Wed, 6 Apr 2016 15:15:32 -0400 Subject: [PATCH 1/5] add chart to reports --- src/app/reports/product.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/reports/product.html b/src/app/reports/product.html index 73178716..61e53996 100644 --- a/src/app/reports/product.html +++ b/src/app/reports/product.html @@ -23,6 +23,8 @@

+ + From 3299c868bd7875144effc3a7134672326bbb1a9f Mon Sep 17 00:00:00 2001 From: CyberCookie Date: Wed, 6 Apr 2016 15:20:10 -0400 Subject: [PATCH 2/5] Close GH-268: [114516123] refactor designModule to coreModule. --- src/app/app.scss | 2 +- .../{service/api.js => api.service.js} | 0 .../edit.js => edit.controller.js} | 0 src/app/category/edit.html | 4 +- src/app/category/init.js | 2 +- .../list.js => list.controller.js} | 0 src/app/category/list.html | 2 +- .../cms/{service/api.js => api.service.js} | 0 .../blockEdit.js => block/edit.controller.js} | 0 .../cms/{block-edit.html => block/edit.html} | 4 +- .../blockList.js => block/list.controller.js} | 0 .../cms/{block-list.html => block/list.html} | 2 +- src/app/cms/init.js | 12 ++--- .../{service/media.js => media.service.js} | 0 .../mediaList.js => media/list.controller.js} | 0 .../cms/{media-list.html => media/list.html} | 2 +- .../pageEdit.js => page/edit.controller.js} | 0 .../cms/{page-edit.html => page/edit.html} | 4 +- .../pageList.js => page/list.controller.js} | 0 .../cms/{page-list.html => page/list.html} | 2 +- ....js => ot-config-editor-form.directive.js} | 6 +-- .../ot-config-editor-form.html} | 2 +- .../configEdit.js => edit.controller.js} | 0 src/app/config/edit.html | 4 +- .../filters/{storedate.js => ot-storedate.js} | 0 src/app/config/init.js | 2 +- src/app/{design => core}/api.service.js | 4 +- .../{design/design.scss => core/core.scss} | 0 .../ot-array-model-selector.directive.js} | 16 +++--- .../editor/ot-array-model-selector.html} | 0 .../editor/ot-boolean.directive.js} | 6 +-- .../editor/ot-category-selector.directive.js} | 6 +-- .../editor/ot-category-selector.html} | 2 +- .../editor/ot-datetime.directive.js} | 6 +-- .../directives/editor/ot-datetime.html} | 0 .../directives/editor/ot-html.directive.js} | 6 +-- .../directives/editor/ot-html.html} | 0 .../editor/ot-json-editor.directive.js} | 6 +-- .../directives/editor/ot-json.html} | 0 .../editor/ot-model-selector.directive.js} | 8 +-- .../directives/editor/ot-model-selector.html} | 0 .../editor/ot-multi-select.directive.js} | 6 +-- .../directives/editor/ot-multi-select.html} | 0 .../editor/ot-multiine-text.directive.js} | 6 +-- .../directives/editor/ot-multiline-text.html} | 0 .../editor/ot-not-editable.directive.js} | 6 +-- .../directives/editor/ot-not-editable.html} | 0 .../editor/ot-page-selector.directive.js} | 6 +-- .../directives/editor/ot-page-selector.html} | 2 +- .../editor/ot-password.directive.js} | 6 +-- .../directives/editor/ot-password.html} | 0 .../editor/ot-picture-manager.directive.js} | 8 +-- .../editor/ot-picture-manager.html} | 4 +- .../directives/editor/ot-price.directive.js} | 6 +-- .../editor/ot-product-selector.directive.js} | 12 ++--- .../editor/ot-product-selector.html} | 2 +- .../editor/ot-products-selector.directive.js} | 12 ++--- .../editor/ot-products-selector.html} | 2 +- .../directives/editor/ot-select.directive.js} | 6 +-- .../directives/editor/ot-select.html} | 0 .../directives/editor/ot-text.directive.js} | 6 +-- .../directives/editor/ot-text.html} | 0 .../editor/ot-visitor-selector.directive.js} | 10 ++-- .../editor/ot-visitor-selector.html} | 2 +- .../filter/ot-date-range.direcitve.js} | 6 +-- .../directives/filter/ot-date-range.html} | 0 .../directives/filter/ot-range.directive.js} | 6 +-- .../directives/filter/ot-range.html} | 0 .../directives/filter/ot-select.directive.js} | 6 +-- .../directives/filter/ot-select.html} | 0 .../directives/filter/ot-text.directive.js} | 6 +-- .../directives/filter/ot-text.html} | 0 .../ot-apply-validator.directive.js} | 2 +- ...-attributes-editor-form-tabs.directive.js} | 6 +-- .../ot-attributes-editor-form-tabs.html} | 2 +- .../ot-attributes-editor-form.directive.js} | 6 +-- .../ot-attributes-editor-form.html} | 2 +- .../directives/ot-bind-file.directive.js} | 2 +- .../directives/ot-enter.directive.js} | 2 +- .../directives/ot-form-builder.directive.js} | 6 +-- .../directives/ot-form-builder.html} | 50 +++++++++---------- .../directives/ot-input-file.directive.js} | 6 +-- .../directives/ot-input-file.html} | 0 .../directives/ot-list-manager.directive.js} | 8 +-- .../directives/ot-list.html} | 0 .../ot-message-manager.directive.js} | 6 +-- .../directives/ot-message-manager.html} | 0 .../directives/ot-paginator.directive.js} | 6 +-- .../directives/ot-paginator.html} | 0 .../directives/ot-route-class.directive.js} | 2 +- .../ot-table-manager-popup.directive.js} | 6 +-- .../directives/ot-table-manager-popup.html} | 10 ++-- .../directives/ot-table-manager.directive.js} | 6 +-- .../directives/ot-table-manager.html} | 12 ++--- .../directives/validator/between.js | 2 +- .../directives/validator/date.js | 2 +- .../directives/validator/email.js | 2 +- .../directives/validator/len.js | 2 +- .../directives/validator/match.js | 2 +- .../directives/validator/number.js | 2 +- .../directives/validator/password.js | 2 +- .../directives/validator/positive.js | 2 +- .../directives/validator/price.js | 2 +- .../directives/validator/regexp.js | 2 +- .../directives/validator/sku.js | 2 +- src/app/{design => core}/image.service.js | 4 +- src/app/{design => core}/init.js | 2 +- .../{controllers.js => controller.js} | 6 +-- src/app/dashboard/init.js | 2 +- .../{service/api.js => api.service.js} | 0 .../edit.js => edit.controller.js} | 0 src/app/discounts/edit.html | 8 +-- src/app/discounts/init.js | 2 +- .../list.js => list.controller.js} | 0 .../impex/{service/api.js => api.service.js} | 0 src/app/impex/init.js | 2 +- src/app/impex/main.html | 6 +-- .../login/{service/api.js => api.service.js} | 0 src/app/login/init.js | 2 +- .../login.js => login.controller.js} | 0 src/app/login/login.html | 2 +- .../{service/login.js => login.service.js} | 0 .../logout.js => logout.controller.js} | 0 src/app/order/edit.html | 2 +- src/app/order/init.js | 2 +- src/app/order/list.html | 6 +-- .../edit.controller.js} | 0 src/app/product/attribute/edit.html | 4 +- .../list.controller.js} | 0 src/app/product/attribute/list.html | 2 +- ...=> ot-custom-options-manager.directive.js} | 4 +- .../ot-custom-options-manager.html} | 0 .../edit.js => edit.controller.js} | 6 +-- src/app/product/edit.html | 4 +- src/app/product/init.js | 2 +- .../list.js => list.controller.js} | 0 src/app/product/list.html | 4 +- src/app/reports/init.js | 10 ++-- .../{product.js => product.controller.js} | 0 .../seo/{service/api.js => api.service.js} | 0 .../editSeo.js => edit.controller.js} | 0 src/app/seo/edit.html | 4 +- ...edit.js => independent-edit.controller.js} | 0 src/app/seo/init.js | 2 +- .../list.js => list.controller.js} | 0 src/app/seo/list.html | 4 +- .../seo/{service/seo.js => seo.service.js} | 0 .../{service/api.js => api.service.js} | 0 .../edit.js => edit.controller.js} | 0 src/app/subscriptions/edit.html | 2 +- src/app/subscriptions/init.js | 2 +- .../list.js => list.controller.js} | 0 src/app/subscriptions/list.html | 6 +-- .../edit.controller.js} | 0 src/app/visitor/address/edit.html | 4 +- .../list.controller.js} | 0 src/app/visitor/address/list.html | 4 +- .../edit.controller.js} | 0 src/app/visitor/attribute/edit.html | 4 +- .../list.controller.js} | 0 src/app/visitor/attribute/list.html | 2 +- .../visitorEdit.js => edit.controller.js} | 0 src/app/visitor/edit.html | 6 +-- .../visitorEmail.js => email.controller.js} | 0 .../visitor/{send-email.html => email.html} | 4 +- src/app/visitor/init.js | 4 +- .../visitorList.js => list.controller.js} | 0 src/app/visitor/list.html | 4 +- 168 files changed, 266 insertions(+), 266 deletions(-) rename src/app/category/{service/api.js => api.service.js} (100%) rename src/app/category/{controller/edit.js => edit.controller.js} (100%) rename src/app/category/{controller/list.js => list.controller.js} (100%) rename src/app/cms/{service/api.js => api.service.js} (100%) rename src/app/cms/{controller/blockEdit.js => block/edit.controller.js} (100%) rename src/app/cms/{block-edit.html => block/edit.html} (53%) rename src/app/cms/{controller/blockList.js => block/list.controller.js} (100%) rename src/app/cms/{block-list.html => block/list.html} (59%) rename src/app/cms/{service/media.js => media.service.js} (100%) rename src/app/cms/{controller/mediaList.js => media/list.controller.js} (100%) rename src/app/cms/{media-list.html => media/list.html} (96%) rename src/app/cms/{controller/pageEdit.js => page/edit.controller.js} (100%) rename src/app/cms/{page-edit.html => page/edit.html} (52%) rename src/app/cms/{controller/pageList.js => page/list.controller.js} (100%) rename src/app/cms/{page-list.html => page/list.html} (61%) rename src/app/config/directives/{guiConfigEditorForm.js => ot-config-editor-form.directive.js} (95%) rename src/app/config/{gui/configEditorForm.html => directives/ot-config-editor-form.html} (91%) rename src/app/config/{controller/configEdit.js => edit.controller.js} (100%) rename src/app/config/filters/{storedate.js => ot-storedate.js} (100%) rename src/app/{design => core}/api.service.js (84%) rename src/app/{design/design.scss => core/core.scss} (100%) rename src/app/{design/directives/editor/guiArrayModelSelector.js => core/directives/editor/ot-array-model-selector.directive.js} (92%) rename src/app/{design/gui/editor/arrayModelSelector.html => core/directives/editor/ot-array-model-selector.html} (100%) rename src/app/{design/directives/editor/guiBoolean.js => core/directives/editor/ot-boolean.directive.js} (83%) rename src/app/{design/directives/editor/guiCategorySelector.js => core/directives/editor/ot-category-selector.directive.js} (97%) rename src/app/{design/gui/editor/categorySelector.html => core/directives/editor/ot-category-selector.html} (88%) rename src/app/{design/directives/editor/guiDatetime.js => core/directives/editor/ot-datetime.directive.js} (93%) rename src/app/{design/gui/editor/datetime.html => core/directives/editor/ot-datetime.html} (100%) rename src/app/{design/directives/editor/guiHtml.js => core/directives/editor/ot-html.directive.js} (62%) rename src/app/{design/gui/editor/html.html => core/directives/editor/ot-html.html} (100%) rename src/app/{design/directives/editor/guiJsonEditor.js => core/directives/editor/ot-json-editor.directive.js} (94%) rename src/app/{design/gui/editor/json.html => core/directives/editor/ot-json.html} (100%) rename src/app/{design/directives/editor/guiModelSelector.js => core/directives/editor/ot-model-selector.directive.js} (91%) rename src/app/{design/gui/editor/modelSelector.html => core/directives/editor/ot-model-selector.html} (100%) rename src/app/{design/directives/editor/guiMultiSelect.js => core/directives/editor/ot-multi-select.directive.js} (92%) rename src/app/{design/gui/editor/multi-select.html => core/directives/editor/ot-multi-select.html} (100%) rename src/app/{design/directives/editor/guiMultilineText.js => core/directives/editor/ot-multiine-text.directive.js} (58%) rename src/app/{design/gui/editor/multilineText.html => core/directives/editor/ot-multiline-text.html} (100%) rename src/app/{design/directives/editor/guiNotEditable.js => core/directives/editor/ot-not-editable.directive.js} (64%) rename src/app/{design/gui/editor/notEditable.html => core/directives/editor/ot-not-editable.html} (100%) rename src/app/{design/directives/editor/guiPageSelector.js => core/directives/editor/ot-page-selector.directive.js} (97%) rename src/app/{design/gui/editor/pageSelector.html => core/directives/editor/ot-page-selector.html} (88%) rename src/app/{design/directives/editor/guiPassword.js => core/directives/editor/ot-password.directive.js} (51%) rename src/app/{design/gui/editor/password.html => core/directives/editor/ot-password.html} (100%) rename src/app/{design/directives/editor/guiPictureManager.js => core/directives/editor/ot-picture-manager.directive.js} (87%) rename src/app/{design/gui/editor/pictureManager.html => core/directives/editor/ot-picture-manager.html} (93%) rename src/app/{design/directives/editor/guiPrice.js => core/directives/editor/ot-price.directive.js} (85%) rename src/app/{design/directives/editor/guiProductSelector.js => core/directives/editor/ot-product-selector.directive.js} (96%) rename src/app/{design/gui/editor/productSelector.html => core/directives/editor/ot-product-selector.html} (88%) rename src/app/{design/directives/editor/guiProductsSelector.js => core/directives/editor/ot-products-selector.directive.js} (96%) rename src/app/{design/gui/editor/productsSelector.html => core/directives/editor/ot-products-selector.html} (88%) rename src/app/{design/directives/editor/guiSelect.js => core/directives/editor/ot-select.directive.js} (93%) rename src/app/{design/gui/editor/select.html => core/directives/editor/ot-select.html} (100%) rename src/app/{design/directives/editor/guiText.js => core/directives/editor/ot-text.directive.js} (66%) rename src/app/{design/gui/editor/text.html => core/directives/editor/ot-text.html} (100%) rename src/app/{design/directives/editor/guiVisitorSelector.js => core/directives/editor/ot-visitor-selector.directive.js} (96%) rename src/app/{design/gui/editor/visitorSelector.html => core/directives/editor/ot-visitor-selector.html} (88%) rename src/app/{design/directives/filter/guiDateRange.js => core/directives/filter/ot-date-range.direcitve.js} (92%) rename src/app/{design/gui/filter/dateRange.html => core/directives/filter/ot-date-range.html} (100%) rename src/app/{design/directives/filter/guiRange.js => core/directives/filter/ot-range.directive.js} (92%) rename src/app/{design/gui/filter/range.html => core/directives/filter/ot-range.html} (100%) rename src/app/{design/directives/filter/guiSelect.js => core/directives/filter/ot-select.directive.js} (95%) rename src/app/{design/gui/filter/select.html => core/directives/filter/ot-select.html} (100%) rename src/app/{design/directives/filter/guiText.js => core/directives/filter/ot-text.directive.js} (91%) rename src/app/{design/gui/filter/text.html => core/directives/filter/ot-text.html} (100%) rename src/app/{design/directives/otApplyValidator.js => core/directives/ot-apply-validator.directive.js} (97%) rename src/app/{design/directives/guiAttributesEditorFormTabs.js => core/directives/ot-attributes-editor-form-tabs.directive.js} (92%) rename src/app/{design/gui/attributesEditorFormTabs.html => core/directives/ot-attributes-editor-form-tabs.html} (92%) rename src/app/{design/directives/guiAttributesEditorForm.js => core/directives/ot-attributes-editor-form.directive.js} (90%) rename src/app/{design/gui/attributesEditorForm.html => core/directives/ot-attributes-editor-form.html} (89%) rename src/app/{design/directives/otBindFile.js => core/directives/ot-bind-file.directive.js} (95%) rename src/app/{design/directives/otEnter.js => core/directives/ot-enter.directive.js} (92%) rename src/app/{design/directives/guiFormBuilder.js => core/directives/ot-form-builder.directive.js} (76%) rename src/app/{design/gui/formBuilder.html => core/directives/ot-form-builder.html} (88%) rename src/app/{design/directives/guiInputFile.js => core/directives/ot-input-file.directive.js} (91%) rename src/app/{design/gui/inputFile.html => core/directives/ot-input-file.html} (100%) rename src/app/{design/directives/guiListManager.js => core/directives/ot-list-manager.directive.js} (96%) rename src/app/{design/gui/list.html => core/directives/ot-list.html} (100%) rename src/app/{design/directives/guiMessageManager.js => core/directives/ot-message-manager.directive.js} (85%) rename src/app/{design/gui/guiMessageManager.html => core/directives/ot-message-manager.html} (100%) rename src/app/{design/directives/guiPaginator.js => core/directives/ot-paginator.directive.js} (87%) rename src/app/{design/gui/paginator.html => core/directives/ot-paginator.html} (100%) rename src/app/{design/directives/otRouteClass.js => core/directives/ot-route-class.directive.js} (98%) rename src/app/{design/directives/guiTableManagerPopup.js => core/directives/ot-table-manager-popup.directive.js} (99%) rename src/app/{design/gui/table-popup.html => core/directives/ot-table-manager-popup.html} (88%) rename src/app/{design/directives/guiTableManager.js => core/directives/ot-table-manager.directive.js} (99%) rename src/app/{design/gui/table.html => core/directives/ot-table-manager.html} (87%) rename src/app/{design => core}/directives/validator/between.js (97%) rename src/app/{design => core}/directives/validator/date.js (96%) rename src/app/{design => core}/directives/validator/email.js (96%) rename src/app/{design => core}/directives/validator/len.js (97%) rename src/app/{design => core}/directives/validator/match.js (98%) rename src/app/{design => core}/directives/validator/number.js (96%) rename src/app/{design => core}/directives/validator/password.js (98%) rename src/app/{design => core}/directives/validator/positive.js (97%) rename src/app/{design => core}/directives/validator/price.js (96%) rename src/app/{design => core}/directives/validator/regexp.js (97%) rename src/app/{design => core}/directives/validator/sku.js (97%) rename src/app/{design => core}/image.service.js (81%) rename src/app/{design => core}/init.js (86%) rename src/app/dashboard/{controllers.js => controller.js} (98%) rename src/app/discounts/{service/api.js => api.service.js} (100%) rename src/app/discounts/{controller/edit.js => edit.controller.js} (100%) rename src/app/discounts/{controller/list.js => list.controller.js} (100%) rename src/app/impex/{service/api.js => api.service.js} (100%) rename src/app/login/{service/api.js => api.service.js} (100%) rename src/app/login/{controller/login.js => login.controller.js} (100%) rename src/app/login/{service/login.js => login.service.js} (100%) rename src/app/login/{controller/logout.js => logout.controller.js} (100%) rename src/app/product/{controller/attributeEdit.js => attribute/edit.controller.js} (100%) rename src/app/product/{controller/attributeList.js => attribute/list.controller.js} (100%) rename src/app/product/directive/{guiCustomOptionsManager.js => ot-custom-options-manager.directive.js} (98%) rename src/app/product/{gui/custom_options_manager.html => directive/ot-custom-options-manager.html} (100%) rename src/app/product/{controller/edit.js => edit.controller.js} (98%) rename src/app/product/{controller/list.js => list.controller.js} (100%) rename src/app/reports/{product.js => product.controller.js} (100%) rename src/app/seo/{service/api.js => api.service.js} (100%) rename src/app/seo/{controller/editSeo.js => edit.controller.js} (100%) rename src/app/seo/{controller/edit.js => independent-edit.controller.js} (100%) rename src/app/seo/{controller/list.js => list.controller.js} (100%) rename src/app/seo/{service/seo.js => seo.service.js} (100%) rename src/app/subscriptions/{service/api.js => api.service.js} (100%) rename src/app/subscriptions/{controller/edit.js => edit.controller.js} (100%) rename src/app/subscriptions/{controller/list.js => list.controller.js} (100%) rename src/app/visitor/{controller/addressEdit.js => address/edit.controller.js} (100%) rename src/app/visitor/{controller/addressList.js => address/list.controller.js} (100%) rename src/app/visitor/{controller/attributeEdit.js => attribute/edit.controller.js} (100%) rename src/app/visitor/{controller/attributeList.js => attribute/list.controller.js} (100%) rename src/app/visitor/{controller/visitorEdit.js => edit.controller.js} (100%) rename src/app/visitor/{controller/visitorEmail.js => email.controller.js} (100%) rename src/app/visitor/{send-email.html => email.html} (64%) rename src/app/visitor/{controller/visitorList.js => list.controller.js} (100%) 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 @@

@@ -25,15 +25,15 @@
 
- +
- +
- +
  @@ -81,7 +81,7 @@
- +
diff --git a/src/app/design/directives/guiTableManager.js b/src/app/core/directives/ot-table-manager.directive.js similarity index 99% rename from src/app/design/directives/guiTableManager.js rename to src/app/core/directives/ot-table-manager.directive.js index 66d17c93..2e989d76 100644 --- a/src/app/design/directives/guiTableManager.js +++ b/src/app/core/directives/ot-table-manager.directive.js @@ -1,9 +1,9 @@ /** * Directive used for automatic attributes editor form creation */ -angular.module("designModule") +angular.module("coreModule") -.directive("guiTableManager", [ +.directive("otTableManager", [ "$location", "COUNT_ITEMS_PER_PAGE", function ($location, COUNT_ITEMS_PER_PAGE) { @@ -15,7 +15,7 @@ angular.module("designModule") "buttonData": "=buttons", "mapping": "=mapping" }, - templateUrl: "/views/design/gui/table.html", + templateUrl: "/views/core/directives/ot-table-manager.html", controller: function ($scope) { // Variables var isInit, isSelectedAll, activeFilters; diff --git a/src/app/design/gui/table.html b/src/app/core/directives/ot-table-manager.html similarity index 87% rename from src/app/design/gui/table.html rename to src/app/core/directives/ot-table-manager.html index c46410f9..e55e4201 100644 --- a/src/app/design/gui/table.html +++ b/src/app/core/directives/ot-table-manager.html @@ -28,7 +28,7 @@ - +
@@ -52,19 +52,19 @@
 
- +
- +
- +
- +
@@ -113,7 +113,7 @@
- + diff --git a/src/app/design/directives/validator/between.js b/src/app/core/directives/validator/between.js similarity index 97% rename from src/app/design/directives/validator/between.js rename to src/app/core/directives/validator/between.js index 6efaad8e..8f8a80b9 100644 --- a/src/app/design/directives/validator/between.js +++ b/src/app/core/directives/validator/between.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otBetween", function () { return { diff --git a/src/app/design/directives/validator/date.js b/src/app/core/directives/validator/date.js similarity index 96% rename from src/app/design/directives/validator/date.js rename to src/app/core/directives/validator/date.js index 3911cd4d..ff2cbc23 100644 --- a/src/app/design/directives/validator/date.js +++ b/src/app/core/directives/validator/date.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otDate", function () { return { diff --git a/src/app/design/directives/validator/email.js b/src/app/core/directives/validator/email.js similarity index 96% rename from src/app/design/directives/validator/email.js rename to src/app/core/directives/validator/email.js index 64ca2e81..6273e35c 100644 --- a/src/app/design/directives/validator/email.js +++ b/src/app/core/directives/validator/email.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otEmail", function () { return { diff --git a/src/app/design/directives/validator/len.js b/src/app/core/directives/validator/len.js similarity index 97% rename from src/app/design/directives/validator/len.js rename to src/app/core/directives/validator/len.js index 55a2189d..61a5c5e5 100644 --- a/src/app/design/directives/validator/len.js +++ b/src/app/core/directives/validator/len.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otLen", function () { return { diff --git a/src/app/design/directives/validator/match.js b/src/app/core/directives/validator/match.js similarity index 98% rename from src/app/design/directives/validator/match.js rename to src/app/core/directives/validator/match.js index a4923443..5a38819e 100644 --- a/src/app/design/directives/validator/match.js +++ b/src/app/core/directives/validator/match.js @@ -5,7 +5,7 @@ * match-caseless * not-match */ -angular.module("designModule") +angular.module("coreModule") .directive("otMatch", ['$parse', function($parse) { return { restrict: 'A', diff --git a/src/app/design/directives/validator/number.js b/src/app/core/directives/validator/number.js similarity index 96% rename from src/app/design/directives/validator/number.js rename to src/app/core/directives/validator/number.js index e474203b..a3c28ea3 100644 --- a/src/app/design/directives/validator/number.js +++ b/src/app/core/directives/validator/number.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otNumber", function () { return { diff --git a/src/app/design/directives/validator/password.js b/src/app/core/directives/validator/password.js similarity index 98% rename from src/app/design/directives/validator/password.js rename to src/app/core/directives/validator/password.js index e8d4b3ad..8a2b9a19 100644 --- a/src/app/design/directives/validator/password.js +++ b/src/app/core/directives/validator/password.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otPassword", function() { return { diff --git a/src/app/design/directives/validator/positive.js b/src/app/core/directives/validator/positive.js similarity index 97% rename from src/app/design/directives/validator/positive.js rename to src/app/core/directives/validator/positive.js index ebc0e416..875908c7 100644 --- a/src/app/design/directives/validator/positive.js +++ b/src/app/core/directives/validator/positive.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otPositive", function () { return { diff --git a/src/app/design/directives/validator/price.js b/src/app/core/directives/validator/price.js similarity index 96% rename from src/app/design/directives/validator/price.js rename to src/app/core/directives/validator/price.js index 68c66d88..9c45e09b 100644 --- a/src/app/design/directives/validator/price.js +++ b/src/app/core/directives/validator/price.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otPrice", function () { return { restrict: 'A', diff --git a/src/app/design/directives/validator/regexp.js b/src/app/core/directives/validator/regexp.js similarity index 97% rename from src/app/design/directives/validator/regexp.js rename to src/app/core/directives/validator/regexp.js index 1688adab..62b8924d 100644 --- a/src/app/design/directives/validator/regexp.js +++ b/src/app/core/directives/validator/regexp.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otRegexp", function () { return { diff --git a/src/app/design/directives/validator/sku.js b/src/app/core/directives/validator/sku.js similarity index 97% rename from src/app/design/directives/validator/sku.js rename to src/app/core/directives/validator/sku.js index 4bac9c81..70033436 100644 --- a/src/app/design/directives/validator/sku.js +++ b/src/app/core/directives/validator/sku.js @@ -1,4 +1,4 @@ -angular.module("designModule") +angular.module("coreModule") .directive("otSku", function () { return { diff --git a/src/app/design/image.service.js b/src/app/core/image.service.js similarity index 81% rename from src/app/design/image.service.js rename to src/app/core/image.service.js index 17b00d06..a0e82a63 100644 --- a/src/app/design/image.service.js +++ b/src/app/core/image.service.js @@ -1,6 +1,6 @@ -angular.module('designModule') +angular.module('coreModule') -.factory('designImageService', [ +.factory('coreImageService', [ 'MEDIA_BASE_PATH', function (MEDIA_BASE_PATH) { diff --git a/src/app/design/init.js b/src/app/core/init.js similarity index 86% rename from src/app/design/init.js rename to src/app/core/init.js index 8c5d7d62..46b66b5a 100644 --- a/src/app/design/init.js +++ b/src/app/core/init.js @@ -1,4 +1,4 @@ -angular.module('designModule',[]) +angular.module('coreModule',[]) .constant('MEDIA_BASE_PATH', angular.appConfigValue('general.app.media_path')) .constant('PRODUCT_DEFAULT_IMG', 'placeholder.png') diff --git a/src/app/dashboard/controllers.js b/src/app/dashboard/controller.js similarity index 98% rename from src/app/dashboard/controllers.js rename to src/app/dashboard/controller.js index 8f8bc435..2a9afa7a 100644 --- a/src/app/dashboard/controllers.js +++ b/src/app/dashboard/controller.js @@ -4,7 +4,7 @@ angular.module("dashboardModule") "$scope", "$location", "dashboardStatisticService", - "designImageService", + "coreImageService", "dashboardUtilsService", "$timeout", "moment", @@ -12,7 +12,7 @@ angular.module("dashboardModule") $scope, $location, $statistic, - designImageService, + coreImageService, dashboardUtilsService, $timeout, moment @@ -177,7 +177,7 @@ angular.module("dashboardModule") //TODO: delete this when images are attached to products function getProductImage(image) { - return designImageService.getImage(image); + return coreImageService.getImage(image); }; } diff --git a/src/app/dashboard/init.js b/src/app/dashboard/init.js index cf491b33..f4e98d26 100644 --- a/src/app/dashboard/init.js +++ b/src/app/dashboard/init.js @@ -13,7 +13,7 @@ angular.module('dashboardModule', [ 'categoryModule', 'cmsModule', 'configModule', - 'designModule', + 'coreModule', 'discountsModule', 'impexModule', 'loginModule', diff --git a/src/app/discounts/service/api.js b/src/app/discounts/api.service.js similarity index 100% rename from src/app/discounts/service/api.js rename to src/app/discounts/api.service.js diff --git a/src/app/discounts/controller/edit.js b/src/app/discounts/edit.controller.js similarity index 100% rename from src/app/discounts/controller/edit.js rename to src/app/discounts/edit.controller.js diff --git a/src/app/discounts/edit.html b/src/app/discounts/edit.html index 668ca6e7..7b12bc7a 100644 --- a/src/app/discounts/edit.html +++ b/src/app/discounts/edit.html @@ -127,11 +127,11 @@

Conditions

- - +
@@ -151,11 +151,11 @@

Target Criteria

- - +
diff --git a/src/app/discounts/init.js b/src/app/discounts/init.js index 92aa3e1c..5f509a21 100644 --- a/src/app/discounts/init.js +++ b/src/app/discounts/init.js @@ -1,7 +1,7 @@ /** * Discounts Module */ -angular.module('discountsModule', ['ngRoute', 'designModule']) +angular.module('discountsModule', ['ngRoute', 'coreModule']) .config([ '$routeProvider', diff --git a/src/app/discounts/controller/list.js b/src/app/discounts/list.controller.js similarity index 100% rename from src/app/discounts/controller/list.js rename to src/app/discounts/list.controller.js diff --git a/src/app/impex/service/api.js b/src/app/impex/api.service.js similarity index 100% rename from src/app/impex/service/api.js rename to src/app/impex/api.service.js diff --git a/src/app/impex/init.js b/src/app/impex/init.js index 02c17aa3..162414bf 100644 --- a/src/app/impex/init.js +++ b/src/app/impex/init.js @@ -1,4 +1,4 @@ -angular.module("impexModule", ["ngRoute", "ngResource"]) +angular.module("impexModule", ["ngRoute", "ngResource", "coreModule"]) /* * Basic routing configuration diff --git a/src/app/impex/main.html b/src/app/impex/main.html index fee9ce1f..78c6b47c 100644 --- a/src/app/impex/main.html +++ b/src/app/impex/main.html @@ -9,7 +9,7 @@

- +
@@ -29,14 +29,14 @@

ng-class="{ 'has-error': importMethod && !file }">
- {{ (file && file.name) ? file.name : 'Choose file' }} - +
diff --git a/src/app/login/service/api.js b/src/app/login/api.service.js similarity index 100% rename from src/app/login/service/api.js rename to src/app/login/api.service.js diff --git a/src/app/login/init.js b/src/app/login/init.js index cfdf7779..6d5f6c7d 100644 --- a/src/app/login/init.js +++ b/src/app/login/init.js @@ -1,4 +1,4 @@ -angular.module("loginModule", ["ngRoute", "ngResource"]) +angular.module("loginModule", ["ngRoute", "ngResource", "coreModule"]) /** * Basic routing configuration diff --git a/src/app/login/controller/login.js b/src/app/login/login.controller.js similarity index 100% rename from src/app/login/controller/login.js rename to src/app/login/login.controller.js diff --git a/src/app/login/login.html b/src/app/login/login.html index 2daee8b3..ca41855f 100644 --- a/src/app/login/login.html +++ b/src/app/login/login.html @@ -21,7 +21,7 @@

Login


- +
diff --git a/src/app/login/service/login.js b/src/app/login/login.service.js similarity index 100% rename from src/app/login/service/login.js rename to src/app/login/login.service.js diff --git a/src/app/login/controller/logout.js b/src/app/login/logout.controller.js similarity index 100% rename from src/app/login/controller/logout.js rename to src/app/login/logout.controller.js diff --git a/src/app/order/edit.html b/src/app/order/edit.html index fd74fe40..8afbed4b 100644 --- a/src/app/order/edit.html +++ b/src/app/order/edit.html @@ -18,7 +18,7 @@

- +
diff --git a/src/app/order/init.js b/src/app/order/init.js index 55c45737..c2bb5355 100644 --- a/src/app/order/init.js +++ b/src/app/order/init.js @@ -1,7 +1,7 @@ angular.module("orderModule", [ "ngRoute", "ngResource", - "designModule", + "coreModule", "cmsModule" ]) diff --git a/src/app/order/list.html b/src/app/order/list.html index 0e561acd..2d907ae7 100644 --- a/src/app/order/list.html +++ b/src/app/order/list.html @@ -43,7 +43,7 @@

- + - - +
diff --git a/src/app/product/controller/attributeEdit.js b/src/app/product/attribute/edit.controller.js similarity index 100% rename from src/app/product/controller/attributeEdit.js rename to src/app/product/attribute/edit.controller.js diff --git a/src/app/product/attribute/edit.html b/src/app/product/attribute/edit.html index 92ed09fc..75c50489 100644 --- a/src/app/product/attribute/edit.html +++ b/src/app/product/attribute/edit.html @@ -12,7 +12,7 @@

- +
@@ -63,7 +63,7 @@

ng-model="attribute.Options"/>

- +

diff --git a/src/app/product/controller/attributeList.js b/src/app/product/attribute/list.controller.js similarity index 100% rename from src/app/product/controller/attributeList.js rename to src/app/product/attribute/list.controller.js diff --git a/src/app/product/attribute/list.html b/src/app/product/attribute/list.html index d191b2f8..97e69ac5 100644 --- a/src/app/product/attribute/list.html +++ b/src/app/product/attribute/list.html @@ -4,5 +4,5 @@

Product Attributes

- +
\ No newline at end of file diff --git a/src/app/product/directive/guiCustomOptionsManager.js b/src/app/product/directive/ot-custom-options-manager.directive.js similarity index 98% rename from src/app/product/directive/guiCustomOptionsManager.js rename to src/app/product/directive/ot-custom-options-manager.directive.js index 9adfdbe1..8e606faf 100644 --- a/src/app/product/directive/guiCustomOptionsManager.js +++ b/src/app/product/directive/ot-custom-options-manager.directive.js @@ -1,6 +1,6 @@ angular.module("productModule") -.directive("guiCustomOptionsManager", [function () { +.directive("otCustomOptionsManager", [function () { return { restrict: "E", scope: { @@ -8,7 +8,7 @@ angular.module("productModule") "attribute": "=editorScope", "item": "=item" }, - templateUrl: "/views/product/gui/custom_options_manager.html", + templateUrl: "/views/product/directive/ot-custom-options-manager.html", controller: function ($scope) { var isInit, initData, modifyData, normalizeJSON, getOptions, getOptionLength, cloneRow; diff --git a/src/app/product/gui/custom_options_manager.html b/src/app/product/directive/ot-custom-options-manager.html similarity index 100% rename from src/app/product/gui/custom_options_manager.html rename to src/app/product/directive/ot-custom-options-manager.html diff --git a/src/app/product/controller/edit.js b/src/app/product/edit.controller.js similarity index 98% rename from src/app/product/controller/edit.js rename to src/app/product/edit.controller.js index b4717301..1718c9be 100644 --- a/src/app/product/controller/edit.js +++ b/src/app/product/edit.controller.js @@ -6,9 +6,9 @@ angular.module("productModule") "$location", "$q", "productApiService", -"designImageService", +"coreImageService", "dashboardUtilsService", -function ($scope, $routeParams, $location, $q, productApiService, designImageService, dashboardUtilsService) { +function ($scope, $routeParams, $location, $q, productApiService, coreImageService, dashboardUtilsService) { var productId, getDefaultProduct, addImageManagerAttribute, addStockValues; @@ -287,6 +287,6 @@ function ($scope, $routeParams, $location, $q, productApiService, designImageSer * @returns {string} - full path to image */ $scope.getImage = function (image) { - return designImageService.getImage(image); + return coreImageService.getImage(image); }; }]); diff --git a/src/app/product/edit.html b/src/app/product/edit.html index dcd3b1cf..5c2d7177 100644 --- a/src/app/product/edit.html +++ b/src/app/product/edit.html @@ -10,7 +10,7 @@

- + - + diff --git a/src/app/product/init.js b/src/app/product/init.js index 9b4d9acf..b1196f78 100644 --- a/src/app/product/init.js +++ b/src/app/product/init.js @@ -1,7 +1,7 @@ /** * Products Modules */ -angular.module('productModule', ['ngRoute', 'ngResource', 'designModule']) +angular.module('productModule', ['ngRoute', 'ngResource', 'coreModule']) .config(['$routeProvider', function ($routeProvider) { $routeProvider diff --git a/src/app/product/controller/list.js b/src/app/product/list.controller.js similarity index 100% rename from src/app/product/controller/list.js rename to src/app/product/list.controller.js diff --git a/src/app/product/list.html b/src/app/product/list.html index 863a4bd0..dab44df9 100644 --- a/src/app/product/list.html +++ b/src/app/product/list.html @@ -8,8 +8,8 @@

- + - +
diff --git a/src/app/reports/init.js b/src/app/reports/init.js index 859f9b36..93e57b80 100644 --- a/src/app/reports/init.js +++ b/src/app/reports/init.js @@ -1,15 +1,15 @@ angular.module('reportsModule', [ 'ngRoute', 'ngResource', - 'designModule', + 'coreModule', 'configModule', ]) -.config(["$routeProvider", function($routeProvider) { +.config(['$routeProvider', function($routeProvider) { $routeProvider - .when("/reports/product", { - templateUrl: "/views/reports/product.html", - controller: "reportsProductController" + .when('/reports/product', { + templateUrl: '/views/reports/product.html', + controller: 'reportsProductController' }); }]); diff --git a/src/app/reports/product.js b/src/app/reports/product.controller.js similarity index 100% rename from src/app/reports/product.js rename to src/app/reports/product.controller.js diff --git a/src/app/seo/service/api.js b/src/app/seo/api.service.js similarity index 100% rename from src/app/seo/service/api.js rename to src/app/seo/api.service.js diff --git a/src/app/seo/controller/editSeo.js b/src/app/seo/edit.controller.js similarity index 100% rename from src/app/seo/controller/editSeo.js rename to src/app/seo/edit.controller.js diff --git a/src/app/seo/edit.html b/src/app/seo/edit.html index 3296e125..2f89d1bb 100644 --- a/src/app/seo/edit.html +++ b/src/app/seo/edit.html @@ -12,8 +12,8 @@

- + - +
diff --git a/src/app/seo/controller/edit.js b/src/app/seo/independent-edit.controller.js similarity index 100% rename from src/app/seo/controller/edit.js rename to src/app/seo/independent-edit.controller.js diff --git a/src/app/seo/init.js b/src/app/seo/init.js index 76bbcaf5..b882b197 100644 --- a/src/app/seo/init.js +++ b/src/app/seo/init.js @@ -1,4 +1,4 @@ -angular.module("seoModule", ["ngRoute", "ngResource"]) +angular.module("seoModule", ["ngRoute", "ngResource", "coreModule"]) .config(["$routeProvider", function ($routeProvider) { $routeProvider diff --git a/src/app/seo/controller/list.js b/src/app/seo/list.controller.js similarity index 100% rename from src/app/seo/controller/list.js rename to src/app/seo/list.controller.js diff --git a/src/app/seo/list.html b/src/app/seo/list.html index 13ac01bc..138e389c 100644 --- a/src/app/seo/list.html +++ b/src/app/seo/list.html @@ -7,7 +7,7 @@

- + - + diff --git a/src/app/seo/service/seo.js b/src/app/seo/seo.service.js similarity index 100% rename from src/app/seo/service/seo.js rename to src/app/seo/seo.service.js diff --git a/src/app/subscriptions/service/api.js b/src/app/subscriptions/api.service.js similarity index 100% rename from src/app/subscriptions/service/api.js rename to src/app/subscriptions/api.service.js diff --git a/src/app/subscriptions/controller/edit.js b/src/app/subscriptions/edit.controller.js similarity index 100% rename from src/app/subscriptions/controller/edit.js rename to src/app/subscriptions/edit.controller.js diff --git a/src/app/subscriptions/edit.html b/src/app/subscriptions/edit.html index 4a065de2..93ec8ec1 100644 --- a/src/app/subscriptions/edit.html +++ b/src/app/subscriptions/edit.html @@ -9,7 +9,7 @@

- +
diff --git a/src/app/subscriptions/init.js b/src/app/subscriptions/init.js index a2c1d449..4a5e3ab8 100644 --- a/src/app/subscriptions/init.js +++ b/src/app/subscriptions/init.js @@ -1,7 +1,7 @@ angular.module("subscriptionsModule", [ "ngRoute", "ngResource", - "designModule", + "coreModule", ]) .config(["$routeProvider", function ($routeProvider) { diff --git a/src/app/subscriptions/controller/list.js b/src/app/subscriptions/list.controller.js similarity index 100% rename from src/app/subscriptions/controller/list.js rename to src/app/subscriptions/list.controller.js diff --git a/src/app/subscriptions/list.html b/src/app/subscriptions/list.html index 8478c257..7e129c1b 100644 --- a/src/app/subscriptions/list.html +++ b/src/app/subscriptions/list.html @@ -6,11 +6,11 @@

- + - - + diff --git a/src/app/visitor/controller/addressEdit.js b/src/app/visitor/address/edit.controller.js similarity index 100% rename from src/app/visitor/controller/addressEdit.js rename to src/app/visitor/address/edit.controller.js diff --git a/src/app/visitor/address/edit.html b/src/app/visitor/address/edit.html index 0089d62a..a9e99f3d 100644 --- a/src/app/visitor/address/edit.html +++ b/src/app/visitor/address/edit.html @@ -4,10 +4,10 @@

New address

- + - +


diff --git a/src/app/visitor/controller/addressList.js b/src/app/visitor/address/list.controller.js similarity index 100% rename from src/app/visitor/controller/addressList.js rename to src/app/visitor/address/list.controller.js diff --git a/src/app/visitor/address/list.html b/src/app/visitor/address/list.html index 0af9eead..80df85f6 100644 --- a/src/app/visitor/address/list.html +++ b/src/app/visitor/address/list.html @@ -3,10 +3,10 @@

Addresses

- + - +
diff --git a/src/app/visitor/controller/attributeEdit.js b/src/app/visitor/attribute/edit.controller.js similarity index 100% rename from src/app/visitor/controller/attributeEdit.js rename to src/app/visitor/attribute/edit.controller.js diff --git a/src/app/visitor/attribute/edit.html b/src/app/visitor/attribute/edit.html index 6ed9973f..89c0061a 100644 --- a/src/app/visitor/attribute/edit.html +++ b/src/app/visitor/attribute/edit.html @@ -11,7 +11,7 @@

- +
@@ -51,7 +51,7 @@

data-ng-model="attribute.Editors" data-ng-options="choice for choice in editorsList"> - +

diff --git a/src/app/visitor/controller/attributeList.js b/src/app/visitor/attribute/list.controller.js similarity index 100% rename from src/app/visitor/controller/attributeList.js rename to src/app/visitor/attribute/list.controller.js diff --git a/src/app/visitor/attribute/list.html b/src/app/visitor/attribute/list.html index 773f7f90..8120b1c0 100644 --- a/src/app/visitor/attribute/list.html +++ b/src/app/visitor/attribute/list.html @@ -7,5 +7,5 @@

- +
\ No newline at end of file diff --git a/src/app/visitor/controller/visitorEdit.js b/src/app/visitor/edit.controller.js similarity index 100% rename from src/app/visitor/controller/visitorEdit.js rename to src/app/visitor/edit.controller.js diff --git a/src/app/visitor/edit.html b/src/app/visitor/edit.html index a998c8fc..a45d30c7 100644 --- a/src/app/visitor/edit.html +++ b/src/app/visitor/edit.html @@ -10,12 +10,12 @@

- + - + item="visitor">
diff --git a/src/app/visitor/controller/visitorEmail.js b/src/app/visitor/email.controller.js similarity index 100% rename from src/app/visitor/controller/visitorEmail.js rename to src/app/visitor/email.controller.js diff --git a/src/app/visitor/send-email.html b/src/app/visitor/email.html similarity index 64% rename from src/app/visitor/send-email.html rename to src/app/visitor/email.html index 0e05f997..a1cf4897 100644 --- a/src/app/visitor/send-email.html +++ b/src/app/visitor/email.html @@ -8,10 +8,10 @@

- + - +
diff --git a/src/app/visitor/init.js b/src/app/visitor/init.js index e938fd81..317e0dce 100644 --- a/src/app/visitor/init.js +++ b/src/app/visitor/init.js @@ -4,7 +4,7 @@ angular.module('visitorModule', [ 'ngRoute', 'ngResource', - 'designModule' + 'coreModule' ]) .config([ @@ -36,7 +36,7 @@ angular.module('visitorModule', [ controller: 'visitorAttributeEditController' }) .when('/emails', { - templateUrl: '/views/visitor/send-email.html', + templateUrl: '/views/visitor/email.html', controller: 'visitorEmailController' }); }] diff --git a/src/app/visitor/controller/visitorList.js b/src/app/visitor/list.controller.js similarity index 100% rename from src/app/visitor/controller/visitorList.js rename to src/app/visitor/list.controller.js diff --git a/src/app/visitor/list.html b/src/app/visitor/list.html index 9a4a090f..61756108 100644 --- a/src/app/visitor/list.html +++ b/src/app/visitor/list.html @@ -7,7 +7,7 @@

- + - + From 4d78dcad1026905fb22ee29f02f0df5316739329 Mon Sep 17 00:00:00 2001 From: Adam Knox Date: Wed, 6 Apr 2016 15:37:12 -0400 Subject: [PATCH 3/5] include units sold in reports tooltip --- src/app/reports/product.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/reports/product.controller.js b/src/app/reports/product.controller.js index d46702ba..d6badd37 100644 --- a/src/app/reports/product.controller.js +++ b/src/app/reports/product.controller.js @@ -73,8 +73,8 @@ angular.module('reportsModule') tooltip: { formatter: function() { return [ - this.series.name,': ', - '$',this.y,'' + this.series.name , ': ' , + '' , this.point.units_sold , ' units @ $' , this.y , '' ].join(''); } } @@ -122,7 +122,7 @@ angular.module('reportsModule') return { // sku, units_sold name: product.name, - data: [product.gross_sales] + data: [{y: product.gross_sales, units_sold: product.units_sold}] }; } } From 596d803d3ea32b74ba1ad97813b927094eb189a4 Mon Sep 17 00:00:00 2001 From: Ian Wendt Date: Wed, 6 Apr 2016 12:40:09 -0700 Subject: [PATCH 4/5] Close GH-272: [#116139973] Updated demo prod api url. --- config/demo-prod.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 885cf906b5206062056f17972ab43a8b1d189d9d Mon Sep 17 00:00:00 2001 From: James Vastbinder Date: Wed, 6 Apr 2016 12:43:12 -0700 Subject: [PATCH 5/5] version bump to v1.1.141 for mid-sprint release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {