This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FC24-6741 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit, Input, ViewChild, ElementRef, HostListener } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { FormGroup, FormControl, Validators } from '@angular/forms'; | |
import { KratosUI, KratosNode } from '../../models/kratos.model'; | |
import { ReactiveFormsModule } from '@angular/forms'; | |
import { MaterialModule } from '../material.module'; | |
@Component({ | |
selector: 'swc-auth-registration-form', | |
standalone: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit, Input, ViewChild, ElementRef, HostListener } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { FormGroup, FormControl, Validators } from '@angular/forms'; | |
import { KratosUI, KratosNode } from '../../models/kratos.model'; | |
import { ReactiveFormsModule } from '@angular/forms'; | |
import { MaterialModule } from '../material.module'; | |
@Component({ | |
selector: 'swc-auth-registration-form', | |
standalone: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div *ngFor="let group of objectKeys(formGroups)"> | |
<form #formElement [formGroup]="formGroups[group]" [action]="formData?.action" [method]="formData?.method"> | |
<ng-container *ngFor="let node of formData?.nodes"> | |
<div *ngIf="node.group === group || node.group === 'default'"> | |
<div *ngIf="node.messages.length > 0"> | |
<mat-error> | |
{{ node.messages[0] }} | |
</mat-error> | |
</div> | |
<mat-form-field *ngIf="node.attributes.type !== 'hidden' && node.attributes.type !== 'submit'"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { APP_INITIALIZER, NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { AppComponent } from './app.component'; | |
import { RouterModule } from '@angular/router'; | |
import { appRoutes } from './app.routes'; | |
import { HeaderComponent } from './core/components'; | |
import { SidebarComponent } from './core/components/src/layout/sidebar/sidebar.component'; | |
import { MainLayoutComponent } from './core/components/src/layout/main-layout/main-layout.component'; | |
import { DataAccessUserModule } from '@swc-libs/data-access-user'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Strada</title> | |
<base href="/" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="icon" type="image/x-icon" href="favicon.ico" /> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.envService.load().pipe( | |
first(env => env.googleApiKey != null), | |
map((env) => { | |
const currentLang = 'fr'; //this.languageService.getLanguage(); | |
const currentRegion = 'FR'; //this.languageService.getRegion(); | |
const googleApiKey = env.googleApiKey; // 'AIzaSyBU3fyx7thOvVj4K53uNR3N-c9cOUR_62g'; | |
// const src = `https://maps.googleapis.com/maps/api/js?key=${googleApiKey}&libraries=visualization,places&geometry®ion=${currentRegion}&language=${currentLang}`; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: v0.13.0 | |
dsn: memory | |
serve: | |
public: | |
base_url: http://127.0.0.1:4433/ | |
cors: | |
enabled: true | |
allowed_origins: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This error is caused by a mismatch in the required versions of @angular/compiler by different packages. The | |
root project requires @angular/compiler@~14.2.0, but @angular/[email protected] (which is a peer dependency of | |
@ng-bootstrap/[email protected]) requires @angular/[email protected]. | |
Here are a few potential solutions: | |
1 Update the version of @angular/compiler in your project to 14.3.0 to match the version required by | |
@angular/localize. | |
2 If the first solution is not possible, you could try installing the packages with the --force or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
kratos-migrate: | |
image: oryd/kratos:v1.0.0 | |
environment: | |
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true&mode=rwc | |
volumes: | |
- type: volume | |
source: kratos-sqlite | |
target: /var/lib/sqlite |