feat(front-end): ssr implementation #41

Merged
JoeKung merged 4 commits from feat/ssr into dev 2026-03-11 16:59:22 +01:00
5 changed files with 24 additions and 10 deletions
Showing only changes of commit 502126c915 - Show all commits

View File

@@ -17,7 +17,10 @@ import {
TranslateHttpLoader, TranslateHttpLoader,
} from '@ngx-translate/http-loader'; } from '@ngx-translate/http-loader';
import { adminAuthInterceptor } from './core/interceptors/admin-auth.interceptor'; import { adminAuthInterceptor } from './core/interceptors/admin-auth.interceptor';
import { provideClientHydration, withEventReplay } from '@angular/platform-browser'; import {
provideClientHydration,
withEventReplay,
} from '@angular/platform-browser';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [

View File

@@ -929,7 +929,9 @@
</option> </option>
<option <option
*ngFor=" *ngFor="
let option of materialColorOptions(material.materialCode) let option of materialColorOptions(
material.materialCode
)
" "
[ngValue]="option.key" [ngValue]="option.key"
> >

View File

@@ -817,7 +817,11 @@ export class AdminShopComponent implements OnInit, OnDestroy {
return; return;
} }
if (!this.confirmBrowser('Rimuovere il modello 3D associato a questo prodotto?')) { if (
!this.confirmBrowser(
'Rimuovere il modello 3D associato a questo prodotto?',
)
) {
return; return;
} }

View File

@@ -134,7 +134,8 @@ export class ContactFormComponent implements OnDestroy {
return { return {
file: f, file: f,
type, type,
url: this.isBrowser && this.shouldCreatePreview(type) url:
this.isBrowser && this.shouldCreatePreview(type)
? URL.createObjectURL(f) ? URL.createObjectURL(f)
: undefined, : undefined,
}; };
@@ -192,7 +193,8 @@ export class ContactFormComponent implements OnDestroy {
const preview: FilePreview = { const preview: FilePreview = {
file, file,
type, type,
url: this.isBrowser && this.shouldCreatePreview(type) url:
this.isBrowser && this.shouldCreatePreview(type)
? URL.createObjectURL(file) ? URL.createObjectURL(file)
: undefined, : undefined,
}; };

View File

@@ -1,4 +1,7 @@
import { BootstrapContext, bootstrapApplication } from '@angular/platform-browser'; import {
BootstrapContext,
bootstrapApplication,
} from '@angular/platform-browser';
import { AppComponent } from './app/app.component'; import { AppComponent } from './app/app.component';
import { config } from './app/app.config.server'; import { config } from './app/app.config.server';