fix vesktop stuff
This commit is contained in:
parent
93a12833fa
commit
5ae229da31
52 changed files with 148 additions and 82 deletions
15
vesktop/vencordDist/vencordDesktopMain.js
Normal file
15
vesktop/vencordDist/vencordDesktopMain.js
Normal file
File diff suppressed because one or more lines are too long
24
vesktop/vencordDist/vencordDesktopMain.js.LEGAL.txt
Normal file
24
vesktop/vencordDist/vencordDesktopMain.js.LEGAL.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*!
|
||||
* BetterDiscord addon meta parser
|
||||
* Copyright 2023 BetterDiscord contributors
|
||||
* Copyright 2023 Vendicated and Vencord contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/*!
|
||||
* crxToZip
|
||||
* Copyright (c) 2013 Rob Wu <rob@robwu.nl>
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
7
vesktop/vencordDist/vencordDesktopMain.js.map
Normal file
7
vesktop/vencordDist/vencordDesktopMain.js.map
Normal file
File diff suppressed because one or more lines are too long
7
vesktop/vencordDist/vencordDesktopPreload.js
Normal file
7
vesktop/vencordDist/vencordDesktopPreload.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Vencord d73790e
|
||||
// Standalone: true
|
||||
// Platform: Universal
|
||||
// Updater disabled: false
|
||||
"use strict";function a(e,r=300){let n;return function(...d){clearTimeout(n),n=setTimeout(()=>{e(...d)},r)}}var s=require("electron"),m=require("fs"),S=require("path");var o=require("electron");function t(e,...r){return o.ipcRenderer.invoke(e,...r)}function c(e,...r){return o.ipcRenderer.sendSync(e,...r)}var _={},p=c("VencordGetPluginIpcMethodMap");for(let[e,r]of Object.entries(p)){let n=_[e]={};for(let[d,g]of Object.entries(r))n[d]=(...u)=>t(g,...u)}var i={themes:{uploadTheme:(e,r)=>t("VencordUploadTheme",e,r),deleteTheme:e=>t("VencordDeleteTheme",e),getThemesDir:()=>t("VencordGetThemesDir"),getThemesList:()=>t("VencordGetThemesList"),getThemeData:e=>t("VencordGetThemeData",e),getSystemValues:()=>t("VencordGetThemeSystemValues")},updater:{getUpdates:()=>t("VencordGetUpdates"),update:()=>t("VencordUpdate"),rebuild:()=>t("VencordBuild"),getRepo:()=>t("VencordGetRepo")},settings:{get:()=>c("VencordGetSettings"),set:e=>t("VencordSetSettings",e),getSettingsDir:()=>t("VencordGetSettingsDir")},quickCss:{get:()=>t("VencordGetQuickCss"),set:e=>t("VencordSetQuickCss",e),addChangeListener(e){o.ipcRenderer.on("VencordQuickCssUpdate",(r,n)=>e(n))},addThemeChangeListener(e){o.ipcRenderer.on("VencordThemeUpdate",()=>e())},openFile:()=>t("VencordOpenQuickCss"),openEditor:()=>t("VencordOpenMonacoEditor")},native:{getVersions:()=>process.versions,openExternal:e=>t("VencordOpenExternal",e)},pluginHelpers:_};s.contextBridge.exposeInMainWorld("VencordNative",i);if(location.protocol!=="data:"){let e=(0,S.join)(__dirname,"vencordDesktopRenderer.css"),r=document.createElement("style");r.id="vencord-css-core",r.textContent=(0,m.readFileSync)(e,"utf-8"),document.readyState==="complete"?document.documentElement.appendChild(r):document.addEventListener("DOMContentLoaded",()=>document.documentElement.appendChild(r),{once:!0})}else s.contextBridge.exposeInMainWorld("setCss",a(i.quickCss.set)),s.contextBridge.exposeInMainWorld("getCurrentCss",i.quickCss.get),s.contextBridge.exposeInMainWorld("getTheme",()=>"vs-dark");
|
||||
//# sourceURL=VencordPreload
|
||||
//# sourceMappingURL=vencord://vencordDesktopPreload.js.map
|
7
vesktop/vencordDist/vencordDesktopPreload.js.map
Normal file
7
vesktop/vencordDist/vencordDesktopPreload.js.map
Normal file
File diff suppressed because one or more lines are too long
1
vesktop/vencordDist/vencordDesktopRenderer.css
Normal file
1
vesktop/vencordDist/vencordDesktopRenderer.css
Normal file
File diff suppressed because one or more lines are too long
7
vesktop/vencordDist/vencordDesktopRenderer.css.map
Normal file
7
vesktop/vencordDist/vencordDesktopRenderer.css.map
Normal file
File diff suppressed because one or more lines are too long
206
vesktop/vencordDist/vencordDesktopRenderer.js
Normal file
206
vesktop/vencordDist/vencordDesktopRenderer.js
Normal file
File diff suppressed because one or more lines are too long
46
vesktop/vencordDist/vencordDesktopRenderer.js.LEGAL.txt
Normal file
46
vesktop/vencordDist/vencordDesktopRenderer.js.LEGAL.txt
Normal file
|
@ -0,0 +1,46 @@
|
|||
/*!
|
||||
* 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/>.
|
||||
*/
|
||||
/*!
|
||||
* idb-keyval v6.2.0
|
||||
* Copyright 2016, Jake Archibald
|
||||
* Copyright 2022, Vendicated
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/*!
|
||||
* virtual-merge
|
||||
* Copyright (c) 2023 Vendicated
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
/**
|
||||
* apng-canvas v2.1.2
|
||||
*
|
||||
* @copyright 2011-2019 David Mzareulyan
|
||||
* @link https://github.com/davidmz/apng-canvas
|
||||
* @license MIT
|
||||
*/
|
7
vesktop/vencordDist/vencordDesktopRenderer.js.map
Normal file
7
vesktop/vencordDist/vencordDesktopRenderer.js.map
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue