From 01407af633e7b840e0b813d0af16328191b2d826 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Mon, 23 Mar 2020 19:39:48 +0100 Subject: [PATCH] namespacing --- unjo.Web/Index.cshtml | 14 +++----------- unjo.Web/Sections/DashboardSection.cs | 2 +- unjo.Web/Sections/ListsSection.cs | 2 +- unjo.Web/Sections/MediaSection.cs | 2 +- unjo.Web/Sections/PagesSection.cs | 2 +- unjo.Web/Sections/SettingsSection.cs | 2 +- unjo.Web/wipe.js | 25 +++++++++++++++++++++++++ 7 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 unjo.Web/wipe.js diff --git a/unjo.Web/Index.cshtml b/unjo.Web/Index.cshtml index e800b596..d48df025 100644 --- a/unjo.Web/Index.cshtml +++ b/unjo.Web/Index.cshtml @@ -11,22 +11,14 @@ - - - - - - - - - @* + - *@ + unjo
- @**@ + \ No newline at end of file diff --git a/unjo.Web/Sections/DashboardSection.cs b/unjo.Web/Sections/DashboardSection.cs index fc1a7710..9f2b5e68 100644 --- a/unjo.Web/Sections/DashboardSection.cs +++ b/unjo.Web/Sections/DashboardSection.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using unjo.Core; -using unjo.Core.Entities.Sections; +using unjo.Core.Entities; namespace unjo.Web.Sections { diff --git a/unjo.Web/Sections/ListsSection.cs b/unjo.Web/Sections/ListsSection.cs index 26382f82..1f8353b5 100644 --- a/unjo.Web/Sections/ListsSection.cs +++ b/unjo.Web/Sections/ListsSection.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using unjo.Core; -using unjo.Core.Entities.Sections; +using unjo.Core.Entities; namespace unjo.Web.Sections { diff --git a/unjo.Web/Sections/MediaSection.cs b/unjo.Web/Sections/MediaSection.cs index a7a6e52f..47edaa5c 100644 --- a/unjo.Web/Sections/MediaSection.cs +++ b/unjo.Web/Sections/MediaSection.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using unjo.Core; -using unjo.Core.Entities.Sections; +using unjo.Core.Entities; namespace unjo.Web.Sections { diff --git a/unjo.Web/Sections/PagesSection.cs b/unjo.Web/Sections/PagesSection.cs index 8855893b..efde1514 100644 --- a/unjo.Web/Sections/PagesSection.cs +++ b/unjo.Web/Sections/PagesSection.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using unjo.Core; -using unjo.Core.Entities.Sections; +using unjo.Core.Entities; namespace unjo.Web.Sections { diff --git a/unjo.Web/Sections/SettingsSection.cs b/unjo.Web/Sections/SettingsSection.cs index 4ca56bb0..04a36cde 100644 --- a/unjo.Web/Sections/SettingsSection.cs +++ b/unjo.Web/Sections/SettingsSection.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using unjo.Core; -using unjo.Core.Entities.Sections; +using unjo.Core.Entities; namespace unjo.Web.Sections { diff --git a/unjo.Web/wipe.js b/unjo.Web/wipe.js new file mode 100644 index 00000000..bbf58f9b --- /dev/null +++ b/unjo.Web/wipe.js @@ -0,0 +1,25 @@ +const fs = require('fs'); + +const wipeDependencies = () => +{ + const file = fs.readFileSync('package.json'); + const content = JSON.parse(file); + for (const devDep in content.devDependencies) + { + content.devDependencies[devDep] = '*'; + } + for (const dep in content.dependencies) + { + content.dependencies[dep] = '*'; + } + fs.writeFileSync('package.json', JSON.stringify(content)); +}; + +if (require.main === module) +{ + wipeDependencies(); +} +else +{ + module.exports = wipeDependencies; +} \ No newline at end of file