mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 06:03:03 -04:00
AccountPanelServerProfile: Fix plugin not working
This commit is contained in:
parent
c1f19d5288
commit
cb8e8bd407
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ export default definePlugin({
|
||||||
group: true,
|
group: true,
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /let{speaking:\i/,
|
match: /let{ref:\i,speaking:\i/,
|
||||||
replace: "$self.useAccountPanelRef();$&"
|
replace: "$self.useAccountPanelRef();$&"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
import { ILanguageRegistration } from "@vap/shiki";
|
import { ILanguageRegistration } from "@vap/shiki";
|
||||||
|
|
||||||
export const VPC_REPO = "Vap0r1ze/vapcord";
|
export const VPC_REPO = "Vap0r1ze/vapcord";
|
||||||
export const VPC_REPO_COMMIT = "88a7032a59cca40da170926651b08201ea3b965a";
|
export const VPC_REPO_COMMIT = "4d0e4b420fb1e4358852bbd18c804a6f5e54c0d7";
|
||||||
export const vpcRepoAssets = `https://raw.githubusercontent.com/${VPC_REPO}/${VPC_REPO_COMMIT}/assets/shiki-codeblocks`;
|
export const vpcRepoAssets = `https://raw.githubusercontent.com/${VPC_REPO}/${VPC_REPO_COMMIT}/assets/shiki-codeblocks`;
|
||||||
export const vpcRepoGrammar = (fileName: string) => `${vpcRepoAssets}/${fileName}`;
|
export const vpcRepoGrammar = (fileName: string) => `${vpcRepoAssets}/${fileName}`;
|
||||||
export const vpcRepoLanguages = `${vpcRepoAssets}/languages.json`;
|
export const vpcRepoLanguages = `${vpcRepoAssets}/languages.json`;
|
||||||
|
@ -46,7 +46,7 @@ export interface LanguageJson {
|
||||||
export const languages: Record<string, Language> = {};
|
export const languages: Record<string, Language> = {};
|
||||||
|
|
||||||
export const loadLanguages = async () => {
|
export const loadLanguages = async () => {
|
||||||
const langsJson: LanguageJson[] = await fetch(vpcRepoLanguages).then(res => res.json());
|
const langsJson: LanguageJson[] = await fetch(vpcRepoLanguages).then(res => res.ok ? res.json() : []);
|
||||||
const loadedLanguages = Object.fromEntries(
|
const loadedLanguages = Object.fromEntries(
|
||||||
langsJson.map(lang => [lang.id, {
|
langsJson.map(lang => [lang.id, {
|
||||||
...lang,
|
...lang,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue