Skip to content

Commit

Permalink
Update embedded resources in project file (#108)
Browse files Browse the repository at this point in the history
* Add all files in wwwroot folder as embedded resoource
* Add *.tpl files in Templates\Email folder as embedded resource
* Append versions to stylesheet and script links
  • Loading branch information
axunonb authored Aug 26, 2023
1 parent 256b2e1 commit 56a64fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions League.Demo/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<meta name="description" content="@ViewData.Description()" />
}
<partial name="@League.Views.ViewNames.Shared._FavIcons" />
<link rel="stylesheet" href="~/lib/bootstrap/bootstrap.min.css"> @* embedded resource *@
<link rel="stylesheet" href="~/css/site.min.css" /> @* embedded resource *@
<link rel="stylesheet" href="~/lib/bootstrap/bootstrap.min.css" asp-append-version="true"> @* embedded resource *@
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true"/> @* embedded resource *@
<style type="text/css">
.site-sticky-top {
position: -webkit-sticky;
Expand Down
12 changes: 2 additions & 10 deletions League/League.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,8 @@ Localizations for English and German are included. The library is in operation o
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Templates\Email\*.tpl" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Templates\Email\AnnounceNextMatchTxt\en.tpl" />
<EmbeddedResource Include="Templates\Email\AnnounceNextMatchTxt\de.tpl" />
<EmbeddedResource Include="Templates\Email\RemindMatchResultTxt\en.tpl" />
<EmbeddedResource Include="Templates\Email\RemindMatchResultTxt\de.tpl" />
<EmbeddedResource Include="Templates\Email\UrgeMatchResultTxt\en.tpl" />
<EmbeddedResource Include="Templates\Email\UrgeMatchResultTxt\de.tpl" />
<EmbeddedResource Include="wwwroot\**\*" />
<EmbeddedResource Include="Templates\Email\**\*.tpl" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion League/Styles/bootstrap/_custom_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $table-bg: $light;
// Body
//
// Settings for the `<body>` element.
$body-bg: $white; /* $body-bg is used in many other components */
$body-bg: $white; // $body-bg is used in many other components
$body-color: $black;

// Fonts
Expand Down
2 changes: 1 addition & 1 deletion League/Styles/site/site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$body-width: 60rem;

body {
background-color: $gray-500; /* override $body-bg for just this element */
background-color: $gray-500; // override $body-bg for just this element
}

.form-select:focus {
Expand Down

0 comments on commit 56a64fc

Please sign in to comment.