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
{ | |
"__FYI__": "THIS FILE IS USED TO GENERATING A SUBFONT ON PHOSPHOR ICONS", | |
"address-book": "e900", | |
"airplane": "e901", | |
"airplane-in-flight": "e902", | |
"airplane-landing": "e903", | |
"airplane-takeoff": "e904", | |
"airplane-tilt": "e905", | |
"airplay": "e906", | |
"air-traffic-control": "e907", |
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
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class AuthState { | |
private authService = inject(AuthService); | |
private router = inject(Router); | |
private tokenStorage = localStorage.get('token') ?? null; | |
private activeUserStorage = JSON.parse(localStorage.get('activeUser')) ?? {}; | |
private isLoggedIn = signal<boolean>(this.tokenStorage ? true : false); |
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
<mat-accordion> | |
@for (some of someArr; track some.id) { | |
<mat-expansion-panel #mep="matExpansionPanel"> | |
<mat-expansion-panel-header> | |
<mat-panel-title> | |
{{ some.title }} | |
</mat-panel-title> | |
</mat-expansion-panel-header> | |
@defer (when mep.expanded) { |
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
export const baseAppConfig: ApplicationConfig = { | |
providers: [ | |
provideRouter(routes, withComponentInputBinding()) | |
], | |
}; | |
export const appConfig: ApplicationConfig = mergeApplicationConfig(baseAppConfig, { | |
providers: [provideRouter(routes, withComponentInputBinding(), withViewTransitions())] | |
}); |
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
# 2 Stage build install sharp using npm | |
FROM node:20-bullseye-slim as installSharp | |
WORKDIR /app | |
COPY package.json package-lock.json ./ | |
RUN npm i sharp | |
# Install all deps using bun and copy the | |
# sharp install from first stage | |
FROM oven/bun as base |
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
FROM node:20 as base | |
# Create app directory | |
WORKDIR /app | |
# Copy lock files | |
COPY package.json bun.lockb package-lock.json ./ | |
# Install app dependencies | |
RUN npm ci |
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
<pre>{{ user$ | async | json }}</pre> |
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 { ValidatorFn } from '@angular/forms'; | |
export type BooleanFn = () => boolean; | |
export function conditionalValidator( | |
predicate: BooleanFn, | |
validator: ValidatorFn, | |
errorNamespace?: string | |
): ValidatorFn { | |
return (formControl) => { |
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
{ | |
"Print to console": { | |
"prefix": "log", | |
"body": ["console.log('$1: ', $1);", "$2"], | |
"description": "Log output to console" | |
} | |
} |
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
Angular CLI version | Angular version | Node.js version | TypeScript version | RxJS version | |
---|---|---|---|---|---|
1.0.0-beta.17 (package name: angular-cli) | ~2.0.2 | ^6.9.5 | ~2.0.10 | ^5.0.3 | |
1.0.0-beta.20-1 (package name: angular-cli) | ~2.1.2 | ^6.9.5 | ~2.0.10 | ^5.0.3 | |
1.0.0-beta.22-1 (package name: angular-cli) | ~2.2.4 | ^6.9.5 | ~2.0.10 | ^5.0.3 | |
1.0.0-beta.30 | ~2.3.1 | ^6.9.5 | ~2.0.10 | ^5.0.3 | |
1.0.0-rc.4 | ~2.4.10 | ^6.9.5 | ~2.0.10 | ^5.0.3 | |
~1.0.6 | >= 4.0.3 <= 4.1.3 | ^6.9.5 | ~2.2.2 | ^5.0.3 | |
~1.1.3 | >= 4.0.3 <= 4.1.3 | ^6.9.5 | ~2.3.4 | ^5.0.3 | |
~1.2.7 | >= 4.0.3 <= 4.1.3 | ^6.9.5 | ~2.3.4 | ^5.0.3 | |
~1.3.2 | >= 4.2.6 <= 4.4.7 | ^6.9.5 | ~2.4.2 | ^5.0.3 |
NewerOlder