diff --git a/src/data/changelog.js b/src/data/changelog.js index da452505..989028b8 100644 --- a/src/data/changelog.js +++ b/src/data/changelog.js @@ -9,6 +9,7 @@ export default { "**Everything** is entirely rewritten, for better or worse.", "**Emotes and CustomCSS** can be completely turned off for those not interested. It saves on memory too by not loading those components.", "**Floating editors** for both custom css and plugins/themes are now available. (See video above)", + "**Ace**, the editor from the previous version, has been replaced with **Monaco** which is the editor used in VSCode.", "**Settings panels** are completely new and sleek. They are also highly extensible for potential future features :eyes:", "**Translations** are now integrated starting with only a couple languages, but feel free to contribute your own!", "**Emote menu** now uses React Patching and properly integrates into the new Emoji Picker. (Thanks Strencher#1044!)", @@ -23,7 +24,9 @@ export default { "**Patcher API** was added to `BdApi` under `BdApi.Patcher`. The old `BdApi.monkeyPatch` was patched to use the Patcher as well. This allows plugins and patches to play nice with one another.", "**jQuery** usage was totally eliminated and is now ___deprecated___ for plugins.", "**General performance** improvements throughout the app, from startup to emotes to addons.", - "**Exporting** by plugins is now highly encouraged over trying to match your meta name and class name." + "**Exporting** by plugins is now highly encouraged over trying to match your meta name and class name.", + "**Plugins and Themes** pages have more options for sorting, views and more. The entire panel got a facelift!", + "**Blankslates** have been added all over for that added UX." ] }, { diff --git a/src/data/strings.js b/src/data/strings.js index 0f91fa6e..3534d930 100644 --- a/src/data/strings.js +++ b/src/data/strings.js @@ -231,7 +231,7 @@ export default { compileError: "Could not be compiled.", wasUnloaded: "{{name}} was unloaded.", blankSlateHeader: "You don't have any {{type}}!", - blankSlateMessage: "Grab some from [this website]({{link}}) and add them to your {{type}} folder." + blankSlateMessage: "Grab some from [this website] and add them to your {{type}} folder." }, CustomCSS: { confirmationText: "You have unsaved changes to your Custom CSS. Closing this window will lose all those changes.", diff --git a/src/structs/string.js b/src/structs/string.js index 980af4df..8a7735ab 100644 --- a/src/structs/string.js +++ b/src/structs/string.js @@ -1,7 +1,18 @@ import Utilities from "../modules/utilities"; +const LINK = /\[(.+?)]/; + export default class FormattableString extends String { format(values) { return Utilities.formatString(this, values); } + + replaceLink(callback) { + const match = this.match(LINK); + if (!match) return [this]; + const array = this.split(match[0]); + const element = callback(match[1]); + array.splice(1, 0, element); + return array; + } } \ No newline at end of file diff --git a/src/ui/blankslates/emptyimage.jsx b/src/ui/blankslates/emptyimage.jsx index 36debf51..eed9de71 100644 --- a/src/ui/blankslates/emptyimage.jsx +++ b/src/ui/blankslates/emptyimage.jsx @@ -1,7 +1,6 @@ import {React, WebpackModules} from "modules"; const EmptyImageClasses = WebpackModules.getByProps("emptyImage") || {}; -const MarkdownParser = WebpackModules.getByProps("markdownToReact"); export default class EmptyImage extends React.Component { render() { @@ -11,7 +10,7 @@ export default class EmptyImage extends React.Component { {this.props.title || "You don't have anything!"}