mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-11 23:53:03 -04:00
feat(plugin): FixFileExtensions
This commit is contained in:
parent
2c773ec7d1
commit
0d4cfd5e3b
3 changed files with 67 additions and 20 deletions
|
@ -31,6 +31,21 @@ export interface Dev {
|
|||
badge?: boolean;
|
||||
}
|
||||
|
||||
// No clue where to put these
|
||||
const extensionMap = {
|
||||
"ogg": [".ogv", ".oga", ".ogx", ".ogm", ".spx", ".opus"],
|
||||
"jpg": [".jpg", ".jpeg", ".jfif", ".jpe", ".jif", ".jfi", ".pjpeg", ".pjp"],
|
||||
"svg": [".svgz"],
|
||||
"mp4": [".m4v", ".m4a", ".m4r", ".m4b", ".m4p"],
|
||||
"mov": [".movie", ".qt"],
|
||||
};
|
||||
|
||||
export const reverseExtensionMap = Object.entries(extensionMap).reduce((acc, [target, exts]) => {
|
||||
exts.forEach(ext => acc[ext] = `.${target}`);
|
||||
return acc;
|
||||
}, {} as Record<string, string>);
|
||||
|
||||
|
||||
/**
|
||||
* If you made a plugin or substantial contribution, add yourself here.
|
||||
* This object is used for the plugin author list, as well as to add a contributor badge to your profile.
|
||||
|
@ -928,7 +943,7 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "Leko",
|
||||
id: 108153734541942784n
|
||||
},
|
||||
SomeAspy: {
|
||||
SomeAspy: {
|
||||
name: "SomeAspy",
|
||||
id: 516750892372852754n,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue