timetable-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f448b901ed653fbe4302af0648d9e6cc5eb87597
parent d63c2836b7efb144b2f12046582a0cdd1c3f119f
Author: Yuukin256 <52195426+Yuukin256@users.noreply.github.com>
Date:   Fri,  2 Jun 2023 19:56:34 +0900

Merge pull request #8 from Yuukin256/dev

臨時変更を使用しないため文言修正
Diffstat:
Msrc/client/components/DatePicker/index.tsx | 3++-
Msrc/client/components/SlideFooter/index.tsx | 6++----
Msrc/client/components/WarningOfUse/index.tsx | 2+-
Msrc/client/features/console/classTemporarySchedule/index.tsx | 8+++++++-
Msrc/client/features/daily/components/DatePicker.tsx | 8+++++++-
Msrc/client/features/daily/components/Lessons/UpdateDateChip.tsx | 2+-
Msrc/pages/about.tsx | 2+-
Msrc/pages/how-to-use.tsx | 10++--------
8 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/src/client/components/DatePicker/index.tsx b/src/client/components/DatePicker/index.tsx @@ -15,7 +15,7 @@ export default function DatePicker({ <MobileDatePicker format='yyyy/MM/dd (EEEEE)' slotProps={{ - toolbar: { toolbarFormat: 'M月d日' }, + toolbar: { toolbarFormat: 'M月d日 (EEEEE)' }, field: { InputProps: { startAdornment: ( @@ -30,6 +30,7 @@ export default function DatePicker({ }} {...props} selectedSections={null} + closeOnSelect /> </DatePickerLocalizationProvider> ); diff --git a/src/client/components/SlideFooter/index.tsx b/src/client/components/SlideFooter/index.tsx @@ -53,7 +53,7 @@ const prioritySlideData: SlideData[] = [ id: 1, content: ( <> - 情報の正確性を保証することはできませんので、参考程度にお使いください。時間割が間違っていた場合、IT部は一切の責任を負いません。 + 情報の正確性を保証することはできませんので、参考程度にお使いください。時間割が間違っていた場合、学校・IT部は一切の責任を負いません。 </> ), severity: 'warning', @@ -61,9 +61,7 @@ const prioritySlideData: SlideData[] = [ { id: 2, content: ( - <> - 臨時変更の情報は週に1回程度の頻度で反映しています。最新の情報は教室掲示のプリントで確認してください。 - </> + <>臨時変更には対応していません。教室掲示のプリントで確認してください。</> ), severity: 'warning', }, diff --git a/src/client/components/WarningOfUse/index.tsx b/src/client/components/WarningOfUse/index.tsx @@ -27,7 +27,7 @@ export default function WarningOfUse(props: Props) { <List> <li>曜日変更はすべて対応しています。</li> <li> - 臨時変更は週に1回程度の頻度で反映しているため、一部対応できていないことがあります。 + 臨時変更には対応していません。教室掲示のプリントで確認してください。 </li> <li> 時間割情報の正確性を保証することはできませんので、参考程度にお使いください。 diff --git a/src/client/features/console/classTemporarySchedule/index.tsx b/src/client/features/console/classTemporarySchedule/index.tsx @@ -1,4 +1,4 @@ -import { Box } from '@mui/material'; +import { Alert, Box } from '@mui/material'; import { useState } from 'react'; import ClassPicker from 'client/components/ClassPicker'; @@ -16,6 +16,12 @@ export default function ClassTemporaryScheduleEditor({ classes }: Props) { return ( <> + <Box m={4}> + <Alert severity='error' variant='filled'> + 現在、臨時変更機能は使用しないことになっています。臨時変更データは入力しないでください! + </Alert> + </Box> + <Box width='8rem' m={4}> <ClassPicker classes={classes} diff --git a/src/client/features/daily/components/DatePicker.tsx b/src/client/features/daily/components/DatePicker.tsx @@ -37,6 +37,8 @@ export default function DatePickerWithSideButton({ [dates] ); + const canSelectToday = !shouldDisableDate(new Date()); + return ( <Stack direction='row' @@ -63,7 +65,11 @@ export default function DatePickerWithSideButton({ shouldDisableDate={shouldDisableDate} showDaysOutsideCurrentMonth slotProps={{ - actionBar: { actions: ['today', 'cancel', 'accept'] }, + actionBar: { + actions: canSelectToday + ? ['today', 'cancel', 'accept'] + : ['cancel', 'accept'], + }, }} /> <Typography variant='h2' fontSize={{ xs: 18, sm: 20 }}> diff --git a/src/client/features/daily/components/Lessons/UpdateDateChip.tsx b/src/client/features/daily/components/Lessons/UpdateDateChip.tsx @@ -88,7 +88,7 @@ export default function UpdateDateChip({ lessons }: Props) { ))} </UnorderedList> <Typography variant='body2' color='text.secondary'> - ※「曜日時限」「臨時変更」の更新日時 + ※「曜日時限」の更新日時 </Typography> </DialogContent> </Dialog> diff --git a/src/pages/about.tsx b/src/pages/about.tsx @@ -25,7 +25,7 @@ const AboutPage: NextPage = () => { <p> このアプリでは、 - 時間割変更が反映されたクラスの時間割を簡単に確認することができます。詳しくは + 時間割変更(曜日変更)が反映されたクラスの時間割を簡単に確認することができます。詳しくは <Link href={{ pathname: '/how-to-use' }}>使い方</Link> をご覧ください。 </p> diff --git a/src/pages/how-to-use.tsx b/src/pages/how-to-use.tsx @@ -32,7 +32,7 @@ const HouToUsePage: NextPage = () => { <Layout title='使い方'> <Box px={2} mb='50vh' height='fit-content'> <p> - IT部制作「岸高時間割アプリ」は、時間割変更が反映されたクラスごとの時間割表を表示するアプリです。初めてお使いの方は、まずは下記の「利用上の注意・免責事項」をお読みください。 + IT部制作「岸高時間割アプリ」は、時間割変更(曜日変更)が反映されたクラスごとの時間割表を表示するアプリです。初めてお使いの方は、まずは下記の「利用上の注意・免責事項」をお読みください。 </p> <WarningOfUse /> <p> @@ -73,19 +73,13 @@ const HouToUsePage: NextPage = () => { fontSize='inherit' style={{ verticalAlign: 'text-bottom' }} /> - を押すと授業ごとにメモを入力できます。小テストや提出物の予定など、ご自由にお使いください。メモの内容はブラウザアプリに保存されるため、別のブラウザで開いてもデータは引き継がれません。 + を押すと授業ごとにメモを入力できます。小テストや提出物、臨時変更の予定など、ご自由にお使いください。メモの内容はブラウザアプリに保存されるため、別のブラウザで開いてもデータは引き継がれません。 </p> <p> その科目名の元となっている曜日時限を{' '} <Chip component='span' label='金1' size='small' />{' '} のように表示しています。時間割変更がある場合は色が変わって{' '} <Chip component='span' label='金1' size='small' color='warning' />{' '} - <Chip - component='span' - label='臨時' - size='small' - color='warning' - />{' '} のように強調表示されます。 </p> <p>