Browse Source

ref: rename resources to assets

Sven 1 year ago
parent
commit
5f1d9634cd

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 <div style="text-align: center;" align="center">
 
-<h1><img src="./resources/icon/icon.png" /><br>BetterYTM</h1>
+<h1><img src="./assets/icon/icon.png" /><br>BetterYTM</h1>
 
 Configurable layout and UX improvements for YouTube Music
 

+ 2 - 2
resources/external/README.md → assets/external/README.md

@@ -1,5 +1,5 @@
-## Note about external resources:
-I do not own any of the resources in this folder.  
+## Note about external assets:
+I do not own any of the assets in this folder.  
 They belong to their respective owners and I am only re-hosting them to ensure availability and stability:
 - The GitHub logo is owned by GitHub Inc.
 - The Genius logo is owned by Genius Media Group Inc.

+ 0 - 0
resources/external/genius.png → assets/external/genius.png


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


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


+ 0 - 0
resources/icon/close.png → assets/icon/close.png


+ 0 - 0
resources/icon/icon.png → assets/icon/icon.png


+ 0 - 0
resources/icon/icon_1000.png → assets/icon/icon_1000.png


+ 0 - 0
resources/icon/pdn/v1.0.pdn → assets/icon/pdn/v1.0.pdn


+ 0 - 0
resources/icon/pdn/v1.1.pdn → assets/icon/pdn/v1.1.pdn


+ 0 - 0
resources/icon/pdn/v2.0.pdn → assets/icon/pdn/v2.0.pdn


+ 0 - 0
resources/icon/pdn/v2.1.pdn → assets/icon/pdn/v2.1.pdn


+ 0 - 0
resources/icon/pdn/v3.0.pdn → assets/icon/pdn/v3.0.pdn


+ 0 - 0
resources/icon/pdn/v3.1.pdn → assets/icon/pdn/v3.1.pdn


+ 1 - 1
src/features/lyrics.ts

@@ -41,7 +41,7 @@ export async function addMediaCtrlGeniusBtn(): Promise<unknown> {
 
   const imgElem = document.createElement("img");
   imgElem.id = "betterytm-lyrics-img";
-  imgElem.src = "https://raw.githubusercontent.com/Sv443/BetterYTM/main/resources/external/genius.png";
+  imgElem.src = "https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/external/genius.png";
 
   linkElem.appendChild(imgElem);
 

+ 3 - 3
src/features/menu/menu_old.ts

@@ -64,12 +64,12 @@ export async function addMenu() {
     linksCont.appendChild(anchorElem);
   };
 
-  addLink(`https://raw.githubusercontent.com/Sv443/BetterYTM/${branch}/resources/external/github.png`, scriptInfo.namespace, `${scriptInfo.name} on GitHub`);
-  addLink(`https://raw.githubusercontent.com/Sv443/BetterYTM/${branch}/resources/external/greasyfork.png`, "https://greasyfork.org/xyz", `${scriptInfo.name} on GreasyFork`);
+  addLink(`https://raw.githubusercontent.com/Sv443/BetterYTM/${branch}/assets/external/github.png`, scriptInfo.namespace, `${scriptInfo.name} on GitHub`);
+  addLink(`https://raw.githubusercontent.com/Sv443/BetterYTM/${branch}/assets/external/greasyfork.png`, "https://greasyfork.org/xyz", `${scriptInfo.name} on GreasyFork`);
 
   const closeElem = document.createElement("img");
   closeElem.id = "betterytm-menu-close";
-  closeElem.src = `https://raw.githubusercontent.com/Sv443/BetterYTM/${branch}/resources/icon/close.png`;
+  closeElem.src = `https://raw.githubusercontent.com/Sv443/BetterYTM/${branch}/assets/icon/close.png`;
   closeElem.title = "Click to close the menu";
   closeElem.style.marginLeft = "50px";
   closeElem.style.width = "32px";

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

@@ -27,7 +27,7 @@ const header = `\
 // @author          ${pkg.author.name}
 // @copyright       ${pkg.author.name} (${pkg.author.url})
 ${matchDirectives}\
-// @icon            https://raw.githubusercontent.com/${repo}/main/resources/icon/icon.png
+// @icon            https://raw.githubusercontent.com/${repo}/main/assets/icon/icon.png
 // @run-at          document-start
 // @grant           GM.getValue
 // @grant           GM.setValue