-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
310 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
must put - in place of spaces for files (auto update) | ||
must put - in place of spaces for files (auto update) | ||
also make a compressed zip file for the exe setup file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { Box } from '@mui/material'; | ||
import * as React from 'react'; | ||
import Table from '@mui/material/Table'; | ||
import TableBody from '@mui/material/TableBody'; | ||
import TableCell from '@mui/material/TableCell'; | ||
import TableContainer from '@mui/material/TableContainer'; | ||
import TableHead from '@mui/material/TableHead'; | ||
import TableRow from '@mui/material/TableRow'; | ||
import Paper from '@mui/material/Paper'; | ||
|
||
function createData(name: string, date: string) { | ||
return { name, date }; | ||
} | ||
|
||
const rows = [ | ||
createData('Oregairu', '1/21/2022 04:02:01'), | ||
createData('Hyouka', '1/21/2022 04:02:01'), | ||
createData('Pokemon', '1/21/2022 04:02:01'), | ||
createData('Digimon', '1/21/2022 04:02:01'), | ||
createData('Yugioh', '1/21/2022 04:02:01'), | ||
]; | ||
|
||
const HistoryTab = () => { | ||
return ( | ||
<Box | ||
sx={{ | ||
height: 'calc(100vh - 110px)', | ||
width: '100%', | ||
userSelect: 'none', | ||
// overflowY: 'auto', | ||
}} | ||
> | ||
<TableContainer component={Paper}> | ||
<Table | ||
sx={{ minWidth: 650, height: '100%' }} | ||
size="small" | ||
aria-label="a dense table" | ||
> | ||
<TableHead> | ||
<TableRow> | ||
<TableCell>Title</TableCell> | ||
<TableCell align="right">Modified Date</TableCell> | ||
</TableRow> | ||
</TableHead> | ||
<TableBody> | ||
{rows.map((row) => ( | ||
<TableRow | ||
key={row.name} | ||
sx={{ '&:last-child td, &:last-child th': { border: 0 } }} | ||
> | ||
<TableCell component="th" scope="row"> | ||
{row.name} | ||
</TableCell> | ||
<TableCell align="right">{row.date}</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</TableContainer> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default HistoryTab; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import Box from '@mui/material/Box'; | ||
import { useCategory } from 'renderer/context/CategoryContext'; | ||
import { useFilter } from 'renderer/context/FilterContext'; | ||
import { useSidebarButton } from 'renderer/context/SidebarContext'; | ||
import { useAniListToken } from 'renderer/context/services/AniListTokenContext'; | ||
import { useAniListUsername } from 'renderer/context/services/AniListUsernameContext'; | ||
import { useMainMediaList } from 'renderer/functions/MainMediaListFunctions'; | ||
import { MainTableView } from 'renderer/functions/view/DataTableFunctions'; | ||
import 'renderer/styles/MainArea.scss'; | ||
import { useSort } from 'renderer/context/SortContext'; | ||
import { useTitle } from 'renderer/context/TitleContext'; | ||
import ErrorAPI from '../etc/ErrorAPI'; | ||
import ErrorCredentials from '../etc/ErrorCredentials'; | ||
import LoadingMessage from '../etc/LoadingMessage'; | ||
import MainMediaTable from './tables/MainMediaTable'; | ||
import MainTabList from './MainTabList'; | ||
|
||
const MainTabLi = ({ props }: any) => { | ||
const myTitle: any = useTitle(); | ||
const myFilter: any = useFilter(); | ||
const myToken: any = useAniListToken(); | ||
const myUsername: any = useAniListUsername(); | ||
const mySidebar: any = useSidebarButton(); | ||
const myCategory: any = useCategory(); | ||
const mySort: any = useSort(); | ||
|
||
const { isLoading, isError, error, data, refetch }: any = useMainMediaList( | ||
myUsername.AniListUsername, | ||
myToken.AniListToken, | ||
); | ||
|
||
if (isLoading) { | ||
return <LoadingMessage />; | ||
} | ||
|
||
if (isError && error.response !== undefined) { | ||
if (error.response.status === 400) return <ErrorCredentials />; | ||
} | ||
|
||
if (isError && error.response !== undefined) { | ||
if (error.response.status !== 400) return <ErrorAPI />; | ||
} | ||
|
||
if (isError && error.response === undefined) { | ||
return <ErrorAPI />; | ||
} | ||
|
||
return <MainTabList />; | ||
}; | ||
|
||
export default MainTabLi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.