mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
commit
2bd69b87f6
32
.github/workflows/build.yml
vendored
Normal file
32
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Build/release
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out Git repository
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Install Node.js, NPM and Yarn
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
- run: npm run devInstall
|
||||||
|
- run: npm run compile
|
||||||
|
- name: Build/release Electron app
|
||||||
|
uses: samuelmeuli/action-electron-builder@v1
|
||||||
|
with:
|
||||||
|
# GitHub token, automatically provided to the action
|
||||||
|
# (No need to define this secret in the repo settings)
|
||||||
|
github_token: ${{ secrets.github_token }}
|
||||||
|
|
||||||
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||||
|
# release the app after building
|
||||||
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
@ -1,6 +1,6 @@
|
|||||||
export default () => {
|
export default () => {
|
||||||
const v2Loader = document.createElement("div");
|
const v2Loader = document.createElement("div");
|
||||||
v2Loader.className = "bd-loaderv2";
|
v2Loader.className = "bd-loaderv2";
|
||||||
v2Loader.title = "BandagedBD is loading...";
|
v2Loader.title = "LightcordBD is loading...";
|
||||||
document.body.appendChild(v2Loader);
|
document.body.appendChild(v2Loader);
|
||||||
};
|
};
|
@ -54,12 +54,12 @@ Core.prototype.init = async function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (window.ED) {
|
if (window.ED) {
|
||||||
Utils.alert("Not Supported", "BandagedBD does not work with EnhancedDiscord. Please uninstall one of them.");
|
Utils.alert("Not Supported", "LightcordBD does not work with EnhancedDiscord. Please uninstall one of them.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.WebSocket && window.WebSocket.name && window.WebSocket.name.includes("Patched")) {
|
if (window.WebSocket && window.WebSocket.name && window.WebSocket.name.includes("Patched")) {
|
||||||
Utils.alert("Not Supported", "BandagedBD does not work with Powercord. Please uninstall one of them.");
|
Utils.alert("Not Supported", "LightcordBD does not work with Powercord. Please uninstall one of them.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,19 +485,49 @@ Core.prototype.patchMessageHeader = function() {
|
|||||||
if (!children || !author || !author.id)return
|
if (!children || !author || !author.id)return
|
||||||
// if (header && header.className) header.className += " "
|
// if (header && header.className) header.className += " "
|
||||||
if (!Array.isArray(children)) return;
|
if (!Array.isArray(children)) return;
|
||||||
if (author.id === "249746236008169473") { // Rauenzi: BandagedBD Developer
|
if (author.id === "249746236008169473") {
|
||||||
|
// Rauenzi: BandagedBD Developer
|
||||||
children.push(
|
children.push(
|
||||||
BDV2.React.createElement(TooltipWrap, {color: "black", side: "top", text: "BandagedBD Developer"},
|
BDV2.React.createElement(
|
||||||
BDV2.React.createElement(Anchor, {className: "bd-chat-badge", href: "https://github.com/rauenzi/BetterDiscordApp", title: "BandagedBD", target: "_blank"},
|
TooltipWrap,
|
||||||
BDV2.React.createElement(BDLogo, {size: "16px", className: "bd-logo"})
|
{ color: "black", side: "top", text: "BandagedBD Developer" },
|
||||||
|
BDV2.React.createElement(
|
||||||
|
Anchor,
|
||||||
|
{
|
||||||
|
className: "bd-chat-badge",
|
||||||
|
href: "https://github.com/rauenzi/BetterDiscordApp",
|
||||||
|
title: "BandagedBD",
|
||||||
|
target: "_blank",
|
||||||
|
},
|
||||||
|
BDV2.React.createElement(BDLogo, {
|
||||||
|
size: "16px",
|
||||||
|
className: "bd-logo",
|
||||||
|
})
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
); //(props.user.id === "696481194443014174" || props.user.id === "363022107753578496"|| props.user.id === "424639027606585356"){ // Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer, smartfridge: Lightcord Dev
|
||||||
} else if (author.id === "696481194443014174" || author.id === "696003456611385396"){ // Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer
|
} else if (
|
||||||
|
author.id === "696481194443014174" ||
|
||||||
|
author.id === "363022107753578496" ||
|
||||||
|
author.id === "424639027606585356"
|
||||||
|
) {
|
||||||
|
// Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer
|
||||||
children.push(
|
children.push(
|
||||||
BDV2.React.createElement(TooltipWrap, {color: "black", side: "top", text: "Lightcord Developer"},
|
BDV2.React.createElement(
|
||||||
BDV2.React.createElement(Anchor, {className: "bd-chat-badge", href: "https://github.com/Lightcord/Lightcord", title: "Lightcord", target: "_blank"},
|
TooltipWrap,
|
||||||
BDV2.React.createElement(LightcordLogo, {size: "16px", className: "bd-logo"})
|
{ color: "black", side: "top", text: "Lightcord Developer" },
|
||||||
|
BDV2.React.createElement(
|
||||||
|
Anchor,
|
||||||
|
{
|
||||||
|
className: "bd-chat-badge",
|
||||||
|
href: "https://github.com/Lightcord/Lightcord",
|
||||||
|
title: "Lightcord",
|
||||||
|
target: "_blank",
|
||||||
|
},
|
||||||
|
BDV2.React.createElement(LightcordLogo, {
|
||||||
|
size: "16px",
|
||||||
|
className: "bd-logo",
|
||||||
|
})
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -79,6 +79,7 @@ export function checkViruses(hash, data, resultCallback, removeCallback, filenam
|
|||||||
const scrpt = removeComment === 1 ? no_comments : data
|
const scrpt = removeComment === 1 ? no_comments : data
|
||||||
if(test.exec(scrpt)){
|
if(test.exec(scrpt)){
|
||||||
isHarmful = threats[type]
|
isHarmful = threats[type]
|
||||||
|
Utils.showToast(`${hashToUrl[hash].split("/").pop()} failed at test`, test, ". Marked as", threats[type])
|
||||||
console.log(`${hashToUrl[hash].split("/").pop()} failed at test`, test, ". Marked as", threats[type])
|
console.log(`${hashToUrl[hash].split("/").pop()} failed at test`, test, ". Marked as", threats[type])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -93,7 +94,7 @@ export function checkViruses(hash, data, resultCallback, removeCallback, filenam
|
|||||||
hash: hash,
|
hash: hash,
|
||||||
filename
|
filename
|
||||||
}
|
}
|
||||||
|
Utils.showToast(`Found potentially dangerous ${cache[hash].type.toLowerCase()}: ${cache[hash].name}`)
|
||||||
console.log(`Found potentially dangerous ${cache[hash].type.toLowerCase()}: ${cache[hash].name}`)
|
console.log(`Found potentially dangerous ${cache[hash].type.toLowerCase()}: ${cache[hash].name}`)
|
||||||
|
|
||||||
resultCallback(cache[hash])
|
resultCallback(cache[hash])
|
||||||
|
@ -54,15 +54,15 @@ export default class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static log(moduleName, message) {
|
static log(moduleName, message) {
|
||||||
console.log(`%c[BandagedBD]%c [${moduleName}]%c ${message}`, "color: #3a71c1; font-weight: 700;", "color: #3a71c1;", "");
|
console.log(`%c[LightcordBD]%c [${moduleName}]%c ${message}`, "color: #3a71c1; font-weight: 700;", "color: #3a71c1;", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
static warn(moduleName, message) {
|
static warn(moduleName, message) {
|
||||||
console.warn(`%c[BandagedBD]%c [${moduleName}]%c ${message}`, "color: #E8A400; font-weight: 700;", "color: #E8A400;", "");
|
console.warn(`%c[LightcordBD]%c [${moduleName}]%c ${message}`, "color: #E8A400; font-weight: 700;", "color: #E8A400;", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
static err(moduleName, message, error) {
|
static err(moduleName, message, error) {
|
||||||
console.log(`%c[BandagedBD]%c [${moduleName}]%c ${message}`, "color: red; font-weight: 700;", "color: red;", "");
|
console.log(`%c[LightcordBD]%c [${moduleName}]%c ${message}`, "color: red; font-weight: 700;", "color: red;", "");
|
||||||
if (error) {
|
if (error) {
|
||||||
console.groupCollapsed("%cError: " + error.message, "color: red;");
|
console.groupCollapsed("%cError: " + error.message, "color: red;");
|
||||||
console.error(error.stack);
|
console.error(error.stack);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user