From 713ec1b373b234a7801aeed2630377ff63195b8a Mon Sep 17 00:00:00 2001 From: sbwalker Date: Fri, 29 Aug 2025 16:33:51 -0400 Subject: [PATCH] move default template static assets --- .../[Owner].Module.[Module] => }/Module.css | 0 .../[Owner].Module.[Module] => }/Module.js | 0 .../Server/wwwroot/_content/Placeholder.txt | 11 -- .../Themes/[Owner].Theme.[Theme]/Theme.css | 123 ------------------ 4 files changed, 134 deletions(-) rename Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/{Modules/[Owner].Module.[Module] => }/Module.css (100%) rename Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/{Modules/[Owner].Module.[Module] => }/Module.js (100%) delete mode 100644 Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/_content/Placeholder.txt delete mode 100644 Oqtane.Server/wwwroot/Themes/Templates/External/Client/wwwroot/Themes/[Owner].Theme.[Theme]/Theme.css diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.css b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Module.css similarity index 100% rename from Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.css rename to Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Module.css diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.js b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Module.js similarity index 100% rename from Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.js rename to Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Module.js diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/_content/Placeholder.txt b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/_content/Placeholder.txt deleted file mode 100644 index 5a324d79..00000000 --- a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/_content/Placeholder.txt +++ /dev/null @@ -1,11 +0,0 @@ -The _content folder should only contain static resources from shared razor component libraries (RCLs). Static resources can be extracted from shared RCL Nuget packages by executing a Publish task on the module's Server project to a local folder and copying the files from the _content folder which is created. Each shared RCL would have its own appropriately named subfolder within the module's _content folder. - -ie. - -/_content - /Radzen.Blazor - /css - /fonts - /syncfusion.blazor - /scripts - /styles diff --git a/Oqtane.Server/wwwroot/Themes/Templates/External/Client/wwwroot/Themes/[Owner].Theme.[Theme]/Theme.css b/Oqtane.Server/wwwroot/Themes/Templates/External/Client/wwwroot/Themes/[Owner].Theme.[Theme]/Theme.css deleted file mode 100644 index 2a6101ef..00000000 --- a/Oqtane.Server/wwwroot/Themes/Templates/External/Client/wwwroot/Themes/[Owner].Theme.[Theme]/Theme.css +++ /dev/null @@ -1,123 +0,0 @@ -/* Oqtane Styles */ - -body { - padding-top: 7rem; -} - -/* App Logo */ -.app-logo .img-fluid { - max-height: 90px; - padding: 0 5px 0 5px; -} - -.table > :not(caption) > * > * { - box-shadow: none; -} - -.table .form-control { - background-color: #ffffff !important; - border-width: 0.5px !important; - border-bottom-color: #ccc !important; -} - -.table .form-select { - background-color: #ffffff !important; - border-width: 0.5px !important; - border-bottom-color: #ccc !important; -} - -.table .btn-primary { - background-color: var(--bs-primary); -} - -.table .btn-secondary { - background-color: var(--bs-secondary); -} - -.alert-dismissible .btn-close { - z-index: 1; -} - -.controls { - z-index: 2000; - padding-top: 15px; - padding-bottom: 15px; - margin-right: 10px; -} - -.app-menu .nav-item { - font-size: 0.9rem; - padding-bottom: 0.5rem; - white-space: nowrap; -} - -.app-menu .nav-item a { - border-radius: 4px; - height: 3rem; - display: flex; - align-items: center; - line-height: 3rem; - padding-left: 1rem; -} - -.app-menu .nav-item a.active { - background-color: rgba(255,255,255,0.25); - color: white; -} - -.app-menu .nav-item a:hover { - background-color: rgba(255,255,255,0.1); - color: white; -} - -.app-menu .nav-link .oi { - width: 1.5rem; - font-size: 1.1rem; - vertical-align: text-top; - top: -2px; -} - -.navbar-toggler { - background-color: rgba(255, 255, 255, 0.1); - margin: .5rem; -} - -div.app-moduleactions a.dropdown-toggle, div.app-moduleactions div.dropdown-menu { - color: #000000; -} - -.dropdown-menu span { - mix-blend-mode: difference; -} - -@media (max-width: 767.98px) { - - .app-menu { - width: 100%; - } - - .navbar { - position: fixed; - top: 60px; - width: 100%; - } - - .controls { - height: 60px; - top: 15px; - position: fixed; - top: 0px; - width: 100%; - background-color: rgb(0, 0, 0); - } - - .controls-group { - float: right; - margin-right: 25px; - } - - .content { - position: relative; - top: 60px; - } -}