diff --git a/crates/brk_cli/src/config.rs b/crates/brk_cli/src/config.rs index 3c606b5f3..703508633 100644 --- a/crates/brk_cli/src/config.rs +++ b/crates/brk_cli/src/config.rs @@ -284,7 +284,7 @@ Finally, you can run the program with '-h' for help." } pub fn website(&self) -> Website { - self.website.unwrap_or(Website::Default) + self.website.unwrap_or(Website::Bitview) } pub fn fetch(&self) -> bool { diff --git a/crates/brk_cli/src/website.rs b/crates/brk_cli/src/website.rs index 209d8edcd..fbb16dfd3 100644 --- a/crates/brk_cli/src/website.rs +++ b/crates/brk_cli/src/website.rs @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize, ValueEnum)] pub enum Website { None, - Default, + Bitview, Custom, } @@ -20,7 +20,7 @@ impl Website { pub fn to_folder_name(self) -> &'static str { match self { Self::Custom => "custom", - Self::Default => "default", + Self::Bitview => "bitview", Self::None => unreachable!(), } } diff --git a/websites/default/assets/f26610.jpg b/websites/bitview/assets/f26610.jpg similarity index 100% rename from websites/default/assets/f26610.jpg rename to websites/bitview/assets/f26610.jpg diff --git a/websites/default/assets/f26610.png b/websites/bitview/assets/f26610.png similarity index 100% rename from websites/default/assets/f26610.png rename to websites/bitview/assets/f26610.png diff --git a/websites/default/assets/fonts/Lilex-Italic[wght]-2.601.woff2 b/websites/bitview/assets/fonts/Lilex-Italic[wght]-2.601.woff2 similarity index 100% rename from websites/default/assets/fonts/Lilex-Italic[wght]-2.601.woff2 rename to websites/bitview/assets/fonts/Lilex-Italic[wght]-2.601.woff2 diff --git a/websites/default/assets/fonts/Lilex[wght]-2.601.woff2 b/websites/bitview/assets/fonts/Lilex[wght]-2.601.woff2 similarity index 100% rename from websites/default/assets/fonts/Lilex[wght]-2.601.woff2 rename to websites/bitview/assets/fonts/Lilex[wght]-2.601.woff2 diff --git a/websites/default/assets/fonts/geist_mono_var_italic_v1_5_0.woff2 b/websites/bitview/assets/fonts/geist_mono_var_italic_v1_5_0.woff2 similarity index 100% rename from websites/default/assets/fonts/geist_mono_var_italic_v1_5_0.woff2 rename to websites/bitview/assets/fonts/geist_mono_var_italic_v1_5_0.woff2 diff --git a/websites/default/assets/fonts/geist_mono_var_v1_5_0.woff2 b/websites/bitview/assets/fonts/geist_mono_var_v1_5_0.woff2 similarity index 100% rename from websites/default/assets/fonts/geist_mono_var_v1_5_0.woff2 rename to websites/bitview/assets/fonts/geist_mono_var_v1_5_0.woff2 diff --git a/websites/default/assets/pwa/apple-icon-180.png b/websites/bitview/assets/pwa/apple-icon-180.png similarity index 100% rename from websites/default/assets/pwa/apple-icon-180.png rename to websites/bitview/assets/pwa/apple-icon-180.png diff --git a/websites/default/assets/pwa/apple-splash-1125-2436.jpg b/websites/bitview/assets/pwa/apple-splash-1125-2436.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1125-2436.jpg rename to websites/bitview/assets/pwa/apple-splash-1125-2436.jpg diff --git a/websites/default/assets/pwa/apple-splash-1136-640.jpg b/websites/bitview/assets/pwa/apple-splash-1136-640.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1136-640.jpg rename to websites/bitview/assets/pwa/apple-splash-1136-640.jpg diff --git a/websites/default/assets/pwa/apple-splash-1170-2532.jpg b/websites/bitview/assets/pwa/apple-splash-1170-2532.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1170-2532.jpg rename to websites/bitview/assets/pwa/apple-splash-1170-2532.jpg diff --git a/websites/default/assets/pwa/apple-splash-1179-2556.jpg b/websites/bitview/assets/pwa/apple-splash-1179-2556.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1179-2556.jpg rename to websites/bitview/assets/pwa/apple-splash-1179-2556.jpg diff --git a/websites/default/assets/pwa/apple-splash-1206-2622.jpg b/websites/bitview/assets/pwa/apple-splash-1206-2622.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1206-2622.jpg rename to websites/bitview/assets/pwa/apple-splash-1206-2622.jpg diff --git a/websites/default/assets/pwa/apple-splash-1242-2208.jpg b/websites/bitview/assets/pwa/apple-splash-1242-2208.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1242-2208.jpg rename to websites/bitview/assets/pwa/apple-splash-1242-2208.jpg diff --git a/websites/default/assets/pwa/apple-splash-1242-2688.jpg b/websites/bitview/assets/pwa/apple-splash-1242-2688.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1242-2688.jpg rename to websites/bitview/assets/pwa/apple-splash-1242-2688.jpg diff --git a/websites/default/assets/pwa/apple-splash-1284-2778.jpg b/websites/bitview/assets/pwa/apple-splash-1284-2778.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1284-2778.jpg rename to websites/bitview/assets/pwa/apple-splash-1284-2778.jpg diff --git a/websites/default/assets/pwa/apple-splash-1290-2796.jpg b/websites/bitview/assets/pwa/apple-splash-1290-2796.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1290-2796.jpg rename to websites/bitview/assets/pwa/apple-splash-1290-2796.jpg diff --git a/websites/default/assets/pwa/apple-splash-1320-2868.jpg b/websites/bitview/assets/pwa/apple-splash-1320-2868.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1320-2868.jpg rename to websites/bitview/assets/pwa/apple-splash-1320-2868.jpg diff --git a/websites/default/assets/pwa/apple-splash-1334-750.jpg b/websites/bitview/assets/pwa/apple-splash-1334-750.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1334-750.jpg rename to websites/bitview/assets/pwa/apple-splash-1334-750.jpg diff --git a/websites/default/assets/pwa/apple-splash-1488-2266.jpg b/websites/bitview/assets/pwa/apple-splash-1488-2266.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1488-2266.jpg rename to websites/bitview/assets/pwa/apple-splash-1488-2266.jpg diff --git a/websites/default/assets/pwa/apple-splash-1536-2048.jpg b/websites/bitview/assets/pwa/apple-splash-1536-2048.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1536-2048.jpg rename to websites/bitview/assets/pwa/apple-splash-1536-2048.jpg diff --git a/websites/default/assets/pwa/apple-splash-1620-2160.jpg b/websites/bitview/assets/pwa/apple-splash-1620-2160.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1620-2160.jpg rename to websites/bitview/assets/pwa/apple-splash-1620-2160.jpg diff --git a/websites/default/assets/pwa/apple-splash-1640-2360.jpg b/websites/bitview/assets/pwa/apple-splash-1640-2360.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1640-2360.jpg rename to websites/bitview/assets/pwa/apple-splash-1640-2360.jpg diff --git a/websites/default/assets/pwa/apple-splash-1668-2224.jpg b/websites/bitview/assets/pwa/apple-splash-1668-2224.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1668-2224.jpg rename to websites/bitview/assets/pwa/apple-splash-1668-2224.jpg diff --git a/websites/default/assets/pwa/apple-splash-1668-2388.jpg b/websites/bitview/assets/pwa/apple-splash-1668-2388.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1668-2388.jpg rename to websites/bitview/assets/pwa/apple-splash-1668-2388.jpg diff --git a/websites/default/assets/pwa/apple-splash-1792-828.jpg b/websites/bitview/assets/pwa/apple-splash-1792-828.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-1792-828.jpg rename to websites/bitview/assets/pwa/apple-splash-1792-828.jpg diff --git a/websites/default/assets/pwa/apple-splash-2048-1536.jpg b/websites/bitview/assets/pwa/apple-splash-2048-1536.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2048-1536.jpg rename to websites/bitview/assets/pwa/apple-splash-2048-1536.jpg diff --git a/websites/default/assets/pwa/apple-splash-2048-2732.jpg b/websites/bitview/assets/pwa/apple-splash-2048-2732.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2048-2732.jpg rename to websites/bitview/assets/pwa/apple-splash-2048-2732.jpg diff --git a/websites/default/assets/pwa/apple-splash-2160-1620.jpg b/websites/bitview/assets/pwa/apple-splash-2160-1620.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2160-1620.jpg rename to websites/bitview/assets/pwa/apple-splash-2160-1620.jpg diff --git a/websites/default/assets/pwa/apple-splash-2208-1242.jpg b/websites/bitview/assets/pwa/apple-splash-2208-1242.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2208-1242.jpg rename to websites/bitview/assets/pwa/apple-splash-2208-1242.jpg diff --git a/websites/default/assets/pwa/apple-splash-2224-1668.jpg b/websites/bitview/assets/pwa/apple-splash-2224-1668.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2224-1668.jpg rename to websites/bitview/assets/pwa/apple-splash-2224-1668.jpg diff --git a/websites/default/assets/pwa/apple-splash-2266-1488.jpg b/websites/bitview/assets/pwa/apple-splash-2266-1488.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2266-1488.jpg rename to websites/bitview/assets/pwa/apple-splash-2266-1488.jpg diff --git a/websites/default/assets/pwa/apple-splash-2360-1640.jpg b/websites/bitview/assets/pwa/apple-splash-2360-1640.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2360-1640.jpg rename to websites/bitview/assets/pwa/apple-splash-2360-1640.jpg diff --git a/websites/default/assets/pwa/apple-splash-2388-1668.jpg b/websites/bitview/assets/pwa/apple-splash-2388-1668.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2388-1668.jpg rename to websites/bitview/assets/pwa/apple-splash-2388-1668.jpg diff --git a/websites/default/assets/pwa/apple-splash-2436-1125.jpg b/websites/bitview/assets/pwa/apple-splash-2436-1125.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2436-1125.jpg rename to websites/bitview/assets/pwa/apple-splash-2436-1125.jpg diff --git a/websites/default/assets/pwa/apple-splash-2532-1170.jpg b/websites/bitview/assets/pwa/apple-splash-2532-1170.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2532-1170.jpg rename to websites/bitview/assets/pwa/apple-splash-2532-1170.jpg diff --git a/websites/default/assets/pwa/apple-splash-2556-1179.jpg b/websites/bitview/assets/pwa/apple-splash-2556-1179.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2556-1179.jpg rename to websites/bitview/assets/pwa/apple-splash-2556-1179.jpg diff --git a/websites/default/assets/pwa/apple-splash-2622-1206.jpg b/websites/bitview/assets/pwa/apple-splash-2622-1206.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2622-1206.jpg rename to websites/bitview/assets/pwa/apple-splash-2622-1206.jpg diff --git a/websites/default/assets/pwa/apple-splash-2688-1242.jpg b/websites/bitview/assets/pwa/apple-splash-2688-1242.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2688-1242.jpg rename to websites/bitview/assets/pwa/apple-splash-2688-1242.jpg diff --git a/websites/default/assets/pwa/apple-splash-2732-2048.jpg b/websites/bitview/assets/pwa/apple-splash-2732-2048.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2732-2048.jpg rename to websites/bitview/assets/pwa/apple-splash-2732-2048.jpg diff --git a/websites/default/assets/pwa/apple-splash-2778-1284.jpg b/websites/bitview/assets/pwa/apple-splash-2778-1284.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2778-1284.jpg rename to websites/bitview/assets/pwa/apple-splash-2778-1284.jpg diff --git a/websites/default/assets/pwa/apple-splash-2796-1290.jpg b/websites/bitview/assets/pwa/apple-splash-2796-1290.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2796-1290.jpg rename to websites/bitview/assets/pwa/apple-splash-2796-1290.jpg diff --git a/websites/default/assets/pwa/apple-splash-2868-1320.jpg b/websites/bitview/assets/pwa/apple-splash-2868-1320.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-2868-1320.jpg rename to websites/bitview/assets/pwa/apple-splash-2868-1320.jpg diff --git a/websites/default/assets/pwa/apple-splash-640-1136.jpg b/websites/bitview/assets/pwa/apple-splash-640-1136.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-640-1136.jpg rename to websites/bitview/assets/pwa/apple-splash-640-1136.jpg diff --git a/websites/default/assets/pwa/apple-splash-750-1334.jpg b/websites/bitview/assets/pwa/apple-splash-750-1334.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-750-1334.jpg rename to websites/bitview/assets/pwa/apple-splash-750-1334.jpg diff --git a/websites/default/assets/pwa/apple-splash-828-1792.jpg b/websites/bitview/assets/pwa/apple-splash-828-1792.jpg similarity index 100% rename from websites/default/assets/pwa/apple-splash-828-1792.jpg rename to websites/bitview/assets/pwa/apple-splash-828-1792.jpg diff --git a/websites/default/assets/pwa/favicon-196.png b/websites/bitview/assets/pwa/favicon-196.png similarity index 100% rename from websites/default/assets/pwa/favicon-196.png rename to websites/bitview/assets/pwa/favicon-196.png diff --git a/websites/default/assets/pwa/index.html b/websites/bitview/assets/pwa/index.html similarity index 100% rename from websites/default/assets/pwa/index.html rename to websites/bitview/assets/pwa/index.html diff --git a/websites/default/assets/pwa/manifest-icon-192.maskable.png b/websites/bitview/assets/pwa/manifest-icon-192.maskable.png similarity index 100% rename from websites/default/assets/pwa/manifest-icon-192.maskable.png rename to websites/bitview/assets/pwa/manifest-icon-192.maskable.png diff --git a/websites/default/assets/pwa/manifest-icon-512.maskable.png b/websites/bitview/assets/pwa/manifest-icon-512.maskable.png similarity index 100% rename from websites/default/assets/pwa/manifest-icon-512.maskable.png rename to websites/bitview/assets/pwa/manifest-icon-512.maskable.png diff --git a/websites/default/assets/pwa/manifest.webmanifest b/websites/bitview/assets/pwa/manifest.webmanifest similarity index 100% rename from websites/default/assets/pwa/manifest.webmanifest rename to websites/bitview/assets/pwa/manifest.webmanifest diff --git a/websites/default/index.html b/websites/bitview/index.html similarity index 100% rename from websites/default/index.html rename to websites/bitview/index.html diff --git a/websites/default/jsconfig.json b/websites/bitview/jsconfig.json similarity index 100% rename from websites/default/jsconfig.json rename to websites/bitview/jsconfig.json diff --git a/websites/default/manifest.webmanifest b/websites/bitview/manifest.webmanifest similarity index 100% rename from websites/default/manifest.webmanifest rename to websites/bitview/manifest.webmanifest diff --git a/websites/default/packages/.gitignore b/websites/bitview/packages/.gitignore similarity index 100% rename from websites/default/packages/.gitignore rename to websites/bitview/packages/.gitignore diff --git a/websites/default/packages/lean-qr/.gitignore b/websites/bitview/packages/lean-qr/.gitignore similarity index 100% rename from websites/default/packages/lean-qr/.gitignore rename to websites/bitview/packages/lean-qr/.gitignore diff --git a/websites/default/packages/lean-qr/2.5.0/index.mjs b/websites/bitview/packages/lean-qr/2.5.0/index.mjs similarity index 100% rename from websites/default/packages/lean-qr/2.5.0/index.mjs rename to websites/bitview/packages/lean-qr/2.5.0/index.mjs diff --git a/websites/default/packages/leeoniya-ufuzzy/.gitignore b/websites/bitview/packages/leeoniya-ufuzzy/.gitignore similarity index 100% rename from websites/default/packages/leeoniya-ufuzzy/.gitignore rename to websites/bitview/packages/leeoniya-ufuzzy/.gitignore diff --git a/websites/default/packages/leeoniya-ufuzzy/1.0.19/dist/uFuzzy.mjs b/websites/bitview/packages/leeoniya-ufuzzy/1.0.19/dist/uFuzzy.mjs similarity index 100% rename from websites/default/packages/leeoniya-ufuzzy/1.0.19/dist/uFuzzy.mjs rename to websites/bitview/packages/leeoniya-ufuzzy/1.0.19/dist/uFuzzy.mjs diff --git a/websites/default/packages/lightweight-charts/.gitignore b/websites/bitview/packages/lightweight-charts/.gitignore similarity index 100% rename from websites/default/packages/lightweight-charts/.gitignore rename to websites/bitview/packages/lightweight-charts/.gitignore diff --git a/websites/default/packages/lightweight-charts/5.0.8/dist/lightweight-charts.standalone.production.mjs b/websites/bitview/packages/lightweight-charts/5.0.8/dist/lightweight-charts.standalone.production.mjs similarity index 100% rename from websites/default/packages/lightweight-charts/5.0.8/dist/lightweight-charts.standalone.production.mjs rename to websites/bitview/packages/lightweight-charts/5.0.8/dist/lightweight-charts.standalone.production.mjs diff --git a/websites/default/packages/lightweight-charts/NOTICE.md b/websites/bitview/packages/lightweight-charts/NOTICE.md similarity index 100% rename from websites/default/packages/lightweight-charts/NOTICE.md rename to websites/bitview/packages/lightweight-charts/NOTICE.md diff --git a/websites/default/packages/lightweight-charts/wrapper.js b/websites/bitview/packages/lightweight-charts/wrapper.js similarity index 100% rename from websites/default/packages/lightweight-charts/wrapper.js rename to websites/bitview/packages/lightweight-charts/wrapper.js diff --git a/websites/default/packages/modern-screenshot/4.6.6/.gitignore b/websites/bitview/packages/modern-screenshot/4.6.6/.gitignore similarity index 100% rename from websites/default/packages/modern-screenshot/4.6.6/.gitignore rename to websites/bitview/packages/modern-screenshot/4.6.6/.gitignore diff --git a/websites/default/packages/modern-screenshot/4.6.6/dist/index.mjs b/websites/bitview/packages/modern-screenshot/4.6.6/dist/index.mjs similarity index 100% rename from websites/default/packages/modern-screenshot/4.6.6/dist/index.mjs rename to websites/bitview/packages/modern-screenshot/4.6.6/dist/index.mjs diff --git a/websites/default/packages/modern-screenshot/wrapper.js b/websites/bitview/packages/modern-screenshot/wrapper.js similarity index 100% rename from websites/default/packages/modern-screenshot/wrapper.js rename to websites/bitview/packages/modern-screenshot/wrapper.js diff --git a/websites/default/packages/solidjs-signals/0.4.1/dist/prod.js b/websites/bitview/packages/solidjs-signals/0.4.1/dist/prod.js similarity index 100% rename from websites/default/packages/solidjs-signals/0.4.1/dist/prod.js rename to websites/bitview/packages/solidjs-signals/0.4.1/dist/prod.js diff --git a/websites/default/packages/solidjs-signals/wrapper.js b/websites/bitview/packages/solidjs-signals/wrapper.js similarity index 100% rename from websites/default/packages/solidjs-signals/wrapper.js rename to websites/bitview/packages/solidjs-signals/wrapper.js diff --git a/websites/default/packages/unpkg.sh b/websites/bitview/packages/unpkg.sh similarity index 100% rename from websites/default/packages/unpkg.sh rename to websites/bitview/packages/unpkg.sh diff --git a/websites/default/robots.txt b/websites/bitview/robots.txt similarity index 100% rename from websites/default/robots.txt rename to websites/bitview/robots.txt diff --git a/websites/default/scripts/chart.js b/websites/bitview/scripts/chart.js similarity index 100% rename from websites/default/scripts/chart.js rename to websites/bitview/scripts/chart.js diff --git a/websites/default/scripts/entry.js b/websites/bitview/scripts/entry.js similarity index 100% rename from websites/default/scripts/entry.js rename to websites/bitview/scripts/entry.js diff --git a/websites/default/scripts/explorer.js b/websites/bitview/scripts/explorer.js similarity index 100% rename from websites/default/scripts/explorer.js rename to websites/bitview/scripts/explorer.js diff --git a/websites/default/scripts/main.js b/websites/bitview/scripts/main.js similarity index 100% rename from websites/default/scripts/main.js rename to websites/bitview/scripts/main.js diff --git a/websites/default/scripts/options.js b/websites/bitview/scripts/options.js similarity index 100% rename from websites/default/scripts/options.js rename to websites/bitview/scripts/options.js diff --git a/websites/default/scripts/simulation.js b/websites/bitview/scripts/simulation.js similarity index 100% rename from websites/default/scripts/simulation.js rename to websites/bitview/scripts/simulation.js diff --git a/websites/default/scripts/table.js b/websites/bitview/scripts/table.js similarity index 100% rename from websites/default/scripts/table.js rename to websites/bitview/scripts/table.js diff --git a/websites/default/service-worker.js b/websites/bitview/service-worker.js similarity index 100% rename from websites/default/service-worker.js rename to websites/bitview/service-worker.js diff --git a/websites/default/tsconfig.json b/websites/bitview/tsconfig.json similarity index 100% rename from websites/default/tsconfig.json rename to websites/bitview/tsconfig.json diff --git a/websites/default/packages/lean-qr/2.5.0/index.d.ts b/websites/default/packages/lean-qr/2.5.0/index.d.ts deleted file mode 100644 index d9e08fef8..000000000 --- a/websites/default/packages/lean-qr/2.5.0/index.d.ts +++ /dev/null @@ -1,491 +0,0 @@ -declare module 'lean-qr' { - interface ImageDataLike { - readonly data: Uint8ClampedArray; - } - - interface Context2DLike { - createImageData(width: number, height: number): DataT; - putImageData(data: DataT, x: number, y: number): void; - } - - interface CanvasLike { - width: number; - height: number; - getContext(type: '2d'): Context2DLike | null; - } - - /** - * A colour in `[red, green, blue, alpha]` format (all values from 0 to 255). - * If alpha is omitted, it is assumed to be 255 (opaque). - */ - export type RGBA = readonly [number, number, number, number?]; - - export interface Bitmap1D { - /** - * Appends a sequence of bits. - * - * @param value an integer containing the bits to append (big endian). - * @param bits the number of bits to read from `value`. Must be between 1 and 24. - */ - push(value: number, bits: number): void; - } - - export interface StringOptions { - /** the text to use for modules which are 'on' (typically black) */ - on?: string; - - /** the text to use for modules which are 'off' (typically white) */ - off?: string; - - /** the text to use for linefeeds between rows */ - lf?: string; - - /** the padding to apply on the left and right of the output (populated with 'off' modules) */ - padX?: number; - - /** the padding to apply on the top and bottom of the output (populated with 'off' modules) */ - padY?: number; - } - - export interface ImageDataOptions { - /** the colour to use for modules which are 'on' (typically black) */ - on?: RGBA; - - /** the colour to use for modules which are 'off' (typically white) */ - off?: RGBA; - - /** the padding to apply on the left and right of the output (filled with 'off') */ - padX?: number; - - /** the padding to apply on the top and bottom of the output (filled with 'off') */ - padY?: number; - } - - export interface Bitmap2D { - /** the width / height of the QR code in modules (excluding any padding) */ - readonly size: number; - - /** - * Read the state of a module from the QR code. - * - * @param x the x coordinate to read. Can be negative / out of bounds. - * @param y the y coordinate to read. Can be negative / out of bounds. - * @returns true if the requested module is set (i.e. typically black) - */ - get(x: number, y: number): boolean; - - /** - * Generate a string containing the QR code, suitable for displaying in a - * terminal environment. Generally, you should customise on and off to use - * the ANSI escapes of your target terminal for better rendering. - * - * @param options optional configuration for the display. - */ - toString(options?: Readonly): string; - - /** - * Generate image data containing the QR code, at a scale of 1 pixel per - * module. Use this if you need more control than toCanvas allows. - * - * @param context a context to use for creating the image data. - * @param options optional configuration for the display. - */ - toImageData( - context: Context2DLike, - options?: Readonly, - ): DataT; - - /** - * Generate a `data:image/*` URL for the QR code. - * - * @param options optional configuration for the output. - * @returns a string suitable for use as the `src` of an `img` tag. - */ - toDataURL( - options?: Readonly< - ImageDataOptions & { - type?: `image/${string}`; - scale?: number; - } - >, - ): string; - - /** - * Populate a given canvas with the QR code, at a scale of 1 pixel per - * module. Set image-rendering: pixelated and scale the canvas using CSS - * for a large image. Automatically resizes the canvas to fit the QR code - * if necessary. - * - * @param canvas the canvas to populate. - * @param options optional configuration for the display. - */ - toCanvas( - canvas: CanvasLike, - options?: Readonly, - ): void; - } - - export type Mask = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; - export type Mode = (data: Bitmap1D, version: number) => void; - export interface ModeFactory { - (value: string): Mode; - /** a function which returns true when given a character which the current mode can represent */ - test(string: string): boolean; - /** a function which returns an estimate of the number of bits required to encode a given value */ - est(value: string, version: number): number; - /** an optional ECI which must be active for this mode to be interpreted correctly by a reader */ - eci?: number; - } - - interface ModeAutoOptions { - /** a list of modes which can be considered when encoding a message */ - modes?: ReadonlyArray; - } - - export const mode: Readonly<{ - /** automatically picks the most optimal combination of modes for the requested message */ - auto(value: string, options?: Readonly): Mode; - /** concatenates multiple modes together */ - multi(...modes: ReadonlyArray): Mode; - /** sets the Extended Channel Interpretation for the message from this point onwards */ - eci(id: number): Mode; - /** supports `0-9` and stores 3 characters per 10 bits */ - numeric: ModeFactory; - /** supports `0-9A-Z $%*+-./:` and stores 2 characters per 11 bits */ - alphaNumeric: ModeFactory; - /** arbitrary byte data, typically combined with `eci` */ - bytes(data: Uint8Array | ReadonlyArray): Mode; - /** supports 7-bit ASCII and stores 1 character per 8 bits with no ECI */ - ascii: ModeFactory; - /** supports 8-bit ISO-8859-1 and stores 1 character per 8 bits with ECI 3 */ - iso8859_1: ModeFactory; - /** supports double-byte Shift-JIS characters stores 1 character per 13 bits */ - shift_jis: ModeFactory; - /** supports variable length UTF-8 with ECI 26 */ - utf8: ModeFactory; - }>; - - export type Correction = number & { readonly _: unique symbol }; - export const correction: Readonly<{ - /** minimum possible correction level (same as L) */ - min: Correction; - /** ~7.5% error tolerance, ~25% data overhead */ - L: Correction; - /** ~15% error tolerance, ~60% data overhead */ - M: Correction; - /** ~22.5% error tolerance, ~120% data overhead */ - Q: Correction; - /** ~30% error tolerance, ~190% data overhead */ - H: Correction; - /** maximum possible correction level (same as H) */ - max: Correction; - }>; - - export interface GenerateOptions extends ModeAutoOptions { - /** the minimum correction level to use (higher levels may still be used if the chosen version has space) */ - minCorrectionLevel?: Correction; - /** the maximum correction level to use */ - maxCorrectionLevel?: Correction; - /** the minimum version (size) of code to generate (must be between 1 and 40) */ - minVersion?: number; - /** the maximum version (size) of code to generate (must be between 1 and 40) */ - maxVersion?: number; - /** a mask to use on the QR code (should be left as `null` for ISO compliance but may be changed for artistic effect) */ - mask?: null | Mask; - /** padding bits to use for extra space in the QR code (should be left as the default for ISO compliance but may be changed for artistic effect) */ - trailer?: number; - } - - /** - * Generate a QR code. - * - * @param data either a string, or a pre-encoded mode. - * @param options optional configuration for the QR code. - * @returns the requested QR code. - */ - export type GenerateFn = ( - data: Mode | string, - options?: Readonly, - ) => Bitmap2D; - interface Generate extends GenerateFn { - /** - * Creates a scoped `generate` function which considers additional modes - * when using auto encoding. - * - * @param modes the modes to add. - * @returns a `generate` function which will additionally consider the - * given modes when using auto encoding. - */ - with(...modes: ReadonlyArray): GenerateFn; - } - export const generate: Generate; -} - -declare module 'lean-qr/nano' { - import type { - Correction, - Bitmap2D as FullBitmap2D, - GenerateOptions as FullGenerateOptions, - } from 'lean-qr'; - import { correction as fullCorrection } from 'lean-qr'; - - export type { Correction }; - - export const correction: Pick; - - export type Bitmap2D = Pick; - - export type GenerateOptions = Pick< - FullGenerateOptions, - 'minCorrectionLevel' | 'minVersion' - >; - - /** - * Generate a QR code. - * - * @param data either a string, or a pre-encoded mode. - * @param options optional configuration for the QR code. - * @returns the requested QR code. - */ - export function generate( - data: string, - options?: Readonly, - ): Bitmap2D; -} - -declare module 'lean-qr/extras/svg' { - import type { Bitmap2D as FullBitmap2D } from 'lean-qr'; - - type Bitmap2D = Pick; - - export interface SVGOptions { - /** the colour to use for modules which are 'on' (typically black) */ - on?: string; - /** the colour to use for modules which are 'off' (typically white) */ - off?: string; - /** the padding to apply on the left and right of the output (filled with 'off') */ - padX?: number; - /** the padding to apply on the top and bottom of the output (filled with 'off') */ - padY?: number; - /** a width to apply to the resulting image (overrides `scale`) */ - width?: number | null; - /** a height to apply to the resulting image (overrides `scale`) */ - height?: number | null; - /** a scale to apply to the resulting image (`scale` pixels = 1 module) */ - scale?: number; - } - - /** - * Generate the raw outline of the QR code for use in an existing SVG. - * - * @param code the QR code to convert. - * @returns a string suitable for passing to the `d` attribute of a `path`. - */ - export function toSvgPath(code: Bitmap2D): string; - - /** - * Generate an SVG element which can be added to the DOM. - * - * @param code the QR code to convert. - * @param options optional configuration for the display. - * @returns an SVG element. - */ - export function toSvg( - code: Bitmap2D, - target: Document | SVGElement, - options?: Readonly, - ): SVGElement; - - /** - * Generate an SVG document which can be exported to a file or served from a - * web server. - * - * @param code the QR code to convert. - * @param options optional configuration for the display. - * @returns an SVG document. - */ - export function toSvgSource( - code: Bitmap2D, - options?: Readonly< - SVGOptions & { - /** `true` to include an XML declaration at the start of the source (for standalone documents which will not be embedded inside another document) */ - xmlDeclaration?: boolean; - } - >, - ): string; - - /** - * Generate a `data:image/svg+xml` URL. - * - * @param code the QR code to convert. - * @param options optional configuration for the display. - * @returns a string suitable for use as the `src` of an `img` tag. - */ - export function toSvgDataURL( - code: Bitmap2D, - options?: Readonly, - ): string; -} - -declare module 'lean-qr/extras/node_export' { - import type { RGBA, Bitmap2D as FullBitmap2D } from 'lean-qr'; - - type Bitmap2D = Pick; - - export interface PNGOptions { - /** the colour to use for modules which are 'on' (typically black) */ - on?: RGBA; - /** the colour to use for modules which are 'off' (typically white) */ - off?: RGBA; - /** the padding to apply on the left and right of the output (filled with 'off') */ - padX?: number; - /** the padding to apply on the top and bottom of the output (filled with 'off') */ - padY?: number; - /** a scale to apply to the resulting image (`scale` pixels = 1 module) */ - scale?: number; - } - - /** - * Generate a PNG document which can be exported to a file or served from a - * web server. - * - * @param code the QR code to convert. - * @param options optional configuration for the display. - * @returns a PNG document. - */ - export function toPngBuffer( - code: Bitmap2D, - options?: Readonly, - ): Uint8Array; - - /** - * Generate a `data:image/png` URL. - * - * @param code the QR code to convert. - * @param options optional configuration for the display. - * @returns a string suitable for use as the `src` of an `img` tag. - */ - export function toPngDataURL( - code: Bitmap2D, - options?: Readonly, - ): string; -} - -declare module 'lean-qr/extras/react' { - import type { - Bitmap2D as FullBitmap2D, - GenerateOptions, - ImageDataOptions, - } from 'lean-qr'; - import type { - SVGOptions, - toSvgDataURL as toSvgDataURLFn, - } from 'lean-qr/extras/svg'; - - export interface AsyncFramework { - createElement: ( - type: 'canvas', - props: { - ref: any; - style: { imageRendering: 'pixelated' }; - className: string; - }, - ) => T; - useRef(initialValue: T | null): { readonly current: T | null }; - useEffect(fn: () => void | (() => void), deps: unknown[]): void; - } - - interface QRComponentProps { - content: string; - className?: string; - } - - export interface AsyncQRComponentProps - extends ImageDataOptions, - GenerateOptions, - QRComponentProps {} - - export type AsyncQRComponent = ( - props: Readonly, - ) => T; - - /** - * Generate an asynchronous QR component (rendering to a `canvas`). - * You should call this just once, in the global scope. - * - * This is not suitable for server-side rendering (use `makeSyncComponent` - * instead). - * - * @param framework the framework to use (e.g. `React`). - * @param generate the `generate` function to use - * (from `lean-qr` or `lean-qr/nano`). - * @param defaultProps optional default properties to apply when the - * component is used (overridden by properties set on use). - * @returns a component which can be rendered elsewhere. - */ - export function makeAsyncComponent( - framework: Readonly>, - generate: ( - data: string, - options?: Readonly, - ) => Pick, - defaultProps?: Readonly>, - ): AsyncQRComponent; - - export interface SyncFramework { - createElement: ( - type: 'img', - props: { - src: string; - style: { imageRendering: 'pixelated' }; - className: string; - }, - ) => T; - useMemo(fn: () => T, deps: unknown[]): T; - } - - export interface SyncQRComponentProps - extends SVGOptions, - GenerateOptions, - QRComponentProps {} - - export type SyncQRComponent = (props: Readonly) => T; - - /** - * Generate a synchronous QR component (rendering to an SVG). - * You should call this just once, in the global scope. - * - * This is best suited for server-side rendering (prefer - * `makeAsyncComponent` if you only need client-side rendering). - * - * @param framework the framework to use (e.g. `React`). - * @param generate the `generate` function to use - * (from `lean-qr` or `lean-qr/nano`). - * @param toSvgDataURL the `toSvgDataURL` function to use - * (from `lean-qr/extras/svg`). - * @param defaultProps optional default properties to apply when the - * component is used (overridden by properties set on use). - * @returns a component which can be rendered elsewhere. - */ - export function makeSyncComponent( - framework: Readonly>, - generate: ( - data: string, - options?: Readonly, - ) => Pick, - toSvgDataURL: typeof toSvgDataURLFn, - defaultProps?: Readonly>, - ): SyncQRComponent; -} - -declare module 'lean-qr/extras/errors' { - /** - * Convert an error into a human-readable message. This is intended for use - * with Lean QR errors, but will return somewhat meaningful messages for - * other errors too. - * - * @param error the error to convert. - * @returns a human-readable message explaining the error. - */ - export function readError(error: unknown): string; -} diff --git a/websites/default/packages/lightweight-charts/5.0.8/dist/typings.d.ts b/websites/default/packages/lightweight-charts/5.0.8/dist/typings.d.ts deleted file mode 100644 index 6dee993c6..000000000 --- a/websites/default/packages/lightweight-charts/5.0.8/dist/typings.d.ts +++ /dev/null @@ -1,4892 +0,0 @@ -// Generated by dts-bundle-generator v9.5.1 - -type CanvasRenderingTarget2D = any; - -declare const areaSeries: SeriesDefinition<"Area">; -declare const barSeries: SeriesDefinition<"Bar">; -declare const baselineSeries: SeriesDefinition<"Baseline">; -declare const candlestickSeries: SeriesDefinition<"Candlestick">; -declare const histogramSeries: SeriesDefinition<"Histogram">; -declare const lineSeries: SeriesDefinition<"Line">; -export declare const customSeriesDefaultOptions: CustomSeriesOptions; -/** - * Enumeration representing the sign of a marker. - */ -export declare const enum MarkerSign { - /** Represents a negative change (-1) */ - Negative = -1, - /** Represents no change (0) */ - Neutral = 0, - /** Represents a positive change (1) */ - Positive = 1, -} -/** - * Represents a type of color. - */ -export declare enum ColorType { - /** Solid color */ - Solid = "solid", - /** Vertical gradient color */ - VerticalGradient = "gradient", -} -/** - * Represents the crosshair mode. - */ -export declare enum CrosshairMode { - /** - * This mode allows crosshair to move freely on the chart. - */ - Normal = 0, - /** - * This mode sticks crosshair's horizontal line to the price value of a single-value series or to the close price of OHLC-based series. - */ - Magnet = 1, - /** - * This mode disables rendering of the crosshair. - */ - Hidden = 2, - /** - * This mode sticks crosshair's horizontal line to the price value of a single-value series or to the open/high/low/close price of OHLC-based series. - */ - MagnetOHLC = 3, -} -/** - * Represents the type of the last price animation for series such as area or line. - */ -export declare enum LastPriceAnimationMode { - /** - * Animation is always disabled - */ - Disabled = 0, - /** - * Animation is always enabled. - */ - Continuous = 1, - /** - * Animation is active after new data. - */ - OnDataUpdate = 2, -} -/** - * Represents the possible line styles. - */ -export declare enum LineStyle { - /** - * A solid line. - */ - Solid = 0, - /** - * A dotted line. - */ - Dotted = 1, - /** - * A dashed line. - */ - Dashed = 2, - /** - * A dashed line with bigger dashes. - */ - LargeDashed = 3, - /** - * A dotted line with more space between dots. - */ - SparseDotted = 4, -} -/** - * Represents the possible line types. - */ -export declare enum LineType { - /** - * A line. - */ - Simple = 0, - /** - * A stepped line. - */ - WithSteps = 1, - /** - * A curved line. - */ - Curved = 2, -} -/** - * Search direction if no data found at provided index - */ -export declare enum MismatchDirection { - /** - * Search the nearest left item - */ - NearestLeft = -1, - /** - * Do not search - */ - None = 0, - /** - * Search the nearest right item - */ - NearestRight = 1, -} -/** - * Represents the source of data to be used for the horizontal price line. - */ -export declare enum PriceLineSource { - /** - * Use the last bar data. - */ - LastBar = 0, - /** - * Use the last visible data of the chart viewport. - */ - LastVisible = 1, -} -/** - * Represents the price scale mode. - */ -export declare enum PriceScaleMode { - /** - * Price scale shows prices. Price range changes linearly. - */ - Normal = 0, - /** - * Price scale shows prices. Price range changes logarithmically. - */ - Logarithmic = 1, - /** - * Price scale shows percentage values according the first visible value of the price scale. - * The first visible value is 0% in this mode. - */ - Percentage = 2, - /** - * The same as percentage mode, but the first value is moved to 100. - */ - IndexedTo100 = 3, -} -/** - * Represents the type of a tick mark on the time axis. - */ -export declare enum TickMarkType { - /** - * The start of the year (e.g. it's the first tick mark in a year). - */ - Year = 0, - /** - * The start of the month (e.g. it's the first tick mark in a month). - */ - Month = 1, - /** - * A day of the month. - */ - DayOfMonth = 2, - /** - * A time without seconds. - */ - Time = 3, - /** - * A time with seconds. - */ - TimeWithSeconds = 4, -} -/** - * Determine how to exit the tracking mode. - * - * By default, mobile users will long press to deactivate the scroll and have the ability to check values and dates. - * Another press is required to activate the scroll, be able to move left/right, zoom, etc. - */ -export declare enum TrackingModeExitMode { - /** - * Tracking Mode will be deactivated on touch end event. - */ - OnTouchEnd = 0, - /** - * Tracking Mode will be deactivated on the next tap event. - */ - OnNextTap = 1, -} -/** - * This function is the simplified main entry point of the Lightweight Charting Library with time points for the horizontal scale. - * - * @param container - ID of HTML element or element itself - * @param options - Any subset of options to be applied at start. - * @returns An interface to the created chart - */ -export declare function createChart( - container: string | HTMLElement, - options?: DeepPartial, -): IChartApi; -/** - * This function is the main entry point of the Lightweight Charting Library. If you are using time values - * for the horizontal scale then it is recommended that you rather use the {@link createChart} function. - * - * @template HorzScaleItem - type of points on the horizontal scale - * @template THorzScaleBehavior - type of horizontal axis strategy that encapsulate all the specific behaviors of the horizontal scale type - * - * @param container - ID of HTML element or element itself - * @param horzScaleBehavior - Horizontal scale behavior - * @param options - Any subset of options to be applied at start. - * @returns An interface to the created chart - */ -export declare function createChartEx< - HorzScaleItem, - THorzScaleBehavior extends IHorzScaleBehavior, ->( - container: string | HTMLElement, - horzScaleBehavior: THorzScaleBehavior, - options?: DeepPartial>, -): IChartApiBase; -/** - * Creates an image watermark. - * - * @param pane - Target pane. - * @param imageUrl - Image URL. - * @param options - Watermark options. - * - * @returns Image watermark wrapper. - * - * @example - * ```js - * import { createImageWatermark } from 'lightweight-charts'; - * - * const firstPane = chart.panes()[0]; - * const imageWatermark = createImageWatermark(firstPane, '/images/my-image.png', { - * alpha: 0.5, - * padding: 20, - * }); - * // to change options - * imageWatermark.applyOptions({ padding: 10 }); - * // to remove watermark from the pane - * imageWatermark.detach(); - * ``` - */ -export declare function createImageWatermark( - pane: IPaneApi, - imageUrl: string, - options: DeepPartial, -): IImageWatermarkPluginApi; -/** - * Creates an 'options' chart with price values on the horizontal scale. - * - * This function is used to create a specialized chart type where the horizontal scale - * represents price values instead of time. It's particularly useful for visualizing - * option chains, price distributions, or any data where price is the primary x-axis metric. - * - * @param container - The DOM element or its id where the chart will be rendered. - * @param options - Optional configuration options for the price chart. - * @returns An instance of IChartApiBase configured for price-based horizontal scaling. - */ -export declare function createOptionsChart( - container: string | HTMLElement, - options?: DeepPartial, -): IChartApiBase; -/** - * A function to create a series markers primitive. - * - * @param series - The series to which the primitive will be attached. - * - * @param markers - An array of markers to be displayed on the series. - * - * @param options - Options for the series markers plugin. - * - * @example - * ```js - * import { createSeriesMarkers } from 'lightweight-charts'; - * - * const seriesMarkers = createSeriesMarkers( - * series, - * [ - * { - * color: 'green', - * position: 'inBar', - * shape: 'arrowDown', - * time: 1556880900, - * }, - * ] - * ); - * // and then you can modify the markers - * // set it to empty array to remove all markers - * seriesMarkers.setMarkers([]); - * - * // `seriesMarkers.markers()` returns current markers - * ``` - */ -export declare function createSeriesMarkers( - series: ISeriesApi, - markers?: SeriesMarker[], - options?: DeepPartial, -): ISeriesMarkersPluginApi; -/** - * Creates an image watermark. - * - * @param pane - Target pane. - * @param options - Watermark options. - * - * @returns Image watermark wrapper. - * - * @example - * ```js - * import { createTextWatermark } from 'lightweight-charts'; - * - * const firstPane = chart.panes()[0]; - * const textWatermark = createTextWatermark(firstPane, { - * horzAlign: 'center', - * vertAlign: 'center', - * lines: [ - * { - * text: 'Hello', - * color: 'rgba(255,0,0,0.5)', - * fontSize: 100, - * fontStyle: 'bold', - * }, - * { - * text: 'This is a text watermark', - * color: 'rgba(0,0,255,0.5)', - * fontSize: 50, - * fontStyle: 'italic', - * fontFamily: 'monospace', - * }, - * ], - * }); - * // to change options - * textWatermark.applyOptions({ horzAlign: 'left' }); - * // to remove watermark from the pane - * textWatermark.detach(); - * ``` - */ -export declare function createTextWatermark( - pane: IPaneApi, - options: DeepPartial, -): ITextWatermarkPluginApi; -/** - * Creates and attaches the Series Up Down Markers Plugin. - * - * @param series - Series to which attach the Up Down Markers Plugin - * @param options - options for the Up Down Markers Plugin - * - * @returns Api for Series Up Down Marker Plugin. {@link ISeriesUpDownMarkerPluginApi} - * - * @example - * ```js - * import { createUpDownMarkers, createChart, LineSeries } from 'lightweight-charts'; - * - * const chart = createChart('container'); - * const lineSeries = chart.addSeries(LineSeries); - * const upDownMarkers = createUpDownMarkers(lineSeries, { - * positiveColor: '#22AB94', - * negativeColor: '#F7525F', - * updateVisibilityDuration: 5000, - * }); - * // to add some data - * upDownMarkers.setData( - * [ - * { time: '2020-02-02', value: 12.34 }, - * //... more line series data - * ] - * ); - * // ... Update some values - * upDownMarkers.update({ time: '2020-02-02', value: 13.54 }, true); - * // to remove plugin from the series - * upDownMarkers.detach(); - * ``` - */ -export declare function createUpDownMarkers( - series: ISeriesApi, - options?: Partial, -): ISeriesUpDownMarkerPluginApi; -/** - * Creates a yield curve chart with the specified options. - * - * A yield curve chart differs from the default chart type - * in the following ways: - * - Horizontal scale is linearly spaced, and defined in monthly - * time duration units - * - Whitespace is ignored for the crosshair and grid lines - * - * @param container - ID of HTML element or element itself - * @param options - The yield chart options. - * @returns An interface to the created chart - */ -export declare function createYieldCurveChart( - container: string | HTMLElement, - options?: DeepPartial, -): IYieldCurveChartApi; -/** - * Provides the default implementation of the horizontal scale (time-based) that can be used as a base for extending the horizontal scale with custom behavior. - * This allows for the introduction of custom functionality without re-implementing the entire {@link IHorzScaleBehavior}<{@link Time}> interface. - * - * For further details, refer to the {@link createChartEx} chart constructor method. - * - * @returns An uninitialized class implementing the {@link IHorzScaleBehavior}<{@link Time}> interface - */ -export declare function defaultHorzScaleBehavior(): new () => IHorzScaleBehavior