Skip to content

Commit

Permalink
Ng update (#1097)
Browse files Browse the repository at this point in the history
* Temp

* Temp

* Update

* Temp

* Fix track-by

* Build fixes

* Migration to new flow.

* More manual fixes.

* Reformat templates.

* Fix tests

* Improve tests

* Revert change.
  • Loading branch information
SebastianStehle authored Jun 1, 2024
1 parent 75686ef commit bee3381
Show file tree
Hide file tree
Showing 527 changed files with 26,559 additions and 26,910 deletions.
18 changes: 0 additions & 18 deletions backend/src/Squidex.Web/BuilderExtensions.cs

This file was deleted.

2 changes: 2 additions & 0 deletions backend/src/Squidex.Web/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public static class Constants

public const string PrefixIdentityServer = "/identity-server";

public const string PrefixSignin = "/signin";

public const string ScopePermissions = "permissions";

public const string ScopeProfile = "squidex-profile";
Expand Down
10 changes: 5 additions & 5 deletions backend/src/Squidex/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ public void Configure(IApplicationBuilder app)
options.Path = "/api/swagger/v1/swagger.json";
});

if (app.ApplicationServices.GetRequiredService<IWebHostEnvironment>().IsDevelopment())
{
app.UseWhenPath(Constants.PrefixIdentityServer, builder =>
app.UseWhen(c =>
c.Request.Path.Value?.StartsWith(Constants.PrefixIdentityServer, StringComparison.OrdinalIgnoreCase) == true ||
c.Request.Path.Value?.StartsWith(Constants.PrefixSignin, StringComparison.OrdinalIgnoreCase) == true,
builder =>
{
builder.UseExceptionHandler("/identity-server/error");
});
}

app.UseWhenPath(Constants.PrefixApi, builder =>
app.UseWhen(c => c.Request.Path.StartsWithSegments(Constants.PrefixApi, StringComparison.OrdinalIgnoreCase), builder =>
{
builder.UseSquidexCacheKeys();
builder.UseSquidexExceptionHandling();
Expand Down
20 changes: 20 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"plugins": ["squidex-prettier-plugin-organize-attributes"],
"overrides": [
{
"files": "*.html",
"options": {
"attributeGroups": ["$ANGULAR"],
"attributeIgnoreChars": "[]()*",
"attributeSort": "ASC",
"parser": "angular",
"printWidth": 140,
"bracketSameLine": true,
"bracketSpacing": true,
"singleAttributePerLine": false,
"tabWidth": 4
}
}
],
"tabWidth": 4
}
10 changes: 9 additions & 1 deletion frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
"outputHashing": "all",
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
},
},
"development": {
"extractLicenses": false,
Expand Down
Loading

0 comments on commit bee3381

Please sign in to comment.