From d099a4cfe94b020c73e1a4f192dba343deffad95 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 13 Jan 2022 13:13:04 +0300 Subject: [PATCH] use `injection` term everywhere --- _locales/en/messages.json | 6 +++--- .../injection-order.css | 0 .../injection-order.html | 4 ++-- .../injection-order.js | 0 manage.html | 2 +- manage/manage.css | 6 +++--- manage/manage.js | 12 ++++++------ 7 files changed, 15 insertions(+), 15 deletions(-) rename execution-order/execution-order.css => injection-order/injection-order.css (100%) rename execution-order/execution-order.html => injection-order/injection-order.html (89%) rename execution-order/execution-order.js => injection-order/injection-order.js (100%) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ea5c868f..3be04358 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -735,9 +735,6 @@ "message": "Live reload", "description": "The label of live-reload feature" }, - "manageExecutionOrder": { - "message": "Injection order" - }, "manageFavicons": { "message": "Favicons in applies-to column", "description": "Label for the checkbox that toggles applies-to favicons in the new UI on manage page" @@ -1670,6 +1667,9 @@ "styleIncludeLabel": { "message": "Custom included sites" }, + "styleInjectionOrder": { + "message": "Style injection order" + }, "styleExcludeLabel": { "message": "Custom excluded sites" }, diff --git a/execution-order/execution-order.css b/injection-order/injection-order.css similarity index 100% rename from execution-order/execution-order.css rename to injection-order/injection-order.css diff --git a/execution-order/execution-order.html b/injection-order/injection-order.html similarity index 89% rename from execution-order/execution-order.html rename to injection-order/injection-order.html index 8c055236..22184f81 100644 --- a/execution-order/execution-order.html +++ b/injection-order/injection-order.html @@ -5,7 +5,7 @@ Stylus - + @@ -24,6 +24,6 @@
    - + diff --git a/execution-order/execution-order.js b/injection-order/injection-order.js similarity index 100% rename from execution-order/execution-order.js rename to injection-order/injection-order.js diff --git a/manage.html b/manage.html index da1b8106..625ceba8 100644 --- a/manage.html +++ b/manage.html @@ -314,7 +314,7 @@ - + diff --git a/manage/manage.css b/manage/manage.css index 1d8c3d24..9a9f7468 100644 --- a/manage/manage.css +++ b/manage/manage.css @@ -980,15 +980,15 @@ a:hover { animation: fadeout .25s ease-in-out; } -.execution-order-dialog > div { +.injection-order-dialog > div { height: 100%; } -#stylus-execution-order { +#stylus-injection-order { display: block; border: 0; height: 100%; } -#stylus-execution-order.fadeout { +#stylus-injection-order.fadeout { animation: slideout .25s ease-in-out; } diff --git a/manage/manage.js b/manage/manage.js index 106006a3..b2ec8444 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -62,7 +62,7 @@ newUI.renderClass(); installed.on('mouseover', Events.lazyAddEntryTitle, {passive: true}); installed.on('mouseout', Events.lazyAddEntryTitle, {passive: true}); $('#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'); $$('#header a[href^="http"]').forEach(a => (a.onclick = Events.external)); document.on('visibilitychange', handleVisibilityChange); @@ -110,10 +110,10 @@ router.watch( })) ); router.watch( - {hash: '#stylus-execution-order'}, + {hash: '#stylus-injection-order'}, EmbedDialog(() => $create('iframe', { - id: 'stylus-execution-order', - src: '/execution-order/execution-order.html', + id: 'stylus-injection-order', + src: '/injection-order/injection-order.html', })) ); @@ -145,9 +145,9 @@ function EmbedDialog(El) { function toggle(state) { if (state && !shown) { messageBoxProxy.show({ - title: t('manageExecutionOrder'), + title: t('styleInjectionOrder'), contents: El(), - className: 'execution-order-dialog center-dialog', + className: 'injection-order-dialog center-dialog', blockScroll: true, }) .then(() => {