From 8836939e96bf2ac405e558ae7b018c4b7a54538f Mon Sep 17 00:00:00 2001
From: Robonau <30987265+Robonau@users.noreply.github>
Date: Tue, 25 Jun 2024 19:09:12 +0100
Subject: [PATCH] History
---
.vscode/settings.json | 3 +-
src/lib/AppNavData.ts | 23 ++
src/lib/components/MobileAppNavigation.svelte | 37 +-
src/lib/gql/Queries.ts | 29 ++
src/lib/util.ts | 28 ++
src/routes/(app)/history/+page.svelte | 178 +++++++++
.../[MangaID]/(manga)/chaptersSide.svelte | 350 ++++++++++--------
src/routes/(app)/more/+page.svelte | 26 ++
src/routes/(app)/updates/+page.svelte | 5 +-
src/routes/+layout.ts | 4 +-
10 files changed, 509 insertions(+), 174 deletions(-)
create mode 100644 src/routes/(app)/history/+page.svelte
create mode 100644 src/routes/(app)/more/+page.svelte
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 2f98304c..d81e0312 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -137,5 +137,6 @@
"codeium.enableInComments": false,
"codeium.enableSearch": true,
"tailwind-fold.unfoldIfLineSelected": true,
- "tailwind-fold.foldLengthThreshold": 5
+ "tailwind-fold.foldLengthThreshold": 80,
+ "tailwind-fold.unfoldedTextOpacity": 1
}
diff --git a/src/lib/AppNavData.ts b/src/lib/AppNavData.ts
index 9f1cbad8..499ac05d 100644
--- a/src/lib/AppNavData.ts
+++ b/src/lib/AppNavData.ts
@@ -29,6 +29,14 @@ export const AppNavData = [
return page.includes('/browse');
}
},
+ {
+ href: '/history',
+ title: 'History',
+ icon: 'mdi:history',
+ match: (page: string) => {
+ return page.includes('/history');
+ }
+ },
{
href: '/downloads',
title: 'Downloads',
@@ -46,3 +54,18 @@ export const AppNavData = [
}
}
];
+
+export const SmallAppNavData = [
+ AppNavData[0],
+ AppNavData[1],
+ AppNavData[2],
+ AppNavData[3],
+ {
+ href: '/more',
+ title: 'More',
+ icon: 'mdi:dots-horizontal',
+ match: (page: string) => {
+ return page.includes('/more');
+ }
+ }
+];
diff --git a/src/lib/components/MobileAppNavigation.svelte b/src/lib/components/MobileAppNavigation.svelte
index 44f62632..d6596808 100644
--- a/src/lib/components/MobileAppNavigation.svelte
+++ b/src/lib/components/MobileAppNavigation.svelte
@@ -10,7 +10,9 @@
import { page } from '$app/stores';
import { TabGroup, TabAnchor } from '@skeletonlabs/skeleton';
import IconWrapper from './IconWrapper.svelte';
- import { AppNavData } from '../AppNavData';
+ import { AppNavData, SmallAppNavData } from '../AppNavData';
+ import { screens } from '$lib/screens';
+ import MediaQuery from './MediaQuery.svelte';