{theme.description}
{theme.homepage && ( diff --git a/src/lib/db.ts b/src/lib/db.ts deleted file mode 100644 index 5551339..0000000 --- a/src/lib/db.ts +++ /dev/null @@ -1,31 +0,0 @@ -"use server"; - -import { createClient } from '@supabase/supabase-js' - -const supabaseUrl = 'https://dmthyedfjzcysoekmyns.supabase.co' -const supabaseKey = process.env.SUPABASE_KEY as string; -const supabase = createClient(supabaseUrl, supabaseKey); - -export async function addDownload(platform: string) { - // Check if the download count for the platform exists - const { data, error } = await supabase - .from('downloads') - .select('count') - .eq('platform', platform) - // If it doesn't exist, create it - console.log(data) - if (data?.length === 0 || data === null) { - const {data, error} = await supabase - .from('downloads') - .insert([{ platform, count: 1 }]); - if (error) { - console.error(error) - } - } else { - // If it exists, increment the count - await supabase - .from('downloads') - .update({ count: data![0].count + 1 }) - .eq('platform', platform) - } -} diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.ts index 537fe57..3b2bbbb 100644 --- a/src/lib/release-notes.ts +++ b/src/lib/release-notes.ts @@ -628,11 +628,10 @@ export const releaseNotes: ReleaseNote[] = [ }, { version: "1.0.0-a.30", - date: "24/08/2024", + date: "26/08/2024", extra: "This release is the thirtieth alpha release of the 1.0.0-alpha series.", features: [ "Added support for 24 more languages!", - "Better wordmark and icons for Private Browsing mode", "Update installed themes from the browser settings" ], fixes: [ @@ -655,11 +654,38 @@ export const releaseNotes: ReleaseNote[] = [ { description: "Can't rename created workspace", issue: 604 + }, + { + description: "JavaScript won't execute in the browser console", + issue: 913 + } + ] + }, + { + version: "1.0.0-a.31", + date: "27/08/2024", + extra: "This release is the thirty-first alpha release of the 1.0.0-alpha series.", + features: [ + "Better wordmark and icons for Private Browsing mode", + "Patched security issue with remote debugging", + "Fixed incorrect position of right-side tabs in compact mode", + "Optimized image loading on website", + "Refactored website to be static" + ], + fixes: [ + { + description: "Horizontal and vertical split don't work with shortcuts", + issue: 915 + }, + { + description: "Buttons dissapear if there are too many tabs", + issue: 934 } ] } ].reverse(); export function releaseNoteIsAlpha(note: ReleaseNote) { + "use client"; return note.version.includes("-a."); } diff --git a/src/lib/themes.ts b/src/lib/themes.ts index 746b123..ebf6f5c 100644 --- a/src/lib/themes.ts +++ b/src/lib/themes.ts @@ -14,7 +14,9 @@ export interface ZenTheme { } const THEME_API = "https://zen-browser.github.io/theme-store/themes.json"; -const CACHE_OPTIONS = { cache: "no-cache" } as RequestInit; +const CACHE_OPTIONS = { next: { + revalidate: 60, +} } as RequestInit; export async function getAllThemes() { // Fetch from the API