FIX: Missing files from previous commit
This commit is contained in:
parent
8c384ae6b8
commit
e7abba9bbe
|
@ -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/"
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
define("xss", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.filterXSS;
|
||||
});
|
Loading…
Reference in New Issue