Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifest v3 migration #62

Merged
merged 68 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
248bebc
BDE-226 adding nix develop and direnv for development environment setup
nxmatic Jan 12, 2024
c43b535
BDE-226 initiated github CI workflow
nxmatic Jan 15, 2024
6402ee1
BDE-226 reviewed building, splitted app from generated files, importe…
nxmatic Jan 15, 2024
88a3560
BDE-226 v3 manifest refactor
nxmatic Mar 4, 2024
a2cabe6
BDE-226 disabled building and running tests
nxmatic Mar 11, 2024
b3ef47c
BDE-226 attach zip files to the build
nxmatic Mar 11, 2024
ce089ef
BDE-226 nuxeo server locator should'nt [de]activate tab while stating…
nxmatic Mar 11, 2024
34cb624
BDE-226 fixing-up document browsing (json tab included)
nxmatic Mar 11, 2024
d3a7013
WIP fixing up web-designed preview pipeline
nxmatic Mar 11, 2024
c46dc85
BDE-226 fix CI artifact upload
nxmatic Mar 12, 2024
b1eb8d2
BDE-226 fix typo on action operation in service connector
nxmatic Mar 12, 2024
1171f13
BDE-226 move on redirection from webRequest to declarativeNetRequest
nxmatic Mar 12, 2024
f82cb6c
BDE-226 log null evaluation of tab URLs
nxmatic Mar 12, 2024
79b8c42
BDE-226 bind dynamically methods in constructors
nxmatic Mar 14, 2024
643f3fa
BDE-226 fixing up designer live preview redirections
nxmatic Mar 14, 2024
b7f2764
BDE-226 vite/terser update
nxmatic Mar 14, 2024
2bc5745
BDE-226 reviewed tab activation
nxmatic Mar 15, 2024
3bc9fde
BDE-226 open tab when connect unauthenticated on studio project
nxmatic Mar 15, 2024
60d08a7
BDE-226 inject basic auth header for redirection using https
nxmatic Mar 17, 2024
233da64
BDE-226 accept non-redirected pages from designer-livepreview (to be …
nxmatic Mar 17, 2024
55dbbd7
BDE-226 fixing up the basic authentication rule workaround in declara…
nxmatic Mar 17, 2024
6dede54
BDE-226 make use of session rules in declarative net engine
nxmatic Mar 17, 2024
cc9b260
BDE-226 cleaning service worker bootstrap
nxmatic Mar 17, 2024
0e88ce8
BDE-226 removed unused information retrieves from groovy studio packa…
nxmatic Mar 17, 2024
6e4faf7
BDE-226 fixing up json highlighting css loading
nxmatic Mar 17, 2024
256de6a
BDE-226 removed duplicate code from repository indexer
nxmatic Mar 17, 2024
9c1ba88
BDE-226 fixing up toggle classes in elastic search indexing
nxmatic Mar 17, 2024
0e822fa
BDE-226 cosmit (package.json)
nxmatic Mar 17, 2024
51a6602
BDE-226 enhanced repository indexing notification
nxmatic Mar 18, 2024
7bb2585
BDE-226 fixing up hot-reload operation invokes
nxmatic Mar 18, 2024
0721c9d
BDE-226 bootstrap better
nxmatic Mar 18, 2024
ff83c3a
BDE-226 use scheme transform to redirect allowing to get the secure c…
nxmatic Mar 18, 2024
1927975
BDE-226 renamed variables in global scope for debugging
nxmatic Mar 18, 2024
9b88871
BDE-226 better handling of undo in declarative net rules
nxmatic Mar 18, 2024
1d9e19e
BDE-226 relocated locally all /index-* includes in popup web pages
nxmatic Mar 18, 2024
3490089
BDE-226 introduce a base class for dynamically introspecting service …
nxmatic Mar 19, 2024
a6e025d
BDE-226 display studio package name
nxmatic Mar 19, 2024
cb1daad
BDE-226 aligned linting with code base
nxmatic Mar 20, 2024
df3a373
BDE-226 studio project registration reviewed (to be continued)
nxmatic Mar 21, 2024
b568bdb
BDE-226 allow registering other developed studio project
nxmatic Mar 22, 2024
3048004
BDE-226 fixing up buttons enabling states
nxmatic Mar 22, 2024
f7d1631
BDE-226 fixing up components promise availability
nxmatic Mar 22, 2024
8c04992
BDE-226 fixing up about displaying
nxmatic Mar 22, 2024
ec0e48a
BDE-226 reviewed no studio project installed
nxmatic Mar 22, 2024
e4486de
BDE-226 server errors notification cleanup
nxmatic Mar 23, 2024
e52aa72
BDE-226 always disable tab extension when not on an nuxeo server page…
nxmatic Mar 23, 2024
862b7d7
BDE-226 renamed withXXX to asXXX when not providing an input
nxmatic Mar 23, 2024
857b2c3
BDE-226 fixing up missing pending rules reset in declarative net afte…
nxmatic Mar 23, 2024
e4c5cb3
BDE-226 better designer live review button displaying and click handling
nxmatic Mar 23, 2024
d594aaf
BDE-226 fixup nuxeo operation empty content response handling
nxmatic Mar 23, 2024
cc3dcd0
BDE-226 reviewed connect and nuxeo server discovering
nxmatic Mar 24, 2024
307226c
BDE-226 do not display registered package name in popup heading
nxmatic Mar 24, 2024
66723d4
BDE-226 fixing tab navigation on doc path
nxmatic Mar 24, 2024
a5579fb
BDE-226 cleaning up manifest permissions
nxmatic Mar 25, 2024
bbaf78c
BDE-226 added release job in github workflow
nxmatic Mar 25, 2024
24cab81
BDE-226 popups should always use promises from the service worker
nxmatic Mar 25, 2024
7097f03
BDE-226 reset jQuery handlers when reloading from step debugger
nxmatic Mar 26, 2024
8ddf77e
BDE-226 better promises handling when saving options
nxmatic Mar 26, 2024
87e09ce
BDE-226 added development mode feature flags for 'studio-package-name…
nxmatic Mar 26, 2024
215079f
BDE-226 better handling of the popup displaying
nxmatic Mar 26, 2024
5c655a8
BDE-226 shared service worker bridge bootstrap logic
nxmatic Mar 26, 2024
c108581
BDE-226 fixing up missing development mode when building entry points
nxmatic Mar 26, 2024
92f578c
BDE-226 trying to capture cookies from document content
nxmatic Mar 26, 2024
ece14b3
BDE-226 fixing up https redirection in live preview
nxmatic Mar 27, 2024
3c54d72
BDE-226 ensure links content always being displayed in viewport
nxmatic Apr 2, 2024
cdf8405
BDE-226 ensure we're releasing the correct zip file for chrome
nxmatic Apr 2, 2024
4c14f81
BDE-226 better notifying user on hot-reload errors
nxmatic Apr 5, 2024
8a92af3
BDE-226 reduced permissions on the manifest extension according to fe…
nxmatic Apr 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"presets": ["@babel/preset-env"]
"presets": ["@babel/preset-env"],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }]
]
}
15 changes: 15 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# inlined shared variables, no needs of encryption

[[ -z "$GITHUB_WORKSPACE" ]] &&
source_up

[[ -z "$(command -v nix)" ]] &&
return

set -a
TAG_VERSION=0.0.0
set +a

pushd .nix
use flake . --impure
popd
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/**
57 changes: 57 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2022,
"ecmaFeatures": {
"legacyDecorators": true,
"importAssertions": true
}
},
"extends": [
"eslint:recommended",
"airbnb-base"
],
"rules": {
"comma-dangle": "off",
"func-names": 0,
"indent": ["error", 2],
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*"]}],
"max-len": [2, 120, 2, {
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreComments": false
}],
"no-console": 0,
"no-else-return": 0,
"no-multi-assign": 0,
"no-param-reassign": 0,
"no-throw-literal": 0,
"no-tabs": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-use-before-define": ["error", {"variables": false}],
"no-useless-escape": 0,
"operator-linebreak": "off",
"prefer-destructuring": ["error", {
"array": false,
"object": false
}, {
"enforceForRenamedProperties": false
}],
"radix": 0,
"wrap-iife": [2, "inside"]
},
"globals": {
"chrome": true,
"browser": true,
"app": true,
"navigator": true,
"window": true,
"document": true,
"Nuxeo": true,
"disableTabExtension": true,
"hljs": true
}
}
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI Build

on:
pull_request:

push:
branches:
- 'master'
- 'develop' # gitflow mainly on hosted runner
- '*-maintenance'
tags:
- 'v*'

workflow_dispatch:

workflow_call:

jobs:
build:
runs-on:
- ${{ github.repository_owner != github.actor && 'ubuntu-latest' || 'self-hosted' }}

steps:

- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install pnpm
run: |
corepack enable
corepack prepare pnpm@next-8 --activate

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build:chrome

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: chrome
path: ./dist/chrome

- name: Zip artifact
if: startsWith(github.ref, 'refs/tags/v')
env:
VERSION: ${{ github.ref_name }}
run: |
cd ./dist/chrome
zip -r ../BrowserDeveloperExtension-Chrome-$VERSION.zip .

- name: Create Release and Upload Asset
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: ./dist/BrowserDeveloperExtension-Chrome-*.zip
draft: true
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
node_modules
temp
.tmp
build
dist
.sass-cache
.npmrc
bower_components
package
app/scripts
app/vendor
npm-debug.log
target
test*/screenshots/*.png
Expand All @@ -17,4 +16,8 @@ ftest/src/test/resources/instance.clid
.project
ftest/.settings/
selenium-standalone.txt
.local
.local
.nix/.devenv
.env.chrome
.env.firefox
.env.local
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "make.d"]
path = make.d
url = https://github.com/nuxeo/nos-jx-make.d.git
8 changes: 8 additions & 0 deletions .groovylintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "recommended",
"rules": {
"CompileStatic": {
"enabled": false
}
}
}
22 changes: 22 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": [
"development"
],
"hints": {
"meta-viewport": "off",
"axe/language": [
"default",
{
"html-has-lang": "off"
}
],
"compat-api/css": [
"default",
{
"ignore": [
"text-align-last"
]
}
]
}
}
10 changes: 10 additions & 0 deletions .nix/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

nix_direnv_watch_file flake.nix
nix_direnv_watch_file flake.lock
if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
1 change: 1 addition & 0 deletions .nix/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.devenv
Loading
Loading