From db6f3edfe5a4c266a22fdd198e183aaf3c2e8f9d Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A." Date: Sat, 5 Oct 2024 19:42:45 +0300 Subject: [PATCH] Added initial code to add custom GUID via API and implemented the WebUI form for it. --- frontend/pages/custom/add.vue | 237 ++++++++++++++++++++++++---------- src/API/System/Guids.php | 114 +++++++++++++++- 2 files changed, 279 insertions(+), 72 deletions(-) diff --git a/frontend/pages/custom/add.vue b/frontend/pages/custom/add.vue index 5d74d358..5dde0eaf 100644 --- a/frontend/pages/custom/add.vue +++ b/frontend/pages/custom/add.vue @@ -11,7 +11,7 @@
-
+

Add Custom GUID

@@ -20,21 +20,33 @@
- +

- - - All GUIDs names must start with guid_. For example, - guid_foobar. You cannot use the same name as an existing GUID. - + + The internal GUID reference name. The name must starts with guid, followed by + _, lower case [a-z], 0-9, no space. + For example, guid_imdb.

+
+ +
+ +
+
+

+ + GUID description, For information purposes only. +

+
+
@@ -49,25 +61,8 @@

- - - We currently only support string type. - -

-
- -
- -
- -
-
-

- - - GUID description, For information purposes only. - + + We currently only support string type.

@@ -79,17 +74,28 @@

- - - - A Valid regular expression to check the value GUID value. To test your patterns, you can use this - website - - . - + + + A Valid regular expression to check the value GUID value. To test your patterns, you can use this + website + + .

+
+ +
+ +
+
+

+ + The example to show when invalid value was checked. For example, (number). For + information purposes only. +

+

- - - - The values added here must match the pattern defined above. Example: 123. - Additionally, the pattern also must support / being part of the value. as we used it - for relative GUIDs. There must be a minimum of 1 correct value. - + + + The values added here must match the pattern defined above. Example: 123. + Additionally, the pattern also must support / being part of the value. as we used it + for relative GUIDs. The (number)/1/1 refers to a relative GUID. + There must be a minimum of 1 correct value.

@@ -134,7 +140,8 @@

- - - GUID values with should not match the pattern defined above. Example: abc. There - must be a minimum of 1 incorrect value. - + + GUID values with should not match the pattern defined above. Example: abc. There + must be a minimum of 1 incorrect value.