Skip to content

Commit 6278b85

Browse files
committed
Js refactoring - custom moved from view to app
1 parent 6b6c6bf commit 6278b85

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

BlogEngine/BlogEngine.NET/AppCode/App_Start/BlogEngineConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ static void RegisterBundles(BundleCollection bundles)
140140
.Include("~/admin/app/controllers/commentFilters.js")
141141
.Include("~/admin/app/controllers/blogRoll.js")
142142
.Include("~/admin/app/controllers/pings.js")
143-
.Include("~/admin/app/controllers/customThemes.js")
144-
.Include("~/admin/app/controllers/customPlugins.js")
143+
.Include("~/admin/app/custom/plugins/pluginsController.js")
144+
.Include("~/admin/app/custom/themes/themesController.js")
145145
.Include("~/admin/app/controllers/package.js")
146146
.Include("~/admin/app/controllers/common.js")
147147
);

BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,13 @@
119119
</ItemGroup>
120120
<ItemGroup>
121121
<Content Include="Account\account.master" />
122-
<Content Include="admin\app\controllers\customPlugins.js" />
123-
<Content Include="admin\app\controllers\customThemes.js" />
122+
<Content Include="admin\app\custom\plugins\pluginsController.js" />
123+
<Content Include="admin\app\custom\plugins\pluginsGallery.html" />
124+
<Content Include="admin\app\custom\plugins\pluginsList.html" />
125+
<Content Include="admin\app\custom\themes\themesController.js" />
126+
<Content Include="admin\app\custom\themes\themesGallery.html" />
127+
<Content Include="admin\app\custom\themes\themesList.html" />
128+
<Content Include="admin\app\custom\widgets\widgetsList.html" />
124129
<Content Include="admin\themes\standard\css\01.main.css" />
125130
<Content Include="admin\themes\standard\css\02.nav.css" />
126131
<Content Include="admin\themes\standard\css\03.header.css" />
@@ -135,10 +140,6 @@
135140
<Content Include="admin\themes\standard\css\12.comments.css" />
136141
<Content Include="admin\themes\standard\img\logo-sidebar.png" />
137142
<Content Include="admin\themes\standard\img\profile.png" />
138-
<Content Include="admin\views\custom\plugins\gallery.html" />
139-
<Content Include="admin\views\custom\plugins\local.html" />
140-
<Content Include="admin\views\custom\themes\gallery.html" />
141-
<Content Include="admin\views\custom\themes\local.html" />
142143
<Content Include="App_Data\posts\f39c3289-e861-48f7-a4b7-edaaffe6f6dc.xml" />
143144
<Content Include="Content\images\blog\icon-left.svg" />
144145
<Content Include="Content\images\blog\icon-pass.svg" />
@@ -1567,7 +1568,6 @@
15671568
<Content Include="admin\views\content\pages.html" />
15681569
<Content Include="admin\views\content\posts.html" />
15691570
<Content Include="admin\views\content\tags.html" />
1570-
<Content Include="admin\views\custom\widgets.html" />
15711571
<Content Include="admin\views\dashboard.html" />
15721572
<Content Include="admin\views\settings\advanced.html" />
15731573
<Content Include="admin\views\settings\basic.html" />

BlogEngine/BlogEngine.NET/admin/app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
.when("/content/tags", { templateUrl: "views/content/tags.html" })
1414
.when("/content/comments/filters", { templateUrl: "views/content/filters.html" })
1515

16-
.when("/custom/plugins", { templateUrl: "views/custom/plugins/local.html" })
17-
.when("/custom/plugins/gallery", { templateUrl: "views/custom/plugins/gallery.html" })
18-
.when("/custom/themes", { templateUrl: "views/custom/themes/local.html" })
19-
.when("/custom/themes/gallery", { templateUrl: "views/custom/themes/gallery.html" })
20-
.when("/custom/widgets", { templateUrl: "views/custom/widgets.html" })
16+
.when("/custom/plugins", { templateUrl: "app/custom/plugins/pluginsList.html" })
17+
.when("/custom/plugins/gallery", { templateUrl: "app/custom/plugins/pluginsGallery.html" })
18+
.when("/custom/themes", { templateUrl: "app/custom/themes/themesList.html" })
19+
.when("/custom/themes/gallery", { templateUrl: "app/custom/themes/themesGallery.html" })
20+
.when("/custom/widgets", { templateUrl: "app/custom/widgets/widgetsList.html" })
2121

2222
.when("/security/profile", { templateUrl: "views/security/profile.html" })
2323
.when("/security/roles", { templateUrl: "views/security/roles.html" })

BlogEngine/BlogEngine.NET/admin/views/custom/widgets.html renamed to BlogEngine/BlogEngine.NET/admin/app/custom/widgets/widgetsList.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div data-ng-controller="CustomController">
1+
<div data-ng-controller="CustomWidgetsController">
22
<div class="page-header clearfix">
33
<h2 class="page-title pull-left">
44
<a href="#" class="help-link" data-title=""><i class="fa fa-question-circle"></i></a>

0 commit comments

Comments
 (0)