Skip to content

Commit

Permalink
ファイルの保存に対応する。 (#3)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
L4Ph and coderabbitai[bot] authored Sep 25, 2024
1 parent b5b1eb7 commit 8af93d7
Show file tree
Hide file tree
Showing 12 changed files with 143 additions and 112 deletions.
1 change: 1 addition & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
".svelte-kit",
"build",
"src/lib/components/ui/**",
"src/lib/utils.ts",
"src-tauri/**"
]
},
Expand Down
Binary file modified bun.lockb
Binary file not shown.
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "narrow",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"type": "module",
"scripts": {
Expand All @@ -12,17 +12,18 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"tauri": "tauri",
"lint": "biome lint",
"format": "biome format --write"
"format": "biome format --write",
"bump": "bunx tauri-version patch"
},
"license": "MIT",
"dependencies": {
"@fontsource-variable/m-plus-2": "^5.1.0",
"@l4ph/web-novel-parser": "npm:@jsr/l4ph__web-novel-parser",
"@macfja/svelte-persistent-store": "^2.4.1",
"@tauri-apps/api": "^2.0.0-rc.4",
"@tauri-apps/api": "^2.0.0-rc.5",
"@tauri-apps/cli": "^2.0.0-rc.16",
"@tauri-apps/plugin-dialog": "^2.0.0-rc.1",
"@tauri-apps/plugin-fs": "^2.0.0-rc.2",
"@tauri-apps/plugin-dialog": "github:tauri-apps/tauri-plugin-dialog#v2",
"@tauri-apps/plugin-fs": "github:tauri-apps/tauri-plugin-fs#v2",
"bits-ui": "^0.21.15",
"clsx": "^2.1.1",
"lucide-svelte": "^0.441.0",
Expand All @@ -38,20 +39,20 @@
"@biomejs/biome": "1.9.2",
"@svelte-put/shortcut": "^3.1.1",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.5.27",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.7",
"@tailwindcss/typography": "^0.5.15",
"@tailwindcss/vite": "^4.0.0-alpha.24",
"@tailwindcss/vite": "^4.0.0-alpha.25",
"@types/bun": "latest",
"@types/node": "^22.5.5",
"@types/node": "^22.7.0",
"autoprefixer": "^10.4.20",
"eslint-plugin-svelte": "^2.44.0",
"svelte": "^5.0.0-next.257",
"svelte": "^5.0.0-next.259",
"svelte-check": "^4.0.2",
"tailwindcss": "^4.0.0-alpha.24",
"tslib": "^2.4.1",
"tailwindcss": "^4.0.0-alpha.25",
"tslib": "^2.7.0",
"typescript": "^5.6.2",
"vite": "^5.4.7"
"vite": "^5.4.8"
},
"module": "index.ts"
}
80 changes: 19 additions & 61 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tawri"
version = "0.1.0"
version = "0.1.1"
description = "A Tauri App"
authors = ["L4Ph"]
edition = "2021"
Expand Down
1 change: 1 addition & 0 deletions src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"core:default",
"shell:allow-open",
"fs:default",
"fs:allow-write-text-file",
"dialog:default"
]
}
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "tawri",
"version": "0.1.0",
"version": "0.1.1",
"identifier": "moe.l4ph.tawri",
"build": {
"beforeDevCommand": "bun run dev",
Expand Down Expand Up @@ -31,4 +31,4 @@
"icons/icon.ico"
]
}
}
}
Loading

0 comments on commit 8af93d7

Please sign in to comment.