Skip to content

Commit

Permalink
Ajout du réglage recommencer en haut à gauche.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDgop committed Oct 29, 2024
1 parent 23ee38e commit caa2fd3
Show file tree
Hide file tree
Showing 65 changed files with 510 additions and 151 deletions.
10 changes: 6 additions & 4 deletions build/terser.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const files = {
'dist/js/app/services/settings/navigation-buttons.service.js',
'dist/js/app/services/settings/read-aloud.service.js',
'dist/js/app/services/settings/reading-guide.service.js',
'dist/js/app/services/settings/restart-top-left.service.js',
'dist/js/app/services/settings/scroll-type.service.js',
'dist/js/app/services/settings/scroll.service.js',
'dist/js/app/services/settings/skip-to-content.service.js',
Expand Down Expand Up @@ -70,6 +71,7 @@ const files = {
'dist/js/app/shared/settings/navigation-buttons.component.js',
'dist/js/app/shared/settings/read-aloud.component.js',
'dist/js/app/shared/settings/reading-guide.component.js',
'dist/js/app/shared/settings/restart-top-left.component.js',
'dist/js/app/shared/settings/scroll-type.component.js',
'dist/js/app/shared/settings/scroll.component.js',
'dist/js/app/shared/settings/skip-to-content.component.js',
Expand Down Expand Up @@ -213,18 +215,18 @@ const files = {
}

const getContext = () => {
const hasContext = process.argv.find( element => element.startsWith( `--context=` ) );
const hasContext = process.argv.find(element => element.startsWith(`--context=`));

if ( !hasContext ) return null;
if (!hasContext) return null;

const value= hasContext.replace( `--context=` , '' );
const value = hasContext.replace(`--context=`, '');

return files[value];
}

const context = getContext();
context.files.forEach(async file => {
Object.assign(code, {[file]: readFileSync(file, "utf8")});
Object.assign(code, { [file]: readFileSync(file, "utf8") });
});

const minified = await minify(code, context.options);
Expand Down
12 changes: 12 additions & 0 deletions dist/extension/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,5 +963,17 @@
"content": "$2"
}
}
},
"setting_restartTopLeft": {
"message": "Restart at top left"
},
"setting_restartTopLeft_instruction": {
"message": "To move scroll and mouse to the top left of the page"
},
"restartTopLeft_noModifications": {
"message": "without action"
},
"restartTopLeft_active": {
"message": "restart"
}
}
12 changes: 12 additions & 0 deletions dist/extension/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,5 +963,17 @@
"content": "$2"
}
}
},
"setting_restartTopLeft": {
"message": "Recommencer en haut à gauche"
},
"setting_restartTopLeft_instruction": {
"message": "Pour placer scroll et souris en haut à gauche de la page"
},
"restartTopLeft_noModifications": {
"message": "sans action"
},
"restartTopLeft_active": {
"message": "recommencer"
}
}
14 changes: 14 additions & 0 deletions dist/extension/assets/json/modes-of-use.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
"isTool": false
}
},
{
"restartTopLeft": {
"values": "noModifications,active",
"valueSelected": 0,
"isTool": false
}
},
{
"clickFacilite": {
"values": "noModifications,bigZone,longClick_delay2",
Expand Down Expand Up @@ -312,6 +319,13 @@
"isTool": false
}
},
{
"restartTopLeft": {
"values": "noModifications,active",
"valueSelected": 0,
"isTool": false
}
},
{
"clickFacilite": {
"values": "noModifications,bigZone,longClick_delay2",
Expand Down
4 changes: 2 additions & 2 deletions dist/extension/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/extension/css/styles.min.css.map

Large diffs are not rendered by default.

115 changes: 84 additions & 31 deletions dist/extension/js/toolbar.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/extension/js/toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/extension/js/toolbar.min.js.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions dist/serveur/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,5 +963,17 @@
"content": "$2"
}
}
},
"setting_restartTopLeft": {
"message": "Restart at top left"
},
"setting_restartTopLeft_instruction": {
"message": "To move scroll and mouse to the top left of the page"
},
"restartTopLeft_noModifications": {
"message": "without action"
},
"restartTopLeft_active": {
"message": "restart"
}
}
12 changes: 12 additions & 0 deletions dist/serveur/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,5 +963,17 @@
"content": "$2"
}
}
},
"setting_restartTopLeft": {
"message": "Recommencer en haut à gauche"
},
"setting_restartTopLeft_instruction": {
"message": "Pour placer scroll et souris en haut à gauche de la page"
},
"restartTopLeft_noModifications": {
"message": "sans action"
},
"restartTopLeft_active": {
"message": "recommencer"
}
}
14 changes: 14 additions & 0 deletions dist/serveur/assets/json/modes-of-use.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
"isTool": false
}
},
{
"restartTopLeft": {
"values": "noModifications,active",
"valueSelected": 0,
"isTool": false
}
},
{
"clickFacilite": {
"values": "noModifications,bigZone,longClick_delay2",
Expand Down Expand Up @@ -312,6 +319,13 @@
"isTool": false
}
},
{
"restartTopLeft": {
"values": "noModifications,active",
"valueSelected": 0,
"isTool": false
}
},
{
"clickFacilite": {
"values": "noModifications,bigZone,longClick_delay2",
Expand Down
4 changes: 2 additions & 2 deletions dist/serveur/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/serveur/css/styles.min.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit caa2fd3

Please sign in to comment.