Explorar o código

ref: create asset subdirs

Sv443 hai 1 ano
pai
achega
094de2ed52

+ 3 - 3
README-summary.md

@@ -1,5 +1,5 @@
 <!-- <{{HEADER}}> -->
-<h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/logo/logo_128.png" width="96" height="96" /><br>BetterYTM</h1>
+<h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/images/logo/logo_128.png" width="96" height="96" /><br>BetterYTM</h1>
 
 ### Lots of configurable layout and user experience improvements for YouTube Music
 Supported Languages: 🇩🇪 German, 🇺🇸 English, 🇩🇪 German, 🇪🇸 Spanish, 🇫🇷 French, 🇮🇳 Hindi, 🇯🇵 Japanese, 🇵🇹 Portuguese, 🇨🇳 Chinese (simpl.)
@@ -101,13 +101,13 @@ For development dependencies, please refer to `devDependencies` in [`package.jso
   
 Icons:  
 - Most icons are from [Material Icons](https://fonts.google.com/icons)
-- For external icon attributions, see [`assets/external/`](https://github.com/Sv443/BetterYTM/tree/main/assets/external/)
+- For external icon attributions, see [`assets/images/external/`](https://github.com/Sv443/BetterYTM/tree/main/assets/images/external/)
 
 <br><br>
 
 ### Disclaimers:
 - I am not affiliated with or endorsed by YouTube, Google, Alphabet, Genius, or anyone else.
-- I do not own any third party icons, I just re-host them [here](https://github.com/Sv443/BetterYTM/tree/main/assets/external/) for better stability and availability.
+- I do not own any third party icons, I just re-host them [here](https://github.com/Sv443/BetterYTM/tree/main/assets/images/external/) for better stability and availability.
 - I do not intend to ever collect any data about you, everything in this script is done and stored locally on your device or on the site the script runs on.
 - I can't guarantee this software is without flaws. If something bad happens, I don't accept blame. I do however accept [bug reports and feature requests.](https://github.com/Sv443/BetterYTM/issues/new/choose)
 

+ 3 - 3
README.md

@@ -1,6 +1,6 @@
 <div style="text-align: center;" align="center">
 <!-- <{{HEADER}}> -->
-<h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/logo/logo_128.png" width="96" height="96" /><br>BetterYTM</h1>
+<h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/images/logo/logo_128.png" width="96" height="96" /><br>BetterYTM</h1>
 
 ### Lots of configurable layout and user experience improvements for YouTube Music
 Supported Languages: 🇩🇪 German, 🇺🇸 English, 🇬🇧 English, 🇪🇸 Spanish, 🇫🇷 French, 🇮🇳 Hindi, 🇯🇵 Japanese, 🇵🇹 Portuguese, 🇨🇳 Chinese (simpl.)
@@ -105,13 +105,13 @@ For development dependencies, please refer to `devDependencies` in [`package.jso
   
 Icons:  
 - Most icons are from [Material Icons](https://fonts.google.com/icons)
-- For external icon attributions, see [`assets/external/`](assets/external/README.md)
+- For external icon attributions, see [`assets/images/external/`](assets/images/external/README.md)
 
 <br><br>
 
 ### Disclaimers:
 - I am not affiliated with or endorsed by YouTube, Google, Alphabet, Genius, or anyone else.
-- I do not own any third party icons, I just re-host them [here](./assets/external/) for better stability and availability.
+- I do not own any third party icons, I just re-host them [here](./assets/images/external/) for better stability and availability.
 - I do not intend to ever collect any data about you, everything in this script is done and stored locally on your device or on the site the script runs on.
 - I can't guarantee this software is without flaws. If something bad happens, I don't accept blame. I do however accept [bug reports and feature requests.](https://github.com/Sv443/BetterYTM/issues/new/choose)
 

+ 0 - 0
assets/icons/close.pdn → assets/images/close.pdn


+ 0 - 0
assets/icons/close.png → assets/images/close.png


+ 0 - 0
assets/external/README.md → assets/images/external/README.md


+ 0 - 0
assets/external/discord.png → assets/images/external/discord.png


+ 0 - 0
assets/external/github.png → assets/images/external/github.png


+ 0 - 0
assets/external/greasyfork.png → assets/images/external/greasyfork.png


+ 0 - 0
assets/external/openuserjs.png → assets/images/external/openuserjs.png


+ 0 - 0
assets/logo/logo.pdn → assets/images/logo/logo.pdn


+ 0 - 0
assets/logo/logo_1000.png → assets/images/logo/logo_1000.png


+ 0 - 0
assets/logo/logo_128.png → assets/images/logo/logo_128.png


+ 0 - 0
assets/logo/logo_48.png → assets/images/logo/logo_48.png


+ 6 - 6
assets/resources.json

@@ -12,10 +12,10 @@
   "icon-spinner": "icons/spinner.svg",
   "icon-advanced_mode": "icons/plus_circle_small.svg",
   "icon-lock": "icons/lock.svg",
-  "img-logo": "logo/logo_48.png",
-  "img-close": "icons/close.png",
-  "img-discord": "external/discord.png",
-  "img-github": "external/github.png",
-  "img-greasyfork": "external/greasyfork.png",
-  "img-openuserjs": "external/openuserjs.png"
+  "img-logo": "images/logo/logo_48.png",
+  "img-close": "images/close.png",
+  "img-discord": "images/external/discord.png",
+  "img-github": "images/external/github.png",
+  "img-greasyfork": "images/external/greasyfork.png",
+  "img-openuserjs": "images/external/openuserjs.png"
 }

+ 1 - 1
src/tools/gen-readme.ts

@@ -101,7 +101,7 @@ async function genHeader() {
     return `${acc}${i > 0 ? ", " : ""}${emoji}&nbsp;${nameEnglish}`;
   }, "");
   return `\
-<h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/logo/logo_128.png" width="96" height="96" /><br>${pkg.userscriptName}</h1>
+<h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/images/logo/logo_128.png" width="96" height="96" /><br>${pkg.userscriptName}</h1>
 
 ### ${pkg.description}
 Supported Languages: ${langStr}\

+ 1 - 1
src/tools/post-build.ts

@@ -90,7 +90,7 @@ ${localizedDescriptions ? "\n" + localizedDescriptions : ""}\
 // @license           ${pkg.license}
 // @author            ${pkg.author.name}
 // @copyright         ${pkg.author.name} (${pkg.author.url})
-// @icon              ${getResourceUrl("logo/logo_48.png")}
+// @icon              ${getResourceUrl("images/logo/logo_48.png")}
 // @match             https://music.youtube.com/*
 // @match             https://www.youtube.com/*
 // @run-at            document-start