Reinitialize, remove submodule

This commit is contained in:
Jeremy List 2024-05-02 16:22:19 +12:00
parent 58baf89c28
commit 653d01f068
Signed by: jeremylist
GPG Key ID: 2FB4463DFC98DC97
8 changed files with 24 additions and 3760 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "logseq"]
path = logseq
url = https://github.com/andelf/logseq.git

1
logseq

@ -1 +0,0 @@
Subproject commit 50f77be02a18ebb59936495eb4868c3445807620

View File

@ -1,4 +1,3 @@
# Generated by Cargo
# will have compiled files and executables
/target/

3716
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,26 @@
[package]
name = "logseq-ng"
version = "0.0.0"
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
default-run = "app"
edition = "2021"
rust-version = "1.57"
rust-version = "1.60"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.0.0", features = [] }
tauri-build = { version = "1.5.1" }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.0.0", features = ["api-all"] }
tauri = { version = "1.6.2" }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
# this feature is used used for production builds where `devPath` points to the filesystem
# DO NOT remove this
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT REMOVE!!
custom-protocol = [ "tauri/custom-protocol" ]

View File

@ -1,16 +1,8 @@
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

View File

@ -1,18 +1,17 @@
{
"build": {
"beforeDevCommand": "cd logseq && yarn && yarn watch",
"beforeBuildCommand": "cd logseq && echo TODO",
"devPath": "http://localhost:3001",
"distDir": "../logseq/public",
"withGlobalTauri": true
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "127.0.0.1:3000",
"distDir": "../logseq/static"
},
"package": {
"productName": "Logseq-NG",
"version": "0.0.1"
"productName": "Logseq-ng",
"version": "0.1.0"
},
"tauri": {
"allowlist": {
"all": true
"all": false
},
"bundle": {
"active": true,
@ -29,7 +28,7 @@
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.logseq.app-ng",
"identifier": "com.tauri.dev",
"longDescription": "",
"macOS": {
"entitlements": null,
@ -58,13 +57,8 @@
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "Logseq-NG",
"center": false,
"width": 800,
"fileDropEnabled": true,
"minWidth": 800,
"minHeight": 600,
"decorations": false
"title": "Logseq NG",
"width": 800
}
]
}