From e8a2d81009cd5179d41aebb34dbd45fd52dd1def Mon Sep 17 00:00:00 2001 From: Kevin Giszewski Date: Sun, 12 Jan 2014 14:33:09 -0500 Subject: [PATCH] Get Running with the Latest Reorg of stuff --- Gruntfile.js | 8 ++++---- .../{Archetype.controller.js => controller.js} | 4 ++-- ...operty.directive.js => archetypeproperty.js} | 0 app/package.manifest | 17 +++++++---------- app/views/archetype.html | 4 ++-- 5 files changed, 15 insertions(+), 18 deletions(-) rename app/controllers/{Archetype.controller.js => controller.js} (98%) rename app/directives/{Archetype.ArchetypeProperty.directive.js => archetypeproperty.js} (100%) diff --git a/Gruntfile.js b/Gruntfile.js index e952635..58abcbd 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -41,12 +41,12 @@ module.exports = function(grunt) { main: { files: [ {expand: true, cwd: 'app/', src: ['package.manifest'], dest: '<%= dest %>', flatten: true}, - {expand: true, cwd: 'app/views/', src: ['Archetype.html'], dest: '<%= dest %>/views', flatten: true} + {expand: true, cwd: 'app/views/', src: ['archetype.html'], dest: '<%= dest %>/views', flatten: true} ] }, deploy: { files: [ - {expand: true, cwd: '<%= dest %>/', src: ['**'], dest: '<%= grunt.option("target") %>\\App_Plugins\\Archetype', flatten: false}, + {expand: true, cwd: '<%= dest %>/', src: ['**'], dest: '<%= grunt.option("target") %>\\App_Plugins\\Imulus.Archetype', flatten: false}, ] } @@ -76,8 +76,8 @@ module.exports = function(grunt) { }, application: { src: [ - 'app/controllers/Archetype.controller.js', - 'app/directives/Archetype.ArchetypeProperty.directive.js' + 'app/controllers/controller.js', + 'app/directives/archetypeproperty.js' ], dest: '<%= dest %>/js/archetype.js' } diff --git a/app/controllers/Archetype.controller.js b/app/controllers/controller.js similarity index 98% rename from app/controllers/Archetype.controller.js rename to app/controllers/controller.js index 758f977..bb7c326 100644 --- a/app/controllers/Archetype.controller.js +++ b/app/controllers/controller.js @@ -174,10 +174,10 @@ //custom js if ($scope.model.config.customJsPath) { assetsService.loadJs($scope.model.config.customJsPath); - } + } //archetype css - assetsService.loadCss("/App_Plugins/Imulus.Archetype/Archetype.css"); + assetsService.loadCss("/App_Plugins/Imulus.Archetype/css/archetype.css"); //custom css if($scope.model.config.customCssPath) diff --git a/app/directives/Archetype.ArchetypeProperty.directive.js b/app/directives/archetypeproperty.js similarity index 100% rename from app/directives/Archetype.ArchetypeProperty.directive.js rename to app/directives/archetypeproperty.js diff --git a/app/package.manifest b/app/package.manifest index 0088353..2a6744d 100644 --- a/app/package.manifest +++ b/app/package.manifest @@ -4,7 +4,7 @@ alias: "Imulus.Archetype", name: "Imulus Archetype", editor: { - view: "~/App_Plugins/Imulus.Archetype/Views/Archetype.html", + view: "~/App_Plugins/Imulus.Archetype/views/archetype.html", valueType: "JSON" }, prevalues: { @@ -15,7 +15,7 @@ key: "fieldsetModels", view: "textarea", validation: [ - { + { type: "Required" } ] @@ -98,7 +98,7 @@ key: "customJsPath", view: "textstring", validation: [ - + ] }, { @@ -109,24 +109,21 @@ validation: [ ] - } - , + }, { label: "Sortable Options", description: "(Advanced) Override the default sortable controls with a JSON object.", key: "sortableOptions", view: "textarea", - validation: [ + validation: [ ] } ] } } - ] - , + ], javascript: [ - '~/App_Plugins/Imulus.Archetype/Controllers/Archetype.controller.js', - '~/App_Plugins/Imulus.Archetype/Directives/Archetype.ArchetypeProperty.js' + '~/App_Plugins/Imulus.Archetype/js/archetype.js' ] } \ No newline at end of file diff --git a/app/views/archetype.html b/app/views/archetype.html index 6677e71..84c7bb6 100644 --- a/app/views/archetype.html +++ b/app/views/archetype.html @@ -1,13 +1,13 @@ 
-
    +
    • {{fieldsetModel.label}}
    -
+