aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/validation.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/validation.js')
-rw-r--r--frontend/src/validation.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/src/validation.js b/frontend/src/validation.js
new file mode 100644
index 0000000..eac8774
--- /dev/null
+++ b/frontend/src/validation.js
@@ -0,0 +1,8 @@
+
+const validation = {
+ isValidColor: (color) => true, // TODO
+ isValidPort: (port, required) => parseInt(port) > (required ? 0 : -1) && parseInt(port) <= 65565,
+ isValidAddress: (address) => true // TODO
+};
+
+export default validation;