FIX: Missing files from previous commit

This commit is contained in:
Robin Ward 2020-09-15 10:59:41 -04:00
parent 8c384ae6b8
commit e7abba9bbe
3 changed files with 11 additions and 6 deletions

View File

@ -82,6 +82,8 @@ module PrettyText
ctx_load(ctx, "#{Rails.root}/app/assets/javascripts/discourse-loader.js")
ctx_load(ctx, "#{Rails.root}/app/assets/javascripts/handlebars-shim.js")
ctx_load(ctx, "vendor/assets/javascripts/lodash.js")
ctx_load(ctx, "vendor/assets/javascripts/xss.min.js")
ctx.load("#{Rails.root}/lib/pretty_text/vendor-shims.js")
ctx_load_manifest(ctx, "pretty-text-bundle.js")
ctx_load_manifest(ctx, "markdown-it-bundle.js")
root_path = "#{Rails.root}/app/assets/javascripts/"

View File

@ -9,16 +9,16 @@ __resetTranslationTree = require("pretty-text/engines/discourse-markdown/emoji")
I18n = {
t(a, b) {
return __helpers.t(a, b);
}
},
};
define("I18n", ["exports"], function(exports) {
define("I18n", ["exports"], function (exports) {
exports.default = I18n;
});
// Formatting doesn't currently need any helper context
define("discourse-common/lib/helpers", ["exports"], function(exports) {
exports.helperContext = function() {
define("discourse-common/lib/helpers", ["exports"], function (exports) {
exports.helperContext = function () {
return {};
};
});
@ -27,10 +27,10 @@ __utils = require("discourse/lib/utilities");
__emojiUnicodeReplacer = null;
__setUnicode = function(replacements) {
__setUnicode = function (replacements) {
let unicodeRegexp = new RegExp(__buildReplacementsList(replacements), "g");
__emojiUnicodeReplacer = function(text) {
__emojiUnicodeReplacer = function (text) {
unicodeRegexp.lastIndex = 0;
let m;
while ((m = unicodeRegexp.exec(text)) !== null) {

View File

@ -0,0 +1,3 @@
define("xss", ["exports"], function (__exports__) {
__exports__.default = window.filterXSS;
});