mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 05:45:01 -04:00
Formatting
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,10 +42,6 @@ import { queryClient } from './query';
|
||||
import { createMemoryRouterWithHistory } from './router';
|
||||
import { createUpdater } from './updater';
|
||||
|
||||
//Set global fetch to use tauri fetch
|
||||
// If the build in in production mode, we need to set the global fetch to use the tauri fetch
|
||||
// console.log('import.meta.env.DEV', import.meta.env.DEV);
|
||||
|
||||
SuperTokens.init({
|
||||
appInfo: {
|
||||
apiDomain: 'http://localhost:9420',
|
||||
|
||||
@@ -12,17 +12,17 @@ use quic_rpc::{
|
||||
pub enum Error {
|
||||
// Setup errors
|
||||
#[error("Couldn't parse Cloud Services API address URL: {0}")]
|
||||
InvalidUrl(reqwest_middleware::reqwest::Error),
|
||||
InvalidUrl(reqwest::Error),
|
||||
#[error("Failed to initialize http client: {0}")]
|
||||
HttpClientInit(reqwest_middleware::reqwest::Error),
|
||||
HttpClientInit(reqwest::Error),
|
||||
#[error("Failed to request Cloud Services API address from Auth Server route: {0}")]
|
||||
FailedToRequestApiAddress(reqwest_middleware::Error),
|
||||
#[error("Auth Server's Cloud Services API address route returned an error: {0}")]
|
||||
AuthServerError(reqwest_middleware::reqwest::Error),
|
||||
AuthServerError(reqwest::Error),
|
||||
#[error(
|
||||
"Failed to extract response body from Auth Server's Cloud Services API address route: {0}"
|
||||
)]
|
||||
FailedToExtractApiAddress(reqwest_middleware::reqwest::Error),
|
||||
FailedToExtractApiAddress(reqwest::Error),
|
||||
#[error("Failed to parse auth server's Cloud Services API address: {0}")]
|
||||
FailedToParseApiAddress(#[from] AddrParseError),
|
||||
#[error("Failed to create endpoint: {0}")]
|
||||
@@ -100,13 +100,13 @@ pub enum Error {
|
||||
#[error("Failed to download sync messages: {0}")]
|
||||
DownloadSyncMessages(reqwest_middleware::Error),
|
||||
#[error("Received an error response from uploading sync messages: {0}")]
|
||||
ErrorResponseUploadSyncMessages(reqwest_middleware::reqwest::Error),
|
||||
ErrorResponseUploadSyncMessages(reqwest::Error),
|
||||
#[error("Received an error response from downloading sync messages: {0}")]
|
||||
ErrorResponseDownloadSyncMessages(reqwest_middleware::reqwest::Error),
|
||||
ErrorResponseDownloadSyncMessages(reqwest::Error),
|
||||
#[error(
|
||||
"Received an error response from downloading sync messages while reading its bytes: {0}"
|
||||
)]
|
||||
ErrorResponseDownloadReadBytesSyncMessages(reqwest_middleware::reqwest::Error),
|
||||
ErrorResponseDownloadReadBytesSyncMessages(reqwest::Error),
|
||||
#[error("Critical error while uploading sync messages")]
|
||||
CriticalErrorWhileUploadingSyncMessages,
|
||||
#[error("Failed to send End update to push sync messages")]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use crate::{
|
||||
p2p::JoinSyncGroupError, token_refresher::TokenRefresher, CloudServices, Error,
|
||||
KeyManager,
|
||||
p2p::JoinSyncGroupError, token_refresher::TokenRefresher, CloudServices, Error, KeyManager,
|
||||
};
|
||||
|
||||
use sd_cloud_schema::{
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
use sd_core_sync::SyncManager;
|
||||
|
||||
use sd_actors::Stopper;
|
||||
use sd_prisma::prisma::cloud_crdt_operation;
|
||||
|
||||
use std::{
|
||||
future::IntoFuture,
|
||||
pin::pin,
|
||||
sync::{
|
||||
atomic::{AtomicBool, Ordering},
|
||||
Arc,
|
||||
@@ -15,7 +13,6 @@ use std::{
|
||||
use futures::{FutureExt, StreamExt};
|
||||
use futures_concurrency::future::Race;
|
||||
use tokio::sync::Notify;
|
||||
use tracing::debug;
|
||||
|
||||
// Responsible for taking sync operations received from the cloud,
|
||||
// and applying them to the local database via the sync system's ingest actor.
|
||||
@@ -108,13 +105,15 @@ pub async fn run_actor(
|
||||
state.store(false, Ordering::Relaxed);
|
||||
state_notify.notify_waiters();
|
||||
|
||||
if let Race::Stopped = (
|
||||
notify.notified().map(|()| Race::Notified),
|
||||
stop.into_future().map(|()| Race::Stopped),
|
||||
)
|
||||
.race()
|
||||
.await
|
||||
{
|
||||
if matches!(
|
||||
(
|
||||
notify.notified().map(|()| Race::Notified),
|
||||
stop.into_future().map(|()| Race::Stopped),
|
||||
)
|
||||
.race()
|
||||
.await,
|
||||
Race::Stopped
|
||||
) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ use sd_sync::{
|
||||
|
||||
use std::{
|
||||
collections::BTreeMap,
|
||||
future::IntoFuture,
|
||||
num::NonZeroU128,
|
||||
ops::Deref,
|
||||
pin::pin,
|
||||
@@ -21,10 +20,7 @@ use std::{
|
||||
|
||||
use async_channel as chan;
|
||||
use futures::{stream, FutureExt, StreamExt};
|
||||
use futures_concurrency::{
|
||||
future::{Race, TryJoin},
|
||||
stream::Merge,
|
||||
};
|
||||
use futures_concurrency::{future::TryJoin, stream::Merge};
|
||||
use prisma_client_rust::chrono::{DateTime, Utc};
|
||||
use tokio::sync::oneshot;
|
||||
use tracing::{debug, error, instrument, trace, warn};
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#![allow(clippy::panic, clippy::unwrap_used)] // TODO: Finish this
|
||||
|
||||
use crate::{
|
||||
library::Library,
|
||||
sync::{self, GetOpsArgs},
|
||||
};
|
||||
use crate::{library::Library, sync::GetOpsArgs};
|
||||
|
||||
use sd_p2p_proto::{decode, encode};
|
||||
use sd_sync::CompressedCRDTOperationsPerModelPerDevice;
|
||||
@@ -139,11 +136,9 @@ mod originator {
|
||||
|
||||
pub use responder::run as responder;
|
||||
mod responder {
|
||||
use std::pin::pin;
|
||||
|
||||
use super::*;
|
||||
use futures::StreamExt;
|
||||
use originator::tx as rx;
|
||||
|
||||
pub mod tx {
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Card } from '@sd/ui';
|
||||
import { TruncatedText } from '~/components';
|
||||
import { AuthRequiredOverlay } from '~/components/AuthRequiredOverlay';
|
||||
|
||||
const Profile = ({ email }: { email?: string; }) => {
|
||||
const Profile = ({ email }: { email?: string }) => {
|
||||
const emailName = email?.split('@')[0];
|
||||
const capitalizedEmailName = (emailName?.charAt(0).toUpperCase() ?? '') + emailName?.slice(1);
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@ export default function getWindowHandler(original: WindowHandlerInterface): Wind
|
||||
// First try with react-router-dom's useUrlSearchParams
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
|
||||
const params: URLSearchParams | string = (window.location as any).__TEMP_URL_PARAMS ?? '';
|
||||
const params: URLSearchParams | string =
|
||||
(window.location as any).__TEMP_URL_PARAMS ?? '';
|
||||
return params.toString();
|
||||
// const firstQuestionMarkIndex = currentURL.indexOf('?');
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export const Component = () => {
|
||||
method: 'GET'
|
||||
});
|
||||
const data = await user_data.json();
|
||||
console.log("Data from user (auth API)", data);
|
||||
console.log('Data from user (auth API)', data);
|
||||
return data;
|
||||
}
|
||||
_().then((data) => {
|
||||
|
||||
Reference in New Issue
Block a user