Skip to content

Commit

Permalink
Caching every quiz to work offline.
Browse files Browse the repository at this point in the history
  • Loading branch information
malikpiara committed Jan 24, 2025
1 parent 2419499 commit 89e34a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/progress/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const logicSections = [
{
title: 'Deontic',
icon: Book,
progress: 0,
progress: 30,
items: [
{ label: 'L. Translations', href: '#' },
{ label: 'M. Proofs', href: '#' },
Expand All @@ -64,7 +64,7 @@ const logicSections = [
{
title: 'Belief',
icon: Brain,
progress: 0,
progress: 30,
items: [
{ label: 'N. Translations', href: '#' },
{ label: 'O. Proofs', href: '#' },
Expand Down
17 changes: 16 additions & 1 deletion public/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,24 @@ const urlsToCache = [
// Add other static assets like
'/globals.css',
// Add any other pages/routes you want to cache
'/syllogistic/translations/quiz',
'syllogistic/translations/basic/quiz',
'syllogistic/translations/hard/quiz',
'syllogistic',

'propositional/translations/quiz',
'propositional/translations/hard/quiz',
'modal/translations/basic/quiz',
'modal/translations/quantified/quiz',

'Deontic/translations/Imperative/quiz',
'Deontic/translations/Deontic/quiz',
'belief/translations/basic/quiz',
'belief/translations/willing/quiz',
'belief/translations/rationality/quiz',

'informal/definitions/quiz',
'propositional/translations/quiz',
'keyboard'
];

self.addEventListener('install', (event) => {
Expand Down

1 comment on commit 89e34a7

@vercel
Copy link

@vercel vercel bot commented on 89e34a7 Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.