From 8167f6f232535f7ea835633561def0ca97afd719 Mon Sep 17 00:00:00 2001 From: Jai A Date: Tue, 28 Mar 2023 10:34:48 -0700 Subject: [PATCH 1/4] Add navrow + markdown parsing --- docs/.vitepress/config.js | 1 + docs/components/nav-row.md | 47 +++++++ lib/assets/styles/classes.scss | 1 + lib/components/base/FileInput.vue | 2 +- lib/components/base/ModalReport.vue | 2 +- lib/components/base/ProjectCard.vue | 2 +- lib/components/nav/NavRow.vue | 175 ++++++++++++++++++++++----- lib/components/search/Categories.vue | 2 +- lib/helpers/highlight.js | 63 ++++++++++ lib/helpers/index.js | 3 + lib/{components => helpers}/parse.js | 15 ++- lib/{components => helpers}/utils.js | 0 lib/index.js | 1 + package.json | 1 + yarn.lock | 5 + 15 files changed, 280 insertions(+), 40 deletions(-) create mode 100644 docs/components/nav-row.md create mode 100644 lib/helpers/highlight.js create mode 100644 lib/helpers/index.js rename lib/{components => helpers}/parse.js (92%) rename lib/{components => helpers}/utils.js (100%) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index c5a3108a3..0693e692a 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -38,6 +38,7 @@ export default { { text: 'Search Filter', link: '/components/search-filter' }, { text: 'Toggle', link: '/components/toggle' }, { text: 'Promotion', link: '/components/promotion' }, + { text: 'Navigation Row', link: '/components/nav-row' }, ], }, ], diff --git a/docs/components/nav-row.md b/docs/components/nav-row.md new file mode 100644 index 000000000..3e7d9c58b --- /dev/null +++ b/docs/components/nav-row.md @@ -0,0 +1,47 @@ +# NavRow + +Note: the links and animation do not work in the documentation as Vue Router is not used for routing + + + + + +```vue + +``` diff --git a/lib/assets/styles/classes.scss b/lib/assets/styles/classes.scss index e4be2067b..8807e4936 100644 --- a/lib/assets/styles/classes.scss +++ b/lib/assets/styles/classes.scss @@ -609,6 +609,7 @@ a, } a { + cursor: pointer; color: var(--color-link); &:focus-visible, diff --git a/lib/components/base/FileInput.vue b/lib/components/base/FileInput.vue index 9bc463b70..ab2fc0b81 100644 --- a/lib/components/base/FileInput.vue +++ b/lib/components/base/FileInput.vue @@ -7,7 +7,7 @@ - + + diff --git a/lib/components/search/Categories.vue b/lib/components/search/Categories.vue index 267e37720..1315893d7 100644 --- a/lib/components/search/Categories.vue +++ b/lib/components/search/Categories.vue @@ -9,7 +9,7 @@