-
+
+
+
+
-
-
- {@html preview}
-
-
- {#if !isTauriApp()}
- {CopyUrlToClipboard(inputText)} }>URLをコピー
- {/if}
- {
- // TODO: 小説本文のコピー機能を実装する
- toast.info(`"小説本文をコピー"機能は現在開発中です。`);
- } }>小説本文をコピー
-
- ルビを振る
-
- Ctrli
-
-
-
- 傍点を振る
-
- Ctrlb
-
-
-
-
+ {@html preview}
\ No newline at end of file
diff --git a/tailwind.config.js b/tailwind.config.js
index f8de706..f1cf959 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -11,8 +11,8 @@ const config = {
center: true,
padding: "2rem",
screens: {
- "2xl": "1400px"
- }
+ "2xl": "1400px",
+ },
},
extend: {
colors: {
@@ -23,31 +23,31 @@ const config = {
foreground: "hsl(var(--foreground) /
)",
primary: {
DEFAULT: "hsl(var(--primary) / )",
- foreground: "hsl(var(--primary-foreground) / )"
+ foreground: "hsl(var(--primary-foreground) / )",
},
secondary: {
DEFAULT: "hsl(var(--secondary) / )",
- foreground: "hsl(var(--secondary-foreground) / )"
+ foreground: "hsl(var(--secondary-foreground) / )",
},
destructive: {
DEFAULT: "hsl(var(--destructive) / )",
- foreground: "hsl(var(--destructive-foreground) / )"
+ foreground: "hsl(var(--destructive-foreground) / )",
},
muted: {
DEFAULT: "hsl(var(--muted) / )",
- foreground: "hsl(var(--muted-foreground) / )"
+ foreground: "hsl(var(--muted-foreground) / )",
},
accent: {
DEFAULT: "hsl(var(--accent) / )",
- foreground: "hsl(var(--accent-foreground) / )"
+ foreground: "hsl(var(--accent-foreground) / )",
},
popover: {
DEFAULT: "hsl(var(--popover) / )",
- foreground: "hsl(var(--popover-foreground) / )"
+ foreground: "hsl(var(--popover-foreground) / )",
},
card: {
DEFAULT: "hsl(var(--card) / )",
- foreground: "hsl(var(--card-foreground) / )"
+ foreground: "hsl(var(--card-foreground) / )",
},
sidebar: {
DEFAULT: "hsl(var(--sidebar-background))",
@@ -58,16 +58,16 @@ const config = {
"accent-foreground": "hsl(var(--sidebar-accent-foreground))",
border: "hsl(var(--sidebar-border))",
ring: "hsl(var(--sidebar-ring))",
- },
+ },
},
borderRadius: {
xl: "calc(var(--radius) + 4px)",
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
- sm: "calc(var(--radius) - 4px)"
+ sm: "calc(var(--radius) - 4px)",
},
fontFamily: {
- sans: [...fontFamily.sans]
+ sans: [...fontFamily.sans],
},
keyframes: {
"accordion-down": {
@@ -84,10 +84,10 @@ const config = {
},
},
animation: {
- "accordion-down": "accordion-down 0.2s ease-out",
- "accordion-up": "accordion-up 0.2s ease-out",
- "caret-blink": "caret-blink 1.25s ease-out infinite",
- },
+ "accordion-down": "accordion-down 0.2s ease-out",
+ "accordion-up": "accordion-up 0.2s ease-out",
+ "caret-blink": "caret-blink 1.25s ease-out infinite",
+ },
},
},
plugins: [tailwindcssAnimate],
diff --git a/version.ts b/version.ts
index ab832ea..a425eba 100644
--- a/version.ts
+++ b/version.ts
@@ -8,17 +8,17 @@ import { type ReleaseType, inc, valid as isValidVersion } from "semver";
const path = "./package.json";
const variants: ReleaseType[] = [
- "major",
- "premajor",
- "minor",
- "preminor",
- "patch",
- "prepatch",
- "prerelease",
+ "major",
+ "premajor",
+ "minor",
+ "preminor",
+ "patch",
+ "prepatch",
+ "prerelease",
];
const isValidTarget = (subject: string): subject is ReleaseType =>
- (variants as string[]).includes(subject);
+ (variants as string[]).includes(subject);
const isDirty = async () => (await $`git status --porcelain`.quiet()).text();
@@ -27,29 +27,29 @@ const json = await Bun.file(path).json();
const { version: current } = json;
if (!isValidVersion(current))
- throw new Error(`Invalid current version ${current}`);
+ throw new Error(`Invalid current version ${current}`);
if (await isDirty())
- throw new Error(
- "There are uncommitted changes. Commit them before releasing.",
- );
+ throw new Error(
+ "There are uncommitted changes. Commit them before releasing.",
+ );
const desired = isValidVersion(target)
- ? target
- : target && isValidTarget(target)
- ? inc(current, target, "beta", "1")
- : fail("invalid target version");
+ ? target
+ : target && isValidTarget(target)
+ ? inc(current, target, "beta", "1")
+ : fail("invalid target version");
if (!desired) throw new Error("Failed to bump");
console.debug(current, "—>", desired);
await Bun.write(
- path,
- JSON.stringify(Object.assign(json, { version: desired }), null, 2),
+ path,
+ JSON.stringify(Object.assign(json, { version: desired }), null, 2),
);
await $`git add ${path}`;
await $`git commit -m v${desired}`;
await $`git tag v${desired}`;
await $`git push`;
-await $`git push --tags`;
\ No newline at end of file
+await $`git push --tags`;