Skip to content

Commit

Permalink
start adding global config page + fix
Browse files Browse the repository at this point in the history
* fix missing columns on some form components
* fix raw form rendering
* update globalconfig tests
* add all forms utils and global_config_builder to builder.py
  • Loading branch information
syrk4web committed Jul 23, 2024
1 parent 162e7a4 commit d1cafdc
Show file tree
Hide file tree
Showing 10 changed files with 4,967 additions and 835 deletions.
421 changes: 420 additions & 1 deletion src/ui/builder.py

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/ui/client/dashboard/components/Form/Advanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ const buttonSave = {
color: "success",
size: "normal",
type: "button",
attrs: {
"data-submit-form": JSON.stringify(advancedForm.templateBase),
},
containerClass: "flex justify-center",
iconName: "plus",
};
const filters = [
Expand Down
8 changes: 4 additions & 4 deletions src/ui/client/dashboard/components/Form/Easy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const props = defineProps({
columns: {
type: Object,
required: false,
default: {},
default: { pc: 12, tablet: 12, mobile: 12 },
},
});
Expand Down Expand Up @@ -90,7 +90,7 @@ function setValidity() {
}
const buttonSave = {
id: uuidv4(),
id: `easy-mode-${uuidv4()}`,
text: "action_save",
color: "success",
size: "normal",
Expand All @@ -99,14 +99,14 @@ const buttonSave = {
};
const buttonPrev = {
id: uuidv4(),
id: `easy-mode-${uuidv4()}`,
text: "action_previous",
color: "info",
size: "normal",
};
const buttonNext = {
id: uuidv4(),
id: `easy-mode-${uuidv4()}`,
text: "action_next",
color: "info",
size: "normal",
Expand Down
8 changes: 1 addition & 7 deletions src/ui/client/dashboard/components/Form/Raw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const props = defineProps({
columns: {
type: Object,
required: false,
default: {},
default: { pc: 12, tablet: 12, mobile: 12 },
},
});
Expand Down Expand Up @@ -126,12 +126,6 @@ const buttonSave = {
color: "success",
size: "normal",
containerClass: "flex justify-center",
attrs: data.isValid
? {
"data-submit-form":
data.inp.replace(/\n/g, "") || data.entry.replace(/\n/g, ""),
}
: {},
};
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/ui/client/dashboard/pages/global-config/index.html

Large diffs are not rendered by default.

1,478 changes: 728 additions & 750 deletions src/ui/client/tests/globalconfig.json

Large diffs are not rendered by default.

407 changes: 343 additions & 64 deletions src/ui/client/tests/globalconfig.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ui/client/tests/globalconfig64.txt

Large diffs are not rendered by default.

Loading

0 comments on commit d1cafdc

Please sign in to comment.