From 9a864bc11ced9ddf44a51b6a9e510c4c104fe8f8 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 8 Feb 2021 23:04:54 +0100 Subject: [PATCH] Migrate pseudo-enums to typescript enums. Fix related imports & stuff --- README.md | 2 +- src/common/components/ActionAlt.vue | 6 +- src/common/components/ActionRow.vue | 2 +- src/common/enums/AntiGradientMode.enum.ts | 7 ++ src/common/enums/AspectRatioType.enum.ts | 11 +++ src/common/enums/CropModePersistence.enum.ts | 9 ++ src/common/enums/ExtensionMode.enum.ts | 10 +++ src/common/enums/StretchType.enum.ts | 11 +++ src/common/enums/VideoAlignmentType.enum.ts | 8 ++ src/common/enums/anti-gradient-mode.enum.js | 7 -- src/common/enums/aspect-ratio.enum.js | 24 ------ .../enums/crop-mode-persistence.enum.js | 9 -- src/common/enums/extension-mode.enum.js | 19 ----- src/common/enums/stretch.enum.js | 11 --- src/common/enums/video-alignment.enum.js | 8 -- src/common/mixins/ComputeActionsMixin.js | 2 +- src/ext/conf/ActionList.js | 44 +++++----- src/ext/conf/ExtConfPatches.js | 18 ++-- src/ext/conf/ExtensionConf.js | 84 +++++++++---------- src/ext/lib/ActionHandler.js | 4 +- src/ext/lib/Settings.js | 22 ++--- src/ext/lib/ar-detect/ArDetector.js | 28 +++---- .../lib/ar-detect/edge-detect/EdgeDetect.js | 2 +- src/ext/lib/video-data/PageInfo.js | 8 +- src/ext/lib/video-data/PlayerData.ts | 4 +- src/ext/lib/video-data/VideoData.ts | 4 +- src/ext/lib/video-transform/Resizer.ts | 84 +++++++++---------- src/ext/lib/video-transform/Scaler.js | 22 ++--- src/ext/lib/video-transform/Stretcher.ts | 18 ++-- src/ext/uw.js | 2 +- src/options/GeneralSettings.vue | 38 ++++----- .../controls-settings/AddEditActionPopup.vue | 2 +- .../controls-settings/ControlsSettings.vue | 2 +- .../command-builder/CommandAddEdit.vue | 2 +- src/popup/App.vue | 2 +- src/popup/js/ExecAction.js | 2 +- src/popup/panels/SiteDetailsPanel.vue | 10 +-- src/popup/panels/VideoPanel.vue | 2 +- 38 files changed, 264 insertions(+), 286 deletions(-) create mode 100644 src/common/enums/AntiGradientMode.enum.ts create mode 100644 src/common/enums/AspectRatioType.enum.ts create mode 100644 src/common/enums/CropModePersistence.enum.ts create mode 100644 src/common/enums/ExtensionMode.enum.ts create mode 100644 src/common/enums/StretchType.enum.ts create mode 100644 src/common/enums/VideoAlignmentType.enum.ts delete mode 100644 src/common/enums/anti-gradient-mode.enum.js delete mode 100644 src/common/enums/aspect-ratio.enum.js delete mode 100644 src/common/enums/crop-mode-persistence.enum.js delete mode 100644 src/common/enums/extension-mode.enum.js delete mode 100644 src/common/enums/stretch.enum.js delete mode 100644 src/common/enums/video-alignment.enum.js diff --git a/README.md b/README.md index a8d70fa..6355a07 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ultrawidify — aspect ratio fixer for youtube and netflix +# Ultrawidify — aspect ratio fixer for youtube and netflix ## Super TL;DR: I'm just looking for the install links, thanks diff --git a/src/common/components/ActionAlt.vue b/src/common/components/ActionAlt.vue index da044c2..7ccd521 100644 --- a/src/common/components/ActionAlt.vue +++ b/src/common/components/ActionAlt.vue @@ -5,7 +5,7 @@
- 🗙 + 🗙 🗙     🖉     {{action.name}} @@ -108,8 +108,8 @@