diff --git a/.eslintrc.json b/.eslintrc.json
index ab5cdb0..bffb357 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,7 +1,3 @@
{
- "extends": ["next/core-web-vitals", "prettier"],
- "rules": {
- "prettier/prettier": "error"
- },
- "plugins": ["prettier"]
+ "extends": "next/core-web-vitals"
}
diff --git a/.gitignore b/.gitignore
index f6c46f4..c927de2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,10 +52,3 @@ traefik/traefik
old/
#Trigger Vercel Prod Build
-
-# next-video
-videos/*
-!videos/*.json
-!videos/*.js
-!videos/*.ts
-public/_next-video
diff --git a/README.md b/README.md
index 954ed05..c332aae 100644
--- a/README.md
+++ b/README.md
@@ -6,10 +6,10 @@ AniX is an unofficial web client for the Android application Anixart. It allows
## Changelog [RU]
-- [3.3.0](./public/changelog/3.3.0.md)
- [3.2.3](./public/changelog/3.2.3.md)
- [3.2.2](./public/changelog/3.2.2.md)
- [3.2.1](./public/changelog/3.2.1.md)
+- [3.2.0](./public/changelog/3.2.0.md)
[other versions](./public/changelog)
diff --git a/app/api/config.ts b/app/api/config.ts
index e4aeda4..815ec0a 100644
--- a/app/api/config.ts
+++ b/app/api/config.ts
@@ -1,4 +1,4 @@
-export const CURRENT_APP_VERSION = "3.3.0";
+export const CURRENT_APP_VERSION = "3.2.3";
export const API_URL = "https://api.anixart.tv";
export const API_PREFIX = "/api/proxy";
@@ -10,7 +10,6 @@ export const ENDPOINTS = {
info: `${API_PREFIX}/release`,
episode: `${API_PREFIX}/episode`,
related: `${API_PREFIX}/related`,
- licensed: `${API_PREFIX}/release/streaming/platform`,
},
user: {
profile: `${API_PREFIX}/profile`,
diff --git a/app/api/utils.ts b/app/api/utils.ts
index 53b48ae..da7c6fa 100644
--- a/app/api/utils.ts
+++ b/app/api/utils.ts
@@ -144,6 +144,15 @@ export function unixToDate(
);
}
+export const getSeasonFromUnix = (unix: number) => {
+ const date = new Date(unix * 1000);
+ const month = date.getMonth();
+ if (month >= 3 && month <= 5) return "весна";
+ if (month >= 6 && month <= 8) return "лето";
+ if (month >= 9 && month <= 11) return "осень";
+ return "зима";
+};
+
export function sinceUnixDate(unixInSeconds: number) {
const unix = Math.floor(unixInSeconds * 1000);
const date = new Date(unix);
diff --git a/app/components/ReleaseInfo/ReleaseInfo.Basics.tsx b/app/components/ReleaseInfo/ReleaseInfo.Basics.tsx
index 50fdd5b..3fcac54 100644
--- a/app/components/ReleaseInfo/ReleaseInfo.Basics.tsx
+++ b/app/components/ReleaseInfo/ReleaseInfo.Basics.tsx
@@ -1,10 +1,8 @@
import { Card, Button } from "flowbite-react";
import { useState } from "react";
import Image from "next/image";
-import { ReleaseInfoStreaming } from "./ReleaseInfo.LicensedPlatforms";
export const ReleaseInfoBasics = (props: {
- release_id: number;
image: string;
title: { ru: string; original: string };
note: string | null;
@@ -54,7 +52,6 @@ export const ReleaseInfoBasics = (props: {
>
{isFullDescription ? "Скрыть" : "Показать полностью"}
-
Официальные источники:
-{item.name}
- - ); - })} -{name}
- -{name}
-- {episodes_count}{" "} - {numberDeclension(episodes_count, "серия", "серии", "серий")} -
-{name}
- {pinned && ( - - )} - -{name}
- {pinned && ( - - )} -- {episodes_count}{" "} - {numberDeclension(episodes_count, "серия", "серии", "серий")} -
-- {view_count}{" "} - {numberDeclension(view_count, "просмотр", "просмотра", "просмотров")} -
-Интерфейс
-Тема
+Тема
+
+ Показывать список изменений +
+Пропускать страницу выбора категорий на страницах Домашняя и Закладки
@@ -92,17 +111,10 @@ export const SettingsModal = (props: { isOpen: boolean; setIsOpen: any }) => { {preferenceStore.params.skipToCategory.enabled ? ( <>+
Категория домашней страницы
-+
Категория страницы закладок
-Приложение
-Показывать список изменений
-Отправка аналитики
+Отправка аналитики
Требуется перезагрузка для применения
@@ -209,40 +188,6 @@ export const SettingsModal = (props: { isOpen: boolean; setIsOpen: any }) => { checked={preferenceStore.flags.enableAnalytics} />Эксперименты
-Новый плеер
-- Поддерживаемые источники: Kodik, Sibnet, Libria -
-