m1m02530125 commited on
Commit
34c1f5a
·
1 Parent(s): 413ec0c

開発者情報をヘルプページから設定ページへ移動・簡略化

Browse files

ヘルプページの開発者情報セクション(開発の経緯・アプリのポイント・
技術スタックなど)を削除し、設定ページ下部に開発者名・バージョン・
連絡先・バグ報告案内のみのコンパクトなカードとして再構成。
バージョン表示は utils/version.py の APP_VERSION を context
processor経由でテンプレートに渡すようにした。

templates/base.html CHANGED
@@ -433,7 +433,7 @@
433
  ('schedule.stats_multi', 'bi-bar-chart-fill', '勤務統計', '複数期間の勤務時間集計'),
434
  ('employees.index', 'bi-people-fill', 'スタッフ管理','スタッフの登録・編集'),
435
  ('settings.index', 'bi-gear-fill', '設定', 'シフト制約・アプリ設定'),
436
- ('help.index', 'bi-question-circle', 'ヘルプ', '使い方・開発者情報'),
437
  ] %}
438
  {% set active = (request.endpoint == endpoint) if endpoint == 'schedule.stats_multi'
439
  else (request.endpoint and request.endpoint.startswith(endpoint.split('.')[0])) %}
 
433
  ('schedule.stats_multi', 'bi-bar-chart-fill', '勤務統計', '複数期間の勤務時間集計'),
434
  ('employees.index', 'bi-people-fill', 'スタッフ管理','スタッフの登録・編集'),
435
  ('settings.index', 'bi-gear-fill', '設定', 'シフト制約・アプリ設定'),
436
+ ('help.index', 'bi-question-circle', 'ヘルプ', '各機能の使い方'),
437
  ] %}
438
  {% set active = (request.endpoint == endpoint) if endpoint == 'schedule.stats_multi'
439
  else (request.endpoint and request.endpoint.startswith(endpoint.split('.')[0])) %}
templates/help/index.html CHANGED
@@ -82,108 +82,6 @@
82
  display: inline-block; border-radius: 4px;
83
  padding: 1px 7px; font-size: .75rem; font-weight: 600;
84
  }
85
-
86
- /* 開発者カード */
87
- .dev-card {
88
- background: #1e293b; color: white; border-radius: 16px;
89
- overflow: hidden; margin-top: .5rem;
90
- box-shadow: 0 4px 24px rgba(0,0,0,.18);
91
- }
92
- .dev-profile-header {
93
- background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
94
- padding: 1.5rem 1.25rem 1.25rem;
95
- position: relative; overflow: hidden;
96
- }
97
- .dev-profile-header::before {
98
- content: '';
99
- position: absolute; inset: 0;
100
- background: radial-gradient(ellipse at 70% 50%, rgba(14,165,233,.15) 0%, transparent 70%);
101
- pointer-events: none;
102
- }
103
- .dev-avatar {
104
- width: 56px; height: 56px; border-radius: 50%;
105
- background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
106
- display: flex; align-items: center; justify-content: center;
107
- font-size: 1.6rem; flex-shrink: 0;
108
- box-shadow: 0 0 0 3px rgba(14,165,233,.35), 0 2px 8px rgba(0,0,0,.3);
109
- }
110
- .dev-name {
111
- font-size: 1.1rem; font-weight: 800; color: #f1f5f9;
112
- letter-spacing: .02em;
113
- }
114
- .dev-role {
115
- font-size: .78rem; color: #7dd3fc; margin-top: 2px;
116
- font-weight: 500;
117
- }
118
- .version-badge {
119
- display: inline-block; background: rgba(255,255,255,.1);
120
- border: 1px solid rgba(255,255,255,.15);
121
- color: #94a3b8; border-radius: 20px;
122
- padding: 2px 10px; font-size: .7rem; font-family: monospace;
123
- margin-top: 6px;
124
- }
125
- .dev-body { padding: 1.1rem 1.25rem 1.25rem; }
126
- .dev-section-label {
127
- font-size: .65rem; font-weight: 700; letter-spacing: .08em;
128
- text-transform: uppercase; color: #475569; margin-bottom: .55rem;
129
- }
130
- .dev-quote {
131
- position: relative; padding: .85rem 1rem .85rem 1.1rem;
132
- background: #0f172a; border-radius: 10px;
133
- border-left: 3px solid #0ea5e9; margin-bottom: 1.1rem;
134
- }
135
- .dev-quote::before {
136
- content: '\201C';
137
- position: absolute; top: -.1rem; left: .6rem;
138
- font-size: 2.8rem; line-height: 1; color: #0ea5e9;
139
- opacity: .3; font-family: Georgia, serif; pointer-events: none;
140
- }
141
- .dev-quote p {
142
- font-size: .84rem; color: #cbd5e1; line-height: 1.8; margin: 0;
143
- padding-left: .8rem;
144
- }
145
- .dev-contact-btn {
146
- display: flex; align-items: center; gap: .65rem;
147
- background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
148
- border-radius: 10px; padding: .6rem .85rem;
149
- text-decoration: none; color: #e2e8f0; font-size: .84rem;
150
- transition: background .15s, border-color .15s, transform .1s;
151
- margin-bottom: .5rem;
152
- }
153
- .dev-contact-btn:last-child { margin-bottom: 0; }
154
- .dev-contact-btn:hover {
155
- background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18);
156
- color: white; transform: translateX(2px);
157
- }
158
- .dev-contact-icon {
159
- width: 30px; height: 30px; border-radius: 8px;
160
- display: flex; align-items: center; justify-content: center;
161
- font-size: 1rem; flex-shrink: 0;
162
- }
163
- .dev-contact-sub { font-size: .72rem; color: #64748b; margin-top: 1px; }
164
- .dev-stack-tag {
165
- border-radius: 8px; padding: 4px 11px;
166
- font-size: .74rem; font-weight: 700;
167
- border: 1px solid rgba(255,255,255,.08);
168
- display: inline-flex; align-items: center; gap: 4px;
169
- }
170
- .dev-bug-box {
171
- background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.2);
172
- border-radius: 10px; padding: .75rem 1rem;
173
- font-size: .82rem; color: #7dd3fc; line-height: 1.7;
174
- }
175
- .dev-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .2rem; }
176
- .dev-feature-item {
177
- display: flex; gap: .75rem; align-items: flex-start;
178
- background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
179
- border-radius: 10px; padding: .7rem .85rem;
180
- }
181
- .dev-feature-icon {
182
- width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
183
- display: flex; align-items: center; justify-content: center; font-size: 1rem;
184
- }
185
- .dev-feature-title { font-size: .85rem; font-weight: 700; color: #f1f5f9; margin-bottom: 2px; }
186
- .dev-feature-desc { font-size: .78rem; color: #94a3b8; line-height: 1.65; }
187
  </style>
188
  {% endblock %}
189
 
@@ -210,12 +108,10 @@
210
  ('#schedule', 'シフト表', '#ede9fe'),
211
  ('#customer', '客数管理', '#fee2e2'),
212
  ('#settings', '設定', '#e2e8f0'),
213
- ('#dev', '開発者情報', '#1e293b'),
214
  ] %}
215
  <a href="{{ anchor }}" class="text-decoration-none">
216
  <span style="background:{{ color }};color:#1e293b;border-radius:20px;
217
- padding:3px 12px;font-size:.78rem;font-weight:600;
218
- {% if anchor == '#dev' %}color:white{% endif %}">
219
  {{ label }}
220
  </span>
221
  </a>
@@ -612,129 +508,6 @@
612
  </div>
613
  </div>
614
 
615
- <!-- ── 開発者情報 ── -->
616
- <div class="help-section" id="dev">
617
- <div style="font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin-bottom:.6rem">
618
- 開発者情報・連絡先
619
- </div>
620
- <div class="dev-card">
621
-
622
- <!-- プロフィールヘッダー -->
623
- <div class="dev-profile-header">
624
- <div class="d-flex align-items-center gap-3">
625
- <div class="dev-avatar">👨‍💻</div>
626
- <div>
627
- <div class="dev-name">島野 凌</div>
628
- <div class="dev-role">Developer &amp; Designer · SDU-Shift</div>
629
- <span class="version-badge">v1.0 &nbsp;·&nbsp; Flask + OR-Tools</span>
630
- </div>
631
- </div>
632
- </div>
633
-
634
- <div class="dev-body">
635
-
636
- <!-- 開発の経緯 -->
637
- <div class="dev-section-label">開発の経緯</div>
638
- <div class="dev-quote">
639
- <p>
640
- こんなつまらん仕事のためにプライベートを犠牲にしてほしくないので、このシステムをつくりました。<br>
641
- <strong style="color:#f1f5f9">少しでも気が休まる時間が増えることを願います。</strong>
642
- </p>
643
- </div>
644
-
645
- <!-- アプリのポイント -->
646
- <div class="dev-section-label" style="margin-top:1rem">このアプリのポイント</div>
647
- <div class="dev-features">
648
- <div class="dev-feature-item">
649
- <div class="dev-feature-icon" style="background:rgba(14,165,233,.15)">
650
- <i class="bi bi-lightning-charge-fill" style="color:#38bdf8"></i>
651
- </div>
652
- <div>
653
- <div class="dev-feature-title">ボタン一発で自動生成</div>
654
- <div class="dev-feature-desc">OR-Toolsの制約ソルバーがスタッフの希望・人員制約・客数を同時に考慮して最適なシフトを算出。</div>
655
- </div>
656
- </div>
657
- <div class="dev-feature-item">
658
- <div class="dev-feature-icon" style="background:rgba(99,102,241,.15)">
659
- <i class="bi bi-phone-fill" style="color:#a78bfa"></i>
660
- </div>
661
- <div>
662
- <div class="dev-feature-title">スマホ完結・PWA対応</div>
663
- <div class="dev-feature-desc">ホーム画面に追加してアプリ感覚で使用可能。シフト入力から確認まですべてスマホで完結します。</div>
664
- </div>
665
- </div>
666
- <div class="dev-feature-item">
667
- <div class="dev-feature-icon" style="background:rgba(34,197,94,.12)">
668
- <i class="bi bi-file-earmark-arrow-down-fill" style="color:#4ade80"></i>
669
- </div>
670
- <div>
671
- <div class="dev-feature-title">Excel / PDF 出力</div>
672
- <div class="dev-feature-desc">完成したシフト表をワンタップで Excel または PDF にエクスポート。そのまま印刷・共有できます。</div>
673
- </div>
674
- </div>
675
- </div>
676
-
677
- <hr style="border-color:#334155;margin:1rem 0 .9rem">
678
-
679
- <!-- 連絡先 -->
680
- <div class="dev-section-label">連絡先 / コンタクト</div>
681
- <a href="mailto:srinrin502.728@gmail.com" class="dev-contact-btn">
682
- <div class="dev-contact-icon" style="background:rgba(14,165,233,.15)">
683
- <i class="bi bi-envelope-fill" style="color:#38bdf8"></i>
684
- </div>
685
- <div>
686
- <div>srinrin502.728@gmail.com</div>
687
- <div class="dev-contact-sub">メールでのお問い合わせ</div>
688
- </div>
689
- </a>
690
- <a href="https://github.com/Richiesss/shift-tool" target="_blank" rel="noopener" class="dev-contact-btn">
691
- <div class="dev-contact-icon" style="background:rgba(255,255,255,.08)">
692
- <i class="bi bi-github" style="color:#e2e8f0"></i>
693
- </div>
694
- <div>
695
- <div>github.com/Richiesss/shift-tool</div>
696
- <div class="dev-contact-sub">ソースコード・Issues</div>
697
- </div>
698
- </a>
699
- <div class="dev-contact-btn" style="cursor:default">
700
- <div class="dev-contact-icon" style="background:rgba(6,199,85,.12)">
701
- <i class="bi bi-chat-fill" style="color:#06c755"></i>
702
- </div>
703
- <div>
704
- <div style="color:#e2e8f0">LINE</div>
705
- <div class="dev-contact-sub">知人の方はこちらからでも</div>
706
- </div>
707
- </div>
708
-
709
- <!-- バグ報告 -->
710
- <div class="dev-bug-box mt-3">
711
- <i class="bi bi-bug-fill me-1" style="opacity:.7"></i>
712
- <strong style="color:#f1f5f9">バグ報告・機能要望</strong>はメール・GitHub Issues・LINE からお気軽にどうぞ。
713
- </div>
714
-
715
- <hr style="border-color:#334155;margin:1rem 0 .85rem">
716
-
717
- <!-- 技術スタック -->
718
- <div class="dev-section-label">技術スタック</div>
719
- <div class="d-flex flex-wrap gap-2">
720
- {% for tag, color, icon in [
721
- ('Flask', '#38bdf8', 'bi-server'),
722
- ('PostgreSQL · Neon', '#4ade80', 'bi-database-fill'),
723
- ('OR-Tools CP-SAT', '#fb923c', 'bi-cpu-fill'),
724
- ('Bootstrap 5', '#a78bfa', 'bi-layout-text-window'),
725
- ('HuggingFace Spaces', '#fbbf24', 'bi-cloud-fill'),
726
- ] %}
727
- <span class="dev-stack-tag" style="background:rgba(255,255,255,.05);color:{{ color }}">
728
- <i class="bi {{ icon }}" style="font-size:.75rem;opacity:.8"></i>
729
- {{ tag }}
730
- </span>
731
- {% endfor %}
732
- </div>
733
-
734
- </div>
735
- </div>
736
- </div>
737
-
738
  <!-- フッター余白 -->
739
  <div style="height:1rem"></div>
740
  </div>
 
82
  display: inline-block; border-radius: 4px;
83
  padding: 1px 7px; font-size: .75rem; font-weight: 600;
84
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  </style>
86
  {% endblock %}
87
 
 
108
  ('#schedule', 'シフト表', '#ede9fe'),
109
  ('#customer', '客数管理', '#fee2e2'),
110
  ('#settings', '設定', '#e2e8f0'),
 
111
  ] %}
112
  <a href="{{ anchor }}" class="text-decoration-none">
113
  <span style="background:{{ color }};color:#1e293b;border-radius:20px;
114
+ padding:3px 12px;font-size:.78rem;font-weight:600">
 
115
  {{ label }}
116
  </span>
117
  </a>
 
508
  </div>
509
  </div>
510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
511
  <!-- フッター余白 -->
512
  <div style="height:1rem"></div>
513
  </div>
templates/settings/index.html CHANGED
@@ -20,6 +20,25 @@
20
  }
21
  .popover { max-width: 280px; font-size: .82rem; }
22
  .popover-header { font-size: .85rem; font-weight: 600; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  </style>
24
  {% endblock %}
25
  {% block content %}
@@ -431,6 +450,35 @@
431
  </div>
432
  </div>
433
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  </div>
435
  {% endblock %}
436
  {% block scripts %}
 
20
  }
21
  .popover { max-width: 280px; font-size: .82rem; }
22
  .popover-header { font-size: .85rem; font-weight: 600; }
23
+
24
+ /* 開発者情報カード */
25
+ .dev-avatar {
26
+ width: 48px; height: 48px; border-radius: 50%;
27
+ background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
28
+ display: flex; align-items: center; justify-content: center;
29
+ font-size: 1.4rem; flex-shrink: 0; color: white;
30
+ }
31
+ .dev-version-badge {
32
+ display: inline-block; background: rgba(14, 165, 233, 0.12);
33
+ color: var(--accent); border-radius: 20px;
34
+ padding: 1px 9px; font-size: .68rem; font-family: monospace;
35
+ margin-top: 3px;
36
+ }
37
+ .dev-contact-link {
38
+ display: flex; align-items: center; gap: .5rem;
39
+ font-size: .85rem; color: var(--text); text-decoration: none;
40
+ }
41
+ .dev-contact-link:hover { color: var(--accent); }
42
  </style>
43
  {% endblock %}
44
  {% block content %}
 
450
  </div>
451
  </div>
452
  </div>
453
+
454
+ <!-- 開発者情報 -->
455
+ <div class="card mb-3">
456
+ <div class="card-body">
457
+ <h6 class="card-title text-muted mb-3">開発者情報</h6>
458
+ <div class="d-flex align-items-center gap-3 mb-3">
459
+ <div class="dev-avatar">👨‍💻</div>
460
+ <div>
461
+ <div class="fw-semibold">島野 凌</div>
462
+ <div class="small text-muted">Developer &amp; Designer · SDU-Shift</div>
463
+ <span class="dev-version-badge">{{ app_version }}</span>
464
+ </div>
465
+ </div>
466
+ <div class="d-flex flex-column gap-2 mb-2">
467
+ <a href="mailto:srinrin502.728@gmail.com" class="dev-contact-link">
468
+ <i class="bi bi-envelope-fill"></i>srinrin502.728@gmail.com
469
+ </a>
470
+ <a href="https://github.com/Richiesss/shift-tool" target="_blank" rel="noopener" class="dev-contact-link">
471
+ <i class="bi bi-github"></i>github.com/Richiesss/shift-tool
472
+ </a>
473
+ <div class="dev-contact-link" style="cursor:default">
474
+ <i class="bi bi-chat-fill" style="color:#06c755"></i>LINE(知人の方はこちらからでも)
475
+ </div>
476
+ </div>
477
+ <div class="text-muted small">
478
+ <i class="bi bi-bug-fill me-1"></i>バグ報告・機能要望はメール・GitHub Issues・LINEからお気軽にどうぞ。
479
+ </div>
480
+ </div>
481
+ </div>
482
  </div>
483
  {% endblock %}
484
  {% block scripts %}
web_app.py CHANGED
@@ -73,7 +73,8 @@ def create_app():
73
 
74
  @app.context_processor
75
  def inject_auth():
76
- return {"auth_enabled": bool(APP_PASSWORD)}
 
77
 
78
  # 認証チェック(ログイン・静的ファイルは除外)
79
  @app.before_request
 
73
 
74
  @app.context_processor
75
  def inject_auth():
76
+ from utils.version import APP_VERSION
77
+ return {"auth_enabled": bool(APP_PASSWORD), "app_version": APP_VERSION}
78
 
79
  # 認証チェック(ログイン・静的ファイルは除外)
80
  @app.before_request