Skip to content

Commit 8af93d7

Browse files
ファイルの保存に対応する。 (#3)
* fix open file * migrate svelte/stores to rune * Update src/routes/utils/read-text-file-on-tauri.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Coderabbitの修正で発生した問題を修正。 * update read-text-file-on-tauri * add error handling * add robots.txt etc... * add save file * 0.1.1 * bump version * fix error handling --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent b5b1eb7 commit 8af93d7

12 files changed

+143
-112
lines changed

biome.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
".svelte-kit",
1313
"build",
1414
"src/lib/components/ui/**",
15+
"src/lib/utils.ts",
1516
"src-tauri/**"
1617
]
1718
},

bun.lockb

2.34 KB
Binary file not shown.

package.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "narrow",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "",
55
"type": "module",
66
"scripts": {
@@ -12,17 +12,18 @@
1212
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1313
"tauri": "tauri",
1414
"lint": "biome lint",
15-
"format": "biome format --write"
15+
"format": "biome format --write",
16+
"bump": "bunx tauri-version patch"
1617
},
1718
"license": "MIT",
1819
"dependencies": {
1920
"@fontsource-variable/m-plus-2": "^5.1.0",
2021
"@l4ph/web-novel-parser": "npm:@jsr/l4ph__web-novel-parser",
2122
"@macfja/svelte-persistent-store": "^2.4.1",
22-
"@tauri-apps/api": "^2.0.0-rc.4",
23+
"@tauri-apps/api": "^2.0.0-rc.5",
2324
"@tauri-apps/cli": "^2.0.0-rc.16",
24-
"@tauri-apps/plugin-dialog": "^2.0.0-rc.1",
25-
"@tauri-apps/plugin-fs": "^2.0.0-rc.2",
25+
"@tauri-apps/plugin-dialog": "github:tauri-apps/tauri-plugin-dialog#v2",
26+
"@tauri-apps/plugin-fs": "github:tauri-apps/tauri-plugin-fs#v2",
2627
"bits-ui": "^0.21.15",
2728
"clsx": "^2.1.1",
2829
"lucide-svelte": "^0.441.0",
@@ -38,20 +39,20 @@
3839
"@biomejs/biome": "1.9.2",
3940
"@svelte-put/shortcut": "^3.1.1",
4041
"@sveltejs/adapter-static": "^3.0.5",
41-
"@sveltejs/kit": "^2.5.27",
42+
"@sveltejs/kit": "^2.5.28",
4243
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.7",
4344
"@tailwindcss/typography": "^0.5.15",
44-
"@tailwindcss/vite": "^4.0.0-alpha.24",
45+
"@tailwindcss/vite": "^4.0.0-alpha.25",
4546
"@types/bun": "latest",
46-
"@types/node": "^22.5.5",
47+
"@types/node": "^22.7.0",
4748
"autoprefixer": "^10.4.20",
4849
"eslint-plugin-svelte": "^2.44.0",
49-
"svelte": "^5.0.0-next.257",
50+
"svelte": "^5.0.0-next.259",
5051
"svelte-check": "^4.0.2",
51-
"tailwindcss": "^4.0.0-alpha.24",
52-
"tslib": "^2.4.1",
52+
"tailwindcss": "^4.0.0-alpha.25",
53+
"tslib": "^2.7.0",
5354
"typescript": "^5.6.2",
54-
"vite": "^5.4.7"
55+
"vite": "^5.4.8"
5556
},
5657
"module": "index.ts"
5758
}

src-tauri/Cargo.lock

+19-61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tawri"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "A Tauri App"
55
authors = ["L4Ph"]
66
edition = "2021"

src-tauri/capabilities/default.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"core:default",
1010
"shell:allow-open",
1111
"fs:default",
12+
"fs:allow-write-text-file",
1213
"dialog:default"
1314
]
1415
}

src-tauri/tauri.conf.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"productName": "tawri",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"identifier": "moe.l4ph.tawri",
55
"build": {
66
"beforeDevCommand": "bun run dev",
@@ -31,4 +31,4 @@
3131
"icons/icon.ico"
3232
]
3333
}
34-
}
34+
}

0 commit comments

Comments
 (0)