Autoformatting

This commit is contained in:
Arnab Chakraborty
2024-10-14 22:49:46 -04:00
parent b7ce861ace
commit 960e7c4ef5
10 changed files with 29 additions and 41 deletions

View File

@@ -34,15 +34,15 @@ uuid = { workspace = true, features = ["serde"] }
# Specific Desktop dependencies
# WARNING: Do NOT enable default features, as that vendors dbus (see below)
opener = { version = "0.7.1", features = ["reveal"], default-features = false }
specta-typescript = "=0.0.7"
tauri-plugin-deep-link = "=2.0.1"
opener = { version = "0.7.1", features = ["reveal"], default-features = false }
specta-typescript = "=0.0.7"
tauri-plugin-clipboard-manager = "=2.0.1"
tauri-plugin-dialog = "=2.0.1"
tauri-plugin-http = "=2.0.1"
tauri-plugin-os = "=2.0.1"
tauri-plugin-shell = "=2.0.1"
tauri-plugin-updater = "=2.0.2"
tauri-plugin-deep-link = "=2.0.1"
tauri-plugin-dialog = "=2.0.1"
tauri-plugin-http = "=2.0.1"
tauri-plugin-os = "=2.0.1"
tauri-plugin-shell = "=2.0.1"
tauri-plugin-updater = "=2.0.2"
# memory allocator
mimalloc = { workspace = true }

View File

@@ -2,9 +2,7 @@
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": [
"main"
],
"windows": ["main"],
"permissions": [
"core:app:default",
"core:event:default",

View File

@@ -29,9 +29,7 @@
"transparent": true,
"center": true,
"windowEffects": {
"effects": [
"sidebar"
],
"effects": ["sidebar"],
"state": "followsWindowActiveState",
"radius": 9
}
@@ -48,11 +46,7 @@
},
"bundle": {
"active": true,
"targets": [
"deb",
"msi",
"dmg"
],
"targets": ["deb", "msi", "dmg"],
"publisher": "Spacedrive Technology Inc.",
"copyright": "Spacedrive Technology Inc.",
"category": "Productivity",
@@ -71,20 +65,14 @@
"files": {
"/usr/share/spacedrive/models/yolov8s.onnx": "../../.deps/models/yolov8s.onnx"
},
"depends": [
"libc6",
"libxdo3",
"dbus"
]
"depends": ["libc6", "libxdo3", "dbus"]
}
},
"macOS": {
"minimumSystemVersion": "10.15",
"exceptionDomain": null,
"entitlements": null,
"frameworks": [
"../../.deps/Spacedrive.framework"
],
"frameworks": ["../../.deps/Spacedrive.framework"],
"dmg": {
"background": "dmg-background.png",
"appPosition": {
@@ -121,9 +109,7 @@
"deep-link": {
"mobile": [],
"desktop": {
"schemes": [
"spacedrive"
]
"schemes": ["spacedrive"]
}
}
}

View File

@@ -117,8 +117,8 @@ const Devices = ({ node, stats }: Props) => {
name={device.name}
// TODO (Optional): Use Brand Type for Different Android Models/iOS Models using DeviceInfo.getBrand()
icon={hardwareModelToIcon(device.hardware_model)}
totalSpace={"0"}
freeSpace={"0"}
totalSpace={'0'}
freeSpace={'0'}
color="#0362FF"
connectionType={'cloud'}
/>

View File

@@ -1,5 +1,4 @@
import {proxy, useSnapshot} from 'valtio';
import { proxy, useSnapshot } from 'valtio';
export type User = {
id: string;
@@ -12,10 +11,9 @@ const state = {
userInfo: undefined as User | undefined
};
const store = proxy({
...state
})
});
// for reading
export const useUserStore = () => useSnapshot(store);

View File

@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
provider = "sqlite"

View File

@@ -15,7 +15,11 @@ export default function DevicesSection() {
return (
<Section name={t('devices')}>
{node && (
<SidebarLink className="group relative w-full" to={`node/${node.id}`} key={node.id as any}>
<SidebarLink
className="group relative w-full"
to={`node/${node.id}`}
key={node.id as any}
>
{node.device_model ? (
<Icon
name={hardwareModelToIcon(node.device_model as HardwareModel)}

View File

@@ -25,7 +25,7 @@ function Account() {
</Button>
</div>
<hr className="mb-4 mt-2 w-full border-app-line" />
<span>{t('logged_in_as', "TODO")}</span>
<span>{t('logged_in_as', 'TODO')}</span>
</div>
);
}

View File

@@ -17,7 +17,9 @@ export const useDeeplinkEventHandler = () => {
const searchParamsObj = new URLSearchParams(searchParams);
const searchParamsString = searchParamsObj.toString();
console.log('Navigating to', {
path, searchParamsString, hash
path,
searchParamsString,
hash
});
navigate({ pathname: path, search: searchParamsString, hash });

View File

@@ -3,5 +3,5 @@
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist"
},
}
}