-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
555 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
name channel link | ||
Maggie's Purple 1137102371172917380 https://raw.githubusercontent.com/maggster165/vendettathemes/main/maggiespurple.json | ||
Nord 1135824724212076644 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/Nord/nord.json | ||
Purpdarkv3 1135824892575613019 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/Purpdark/PurpDark_BG/Purpdark_v3.json | ||
SeaGreen 1135825053968252969 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/SeaGreen/SeaGreen.json | ||
MediumSlateBlue 1135825255445823528 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/MediumSlateBlue/MediumSlateBlue.json | ||
RedFeathers 1135825435972870186 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/MediumSlateBlue/MediumSlateBlue.json | ||
Vision Pro 1137781580857872475 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/Vision%20pro%202.0.json | ||
Midnight-Espresso 1138099451026747402/1138099451026747402 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/MidnightEspresso%20Plus.json | ||
Lavender Heaven 1138099451026747402/1138099646720393307 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/LavenderHeaven%20Plus.json | ||
Katana 1138099451026747402/1138099827411001394 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/Katana%20Plus.json | ||
Purple Galaxy 1138099451026747402/1138100188070805575 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/PurpleGalaxy%20Plus.json | ||
Emerald Peppermint 1138099451026747402/1138100356962865212 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/EmeraldPeppermint%20Plus.json | ||
Pebble 1138099451026747402/1138100645921034240 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/EmeraldPeppermint%20Plus.json | ||
Purple Kitty 1138099451026747402/1138101958645911573 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/PurpleKitty%20Plus.json | ||
Midnight 1138416851815239791 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/Midnight%20Plus.json | ||
CityFog 1138877237857353758 https://raw.githubusercontent.com/Quinxxxx/Discord/main/Vendetta/CityFog.json | ||
Catty 1140193359256887336 https://raw.githubusercontent.com/ArisonID/aris-silly-themes/main/Catty.json | ||
ClearVision 1140264173457133669 https://raw.githubusercontent.com/TakiShiwa/Themes/main/ClearVision/Vendetta/ClearVision.json | ||
MintY Green 1140677087636758559 https://raw.githubusercontent.com/Panniku/VendettaThemes/main/minty-green.json | ||
name channel link | ||
Maggie's Purple 1137102371172917380 https://raw.githubusercontent.com/maggster165/vendettathemes/main/maggiespurple.json | ||
Nord 1135824724212076644 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/Nord/nord.json | ||
Purpdarkv3 1135824892575613019 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/Purpdark/PurpDark_BG/Purpdark_v3.json | ||
SeaGreen 1135825053968252969 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/SeaGreen/SeaGreen.json | ||
MediumSlateBlue 1135825255445823528 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/MediumSlateBlue/MediumSlateBlue.json | ||
RedFeathers 1135825435972870186 https://raw.githubusercontent.com/vorlie/VendettaThemes/main/MediumSlateBlue/MediumSlateBlue.json | ||
Vision Pro 1137781580857872475 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/Vision%20pro%202.0.json | ||
Midnight-Espresso 1138099451026747402/1138099451026747402 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/MidnightEspresso%20Plus.json | ||
Lavender Heaven 1138099451026747402/1138099646720393307 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/LavenderHeaven%20Plus.json | ||
Katana 1138099451026747402/1138099827411001394 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/Katana%20Plus.json | ||
Purple Galaxy 1138099451026747402/1138100188070805575 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/PurpleGalaxy%20Plus.json | ||
Emerald Peppermint 1138099451026747402/1138100356962865212 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/EmeraldPeppermint%20Plus.json | ||
Pebble 1138099451026747402/1138100645921034240 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/EmeraldPeppermint%20Plus.json | ||
Purple Kitty 1138099451026747402/1138101958645911573 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/PurpleKitty%20Plus.json | ||
Midnight 1138416851815239791 https://raw.githubusercontent.com/VodkaXMartini/VendettaTheme-Plus/main/Midnight%20Plus.json | ||
CityFog 1138877237857353758 https://raw.githubusercontent.com/Quinxxxx/Discord/main/Vendetta/CityFog.json | ||
Catty 1140193359256887336 https://raw.githubusercontent.com/ArisonID/aris-silly-themes/main/Catty.json | ||
ClearVision 1140264173457133669 https://raw.githubusercontent.com/TakiShiwa/Themes/main/ClearVision/Vendetta/ClearVision.json | ||
MintY Green 1140677087636758559 https://raw.githubusercontent.com/Panniku/VendettaThemes/main/minty-green.json | ||
Nord - in light mode 1140743874747310120 https://raw.githubusercontent.com/Quinxxxx/Discord-themes/main/Vendetta/Nord/light_nord.json |
This file was deleted.
Oops, something went wrong.
99 changes: 43 additions & 56 deletions
99
...b/scripts/iconpacks_tree_writer/index.mjs → ...ub/scripts/iconpack_tree_writer/index.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,43 @@ | ||
import { readFile, readdir, unlink, writeFile } from "fs/promises"; | ||
import { join } from "path"; | ||
|
||
console.time("Done"); | ||
|
||
const repo = process.env.github_repository ?? "nexpid/VendettaThemesPlus"; | ||
|
||
const { list } = JSON.parse( | ||
await readFile(join("../../", "iconpacks", "list.json"), "utf8"), | ||
); | ||
|
||
for (const ic of list) { | ||
console.log(`Parsing tree for '${ic.id}'`); | ||
|
||
const load = ic.load && (!ic.load.endsWith("/") ? ic.load + "/" : ic.load); | ||
|
||
let user, path; | ||
if (load) { | ||
const split = load.split("/"); | ||
user = split.slice(3, 5).join("/"); | ||
path = split.slice(6, -1); | ||
} else { | ||
user = repo; | ||
path = ["assets", ic.id]; | ||
} | ||
|
||
try { | ||
const paths = ( | ||
await ( | ||
await fetch( | ||
`https://api.github.com/repos/${user}/git/trees/master?recursive=1`, | ||
) | ||
).json() | ||
).tree | ||
.filter((x) => x.path.startsWith(path.join("/"))) | ||
.map((x) => x.path.split("/").slice(path.length).join("/")) | ||
.filter((x) => x.length > 0); | ||
|
||
await writeFile( | ||
join("../../../", "trees", `${ic.id}.txt`), | ||
paths.join("\n"), | ||
); | ||
} catch (e) { | ||
console.log(`Failed to parse tree for '${ic.id}'!`); | ||
continue; | ||
} | ||
} | ||
|
||
for (const f of ( | ||
await readdir(join("../../../", "trees"), { | ||
withFileTypes: true, | ||
}) | ||
).filter((x) => x.isFile() && !list.some((y) => x.name === `${y.id}.txt`))) | ||
await unlink(join("../../../", "trees", f.name)); | ||
|
||
console.timeEnd("Done"); | ||
import { readFile, readdir, unlink, writeFile } from "fs/promises"; | ||
import { join } from "path"; | ||
|
||
console.time("Done"); | ||
|
||
const { list } = JSON.parse( | ||
await readFile(join("iconpacks", "list.json"), "utf8") | ||
); | ||
|
||
for (const ic of list) { | ||
console.log(`Parsing tree for '${ic.id}'`); | ||
|
||
const split = ic.load.split("/"); | ||
const user = split.slice(3, 5).join("/"); | ||
const path = split.slice(6, -1); | ||
|
||
try { | ||
const paths = ( | ||
await ( | ||
await fetch( | ||
`https://api.github.com/repos/${user}/git/trees/master?recursive=1` | ||
) | ||
).json() | ||
).tree | ||
.filter((x) => x.path.startsWith(path.join("/"))) | ||
.map((x) => x.path.split("/").slice(path.length).join("/")) | ||
.filter((x) => x.length > 0); | ||
|
||
await writeFile(join("../", "trees", `${ic.id}.txt`), paths.join("\n")); | ||
} catch (e) { | ||
console.log(`Failed to parse tree for '${ic.id}'!`); | ||
continue; | ||
} | ||
} | ||
|
||
for (const f of ( | ||
await readdir("../trees", { | ||
withFileTypes: true, | ||
}) | ||
).filter((x) => x.isFile() && !list.some((y) => x.name === `${y.id}.txt`))) | ||
await unlink(join("../trees", f.name)); | ||
|
||
console.timeEnd("Done"); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { readFile, writeFile } from "fs/promises"; | ||
import { format } from "prettier"; | ||
import { join } from "path"; | ||
|
||
console.time("Done"); | ||
|
||
const template = await readFile( | ||
join(".github/scripts/list_iconpacks", "template.md"), | ||
"utf8" | ||
); | ||
const { list } = JSON.parse( | ||
await readFile(join("iconpacks", "list.json"), "utf8") | ||
); | ||
|
||
const packs = []; | ||
for (const pack of list) { | ||
const authors = pack.credits.authors.map((a) => | ||
a.id ? `[@${a.name}](https://discord.com/users/${a.id})` : a.name | ||
); | ||
|
||
packs.push( | ||
[ | ||
`### ${pack.name} <img src="${pack.load}images/native/main_tabs/Messages${pack.suffix}.png" alt="${pack.name} preview" width=25 height=25 />`, | ||
`${pack.description} `, | ||
`Created by: ${ | ||
authors.length > 1 | ||
? `${authors.slice(0, -1).join(", ")} and ${ | ||
authors[authors.length - 1] | ||
}` | ||
: authors.join(", ") | ||
} `, | ||
`Assets from: [${pack.credits.source}](${pack.credits.source}) `, | ||
].join("\n") | ||
); | ||
} | ||
|
||
await writeFile( | ||
join("docs", "ICONPACKS.md"), | ||
await format(template.replace(/{{}}/g, packs.join("\n\n")), { | ||
parser: "markdown", | ||
}) | ||
); | ||
|
||
console.timeEnd("Done"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Iconpacks | ||
|
||
Iconpacks change Discord's boring icons to something more fun and exciting. | ||
If you want to create your own iconpack, check out my [Themelings](https://github.com/nexpid/Themelings/tree/data) repo, which tracks Discord's icons and hosts them on GitHub. Just download the icons folder, modify the icons and you're done! | ||
|
||
## List of iconpacks | ||
|
||
{{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"name": "scripts", | ||
"private": true, | ||
"dependencies": { | ||
"prettier": "^3.0.1" | ||
} | ||
} | ||
{ | ||
"name": "scripts", | ||
"private": true, | ||
"dependencies": { | ||
"prettier": "^3.0.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.