From d6bb002586c8ae139059c3b4d0513a0167dc4bee Mon Sep 17 00:00:00 2001
From: Harry Hopkinson
Date: Sun, 24 Apr 2022 21:16:55 +0100
Subject: [PATCH] Linted Files according to the .prettierrc.
---
.github/FUNDING.yml | 2 +-
.../build-and-publish-server/action.yml | 8 +-
.github/workflows/ci.yml | 224 +--
.github/workflows/org-readme.yml | 6 +-
README.md | 48 +-
apps/desktop/tsconfig.json | 4 +-
apps/mobile/package.json | 11 +-
apps/server/k8s/infrastructure.yaml | 14 +-
apps/server/k8s/sdserver.yaml | 20 +-
apps/web/README.md | 2 +-
apps/web/src/App.tsx | 4 +-
apps/web/src/index.html | 2 +-
apps/web/tsconfig.json | 4 +-
docs/architecture/distributed-data-sync.md | 135 +-
docs/architecture/virtual-filesystem.md | 23 +-
docs/changelog/10-4-22_0.1.0.md | 2 +-
docs/developer/contributing.md | 2 +-
docs/developer/todo.md | 4 +-
docs/product/credits.md | 10 +-
docs/product/faq.md | 14 +-
docs/product/marketing.md | 1 -
extensions/apple-photos/README.md | 3 +-
packages/client/.eslintrc.js | 2 +-
packages/config/eslint-preset.js | 10 +-
packages/interface/src/assets/icons/index.ts | 5 +-
.../interface/src/assets/spline/scene.json | 1568 ++++++++++++++++-
.../interface/src/assets/spline/windows.json | 1568 ++++++++++++++++-
.../src/components/items/DriveListItem.tsx | 13 +-
packages/interface/src/style.scss | 18 +-
packages/interface/tsconfig.json | 2 +-
packages/ui/style/style.scss | 4 +-
packages/ui/tsconfig.json | 4 +-
pnpm-lock.yaml | Bin 219215 -> 236129 bytes
33 files changed, 3401 insertions(+), 336 deletions(-)
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index ec071c8aa..3582b6290 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1 +1 @@
-open_collective: spacedrive
\ No newline at end of file
+open_collective: spacedrive
diff --git a/.github/actions/build-and-publish-server/action.yml b/.github/actions/build-and-publish-server/action.yml
index 225d268f7..efbb4ee93 100644
--- a/.github/actions/build-and-publish-server/action.yml
+++ b/.github/actions/build-and-publish-server/action.yml
@@ -13,13 +13,13 @@ runs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ inputs.gh_token }}
-
+
- name: Build Server
shell: bash
run: |
cargo build --release -p server
cp ./target/release/server ./apps/server/server
-
+
- name: Determine image name & tag
shell: bash
run: |
@@ -46,10 +46,10 @@ runs:
run: |
docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:staging
docker push $IMAGE_NAME:staging
-
+
- name: Tag & push image as latest production image
if: github.event_name == 'release'
shell: bash
run: |
docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:production
- docker push $IMAGE_NAME:production
\ No newline at end of file
+ docker push $IMAGE_NAME:production
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8af60f121..3d53df5bf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -3,8 +3,8 @@ on:
pull_request:
push:
branches:
- - main
- - ci
+ - main
+ - ci
workflow_dispatch:
jobs:
@@ -18,115 +18,115 @@ jobs:
RUST_CACHE_VERSION: 0
runs-on: ${{ matrix.platform }}
steps:
- - uses: actions/checkout@v2
-
- # from https://github.com/zmwangx/rust-ffmpeg/blob/master/.github/workflows/build.yml
- - name: Install ffmpeg (Windows)
- if: matrix.platform == 'windows-latest'
- run: |
- $VCINSTALLDIR = $(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath)
- Add-Content $env:GITHUB_ENV "LIBCLANG_PATH=${VCINSTALLDIR}\VC\Tools\LLVM\x64\bin`n"
- Invoke-WebRequest "${env:FFMPEG_DOWNLOAD_URL}" -OutFile ffmpeg-release-full-shared.7z
- 7z x ffmpeg-release-full-shared.7z
- mkdir ffmpeg
- mv ffmpeg-*/* ffmpeg/
- Add-Content $env:GITHUB_ENV "FFMPEG_DIR=${pwd}\ffmpeg`n"
- Add-Content $env:GITHUB_PATH "${pwd}\ffmpeg\bin`n"
-
- - name: Install CMake (Windows)
- uses: lukka/get-cmake@latest
- if: matrix.platform == 'windows-latest'
-
- # Optimisation for windows
- - name: Rename existing rust toolchain (Windows)
- if: matrix.platform == 'windows-latest'
- run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
-
- - name: Setup Node
- uses: actions/setup-node@v1
- with:
- node-version: 16
-
- - name: Install Rust stable
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- profile: minimal
- override: true
- components: rustfmt, rust-src
-
- - name: Cache Rust Dependencies
- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c
- with:
- sharedKey: ${{ env.RUST_CACHE_VERSION }}
-
- - name: Cache pnpm dependencies
- uses: actions/cache@v2
- with:
- path: ~/.pnpm-store
- key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- restore-keys: |
- ${{ runner.os }}-
+ - uses: actions/checkout@v2
- - name: Install pnpm
- uses: pnpm/action-setup@v2.2.1
- with:
- version: 6.32.6
-
- - name: Install dependencies (Ubuntu)
- if: matrix.platform == 'ubuntu-latest'
- run: |
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends \
- libgtk-3-dev \
- webkit2gtk-4.0 \
- libappindicator3-dev \
- librsvg2-dev \
- patchelf \
- libssl-dev \
- libavcodec-dev \
- libavdevice-dev \
- libavfilter-dev \
- libavformat-dev \
- libavresample-dev \
- libavutil-dev \
- libswscale-dev \
- libswresample-dev \
- pkg-config \
- ffmpeg
-
- - name: Install dependencies (macOS)
- if: matrix.platform == 'macos-latest'
- run: |
- brew install ffmpeg
-
- - name: Install pnpm dependencies
- run: pnpm i
-
- - name: Build codegen
- run: pnpm prep:ci
-
- - name: Build frontend
- run: pnpm desktop build:vite
-
- - name: Build Tauri app
- uses: tauri-apps/tauri-action@v0
- with:
- projectPath: apps/desktop
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # from https://github.com/zmwangx/rust-ffmpeg/blob/master/.github/workflows/build.yml
+ - name: Install ffmpeg (Windows)
+ if: matrix.platform == 'windows-latest'
+ run: |
+ $VCINSTALLDIR = $(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath)
+ Add-Content $env:GITHUB_ENV "LIBCLANG_PATH=${VCINSTALLDIR}\VC\Tools\LLVM\x64\bin`n"
+ Invoke-WebRequest "${env:FFMPEG_DOWNLOAD_URL}" -OutFile ffmpeg-release-full-shared.7z
+ 7z x ffmpeg-release-full-shared.7z
+ mkdir ffmpeg
+ mv ffmpeg-*/* ffmpeg/
+ Add-Content $env:GITHUB_ENV "FFMPEG_DIR=${pwd}\ffmpeg`n"
+ Add-Content $env:GITHUB_PATH "${pwd}\ffmpeg\bin`n"
- - name: Build and publish server
- if: matrix.platform == 'ubuntu-latest'
- uses: ./.github/actions/build-and-publish-server
- with:
- gh_token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Deploy Spacedrive Server to Kubernetes
- if: matrix.platform == 'ubuntu-latest'
- env:
- K8S_KUBECONFIG: ${{ secrets.K8S_KUBECONFIG }}
- run: |
- mkdir -p ~/.kube
- echo "$K8S_KUBECONFIG" > ~/.kube/config 2>&1
- kubectl rollout restart deployment/sdserver-deployment
+ - name: Install CMake (Windows)
+ uses: lukka/get-cmake@latest
+ if: matrix.platform == 'windows-latest'
+
+ # Optimisation for windows
+ - name: Rename existing rust toolchain (Windows)
+ if: matrix.platform == 'windows-latest'
+ run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
+
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: 16
+
+ - name: Install Rust stable
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ profile: minimal
+ override: true
+ components: rustfmt, rust-src
+
+ - name: Cache Rust Dependencies
+ uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c
+ with:
+ sharedKey: ${{ env.RUST_CACHE_VERSION }}
+
+ - name: Cache pnpm dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.pnpm-store
+ key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2.2.1
+ with:
+ version: 6.32.6
+
+ - name: Install dependencies (Ubuntu)
+ if: matrix.platform == 'ubuntu-latest'
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends \
+ libgtk-3-dev \
+ webkit2gtk-4.0 \
+ libappindicator3-dev \
+ librsvg2-dev \
+ patchelf \
+ libssl-dev \
+ libavcodec-dev \
+ libavdevice-dev \
+ libavfilter-dev \
+ libavformat-dev \
+ libavresample-dev \
+ libavutil-dev \
+ libswscale-dev \
+ libswresample-dev \
+ pkg-config \
+ ffmpeg
+
+ - name: Install dependencies (macOS)
+ if: matrix.platform == 'macos-latest'
+ run: |
+ brew install ffmpeg
+
+ - name: Install pnpm dependencies
+ run: pnpm i
+
+ - name: Build codegen
+ run: pnpm prep:ci
+
+ - name: Build frontend
+ run: pnpm desktop build:vite
+
+ - name: Build Tauri app
+ uses: tauri-apps/tauri-action@v0
+ with:
+ projectPath: apps/desktop
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Build and publish server
+ if: matrix.platform == 'ubuntu-latest'
+ uses: ./.github/actions/build-and-publish-server
+ with:
+ gh_token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Deploy Spacedrive Server to Kubernetes
+ if: matrix.platform == 'ubuntu-latest'
+ env:
+ K8S_KUBECONFIG: ${{ secrets.K8S_KUBECONFIG }}
+ run: |
+ mkdir -p ~/.kube
+ echo "$K8S_KUBECONFIG" > ~/.kube/config 2>&1
+ kubectl rollout restart deployment/sdserver-deployment
diff --git a/.github/workflows/org-readme.yml b/.github/workflows/org-readme.yml
index b12ca9b0a..4ff9ff360 100644
--- a/.github/workflows/org-readme.yml
+++ b/.github/workflows/org-readme.yml
@@ -3,9 +3,9 @@ name: Update Org README
on:
push:
branches:
- - main
+ - main
paths:
- - README.md
+ - README.md
workflow_dispatch:
jobs:
@@ -25,4 +25,4 @@ jobs:
destination_folder: 'profile'
user_email: 'actions@spacedrive.app'
user_name: 'GH Actions'
- commit_message: 'Update README'
\ No newline at end of file
+ commit_message: 'Update README'
diff --git a/README.md b/README.md
index bd9f665af..09be79b15 100644
--- a/README.md
+++ b/README.md
@@ -57,37 +57,42 @@ For independent creatives, hoarders and those that want to own their digital foo
-> NOTE: Spacedrive is under active development, most of the listed features are still experimental and subject to change. Additionally, most of the links on this page are broken but will be working once the repository is made public.
->
+> NOTE: Spacedrive is under active development, most of the listed features are still experimental and subject to change. Additionally, most of the links on this page are broken but will be working once the repository is made public.
# What is a VDFS?
-A VDFS (virtual distributed filesystem) is a filesystem designed to work atop a variety of storage layers. It is not restricted to a single machine, with a uniform API to manipulate and access content across many devices. It achieves this by maintaining a virtual index of all storage locations, synchronizing the database between clients in realtime. This implementation also uses [CAS](https://en.wikipedia.org/wiki/Content-addressable_storage) (Content-addressable storage) to uniquely identify files, while keeping record of logical file paths relative to the storage locations.
-The first implementation of a VDFS can be found in this UC Berkeley [paper](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2018/EECS-2018-29.pdf) by Haoyuan Li. This paper describes its use for cloud computing, however the underlying concepts can be translated to open consumer software.
+A VDFS (virtual distributed filesystem) is a filesystem designed to work atop a variety of storage layers. It is not restricted to a single machine, with a uniform API to manipulate and access content across many devices. It achieves this by maintaining a virtual index of all storage locations, synchronizing the database between clients in realtime. This implementation also uses [CAS](https://en.wikipedia.org/wiki/Content-addressable_storage) (Content-addressable storage) to uniquely identify files, while keeping record of logical file paths relative to the storage locations.
+
+The first implementation of a VDFS can be found in this UC Berkeley [paper](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2018/EECS-2018-29.pdf) by Haoyuan Li. This paper describes its use for cloud computing, however the underlying concepts can be translated to open consumer software.
# Motivation
+
Many of us have multiple cloud accounts, drives that aren’t backed up and data at risk of loss. We depend on cloud services like Google Photos and iCloud, but are locked in with limited capacity and almost zero interoperability between services and operating systems. Photo albums shouldn’t be suck in a device ecosystem, or harvested for advertising data. They should be OS agnostic, permanent and personally owned. Data we create is our legacy, that will long outlive us—open source technology is the only way to ensure we retain absolute control over the data that defines our lives, at unlimited scale.
-
# Features
+
_Note: Links are for highlight purposes only until feature specific documentation is complete._
-**Complete:** *(in testing)*
+**Complete:** _(in testing)_
+
- **[File discovery](#features)** - Scan devices, drives and cloud accounts to build a directory of all files with metadata.
- **[Preview generation](#features)** - Auto generate lower resolution stand-ins for image and video.
- **[Statistics](#features)** - Total capacity, index size, preview media size, free space etc.
-
+
**In progress:**
-- **[File Explorer](#features)** - Browse online/offline storage locations, view files with metadata, perform basic CRUD.
+
+- **[File Explorer](#features)** - Browse online/offline storage locations, view files with metadata, perform basic CRUD.
- **[Realtime synchronization](#features)** - Data index synchronized in realtime between devices, prioritizing peer-to-peer LAN connections (WiFi sync).
-
+
**To be developed (MVP):**
+
- **[Photos](#features)** - Photo and video albums similar to Apple/Google photos.
- **[Search](#features)** - Deep search into your filesystem with a keybind, including offline locations.
- **[Tags](#features)** - Define routines on custom tags to automate workflows, easily tag files individually, in bulk and automatically via rules.
- **[Extensions](#features)** - Build tools on top of Spacedrive, extend functionality and integrate third party services. Extension directory on [spacedrive.app/extensions](#features).
-
-**To be developed (Post-MVP):**
+
+**To be developed (Post-MVP):**
+
- **[Cloud integration](#features)** - Index & backup to Apple Photos, Google Drive, Dropbox, OneDrive & Mega + easy API for the community to add more.
- **[Encrypted vault(s)](#features)** - Effortlessly manage & encrypt sensitive files, built on top of VeraCrypt. Encrypt individual files or create flexible-size vaults.
- **[Key manager](#features)** - View, mount, dismount and hide keys. Mounted keys automatically unlock respective areas of your filesystem.
@@ -99,48 +104,57 @@ _Note: Links are for highlight purposes only until feature specific documentatio
- **[Self hosted](#features)** - Spacedrive can be deployed as a service, behaving as just another device powering your personal cloud.
# Developer Installation Instructions
+
This environment uses [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) and [pnpm](https://pnpm.io/installation). Ensure you have them installed before continuing.
- `$ git clone https://github.com/spacedriveapp/spacedrive`
-- IMPORTANT: *Install [FFMPEG](https://www.ffmpeg.org/download.html) if you don't have it already*
+- IMPORTANT: _Install [FFMPEG](https://www.ffmpeg.org/download.html) if you don't have it already_
- `$ cd spacedrive`
- `$ pnpm i`
- `$ pnpm prep` - Runs all necessary codegen & builds required dependencies.
To quickly run only the desktop app after `prep` you can use:
+
- `$ pnpm desktop dev`
To run the landing page
+
- `$ pnpm web dev` - runs the web app for the embed
- `$ pnpm landing dev`
If you are having issues ensure you are using the following versions of Rust and Node:
+
- Rust version: **1.58.1**
- Node version: **17**
# Architecture
-This project is using what I'm calling the **"PRRTT"** stack (Prisma, Rust, React, TypeScript, Tauri).
+
+This project is using what I'm calling the **"PRRTT"** stack (Prisma, Rust, React, TypeScript, Tauri).
+
- Prisma on the front-end? 🤯 Made possible thanks to [prisma-client-rust](https://github.com/brendonovich/prisma-client-rust), developed by [Brendonovich](https://github.com/brendonovich). Gives us access to the powerful migration CLI in development, along with the Prisma syntax for our schema. The application bundles with the Prisma query engine and codegen for a beautiful Rust API. Our lightweight migration runner is custom built for a desktop app context.
-- Tauri allows us to create a pure Rust native OS webview, without the overhead of your average Electron app. This brings the bundle size and average memory usage down dramatically. It also contributes to a more native feel, especially on macOS due to Safari's close integration with the OS.
+- Tauri allows us to create a pure Rust native OS webview, without the overhead of your average Electron app. This brings the bundle size and average memory usage down dramatically. It also contributes to a more native feel, especially on macOS due to Safari's close integration with the OS.
- The core (`sdcore`) is written in pure Rust.
-## Monorepo structure:
+## Monorepo structure:
### Apps:
+
- `desktop`: A [Tauri](https://tauri.studio) app.
- `mobile`: A [React Native](https://reactnative.dev/) app.
- `web`: A [React](https://reactjs.org) webapp.
- `landing`: A [React](https://reactjs.org) app using Vite SSR & Vite pages.
### Core:
+
- `core`: The [Rust](#) core, referred to internally as `sdcore`. Contains filesystem, database and networking logic. Can be deployed in a variety of host applications.
### Packages:
+
- `client`: A [TypeScript](#) client library to handle dataflow via RPC between UI and the Rust core.
-- `ui`: A [React]([#](https://reactjs.org)) Shared component library.
+- `ui`: A [React](<[#](https://reactjs.org)>) Shared component library.
- `interface`: The complete user interface in React (used by apps `desktop`, `web` and `landing`)
- `config`: `eslint` configurations (includes `eslint-config-next`, `eslint-config-prettier` and all `tsconfig.json` configs used throughout the monorepo.
- `macos`: A [Swift](#) Native binary for MacOS system extensions.
- `ios`: A [Swift](#) Native binary (planned).
- `windows`: A [C#](#) Native binary (planned).
-- `android`: A [Kotlin](#) Native binary (planned).
\ No newline at end of file
+- `android`: A [Kotlin](#) Native binary (planned).
diff --git a/apps/desktop/tsconfig.json b/apps/desktop/tsconfig.json
index 0d4845c9c..df04b3c8c 100644
--- a/apps/desktop/tsconfig.json
+++ b/apps/desktop/tsconfig.json
@@ -19,8 +19,8 @@
"paths": {
"@sd/interface": ["../../packages/interface/src/index.ts"],
"@sd/ui": ["../../packages/ui/src/index.ts"],
- "@sd/client": ["../../packages/client/src/index.ts"],
+ "@sd/client": ["../../packages/client/src/index.ts"]
}
},
- "include": ["src"],
+ "include": ["src"]
}
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 531d5bee4..84d6df566 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -1,7 +1,6 @@
{
- "name": "mobile",
- "version": "0.0.0",
- "main": "index.js",
- "license": "MIT"
- }
-
\ No newline at end of file
+ "name": "mobile",
+ "version": "0.0.0",
+ "main": "index.js",
+ "license": "MIT"
+}
diff --git a/apps/server/k8s/infrastructure.yaml b/apps/server/k8s/infrastructure.yaml
index f5a100ab1..a5e44b4ee 100644
--- a/apps/server/k8s/infrastructure.yaml
+++ b/apps/server/k8s/infrastructure.yaml
@@ -23,9 +23,9 @@ metadata:
name: spacedrive-ns-full
namespace: spacedrive
rules:
-- apiGroups: ["apps"]
- resources: ["deployments"]
- verbs: ["get", "patch"]
+ - apiGroups: ['apps']
+ resources: ['deployments']
+ verbs: ['get', 'patch']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
@@ -33,10 +33,10 @@ metadata:
name: spacedrive-ci-rb
namespace: spacedrive
subjects:
-- kind: ServiceAccount
- name: spacedrive-ci
- namespace: spacedrive
+ - kind: ServiceAccount
+ name: spacedrive-ci
+ namespace: spacedrive
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
- name: spacedrive-ns-full
\ No newline at end of file
+ name: spacedrive-ns-full
diff --git a/apps/server/k8s/sdserver.yaml b/apps/server/k8s/sdserver.yaml
index d00d70a18..00f02c1c1 100644
--- a/apps/server/k8s/sdserver.yaml
+++ b/apps/server/k8s/sdserver.yaml
@@ -13,16 +13,16 @@ metadata:
traefik.ingress.kubernetes.io/router.middlewares: kube-system-antiseo@kubernetescrd
spec:
rules:
- - host: spacedrive.otbeaumont.me
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: sdserver-service
- port:
- number: 8080
+ - host: spacedrive.otbeaumont.me
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: sdserver-service
+ port:
+ number: 8080
---
apiVersion: v1
kind: Service
diff --git a/apps/web/README.md b/apps/web/README.md
index 1865c0378..dca4765c0 100644
--- a/apps/web/README.md
+++ b/apps/web/README.md
@@ -1 +1 @@
-# Spacedrive Webapp
\ No newline at end of file
+# Spacedrive Webapp
diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx
index 96693c9c9..c4a59ffb9 100644
--- a/apps/web/src/App.tsx
+++ b/apps/web/src/App.tsx
@@ -4,9 +4,7 @@ import SpacedriveInterface from '@sd/interface';
import { ClientCommand, ClientQuery, CoreEvent } from '@sd/core';
import { BaseTransport } from '@sd/client';
-const websocket = new WebSocket(
- import.meta.env.VITE_SDSERVER_BASE_URL || 'ws://localhost:8080/ws'
-);
+const websocket = new WebSocket(import.meta.env.VITE_SDSERVER_BASE_URL || 'ws://localhost:8080/ws');
const randomId = () => Math.random().toString(36).slice(2);
diff --git a/apps/web/src/index.html b/apps/web/src/index.html
index 6d7fb0d8a..fd076f840 100644
--- a/apps/web/src/index.html
+++ b/apps/web/src/index.html
@@ -8,4 +8,4 @@