Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Minor bugfixes
Dieser Commit ist enthalten in:
Ursprung
147b8a787c
Commit
57a19d4f23
6 geänderte Dateien mit 20 neuen und 8 gelöschten Zeilen
|
@ -4,5 +4,9 @@ import DiscourseRoute from "discourse/routes/discourse";
|
||||||
export default DiscourseRoute.extend({
|
export default DiscourseRoute.extend({
|
||||||
model() {
|
model() {
|
||||||
return CustomWizard.all();
|
return CustomWizard.all();
|
||||||
|
},
|
||||||
|
|
||||||
|
setupController(controller, model) {
|
||||||
|
controller.set('wizards', model)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
{{wizard-export wizards=model}}
|
{{wizard-export wizards=wizards}}
|
||||||
{{wizard-import}}
|
{{wizard-import}}
|
||||||
|
|
|
@ -21,8 +21,7 @@
|
||||||
|
|
||||||
<div class="wizard-message">
|
<div class="wizard-message">
|
||||||
{{d-icon 'question-circle'}}
|
{{d-icon 'question-circle'}}
|
||||||
<span>{{i18n 'admin.wizard.message.help'}}</span>
|
|
||||||
|
|
||||||
<a href="https://thepavilion.io/c/knowledge/custom-wizard" target="_blank">
|
<a href="https://thepavilion.io/c/knowledge/custom-wizard" target="_blank">
|
||||||
{{i18n 'admin.wizard.message.documentation'}}
|
{{i18n 'admin.wizard.message.documentation'}}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -19,6 +19,15 @@
|
||||||
.d-icon {
|
.d-icon {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
padding-left: 10px;
|
||||||
|
|
||||||
|
+ a {
|
||||||
|
border-left: 1px solid $primary-medium;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +44,8 @@
|
||||||
h3 {
|
h3 {
|
||||||
margin: 0 7px;
|
margin: 0 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wizard-logs {
|
.wizard-logs {
|
||||||
|
|
|
@ -58,7 +58,6 @@ en:
|
||||||
select: "Select a wizard, or create a new one"
|
select: "Select a wizard, or create a new one"
|
||||||
edit: "You're editing a wizard"
|
edit: "You're editing a wizard"
|
||||||
create: "You're creating a new wizard"
|
create: "You're creating a new wizard"
|
||||||
help: "Need help?"
|
|
||||||
documentation: "Check out the documentation"
|
documentation: "Check out the documentation"
|
||||||
contact: "Contact the developer"
|
contact: "Contact the developer"
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@ class CustomWizard::Log
|
||||||
def self.create(message)
|
def self.create(message)
|
||||||
log_id = SecureRandom.hex(12)
|
log_id = SecureRandom.hex(12)
|
||||||
|
|
||||||
PluginStore.set('custom_wizard',
|
PluginStore.set('custom_wizard_log',
|
||||||
"log_#{log_id}",
|
log_id.to_s,
|
||||||
{
|
{
|
||||||
date: Time.now,
|
date: Time.now,
|
||||||
message: message
|
message: message
|
||||||
|
@ -24,8 +24,7 @@ class CustomWizard::Log
|
||||||
|
|
||||||
def self.list_query
|
def self.list_query
|
||||||
PluginStoreRow.where("
|
PluginStoreRow.where("
|
||||||
plugin_name = 'custom_wizard' AND
|
plugin_name = 'custom_wizard_log' AND
|
||||||
key LIKE 'log_%' AND
|
|
||||||
(value::json->'date') IS NOT NULL
|
(value::json->'date') IS NOT NULL
|
||||||
").order("value::json->>'date' DESC")
|
").order("value::json->>'date' DESC")
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren