Skip to content

Commit

Permalink
Merge pull request #349 from threefoldtech/development_name_validation
Browse files Browse the repository at this point in the history
Fix name validation
  • Loading branch information
AhmedHanafy725 authored May 28, 2023
2 parents bf21ca4 + f525b6c commit 7884910
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/micro_vm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.isAlphanumeric('Name should consist of alphabets & numbers only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_algorand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_casperlabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_discourse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_funkwhale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_mattermost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_node_pilot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_owncloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_peertube.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_presearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_subsquid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_taiga.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_umbrel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down
2 changes: 2 additions & 0 deletions packages/playground/src/weblets/tf_wordpress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
:value="name"
:rules="[
validators.required('Name is required.'),
validators.isAlphanumeric('Name should consist of letters only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name minLength is 2 chars.', 2),
validators.maxLength('Name maxLength is 15 chars.', 15),
]"
Expand Down

0 comments on commit 7884910

Please sign in to comment.