From 512afa553bd2f1074c405fbb4d729a21aaa15bb5 Mon Sep 17 00:00:00 2001 From: Eugene Serb <46799701+eugene-serb@users.noreply.github.com> Date: Sun, 7 Aug 2022 22:36:48 +0300 Subject: [PATCH] - Added page-not-found-404 view. - Modified pattern-item component template and styles. Show now pattern type. Changed sizes. - Modified patterns order. - Made lazy-loads in vue-router. - Made catch-all redirect for 404. - Fixes in input-range. - Cleaned code. --- public/assets/patterns.json | 112 ++++++++++++++++----------------- public/css/styles.css | 4 +- src/App.vue | 4 -- src/components/AppManual.vue | 1 + src/components/PatternItem.vue | 36 ++++++++--- src/router/index.ts | 12 +++- src/views/NotFoundView.vue | 16 +++++ 7 files changed, 112 insertions(+), 73 deletions(-) create mode 100644 src/views/NotFoundView.vue diff --git a/public/assets/patterns.json b/public/assets/patterns.json index e447ece..d60a1da 100644 --- a/public/assets/patterns.json +++ b/public/assets/patterns.json @@ -26,8 +26,21 @@ ] }, { - "name": "Dotted AC", + "name": "Dotted Max", "type": "Simple", + "icon": "๐", + "pattern": [ + { + "startDelay": 200, + "duration": 100, + "weakMagnitude": 1.0, + "strongMagnitude": 1.0 + } + ] + }, + { + "name": "Dotted AC", + "type": "Combined", "icon": "๐คจ", "pattern": [ { @@ -44,19 +57,6 @@ } ] }, - { - "name": "Dotted Max", - "type": "Simple", - "icon": "๐", - "pattern": [ - { - "startDelay": 200, - "duration": 100, - "weakMagnitude": 1.0, - "strongMagnitude": 1.0 - } - ] - }, { "name": "Short Dashed Weak", "type": "Simple", @@ -84,8 +84,21 @@ ] }, { - "name": "Short Dashed AC", + "name": "Short Dashed Max", "type": "Simple", + "icon": "๐", + "pattern": [ + { + "startDelay": 200, + "duration": 250, + "weakMagnitude": 1.0, + "strongMagnitude": 1.0 + } + ] + }, + { + "name": "Short Dashed AC", + "type": "Combined", "icon": "๐คค", "pattern": [ { @@ -102,19 +115,6 @@ } ] }, - { - "name": "Short Dashed Max", - "type": "Simple", - "icon": "๐", - "pattern": [ - { - "startDelay": 200, - "duration": 250, - "weakMagnitude": 1.0, - "strongMagnitude": 1.0 - } - ] - }, { "name": "Long Dashed Weak", "type": "Simple", @@ -142,8 +142,21 @@ ] }, { - "name": "Long Dashed AC", + "name": "Long Dashed Max", "type": "Simple", + "icon": "๐คช", + "pattern": [ + { + "startDelay": 200, + "duration": 500, + "weakMagnitude": 1.0, + "strongMagnitude": 1.0 + } + ] + }, + { + "name": "Long Dashed AC", + "type": "Combined", "icon": "๐", "pattern": [ { @@ -160,19 +173,6 @@ } ] }, - { - "name": "Long Dashed Max", - "type": "Simple", - "icon": "๐คช", - "pattern": [ - { - "startDelay": 200, - "duration": 500, - "weakMagnitude": 1.0, - "strongMagnitude": 1.0 - } - ] - }, { "name": "Constant Weak", "type": "Simple", @@ -200,8 +200,21 @@ ] }, { - "name": "Constant AC", + "name": "Constant Max", "type": "Simple", + "icon": "๐", + "pattern": [ + { + "startDelay": 0, + "duration": 1000, + "weakMagnitude": 1.0, + "strongMagnitude": 1.0 + } + ] + }, + { + "name": "Constant AC", + "type": "Combined", "icon": "๐ต", "pattern": [ { @@ -217,18 +230,5 @@ "strongMagnitude": 1.0 } ] - }, - { - "name": "Constant Max", - "type": "Simple", - "icon": "๐", - "pattern": [ - { - "startDelay": 0, - "duration": 1000, - "weakMagnitude": 1.0, - "strongMagnitude": 1.0 - } - ] } ] \ No newline at end of file diff --git a/public/css/styles.css b/public/css/styles.css index 8fcc6d4..c10637f 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -236,14 +236,14 @@ option { input[type=range] { width: 100%; margin: 8px 0; - padding: 0; + padding: 4px 0; border: 0px solid var(--color-link); -webkit-appearance: none; } input[type=range]:hover { margin: 8px 0; - padding: 0; + padding: 4px 0; border: 0px solid var(--color-link-hover); } diff --git a/src/App.vue b/src/App.vue index 471fcd8..b1a79c6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -47,7 +47,3 @@ }); - - diff --git a/src/components/AppManual.vue b/src/components/AppManual.vue index 0cec669..0e0fbe7 100644 --- a/src/components/AppManual.vue +++ b/src/components/AppManual.vue @@ -79,6 +79,7 @@ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; + align-items: center; } diff --git a/src/components/PatternItem.vue b/src/components/PatternItem.vue index ef3a749..a25bcf3 100644 --- a/src/components/PatternItem.vue +++ b/src/components/PatternItem.vue @@ -6,8 +6,12 @@ ]"> - +