Skip to content

Commit fca158a

Browse files
committed
Renamed DevTools > SmartStore.DevTools
1 parent c71941c commit fca158a

34 files changed

Lines changed: 286 additions & 108 deletions

CREDITS.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
SmartStore.NET
22
Copyright 1999-2014 SmartStore AG
3-
http://www.smartstore.com | http://smartstore.codeplex.com
3+
http://www.smartstore.com | https://github.com/smartstoreag/SmartStoreNET
44

55

6-
SmartStore.NET is a derivation of the ASP.NET open source e-commerce solution
6+
SmartStore.NET is a fork of the ASP.NET open source e-commerce solution
77
nopCommerce (http://www.nopcommerce.com).
88

99
SmartStore.NET includes works distributed under the licenses listed below.

src/Libraries/SmartStore.Core/Packaging/Updater/AppUpdater.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ private void MigrateInitial()
249249
{ "PromotionFeed.Froogle", "SmartStore.GoogleMerchantCenter" },
250250
{ "Payments.AccardaKar", "SmartStore.AccardaKar" },
251251
{ "Payments.AmazonPay", "SmartStore.AmazonPay" },
252+
{ "Developer.DevTools", "SmartStore.DevTools" },
252253
};
253254

254255
foreach (var name in installedPlugins)

src/Libraries/SmartStore.Data/Migrations/201406262150229_Providers.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public void MigrateLocaleResources(LocaleResourcesBuilder builder)
7171
builder.AddOrUpdate("Admin.PromotionFeeds", "Promotion feeds", "Promotion Feeds");
7272

7373
// some admin menu renaming / new entries
74-
builder.AddOrUpdate("Admin.Promotions").Value("de", "Marketing");
7574
builder.AddOrUpdate("Admin.Configuration.Tax.Providers.Fields.MarkAsPrimaryProvider").Value("de", "Als Standard festlegen");
7675
builder.AddOrUpdate("Admin.Common.Activate").Value("de", "Aktivieren");
7776
builder.AddOrUpdate("Admin.Configuration.ActivityLog.ActivityLog").Value("de", "Aktivitätslog");

src/Libraries/SmartStore.Data/Migrations/201410091620122_NewRes.Designer.cs

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
namespace SmartStore.Data.Migrations
2+
{
3+
using System;
4+
using System.Data.Entity.Migrations;
5+
using SmartStore.Data.Setup;
6+
7+
public partial class NewRes : DbMigration, ILocaleResourcesProvider, IDataSeeder<SmartObjectContext>
8+
{
9+
public override void Up()
10+
{
11+
}
12+
13+
public override void Down()
14+
{
15+
}
16+
17+
public bool RollbackOnFailure
18+
{
19+
get { return false; }
20+
}
21+
22+
public void Seed(SmartObjectContext context)
23+
{
24+
context.MigrateLocaleResources(MigrateLocaleResources);
25+
}
26+
27+
public void MigrateLocaleResources(LocaleResourcesBuilder builder)
28+
{
29+
builder.AddOrUpdate("Admin.Promotions").Value("de", "Marketing");
30+
builder.AddOrUpdate("Admin.Plugins.Manage",
31+
"Manage plugins",
32+
"Plugins verwalten");
33+
}
34+
}
35+
}

src/Libraries/SmartStore.Data/Migrations/201410091620122_NewRes.resx

Lines changed: 126 additions & 0 deletions
Large diffs are not rendered by default.

src/Libraries/SmartStore.Data/SmartStore.Data.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@
191191
<Compile Include="Migrations\201409150936394_CustomerNameFormat.Designer.cs">
192192
<DependentUpon>201409150936394_CustomerNameFormat.cs</DependentUpon>
193193
</Compile>
194+
<Compile Include="Migrations\201410091620122_NewRes.cs" />
195+
<Compile Include="Migrations\201410091620122_NewRes.Designer.cs">
196+
<DependentUpon>201410091620122_NewRes.cs</DependentUpon>
197+
</Compile>
194198
<Compile Include="Setup\Builder\SettingsBuilder.cs" />
195199
<Compile Include="Setup\Builder\SettingsMigrator.cs" />
196200
<Compile Include="Setup\DbMigrationContext.cs" />
@@ -389,6 +393,9 @@
389393
<EmbeddedResource Include="Migrations\201409150936394_CustomerNameFormat.resx">
390394
<DependentUpon>201409150936394_CustomerNameFormat.cs</DependentUpon>
391395
</EmbeddedResource>
396+
<EmbeddedResource Include="Migrations\201410091620122_NewRes.resx">
397+
<DependentUpon>201410091620122_NewRes.cs</DependentUpon>
398+
</EmbeddedResource>
392399
<EmbeddedResource Include="Sql\Indexes.sql" />
393400
<EmbeddedResource Include="Sql\StoredProcedures.sql" />
394401
</ItemGroup>

src/Plugins/Developer.DevTools/AdminMenu.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Web.Routing;
6+
using System.Web.Mvc;
7+
using SmartStore.Web.Framework.UI;
8+
using SmartStore.Collections;
9+
10+
namespace SmartStore.DevTools
11+
{
12+
public class AdminMenu : IMenuProvider
13+
{
14+
public void BuildMenu(TreeNode<MenuItem> pluginsNode)
15+
{
16+
var menuItem = new MenuItem().ToBuilder()
17+
.Text("Developer Tools")
18+
.ResKey("")
19+
.Icon("code")
20+
.Action("ConfigurePlugin", "Plugin", new { systemName = "SmartStore.DevTools", area = "Admin" })
21+
.ToItem();
22+
23+
pluginsNode.Prepend(menuItem);
24+
}
25+
26+
}
27+
}

src/Plugins/Developer.DevTools/Controllers/DevToolsController.cs renamed to src/Plugins/SmartStore.DevTools/Controllers/DevToolsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using SmartStore.Web.Framework.Controllers;
1111
using SmartStore.Web.Framework.Settings;
1212

13-
namespace SmartStore.Plugin.Developer.DevTools.Controllers
13+
namespace SmartStore.DevTools.Controllers
1414
{
1515

1616
public class DevToolsController : SmartController

0 commit comments

Comments
 (0)