From d78fc4ec7c902313003d65eb48e537966c463729 Mon Sep 17 00:00:00 2001 From: aashirwadRunjan Date: Tue, 24 Sep 2024 17:05:54 +0530 Subject: [PATCH 01/16] improved the FAQ section --- src/components/features.tsx | 184 +++++++++++++++++++++--------------- 1 file changed, 108 insertions(+), 76 deletions(-) diff --git a/src/components/features.tsx b/src/components/features.tsx index 5e2538d..9971a65 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -85,7 +85,7 @@ function Question() { } export default function Features() { - const [feature, setFeature] = useState("item-1"); + const [feature, setFeature] = useState(""); return (
@@ -395,47 +395,76 @@ export default function Features() {
+ + {/* ------------------------------------------------------------------------- */} +
-
-

- Frequently Asked Questions{" "} - -

- - - Is it Firefox based? - - Yes, Zen Browser is focused on being always at the latest - version of Firefox, ensuring that you have the latest security - updates and features. - - - - Does it track me? - - No! Zen Browser is built with privacy in mind. - We don't track you, we don't collect your data, and we don't - sell your data to third parties. - - - - How secure is Zen Browser? - - Zen Browser is built on top of Firefox, which is known for its - security features. We also have additional security features - like https only built into Zen Browser to help keep you safe - online. - - - +
+

+ Frequently Asked Questions{" "} + +

+ setFeature(value === feature ? "" : value)} + className="mt-8" + > + + Is it Firefox based? + + Yes, Zen Browser is focused on being always at the latest version of Firefox, ensuring that you have the latest security updates and features. + + + + Does it track me? + + No! Zen Browser is built with privacy in mind. We don't track you, we don't collect your data, and we don't sell your data to third parties. + + + + How secure is Zen Browser? + + Zen Browser is built on top of Firefox, which is known for its security features. We also have additional security features like HTTPS only built into Zen Browser to help keep you safe online. + + +
-
+ +
+ {feature === "" && ( +
+
+
+ + + + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + )} + + {/* Show individual image when respective feature is selected */} - {feature == "item-1" && ( + {feature === "item-1" && ( )} - {feature == "item-2" && ( + + {feature === "item-2" && ( )} - {feature == "item-3" && ( + + {feature === "item-3" && ( )}
+

From 3434553f35be5abc89ed5e51e415691396948a80 Mon Sep 17 00:00:00 2001 From: aashirwadRunjan Date: Tue, 24 Sep 2024 17:28:47 +0530 Subject: [PATCH 02/16] removed comments --- src/components/features.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/features.tsx b/src/components/features.tsx index 9971a65..3c728db 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -396,8 +396,6 @@ export default function Features() {

- {/* ------------------------------------------------------------------------- */} -

@@ -464,7 +462,6 @@ export default function Features() { )} - {/* Show individual image when respective feature is selected */} Date: Tue, 24 Sep 2024 23:30:45 +0200 Subject: [PATCH 03/16] a.5 release notes --- src/lib/release-notes.ts | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.ts index a152a6c..f1ec49e 100644 --- a/src/lib/release-notes.ts +++ b/src/lib/release-notes.ts @@ -994,7 +994,7 @@ export const releaseNotes: ReleaseNote[] = [ fixes: [ { description: "The New Tab button is not visible", - isse: 1640, + issue: 1640, }, { description: "The Unified Extensions button is not visible", @@ -1009,15 +1009,34 @@ export const releaseNotes: ReleaseNote[] = [ }, { description: "Fixed an issue with reordering tabs", - }, - { - description: "Fixed an issue with ⌘ keyboard shortcuts on macOS", - }, + } ], }, + { + version: "1.0.1-a.5", + date: "24/09/2024", + image: false, + workflowId: 11020784612, + extra: "This update is a small patch to fix some issues that weren't addressed in the previous release!", + features: [ + "Moved application menu button to the right", + "Added new shortcuts", + "Collapsed tab sidebar is now smaller" + ], + fixes: [ + { + description: "Fixed issue with hovering over window control buttons (macOS)", + }, + { + description: "(Hopefully) resolved all issues with keyboard shortcuts", + issue: 1629 + }, + + ], + } ].reverse(); export function releaseNoteIsAlpha(note: ReleaseNote) { "use client"; return note.version.includes("-a."); -} +} \ No newline at end of file From 18682fe1f1cf498b68f9d5fbe3320a29dee2667d Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:28:36 +0100 Subject: [PATCH 04/16] added umami --- public/uma.js | 1 + src/app/layout.tsx | 16 +++++----------- 2 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 public/uma.js diff --git a/public/uma.js b/public/uma.js new file mode 100644 index 0000000..68b2b83 --- /dev/null +++ b/public/uma.js @@ -0,0 +1 @@ +!function(){"use strict";(t=>{const{screen:{width:e,height:a},navigator:{language:r},location:n,localStorage:i,document:c,history:o}=t,{hostname:s,href:u}=n,{currentScript:l,referrer:d}=c;if(!l)return;const f="data-",m=l.getAttribute.bind(l),h=m(f+"website-id"),p=m(f+"host-url"),g=m(f+"tag"),y="false"!==m(f+"auto-track"),b="true"===m(f+"exclude-search"),v=m(f+"domains")||"",S=v.split(",").map((t=>t.trim())),w=`${(p||""||l.src.split("/").slice(0,-1).join("/")).replace(/\/$/,"")}/api/send`,N=`${e}x${a}`,T=/data-umami-event-([\w-_]+)/,A=f+"umami-event",x=300,O=t=>{if(t){try{const e=decodeURI(t);if(e!==t)return e}catch(e){return t}return encodeURI(t)}},U=t=>{try{const{pathname:e,search:a}=new URL(t);t=e+a}catch(t){}return b?t.split("?")[0]:t},j=()=>({website:h,hostname:s,screen:N,language:r,title:O(q),url:O(D),referrer:O(_),tag:g||void 0}),k=(t,e,a)=>{a&&(_=D,D=U(a.toString()),D!==_&&setTimeout(I,x))},E=()=>!h||i&&i.getItem("umami.disabled")||v&&!S.includes(s),L=async(t,e="event")=>{if(E())return;const a={"Content-Type":"application/json"};void 0!==R&&(a["x-umami-cache"]=R);try{const r=await fetch(w,{method:"POST",body:JSON.stringify({type:e,payload:t}),headers:a}),n=await r.text();return R=n}catch(t){}},$=()=>{B||(I(),(()=>{const t=(t,e,a)=>{const r=t[e];return(...e)=>(a.apply(null,e),r.apply(t,e))};o.pushState=t(o,"pushState",k),o.replaceState=t(o,"replaceState",k)})(),(()=>{const t=new MutationObserver((([t])=>{q=t&&t.target?t.target.text:void 0})),e=c.querySelector("head > title");e&&t.observe(e,{subtree:!0,characterData:!0,childList:!0})})(),c.addEventListener("click",(async t=>{const e=t=>["BUTTON","A"].includes(t),a=async t=>{const e=t.getAttribute.bind(t),a=e(A);if(a){const r={};return t.getAttributeNames().forEach((t=>{const a=t.match(T);a&&(r[a[1]]=e(t))})),I(a,r)}},r=t.target,i=e(r.tagName)?r:((t,a)=>{let r=t;for(let t=0;t{o||(n.href=e)}))}else if("BUTTON"===i.tagName)return a(i)}}),!0),B=!0)},I=(t,e)=>L("string"==typeof t?{...j(),name:t,data:"object"==typeof e?e:void 0}:"object"==typeof t?t:"function"==typeof t?t(j()):j()),K=t=>L({...j(),data:t},"identify");t.umami||(t.umami={track:I,identify:K});let R,B,D=U(u),_=d!==s?d:"",q=c.title;y&&!E()&&("complete"===c.readyState?$():c.addEventListener("readystatechange",$,!0))})(window)}(); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 31de953..54d82f8 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -24,17 +24,11 @@ export default async function RootLayout({ - - + {/* analitics */} + + + {/* analitics end */} + From 5914d0edc4ac62a5d3c93ab01521c6156abd3f5d Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:56:01 +0100 Subject: [PATCH 05/16] Update layout.tsx --- src/app/layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 54d82f8..74df3b6 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -24,10 +24,10 @@ export default async function RootLayout({ - {/* analitics */} + /* Analitics */ - {/* analitics end */} + /* End */ From 2144ed7a6c2792b1b69829444ffb3def0482348d Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:07:52 +0100 Subject: [PATCH 06/16] Update layout.tsx --- src/app/layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 74df3b6..cd543ed 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -24,10 +24,10 @@ export default async function RootLayout({ - /* Analitics */ + {/* Analitics */} - /* End */ + {/* End */} From 994d7ab2b209f3a91a6b04a32ae1c0df323606eb Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:30:34 +0100 Subject: [PATCH 07/16] umami updated --- src/components/features.tsx | 2 ++ src/components/footer.tsx | 4 ++-- src/components/navigation.tsx | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/features.tsx b/src/components/features.tsx index 3c728db..ac7b95f 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -566,6 +566,7 @@ export default function Features() {

diff --git a/src/components/navigation.tsx b/src/components/navigation.tsx index c81435d..5efc5db 100644 --- a/src/components/navigation.tsx +++ b/src/components/navigation.tsx @@ -157,6 +157,7 @@ const ListItem = React.forwardRef<
  • Date: Thu, 26 Sep 2024 00:39:56 +0300 Subject: [PATCH 08/16] feat: changed buttons to links on home page --- src/components/features.tsx | 311 +++++++++++++++++------------------- 1 file changed, 144 insertions(+), 167 deletions(-) diff --git a/src/components/features.tsx b/src/components/features.tsx index ac7b95f..f7a8321 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -102,12 +102,9 @@ export default function Features() { transforming your browser into a personalized digital space.

    - + + +

  • @@ -122,12 +119,9 @@ export default function Features() { performance improvements.

    - + + +
    @@ -146,14 +140,9 @@ export default function Features() { browser.

    - + + +
    @@ -247,12 +236,9 @@ export default function Features() { multitasking.

    - + + +
    @@ -307,24 +293,18 @@ export default function Features() { secure, giving you peace of mind as you explore the web.

    - - + + + + + +
    @@ -386,80 +366,85 @@ export default function Features() { focus on your work.

    - + + +
    -
    -

    - Frequently Asked Questions{" "} - -

    - setFeature(value === feature ? "" : value)} - className="mt-8" - > - - Is it Firefox based? - - Yes, Zen Browser is focused on being always at the latest version of Firefox, ensuring that you have the latest security updates and features. - - - - Does it track me? - - No! Zen Browser is built with privacy in mind. We don't track you, we don't collect your data, and we don't sell your data to third parties. - - - - How secure is Zen Browser? - - Zen Browser is built on top of Firefox, which is known for its security features. We also have additional security features like HTTPS only built into Zen Browser to help keep you safe online. - - - +
    +

    + Frequently Asked Questions{" "} + +

    + + setFeature(value === feature ? "" : value) + } + className="mt-8" + > + + Is it Firefox based? + + Yes, Zen Browser is focused on being always at the latest + version of Firefox, ensuring that you have the latest security + updates and features. + + + + Does it track me? + + No! Zen Browser is built with privacy in mind. + We don't track you, we don't collect your data, and we don't + sell your data to third parties. + + + + How secure is Zen Browser? + + Zen Browser is built on top of Firefox, which is known for its + security features. We also have additional security features + like HTTPS only built into Zen Browser to help keep you safe + online. + + +
    - -
    + +
    {feature === "" && ( -
    -
    -
    - - + - - - -
    -
    - - + - -
    -
    - - + - +
    +
    +
    + + + + + + +
    +
    + + + + +
    +
    + + + + +
    -
    - )}
    - {" "} - +{" "} - - - + {" "} + +{" "} + + +
    - See what version of Firefox Zen uses{" "} - + See what version of Firefox Zen uses{" "} +
    )} @@ -501,17 +486,17 @@ export default function Features() { )} @@ -520,17 +505,17 @@ export default function Features() { )} @@ -546,12 +531,9 @@ export default function Features() { Download Zen Browser now and experience the future of browsing.

    - + + +
    @@ -565,25 +547,20 @@ export default function Features() { cause.

    - - + + + + + +
    From 8f888762f50f36b0ccf8f1b891a5584dd64210a3 Mon Sep 17 00:00:00 2001 From: Zhenya Goroh Date: Thu, 26 Sep 2024 22:32:04 +0300 Subject: [PATCH 09/16] Disabled prefetch for links --- src/components/features.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/features.tsx b/src/components/features.tsx index f7a8321..54ac37f 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -102,7 +102,7 @@ export default function Features() { transforming your browser into a personalized digital space.

    - +
    @@ -119,7 +119,7 @@ export default function Features() { performance improvements.

    - +
    @@ -236,7 +236,7 @@ export default function Features() { multitasking.

    - +
    @@ -299,7 +299,7 @@ export default function Features() { - +
    @@ -531,7 +531,7 @@ export default function Features() { Download Zen Browser now and experience the future of browsing.

    - +
    From 9ccdd21a9cb93bf2ac3a31952c4bd7282a143bb3 Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Fri, 27 Sep 2024 21:11:01 +0100 Subject: [PATCH 10/16] themes -> mods --- src/components/create-theme.tsx | 2 +- src/components/features.tsx | 2 +- src/components/footer.tsx | 2 +- src/components/marketplace.tsx | 4 ++-- src/components/navigation.tsx | 4 ++-- src/components/themes-search.tsx | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/create-theme.tsx b/src/components/create-theme.tsx index 6cdb420..2d264fb 100644 --- a/src/components/create-theme.tsx +++ b/src/components/create-theme.tsx @@ -291,7 +291,7 @@ export default function CreateThemePage() {
    - Right now, we aren't taking more color themes for the browser, + Right now, we aren't taking more color Mods for the browser, until we find a way to make it more accessible for everyone. However, you can still create your own theme and share it with the community. diff --git a/src/components/features.tsx b/src/components/features.tsx index ac7b95f..a658ad6 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -98,7 +98,7 @@ export default function Features() {

    With Zen's Theme Store, you can customize your browsing experience to reflect your unique style and preferences. Choose from a wide - array of themes, colors, and layouts to make Zen truly your own, + array of Mods, colors, and layouts to make Zen truly your own, transforming your browser into a personalized digital space.

    diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 14a2fc8..ee3ce4a 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -40,7 +40,7 @@ export default function Footer() {

    Get Started

    • - Themes + Mods
    • Download diff --git a/src/components/marketplace.tsx b/src/components/marketplace.tsx index 5069958..074aba0 100644 --- a/src/components/marketplace.tsx +++ b/src/components/marketplace.tsx @@ -17,9 +17,9 @@ export default function MarketplacePage({ themes }: { themes: ZenTheme[] }) { className="h-fit min-w-52 text-xs text-muted-foreground lg:mb-0" offsetTop={120} > -

      Themes Store

      +

      Mods Store

      - Discover and install themes for Zen Browser. + Discover and install Mods for Zen Browser.

      Start using Zen Browser today with just a few clicks. - - Customize your browser with a variety of themes! + + Customize your browser with a variety of Mods! Stay up to date with the latest changes. diff --git a/src/components/themes-search.tsx b/src/components/themes-search.tsx index 9c0a9ba..7724d06 100644 --- a/src/components/themes-search.tsx +++ b/src/components/themes-search.tsx @@ -23,7 +23,7 @@ export default function ThemesSearch({ type="text" value={input} onChange={(e) => setInput(e.target.value)} - placeholder="Search themes" + placeholder="Search Mods" className="w-full border-none bg-transparent text-black focus:border-none focus:outline-none focus:ring-0 dark:text-white" /> {/* From 1726552a740e57916a5e5125416d00eaeaad7dce Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Fri, 27 Sep 2024 22:17:01 +0100 Subject: [PATCH 11/16] umami fix --- src/components/navigation.tsx | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/components/navigation.tsx b/src/components/navigation.tsx index aeba3ae..c532e02 100644 --- a/src/components/navigation.tsx +++ b/src/components/navigation.tsx @@ -109,20 +109,20 @@ export function Navigation() {
        - Support us on Patreon and get exclusive rewards and keep the project alive. - - + Ko-fi is a way to support us with a one-time donation and help us keep the project alive. - +
      @@ -152,6 +152,30 @@ export function Navigation() { const ListItem = React.forwardRef< React.ElementRef<"a">, React.ComponentPropsWithoutRef<"a"> +>(({ className, title, children, ...props }, ref) => { + return ( +
    • + + +
      {title}
      +

      + {children} +

      +
      +
      +
    • + ); +}); +const ListItem2 = React.forwardRef< + React.ElementRef<"a">, + React.ComponentPropsWithoutRef<"a"> >(({ className, title, children, ...props }, ref) => { return (
    • @@ -175,3 +199,4 @@ const ListItem = React.forwardRef< ); }); ListItem.displayName = "ListItem"; +ListItem.displayName = "ListItem2"; From a87423f3d87d85d033d2705ef8294f6050bc4f14 Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Fri, 27 Sep 2024 22:19:49 +0100 Subject: [PATCH 12/16] Update footer.tsx --- src/components/footer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/footer.tsx b/src/components/footer.tsx index ee3ce4a..eded5fc 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -54,7 +54,7 @@ export default function Footer() {

      Get Help

    From 498fa521b4a887702f6b9810fb8deba56a2f464b Mon Sep 17 00:00:00 2001 From: NOCanoa <158103554+NOCanoa@users.noreply.github.com> Date: Fri, 27 Sep 2024 22:37:12 +0100 Subject: [PATCH 13/16] theme counter test --- src/components/footer.tsx | 2 +- src/components/theme-page.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/footer.tsx b/src/components/footer.tsx index eded5fc..f16ef3b 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -13,7 +13,7 @@ export default function Footer() {

    Zen Browser

    - +
    diff --git a/src/components/theme-page.tsx b/src/components/theme-page.tsx index 9a3c971..807b686 100644 --- a/src/components/theme-page.tsx +++ b/src/components/theme-page.tsx @@ -50,6 +50,7 @@ export default async function ThemePage({ themeID }: { themeID: string }) {