chore: Ran quality checks and license checks, b=no-bug, c=winsign, workspaces

This commit is contained in:
Mr. M
2025-08-15 17:18:24 +02:00
parent 4304e19cbb
commit aa23cd5c64
23 changed files with 80 additions and 58 deletions

View File

@@ -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
[*]

4
.gitattributes vendored
View File

@@ -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

4
.gitignore vendored
View File

@@ -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-*/

View File

@@ -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

View File

@@ -1 +1 @@
* @mauro-balades
* @mr-cheffy

View File

@@ -1,3 +1,9 @@
<!--
- 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/.
-->
# Contributor Covenant Code of Conduct
## Our Pledge

View File

@@ -1,3 +1,8 @@
<!--
- 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/.
-->
<!-- TODO: Get a job -->
<img src="./docs/assets/zen-dark.svg" width="100px" align="left">

View File

@@ -1,3 +1,9 @@
<!--
- 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/.
-->
# Security Policy
## Reporting a Vulnerability

View File

@@ -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

View File

@@ -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'];

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,3 +1,9 @@
<!--
- 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/.
-->
# Branch Structure
The repository is structured as follows:

View File

@@ -1,18 +0,0 @@
# Custom Keyboard Shortcuts
```json
{
"<shortcut-id>": {
"key": "<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.

View File

@@ -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.

View File

@@ -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';

8
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -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

View File

@@ -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