-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6c4472
commit 06cf34d
Showing
33 changed files
with
29,916 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
# Social-Office-Dashboard-Editor | ||
# Social-Office-Dashboard-Editor | ||
|
||
Provide a ready-to-use UI for designing and viewing dashboards in WinForms, WPF and ASP.NET applications, save and share in a XML file. Users can create dashboards at runtime and persist them in the application database. | ||
|
||
![](docs/img/social-office-dashboard-editor-1.png) | ||
|
||
## Requirements | ||
|
||
- Window 8.1, 10 and up | ||
- .Net Framework 4.7.2 | ||
|
||
## License | ||
|
||
This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 - see the [LICENSE.md](/LICENSE.md) file for details. | ||
|
||
Made with ❤️ by [Javier Cañon](https://www.javiercanon.com). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28307.539 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{66275E70-E2A1-4887-8066-A196E415996D}" | ||
ProjectSection(SolutionItems) = preProject | ||
.gitignore = .gitignore | ||
LICENSE = LICENSE | ||
README.md = README.md | ||
EndProjectSection | ||
EndProject | ||
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "docs", "docs\", "{44A0B7F0-1579-4799-8634-81AED1BAF6C8}" | ||
ProjectSection(WebsiteProperties) = preProject | ||
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" | ||
Debug.AspNetCompiler.VirtualPath = "/localhost_51605" | ||
Debug.AspNetCompiler.PhysicalPath = "docs\" | ||
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_51605\" | ||
Debug.AspNetCompiler.Updateable = "true" | ||
Debug.AspNetCompiler.ForceOverwrite = "true" | ||
Debug.AspNetCompiler.FixedNames = "false" | ||
Debug.AspNetCompiler.Debug = "True" | ||
Release.AspNetCompiler.VirtualPath = "/localhost_51605" | ||
Release.AspNetCompiler.PhysicalPath = "docs\" | ||
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_51605\" | ||
Release.AspNetCompiler.Updateable = "true" | ||
Release.AspNetCompiler.ForceOverwrite = "true" | ||
Release.AspNetCompiler.FixedNames = "false" | ||
Release.AspNetCompiler.Debug = "False" | ||
VWDPort = "51605" | ||
SlnRelativePath = "docs\" | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Winforms", "Winforms", "{699B8D5F-614D-4D25-925B-A57B9505973A}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SO.DashboardEditor.Desktop", "src\SO.DashboardEditor.Desktop\SO.DashboardEditor.Desktop.csproj", "{8536CAF7-5F49-42CE-B52C-DFB02296367B}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{44A0B7F0-1579-4799-8634-81AED1BAF6C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{44A0B7F0-1579-4799-8634-81AED1BAF6C8}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{44A0B7F0-1579-4799-8634-81AED1BAF6C8}.Release|Any CPU.ActiveCfg = Debug|Any CPU | ||
{44A0B7F0-1579-4799-8634-81AED1BAF6C8}.Release|Any CPU.Build.0 = Debug|Any CPU | ||
{8536CAF7-5F49-42CE-B52C-DFB02296367B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8536CAF7-5F49-42CE-B52C-DFB02296367B}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8536CAF7-5F49-42CE-B52C-DFB02296367B}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8536CAF7-5F49-42CE-B52C-DFB02296367B}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{8536CAF7-5F49-42CE-B52C-DFB02296367B} = {699B8D5F-614D-4D25-925B-A57B9505973A} | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {36A65A13-2ABB-421C-A9E8-5B74337F55C5} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
extensions: designer.cs generated.cs | ||
extensions: .cs .cpp .h | ||
// Copyright (c) 2019 Javier Cañon | ||
// https://www.javiercanon.com | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to | ||
// deal in the Software without restriction, including without limitation the | ||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
// sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
// IN THE SOFTWARE. | ||
extensions: .aspx .ascx | ||
<%-- | ||
// Copyright (c) 2019 Javier Cañon | ||
// https://www.javiercanon.com | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to | ||
// deal in the Software without restriction, including without limitation the | ||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
// sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
// IN THE SOFTWARE. | ||
--%> | ||
extensions: .vb | ||
'Sample license text. | ||
extensions: .xml .config .xsd | ||
<!-- | ||
Copyright (c) 2019 Javier Cañon | ||
https://www.javiercanon.com | ||
--> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) 2019 Javier Cañon | ||
https://www.javiercanon.com | ||
--> | ||
<configuration> | ||
<configSections> | ||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> | ||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System"> | ||
<section name="DevExpress.LookAndFeel.Design.AppSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | ||
</sectionGroup> | ||
</configSections> | ||
<applicationSettings> | ||
<DevExpress.LookAndFeel.Design.AppSettings> | ||
<setting name="DefaultAppSkin" serializeAs="String"> | ||
<value>Skin/Seven Classic</value> | ||
</setting> | ||
<setting name="DefaultPalette" serializeAs="String"> | ||
<value> | ||
</value> | ||
</setting> | ||
<setting name="TouchUI" serializeAs="String"> | ||
<value> | ||
</value> | ||
</setting> | ||
<setting name="TouchScaleFactor" serializeAs="String"> | ||
<value> | ||
</value> | ||
</setting> | ||
<setting name="DirectX" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="RegisterUserSkins" serializeAs="String"> | ||
<value> | ||
</value> | ||
</setting> | ||
<setting name="RegisterBonusSkins" serializeAs="String"> | ||
<value>True</value> | ||
</setting> | ||
<setting name="FontBehavior" serializeAs="String"> | ||
<value>UseSegoeUI</value> | ||
</setting> | ||
<setting name="DefaultAppFont" serializeAs="String"> | ||
<value> | ||
</value> | ||
</setting> | ||
<setting name="DPIAwarenessMode" serializeAs="String"> | ||
<value>System</value> | ||
</setting> | ||
</DevExpress.LookAndFeel.Design.AppSettings> | ||
</applicationSettings> | ||
<System.Windows.Forms.ApplicationConfigurationSection> | ||
<add key="DpiAwareness" value="PerMonitorV2" /> | ||
</System.Windows.Forms.ApplicationConfigurationSection> | ||
<appSettings> | ||
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" /> | ||
<add key="DBServer" value="(local)" /> | ||
<add key="Webserver.Development" value="http://localhost:1976/" /> | ||
<add key="Webserver.Localhost" value="http://localhost:1976/" /> | ||
<add key="Webserver.Production" value="https://www.facebook.com/groups/social.office.scrm/" /> | ||
<add key="Logger.LogDebugInfo" value="true" /> | ||
<add key="TEST" value="true" /> | ||
<add key="ClientSettingsProvider.ServiceUri" value="" /> | ||
</appSettings> | ||
<connectionStrings> | ||
<add name="MsSqlServer.Main" connectionString="Data Source=(local);Database=BINumber;Integrated Security=yes;User ID=;Password=;Max Pool Size=300;Connection Timeout=180;" providerName="System.Data.SqlClient" /> | ||
<add name="MsSqlServer.Main.Development" connectionString="Data Source=(local);Database=BINumber;Integrated Security=yes;User ID=;Password=;Max Pool Size=300;Connection Timeout=180;" providerName="System.Data.SqlClient" /> | ||
</connectionStrings> | ||
<log4net> | ||
<appender name="fileLog" type="log4net.Appender.RollingFileAppender"> | ||
<file value="Log.txt" /> | ||
<appendToFile value="true" /> | ||
<maximumFileSize value="10000KB" /> | ||
<rollingStyle value="Size" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date [%thread] %-5level - %message%newline" /> | ||
</layout> | ||
</appender> | ||
<logger name="loggerConsole"> | ||
<appender-ref ref="fileLog" /> | ||
</logger> | ||
</log4net> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||
</startup> | ||
<system.web> | ||
<membership defaultProvider="ClientAuthenticationMembershipProvider"> | ||
<providers> | ||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" /> | ||
</providers> | ||
</membership> | ||
<roleManager defaultProvider="ClientRoleProvider" enabled="true"> | ||
<providers> | ||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" /> | ||
</providers> | ||
</roleManager> | ||
</system.web> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright (c) 2019 Javier Cañon | ||
// https://www.javiercanon.com | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to | ||
// deal in the Software without restriction, including without limitation the | ||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
// sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
// IN THE SOFTWARE. | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Configuration; | ||
|
||
namespace SO.DashboardEditor.Desktop.Models | ||
{ | ||
public static class AppConfiguration | ||
{ | ||
|
||
public static string GetConnectionDBMain() { | ||
|
||
#if DEBUG | ||
return ConfigurationManager.ConnectionStrings["MsSqlServer.Main.Development"].ConnectionString; | ||
#else | ||
return ConfigurationManager.ConnectionStrings["MsSqlServer.Main"].ConnectionString; | ||
#endif | ||
|
||
|
||
|
||
} | ||
|
||
public static string GetWebserverMainURL() | ||
{ | ||
|
||
#if DEBUG | ||
return Program.Configuration.Webserver.URL_Development; | ||
|
||
#else | ||
return Program.Configuration.Webserver.URL_Production; | ||
#endif | ||
|
||
|
||
|
||
} | ||
|
||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
src/SO.DashboardEditor.Desktop/Presenters/BrowserPresenter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Copyright (c) 2019 Javier Cañon | ||
// https://www.javiercanon.com | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to | ||
// deal in the Software without restriction, including without limitation the | ||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
// sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
// IN THE SOFTWARE. | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using SO.DashboardEditor.Desktop.Views.Forms; | ||
using SO.DashboardEditor.Desktop.Views.Forms.Browsers; | ||
|
||
namespace SO.DashboardEditor.Desktop.Presenters | ||
{ | ||
internal static class BrowserPresenter | ||
{ | ||
internal static void Ini(FormBrowser form) | ||
{ | ||
|
||
#if DEBUG | ||
form.webBrowser.AllowNavigation = true; | ||
form.webBrowser.AllowWebBrowserDrop = true; | ||
form.webBrowser.IsWebBrowserContextMenuEnabled = true; | ||
form.webBrowser.ScriptErrorsSuppressed = false; | ||
form.webBrowser.ScrollBarsEnabled = true; | ||
form.webBrowser.WebBrowserShortcutsEnabled = true; | ||
//form.LoadUrl(Program.Configuration.Webserver.Webserver_Development); | ||
#else | ||
form.webBrowser.AllowNavigation = true; | ||
form.webBrowser.AllowWebBrowserDrop = true; | ||
form.webBrowser.IsWebBrowserContextMenuEnabled = false; | ||
form.webBrowser.ScriptErrorsSuppressed = true; | ||
form.webBrowser.ScrollBarsEnabled = true; | ||
form.webBrowser.WebBrowserShortcutsEnabled = true; | ||
//form.LoadUrl(Program.Configuration.Webserver.Webserver_Production); | ||
#endif | ||
} | ||
|
||
|
||
|
||
|
||
} | ||
} |
Oops, something went wrong.