Jelajahi Sumber

Fix dashboard icons

Markus-Rost 4 tahun lalu
induk
melakukan
477e094f06
5 mengubah file dengan 9 tambahan dan 13 penghapusan
  1. 1 1
      README.md
  2. 4 4
      dashboard/index.html
  3. 1 5
      dashboard/index.js
  4. 3 3
      dashboard/login.html
  5. TEMPAT SAMPAH
      dashboard/src/icon.png

+ 1 - 1
README.md

@@ -1,5 +1,5 @@
 # Wiki-Bot[<img src="https://translate.wikibot.de/widgets/wiki-bot/-/svg-badge.svg" alt="Translation status" align="right" />](#translations)[<img src="https://github.com/Markus-Rost/discord-wiki-bot/workflows/Node.js CI/badge.svg" alt="Node.js CI" align="right" />](https://github.com/Markus-Rost/discord-wiki-bot/actions)
-[<img src="https://commons.gamepedia.com/media/9/93/Cursebot.png" alt="Wiki-Bot" align="right" />](https://discord.com/oauth2/authorize?client_id=461189216198590464&permissions=939904064&scope=bot)
+[<img src="/src/icon.png" alt="Wiki-Bot" align="right" />](https://discord.com/oauth2/authorize?client_id=461189216198590464&permissions=939904064&scope=bot)
 
 **Wiki-Bot** is a bot for [Discord](https://discord.com/) with the purpose to easily link and search [MediaWiki](https://www.mediawiki.org/wiki/MediaWiki) sites like [Gamepedia](https://www.gamepedia.com/) and [Fandom](https://www.fandom.com/) wikis. **Wiki-Bot** shows short descriptions and additional info about pages and is able to resolve redirects and follow interwiki links.
 

+ 4 - 4
dashboard/index.html

@@ -3,10 +3,10 @@
 <head>
 	<meta charset="UTF-8">
 	<title>Wiki-Bot Settings</title>
-	<link rel="shortcut icon" href="https://cdn.discordapp.com/avatars/461189216198590464/f69cdc197791aed829882b64f9760dbb.png?size=64">
+	<link rel="shortcut icon" href="/src/icon.png">
 	<meta name="description" content="Wiki-Bot is a bot with the purpose to easily search for and link to wiki pages. Wiki-Bot shows short descriptions and additional info about pages and is able to resolve redirects and follow interwiki links.">
 	<meta property="og:description" content="Wiki-Bot is a bot with the purpose to easily search for and link to wiki pages. Wiki-Bot shows short descriptions and additional info about pages and is able to resolve redirects and follow interwiki links.">
-	<meta property="og:image" content="https://cdn.discordapp.com/avatars/461189216198590464/f69cdc197791aed829882b64f9760dbb.png?size=1024">
+	<meta property="og:image" content="/src/icon.png">
 	<meta property="og:title" content="Wiki-Bot Settings">
 	<meta property="og:site_name" content="Wiki-Bot Settings">
 	<meta itemprop="author" content="MarkusRost">
@@ -39,11 +39,11 @@
 				<span>Server Selector</span>
 			</a>
 			<a id="support" href="https://discord.gg/v77RTk5" target="_blank" alt="Help with Wiki-Bot">
-				<img class="avatar" src="https://cdn.discordapp.com/icons/464084451165732868/c6a8b9fc902b09545de8194a911e6045.png?size=64" alt="Wiki-Bot">
+				<img class="avatar" src="/src/icon.png" alt="Wiki-Bot">
 				<span>Support Server</span>
 			</a>
 			<a id="logout" href="/logout" alt="Logout">
-				<img class="avatar" src="https://cdn.discordapp.com/avatars/461189216198590464/f69cdc197791aed829882b64f9760dbb.png?size=64" alt="Logout">
+				<img class="avatar" src="/src/icon.png" alt="Logout">
 				<span>Wiki-Bot #2998</span>
 			</a>
 		</div>

+ 1 - 5
dashboard/index.js

@@ -107,11 +107,7 @@ const server = http.createServer((req, res) => {
 
 	var reqURL = new URL(req.url, process.env.dashboard);
 
-	if ( reqURL.pathname === '/favicon.ico' ) {
-		res.writeHead(302, {Location: 'https://cdn.discordapp.com/avatars/461189216198590464/f69cdc197791aed829882b64f9760dbb.png?size=64'});
-		return res.end();
-	}
-
+	if ( reqURL.pathname === '/favicon.ico' ) reqURL.pathname = '/src/icon.png';
 	if ( files.has(reqURL.pathname) ) {
 		let file = files.get(reqURL.pathname);
 		res.writeHead(200, {'Content-Type': file.contentType});

+ 3 - 3
dashboard/login.html

@@ -3,10 +3,10 @@
 <head>
 	<meta charset="UTF-8">
 	<title>Login – Wiki-Bot Settings</title>
-	<link rel="shortcut icon" href="https://cdn.discordapp.com/avatars/461189216198590464/f69cdc197791aed829882b64f9760dbb.png?size=64">
+	<link rel="shortcut icon" href="/src/icon.png">
 	<meta name="description" content="Wiki-Bot is a bot with the purpose to easily search for and link to wiki pages. Wiki-Bot shows short descriptions and additional info about pages and is able to resolve redirects and follow interwiki links.">
 	<meta property="og:description" content="Wiki-Bot is a bot with the purpose to easily search for and link to wiki pages. Wiki-Bot shows short descriptions and additional info about pages and is able to resolve redirects and follow interwiki links.">
-	<meta property="og:image" content="https://cdn.discordapp.com/avatars/461189216198590464/f69cdc197791aed829882b64f9760dbb.png?size=1024">
+	<meta property="og:image" content="/src/icon.png">
 	<meta property="og:title" content="Login – Wiki-Bot Settings">
 	<meta property="og:site_name" content="Wiki-Bot Settings">
 	<meta itemprop="author" content="MarkusRost">
@@ -44,7 +44,7 @@
 		<div id="navbar">
 			<div></div>
 			<a id="support" href="https://discord.gg/v77RTk5" target="_blank" alt="Help with Wiki-Bot">
-				<img class="avatar" src="https://cdn.discordapp.com/icons/464084451165732868/c6a8b9fc902b09545de8194a911e6045.png?size=64" alt="Wiki-Bot">
+				<img class="avatar" src="/src/icon.png" alt="Wiki-Bot">
 				<span>Support Server</span>
 			</a>
 			<div></div>

TEMPAT SAMPAH
dashboard/src/icon.png