Skip to content

Commit 5d761e1

Browse files
authored
Feature/imports (#102)
* Update JS Versions * Update Files and Build, fix Corrupted pictures * Gestion des entetes fichiers et amélioration mutation observer * Fix Rank Issue #101 * Update Workflow * Update Workflows * Change order for npm actions * Update Sonarcloud Task * Link to Privacy Policy * Update build-and-test.yml.yml * Change to manual publish * Edge Publisher
1 parent 2e6b637 commit 5d761e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+9043
-5255
lines changed

.editorconfig

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
# editorconfig.org
1+
# EditorConfig aide à maintenir des styles de codage cohérents entre différents éditeurs
2+
# https://editorconfig.org
23

34
root = true
45

6+
# Configuration globale pour tous les fichiers
57
[*]
68
end_of_line = lf
79
charset = utf-8
810
insert_final_newline = true
9-
10-
[{*.js,*.json}]
1111
indent_style = space
1212
indent_size = 2
1313
trim_trailing_whitespace = true
14-
insert_final_newline = true
1514

15+
# Fichiers de code source
16+
[*.{js,json}]
17+
# Utilise les valeurs globales
18+
19+
# Fichiers markdown
1620
[*.md]
1721
trim_trailing_whitespace = false
18-
indent_style = space
19-
indent_size = 2
22+
# Utilise les valeurs globales d'indentation

.eslintrc.json

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,46 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es6": true,
5-
"webextensions": true
6-
},
7-
"plugins": [
8-
"jquery"
9-
],
10-
"extends": [
11-
"eslint:recommended",
12-
"plugin:jquery/deprecated",
13-
"plugin:jquery/slim"
14-
],
15-
"globals": {
16-
"Atomics": "readonly",
17-
"SharedArrayBuffer": "readonly",
18-
"chrome": true
19-
},
20-
"parserOptions": {
21-
"ecmaVersion": 2021,
22-
"sourceType": "module"
23-
},
24-
"rules": {
25-
}
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"webextensions": true
6+
},
7+
"plugins": [
8+
"jquery"
9+
],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:jquery/deprecated",
13+
"plugin:jquery/slim"
14+
],
15+
"globals": {
16+
"Atomics": "readonly",
17+
"SharedArrayBuffer": "readonly",
18+
"chrome": true
19+
},
20+
"parserOptions": {
21+
"ecmaVersion": 2021,
22+
"sourceType": "module"
23+
},
24+
"rules": {
25+
"jquery/no-ajax": "warn",
26+
"jquery/no-animate": "warn",
27+
"jquery/no-attr": "warn",
28+
"jquery/no-class": "warn",
29+
"jquery/no-clone": "warn",
30+
"jquery/no-css": "warn",
31+
"jquery/no-data": "warn",
32+
"jquery/no-deferred": "warn",
33+
"jquery/no-fade": "warn",
34+
"jquery/no-html": "warn",
35+
"jquery/no-is": "warn",
36+
"jquery/no-each": "warn",
37+
"jquery/no-param": "warn",
38+
"jquery/no-serialize": "warn",
39+
"jquery/no-ready": "warn",
40+
"jquery/no-slide": "warn",
41+
"jquery/no-text": "warn",
42+
"jquery/no-trigger": "warn",
43+
"jquery/no-val": "warn",
44+
"jquery/no-wrap": "warn"
45+
}
2646
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build and Test Release
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/[email protected]
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20.x
20+
21+
- name: Package.json info
22+
uses: rexdefuror/[email protected]
23+
24+
- name: Build
25+
run: |
26+
npm install
27+
npm run version
28+
npm run update-headers
29+
gulp
30+
31+
- name: Create Draft GitHub Release
32+
uses: ncipollo/[email protected]
33+
with:
34+
name: Xtense ${{ env.PACKAGE_VERSION }}
35+
draft: true
36+
prerelease: true
37+
artifacts: "release/chrome-${{ env.PACKAGE_VERSION }}.zip,release/firefox-${{ env.PACKAGE_VERSION }}.zip,release/edge-${{ env.PACKAGE_VERSION }}.zip"
38+
artifactContentType: zip
39+
body: "Version de test - Ne pas publier"
40+
tag: "dev-${{ env.PACKAGE_VERSION }}"
41+
42+
- name: Publish to Chrome Web Store
43+
uses: mnao305/[email protected]
44+
with:
45+
file-path: release/chrome-${{ env.PACKAGE_VERSION }}.zip
46+
extension-id: ${{ secrets.TEST_CHROME_EXTENSION_ID }}
47+
client-id: ${{ secrets.CHROME_CLIENT_ID }}
48+
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
49+
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
50+
publish: false

.github/workflows/main.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/publish-release.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Publish Extensions
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/[email protected]
13+
14+
- name: Use Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20.x
18+
19+
- name: Package.json info
20+
uses: rexdefuror/[email protected]
21+
22+
- name: Build
23+
run: |
24+
npm install
25+
npm run version
26+
npm run update-headers
27+
gulp
28+
29+
- name: Create GitHub Release
30+
id: create_release
31+
uses: ncipollo/[email protected]
32+
with:
33+
name: Xtense ${{ env.PACKAGE_VERSION }}
34+
draft: false
35+
artifacts: "release/chrome-${{ env.PACKAGE_VERSION }}.zip,release/firefox-${{ env.PACKAGE_VERSION }}.zip,release/edge-${{ env.PACKAGE_VERSION }}.zip"
36+
artifactContentType: zip
37+
body: "Release officielle ${{ env.PACKAGE_VERSION }}"
38+
tag: "${{ env.PACKAGE_VERSION }}"
39+
40+
- name: Publish to Chrome Web Store
41+
uses: mnao305/[email protected]
42+
with:
43+
file-path: release/chrome-${{ env.PACKAGE_VERSION }}.zip
44+
extension-id: ${{ secrets.CHROME_EXTENSION_ID }}
45+
client-id: ${{ secrets.CHROME_CLIENT_ID }}
46+
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
47+
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
48+
publish: true
49+
50+
- name: Publish to Firefox Add-ons
51+
uses: trmcnvn/firefox-addon@v1
52+
with:
53+
uuid: ${{ secrets.FIREFOX_ADDON_UUID }}
54+
xpi: release/firefox-${{ env.PACKAGE_VERSION }}.zip
55+
manifest: ./manifest.json
56+
api-key: ${{ secrets.FIREFOX_API_KEY }}
57+
api-secret: ${{ secrets.FIREFOX_API_SECRET }}
58+
channel: listed
59+
60+
- name: Publish to Microsoft Edge Add-ons
61+
uses: PlasmoHQ/bpp@v3
62+
with:
63+
keys: ${{ secrets.EDGE_API_KEY }}
64+
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
65+
client-id: ${{ secrets.EDGE_CLIENT_ID }}
66+
zip-path: release/edge-${{ env.PACKAGE_VERSION }}.zip
67+
notes: "Nouvelle version ${{ env.PACKAGE_VERSION }}"
68+

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: SonarCloud
22
on:
33
push:
44
branches:

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"esversion": 8,
2+
"esversion": 11,
33
"globals":
44
{
55
"log": true,

.vscode/launch.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
3-
// Pointez pour afficher la description des attributs existants.
4-
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
52
"version": "0.2.0",
63
"configurations": [
74
{

extension/assets/icones/infos.png

-180 Bytes
Loading

extension/assets/icones/market.png

-79 Bytes
Loading

0 commit comments

Comments
 (0)