Skip to content

Commit

Permalink
add save file
Browse files Browse the repository at this point in the history
  • Loading branch information
L4Ph committed Sep 25, 2024
1 parent 18f5ae5 commit a2ebd64
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 68 deletions.
Binary file modified bun.lockb
Binary file not shown.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,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"
}
78 changes: 18 additions & 60 deletions src-tauri/Cargo.lock

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

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"
]
}
11 changes: 10 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ if (isTauriApp()) {
toast.error("ファイルの保存に失敗しました。");
}
});
listen("save_as", async () => {
try {
toast.info(`"名前を付けて保存"機能は現在開発中です。`);
} catch (error) {
console.error("ファイル保存中にエラーが発生しました:", error);
toast.error("ファイルの保存に失敗しました。");
}
});
}
</script>

Expand Down Expand Up @@ -162,7 +171,7 @@ if (isTauriApp()) {
{/if}
<ContextMenu.Item onclick={() => {
// TODO: 小説本文のコピー機能を実装する
toast("小説本文のコピー機能は現在開発中です。");
toast.info(`"小説本文をコピー"機能は現在開発中です。`);
} }>小説本文をコピー</ContextMenu.Item>
<ContextMenu.Label>
ルビを振る
Expand Down

0 comments on commit a2ebd64

Please sign in to comment.