From aa23cd5c648f112e3e3e7c71b5474ee2f57fca1c Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Fri, 15 Aug 2025 17:18:24 +0200 Subject: [PATCH] chore: Ran quality checks and license checks, b=no-bug, c=winsign, workspaces --- .editorconfig | 4 ++++ .gitattributes | 4 ++++ .gitignore | 4 ++++ .prettierignore | 4 ++++ CODEOWNERS | 2 +- CODE_OF_CONDUCT.md | 6 ++++++ README.md | 5 +++++ SECURITY.md | 6 ++++++ build/AppDir/AppRun | 4 ++++ build/ts/transform-ts.js | 4 ++++ build/winsign/bootstrap.ps1 | 4 ++++ build/winsign/firefox_update.ps1 | 3 +++ build/winsign/sign.ps1 | 4 ++++ crowdin.yml | 4 ++++ docs/changes.md | 15 --------------- docs/contribute.md | 6 ++++++ docs/key-shortcuts.md | 18 ------------------ docs/workspaces.md | 19 ------------------- eslint.config.mjs | 4 ++++ package-lock.json | 8 ++++---- package.json | 2 +- pyproject.toml | 4 ++++ requirements.txt | 4 ++++ 23 files changed, 80 insertions(+), 58 deletions(-) delete mode 100644 docs/changes.md delete mode 100644 docs/key-shortcuts.md delete mode 100644 docs/workspaces.md diff --git a/.editorconfig b/.editorconfig index 4a7ea3036..1d5bdb8ed 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + root = true [*] diff --git a/.gitattributes b/.gitattributes index 018acd5f1..42b01886c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + *.patch linguist-language=C++ *.d.ts linguist-language=TypeScript diff --git a/.gitignore b/.gitignore index cff7f7614..94024fbe7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + .dotbuild/ engine/ firefox-*/ diff --git a/.prettierignore b/.prettierignore index 1f91a65d2..72c32f89c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + engine/ **/*.html diff --git a/CODEOWNERS b/CODEOWNERS index 5f964be1d..7aedf5ce4 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @mauro-balades +* @mr-cheffy diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 964bd7b40..af42e7ba4 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,9 @@ + + # Contributor Covenant Code of Conduct ## Our Pledge diff --git a/README.md b/README.md index 505d3f316..363d130cb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ + diff --git a/SECURITY.md b/SECURITY.md index fd204c87d..2386b6d52 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1,9 @@ + + # Security Policy ## Reporting a Vulnerability diff --git a/build/AppDir/AppRun b/build/AppDir/AppRun index 105e0801a..24c215ac4 100644 --- a/build/AppDir/AppRun +++ b/build/AppDir/AppRun @@ -1,4 +1,8 @@ #!/bin/sh +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + CURRENTDIR="$(dirname "$(readlink -f "$0")")" export PATH="${CURRENTDIR}:${PATH}" export MOZ_LEGACY_PROFILES=1 # Prevent per installation profiles diff --git a/build/ts/transform-ts.js b/build/ts/transform-ts.js index 2b7553174..ba94763a3 100644 --- a/build/ts/transform-ts.js +++ b/build/ts/transform-ts.js @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + const fs = require('fs'); const MJS_FILES = ['src/zen/split-view/ZenViewSplitter.ts']; diff --git a/build/winsign/bootstrap.ps1 b/build/winsign/bootstrap.ps1 index 57b81c818..60ae8d8ea 100644 --- a/build/winsign/bootstrap.ps1 +++ b/build/winsign/bootstrap.ps1 @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + (New-Object System.Net.WebClient).DownloadFile("https://ftp.mozilla.org/pub/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe", "C:\MozillaBuildSetup-Latest.exe") C:\MozillaBuildSetup-Latest.exe /S | out-null diff --git a/build/winsign/firefox_update.ps1 b/build/winsign/firefox_update.ps1 index f796d68fc..3bcbffe49 100644 --- a/build/winsign/firefox_update.ps1 +++ b/build/winsign/firefox_update.ps1 @@ -1,3 +1,6 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. Remove-Item -Recurse -Force engine Remove-Item -Recurse -Force .surfer diff --git a/build/winsign/sign.ps1 b/build/winsign/sign.ps1 index c553a52b8..1e06067b6 100644 --- a/build/winsign/sign.ps1 +++ b/build/winsign/sign.ps1 @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + param( [string][Parameter(Mandatory=$true)]$SignIdentity, [string][Parameter(Mandatory=$true)]$GithubRunId diff --git a/crowdin.yml b/crowdin.yml index cf74b592c..c2ccb1c7d 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + base_path: locales files: - source: en-US/browser/browser/zen-general.ftl diff --git a/docs/changes.md b/docs/changes.md deleted file mode 100644 index 39d27ab15..000000000 --- a/docs/changes.md +++ /dev/null @@ -1,15 +0,0 @@ -## Changed things that should be tested each release - -- Workspaces -- Sidebar -- Split views -- Vertical tabs (expanded and not expanded) -- Tab groups -- Welcome Page -- Overall performance -- Overall stability -- Pinning tabs (Grid layout) -- Overall UX -- Themes Page -- Settings Page -- Keyboard shortcuts, check if there are any missing or not working diff --git a/docs/contribute.md b/docs/contribute.md index 7fa1a1a8a..059fc8a83 100644 --- a/docs/contribute.md +++ b/docs/contribute.md @@ -1,3 +1,9 @@ + + # Branch Structure The repository is structured as follows: diff --git a/docs/key-shortcuts.md b/docs/key-shortcuts.md deleted file mode 100644 index 23f31ac5c..000000000 --- a/docs/key-shortcuts.md +++ /dev/null @@ -1,18 +0,0 @@ -# Custom Keyboard Shortcuts - -```json -{ - "": { - "key": "", - "alt": false, - "shift": false, - "ctrl": false, - "meta": false, - "keycode": 0 - } -} -``` - -The `key` field is the key that will trigger the shortcut. The `alt`, `shift`, `ctrl`, and `meta` fields are booleans that indicate if the respective modifier key should be pressed when the shortcut is triggered. - -The `keycode` field is the keycode of the key that will trigger the shortcut. This field is optional and can be used to specify the keycode of the key that will trigger the shortcut. If the `keycode` field is specified, the `key` field will be ignored. diff --git a/docs/workspaces.md b/docs/workspaces.md deleted file mode 100644 index 68ae33af7..000000000 --- a/docs/workspaces.md +++ /dev/null @@ -1,19 +0,0 @@ -# Workspaces Layout - -```json -{ - "workspaces": [ - { - "uuid": "uuid1", - "name": "workspace1", - "icon": "icon1", - "default": true - }, - ... - ] -} -``` - -To save the tabs and identity them, they will contain a `zen-workspace-uuid` attribute with the workspace uuid. - -We will make use of Firefox's builtin session restore feature to save the tabs and windows after the user closes the browser. diff --git a/eslint.config.mjs b/eslint.config.mjs index 9e765da8b..6353523ce 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + import js from '@eslint/js'; import globals from 'globals'; import { defineConfig } from 'eslint/config'; diff --git a/package-lock.json b/package-lock.json index 3f6921580..07c0f00d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MPL-2.0", "dependencies": { - "@zen-browser/surfer": "^1.11.16" + "@zen-browser/surfer": "^1.11.20" }, "devDependencies": { "@babel/preset-typescript": "^7.27.0", @@ -1135,9 +1135,9 @@ "license": "MIT" }, "node_modules/@zen-browser/surfer": { - "version": "1.11.16", - "resolved": "https://registry.npmjs.org/@zen-browser/surfer/-/surfer-1.11.16.tgz", - "integrity": "sha512-F+2LkgFkhdH9+sGpQ/w27rmc96Xt6ZCKwBrHJQHnr19pLgReEt1YupKutDBuZ+OtyaORU0WT1DremLh+81aw5A==", + "version": "1.11.20", + "resolved": "https://registry.npmjs.org/@zen-browser/surfer/-/surfer-1.11.20.tgz", + "integrity": "sha512-Qmj0oxmg5CvZdLMHDSZChreG9EBFhQ/LG1fACYFPayQVASE37JKZkmLebBXW0O5WdNpzksHy3TB6sR/gHOEpzw==", "license": "MPL-2.0", "dependencies": { "@resvg/resvg-js": "^1.4.0", diff --git a/package.json b/package.json index 2bd528942..75bd2e1e1 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ }, "homepage": "https://github.com/zen-browser/desktop#readme", "dependencies": { - "@zen-browser/surfer": "^1.11.16" + "@zen-browser/surfer": "^1.11.20" }, "devDependencies": { "@babel/preset-typescript": "^7.27.0", diff --git a/pyproject.toml b/pyproject.toml index 297575f00..3f0c0bdce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + [tool.autopep8] max_line_length = 120 recursive = true diff --git a/requirements.txt b/requirements.txt index 9601d74fe..20fc10ae6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + autopep8==2.3.1 click==8.1.8 mypy-extensions==1.0.0