feat(front-end): ssr implementation #41
@@ -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: [
|
||||||
|
|||||||
@@ -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"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user