diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index a8967bc..a278d71 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/elmapp.config.js b/elmapp.config.js index 12a544f..bb7d480 100644 --- a/elmapp.config.js +++ b/elmapp.config.js @@ -1,3 +1,3 @@ module.exports = { - homepage: "https://mather.github.io/simple-stopwatch" + homepage: "https://github.com/mather/sync-timer" } \ No newline at end of file diff --git a/package.json b/package.json index bf58c62..8f4f737 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "simple-stopwatch", + "name": "sync-timer", "version": "1.0.0", - "description": "シンプルなストップウォッチです。", + "description": "マイナスからスタートできるシンプルなストップウォッチです。", "author": "Eisuke Kuwahata", "private": true, "directories": { diff --git a/src/I18n.elm b/src/I18n.elm index 2f232a7..1118823 100644 --- a/src/I18n.elm +++ b/src/I18n.elm @@ -34,7 +34,7 @@ labelJa = , forward = "1秒進める" , minusSign = "マイナス" , displaySetting = "表示設定" - , showHour = "1時間以上の動画を見る" + , showHour = "「時」を表示する" , showProgress = "カウントダウンを視覚的に表現する" , fgColor = "文字色" , fgColorRgb = "文字色(RGB)" diff --git a/src/View.elm b/src/View.elm index f85c9d5..9266a94 100644 --- a/src/View.elm +++ b/src/View.elm @@ -53,11 +53,11 @@ viewTimerDigits millis setting = millisToDisplayTime millis displaySegments = - if setting.showHour || displayTime.hours > 0 then + if setting.showHour then [ displayTime.hours, displayTime.minutes, displayTime.seconds ] else - [ displayTime.minutes, displayTime.seconds ] + [ displayTime.hours * 60 + displayTime.minutes, displayTime.seconds ] in div [ class "timer", fontClass setting.fgFont, timerBgColorClass setting.bgColor, style "color" setting.fgColor ] [ div [ class "digits" ] <| diff --git a/yarn.lock b/yarn.lock index 899d174..2e8279c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1924,24 +1924,6 @@ __metadata: languageName: node linkType: hard -"simple-stopwatch@workspace:.": - version: 0.0.0-use.local - resolution: "simple-stopwatch@workspace:." - dependencies: - "@fortawesome/fontawesome-free": "npm:^6.7.2" - "@picocss/pico": "npm:2.0.6" - "@types/node": "npm:22.13.10" - elm-format: "npm:^0.8.7" - elm-hot: "npm:^1.1.6" - elm-test: "npm:0.19.1-revision15" - node-elm-compiler: "npm:^5.0.6" - sass: "npm:^1.85.1" - vite: "npm:6.2.2" - vite-plugin-elm: "npm:3.0.1" - vite-plugin-sitemap: "npm:0.7.1" - languageName: unknown - linkType: soft - "smart-buffer@npm:^4.2.0": version: 4.2.0 resolution: "smart-buffer@npm:4.2.0" @@ -2051,6 +2033,24 @@ __metadata: languageName: node linkType: hard +"sync-timer@workspace:.": + version: 0.0.0-use.local + resolution: "sync-timer@workspace:." + dependencies: + "@fortawesome/fontawesome-free": "npm:^6.7.2" + "@picocss/pico": "npm:2.0.6" + "@types/node": "npm:22.13.10" + elm-format: "npm:^0.8.7" + elm-hot: "npm:^1.1.6" + elm-test: "npm:0.19.1-revision15" + node-elm-compiler: "npm:^5.0.6" + sass: "npm:^1.85.1" + vite: "npm:6.2.2" + vite-plugin-elm: "npm:3.0.1" + vite-plugin-sitemap: "npm:0.7.1" + languageName: unknown + linkType: soft + "tar@npm:^7.4.3": version: 7.4.3 resolution: "tar@npm:7.4.3"