char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
e21152dc9
char/aliceai-t5-moe
1import { writeThemeFavicons } from './scripts/favicon-colorize' ; 2import { 3FAVICON_COLORS , 4PWA_ASSET_GENERATOR , 5PWA_GENERATOR_DEVICES , 6THEME_COLORS 7} from './src/lib/constants/pwa.constants' ; 8import { SplashOrientation } from './src/lib/enums/splash.enums' ; 9import { 10combinePresetAndAppleSplashScreens , 11defineConfig , 12minimal2023Preset 13} from '@vite-pwa/assets-generator/config' ; 14import { readFileSync } from 'node:fs' ; 15import { resolve } from 'node:path' ; 16 17writeThemeFavicons ( FAVICON_COLORS . LIGHT , FAVICON_COLORS . DARK , { 18padding :PWA_ASSET_GENERATOR . FAVICON_PADDING 19}); 20 21export default defineConfig ({ 22headLinkOptions :{ 23preset :PWA_ASSET_GENERATOR . LINK_PRESET 24}, 25images :[ 'static/favicon.svg' ], 26preset :combinePresetAndAppleSplashScreens ( 27{ 28 ...minimal2023Preset , 29// tiny margin so favicon.ico / pwa-*.png breathe inside the canvas 30transparent :{ 31 ...minimal2023Preset . transparent , 32padding :PWA_ASSET_GENERATOR . FAVICON_PADDING 33} 34}, 35{ 36darkImageResolver :async ( imageName :string ) => { 37if ( imageName . endsWith ( 'favicon.svg' )) { 38return readFileSync ( resolve ( 'static/favicon-dark.svg' )); 39} 40}, 41darkResizeOptions :{ 42background :THEME_COLORS . BACKGROUND_DARK , 43fit :PWA_ASSET_GENERATOR . FIT_MODE 44}, 45linkMediaOptions :{ 46addMediaScreen :PWA_ASSET_GENERATOR . ADD_MEDIA_SCREEN , 47basePath :PWA_ASSET_GENERATOR . BASE_PATH , 48log :true , 49xhtml :PWA_ASSET_GENERATOR . XHTML 50}, 51name :( landscape , size , dark ) => { 52const orientation = landscape ?SplashOrientation . LANDSCAPE :SplashOrientation . PORTRAIT ; 53const darkPrefix = dark ?PWA_ASSET_GENERATOR . DARK_PREFIX :'' ; 54 55return `apple-splash- ${ orientation } - ${ darkPrefix } ${ size . width } x ${ size . height } .png` ; 56}, 57padding :PWA_ASSET_GENERATOR . SPLASH_PADDING , 58png :{ 59compressionLevel :PWA_ASSET_GENERATOR . PNG_COMPRESSION_LEVEL , 60quality :PWA_ASSET_GENERATOR . PNG_QUALITY 61}, 62resizeOptions :{ 63background :THEME_COLORS . BACKGROUND_LIGHT , 64fit :PWA_ASSET_GENERATOR . FIT_MODE 65} 66}, 67PWA_GENERATOR_DEVICES 68) 69});