Ursprung
b8329f0fa0
Commit
b7d332e0e5
20 geänderte Dateien mit 43 neuen und 57 gelöschten Zeilen
|
@ -9,6 +9,7 @@
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
<%= preload_script "locales/#{I18n.locale}" %>
|
<%= preload_script "locales/#{I18n.locale}" %>
|
||||||
|
<%= preload_script "ember_jquery" %>
|
||||||
<%= preload_script "wizard-vendor" %>
|
<%= preload_script "wizard-vendor" %>
|
||||||
<%= preload_script "wizard-custom" %>
|
<%= preload_script "wizard-custom" %>
|
||||||
<%= preload_script "wizard-raw-templates" %>
|
<%= preload_script "wizard-raw-templates" %>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
var define, requirejs;
|
var define, requirejs;
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
|
@ -171,7 +173,7 @@ var define, requirejs;
|
||||||
I18n: {
|
I18n: {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
default: I18n,
|
default: I18n,
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
define("message-bus-client", ["exports"], function (__exports__) {
|
define("message-bus-client", ["exports"], function (__exports__) {
|
||||||
__exports__.default = window.MessageBus;
|
__exports__.default = window.MessageBus;
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
<%
|
<%
|
||||||
if @force_ember_debug || Rails.env.development? || Rails.env.test?
|
if @force_ember_debug || Rails.env.development? || Rails.env.test?
|
||||||
require_asset("ember.debug.js")
|
require_asset("ember.debug.js")
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
window.ENV = {};
|
window.ENV = {};
|
||||||
window.EmberENV = window.EmberENV || {};
|
window.EmberENV = window.EmberENV || {};
|
||||||
window.EmberENV.FORCE_JQUERY = true;
|
window.EmberENV.FORCE_JQUERY = true;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
/**!
|
/**!
|
||||||
|
|
||||||
@license
|
@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
|
* jQuery JavaScript Library v3.5.1
|
||||||
* https://jquery.com/
|
* https://jquery.com/
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @popperjs/core v2.10.2 - MIT License
|
* @popperjs/core v2.10.2 - MIT License
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.setPrototypeOf =
|
Object.setPrototypeOf =
|
||||||
Object.setPrototypeOf ||
|
Object.setPrototypeOf ||
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
//= require legacy/handlebars.runtime
|
//= require legacy/handlebars.runtime
|
||||||
//= require handlebars-shim
|
//= require handlebars-shim
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
// Just a wrapper from the standalone browserified virtual-dom
|
// Just a wrapper from the standalone browserified virtual-dom
|
||||||
define("virtual-dom", [], function() {
|
define("virtual-dom", [], function() {
|
||||||
return virtualDom;
|
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){
|
!(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");
|
let createElement = require("./vdom/create-element.js");
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
document.cookie = "destination_url=" + window.location.href + ";path=/";
|
document.cookie = "destination_url=" + window.location.href + ";path=/";
|
||||||
window.location.href = "/login";
|
window.location.href = "/login";
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
let wizard = require("discourse/plugins/discourse-custom-wizard/wizard/application").default.create();
|
let wizard = require("discourse/plugins/discourse-custom-wizard/wizard/application").default.create();
|
||||||
wizard.start();
|
wizard.start();
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
//= require_tree_discourse truth-helpers/addon
|
//= require_tree_discourse truth-helpers/addon
|
||||||
//= require_tree_discourse discourse-common/addon
|
//= require_tree_discourse discourse-common/addon
|
||||||
//= require_tree_discourse select-kit/addon
|
//= require_tree_discourse select-kit/addon
|
||||||
|
@ -58,7 +60,6 @@
|
||||||
//= require ember-addons/fmt
|
//= require ember-addons/fmt
|
||||||
//= require polyfills
|
//= require polyfills
|
||||||
//= require markdown-it-bundle.js
|
//= require markdown-it-bundle.js
|
||||||
//= require legacy/discourse-shims
|
|
||||||
|
|
||||||
//= require ./wizard/application
|
//= require ./wizard/application
|
||||||
//= require ./wizard/router
|
//= require ./wizard/router
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
// loads files for plugins that have been added via CustomWizard::Field
|
// loads files for plugins that have been added via CustomWizard::Field
|
||||||
<%
|
<%
|
||||||
Discourse.unofficial_plugins.each do |plugin|
|
Discourse.unofficial_plugins.each do |plugin|
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
|
// discourse-skip-module
|
||||||
|
|
||||||
<%=
|
<%=
|
||||||
result = ''
|
result = ''
|
||||||
Discourse.unofficial_plugins.each do |plugin|
|
Discourse.unofficial_plugins.each do |plugin|
|
||||||
plugin_name = plugin.metadata.name
|
plugin_name = plugin.metadata.name
|
||||||
|
|
||||||
if plugin_name == 'discourse-custom-wizard' || CustomWizard::Field.require_assets[plugin_name]
|
if plugin_name == 'discourse-custom-wizard' || CustomWizard::Field.require_assets[plugin_name]
|
||||||
|
|
||||||
files = []
|
files = []
|
||||||
|
|
||||||
plugin.each_globbed_asset do |f, is_dir|
|
plugin.each_globbed_asset do |f, is_dir|
|
||||||
files.push(f) if f.include? "hbr"
|
files.push(f) if f.include? "hbr"
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.glob("#{Rails.root}/app/assets/javascripts/discourse/app/templates/*.hbr").each do |f|
|
Dir.glob("#{Rails.root}/app/assets/javascripts/discourse/app/templates/*.hbr").each do |f|
|
||||||
files.push(f)
|
files.push(f)
|
||||||
end
|
end
|
||||||
|
|
||||||
files.each do |f|
|
files.each do |f|
|
||||||
name = File.basename(f, ".hbr")
|
name = File.basename(f, ".hbr")
|
||||||
compiled = Barber::Precompiler.new().compile(File.read(f))
|
compiled = Barber::Precompiler.new().compile(File.read(f))
|
||||||
|
@ -24,7 +26,7 @@ Discourse.unofficial_plugins.each do |plugin|
|
||||||
})();
|
})();
|
||||||
"
|
"
|
||||||
end
|
end
|
||||||
|
|
||||||
result << "
|
result << "
|
||||||
(function() {
|
(function() {
|
||||||
window.__DISCOURSE_RAW_TEMPLATES = requirejs('discourse-common/lib/raw-templates').__DISCOURSE_RAW_TEMPLATES;
|
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/template_include.js
|
||||||
//= require legacy/uppy.js
|
//= require legacy/uppy.js
|
||||||
//= require bootstrap-modal.js
|
//= require bootstrap-modal.js
|
||||||
|
@ -9,4 +10,4 @@
|
||||||
//= require caret_position.js
|
//= require caret_position.js
|
||||||
//= require legacy/popper.js
|
//= require legacy/popper.js
|
||||||
//= require legacy/tippy.umd.js
|
//= require legacy/tippy.umd.js
|
||||||
//= require wizard-shims
|
//= require legacy/discourse-shims.js
|
||||||
|
|
Laden …
In neuem Issue referenzieren