mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Upgrade/tweaks
This commit is contained in:
@@ -39,7 +39,7 @@ type MainThreadRenderProps = {
|
||||
|
||||
type RenderProps = MainThreadRenderProps | OffscreenRenderProps;
|
||||
|
||||
export type VantaWavesSettings = RenderProps &
|
||||
type VantaWavesSettings = RenderProps &
|
||||
VantaWavesConfig & {
|
||||
THREE?: unknown;
|
||||
};
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
"butterchurn-presets": "^3.0.0-beta.4",
|
||||
"fflate": "^0.7.3",
|
||||
"file-type": "^17.1.2",
|
||||
"framer-motion": "^6.3.15",
|
||||
"framer-motion": "^6.3.16",
|
||||
"gif.js": "^0.2.0",
|
||||
"html-to-image": "^1.9.0",
|
||||
"idb": "^7.0.2",
|
||||
@@ -94,7 +94,7 @@
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jest": "^26.5.3",
|
||||
"eslint-plugin-jest-dom": "^4.0.2",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-prettier": "^4.1.0",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-simple-import-sort": "^7.0.0",
|
||||
"eslint-plugin-sonarjs": "^0.13.0",
|
||||
|
||||
@@ -10,8 +10,6 @@ const ICON_PATH = "/System/Icons";
|
||||
const SHORTCUT_ICON = `${ICON_PATH}/shortcut.webp`;
|
||||
const NEW_FOLDER_ICON = `${ICON_PATH}/new_folder.webp`;
|
||||
|
||||
const USE_PNG = false;
|
||||
|
||||
const getPublicDirectoryIcons = (directory) => {
|
||||
const baseDirectory = join("./public", directory);
|
||||
|
||||
@@ -28,24 +26,12 @@ const getPublicDirectoryIcons = (directory) => {
|
||||
}, []);
|
||||
};
|
||||
|
||||
let desktopIcons = [SHORTCUT_ICON, ...getPublicDirectoryIcons(DESKTOP_PATH)];
|
||||
let startMenuIcons = [
|
||||
NEW_FOLDER_ICON,
|
||||
...getPublicDirectoryIcons(START_MENU_PATH),
|
||||
];
|
||||
|
||||
if (USE_PNG) {
|
||||
const replaceWebPWithPng = (icon) => icon.replace(".webp", ".png");
|
||||
|
||||
desktopIcons = desktopIcons.map(replaceWebPWithPng);
|
||||
startMenuIcons = startMenuIcons.map(replaceWebPWithPng);
|
||||
}
|
||||
|
||||
writeFileSync(
|
||||
"./public/.index/desktopIcons.json",
|
||||
JSON.stringify(desktopIcons)
|
||||
JSON.stringify([SHORTCUT_ICON, ...getPublicDirectoryIcons(DESKTOP_PATH)])
|
||||
);
|
||||
|
||||
writeFileSync(
|
||||
"./public/.index/startMenuIcons.json",
|
||||
JSON.stringify(startMenuIcons)
|
||||
JSON.stringify([NEW_FOLDER_ICON, ...getPublicDirectoryIcons(START_MENU_PATH)])
|
||||
);
|
||||
|
||||
16
yarn.lock
16
yarn.lock
@@ -2428,10 +2428,10 @@ eslint-plugin-jsx-a11y@^6.5.1:
|
||||
language-tags "^1.0.5"
|
||||
minimatch "^3.0.4"
|
||||
|
||||
eslint-plugin-prettier@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0"
|
||||
integrity sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==
|
||||
eslint-plugin-prettier@^4.1.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.1.0.tgz#1cd4b3fadf3b3cdb30b1874b55e7f93f85eb43ad"
|
||||
integrity sha512-A3AXIEfTnq3D5qDFjWJdQ9c4BLhw/TqhSR+6+SVaoPJBAWciFEuJiNQh275OnjRrAi7yssZzuWBRw66VG2g6UA==
|
||||
dependencies:
|
||||
prettier-linter-helpers "^1.0.0"
|
||||
|
||||
@@ -2854,10 +2854,10 @@ frac@~1.1.2:
|
||||
resolved "https://registry.yarnpkg.com/frac/-/frac-1.1.2.tgz#3d74f7f6478c88a1b5020306d747dc6313c74d0b"
|
||||
integrity sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==
|
||||
|
||||
framer-motion@^6.3.15:
|
||||
version "6.3.15"
|
||||
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-6.3.15.tgz#4f56fc6cab3709ba889a6536c4d32bec9d74f3a9"
|
||||
integrity sha512-tqyEaYfr+7p3rnMcMzdVxWoHLsAfpz7bk6xZljndSEfafQ0BfwlZ/CeFZkEETRFr16w/LxfDKBVhinU66ucDYw==
|
||||
framer-motion@^6.3.16:
|
||||
version "6.3.16"
|
||||
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-6.3.16.tgz#2e6e3b6e106aaaa0b36c72f52b79da162587efde"
|
||||
integrity sha512-1kuXvOVss/Rzi+XHuYq6RPjwnZGkfnfvtBpCpZm+kYhLGA6ICHwfAJtG1ohz1ruSAFVMz3RSpanTf6TOPG979A==
|
||||
dependencies:
|
||||
framesync "6.0.1"
|
||||
hey-listen "^1.0.8"
|
||||
|
||||
Reference in New Issue
Block a user