Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 01:40:29 +01:00
Update wizard-raw-templates.js.erb
Dieser Commit ist enthalten in:
Ursprung
66dc55ef10
Commit
dc7249cfd2
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
|
@ -20,16 +20,14 @@ Discourse.unofficial_plugins.each do |plugin|
|
||||||
compiled = Barber::Precompiler.new().compile(File.read(f))
|
compiled = Barber::Precompiler.new().compile(File.read(f))
|
||||||
result << "
|
result << "
|
||||||
(function() {
|
(function() {
|
||||||
const { addRawTemplate } = requirejs('discourse-common/lib/raw-templates');
|
requirejs('discourse-common/lib/raw-templates').addRawTemplate(#{compiled});
|
||||||
addRawTemplate(#{compiled});
|
|
||||||
})();
|
})();
|
||||||
"
|
"
|
||||||
end
|
end
|
||||||
|
|
||||||
result << "
|
result << "
|
||||||
(function() {
|
(function() {
|
||||||
const rawTemplates = requirejs('discourse-common/lib/raw-templates');
|
window.__DISCOURSE_RAW_TEMPLATES = requirejs('discourse-common/lib/raw-templates').__DISCOURSE_RAW_TEMPLATES;
|
||||||
window.__DISCOURSE_RAW_TEMPLATES = rawTemplates.__DISCOURSE_RAW_TEMPLATES;
|
|
||||||
})();
|
})();
|
||||||
"
|
"
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren