From 3658e8aa178056ed7f411a0648fd27e785b0a00e Mon Sep 17 00:00:00 2001 From: GODrums Date: Mon, 28 Aug 2023 23:53:23 +0200 Subject: [PATCH] Skinport stuff main functionality done --- css/{stylesheet.css => csfloat_styles.css} | 1 + css/popup.css | 1 + css/skinport_styles.css | 32 ++++++ html/changelog.html | 13 +++ html/{settings.html => csfloat.html} | 0 html/index.html | 8 +- html/skinport.html | 52 ++++++++++ manifest.json | 3 +- src/@typings/FloatTypes.d.ts | 29 ++++++ src/background.ts | 5 + src/csfloat/content_script.ts | 9 +- src/eventhandler.ts | 6 +- src/mappinghandler.ts | 58 ++++++++--- src/popup.ts | 57 +++++++++-- src/skinport/content_script.ts | 108 ++++++++++++--------- src/util/extensionsettings.ts | 18 ++++ src/util/helperfunctions.ts | 15 +++ 17 files changed, 345 insertions(+), 70 deletions(-) rename css/{stylesheet.css => csfloat_styles.css} (96%) create mode 100644 css/skinport_styles.css rename html/{settings.html => csfloat.html} (100%) create mode 100644 html/skinport.html diff --git a/css/stylesheet.css b/css/csfloat_styles.css similarity index 96% rename from css/stylesheet.css rename to css/csfloat_styles.css index 5d166ef..eabd8de 100644 --- a/css/stylesheet.css +++ b/css/csfloat_styles.css @@ -47,6 +47,7 @@ .betterfloat-buffprice:hover .betterfloat-buff-tooltip { visibility: visible; opacity: 1; + transition: visibility 0s, opacity 0.5s linear; } .betterfloat-buffprice { diff --git a/css/popup.css b/css/popup.css index 3f643ff..e14c187 100644 --- a/css/popup.css +++ b/css/popup.css @@ -228,4 +228,5 @@ input[type='checkbox'] { color: rgba(255, 255, 255, 0.7); margin: 5px 20px 5px 0px; font-weight: 400; + overflow-wrap: break-word; } \ No newline at end of file diff --git a/css/skinport_styles.css b/css/skinport_styles.css new file mode 100644 index 0000000..16c0f59 --- /dev/null +++ b/css/skinport_styles.css @@ -0,0 +1,32 @@ +.betterfloat-buff-tooltip { + /* Positioning the tooltip text */ + position: absolute; + z-index: 1; + transform: translate(-16%, 40%); + visibility: hidden; + width: 200px; + background-color: #192733; + color: #fff; + text-align: center; + padding: 8px 10px 8px 10px; + border-radius: 6px; + font-size: 14px; + + /* Fade in tooltip */ + opacity: 0; + transition: opacity 0.3s; +} + +.betterfloat-buffprice { + font-size: 12px; +} + +.betterfloat-buffprice:hover .betterfloat-buff-tooltip { + visibility: visible; + opacity: 1; +} + +.betterfloat-sale-tag { + font-size: 12px!important; + margin: 1px; +} \ No newline at end of file diff --git a/html/changelog.html b/html/changelog.html index 84a7469..5e074b0 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -1,3 +1,16 @@ +
+
1.4.0
+
+

+ What's new? +

+
    +
  • FEATURE: First BETA support for skinport.com. Only selected features work for now. Please refer to the corresponding extension settings tab.
  • +
  • PRICING: As Steaminventoryhelper changed their CORS policy, requests now have to be proxied through a server. The deployed source code of the server can be found here: https://gist.github.com/GODrums/5b2d24c17c136a1b37acd14b1089933c
  • +
  • PRICING: Skinport displays item prices in your local currency. To provide actual accurate exchange rates, the exchangerate.host API is in use. If you want to use Skinport's questionable rates instead, feel free to select it in the options popup. Skinport will always charge in your (local) account currency.
  • +
+
+
1.3.2
diff --git a/html/settings.html b/html/csfloat.html similarity index 100% rename from html/settings.html rename to html/csfloat.html diff --git a/html/index.html b/html/index.html index c02f7fb..7d308bc 100644 --- a/html/index.html +++ b/html/index.html @@ -24,9 +24,13 @@