Skip to content

Commit

Permalink
feat: additional minor template updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Oct 11, 2024
1 parent ea3c130 commit 409f994
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<DotNetPackageVersionSpec>6.0.*</DotNetPackageVersionSpec>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<!-- TargetFramework is empty for projects that aren't multi-targeting (i.e. the playground projects) -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == '' ">
<DotNetPackageVersionSpec>8.0.10</DotNetPackageVersionSpec>
</PropertyGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion playground/Coalesce.Web.Vue3/Coalesce.Web.Vue3.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>

<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"typescript.tsdk": "Coalesce.Starter.Vue.Web\\node_modules\\typescript\\lib",
"dotnet.defaultSolution": "Coalesce.Starter.Vue.sln",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Coalesce.Starter.Vue.Data.Models;
[Create(nameof(Permission.UserAdmin))]
[Edit(nameof(Permission.UserAdmin))]
[Delete(nameof(Permission.UserAdmin))]
[Description("Roles are groups of permissions, analagous to job titles or functions.")]
[Description("Roles are groups of permissions, analogous to job titles or functions.")]
public class Role
#if Tenancy
: IdentityRole, ITenanted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"dotnet.defaultSolution": "../Coalesce.Starter.Vue.sln",
"dotnet.automaticallyCreateSolutionInWorkspace": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"dotnet.automaticallyCreateSolutionInWorkspace": false,
"cSpell.words": ["Vite", "unplugin", "iconsets", "viewmodels", "composables"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ [FromServices] IWebHostEnvironment hostingEnvironment
string contents = await reader.ReadToEndAsync();

// OPTIONAL: Inject settings or other variables into index.html here.
// These will then be available as global variables in your Vue app:
// These will then be available as global variables in your Vue app.
// Declare them as globals in env.d.ts.
string headPrepend = $"""
<script>
ASPNETCORE_ENVIRONMENT="{JsEncode(hostingEnvironment.EnvironmentName)}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/// <reference types="vitest/globals" />

declare const BUILD_DATE: Date | null | undefined;
declare const ASPNETCORE_ENVIRONMENT: string;

0 comments on commit 409f994

Please sign in to comment.