nafuka11 / 42tokyo-stats-website Goto Github PK
View Code? Open in Web Editor NEWMy dashboard for 42Tokyo
Home Page: https://42tokyo-stats.vercel.app
License: MIT License
My dashboard for 42Tokyo
Home Page: https://42tokyo-stats.vercel.app
License: MIT License
animationが完了してからキャプチャを取ってほしい。
テーブルサイズが固定なため。
一時的な対応。
根本的な対応は #96 で行う。
自分がAGUを取ったりBHに飲み込まれた場合、他の学生がこのリポジトリを使ってみたくなるはず。
そんな時、今のREADMEだと、どうすれば動くかが分からない。
→ とりあえず動かすための手順を書く。
にCircularProgressを表示する
上記の時に画面に変化が無く、再度クリックしたり更新ボタンを押してしまうそうになるので、ローディング中表示が欲しい。
テストを書かないと変更のたびにリグレッションしてないか確認が必要だからテストを書こうね
IssueとPullRequestの文面を作るのが面倒なため。
CssBaseLine を追加してCSSがリセットされているため
CSSではなく、MUIのthemeでbackgroundの色を設定する
空の円グラフは不要な情報なので、月別で生存している学生数が0なら、円グラフを表示しないようにする。
学生が存在するかは生存率、下のtableから分かるので、あえて円グラフを表示する必要はない。
jsonを一定期間でzipにしてそれを取得するようにする。
タイトル通り。
環境変数にカンマ区切りでidを記述し、そのidに一致するuserは除外する。
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates await pending status checks. To force their creation now, click the checkbox below.
eslint-config-next
, next
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@storybook/addon-actions
, @storybook/addon-essentials
, @storybook/addon-interactions
, @storybook/addon-links
, @storybook/nextjs
, @storybook/react
, @storybook/test
, storybook
)@mui/icons-material
, @mui/material
).github/workflows/deploy-chromatic.yml
actions/checkout v4
chromaui/action v11
.github/workflows/deploy-website.yml
package.json
@emotion/react ^11.11.4
@emotion/styled ^11.11.5
@mui/icons-material ^5.15.18
@mui/material ^5.15.18
@storybook/test ^8.1.4
date-fns ^3.6.0
date-fns-tz ^3.1.3
highcharts ^10.3.3
highcharts-react-official ^3.1.0
next ^14.2.3
next-auth ^4.24.7
next-head-seo ^0.1.3
react ^18.3.1
react-dom ^18.3.1
@babel/core ^7.24.5
@storybook/addon-actions ^8.1.4
@storybook/addon-essentials ^8.1.4
@storybook/addon-interactions ^8.1.4
@storybook/addon-links ^8.1.4
@storybook/nextjs ^8.1.4
@storybook/react ^8.1.4
@types/node 20.12.8
@types/react 18.3.3
@types/react-dom 18.3.0
babel-loader ^9.1.3
chromatic ^11.4.0
dotenv ^16.4.5
eslint 8.57.0
eslint-config-next ^14.2.3
eslint-plugin-storybook ^0.8.0
firebase-admin ^12.1.1
npm-run-all2 ^6.2.0
storybook ^8.1.4
ts-node ^10.9.2
typescript 5.4.5
https://42born2code.slack.com/archives/CN3D33GRX/p1668685976185039
image_url
はdeprecated。 今後は image
を使う。
入学月ごとに、1週間、1ヶ月の内にBHに飲み込まれる人数を、これから入学する人数表の横に表示する。
ユーザが毎日webサイトにアクセスした場合、週毎だと変化が分かりづらい。
デフォルトで日毎表示、選択で週毎表示としたい。
amoudnet/vercel-actionとDeploy Hooksを比較した結果、Deploy Hooksを使うことにしました。
components/stats
が大きくなっているので、役割でディレクトリ分けましょうhttps://api.highcharts.com/highcharts/credits
デフォでチャートの右下にcreditが表示される。これは設定で非表示にできる。
creditでチャートの文字が隠れることがあるので、非表示にしましょう。
https://www.highcharts.com/blog/download/
非営利団体、個人のウェブサイト、または学校のプロジェクトならHighchartsを無料で使える、と読める。
creditについては何も書かれてないので大丈夫だと思う。
入力文字列を yyyy-MM-dd HH:mm:ss.SSSZ
で決め打ちしていたため。
42tokyo-stats-website/src/services/aggregate.ts
Lines 111 to 116 in 4f4a895
以下のように修正してもいいが、JSTでの日付がズレる可能性がある。このため一旦Datetimeに変換後、文字列にするべき
- /^(\d{4}-\d{2}-\d{2})T\d{2}:\d{2}:\d{2}\.\d{3}Z$/,
+ /^(\d{4}-\d{2}-\d{2})T\d{2}:\d{2}:\d{2}\.\d{3}(Z|\+\d{2}:\d{2})$/,
timestampをパースする際、timezone Z
で決め打ちしてないか確認する。
src/types/CursusUsers.tsのDateStringがZ決め打ちになっているので単にstringにする。
42tokyo-stats-website/src/types/CursusUser.ts
Lines 46 to 47 in 4f4a895
現状はLv. 9が #f15c80
になっている。
Lv.9まではグラデーション、Lv10からは固定にする予定。
chroma.js palette helperで生成した色の案
https://vis4.net/palettes/#/11|s|f7fcf0,e0f3db,ccebc5,a8ddb5,7bccc4,4eb3d3,2b8cbe,0868ac,084081,93003a||0|0
/demo
にアクセスすると、以下のUncaught Errorが発生する
Uncaught Error: Minified React error #425; visit https://reactjs.org/docs/error-decoder.html?invariant=425 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Uncaught Error: Minified React error #418; visit https://reactjs.org/docs/error-decoder.html?invariant=418 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Uncaught Error: Minified React error #423; visit https://reactjs.org/docs/error-decoder.html?invariant=423 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.