mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-06-30 13:43:28 +00:00
Tauri 1.5.2 + normalize and update frontend dev deps (#1579)
* Normalize & update front-end dev-deps + Tauri 1.5.2 * format code
This commit is contained in:
parent
b21d928479
commit
3b686946e6
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -138,4 +138,4 @@ jobs:
|
|||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
files: "*/**"
|
||||
files: '*/**'
|
||||
|
|
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -7946,9 +7946,9 @@ checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a"
|
|||
|
||||
[[package]]
|
||||
name = "tauri"
|
||||
version = "1.5.1"
|
||||
version = "1.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0238c5063bf9613054149a1b6bce4935922e532b7d8211f36989a490a79806be"
|
||||
checksum = "9bfe673cf125ef364d6f56b15e8ce7537d9ca7e4dae1cf6fbbdeed2e024db3d9"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"base64 0.21.4",
|
||||
|
|
|
@ -26,16 +26,15 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@sd/config": "workspace:*",
|
||||
"@tauri-apps/cli": "^1.5",
|
||||
"@types/babel__core": "^7.20",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"@vitejs/plugin-react": "^4.1",
|
||||
"sass": "^1.68",
|
||||
"typescript": "^5.2",
|
||||
"vite": "^4.4",
|
||||
"vite-plugin-html": "^3.2",
|
||||
"vite-plugin-svgr": "^3.3",
|
||||
"vite-tsconfig-paths": "^4.2"
|
||||
"@tauri-apps/cli": "^1.5.2",
|
||||
"@types/react": "^18.2.28",
|
||||
"@types/react-dom": "^18.2.13",
|
||||
"@vitejs/plugin-react": "^4.1.0",
|
||||
"sass": "^1.69.3",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.4.11",
|
||||
"vite-plugin-html": "^3.2.0",
|
||||
"vite-plugin-svgr": "^3.3.0",
|
||||
"vite-tsconfig-paths": "^4.2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ repository = { workspace = true }
|
|||
edition = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "1.5.1", features = ["dialog-all", "linux-protocol-headers", "macos-private-api", "os-all", "path-all", "protocol-all", "shell-all", "updater", "window-all"] }
|
||||
tauri = { version = "1.5.2", features = ["dialog-all", "linux-protocol-headers", "macos-private-api", "os-all", "path-all", "protocol-all", "shell-all", "updater", "window-all"] }
|
||||
|
||||
rspc = { workspace = true, features = ["tauri"] }
|
||||
sd-core = { path = "../../../core", features = [
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"react-device-detect": "^2.2.3",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-github-btn": "^1.4.0",
|
||||
"react-hook-form": "^7.43.9",
|
||||
"react-hook-form": "^7.47.0",
|
||||
"react-tsparticles": "^2.9.3",
|
||||
"reading-time": "^1.5.0",
|
||||
"rehype-autolink-headings": "^6.1.1",
|
||||
|
@ -50,19 +50,19 @@
|
|||
"three": "^0.153.0",
|
||||
"tsparticles": "^2.9.3",
|
||||
"uuid": "^9.0.0",
|
||||
"zod": "~3.22.2"
|
||||
"zod": "~3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sd/config": "workspace:*",
|
||||
"@svgr/webpack": "^8.0.1",
|
||||
"@types/node": "^18.17",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-burger-menu": "^2.8.3",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"@types/three": "^0.152",
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
"@types/node": "~18.17.19",
|
||||
"@types/react": "^18.2.28",
|
||||
"@types/react-burger-menu": "^2.8.4",
|
||||
"@types/react-dom": "^18.2.13",
|
||||
"@types/three": "^0.152.1",
|
||||
"drizzle-kit": "db-push",
|
||||
"postcss": "^8.4",
|
||||
"tailwindcss": "^3.3.2",
|
||||
"typescript": "^5.2"
|
||||
"postcss": "^8.4.31",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import Link from 'next/link';
|
|||
import { useMemo } from 'react';
|
||||
import { Button, tw } from '@sd/ui';
|
||||
import { useWindowSize } from '~/hooks/useWindowSize';
|
||||
|
||||
import { MagicCard, MagicContainer } from './MagicCard';
|
||||
import PlatformsArt from './PlatformsArt';
|
||||
import SpacedropArt from './SpacedropArt';
|
||||
|
|
|
@ -2,6 +2,7 @@ import clsx from 'clsx';
|
|||
import { useInView } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import React, { useRef } from 'react';
|
||||
|
||||
import CloudStorageArt from './CloudStorageArt';
|
||||
|
||||
const CloudStorage = () => {
|
||||
|
@ -25,7 +26,7 @@ const CloudStorage = () => {
|
|||
</div>
|
||||
<Image
|
||||
src="/images/cloudgradient.webp"
|
||||
className="absolute left-0 right-0 top-[-100px] mx-auto"
|
||||
className="absolute inset-x-0 top-[-100px] mx-auto"
|
||||
width={560}
|
||||
height={200}
|
||||
alt="cloud gradient"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { useId } from 'react';
|
||||
|
||||
import { cn } from './MagicCard';
|
||||
|
||||
interface DotPatternProps {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Download } from '@phosphor-icons/react';
|
||||
import clsx from 'clsx';
|
||||
import { useInView } from 'framer-motion';
|
||||
import { Download } from '@phosphor-icons/react';
|
||||
import React, { useRef } from 'react';
|
||||
import { Button } from '@sd/ui';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Newspaper } from '@phosphor-icons/react';
|
||||
import clsx from 'clsx';
|
||||
import Link from 'next/link';
|
||||
import { Newspaper } from '@phosphor-icons/react';
|
||||
|
||||
export interface NewBannerProps {
|
||||
headline: string;
|
||||
|
|
|
@ -1,40 +1,39 @@
|
|||
import { useState, useEffect
|
||||
} from "react";
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
/*
|
||||
/*
|
||||
A simple hook that returns the window size
|
||||
*/
|
||||
|
||||
type hookReturn = {
|
||||
type hookReturn = {
|
||||
width: number | null;
|
||||
height: number | null;
|
||||
};
|
||||
};
|
||||
|
||||
export const useWindowSize = (): hookReturn => {
|
||||
const [windowSize, setWindowSize] = useState<hookReturn>({
|
||||
const [windowSize, setWindowSize] = useState<hookReturn>({
|
||||
width: null,
|
||||
height: null,
|
||||
});
|
||||
height: null
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof window === 'undefined') {
|
||||
return;
|
||||
}
|
||||
const handleResize = () => {
|
||||
setWindowSize({
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight,
|
||||
});
|
||||
};
|
||||
useEffect(() => {
|
||||
if (typeof window === 'undefined') {
|
||||
return;
|
||||
}
|
||||
const handleResize = () => {
|
||||
setWindowSize({
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight
|
||||
});
|
||||
};
|
||||
|
||||
window.addEventListener('load', handleResize);
|
||||
window.addEventListener('resize', handleResize);
|
||||
window.addEventListener('load', handleResize);
|
||||
window.addEventListener('resize', handleResize);
|
||||
|
||||
return () => {
|
||||
window.removeEventListener('resize', handleResize)
|
||||
window.removeEventListener('load', handleResize)
|
||||
};
|
||||
}, [windowSize.width, windowSize.height]);
|
||||
return () => {
|
||||
window.removeEventListener('resize', handleResize);
|
||||
window.removeEventListener('load', handleResize);
|
||||
};
|
||||
}, [windowSize.width, windowSize.height]);
|
||||
|
||||
return windowSize;
|
||||
}
|
||||
return windowSize;
|
||||
};
|
||||
|
|
|
@ -31,7 +31,9 @@ html {
|
|||
z-index: -1;
|
||||
padding: 1px;
|
||||
background: linear-gradient(90deg, #54b8f6, #212b56);
|
||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
}
|
||||
|
@ -44,7 +46,9 @@ html {
|
|||
z-index: -1;
|
||||
padding: 1px;
|
||||
background: linear-gradient(90deg, transparent, #252535);
|
||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
}
|
||||
|
@ -89,7 +93,9 @@ html {
|
|||
border-radius: 100px;
|
||||
padding: 1px;
|
||||
background: linear-gradient(45deg, #904dff, #eb72ff);
|
||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
}
|
||||
|
@ -146,7 +152,9 @@ html {
|
|||
padding: 1px;
|
||||
border-radius: 7px;
|
||||
background: linear-gradient(20deg, #3c4c860e 30%, #9daadba2);
|
||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
}
|
||||
|
@ -364,7 +372,9 @@ html {
|
|||
z-index: 0;
|
||||
padding: 1px;
|
||||
background: linear-gradient(120deg, #b266ff, #6aa6ff);
|
||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
"moti": "^0.26.0",
|
||||
"phosphor-react-native": "^1.1.2",
|
||||
"react": "^18.2.0",
|
||||
"react-hook-form": "~7.45.2",
|
||||
"react-hook-form": "^7.47.0",
|
||||
"react-native": "0.72.4",
|
||||
"react-native-document-picker": "^9.0.1",
|
||||
"react-native-fs": "^2.20.0",
|
||||
|
@ -58,16 +58,16 @@
|
|||
"use-count-up": "^3.0.1",
|
||||
"use-debounce": "^9.0.4",
|
||||
"valtio": "^1.10.4",
|
||||
"zod": "~3.22.2"
|
||||
"zod": "~3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "~7",
|
||||
"@rnx-kit/metro-config": "^1.3.8",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@rnx-kit/metro-config": "^1.3.9",
|
||||
"@sd/config": "workspace:*",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react": "^18.2.28",
|
||||
"babel-plugin-module-resolver": "^5.0.0",
|
||||
"eslint-plugin-react-native": "^4.0.0",
|
||||
"eslint-plugin-react-native": "^4.1.0",
|
||||
"react-native-svg-transformer": "^1.1.0",
|
||||
"typescript": "^5.2"
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,15 +21,15 @@
|
|||
"devDependencies": {
|
||||
"@sd/config": "workspace:*",
|
||||
"@sd/ui": "workspace:*",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"@vitejs/plugin-react": "^4.1",
|
||||
"autoprefixer": "^10.4.12",
|
||||
"postcss": "^8.4",
|
||||
"@types/react": "^18.2.28",
|
||||
"@types/react-dom": "^18.2.13",
|
||||
"@vitejs/plugin-react": "^4.1.0",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"postcss": "^8.4.31",
|
||||
"prop-types": "^15.8.1",
|
||||
"storybook": "^7.0.5",
|
||||
"tailwindcss": "^3.3.2",
|
||||
"typescript": "^5.2",
|
||||
"vite": "^4.4"
|
||||
"storybook": "^7.4.6",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.4.11"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,19 +22,19 @@
|
|||
"react-router-dom": "6.9.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.30.0",
|
||||
"@playwright/test": "^1.39.0",
|
||||
"@sd/config": "workspace:*",
|
||||
"@sd/ui": "workspace:*",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"@vitejs/plugin-react": "^4.1",
|
||||
"autoprefixer": "^10.4.12",
|
||||
"postcss": "^8.4",
|
||||
"rollup-plugin-visualizer": "^5.9.0",
|
||||
"typescript": "^5.2",
|
||||
"vite": "^4.4",
|
||||
"vite-plugin-html": "^3.2",
|
||||
"vite-plugin-svgr": "^3.3",
|
||||
"vite-tsconfig-paths": "^4.2"
|
||||
"@types/react": "^18.2.28",
|
||||
"@types/react-dom": "^18.2.13",
|
||||
"@vitejs/plugin-react": "^4.1.0",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"postcss": "^8.4.31",
|
||||
"rollup-plugin-visualizer": "^5.9.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.4.11",
|
||||
"vite-plugin-html": "^3.2.0",
|
||||
"vite-plugin-svgr": "^3.3.0",
|
||||
"vite-tsconfig-paths": "^4.2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,28 +6,32 @@ index: 11
|
|||
# Publishing Updates
|
||||
|
||||
## Release Workflow
|
||||
|
||||
- Standalone binaries are published as `Spacedrive-{Format}-{Target Triple}.zip`
|
||||
- Updater binaries are published as `Spacedrive-Updater-{Target Triple}.zip`
|
||||
|
||||
## Desktop Update API
|
||||
|
||||
- Available at `/api/releases/tauri/[version]/[target]/[arch]`
|
||||
- Version should be specified via `[version]` or overridden in `X-Spacedrive-Version`
|
||||
- Exact versions should be specified as semantic versions, eg `0.1.0`, `1.0.0-alpha.1`
|
||||
- Release channels `stable` and `alpha` can also be specified
|
||||
- `alpha` will look for tags that contain the string `alpha`
|
||||
- `stable` will look for the release marked as `Latest Release`
|
||||
- Exact versions should be specified as semantic versions, eg `0.1.0`, `1.0.0-alpha.1`
|
||||
- Release channels `stable` and `alpha` can also be specified
|
||||
- `alpha` will look for tags that contain the string `alpha`
|
||||
- `stable` will look for the release marked as `Latest Release`
|
||||
- Looks for assets named `Spacedrive-Updater-{Target}-{Arch}.{Extension}`
|
||||
- `Target`: `darwin`, `linux`, `windows`
|
||||
- `Arch`: `x86_64`, `aarch64`
|
||||
- Returns `TauriResponse`
|
||||
|
||||
## Desktop Download API
|
||||
|
||||
- Available at `/api/releases/desktop/[version]/[target]/[arch]`
|
||||
- Same version semantics as Desktop Update API
|
||||
- Looks for assets starting with `Spacedrive-{Target}-{Arch}` to allow for extensions like `.dmg`, `.AppImage` and `.msi`
|
||||
- Returns a redirect as it's intended to be invoked via `<a>` elements
|
||||
|
||||
## Publishing a Release
|
||||
|
||||
- Create tag that follows semver, eg. `0.1.0`, `1.0.0-alpha.1`
|
||||
- Update version number in `apps/desktop/src-tauri/Cargo.toml`
|
||||
- Create release - name does not matter, only the tag
|
||||
|
|
|
@ -55,7 +55,7 @@ export default function Explorer(props: PropsWithChildren<Props>) {
|
|||
<div className="flex-1 overflow-hidden">
|
||||
<div
|
||||
ref={explorer.scrollRef}
|
||||
className="h-screen overflow-x-hidden custom-scroll explorer-scroll"
|
||||
className="custom-scroll explorer-scroll h-screen overflow-x-hidden"
|
||||
style={
|
||||
{
|
||||
'--scrollbar-margin-top': `${TOP_BAR_HEIGHT}px`,
|
||||
|
|
|
@ -59,7 +59,7 @@ export default ({ options }: TopBarChildrenProps) => {
|
|||
}, []);
|
||||
|
||||
return (
|
||||
<div data-tauri-drag-region={os === 'macOS'} className="flex justify-end flex-1">
|
||||
<div data-tauri-drag-region={os === 'macOS'} className="flex flex-1 justify-end">
|
||||
<div data-tauri-drag-region={os === 'macOS'} className={`flex gap-0`}>
|
||||
{options?.map((group, groupIndex) =>
|
||||
group.map((option, index) => (
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
"react-dnd-html5-backend": "^16.0.1",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-error-boundary": "^3.1.4",
|
||||
"react-hook-form": "~7.45.2",
|
||||
"react-hook-form": "^7.47.0",
|
||||
"react-hotkeys-hook": "^4.4.1",
|
||||
"react-json-view": "^1.21.3",
|
||||
"react-loading-skeleton": "^3.1.0",
|
||||
|
@ -66,16 +66,14 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@sd/config": "workspace:*",
|
||||
"@types/babel__core": "^7.20",
|
||||
"@types/loadable__component": "^5.13.4",
|
||||
"@types/node": "^18.17",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"@types/node": "~18.17.19",
|
||||
"@types/react": "^18.2.28",
|
||||
"@types/react-dom": "^18.2.13",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/uuid": "^9.0.2",
|
||||
"@vitejs/plugin-react": "^4.1",
|
||||
"typescript": "^5.2",
|
||||
"vite": "^4.4",
|
||||
"vite-plugin-svgr": "^3.3"
|
||||
"@types/uuid": "^9.0.5",
|
||||
"@vitejs/plugin-react": "^4.1.0",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.4.11",
|
||||
"vite-plugin-svgr": "^3.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,9 @@ export function keybind<T extends string>(
|
|||
return noDuplicates;
|
||||
}
|
||||
|
||||
// Required to export keybind without importing @sd/ui
|
||||
export type { ModifierKeys } from '@sd/ui';
|
||||
|
||||
export function keybindForOs(
|
||||
os: OperatingSystem
|
||||
): (modifers: ModifierKeys[], keys: string[]) => string {
|
||||
|
|
18
package.json
18
package.json
|
@ -35,22 +35,22 @@
|
|||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/plugin-syntax-import-assertions": "~7",
|
||||
"@babel/plugin-syntax-import-assertions": "^7.22.5",
|
||||
"@cspell/dict-rust": "^4.0.1",
|
||||
"@cspell/dict-typescript": "^3.1.2",
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
|
||||
"@storybook/react-vite": "^7.4.6",
|
||||
"cspell": "^7.3.7",
|
||||
"cspell": "^7.3.8",
|
||||
"prettier": "^3.0.3",
|
||||
"prettier-plugin-tailwindcss": "^0.5.5",
|
||||
"turbo": "^1.10.14",
|
||||
"turbo-ignore": "^1.10.14",
|
||||
"typescript": "^5.2",
|
||||
"vite": "^4.4"
|
||||
"prettier-plugin-tailwindcss": "^0.5.6",
|
||||
"turbo": "^1.10.15",
|
||||
"turbo-ignore": "^1.10.15",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.4.11"
|
||||
},
|
||||
"overrides": {
|
||||
"vite-plugin-svgr": "https://github.com/spacedriveapp/vite-plugin-svgr#cb4195b69849429cdb18d1f12381676bf9196a84",
|
||||
"@types/node": "^18.17"
|
||||
"@types/node": "~18.17.19"
|
||||
},
|
||||
"engines": {
|
||||
"pnpm": ">=8.0.0",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
import { ReactComponent as Academia } from './Academia.svg';
|
||||
import { ReactComponent as Apple } from './apple.svg';
|
||||
import { ReactComponent as Discord } from './Discord.svg';
|
||||
import { ReactComponent as Dribbble } from './Dribbble.svg';
|
||||
import { ReactComponent as Github } from './Github.svg';
|
||||
|
@ -11,6 +12,5 @@ import { ReactComponent as Instagram } from './Instagram.svg';
|
|||
import { ReactComponent as Opencollective } from './Opencollective.svg';
|
||||
import { ReactComponent as Twitch } from './Twitch.svg';
|
||||
import { ReactComponent as Twitter } from './Twitter.svg';
|
||||
import { ReactComponent as Apple } from './apple.svg';
|
||||
|
||||
export { Academia, Discord, Dribbble, Github, Instagram, Opencollective, Twitch, Twitter, Apple };
|
||||
|
|
|
@ -18,17 +18,15 @@
|
|||
"@zxcvbn-ts/language-common": "^2.0.1",
|
||||
"@zxcvbn-ts/language-en": "^2.1.0",
|
||||
"plausible-tracker": "^0.3.8",
|
||||
"react-hook-form": "~7.45.2",
|
||||
"react-hook-form": "^7.47.0",
|
||||
"valtio": "^1.7.4",
|
||||
"zod": "~3.22.2"
|
||||
"zod": "~3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.0.21",
|
||||
"scripts": "*",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.2"
|
||||
"@types/react": "^18.2.28",
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.2.0"
|
||||
"react": "^18.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,10 +117,8 @@ export function withFeatureFlag(
|
|||
Component: React.FunctionComponent,
|
||||
fallback: React.ReactNode = null
|
||||
): React.FunctionComponent {
|
||||
// @ts-expect-error
|
||||
return (props) => {
|
||||
const enabled = useFeatureFlag(flag);
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
return enabled ? <Component /> : fallback;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,19 +11,19 @@
|
|||
"lint": "eslint . --cache"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^6.7",
|
||||
"@typescript-eslint/parser": "^6.7",
|
||||
"eslint": "^8.50",
|
||||
"eslint-config-next": "13.3.0",
|
||||
"eslint-config-prettier": "^9.0",
|
||||
"eslint-config-turbo": "^1.9.8",
|
||||
"eslint-plugin-prettier": "^5.0",
|
||||
"eslint-plugin-react": "^7.32.2",
|
||||
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
||||
"@typescript-eslint/parser": "^6.7.5",
|
||||
"eslint": "^8.51.0",
|
||||
"eslint-config-next": "^13.5.4",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-config-turbo": "^1.10.15",
|
||||
"eslint-plugin-prettier": "^5.0.1",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-tailwindcss": "^3.12.0",
|
||||
"eslint-plugin-tailwindcss": "^3.13.0",
|
||||
"eslint-utils": "^3.0.0",
|
||||
"regexpp": "^3.2.0",
|
||||
"vite-plugin-html": "^3.2",
|
||||
"vite-plugin-svgr": "^3.3"
|
||||
"vite-plugin-html": "^3.2.0",
|
||||
"vite-plugin-svgr": "^3.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
"@headlessui/react": "^1.7.3",
|
||||
"@headlessui/tailwindcss": "^0.1.1",
|
||||
"@hookform/resolvers": "^3.1.0",
|
||||
"@phosphor-icons/react": "^2.0.10",
|
||||
"@radix-ui/react-checkbox": "^1.0.3",
|
||||
"@radix-ui/react-context-menu": "^2.1.4",
|
||||
"@radix-ui/react-dialog": "^1.0.4",
|
||||
|
@ -35,7 +36,6 @@
|
|||
"@tailwindcss/forms": "^0.5.3",
|
||||
"class-variance-authority": "^0.5.3",
|
||||
"clsx": "^1.2.1",
|
||||
"@phosphor-icons/react": "^2.0.10",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-loading-icons": "^1.1.0",
|
||||
|
@ -44,21 +44,21 @@
|
|||
"tailwindcss-radix": "^2.6.0",
|
||||
"ts-pattern": "^5.0.1",
|
||||
"use-debounce": "^9.0.4",
|
||||
"zod": "~3.22.2"
|
||||
"zod": "~3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "~7",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@sd/config": "workspace:*",
|
||||
"@storybook/types": "^7.0.24",
|
||||
"@tailwindcss/typography": "^0.5.7",
|
||||
"@types/node": "^18.17",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"autoprefixer": "^10.4.12",
|
||||
"sass": "^1.68",
|
||||
"postcss": "^8.4",
|
||||
"tailwindcss": "^3.3.2",
|
||||
"tailwindcss-animate": "^1.0.5",
|
||||
"typescript": "^5.2"
|
||||
"@storybook/types": "^7.4.6",
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"@types/node": "~18.17.19",
|
||||
"@types/react": "^18.2.28",
|
||||
"@types/react-dom": "^18.2.13",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"postcss": "^8.4.31",
|
||||
"sass": "^1.69.3",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ export const styles = cva(
|
|||
[
|
||||
'cursor-default items-center rounded-md border outline-none transition-colors duration-100',
|
||||
'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-70',
|
||||
'focus:ring-none focus:ring-offset-none ring-offset-app-box cursor-pointer'
|
||||
'focus:ring-none focus:ring-offset-none cursor-pointer ring-offset-app-box'
|
||||
],
|
||||
{
|
||||
variants: {
|
||||
|
|
|
@ -50,7 +50,7 @@ export const keySymbols: Record<string, { macOS?: string; Windows?: string; Othe
|
|||
'End': { macOS: '↘', Other: 'End' },
|
||||
'PageUp': { macOS: '⇞', Other: 'PgUp' },
|
||||
'PageDown': { macOS: '⇟', Other: 'PgDn' },
|
||||
'Shift': { macOS: '⇧', Other: 'Shift'},
|
||||
'Shift': { macOS: '⇧', Other: 'Shift' },
|
||||
'PrintScreen': { Other: 'PrtSc' },
|
||||
'ScrollLock': { macOS: '⤓', Other: 'ScrLk' },
|
||||
'Pause': { macOS: '⎉', Other: 'Pause' }
|
||||
|
|
12416
pnpm-lock.yaml
12416
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -1,9 +1,6 @@
|
|||
packages:
|
||||
- 'packages/*'
|
||||
- 'apps/*'
|
||||
- 'core'
|
||||
- 'interface'
|
||||
- 'docs'
|
||||
- 'crates/sync/example/web'
|
||||
- 'scripts'
|
||||
- '.github/actions/*'
|
||||
|
|
|
@ -25,18 +25,18 @@
|
|||
"undici": "^5.25.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "~7",
|
||||
"@babel/eslint-parser": "~7",
|
||||
"@babel/eslint-plugin": "~7",
|
||||
"@babel/core": "^7.23.2",
|
||||
"@babel/eslint-parser": "^7.22.15",
|
||||
"@babel/eslint-plugin": "^7.22.10",
|
||||
"@types/mustache": "^4.2.3",
|
||||
"@types/node": "^18.17",
|
||||
"@typescript-eslint/eslint-plugin": "^6.7",
|
||||
"@typescript-eslint/parser": "^6.7",
|
||||
"eslint": "^8.50",
|
||||
"eslint-config-prettier": "^9.0",
|
||||
"eslint-config-standard": "^17.1",
|
||||
"eslint-plugin-jsdoc": "^46.8",
|
||||
"eslint-plugin-prettier": "^5.0",
|
||||
"typescript": "^5.2"
|
||||
"@types/node": "~18.17.19",
|
||||
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
||||
"@typescript-eslint/parser": "^6.7.5",
|
||||
"eslint": "^8.51.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-config-standard": "^17.1.0",
|
||||
"eslint-plugin-jsdoc": "^46.8.2",
|
||||
"eslint-plugin-prettier": "^5.0.1",
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@ export async function tauriUpdaterKey(nativeDeps) {
|
|||
}
|
||||
|
||||
env.TAURI_PRIVATE_KEY = privateKey
|
||||
env.TAURI_KEY_PASSWORD = ''
|
||||
return publicKey
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue