Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
538d618ff3
* Add mentionables integration * fix linting issues * bump version * FIX: Use wizard site model * FIX: apply prettier
19 Zeilen
517 B
Text
19 Zeilen
517 B
Text
// loads files for plugins that have been added via CustomWizard::Field
|
|
<%
|
|
Discourse.unofficial_plugins.each do |plugin|
|
|
plugin_name = plugin.metadata.name
|
|
if require_plugin_assets = CustomWizard::Field.require_assets[plugin_name]
|
|
plugin.each_globbed_asset do |path, is_dir|
|
|
next if path.include? "raw.hbs"
|
|
|
|
if require_plugin_assets.any? { |dir| path.include?(dir) }
|
|
if is_dir
|
|
depend_on(path)
|
|
else
|
|
require_asset(path)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
%>
|