@kubohiroya/turbowarp-title-menu 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +10 -1
- package/README.md +12 -3
- package/dist/turbowarp-title-menu.js +1 -1
- package/package.json +16 -9
package/README.ja.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
TurboWarp拡張やPackager実行環境で使える、汎用のタイトル表示、アプリケーションメニュー、DSLファイル保管機構です。
|
|
8
8
|
|
|
9
|
+
## 最小デモ
|
|
10
|
+
|
|
11
|
+
[Open in TurboWarp Editor](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-title-menu%2Fsamples%2Fchoose-menu-action.sb3) · [Download SB3](https://kubohiroya.github.io/turbowarp-title-menu/samples/choose-menu-action.sb3)
|
|
12
|
+
|
|
13
|
+
緑の旗を押し、メニューの **Hello** を選択すると `Selected action` が `Hello` になります。**Close** を選ぶとメニューを閉じます。
|
|
14
|
+
|
|
15
|
+
公式TurboWarp Editorでカスタム拡張の確認画面の **Run extension without sandbox** をチェックし、**Allow** を選択してください。SB3はこのリポジトリの配布JSを内包します。 app-shellは配布JSに含まれ、追加のホストは不要です。
|
|
16
|
+
|
|
9
17
|
## 利用者ガイド
|
|
10
18
|
|
|
11
19
|
英語ドキュメント: [https://kubohiroya.github.io/turbowarp-title-menu/](https://kubohiroya.github.io/turbowarp-title-menu/)
|
|
@@ -35,7 +43,7 @@ IndexedDBはoriginごとに分かれます。TurboWarp Web、TurboWarp Desktop
|
|
|
35
43
|
## インストール
|
|
36
44
|
|
|
37
45
|
```bash
|
|
38
|
-
pnpm add --save-exact @kubohiroya/turbowarp-title-menu@0.
|
|
46
|
+
pnpm add --save-exact @kubohiroya/turbowarp-title-menu@0.5.0
|
|
39
47
|
```
|
|
40
48
|
|
|
41
49
|
TurboWarpでは `dist/turbowarp-title-menu.js` をCustom Extensionとして読み込み、sandboxなしの実行を許可します。
|
|
@@ -232,6 +240,7 @@ import {
|
|
|
232
240
|
## 開発
|
|
233
241
|
|
|
234
242
|
```bash
|
|
243
|
+
npm install --global corepack@latest
|
|
235
244
|
corepack enable
|
|
236
245
|
pnpm install --frozen-lockfile
|
|
237
246
|
pnpm run check
|
package/README.md
CHANGED
|
@@ -8,6 +8,14 @@ Reusable title, application menu, and DSL source storage controls for TurboWarp
|
|
|
8
8
|
|
|
9
9
|
**User guide:** [English](https://kubohiroya.github.io/turbowarp-title-menu/)
|
|
10
10
|
|
|
11
|
+
## Minimal demo
|
|
12
|
+
|
|
13
|
+
[Open in TurboWarp Editor](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-title-menu%2Fsamples%2Fchoose-menu-action.sb3) · [Download SB3](https://kubohiroya.github.io/turbowarp-title-menu/samples/choose-menu-action.sb3)
|
|
14
|
+
|
|
15
|
+
Click the green flag, then choose **Hello**; `Selected action` becomes `Hello`. Choose **Close** to close the menu.
|
|
16
|
+
|
|
17
|
+
In the official TurboWarp Editor, enable **Run extension without sandbox** and choose **Allow**. The SB3 embeds this repository’s distributed JavaScript. App Shell is bundled; no additional host is required.
|
|
18
|
+
|
|
11
19
|
## What it does
|
|
12
20
|
|
|
13
21
|
- Shows a reusable title dialog with title, author, license, official website, language, and close controls.
|
|
@@ -50,7 +58,7 @@ The reviewed JavaScript build is committed to this repository, so users do not n
|
|
|
50
58
|
Install an exact version that you have reviewed:
|
|
51
59
|
|
|
52
60
|
```bash
|
|
53
|
-
pnpm add --save-exact @kubohiroya/turbowarp-title-menu@0.
|
|
61
|
+
pnpm add --save-exact @kubohiroya/turbowarp-title-menu@0.5.0
|
|
54
62
|
```
|
|
55
63
|
|
|
56
64
|
Load the standalone bundle from:
|
|
@@ -62,7 +70,7 @@ node_modules/@kubohiroya/turbowarp-title-menu/dist/turbowarp-title-menu.js
|
|
|
62
70
|
A version-pinned CDN URL is:
|
|
63
71
|
|
|
64
72
|
```text
|
|
65
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-title-menu@0.
|
|
73
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-title-menu@0.5.0/dist/turbowarp-title-menu.js
|
|
66
74
|
```
|
|
67
75
|
|
|
68
76
|
## Quick start
|
|
@@ -314,9 +322,10 @@ menu.show('en');
|
|
|
314
322
|
|
|
315
323
|
## Development
|
|
316
324
|
|
|
317
|
-
Use Node.js
|
|
325
|
+
Use Node.js 24 or later and the pnpm version declared by `packageManager`.
|
|
318
326
|
|
|
319
327
|
```bash
|
|
328
|
+
npm install --global corepack@latest
|
|
320
329
|
corepack enable
|
|
321
330
|
pnpm install --frozen-lockfile
|
|
322
331
|
pnpm run check
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
(function (Scratch) {
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
10
|
-
//#region node_modules/.pnpm/@kubohiroya+turbowarp-app-shell@0.
|
|
10
|
+
//#region node_modules/.pnpm/@kubohiroya+turbowarp-app-shell@0.6.0/node_modules/@kubohiroya/turbowarp-app-shell/dist/index.js
|
|
11
11
|
function isRecord$1(value) {
|
|
12
12
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubohiroya/turbowarp-title-menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Reusable title, application menu, and DSL source storage controls for TurboWarp.",
|
|
5
|
-
"author":
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Hiroya Kubo",
|
|
7
|
+
"email": "hiroya@cuc.ac.jp",
|
|
8
|
+
"url": "https://github.com/kubohiroya"
|
|
9
|
+
},
|
|
6
10
|
"license": "MPL-2.0",
|
|
7
11
|
"homepage": "https://github.com/kubohiroya/turbowarp-title-menu#readme",
|
|
8
12
|
"repository": {
|
|
@@ -50,9 +54,9 @@
|
|
|
50
54
|
"access": "public",
|
|
51
55
|
"registry": "https://registry.npmjs.org/"
|
|
52
56
|
},
|
|
53
|
-
"packageManager": "pnpm@11.
|
|
57
|
+
"packageManager": "pnpm@11.28.8",
|
|
54
58
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
59
|
+
"node": ">=24"
|
|
56
60
|
},
|
|
57
61
|
"scripts": {
|
|
58
62
|
"dev": "vite build --watch",
|
|
@@ -64,13 +68,16 @@
|
|
|
64
68
|
"docs:check": "pnpm run docs && git diff --exit-code -- README.md",
|
|
65
69
|
"repo:check": "node scripts/check-repo.mjs",
|
|
66
70
|
"pack:check": "npm pack --dry-run --ignore-scripts",
|
|
67
|
-
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run docs:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check",
|
|
68
|
-
"check:dist": "pnpm run build && node scripts/check-dist.mjs"
|
|
71
|
+
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run docs:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check && pnpm run samples:check",
|
|
72
|
+
"check:dist": "pnpm run build && node scripts/check-dist.mjs",
|
|
73
|
+
"samples:build": "node scripts/build-samples.mjs",
|
|
74
|
+
"samples:check": "node scripts/build-samples.mjs --check && node --test scripts/verify-samples.mjs",
|
|
75
|
+
"pages:build": "node scripts/prepare-pages.mjs"
|
|
69
76
|
},
|
|
70
77
|
"devDependencies": {
|
|
71
78
|
"@eslint/js": "^9.39.5",
|
|
72
|
-
"@kubohiroya/turbowarp-extension-manifest": "0.
|
|
73
|
-
"@kubohiroya/vite-plugin-turbowarp-extension": "0.
|
|
79
|
+
"@kubohiroya/turbowarp-extension-manifest": "0.5.0",
|
|
80
|
+
"@kubohiroya/vite-plugin-turbowarp-extension": "0.10.0",
|
|
74
81
|
"@types/node": "^24.13.3",
|
|
75
82
|
"eslint": "^9.39.5",
|
|
76
83
|
"fake-indexeddb": "6.2.5",
|
|
@@ -80,6 +87,6 @@
|
|
|
80
87
|
"vitest": "^4.1.10"
|
|
81
88
|
},
|
|
82
89
|
"dependencies": {
|
|
83
|
-
"@kubohiroya/turbowarp-app-shell": "0.
|
|
90
|
+
"@kubohiroya/turbowarp-app-shell": "0.6.0"
|
|
84
91
|
}
|
|
85
92
|
}
|