From cdddc8c9992fbfa4d2f59e1f3bb3d45c1a7cdef1 Mon Sep 17 00:00:00 2001 From: Stanley Owen <69080584+stanleyowen@users.noreply.github.com> Date: Sat, 22 Apr 2023 21:40:13 +0700 Subject: [PATCH 01/22] Convert to `boolean` if possible --- client/src/components/env.component.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/src/components/env.component.tsx b/client/src/components/env.component.tsx index aedce76..c4956d9 100644 --- a/client/src/components/env.component.tsx +++ b/client/src/components/env.component.tsx @@ -88,7 +88,15 @@ const Environment = ({ HOST_DOMAIN }: any) => { let body; if (method === 'delete') body = { [data.key]: null }; - else body = { [data.key]: data.value }; + else + body = { + [data.key]: + data.value === 'true' + ? true + : data.value === 'false' + ? false + : data.value, + }; if (method === 'add' || method === 'update') axios From 53585321f9e1348edba4427dab0e322a6c4a4b5a Mon Sep 17 00:00:00 2001 From: Stanley Owen <69080584+stanleyowen@users.noreply.github.com> Date: Sat, 22 Apr 2023 22:08:25 +0700 Subject: [PATCH 02/22] Added MIT License --- client/LICENSE => LICENSE | 2 +- Privacy.md | 9 +++++++++ client/.eslintrc.yml | 22 +++++++++++----------- client/Privacy.md | 9 --------- 4 files changed, 21 insertions(+), 21 deletions(-) rename client/LICENSE => LICENSE (96%) create mode 100644 Privacy.md delete mode 100644 client/Privacy.md diff --git a/client/LICENSE b/LICENSE similarity index 96% rename from client/LICENSE rename to LICENSE index 504a8af..ebc077d 100644 --- a/client/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Logger Dashboard +Copyright (c) 2023 Edelweiss Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Privacy.md b/Privacy.md new file mode 100644 index 0000000..44e7646 --- /dev/null +++ b/Privacy.md @@ -0,0 +1,9 @@ +**Privacy Policy** + +_Personal Information Collection_ + +Edelweiss collects and stores information to provide our services. + +_Non-Personal Information Collection_ + +Edelweiss collects and stores data which are useful for logging, bugs, and fix crashes. All information sent is anonymous and free of any user or contextual data. diff --git a/client/.eslintrc.yml b/client/.eslintrc.yml index 4ea666c..1136d36 100644 --- a/client/.eslintrc.yml +++ b/client/.eslintrc.yml @@ -1,17 +1,17 @@ env: - browser: true - es2021: true + browser: true + es2021: true extends: - - 'eslint:recommended' - - 'plugin:react/recommended' - - 'plugin:@typescript-eslint/recommended' + - 'eslint:recommended' + - 'plugin:react/recommended' + - 'plugin:@typescript-eslint/recommended' parser: '@typescript-eslint/parser' parserOptions: - ecmaFeatures: - jsx: true - ecmaVersion: 12 - sourceType: module + ecmaFeatures: + jsx: true + ecmaVersion: 12 + sourceType: module plugins: - - react - - '@typescript-eslint' + - react + - '@typescript-eslint' rules: {} diff --git a/client/Privacy.md b/client/Privacy.md deleted file mode 100644 index fc2e953..0000000 --- a/client/Privacy.md +++ /dev/null @@ -1,9 +0,0 @@ -**Privacy Policy** - -_Personal Information Collection_ - -Logger Dashboard collects and stores information to provide our services. - -_Non-Personal Information Collection_ - -Logger Dashboard collects and stores data which are useful for logging, bugs, and fix crashes. All information sent is anonymous and free of any user or contextual data. \ No newline at end of file From 72bca5b7a4ac2a7fafcc5484c82b247863c0b7ea Mon Sep 17 00:00:00 2001 From: Stanley Owen <69080584+stanleyowen@users.noreply.github.com> Date: Sat, 22 Apr 2023 22:09:47 +0700 Subject: [PATCH 03/22] optimized codebase quality --- client/public/index.html | 2 +- client/src/components/about.component.tsx | 29 +++++++------- client/src/components/app.component.tsx | 49 +---------------------- client/src/components/base.component.tsx | 4 -- client/src/components/env.component.tsx | 3 +- client/src/components/home.component.tsx | 23 +++-------- server/routes/line.route.js | 1 - 7 files changed, 22 insertions(+), 89 deletions(-) diff --git a/client/public/index.html b/client/public/index.html index 9a50a03..1260f7b 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -15,7 +15,7 @@ /> - Logger Dashboard + Edelweiss