Skip to content

Commit 63c1f5d

Browse files
committed
Renamed plugin SMS.Clickatell > SmartStore.Clickatell
1 parent 1bd1705 commit 63c1f5d

27 files changed

Lines changed: 62 additions & 43 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ private void MigrateInitial()
252252
{ "Payments.AmazonPay", "SmartStore.AmazonPay" },
253253
{ "Developer.DevTools", "SmartStore.DevTools" },
254254
{ "ExternalAuth.Facebook", "SmartStore.FacebookAuth" },
255+
{ "SMS.Clickatell", "SmartStore.Clickatell" },
255256
};
256257

257258
foreach (var name in installedPlugins)

src/Plugins/SMS.Clickatell/Notes.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/Plugins/SMS.Clickatell/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 2 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.Clickatell
11+
{
12+
public class AdminMenu : IMenuProvider
13+
{
14+
public void BuildMenu(TreeNode<MenuItem> pluginsNode)
15+
{
16+
var menuItem = new MenuItem().ToBuilder()
17+
.Text("Clickatell SMS Provider")
18+
.ResKey("Plugins.FriendlyName.Mobile.SMS.Clickatell")
19+
.Icon("send-o")
20+
.Action("ConfigurePlugin", "Plugin", new { systemName = "SmartStore.Clickatell", area = "Admin" })
21+
.ToItem();
22+
23+
pluginsNode.Prepend(menuItem);
24+
}
25+
26+
}
27+
}

src/Plugins/SMS.Clickatell/ClickatellSettings.cs renamed to src/Plugins/SmartStore.Clickatell/ClickatellSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
using SmartStore.Core.Configuration;
33

4-
namespace SmartStore.Plugin.SMS.Clickatell
4+
namespace SmartStore.Clickatell
55
{
66
public class ClickatellSettings : ISettings
77
{

src/Plugins/SMS.Clickatell/ClickatellSMSProvider.cs renamed to src/Plugins/SmartStore.Clickatell/ClickatellSmsProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
using System.Web.Routing;
44
using SmartStore.Core;
55
using SmartStore.Core.Plugins;
6-
using SmartStore.Plugin.SMS.Clickatell.Clickatell;
6+
using SmartStore.Clickatell.Clickatell;
77
using SmartStore.Services.Common;
88
using SmartStore.Services.Localization;
99
using SmartStore.Core.Logging;
1010

11-
namespace SmartStore.Plugin.SMS.Clickatell
11+
namespace SmartStore.Clickatell
1212
{
1313
/// <summary>
1414
/// Represents the Clickatell SMS provider
@@ -76,7 +76,7 @@ public void GetConfigurationRoute(out string actionName, out string controllerNa
7676
{
7777
actionName = "Configure";
7878
controllerName = "SmsClickatell";
79-
routeValues = new RouteValueDictionary() { { "Namespaces", "SmartStore.Plugin.SMS.Clickatell.Controllers" }, { "area", "SMS.Clickatell" } };
79+
routeValues = new RouteValueDictionary() { { "area", "SmartStore.Clickatell" } };
8080
}
8181

8282
/// <summary>

src/Plugins/SMS.Clickatell/Controllers/SmsClickatellController.cs renamed to src/Plugins/SmartStore.Clickatell/Controllers/SmsClickatellController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
using System;
22
using System.Web.Mvc;
33
using SmartStore.Core.Plugins;
4-
using SmartStore.Plugin.Sms.Clickatell.Models;
5-
using SmartStore.Plugin.SMS.Clickatell;
4+
using SmartStore.Clickatell.Models;
5+
using SmartStore.Clickatell;
66
using SmartStore.Services.Configuration;
77
using SmartStore.Services.Localization;
88
using SmartStore.Web.Framework.Controllers;
99

10-
namespace SmartStore.Plugin.Sms.Clickatell.Controllers
10+
namespace SmartStore.Clickatell.Controllers
1111
{
1212

1313
public class SmsClickatellController : PluginControllerBase
@@ -70,7 +70,7 @@ public ActionResult TestSms(SmsClickatellModel model)
7070
}
7171
else
7272
{
73-
var pluginDescriptor = _pluginFinder.GetPluginDescriptorBySystemName("Mobile.SMS.Clickatell");
73+
var pluginDescriptor = _pluginFinder.GetPluginDescriptorBySystemName("SmartStore.Clickatell");
7474
if (pluginDescriptor == null)
7575
throw new Exception("Cannot load the plugin");
7676
var plugin = pluginDescriptor.Instance() as ClickatellSmsProvider;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FriendlyName: Clickatell SMS Provider
2-
SystemName: SMS.Clickatell
2+
SystemName: SmartStore.Clickatell
33
Group: Mobile
4-
Version: 1.4
4+
Version: 1.5
55
MinAppVersion: 2.0.0
66
DisplayOrder: 1
7-
FileName: SmartStore.Plugin.SMS.Clickatell.dll
7+
FileName: SmartStore.Clickatell.dll
88
ResourceRootKey: Plugins.Sms.Clickatell

src/Plugins/SMS.Clickatell/Localization/resources.de-de.xml renamed to src/Plugins/SmartStore.Clickatell/Localization/resources.de-de.xml

File renamed without changes.

src/Plugins/SMS.Clickatell/Localization/resources.en-us.xml renamed to src/Plugins/SmartStore.Clickatell/Localization/resources.en-us.xml

File renamed without changes.

0 commit comments

Comments
 (0)