This file has been truncated, but you can view the full file.
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
[SYS] read(3[/MY_USER/Documents/dev/bun/build/debug/bun-debug], 4096) = 4096 (0.069ms) | |
[SYS] close(3[/MY_USER/Documents/dev/bun/build/debug/bun-debug]) | |
[SYS] openat(-2, /MY_USER/Documents/dev/sparkle-ui/start) = -1 | |
[SYS] openat(8[/MY_USER/Documents/dev/sparkle-ui], package.json) = 9 | |
[fs] openat(8[/MY_USER/Documents/dev/sparkle-ui], /MY_USER/Documents/dev/sparkle-ui/package.json) = 9[/MY_USER/Documents/dev/sparkle-ui/package.json] | |
[SYS] close(9[/MY_USER/Documents/dev/sparkle-ui/package.json]) | |
[alloc] new(PackageJSON) = src.resolver.package_json.PackageJSON@138f04080 | |
[SYS] close(3[/]) | |
[SYS] close(4[/Users]) | |
[SYS] close(5[/MY_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
import { readFileSync, readdirSync, writeFileSync } from 'fs'; | |
import { JSDOM } from 'jsdom'; | |
import { parse } from 'marked'; | |
import { join, resolve } from 'path'; | |
import { Post } from './posts.const'; | |
import hljs from 'highlight.js/lib/core'; | |
// @ts-ignore | |
import css from 'highlight.js/lib/languages/css'; |
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
{ | |
"__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
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) => { |
NewerOlder