use injection term everywhere

This commit is contained in:
tophf 2022-01-13 13:13:04 +03:00
parent 4391ceed89
commit d099a4cfe9
7 changed files with 15 additions and 15 deletions

View File

@ -735,9 +735,6 @@
"message": "Live reload", "message": "Live reload",
"description": "The label of live-reload feature" "description": "The label of live-reload feature"
}, },
"manageExecutionOrder": {
"message": "Injection order"
},
"manageFavicons": { "manageFavicons": {
"message": "Favicons in applies-to column", "message": "Favicons in applies-to column",
"description": "Label for the checkbox that toggles applies-to favicons in the new UI on manage page" "description": "Label for the checkbox that toggles applies-to favicons in the new UI on manage page"
@ -1670,6 +1667,9 @@
"styleIncludeLabel": { "styleIncludeLabel": {
"message": "Custom included sites" "message": "Custom included sites"
}, },
"styleInjectionOrder": {
"message": "Style injection order"
},
"styleExcludeLabel": { "styleExcludeLabel": {
"message": "Custom excluded sites" "message": "Custom excluded sites"
}, },

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title i18n-text-append="optionsHeading">Stylus </title> <title i18n-text-append="optionsHeading">Stylus </title>
<link rel="stylesheet" href="/global.css"> <link rel="stylesheet" href="/global.css">
<link rel="stylesheet" href="execution-order.css"> <link rel="stylesheet" href="injection-order.css">
<script src="/js/polyfill.js"></script> <script src="/js/polyfill.js"></script>
<script src="/js/toolbox.js"></script> <script src="/js/toolbox.js"></script>
@ -24,6 +24,6 @@
<ol id="style-list"></ol> <ol id="style-list"></ol>
</div> </div>
<script src="/vendor/@eight04/draggable-list/dist/draggable-list.iife.min.js"></script> <script src="/vendor/@eight04/draggable-list/dist/draggable-list.iife.min.js"></script>
<script src="execution-order.js"></script> <script src="injection-order.js"></script>
</body> </body>
</html> </html>

View File

@ -314,7 +314,7 @@
</label> </label>
</div> </div>
<button id="manage-options-button" i18n-text="openOptions"></button> <button id="manage-options-button" i18n-text="openOptions"></button>
<button id="execution-order-button" i18n-text="manageExecutionOrder"></button> <button id="injection-order-button" i18n-title="styleInjectionOrder">↑↓</button>
</details> </details>
</div> </div>

View File

@ -980,15 +980,15 @@ a:hover {
animation: fadeout .25s ease-in-out; animation: fadeout .25s ease-in-out;
} }
.execution-order-dialog > div { .injection-order-dialog > div {
height: 100%; height: 100%;
} }
#stylus-execution-order { #stylus-injection-order {
display: block; display: block;
border: 0; border: 0;
height: 100%; height: 100%;
} }
#stylus-execution-order.fadeout { #stylus-injection-order.fadeout {
animation: slideout .25s ease-in-out; animation: slideout .25s ease-in-out;
} }

View File

@ -62,7 +62,7 @@ newUI.renderClass();
installed.on('mouseover', Events.lazyAddEntryTitle, {passive: true}); installed.on('mouseover', Events.lazyAddEntryTitle, {passive: true});
installed.on('mouseout', Events.lazyAddEntryTitle, {passive: true}); installed.on('mouseout', Events.lazyAddEntryTitle, {passive: true});
$('#manage-options-button').onclick = () => router.updateHash('#stylus-options'); $('#manage-options-button').onclick = () => router.updateHash('#stylus-options');
$('#execution-order-button').onclick = () => router.updateHash('#stylus-execution-order'); $('#injection-order-button').onclick = () => router.updateHash('#stylus-injection-order');
$('#sync-styles').onclick = () => router.updateHash('#stylus-options'); $('#sync-styles').onclick = () => router.updateHash('#stylus-options');
$$('#header a[href^="http"]').forEach(a => (a.onclick = Events.external)); $$('#header a[href^="http"]').forEach(a => (a.onclick = Events.external));
document.on('visibilitychange', handleVisibilityChange); document.on('visibilitychange', handleVisibilityChange);
@ -110,10 +110,10 @@ router.watch(
})) }))
); );
router.watch( router.watch(
{hash: '#stylus-execution-order'}, {hash: '#stylus-injection-order'},
EmbedDialog(() => $create('iframe', { EmbedDialog(() => $create('iframe', {
id: 'stylus-execution-order', id: 'stylus-injection-order',
src: '/execution-order/execution-order.html', src: '/injection-order/injection-order.html',
})) }))
); );
@ -145,9 +145,9 @@ function EmbedDialog(El) {
function toggle(state) { function toggle(state) {
if (state && !shown) { if (state && !shown) {
messageBoxProxy.show({ messageBoxProxy.show({
title: t('manageExecutionOrder'), title: t('styleInjectionOrder'),
contents: El(), contents: El(),
className: 'execution-order-dialog center-dialog', className: 'injection-order-dialog center-dialog',
blockScroll: true, blockScroll: true,
}) })
.then(() => { .then(() => {