mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-30 19:23:29 -05:00
Proper Github Link Fix
This commit is contained in:
parent
bef7dc9488
commit
b182b09817
2 changed files with 2 additions and 8 deletions
|
@ -128,7 +128,7 @@ export const globPlugins: (kind: "web" | "discordDesktop" | "vencordDesktop" | "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const folderName = `src/${dir}/${fileName}`.replace(/^src\/plugins\//, "");
|
const folderName = `src/${dir}/${fileName}`;
|
||||||
|
|
||||||
const mod = `p${i}`;
|
const mod = `p${i}`;
|
||||||
code += `import ${mod} from "./${dir}/${fileName.replace(/\.tsx?$/, "")}";\n`;
|
code += `import ${mod} from "./${dir}/${fileName.replace(/\.tsx?$/, "")}";\n`;
|
||||||
|
|
|
@ -207,12 +207,6 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const pluginMeta = PluginMeta[plugin.name];
|
const pluginMeta = PluginMeta[plugin.name];
|
||||||
let link: string;
|
|
||||||
if (pluginMeta.folderName.includes("equicordplugins")) {
|
|
||||||
link = `https://github.com/${gitRemote}/tree/main/${pluginMeta.folderName}`;
|
|
||||||
} else {
|
|
||||||
link = `https://github.com/${gitRemote}/tree/main/src/plugins/${pluginMeta.folderName}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ModalRoot transitionState={transitionState} size={ModalSize.MEDIUM} className="vc-text-selectable">
|
<ModalRoot transitionState={transitionState} size={ModalSize.MEDIUM} className="vc-text-selectable">
|
||||||
|
@ -234,7 +228,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
|
||||||
<div className="vc-settings-modal-links">
|
<div className="vc-settings-modal-links">
|
||||||
<GithubButton
|
<GithubButton
|
||||||
text="View source code"
|
text="View source code"
|
||||||
href={link}
|
href={`https://github.com/${gitRemote}/tree/main/${pluginMeta.folderName}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue