Giter Site home page Giter Site logo

bus-time-table-web's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

bus-time-table-web's Issues

Fix bug caused by incorrect timezone handling

応急処置として、ビルドコマンドにタイムゾーン環境変数を付け、Vercel上でも日本時間でビルドする。

  "build": "TZ=\"Asia/Tokyo\" next build",

恒久対応は、dayjsのtimezoneを正しく利用して実装する必要がある。
これをテストする方法としては、テスト時のタイムゾーンを日本時間以外に設定してテスト実行する。

  "test:tz:jp": "TZ=\"Asia/Tokyo\" jest",
  "test:tz:foreign": "TZ=\"Etc/GMT\" jest",

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

タイマーの画面にヒントを表示する

ヒントの内容案

  • ページ切替は下部ボタン
  • 現在表示中ページの下部ボタンタップでページ最上部へスクロール
  • 前発・次発ボタンのダブルタップで直近バスと最終バスのタイマー表示

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update all patch dependencies (@types/node, prettier, superjson)
  • Update babel monorepo to v7.21.8 (@babel/core, @babel/eslint-parser)
  • Update dependency @cybozu/eslint-config to v19
  • Update dependency babel-plugin-module-resolver to v5
  • Update dependency typescript to v5
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v2
  • actions/setup-node v2
npm
package.json
  • @holiday-jp/holiday_jp 2.4.0
  • @material-ui/core 4.11.4
  • @material-ui/icons 4.11.2
  • @material-ui/styles 4.11.4
  • babel-plugin-module-resolver 4.1.0
  • clsx 1.2.1
  • dayjs 1.11.7
  • next 10.2.3
  • next-workbox-webpack-plugin 2.1.1
  • react 17.0.2
  • react-dom 17.0.2
  • superjson 1.12.2
  • unstated-next 1.1.0
  • @babel/core 7.21.3
  • @testing-library/react-hooks 5.1.3
  • @babel/eslint-parser 7.21.3
  • @cybozu/eslint-config 14.0.3
  • @types/jest 26.0.24
  • @types/node 14.18.41
  • @types/react 17.0.44
  • @types/react-dom 17.0.15
  • @wojtekmaj/enzyme-adapter-react-17 0.8.0
  • babel-plugin-superjson-next 0.4.5
  • enzyme 3.11.0
  • eslint 7.32.0
  • eslint-import-resolver-babel-module 5.3.2
  • jest 26.6.3
  • jest-enzyme 7.1.2
  • npm-run-all 4.1.5
  • prettier 2.8.7
  • react-test-renderer 17.0.2
  • ts-jest 26.5.6
  • typescript 4.9.5
  • node 14.x

  • Check this box to trigger a request for Renovate to run again on this repository

緊急事態宣言に伴う運休に対応する

  • タイマーボードに「臨時運休中」
  • お知らせ欄に「4/8(水)より東京都緊急事態措置の影響により一時運休中。再開時期は未定で、管理組合が行政見解を待ち別途告知予定」

Support for weekend and holiday timetables

Requirements

  • Appearance:タイマー・時刻表部分は「平日 or 土日祝」を容易に見分けられる
  • Switching:時刻表は全体を「平日」と「土日祝」を切り替えられる (Tab)

Specifications

  • 曜日・祝日判定:Containerに入れる
    • isInactiveDays, inactiveDay, isClosedDay の変数名・関数名を土日祝が休業前提ではない文言へ変更
    • nextState.outOfService = null となる条件から inactiveDay を削除
  • 時刻表データ:バス停データの中に平日・土日祝の両方を格納
    • Timetable classにデータと平日・土日祝を見分けられる property を持つ

Architecture

  • hooks
    • useClock:現時刻を刻む
    • useOpsDay:平日・土日祝を切り替えられる
    • useTimetable:時刻表を保持する

Clean Architectureにならう

  • presenter
    • Timetableの配列をバス停毎にグループ化
    • 時刻の分と秒は0パディング

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.