mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
chore: replace cross-env with shell-emulator & misc (#1464)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"license": "MPL-2.0",
|
||||
"module": "true",
|
||||
"scripts": {
|
||||
"dev:app": "cross-env NODE_ENV=development tauri dev",
|
||||
"dev:app": "NODE_ENV=development tauri dev",
|
||||
"dev:web": "pnpm --filter @affine/app dev",
|
||||
"build:rs-types": "zx scripts/generateTsTypingsFromJsonSchema.mjs",
|
||||
"build:affine": "zx scripts/buildAffine.mjs",
|
||||
@@ -34,8 +34,6 @@
|
||||
"@types/node": "^18.14.4",
|
||||
"@types/react": "^18.0.28",
|
||||
"@types/react-dom": "^18.0.11",
|
||||
"concurrently": "^7.6.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild": "^0.17.8",
|
||||
"lit": "^2.6.1",
|
||||
"prettier": "2.8.4",
|
||||
|
||||
@@ -93,8 +93,8 @@ pub async fn create_workspace<'s>(
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn update_workspace<'s>(
|
||||
state: tauri::State<'s, AppState>,
|
||||
parameters: UpdateWorkspace,
|
||||
_state: tauri::State<'s, AppState>,
|
||||
_parameters: UpdateWorkspace,
|
||||
) -> Result<bool, String> {
|
||||
// TODO: check user permission
|
||||
// No thing to update now. The avatar is update in YDoc using websocket or yrs.update
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use cloud_database::SqliteDBContext;
|
||||
use jwst::Workspace;
|
||||
use jwst_storage::{BlobAutoStorage, DocAutoStorage};
|
||||
use std::{fs, path::Path};
|
||||
use tauri::api::path::document_dir;
|
||||
|
||||
@@ -16,7 +16,7 @@ let blockSuiteWorkspace: BlockSuiteWorkspace;
|
||||
|
||||
beforeEach(() => {
|
||||
blockSuiteWorkspace = new BlockSuiteWorkspace({
|
||||
room: 'test',
|
||||
id: 'test',
|
||||
})
|
||||
.register(builtInSchemas)
|
||||
.register(__unstableSchemas);
|
||||
|
||||
Reference in New Issue
Block a user