From 8b23051fde7acb12e61eacb36d0caaa9acc3008e Mon Sep 17 00:00:00 2001 From: furu04 Date: Thu, 19 Jun 2025 02:39:45 +0000 Subject: [PATCH 1/8] =?UTF-8?q?=E4=BB=95=E6=A7=98=E7=A2=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38fbcbd..bb126bd 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ - Python - Flask - JavaScript -- Bootstrap or Tailwind テンプレート(未定) +- Bootstrapテンプレート - MySQL ## 注意事項 From c53f8508066c30ff5ba26765d742678d28d19077 Mon Sep 17 00:00:00 2001 From: furu04 Date: Sun, 27 Jul 2025 22:29:43 +0900 Subject: [PATCH 2/8] =?UTF-8?q?=E3=83=80=E3=83=83=E3=82=B7=E3=83=A5?= =?UTF-8?q?=E3=83=9C=E3=83=BC=E3=83=89=E3=80=81=E3=83=AD=E3=82=B0=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E7=94=BB=E9=9D=A2=E3=81=AE=E3=83=97=E3=83=AD=E3=83=88?= =?UTF-8?q?=E3=82=BF=E3=82=A4=E3=83=97=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/dashboard.html | 221 ++++++++++++++++++++++++++++++++++++++ app/assets/login.html | 61 +++++++++++ 2 files changed, 282 insertions(+) create mode 100644 app/assets/dashboard.html create mode 100644 app/assets/login.html diff --git a/app/assets/dashboard.html b/app/assets/dashboard.html new file mode 100644 index 0000000..f062723 --- /dev/null +++ b/app/assets/dashboard.html @@ -0,0 +1,221 @@ + + + + + +WB-Workout - ワークアウトダッシュボード + + + + + + + +
+
+
+ +
+ + +
+ + +
+ +
+
+
+
+
+

ワークアウトダッシュボード

+

あなたの進捗をグラフと表で確認しましょう。

+
+
+ + + +
+
+
+
+
+

総リフト重量の推移

+
+

過去7日間

+ + +5% + +
+
+ + + + + + + + + + + + +
+
+
+7月14日 +7月15日 +7月16日 +7月17日 +7月18日 +7月19日 +7月20日 +
+
+
+
+
+

ジム訪問回数

+

12回

+

今月

+
+
+
+
+
+
+
+
+
+第1週 +第2週 +第3週 +第4週 +
+
+
+
+
+
+

ワークアウト履歴

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
日付運動の種類セット数
2024-07-20胸 & 三頭筋6
2024-07-18脚 & 肩5
2024-07-17背中 & 二頭筋7
2024-07-15胸 & 三頭筋6
2024-07-13脚 & 肩5
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/app/assets/login.html b/app/assets/login.html new file mode 100644 index 0000000..1b71b33 --- /dev/null +++ b/app/assets/login.html @@ -0,0 +1,61 @@ + + + + + +WB-Workout - ログイン + + + + + + + + +
+
+
+
+ +

WB-Workout

+
+

おかえりなさい!

+

アカウントにログインしてください

+
+
+
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ アカウントをお持ちでないですか? + 新規登録 +
+
+
+ \ No newline at end of file From 2acdef30a798d97ecdf7efde89f4cdbee42b1c1f Mon Sep 17 00:00:00 2001 From: furu04 Date: Sun, 27 Jul 2025 22:48:30 +0900 Subject: [PATCH 3/8] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E5=87=A6=E7=90=86=E9=83=A8=E5=88=86=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/user_service.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/services/user_service.py diff --git a/app/services/user_service.py b/app/services/user_service.py new file mode 100644 index 0000000..3aff93c --- /dev/null +++ b/app/services/user_service.py @@ -0,0 +1,15 @@ +# ログイン処理書きかけ +from app.models.workout import User +from app.repositories.workout_repository import WorkoutRepository + +class UserService: + def __init__(self): + # self.users = [] + self.workout_repository = WorkoutRepository() + + def login(self, username: str, password: str) -> User: + # TODO:入力されたパスワードをハッシュ化して比較する処理を追加する + for user in self.users: + if user.username == username and user.password == password: + return user + return None \ No newline at end of file From 7de089cf6e85cf6d8e128da559bc9c2cfcb83142 Mon Sep 17 00:00:00 2001 From: furu04 Date: Mon, 28 Jul 2025 17:58:25 +0900 Subject: [PATCH 4/8] =?UTF-8?q?=E5=8B=95=E7=9A=84=E3=81=AB=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E5=8F=AF=E8=83=BD=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/dashboard.html | 195 +++++++++++++++++++++++--------------- 1 file changed, 121 insertions(+), 74 deletions(-) diff --git a/app/assets/dashboard.html b/app/assets/dashboard.html index f062723..503f2e3 100644 --- a/app/assets/dashboard.html +++ b/app/assets/dashboard.html @@ -8,6 +8,7 @@ +