Merge pull request #192 from oev-chrisbennett/main

feat: Add format script
This commit is contained in:
mauro 🤙
2024-09-23 09:25:54 +02:00
committed by GitHub
4 changed files with 99 additions and 77 deletions

View File

@@ -9,6 +9,7 @@
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"format": "prettier --write .",
"lint": "next lint",
"pages:build": "npx @cloudflare/next-on-pages",
"preview": "npm run pages:build && wrangler pages dev",

View File

@@ -17,20 +17,22 @@ const TextTitle = styled.h1`
background-image: linear-gradient(90deg, #0077e7, #01d8d1);
filter: hue-rotate(0deg);
animation: ${hueShift} 10s infinite linear 1s;
padding-bottom: 8px;
padding-bottom: 8px;
`;
export default function CoolHeaderText() {
return (
<>
<div className="relative font-extrabold mt-5 mb-3 -translate-y-4 animate-fade-in text-balance bg-gradient-to-br from-black from-30% to-black/40 bg-clip-text py-6 text-5xl font-semibold leading-none tracking-tighter text-transparent opacity-0 [--animation-delay:200ms] dark:from-white dark:to-white/40 sm:text-6xl md:text-7xl lg:text-8xl">
<TextTitle>
Beautiful. Fast. Private.<br />Your Browser, Your Way.
</TextTitle>
</div>
<div className="text-white absolute animate-fade-in top-[-5px] right-[-20px] transform shadow !rotate-[15deg] rounded-full mt-12 pointer-events-none hidden md:block bg-blue-500 px-3 py-1 w-fit h-fit opacity-0 [--animation-delay:400ms]">
Alpha Version
</div>
</>
<>
<div className="relative mb-3 mt-5 -translate-y-4 animate-fade-in text-balance bg-gradient-to-br from-black from-30% to-black/40 bg-clip-text py-6 text-5xl font-extrabold font-semibold leading-none tracking-tighter text-transparent opacity-0 [--animation-delay:200ms] dark:from-white dark:to-white/40 sm:text-6xl md:text-7xl lg:text-8xl">
<TextTitle>
Beautiful. Fast. Private.
<br />
Your Browser, Your Way.
</TextTitle>
</div>
<div className="pointer-events-none absolute right-[-20px] top-[-5px] mt-12 hidden h-fit w-fit !rotate-[15deg] transform animate-fade-in rounded-full bg-blue-500 px-3 py-1 text-white opacity-0 shadow [--animation-delay:400ms] md:block">
Alpha Version
</div>
</>
);
}

View File

@@ -28,8 +28,10 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
month: parseInt(splitDate[1]) - 1,
day: parseInt(splitDate[0]),
}).format("MMMM Do, YYYY")}
<div className="flex items-center opacity-60 text-blue-500 mt-2">
<a href={`https://github.com/zen-browser/desktop/releases/tag/${data.version}`}>
<div className="mt-2 flex items-center text-blue-500 opacity-60">
<a
href={`https://github.com/zen-browser/desktop/releases/tag/${data.version}`}
>
GitHub Release
</a>
{data.workflowId && (
@@ -45,13 +47,22 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
</div>
{data.inProgress && (
<div className="mt-5 flex">
<ExclamationTriangleIcon className="size-6 mr-3 text-yellow-500 opacity-60" />
<ExclamationTriangleIcon className="mr-3 size-6 text-yellow-500 opacity-60" />
<div>
<p>This release is still in progress, stay tuned!</p>
<p className="mt-2">Consider joining our <a href="https://discord.gg/zen-browser" className="text-blue-500">Discord</a> for update pings!</p >
<p className="mt-2">
Consider joining our{" "}
<a
href="https://discord.gg/zen-browser"
className="text-blue-500"
>
Discord
</a>{" "}
for update pings!
</p>
</div>
</div>
)}
)}
</StickyBox>
<div className="px-5 md:px-0 md:px-10 md:pr-32">
<h1 className="text-3xl font-bold">
@@ -109,7 +120,7 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
<AccordionItem value="fixes" title="Fixes">
<AccordionTrigger className="border-b">
<div className="flex items-center">
<CheckCheckIcon className="mr-2 mt-1 size-5 opacity-50 text-green-500" />
<CheckCheckIcon className="mr-2 mt-1 size-5 text-green-500 opacity-50" />
<span className="ml-2">Fixes</span>
</div>
</AccordionTrigger>
@@ -139,7 +150,7 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
<AccordionItem value="theme-changes" title="Theme Changes">
<AccordionTrigger className="border-b">
<div className="flex items-center">
<BrushIcon className="mr-2 mt-1 size-5 opacity-50 text-blue-500" />
<BrushIcon className="mr-2 mt-1 size-5 text-blue-500 opacity-50" />
<span className="ml-2">Theme Changes</span>
</div>
</AccordionTrigger>

View File

@@ -1,4 +1,3 @@
interface Fix {
description: string;
issue?: number;
@@ -802,53 +801,55 @@ export const releaseNotes: ReleaseNote[] = [
],
},
{
version: "1.0.1-a",
date: "15/09/2024",
workflowId: 10911842349,
image: true,
extra: "This version marks a more stable alpha release.\n\nThis release brings a few improvements to the UI and some important quality of life features for workspaces, such as separate pinned tabs, custom icons and assigned tab conainers!\n\nWe've also added a new AppImage installer for Linux users and started signing our Windows builds with a verified digital signature, making Windows Defender and other antivirus software less annoying!\n\nAlso, we've made the browser's layout more stable for themes, improved overal UX and added an a better theme support (Now called Zen Mods)!",
features: [
"Added verified digital signnature to Windows builds",
"Added Zen to Homebrew Cask repository",
"Enabled private search suggestions by default",
"Improved Theme Store settings page",
"Added Night and Colorful themes",
"Restore browsing session on startup by default",
"Added preference for custom workspace icons",
"Redesigned url bar and workspaces",
"Added preference for separate pinned tabs per workspace",
"Fixed padding on right side tabs and expand-on-hover",
"Repositioned List All Tabs button",
"Allow binding tab containers to workspaces",
"Added new AppImage installer",
"Improved bookmarks sidebar interface",
"Added compatibility for legacy Zen Theme preferences"
],
fixes: [
{
description: "Window borders show in full-screen mode",
issue: 1404
},
{
description: "Collapsed sidebar widens on warning",
issue: 1325
},
{
description: "Blurry font when using 2x pixel density (macOS)",
issue: 440
},
{
description: "Firefox Add-ons won't update",
issue: 1173
}
]
version: "1.0.1-a",
date: "15/09/2024",
workflowId: 10911842349,
image: true,
extra:
"This version marks a more stable alpha release.\n\nThis release brings a few improvements to the UI and some important quality of life features for workspaces, such as separate pinned tabs, custom icons and assigned tab conainers!\n\nWe've also added a new AppImage installer for Linux users and started signing our Windows builds with a verified digital signature, making Windows Defender and other antivirus software less annoying!\n\nAlso, we've made the browser's layout more stable for themes, improved overal UX and added an a better theme support (Now called Zen Mods)!",
features: [
"Added verified digital signnature to Windows builds",
"Added Zen to Homebrew Cask repository",
"Enabled private search suggestions by default",
"Improved Theme Store settings page",
"Added Night and Colorful themes",
"Restore browsing session on startup by default",
"Added preference for custom workspace icons",
"Redesigned url bar and workspaces",
"Added preference for separate pinned tabs per workspace",
"Fixed padding on right side tabs and expand-on-hover",
"Repositioned List All Tabs button",
"Allow binding tab containers to workspaces",
"Added new AppImage installer",
"Improved bookmarks sidebar interface",
"Added compatibility for legacy Zen Theme preferences",
],
fixes: [
{
description: "Window borders show in full-screen mode",
issue: 1404,
},
{
description: "Collapsed sidebar widens on warning",
issue: 1325,
},
{
description: "Blurry font when using 2x pixel density (macOS)",
issue: 440,
},
{
description: "Firefox Add-ons won't update",
issue: 1173,
},
],
},
{
version: "1.0.1-a.2",
date: "17/09/2024",
image: true,
workflowId: 10966772761,
extra: "This release could be considered a hotfix release for the previous version.\n\nSince we've started doing pretty big UI changes in order to gain more stability, it's normal that we may encounter some bugs... But not that many!\n\nThis release fixes some of the most important bugs that were introduced in the previous version and adds some small improvements.",
extra:
"This release could be considered a hotfix release for the previous version.\n\nSince we've started doing pretty big UI changes in order to gain more stability, it's normal that we may encounter some bugs... But not that many!\n\nThis release fixes some of the most important bugs that were introduced in the previous version and adds some small improvements.",
features: [
"Added entering animation when creating a new tab",
"Added support for other tab icons such as audio and microphone",
@@ -892,7 +893,8 @@ export const releaseNotes: ReleaseNote[] = [
description: "Fixed the tab bar not being visible in fullscreen",
},
{
description: "Sidebar wont interfere with the toolbar anymore in compact mode",
description:
"Sidebar wont interfere with the toolbar anymore in compact mode",
},
{
description: "Fixed release notes pointing to a 404 page",
@@ -904,13 +906,14 @@ export const releaseNotes: ReleaseNote[] = [
date: "21/09/2024",
image: true,
workflowId: 10984599633,
extra: "We are thrilled to announce that this release marks a significant leap forward for Zen Browser.\n\nSince the last version (1.0.1-a.2), we've implemented numerous improvements and addressed key bug fixes, all aimed at enhancing your browsing experience.\n\nWe've made significant changes to the UI, including a new compact mode design, improved tab management, and a more intuitive user interface. We've also added new features, such as the ability to customize the tab bar and a new compact mode design.\n\nWe hope you enjoy this release and look forward to your feedback!",
extra:
"We are thrilled to announce that this release marks a significant leap forward for Zen Browser.\n\nSince the last version (1.0.1-a.2), we've implemented numerous improvements and addressed key bug fixes, all aimed at enhancing your browsing experience.\n\nWe've made significant changes to the UI, including a new compact mode design, improved tab management, and a more intuitive user interface. We've also added new features, such as the ability to customize the tab bar and a new compact mode design.\n\nWe hope you enjoy this release and look forward to your feedback!",
features: [
"Compact mode now allows to only hide the toolbar",
"Added support for customizing the tab bar",
"Added a new layout that saves vertical space",
"Added support for workspaces icon strip (Quick workspace switching)",
"Increased the font size on tabs",
"Increased the font size on tabs",
"Added support for customizing all the buttons that where before at the bottom left",
"Added support for context menu clicks on the tab bar (compact mode and on hover)",
"Added support for a new compact mode design",
@@ -927,43 +930,48 @@ export const releaseNotes: ReleaseNote[] = [
],
fixes: [
{
description: "Can't split tab, if one of the tabs has been previously split",
isse: 1592
description:
"Can't split tab, if one of the tabs has been previously split",
isse: 1592,
},
{
description: "Exit button padding is not correct",
issue: 1583
issue: 1583,
},
{
description: "Font size is too small on tabs",
issue: 1580
issue: 1580,
},
{
description: "Misaligned Padding across window",
isue: 1542
isue: 1542,
},
{
description: "Fixed exiting from split view with more than 6 tabs",
issue: 1539
issue: 1539,
},
{
description: "Fixed the sidebar ignoring the mobile user agent checkbox on creation",
isue: 1536
description:
"Fixed the sidebar ignoring the mobile user agent checkbox on creation",
isue: 1536,
},
{
description: "\"Hide the default container indicator in the tab bar\" doesn't work when opening container with shortcut or via link",
issue: 1472
description:
'"Hide the default container indicator in the tab bar" doesn\'t work when opening container with shortcut or via link',
issue: 1472,
},
{
description: "Left, Bottom, and Right borders visible when in full screen mode",
issue: 1513
description:
"Left, Bottom, and Right borders visible when in full screen mode",
issue: 1513,
},
{
description: "Fixed checkboxes on context menu not being aligned",
},
{
description: "Fixed Mods not being applied to every single window opened",
}
description:
"Fixed Mods not being applied to every single window opened",
},
],
breakingChanges: [
"Removed Galaxy and Dream themes",