Ursprung
b8329f0fa0
Commit
b7d332e0e5
20 geänderte Dateien mit 43 neuen und 57 gelöschten Zeilen
|
@ -9,6 +9,7 @@
|
|||
<%- end %>
|
||||
|
||||
<%= preload_script "locales/#{I18n.locale}" %>
|
||||
<%= preload_script "ember_jquery" %>
|
||||
<%= preload_script "wizard-vendor" %>
|
||||
<%= preload_script "wizard-custom" %>
|
||||
<%= preload_script "wizard-raw-templates" %>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
var define, requirejs;
|
||||
|
||||
(function () {
|
||||
|
@ -171,7 +173,7 @@ var define, requirejs;
|
|||
I18n: {
|
||||
// eslint-disable-next-line
|
||||
default: I18n,
|
||||
},
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
define("message-bus-client", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.MessageBus;
|
||||
});
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
<%
|
||||
if @force_ember_debug || Rails.env.development? || Rails.env.test?
|
||||
require_asset("ember.debug.js")
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
window.ENV = {};
|
||||
window.EmberENV = window.EmberENV || {};
|
||||
window.EmberENV.FORCE_JQUERY = true;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
/**!
|
||||
|
||||
@license
|
||||
|
|
2
assets/javascripts/legacy/jquery.js
gevendort
2
assets/javascripts/legacy/jquery.js
gevendort
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
/*!
|
||||
* jQuery JavaScript Library v3.5.1
|
||||
* https://jquery.com/
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
/**
|
||||
* @popperjs/core v2.10.2 - MIT License
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
/* eslint-disable */
|
||||
Object.setPrototypeOf =
|
||||
Object.setPrototypeOf ||
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
// discourse-skip-module
|
||||
|
||||
//= require legacy/handlebars.runtime
|
||||
//= require handlebars-shim
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
// Just a wrapper from the standalone browserified virtual-dom
|
||||
define("virtual-dom", [], function() {
|
||||
return virtualDom;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
!(function(e){if("object"===typeof exports&&"undefined"!==typeof module){module.exports=e();}else if("function"===typeof define&&define.amd){define([],e);}else{let f;"undefined"!==typeof window?f=window:"undefined"!==typeof global?f=global:"undefined"!==typeof self&&(f=self),f.virtualDom=e();}})(function(){let define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){let a=typeof require==="function"&&require;if(!u&&a){return a(o,!0);}if(i){return i(o,!0);}let f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f;}let l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){let n=t[o][1][e];return s(n?n:e);},l,l.exports,e,t,n,r);}return n[o].exports;}var i=typeof require==="function"&&require;for(let o=0;o<r.length;o++){s(r[o]);}return s;})({1:[function(require,module,exports){
|
||||
let createElement = require("./vdom/create-element.js");
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
(function () {
|
||||
document.cookie = "destination_url=" + window.location.href + ";path=/";
|
||||
window.location.href = "/login";
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
(function () {
|
||||
let wizard = require("discourse/plugins/discourse-custom-wizard/wizard/application").default.create();
|
||||
wizard.start();
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
//= require_tree_discourse truth-helpers/addon
|
||||
//= require_tree_discourse discourse-common/addon
|
||||
//= require_tree_discourse select-kit/addon
|
||||
|
@ -58,7 +60,6 @@
|
|||
//= require ember-addons/fmt
|
||||
//= require polyfills
|
||||
//= require markdown-it-bundle.js
|
||||
//= require legacy/discourse-shims
|
||||
|
||||
//= require ./wizard/application
|
||||
//= require ./wizard/router
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
// loads files for plugins that have been added via CustomWizard::Field
|
||||
<%
|
||||
Discourse.unofficial_plugins.each do |plugin|
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
// discourse-skip-module
|
||||
|
||||
<%=
|
||||
result = ''
|
||||
Discourse.unofficial_plugins.each do |plugin|
|
||||
plugin_name = plugin.metadata.name
|
||||
|
||||
|
||||
if plugin_name == 'discourse-custom-wizard' || CustomWizard::Field.require_assets[plugin_name]
|
||||
|
||||
|
||||
files = []
|
||||
|
||||
|
||||
plugin.each_globbed_asset do |f, is_dir|
|
||||
files.push(f) if f.include? "hbr"
|
||||
end
|
||||
|
||||
|
||||
Dir.glob("#{Rails.root}/app/assets/javascripts/discourse/app/templates/*.hbr").each do |f|
|
||||
files.push(f)
|
||||
end
|
||||
|
||||
|
||||
files.each do |f|
|
||||
name = File.basename(f, ".hbr")
|
||||
compiled = Barber::Precompiler.new().compile(File.read(f))
|
||||
|
@ -24,7 +26,7 @@ Discourse.unofficial_plugins.each do |plugin|
|
|||
})();
|
||||
"
|
||||
end
|
||||
|
||||
|
||||
result << "
|
||||
(function() {
|
||||
window.__DISCOURSE_RAW_TEMPLATES = requirejs('discourse-common/lib/raw-templates').__DISCOURSE_RAW_TEMPLATES;
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
define("@popperjs/core", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Popper;
|
||||
__exports__.createPopper = window.Popper.createPopper;
|
||||
__exports__.defaultModifiers = window.Popper.defaultModifiers;
|
||||
__exports__.popperGenerator = window.Popper.popperGenerator;
|
||||
});
|
||||
|
||||
define("tippy.js", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.tippy;
|
||||
});
|
||||
|
||||
define("@uppy/core", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Uppy.Core;
|
||||
__exports__.BasePlugin = window.Uppy.Core.BasePlugin;
|
||||
});
|
||||
|
||||
define("@uppy/aws-s3", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Uppy.AwsS3;
|
||||
});
|
||||
|
||||
define("@uppy/aws-s3-multipart", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Uppy.AwsS3Multipart;
|
||||
});
|
||||
|
||||
define("@uppy/xhr-upload", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Uppy.XHRUpload;
|
||||
});
|
||||
|
||||
define("@uppy/drop-target", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Uppy.DropTarget;
|
||||
});
|
||||
|
||||
define("@uppy/utils/lib/delay", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Uppy.Utils.delay;
|
||||
});
|
||||
|
||||
define("@uppy/utils/lib/EventTracker", ["exports"], function (__exports__) {
|
||||
__exports__.default = window.Uppy.Utils.EventTracker;
|
||||
});
|
||||
|
||||
define("@uppy/utils/lib/AbortController", ["exports"], function (__exports__) {
|
||||
__exports__.AbortController =
|
||||
window.Uppy.Utils.AbortControllerLib.AbortController;
|
||||
__exports__.AbortSignal = window.Uppy.Utils.AbortControllerLib.AbortSignal;
|
||||
__exports__.createAbortError =
|
||||
window.Uppy.Utils.AbortControllerLib.createAbortError;
|
||||
});
|
|
@ -1,4 +1,5 @@
|
|||
//= require legacy/ember_jquery
|
||||
// discourse-skip-module
|
||||
|
||||
//= require legacy/template_include.js
|
||||
//= require legacy/uppy.js
|
||||
//= require bootstrap-modal.js
|
||||
|
@ -9,4 +10,4 @@
|
|||
//= require caret_position.js
|
||||
//= require legacy/popper.js
|
||||
//= require legacy/tippy.umd.js
|
||||
//= require wizard-shims
|
||||
//= require legacy/discourse-shims.js
|
||||
|
|
Laden …
In neuem Issue referenzieren