diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-22 01:17:06 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-22 01:17:14 +0200 |
commit | f92f3f1a5e2aba1ea6d765fd06b8a76217186085 (patch) | |
tree | 15cc3f745f47a9ed5d2f387669ea810c4c9b898d /src/utils | |
parent | 6769de29cdae4dc4e5b6ab4684380706c336845f (diff) | |
download | Vencord-f92f3f1a5e2aba1ea6d765fd06b8a76217186085.tar.gz Vencord-f92f3f1a5e2aba1ea6d765fd06b8a76217186085.tar.bz2 Vencord-f92f3f1a5e2aba1ea6d765fd06b8a76217186085.zip |
Add license headers
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/ChangeList.ts | 18 | ||||
-rw-r--r-- | src/utils/IpcEvents.ts | 18 | ||||
-rw-r--r-- | src/utils/constants.ts | 18 | ||||
-rw-r--r-- | src/utils/debounce.ts | 18 | ||||
-rw-r--r-- | src/utils/discord.ts | 18 | ||||
-rw-r--r-- | src/utils/index.ts | 18 | ||||
-rw-r--r-- | src/utils/logger.ts | 18 | ||||
-rw-r--r-- | src/utils/misc.tsx | 18 | ||||
-rw-r--r-- | src/utils/modal.tsx | 18 | ||||
-rw-r--r-- | src/utils/proxyLazy.ts | 18 | ||||
-rw-r--r-- | src/utils/quickCss.ts | 18 | ||||
-rw-r--r-- | src/utils/types.ts | 18 | ||||
-rw-r--r-- | src/utils/updater.ts | 18 |
13 files changed, 234 insertions, 0 deletions
diff --git a/src/utils/ChangeList.ts b/src/utils/ChangeList.ts index a0da8f2..4f6bbb8 100644 --- a/src/utils/ChangeList.ts +++ b/src/utils/ChangeList.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + export class ChangeList<T>{ private set = new Set<T>(); diff --git a/src/utils/IpcEvents.ts b/src/utils/IpcEvents.ts index f518ee1..b773f64 100644 --- a/src/utils/IpcEvents.ts +++ b/src/utils/IpcEvents.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + type Enum<T extends Record<string, string>> = { [k in keyof T]: T[k]; } & { [v in keyof T as T[v]]: v; }; diff --git a/src/utils/constants.ts b/src/utils/constants.ts index a01786a..60d33f8 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + export const WEBPACK_CHUNK = "webpackChunkdiscord_app"; export const REACT_GLOBAL = "Vencord.Webpack.Common.React"; diff --git a/src/utils/debounce.ts b/src/utils/debounce.ts index f001b7b..d9e19de 100644 --- a/src/utils/debounce.ts +++ b/src/utils/debounce.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + export function debounce<T extends Function>(func: T, delay = 300): T { let timeout: NodeJS.Timeout; return function (...args: any[]) { diff --git a/src/utils/discord.ts b/src/utils/discord.ts index 53206bb..a19dd92 100644 --- a/src/utils/discord.ts +++ b/src/utils/discord.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { Guild } from "discord-types/general"; import { ChannelStore, SelectedChannelStore, GuildStore } from "../webpack/common"; diff --git a/src/utils/index.ts b/src/utils/index.ts index c5f4283..4313bb4 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,3 +1,21 @@ +/*! + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + export * from "./ChangeList"; export * from "./debounce"; export * from "./misc"; diff --git a/src/utils/logger.ts b/src/utils/logger.ts index 0dda4bb..309f4db 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + export default class Logger { constructor(public name: string, public color: string) { } diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 66ea202..653f6bf 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { FilterFn, find } from "../webpack"; import { React } from "../webpack/common"; import { proxyLazy } from "./proxyLazy"; diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx index 4c8df6c..3a22bbe 100644 --- a/src/utils/modal.tsx +++ b/src/utils/modal.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { filters } from "../webpack"; import { mapMangledModuleLazy } from "../webpack/webpack"; diff --git a/src/utils/proxyLazy.ts b/src/utils/proxyLazy.ts index a5c0835..0e01540 100644 --- a/src/utils/proxyLazy.ts +++ b/src/utils/proxyLazy.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { makeLazy } from "./misc"; const ProxyDummy = function () { }; diff --git a/src/utils/quickCss.ts b/src/utils/quickCss.ts index 785dd71..02a5c16 100644 --- a/src/utils/quickCss.ts +++ b/src/utils/quickCss.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { addSettingsListener, Settings } from "../api/settings"; import IpcEvents from "./IpcEvents"; diff --git a/src/utils/types.ts b/src/utils/types.ts index 1318799..1916f9b 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import { Command } from "../api/Commands"; // exists to export default definePlugin({...}) diff --git a/src/utils/updater.ts b/src/utils/updater.ts index c2c050e..4b8f4ba 100644 --- a/src/utils/updater.ts +++ b/src/utils/updater.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + import IpcEvents from "./IpcEvents"; import Logger from "./logger"; import { IpcRes } from "./types"; |