forked from Strencher/BdBrowser
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Set Webpack devtool to false to disable generation of map files. - Further code formatting. - Added discordmodules.js/utilities.js (ported from BetterDiscord). Exposing and managing the modules in one central location is smarter than doing it on a per-file basis. This also allows for easier updating. - Changed UserSettingsStore to reflect the changes made in BetterDiscord 1.6.2. - Updated .gitignore.
- Loading branch information
Showing
29 changed files
with
839 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/betterdiscord | ||
/node_modules | ||
/dist/*.js.map | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Utilities from "utilities"; | ||
import Webpack from "webpack"; | ||
|
||
export default Utilities.memoizeObject({ | ||
/* Current User Info, State and Settings */ | ||
get UserSettingsStore() { return Webpack.findByProps("getAllSettings", "theme"); }, | ||
|
||
/* User Stores and Utils */ | ||
get UserStore() { return Webpack.findByProps("getCurrentUser"); }, | ||
|
||
/* Electron & Other Internals with Utils */ | ||
get ElectronModule() { return Webpack.findByProps("setBadge"); }, | ||
get Dispatcher() { return Webpack.findByProps("dispatch", "subscribe", "wait", "unsubscribe"); }, | ||
get RouterModule() { return Webpack.findByProps("listeners", "flushRoute"); }, | ||
|
||
/* Other Utils */ | ||
get StorageModule() { return Webpack.findByProps("get", "set", "stringify"); } | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
import process from "./process"; | ||
|
||
export const app = { | ||
getReleaseChannel() { | ||
return globals.releaseChannel; | ||
}, | ||
|
||
getVersion() { | ||
return "1.0.9005" | ||
}, | ||
|
||
async getPath(path) { | ||
switch (path) { | ||
case "appData": | ||
return process.env.APPDATA; | ||
|
||
default: | ||
throw new Error("Cannot find path: " + path); | ||
} | ||
} | ||
}; | ||
|
||
export const globals = { | ||
get releaseChannel() { | ||
if (location.href.includes("canary")) return "canary"; | ||
if (location.href.includes("ptb")) return "ptb"; | ||
return "stable"; | ||
} | ||
} | ||
get releaseChannel() { | ||
if (location.href.includes("canary")) | ||
return "canary"; | ||
|
||
export const app = { | ||
getReleaseChannel() {return globals.releaseChannel;}, | ||
getVersion() {return "1.0.9002"}, | ||
async getPath(path) { | ||
switch (path) { | ||
case "appData": return process.env.APPDATA; | ||
if (location.href.includes("ptb")) | ||
return "ptb"; | ||
|
||
default: throw new Error("Cannot find path: " + path); | ||
} | ||
} | ||
}; | ||
return "stable"; | ||
} | ||
} |
Oops, something went wrong.