diff --git a/.eslintignore b/.eslintignore index b947077..227249a 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ node_modules/ dist/ +src/**/*.min.js diff --git a/README.md b/README.md index 5d1255a..5d0279f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 日本語りどみ -**注意:不安定開発版につき、機能はなかったりなかったりする** +**注意:不安定開発版につき、機能はあったりなかったりする** ## これなん @@ -17,7 +17,7 @@ YouTube などの動画に字幕として使える「WebVTT」ファイルデー ### とりあえず使いたい人 ```bash -cd ~ && git clone https://github.com/Sotalbireo/WebVTT-Editor.git && yarn +cd ~ && git clone https://github.com/Sotalbireo/WebVTT-Editor.git && yarn && yarn dev ``` ### こだわりのある人 @@ -37,6 +37,8 @@ cd ~ && git clone https://github.com/Sotalbireo/WebVTT-Editor.git && yarn ### キーボードショートカット +#### 動画ビューワ + key | action :---:|--- Space | 再生・一時停止 @@ -48,21 +50,40 @@ x | 動画を10秒戻す c | 動画を10秒送る v | 動画を1分送る Shift-v | 動画を10分送る -Ctrl-s | 字幕ファイルを上書き保存して反映させる + +#### 字幕エディタ(Rawモード) + +key | action +:---:|--- +Ctrl-s | 字幕ファイルを上書き保存して動画ビューワに反映させる +y | 直前に入力したキュー操作を取り消す(最大10回) +j | 字幕ファイル末尾に開始キューを打つ +k | 字幕ファイル末尾に終了キューと開始キューを連続して打つ +l | 字幕ファイル末尾に終了キューを打つ ## 動作確認環境 以下の環境では動作を確認しています。 -* macOS mojave (10.14.3) / Node 10.15.x +* Windows 10 Home (1809) +* macOS mojave (10.14.3) ## 開発環境 -よその環境を試していないので、問題があったら揃えてみてください。 - * macOS mojave (10.14.3) -* Node 10.15.1 (LTS) -* yarn 1.13.0 +* Node ^10.15.1 (LTS) +* yarn ^1.13.0 + +## 将来の予定 + +将来的に実装したい機能などは以下です。 +これらは今後の実装を保証するものではなく、また予告なく変更・削除の恐れがあります。 + +- グラフィカルエディタ +- 別途用意した字幕原稿とのマージ +- linter +- YouTube, Vimeo 等、動画プラットフォーム風字幕スタイルシート +- 音声解析によるタイムスタンプ自動挿入 ## 参考 diff --git a/electron-builder.json b/electron-builder.json index a67aac5..87ef9bb 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -1,5 +1,5 @@ { - "appId": "jp.siky.webvtt-editor", + "appId": "jp.siky.webvtt-editor", "files": [ { "from": "dist", @@ -15,5 +15,11 @@ "package.json" ] } - ] + ], + "mac": { + "target": "dmg" + }, + "win": { + "target": "portable" + } } diff --git a/nuxt.config.ts b/nuxt.config.ts index cf19cd4..b55d3d2 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -24,9 +24,7 @@ const nuxtConfig: NuxtConfiguration = { build: { extend(config, { isClient, isDev }) { - if (isClient) { - config.target = 'electron-renderer' - } + config.target = 'electron-renderer' if (isDev && isClient) { config.module!.rules.push({ enforce: 'pre', diff --git a/package.json b/package.json index 0472152..a04d1c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webvtt-editor", - "version": "0.2.1", + "version": "0.2.2", "author": "sasaky ", "description": "The editor to create WebVTT how subtitles at html5 video.", "keywords": [ @@ -17,18 +17,20 @@ }, "bugs": "http://github.com/sotalbireo/webvtt-editor/issues", "main": "dist/main", + "engines": { + "node": "^10.15.3" + }, "scripts": { "nuxt:generate": "nuxt generate .", "nuxt:dev": "nuxt dev .", "tsc:build": "tsc --build tsconfig.main.json", "tsc:watch": "tsc --build tsconfig.main.json --watch", "build:dist": "yarn nuxt:generate && yarn tsc:build", - "build:pack": "electron-builder", + "build:pack": "electron-builder -mw", "build": "yarn build:dist && yarn build:pack", "dev": "yarn tsc:build && concurrently -k -n tsc,main,renderer -c cyan,cyan,green \"yarn tsc:watch\" \"cross-env NODE_ENV=development electron .\" \"yarn nuxt:dev\"", - "lint": "eslint --ext .ts,.js,.vue --ignore-path .gitignore .", - "precommit": "yarn lint", - "post-update": "yarn upgrade --latest" + "lint": "eslint --ext .ts,.js,.vue --ignore-path .gitignore --ignore-path .eslintignore .", + "precommit": "yarn lint" }, "dependencies": { "@nuxt/typescript": "^2.6.1", @@ -48,7 +50,7 @@ "devDependencies": { "@nuxtjs/eslint-config": "^0.0.1", "@types/mousetrap": "^1.6.2", - "@types/node": "^11.13.0", + "@types/node": "^12.0.2", "@typescript-eslint/eslint-plugin": "^1.6.0", "blob-util": "^2.0.2", "concurrently": "^4.1.0", @@ -60,11 +62,11 @@ "eslint-loader": "^2.1.2", "eslint-plugin-import": "^2.16.0", "eslint-plugin-jest": "^22.4.1", - "eslint-plugin-node": "^8.0.1", + "eslint-plugin-node": "^9.0.1", "eslint-plugin-promise": "^4.1.1", "eslint-plugin-standard": "^4.0.0", "eslint-plugin-vue": "^5.2.2", - "fibers": "^3.1.1", + "fibers": "^4.0.1", "mousetrap": "^1.6.3", "sass": "^1.17.4", "sass-loader": "^7.1.0", diff --git a/src/renderer/components/MainContainer.vue b/src/renderer/components/MainContainer.vue index c43445d..3ab0a21 100644 --- a/src/renderer/components/MainContainer.vue +++ b/src/renderer/components/MainContainer.vue @@ -2,7 +2,9 @@