diff --git a/app/components/SettingsModal/SettingsModal.tsx b/app/components/SettingsModal/SettingsModal.tsx
index 39ae318..5c10bc1 100644
--- a/app/components/SettingsModal/SettingsModal.tsx
+++ b/app/components/SettingsModal/SettingsModal.tsx
@@ -1,5 +1,6 @@
"use client";
+import { CURRENT_APP_VERSION } from "#/api/config";
import { usePreferencesStore } from "#/store/preferences";
import {
Modal,
@@ -278,26 +279,15 @@ export const SettingsModal = (props: { isOpen: boolean; setIsOpen: any }) => {
props.setIsOpen(false)}
>
-
+
-
Телеграм канал
+
О приложении
- @anix_web
-
-
-
-
-
-
-
Разработчик
-
- Radiquum
+ v{CURRENT_APP_VERSION}
diff --git a/app/pages/About.tsx b/app/pages/About.tsx
index 0d423be..851641e 100644
--- a/app/pages/About.tsx
+++ b/app/pages/About.tsx
@@ -1,4 +1,4 @@
-// "use client";
+"use server";
import { Card } from "flowbite-react";
import Image from "next/image";
@@ -9,37 +9,42 @@ import { CURRENT_APP_VERSION } from "#/api/config";
import Styles from "../components/ChangelogModal/ChangelogModal.module.css";
import Markdown from "markdown-to-jsx";
+import {
+ Accordion,
+ AccordionContent,
+ AccordionPanel,
+ AccordionTitle,
+} from "flowbite-react";
+import { version } from "node:os";
+import Link from "next/link";
+
export const AboutPage = () => {
const directoryPath = path.join(process.cwd(), "public/changelog");
const files = fs.readdirSync(directoryPath);
- const changelogs = [];
+ const current = {
+ version: CURRENT_APP_VERSION,
+ changelog: `#${CURRENT_APP_VERSION}\r\nНет списка изменений`,
+ };
+ const previous = [];
+
+ if (files.includes(`${CURRENT_APP_VERSION}.md`)) {
+ const changelog = fs.readFileSync(
+ path.join(directoryPath, `${CURRENT_APP_VERSION}.md`),
+ "utf8"
+ );
+ current.changelog = changelog;
+ }
files.forEach((file) => {
if (file != `${CURRENT_APP_VERSION}.md`) {
const changelog = fs.readFileSync(path.join(directoryPath, file), "utf8");
- changelogs.push({
+ previous.push({
version: file.replace(".md", ""),
changelog: changelog,
});
}
});
- if (!files.includes(`${CURRENT_APP_VERSION}.md`)) {
- changelogs.push({
- version: CURRENT_APP_VERSION,
- changelog: "Нет списка изменений",
- });
- } else {
- const changelog = fs.readFileSync(
- path.join(directoryPath, `${CURRENT_APP_VERSION}.md`),
- "utf8"
- );
- changelogs.push({
- version: CURRENT_APP_VERSION,
- changelog: changelog,
- });
- }
-
return (
@@ -65,54 +70,66 @@ export const AboutPage = () => {
-