Skip to content

Commit f22af99

Browse files
committed
1.5.3
1 parent d113cf0 commit f22af99

File tree

12 files changed

+98
-25
lines changed

12 files changed

+98
-25
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# Changes
22

3+
## 1.5.3
4+
5+
- Sort menu options in seasons list have been rearranged.
6+
- By default, anime is sorted by popularity in the seasons list section.
7+
- This default seasons sort can be changed within the settings menu under application.
8+
39
## 1.5.2
410

511
- Releasing/Not Yet Released anime list cards now have the next airing episode timer just like the seasonal anime cards.
612
- Next Airing Time is now shown as a sort option on the user's anime list.
7-
- An option has been added settings menu to hide/show the next airing time for anime media cards in the user's anime list. By default the option is set to show.
13+
- An option has been added to the settings menu to hide/show the next airing time for anime media cards in the user's anime list. By default the option is set to show.
814

915
## 1.5.1
1016

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Downloads can be found [here](https://github.com/ReStartQ/AniCour/releases). Che
3838
**_Whenever you get a warning message in the browser, you will have to allow for the download with an alternate option that may show up as something like "download suspicious file" (chrome) or "keep file" (edge)._**
3939

4040
1. Download the setup file from the latest releases. The setup file is labeled as AniCour-Setup-x.x.x.exe, where x.x.x denotes the version.
41-
<br> **Ex: AniCour-Setup-1.5.2.exe**
41+
<br> **Ex: AniCour-Setup-1.5.3.exe**
4242
2. Run the setup file, Windows will give a message like below, click on "More info" <p align="center"><a href="#"><img src="https://raw.githubusercontent.com/restartq/anicour/main/images/help/AniCourNoCodeSigningInitial.png" height="300"/></a></p>
4343
3. A new option will appear, "Run anyway". Click on it. <p align="center"><a href="#"><img src="https://raw.githubusercontent.com/restartq/anicour/main/images/help/AniCourNoCodeSigning.png" height="300"/></a></p>
4444
4. The installer menu will open up to allow you to install it on your computer. <p align="center"><a href="#"><img src="https://raw.githubusercontent.com/restartq/anicour/main/images/help/AniCourInstallationMenu2.png" height="240"/></a></p>

help/InstallHelp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can download the app [here](https://github.com/ReStartQ/AniCour/releases).
66

77
1. Download the setup file from the latest release and install it on your computer.
88
2. The setup file is labeled as AniCour-Setup-x.x.x.exe, where x denotes a number for the version.
9-
**Ex: AniCour-Setup-1.5.2.exe**
9+
**Ex: AniCour-Setup-1.5.3.exe**
1010
3. When you run the exe file, Windows will give a message like below, click on "More info" <p align="center"><a href="#"><img src="https://raw.githubusercontent.com/restartq/anicour/main/images/help/AniCourNoCodeSigningInitial.png" /></a></p>
1111
4. A new option will appear, "Run anyway". Click on it. <p align="center"><a href="#"><img src="https://raw.githubusercontent.com/restartq/anicour/main/images/help/AniCourNoCodeSigning.png" /></a></p>
1212
5. The installer menu will open up to allow you to install it on your computer. <p align="center"><a href="#"><img src="https://raw.githubusercontent.com/restartq/anicour/main/images/help/AniCourInstallationMenu2.png" /></a></p>

release/app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "anicour",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "Anime, Manga, and Light Novel Tracker Desktop Application for Windows. A fast and interactive way for AniList users to track and manage their anime/manga lists. ",
55
"license": "GPL-3.0",
66
"author": {

src/main/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ const schema: any = {
9393
type: 'string',
9494
default: 'Show',
9595
},
96+
defaultSeasonSort: {
97+
type: 'number',
98+
default: 2,
99+
},
96100
};
97101

98102
const store = new Store({ schema });

src/renderer/components/app/sidebar/SortMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,11 @@ export default function SortMenu() {
423423
<List component="div" disablePadding dense>
424424
{[
425425
'Next Airing Time',
426+
'Popularity',
427+
'Score',
426428
'Status',
427429
'Title',
428430
'Episodes',
429-
'Score',
430-
'Popularity',
431431
].map((text, index) => (
432432
<ListItem key={text} disablePadding dense>
433433
<ListItemButton

src/renderer/components/settings/SettingsMain.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import SelectDefaultView from './app/SelectDefaultView';
2525
import AboutSection from './about/AboutSection';
2626
import SelectSeasonChange from './app/SelectSeasonChange';
2727
import NextAiringEpisodeMainList from './app/NextAiringEpisodeMainList';
28+
import SelectDefaultSeasonsSort from './app/SelectDefaultSeasonsSort';
2829

2930
function SettingsMainTab({ view }: any) {
3031
if (view === 0) {
@@ -58,6 +59,7 @@ function SettingsMainTab({ view }: any) {
5859
<SelectLanguage />
5960
<SelectDefaultView />
6061
<SelectSeasonChange />
62+
<SelectDefaultSeasonsSort />
6163
<SelectDefaultLink />
6264
<DefaultStatus />
6365
<NextAiringEpisodeMainList />
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { Box, FormControl, InputLabel, NativeSelect } from '@mui/material';
2+
import { useAtom } from 'jotai';
3+
import React from 'react';
4+
import { defaultSeasonSortAtom } from 'renderer/store';
5+
6+
function SelectDefaultSeasonsSort() {
7+
const [defaultSeasonSort, setDefaultSeasonSort] = useAtom(
8+
defaultSeasonSortAtom,
9+
);
10+
11+
const handleChange = (event: any) => {
12+
setDefaultSeasonSort(Number(event.target.value));
13+
window.electron.store.set('defaultSeasonSort', Number(event.target.value));
14+
/*
15+
window.electron.ipcRenderer.sendMessage('updateMainFromSettings', [
16+
'defaultSeasonSort',
17+
event.target.value,
18+
]);
19+
*/
20+
};
21+
22+
return (
23+
<Box>
24+
<FormControl fullWidth>
25+
<InputLabel variant="standard">Default seasonal list sort</InputLabel>
26+
<NativeSelect
27+
id="defaultSeasonSort"
28+
value={defaultSeasonSort}
29+
onChange={handleChange}
30+
>
31+
<option value={1}>Next Airing Time</option>
32+
<option value={2}>Popularity</option>
33+
<option value={3}>Score</option>
34+
<option value={4}>Status</option>
35+
<option value={5}>Title</option>
36+
<option value={6}>Episodes</option>
37+
</NativeSelect>
38+
</FormControl>
39+
</Box>
40+
);
41+
}
42+
43+
export default SelectDefaultSeasonsSort;

src/renderer/context/SortLastContext.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import { useAtom } from 'jotai';
12
import {
23
createContext,
34
useState,
45
useContext,
56
useReducer,
67
ReactNode,
78
} from 'react';
9+
import { defaultSeasonSortAtom } from 'renderer/store';
810

911
type SortLastContextProviderProps = {
1012
children: ReactNode;
@@ -17,7 +19,7 @@ const defaultSortLast = {
1719
searchAnime: 0,
1820
searchManga: 0,
1921
searchLightNovels: 0,
20-
seasons: 0,
22+
seasons: 5,
2123
};
2224

2325
export const SortLastContext = createContext({});
@@ -71,10 +73,18 @@ export const SortLastContextReducer = (state: any, action: any) => {
7173
export const SortLastContextProvider = ({
7274
children,
7375
}: SortLastContextProviderProps) => {
74-
const [sortLast, dispatch] = useReducer(
75-
SortLastContextReducer,
76-
defaultSortLast,
76+
const [defaultSeasonSort, setDefaultSeasonSort] = useAtom(
77+
defaultSeasonSortAtom,
7778
);
79+
const [sortLast, dispatch] = useReducer(SortLastContextReducer, {
80+
anime: 0,
81+
manga: 0,
82+
lightNovels: 0,
83+
searchAnime: 0,
84+
searchManga: 0,
85+
searchLightNovels: 0,
86+
seasons: defaultSeasonSort,
87+
});
7888

7989
return (
8090
<SortLastContext.Provider value={{ sortLast, dispatch }}>

0 commit comments

Comments
 (0)