2023-08-03 14:52:46 -07:00
|
|
|
import type { AsyncZipOptions } from "fflate";
|
2021-06-26 23:39:01 -07:00
|
|
|
import type { Size } from "components/system/Window/RndWindow/useResizable";
|
2022-11-21 19:04:08 -08:00
|
|
|
import type { ClockSource, WallpaperFit } from "contexts/session/types";
|
|
|
|
|
import type { ThemeName } from "styles/themes";
|
2021-03-27 21:28:13 -07:00
|
|
|
|
2021-09-25 22:59:20 -07:00
|
|
|
export const BASE_2D_CONTEXT_OPTIONS: CanvasRenderingContext2DSettings = {
|
|
|
|
|
alpha: false,
|
|
|
|
|
desynchronized: true,
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-04 14:02:08 -07:00
|
|
|
export const IPFS_GATEWAY_URLS = [
|
|
|
|
|
"https://<CID>.ipfs.cf-ipfs.com/",
|
|
|
|
|
"https://<CID>.ipfs.dweb.link/",
|
|
|
|
|
"https://cloudflare-ipfs.com/ipfs/<CID>/",
|
|
|
|
|
"https://gateway.ipfs.io/ipfs/<CID>/",
|
|
|
|
|
];
|
2022-08-31 19:00:57 -07:00
|
|
|
|
2023-02-13 20:17:12 -08:00
|
|
|
export const IFRAME_CONFIG = {
|
|
|
|
|
referrerPolicy: "no-referrer" as React.HTMLAttributeReferrerPolicy,
|
|
|
|
|
sandbox:
|
|
|
|
|
"allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-same-origin allow-scripts",
|
|
|
|
|
};
|
|
|
|
|
|
2021-06-26 23:39:01 -07:00
|
|
|
export const DEFAULT_LOCALE = "en";
|
2021-04-10 22:31:47 -07:00
|
|
|
|
2022-11-21 19:04:08 -08:00
|
|
|
export const DEFAULT_ASCENDING = true;
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_CLOCK_SOURCE: ClockSource = "local";
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_THEME: ThemeName = "defaultTheme";
|
|
|
|
|
|
2023-03-14 21:11:34 -07:00
|
|
|
export const DEFAULT_AI_API = "HuggingFace:"; // Engine:Key
|
|
|
|
|
|
2023-04-20 23:00:39 -07:00
|
|
|
export const DEFAULT_NON_WEBGPU_ENGINE = "HuggingFace";
|
|
|
|
|
|
2022-11-21 19:04:08 -08:00
|
|
|
export const DEFAULT_WALLPAPER = "VANTA";
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_WALLPAPER_FIT: WallpaperFit = "fill";
|
2021-08-14 22:13:55 -07:00
|
|
|
|
2022-03-13 13:58:05 -07:00
|
|
|
export const THIN_SCROLLBAR_WIDTH = 13;
|
|
|
|
|
|
2022-12-28 13:52:36 -08:00
|
|
|
export const BASE_CLOCK_WIDTH = 68;
|
2022-06-23 00:03:23 -07:00
|
|
|
|
2022-08-21 16:58:46 -07:00
|
|
|
export const SMALLEST_PNG_SIZE = 51;
|
|
|
|
|
|
2021-03-27 21:28:13 -07:00
|
|
|
export const DEFAULT_WINDOW_SIZE: Size = {
|
2022-01-13 22:49:54 -08:00
|
|
|
height: 300,
|
2022-03-03 21:16:12 -08:00
|
|
|
width: 405,
|
2021-03-27 21:28:13 -07:00
|
|
|
};
|
2021-03-06 22:31:36 -08:00
|
|
|
|
2022-08-12 22:12:12 -07:00
|
|
|
export const DEFAULT_MAPPED_NAME = "Share";
|
|
|
|
|
|
2021-08-07 21:31:55 -07:00
|
|
|
export const FOCUSABLE_ELEMENT = { tabIndex: -1 };
|
|
|
|
|
|
2023-08-02 21:52:22 -07:00
|
|
|
export const DIV_BUTTON_PROPS = {
|
|
|
|
|
as: "div",
|
|
|
|
|
role: "button",
|
|
|
|
|
...FOCUSABLE_ELEMENT,
|
|
|
|
|
};
|
|
|
|
|
|
2022-02-15 12:53:07 -08:00
|
|
|
export const FS_HANDLES = "FileSystemAccessHandles";
|
|
|
|
|
|
2021-11-13 22:26:22 -08:00
|
|
|
export const HOME = "/Users/Public";
|
|
|
|
|
|
2023-02-02 20:08:23 -08:00
|
|
|
export const PICTURES_FOLDER = `${HOME}/Pictures`;
|
|
|
|
|
|
2023-06-25 22:46:35 -07:00
|
|
|
export const INDEX_FILE = "/index.html";
|
|
|
|
|
|
2023-04-16 23:02:17 -07:00
|
|
|
export const PROMPT_FILE = "prompts.json";
|
|
|
|
|
|
2023-02-02 20:08:23 -08:00
|
|
|
export const SLIDESHOW_FILE = "slideshow.json";
|
|
|
|
|
|
2022-04-22 13:32:38 -07:00
|
|
|
export const ICON_GIF_SECONDS = 2;
|
|
|
|
|
|
|
|
|
|
export const ICON_GIF_FPS = 24;
|
|
|
|
|
|
2022-10-09 20:43:31 -07:00
|
|
|
export const PEEK_MAX_WIDTH = 200;
|
|
|
|
|
|
2022-11-12 13:54:02 -08:00
|
|
|
export const LIST_VIEW_ANIMATION = {
|
|
|
|
|
animate: { opacity: 1 },
|
|
|
|
|
initial: { opacity: 0 },
|
|
|
|
|
transition: { duration: 0.15 },
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-21 18:18:38 -07:00
|
|
|
export const TIFF_IMAGE_FORMATS = new Set([
|
|
|
|
|
".cr2",
|
|
|
|
|
".dng",
|
|
|
|
|
".nef",
|
|
|
|
|
".tif",
|
|
|
|
|
".tiff",
|
|
|
|
|
]);
|
|
|
|
|
|
2023-03-11 10:40:52 -08:00
|
|
|
export const CLIPBOARD_FILE_EXTENSIONS = new Set([".jpeg", ".jpg", ".png"]);
|
|
|
|
|
|
2021-07-03 21:10:38 -07:00
|
|
|
export const IMAGE_FILE_EXTENSIONS = new Set([
|
2022-06-21 18:18:38 -07:00
|
|
|
...TIFF_IMAGE_FORMATS,
|
2022-04-25 22:10:30 -07:00
|
|
|
".ani",
|
2021-06-26 23:39:01 -07:00
|
|
|
".apng",
|
|
|
|
|
".avif",
|
|
|
|
|
".bmp",
|
|
|
|
|
".cur",
|
|
|
|
|
".gif",
|
|
|
|
|
".ico",
|
|
|
|
|
".jfif",
|
|
|
|
|
".jif",
|
|
|
|
|
".jpe",
|
|
|
|
|
".jpeg",
|
|
|
|
|
".jpg",
|
2022-12-29 14:26:16 -08:00
|
|
|
".jxl",
|
2021-06-26 23:39:01 -07:00
|
|
|
".pjp",
|
|
|
|
|
".pjpeg",
|
|
|
|
|
".png",
|
2022-04-10 09:58:42 -07:00
|
|
|
".svg",
|
2022-12-24 22:35:32 -08:00
|
|
|
".qoi",
|
2021-06-26 23:39:01 -07:00
|
|
|
".webp",
|
|
|
|
|
".xbm",
|
2021-07-03 21:10:38 -07:00
|
|
|
]);
|
2021-03-27 21:28:13 -07:00
|
|
|
|
2023-01-17 22:45:34 -08:00
|
|
|
export const UNSUPPORTED_BACKGROUND_EXTENSIONS = new Set([
|
|
|
|
|
...TIFF_IMAGE_FORMATS,
|
|
|
|
|
".jxl",
|
|
|
|
|
".qoi",
|
|
|
|
|
".svg",
|
|
|
|
|
]);
|
|
|
|
|
|
2023-08-04 21:20:12 -07:00
|
|
|
export const CURSOR_FILE_EXTENSIONS = new Set([".ani", ".cur"]);
|
|
|
|
|
|
2022-08-18 22:29:17 -07:00
|
|
|
export const EDITABLE_IMAGE_FILE_EXTENSIONS = new Set([
|
|
|
|
|
".bmp",
|
|
|
|
|
".gif",
|
|
|
|
|
".ico",
|
|
|
|
|
".jfif",
|
|
|
|
|
".jpe",
|
|
|
|
|
".jpeg",
|
|
|
|
|
".jpg",
|
|
|
|
|
".png",
|
|
|
|
|
".tif",
|
|
|
|
|
".tiff",
|
|
|
|
|
".webp",
|
|
|
|
|
]);
|
|
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const PHOTO_ICON = "/System/Icons/photo.webp";
|
2022-06-21 18:18:38 -07:00
|
|
|
|
2021-10-09 22:25:51 -07:00
|
|
|
export const MAX_FILE_NAME_LENGTH = 223;
|
|
|
|
|
|
2021-07-31 21:17:00 -07:00
|
|
|
export const MENU_SEPERATOR = { seperator: true };
|
|
|
|
|
|
2021-03-27 21:28:13 -07:00
|
|
|
export const MILLISECONDS_IN_SECOND = 1000;
|
2021-04-24 21:35:04 -07:00
|
|
|
|
2023-02-02 20:08:23 -08:00
|
|
|
export const MILLISECONDS_IN_MINUTE = 60000;
|
|
|
|
|
|
2022-05-12 21:40:07 -07:00
|
|
|
export const MILLISECONDS_IN_DAY = 86400000;
|
|
|
|
|
|
2022-04-30 22:40:21 -07:00
|
|
|
export const EXTRACTABLE_EXTENSIONS = new Set([
|
|
|
|
|
".001",
|
|
|
|
|
".7z",
|
|
|
|
|
".ace",
|
|
|
|
|
".apk",
|
|
|
|
|
".appx",
|
|
|
|
|
".arj",
|
|
|
|
|
".bz2",
|
|
|
|
|
".bzip2",
|
|
|
|
|
".cab",
|
|
|
|
|
".chm",
|
|
|
|
|
".chw",
|
|
|
|
|
".cpio",
|
|
|
|
|
".deb",
|
|
|
|
|
".dll",
|
|
|
|
|
".dmg",
|
|
|
|
|
".doc",
|
|
|
|
|
".docx",
|
|
|
|
|
".epub",
|
|
|
|
|
".esd",
|
|
|
|
|
".exe",
|
|
|
|
|
".flv",
|
|
|
|
|
".gz",
|
|
|
|
|
".gzip",
|
|
|
|
|
".hfs",
|
|
|
|
|
".hxs",
|
|
|
|
|
".img",
|
|
|
|
|
".ipa",
|
|
|
|
|
".jar",
|
|
|
|
|
".lha",
|
|
|
|
|
".lit",
|
|
|
|
|
".lzh",
|
|
|
|
|
".lzma",
|
|
|
|
|
".mbr",
|
|
|
|
|
".msi",
|
|
|
|
|
".ntfs",
|
|
|
|
|
".ods",
|
|
|
|
|
".odt",
|
|
|
|
|
".ova",
|
2022-08-19 20:19:26 -07:00
|
|
|
".pages",
|
2022-04-30 22:40:21 -07:00
|
|
|
".pkg",
|
|
|
|
|
".ppt",
|
|
|
|
|
".qcow",
|
|
|
|
|
".qcow2",
|
|
|
|
|
".r00",
|
|
|
|
|
".rar",
|
|
|
|
|
".rpm",
|
|
|
|
|
".squashfs",
|
|
|
|
|
".swf",
|
|
|
|
|
".swm",
|
|
|
|
|
".sys",
|
|
|
|
|
".tar",
|
|
|
|
|
".taz",
|
|
|
|
|
".tgz",
|
|
|
|
|
".txz",
|
|
|
|
|
".udf",
|
|
|
|
|
".vdi",
|
|
|
|
|
".vhd",
|
|
|
|
|
".vhdx",
|
|
|
|
|
".vmdk",
|
|
|
|
|
".wim",
|
|
|
|
|
".xar",
|
|
|
|
|
".xip",
|
|
|
|
|
".xls",
|
|
|
|
|
".xlsx",
|
|
|
|
|
".xpi",
|
|
|
|
|
".xz",
|
|
|
|
|
".z",
|
|
|
|
|
".zipx",
|
|
|
|
|
]);
|
2021-06-12 22:03:04 -07:00
|
|
|
|
2022-03-27 20:07:51 -07:00
|
|
|
export const MOUNTABLE_EXTENSIONS = new Set([".iso", ".jsdos", ".wsz", ".zip"]);
|
|
|
|
|
|
2022-06-10 22:44:06 -07:00
|
|
|
export const SPREADSHEET_FORMATS = [
|
|
|
|
|
".csv",
|
|
|
|
|
".numbers",
|
|
|
|
|
".ods",
|
|
|
|
|
".xls",
|
|
|
|
|
".xlsx",
|
|
|
|
|
];
|
|
|
|
|
|
2021-07-03 23:08:32 -07:00
|
|
|
export const MP3_MIME_TYPE = "audio/mpeg";
|
|
|
|
|
|
2023-03-11 10:40:52 -08:00
|
|
|
export const VIDEO_FALLBACK_MIME_TYPE = "video/mp4";
|
|
|
|
|
|
2021-10-30 21:36:37 -07:00
|
|
|
export const NON_BREAKING_HYPHEN = "\u2011";
|
|
|
|
|
|
2021-07-10 21:32:14 -07:00
|
|
|
export const ONE_TIME_PASSIVE_EVENT = {
|
|
|
|
|
once: true,
|
|
|
|
|
passive: true,
|
|
|
|
|
} as AddEventListenerOptions;
|
|
|
|
|
|
2021-08-14 23:14:46 -07:00
|
|
|
export const PREVENT_SCROLL = { preventScroll: true };
|
|
|
|
|
|
2021-06-26 23:39:01 -07:00
|
|
|
export const PROCESS_DELIMITER = "__";
|
2021-05-01 23:17:13 -07:00
|
|
|
|
2022-01-02 00:58:12 -08:00
|
|
|
export const SAVE_PATH = `${HOME}/Snapshots`;
|
2021-08-14 22:34:02 -07:00
|
|
|
|
2022-08-18 22:29:17 -07:00
|
|
|
export const PICUTRES_PATH = `${HOME}/Pictures`;
|
|
|
|
|
|
2021-09-11 22:11:58 -07:00
|
|
|
export const SHORTCUT_APPEND = " - Shortcut";
|
|
|
|
|
|
2021-06-26 23:39:01 -07:00
|
|
|
export const SHORTCUT_EXTENSION = ".url";
|
2021-06-12 21:59:42 -07:00
|
|
|
|
2021-09-25 21:44:16 -07:00
|
|
|
export const SYSTEM_FILES = new Set(["desktop.ini"]);
|
|
|
|
|
|
|
|
|
|
export const SYSTEM_PATHS = new Set(["/.deletedFiles.log"]);
|
2021-07-17 22:46:03 -07:00
|
|
|
|
2021-12-25 22:42:40 -08:00
|
|
|
export const DESKTOP_PATH = `${HOME}/Desktop`;
|
2021-09-11 21:39:50 -07:00
|
|
|
|
2023-01-28 23:13:27 -08:00
|
|
|
export const SYSTEM_SHORTCUT_DIRECTORIES = new Set([DESKTOP_PATH]);
|
|
|
|
|
|
2021-07-10 23:31:45 -07:00
|
|
|
export const TRANSITIONS_IN_MILLISECONDS = {
|
|
|
|
|
DOUBLE_CLICK: 500,
|
2021-12-29 21:10:39 -08:00
|
|
|
LONG_PRESS: 500,
|
2023-06-10 22:09:25 -07:00
|
|
|
MOUSE_IN_OUT: 300,
|
2023-07-31 16:34:19 -07:00
|
|
|
TASKBAR_ITEM: 400,
|
2021-07-10 23:31:45 -07:00
|
|
|
WINDOW: 250,
|
|
|
|
|
};
|
2021-09-25 22:51:56 -07:00
|
|
|
|
2023-02-22 21:49:35 -08:00
|
|
|
export const TRANSITIONS_IN_SECONDS = {
|
2023-07-31 16:34:19 -07:00
|
|
|
TASKBAR_ITEM:
|
|
|
|
|
TRANSITIONS_IN_MILLISECONDS.TASKBAR_ITEM / MILLISECONDS_IN_SECOND,
|
2023-02-22 21:49:35 -08:00
|
|
|
WINDOW: TRANSITIONS_IN_MILLISECONDS.WINDOW / MILLISECONDS_IN_SECOND,
|
|
|
|
|
};
|
|
|
|
|
|
2022-08-06 14:37:20 -07:00
|
|
|
export const LONG_PRESS_DELAY_MS = 750;
|
|
|
|
|
|
2021-11-13 22:26:22 -08:00
|
|
|
export const ONE_DAY_IN_MILLISECONDS = 86400000;
|
|
|
|
|
|
2022-05-14 21:13:07 -07:00
|
|
|
export const AUDIO_FILE_EXTENSIONS = new Set([".aac", ".oga", ".wav"]);
|
2022-05-14 19:47:10 -07:00
|
|
|
|
2022-06-09 18:44:19 -07:00
|
|
|
export const AUDIO_PLAYLIST_EXTENSIONS = new Set([".asx", ".m3u", ".pls"]);
|
|
|
|
|
|
2021-09-25 22:51:56 -07:00
|
|
|
export const VIDEO_FILE_EXTENSIONS = new Set([
|
2022-04-26 22:27:25 -07:00
|
|
|
".m4v",
|
2021-09-25 22:51:56 -07:00
|
|
|
".mkv",
|
2022-05-14 21:13:07 -07:00
|
|
|
".mov",
|
2021-09-25 22:51:56 -07:00
|
|
|
".mp4",
|
|
|
|
|
".ogg",
|
|
|
|
|
".ogm",
|
|
|
|
|
".ogv",
|
|
|
|
|
".webm",
|
|
|
|
|
]);
|
2021-11-20 23:15:26 -08:00
|
|
|
|
2022-09-10 20:57:04 -07:00
|
|
|
export const DYNAMIC_EXTENSION = new Set([
|
|
|
|
|
...AUDIO_FILE_EXTENSIONS,
|
2023-07-07 21:31:29 -07:00
|
|
|
...AUDIO_PLAYLIST_EXTENSIONS,
|
2022-09-10 20:57:04 -07:00
|
|
|
...IMAGE_FILE_EXTENSIONS,
|
|
|
|
|
...TIFF_IMAGE_FORMATS,
|
|
|
|
|
...VIDEO_FILE_EXTENSIONS,
|
|
|
|
|
".ani",
|
|
|
|
|
".exe",
|
|
|
|
|
".mp3",
|
|
|
|
|
".sav",
|
|
|
|
|
".whtml",
|
|
|
|
|
]);
|
|
|
|
|
|
2022-08-31 22:50:38 -07:00
|
|
|
export const SAVE_TITLE_CHAR = "\u25CF";
|
|
|
|
|
|
2022-03-13 13:46:47 -07:00
|
|
|
export const ROOT_NAME = "My PC";
|
|
|
|
|
|
|
|
|
|
export const ROOT_SHORTCUT = `${ROOT_NAME}.url`;
|
|
|
|
|
|
2021-12-25 22:24:18 -08:00
|
|
|
export const ICON_PATH = "/System/Icons";
|
|
|
|
|
|
2022-03-27 01:10:25 -07:00
|
|
|
export const USER_ICON_PATH = `${HOME}/Icons`;
|
2021-12-25 22:24:18 -08:00
|
|
|
|
|
|
|
|
export const ICON_CACHE = `${USER_ICON_PATH}/Cache`;
|
|
|
|
|
|
2022-09-11 13:13:04 -07:00
|
|
|
export const YT_ICON_CACHE = `${ICON_CACHE}/YouTube`;
|
|
|
|
|
|
2022-08-21 16:40:29 -07:00
|
|
|
export const ICON_CACHE_EXTENSION = ".cache";
|
|
|
|
|
|
|
|
|
|
export const SESSION_FILE = "/session.json";
|
|
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const SHORTCUT_ICON = `${ICON_PATH}/shortcut.webp`;
|
2021-12-25 22:24:18 -08:00
|
|
|
|
2022-07-27 11:15:24 -07:00
|
|
|
export const FAVICON_BASE_PATH = "/favicon.ico";
|
|
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const FOLDER_ICON = `${ICON_PATH}/folder.webp`;
|
2021-11-20 23:15:26 -08:00
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const FOLDER_BACK_ICON = `${ICON_PATH}/folder_back.webp`;
|
2022-03-26 21:06:24 -07:00
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const FOLDER_FRONT_ICON = `${ICON_PATH}/folder_front.webp`;
|
2022-03-26 21:06:24 -07:00
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const COMPRESSED_FOLDER_ICON = `${ICON_PATH}/compressed.webp`;
|
2022-04-16 22:44:27 -07:00
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const MOUNTED_FOLDER_ICON = `${ICON_PATH}/mounted.webp`;
|
2021-12-11 21:53:42 -08:00
|
|
|
|
2022-07-04 01:02:53 -07:00
|
|
|
export const NEW_FOLDER_ICON = `${ICON_PATH}/new_folder.webp`;
|
2021-11-20 23:15:26 -08:00
|
|
|
|
2022-03-17 19:59:46 -07:00
|
|
|
export const UNKNOWN_ICON =
|
|
|
|
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAB0ElEQVR42u2ZVWLbQBiEp/K6DOpb+LF4ip47oCuULpAYH3uAlcbMNOZpm0lsizWz+/3CgEc9aiuFHz9/YYVIcjAAkODcYYDoTyPQHZse7m0E49tLkid/8rz4BuD7RgFIYpW+fvmMXStJEvz+/RuvXr1KG41mVhT5RiECRMUYsUuF0Nv18+fPcXp6ktbrjSzPhRBCDxxUpVKpG+Ls7DSt1eprhwjYWwAdJQD9EGftELV2iCiHCAQMAvT04sVznJ+fpdVqNcuj1hOBJj0wCvECFxcXaeWhIuEUYFADAGZCXF5dpg/3DxmA99YIZVmGRXr58lVqi1CMER8+fOh+pkUS5XIZd7d3ylEIViI5M7wCITqa1wOAtDVPKD1A45andC1ES/N6DZCuzKsIWZr3RoikMK4jZGleD2BsntDOA74tT0gIOZrXEfJmXiti24KleBi1M09SThBIU/P6mZiW5qEXMW3NUzuMGrc8NYRssSE0hFyZVxFyLVgdIcOW51oIWZqHfj9ga15+rOLb8lIRg47m9RoQ/R+eeb0GaGleR8i15XWEqL5VFIIJ87V5u70nvrm+AUF0/8nx4ZlxgOj+9KeTk+Oz8/rrYnIYBAoWeNSj9qwWS/T9vUU9j2EAAAAASUVORK5CYII=";
|
2021-11-27 23:53:37 -08:00
|
|
|
|
2022-07-05 20:24:06 -07:00
|
|
|
export const UNKNOWN_ICON_PATH = `${ICON_PATH}/unknown.webp`;
|
2022-05-11 19:55:31 -07:00
|
|
|
|
2023-03-16 20:39:28 -07:00
|
|
|
export const TIMESTAMP_DATE_FORMAT: Intl.DateTimeFormatOptions = {
|
|
|
|
|
day: "2-digit",
|
|
|
|
|
hour: "2-digit",
|
|
|
|
|
hour12: false,
|
|
|
|
|
minute: "2-digit",
|
|
|
|
|
month: "2-digit",
|
|
|
|
|
second: "2-digit",
|
|
|
|
|
year: "numeric",
|
|
|
|
|
};
|
|
|
|
|
|
2022-07-18 21:08:38 -07:00
|
|
|
export const MAX_RES_ICON_OVERRIDE: Record<string, [number, number]> = {
|
|
|
|
|
desktop: [16, 32],
|
|
|
|
|
document: [16, 32],
|
|
|
|
|
folder: [16, 16],
|
|
|
|
|
mounted: [16, 16],
|
|
|
|
|
music: [16, 32],
|
|
|
|
|
pc: [16, 16],
|
|
|
|
|
pictures: [16, 32],
|
|
|
|
|
user: [16, 16],
|
|
|
|
|
videos: [16, 32],
|
2022-07-18 15:58:38 -07:00
|
|
|
};
|
|
|
|
|
|
2023-04-07 20:42:33 -07:00
|
|
|
export const MAX_ICON_SIZE = 144;
|
|
|
|
|
|
2022-06-02 23:14:15 -07:00
|
|
|
export const DEFAULT_TEXT_FILE_SAVE_PATH = `${DESKTOP_PATH}/Untitled.txt`;
|
|
|
|
|
|
2021-11-27 23:53:37 -08:00
|
|
|
export const DEFAULT_SCROLLBAR_WIDTH = 17;
|
2022-02-10 21:57:04 -08:00
|
|
|
|
|
|
|
|
export const TASKBAR_HEIGHT = 30;
|
2022-02-25 20:05:25 -08:00
|
|
|
|
|
|
|
|
export const PACKAGE_DATA = {
|
|
|
|
|
alias: "daedalOS",
|
2022-07-23 22:33:40 -07:00
|
|
|
author: {
|
|
|
|
|
email: "dustinbrett@gmail.com",
|
|
|
|
|
name: "Dustin Brett",
|
2023-09-09 21:48:11 -07:00
|
|
|
npub: "npub12aqtpxwy5qr3nu0f0lha9zw987c3xa9ctsy2t5t9vntyc3st7l2qjnnqyz",
|
2022-07-23 22:33:40 -07:00
|
|
|
url: "https://dustinbrett.com",
|
|
|
|
|
},
|
2022-02-25 20:05:25 -08:00
|
|
|
description: "Desktop environment in the browser",
|
|
|
|
|
license: "MIT",
|
|
|
|
|
version: "2.0.0",
|
|
|
|
|
};
|
2022-03-13 13:32:44 -07:00
|
|
|
|
|
|
|
|
export const BASE_ZIP_CONFIG: AsyncZipOptions = {
|
|
|
|
|
consume: true,
|
|
|
|
|
level: 0,
|
|
|
|
|
mem: 8,
|
|
|
|
|
};
|
2022-04-15 21:24:58 -07:00
|
|
|
|
|
|
|
|
export const HIGH_PRIORITY_REQUEST = { priority: "high" } as RequestInit;
|
|
|
|
|
|
|
|
|
|
export const HIGH_PRIORITY_ELEMENT = {
|
2022-07-18 21:12:02 -07:00
|
|
|
fetchpriority: "high",
|
2022-04-15 21:24:58 -07:00
|
|
|
} as React.HTMLAttributes<HTMLElement>;
|