Get Running with the Latest Reorg of stuff

This commit is contained in:
Kevin Giszewski
2014-01-12 14:33:09 -05:00
parent e44be56fb1
commit e8a2d81009
5 changed files with 15 additions and 18 deletions
+4 -4
View File
@@ -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'
}
@@ -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)
+7 -10
View File
@@ -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'
]
}
+2 -2
View File
@@ -1,13 +1,13 @@
<div class="archetypeEditor ng-class:model.config.customCssClass" ng-controller="Imulus.ArchetypeController">
<textarea class="archetypeDeveloperModel" ng-show="model.config.developerMode" ng-model="archetypeRenderModel"></textarea>
<div class="archetypeFieldsetToolbar" ng-show="model.config.fieldsetModels.length > 1 && model.config.hideFieldsetToolbar != '1'">
<ul>
<ul>
<li ng-repeat="fieldsetModel in model.config.fieldsetModels" ng-click="addRow(fieldsetModel.alias)">
<img ng-src='{{fieldsetModel.icon}}' title="{{fieldsetModel.tooltip}}" />
<span>{{fieldsetModel.label}}</span>
</li>
</ul>
</div>
</div>
<ul ui-sortable="sortableOptions" ng-model="archetypeRenderModel.fieldsets">
<li ng-repeat="fieldset in archetypeRenderModel.fieldsets" ng-hide="fieldset.remove">
<fieldset ng-class="fieldset.alias" ng-init="fieldsetConfigModel=getConfigFieldsetByAlias(fieldset.alias)">