From 24e67c9011096fb34dfffa713adcf209880cd80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 10 Oct 2023 10:57:18 -0400 Subject: [PATCH 1/2] update for nbb3.x bootstrap 5 updates panel is removed switch to card labels have form-label class form-group class removed use spacing via mb-3 btn-default remove use outline button use scss instead of less file --- client/acp/view/rule-create.js | 6 +++--- client/acp/view/rule-details.js | 6 +++--- client/acp/view/rule-form.js | 16 ++++++++-------- client/acp/view/rules.js | 6 +++--- client/acp/view/utils.js | 8 ++++---- plugin.json | 4 ++-- plugin/index.js | 4 +++- style/{forum.less => forum.scss} | 0 8 files changed, 26 insertions(+), 24 deletions(-) rename style/{forum.less => forum.scss} (100%) diff --git a/client/acp/view/rule-create.js b/client/acp/view/rule-create.js index 27dac2e..1fb101a 100644 --- a/client/acp/view/rule-create.js +++ b/client/acp/view/rule-create.js @@ -8,9 +8,9 @@ export const RuleCreate = props => { let valid = isRuleValid(props.rule.name, props.rule.displayName, props.rule.regex, props.rule.replacement); return ( -
-
Create Rule
-
+
+
Create Rule
+
props.newRuleFieldWillChange(property, value)} {...props}/> diff --git a/client/acp/view/rule-details.js b/client/acp/view/rule-details.js index b372e3a..281bfe3 100644 --- a/client/acp/view/rule-details.js +++ b/client/acp/view/rule-details.js @@ -7,9 +7,9 @@ export const RuleDetails = props => { let name = 'Rule: ' + props.rule.displayName; return ( -
-
{name}
-
+
+
{name}
+
props.fieldWillChange(props.rule, property, value)} {...props}/> diff --git a/client/acp/view/rule-form.js b/client/acp/view/rule-form.js index 689188f..b7fead7 100644 --- a/client/acp/view/rule-form.js +++ b/client/acp/view/rule-form.js @@ -5,8 +5,8 @@ export const RuleForm = props => {
-
- +
+ {
-
- +
+ {
-
- +
+ {
-
- +
+