This file contains hidden or 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, ElementRef, viewChild } from '@angular/core'; | |
import * as THREE from 'three'; | |
const SMOKE_PARTICLE_COUNT = 150; | |
const SMOKE_SPREAD = 1600; | |
const SMOKE_OPACITY = 0.5; | |
const SMOKE_COLOR = 0xcdc8bb; | |
const SMOKE_ROTATION_SPEED = 0.5; | |
const SMOKE_SIZE_FACTOR = 300; | |
const SMOKE_SIZE_VARIATION = 0.1; |
This file contains hidden or 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 { registerLocaleData } from '@angular/common'; | |
import { ApplicationConfig, LOCALE_ID, mergeApplicationConfig } from '@angular/core'; | |
import { loadTranslations } from '@angular/localize'; | |
import { $localize } from '@angular/localize/init'; | |
import { bootstrapApplication } from '@angular/platform-browser'; | |
import { AppComponent } from './app/app.component'; | |
import { appConfig } from './app/app.config'; | |
const SUPPORTED_LOCALES = ['en-US', 'de-DE', 'fr-FR'] as const; | |
type Locales = (typeof SUPPORTED_LOCALES)[number]; |
This file contains hidden or 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
const ws = new WebSocket('ws://localhost:8080'); | |
ws.onmessage = (_) => { | |
window.location.reload(); | |
}; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder