From 8369330053d13e9aae2b44aaeea2b67fcf6c0174 Mon Sep 17 00:00:00 2001 From: Emma Alexia Date: Mon, 16 Oct 2023 21:18:23 -0400 Subject: [PATCH] Move many things over from Knossos (and other rearrangements) (#102) --- docs/components/analytics.md | 2 + lib/assets/branding/404.svg | 74 +++++++++ lib/assets/external/apple.svg | 9 ++ lib/assets/external/bmac.svg | 16 ++ lib/assets/external/discord.svg | 10 ++ lib/assets/external/kofi.svg | 1 + lib/assets/external/opencollective.svg | 1 + lib/assets/external/patreon.svg | 1 + lib/assets/external/paypal.svg | 1 + lib/assets/external/sso/discord.svg | 1 + lib/assets/external/sso/github.svg | 1 + lib/assets/external/sso/gitlab.svg | 6 + lib/assets/external/sso/google.svg | 18 +++ lib/assets/external/sso/microsoft.svg | 1 + lib/assets/external/sso/steam.svg | 4 + lib/assets/external/windows.svg | 3 + lib/assets/icons/check-check.svg | 1 + lib/assets/icons/key.svg | 5 + lib/assets/icons/languages.svg | 1 + lib/assets/icons/list-end.svg | 8 + lib/assets/icons/message.svg | 4 + lib/assets/icons/microphone.svg | 5 + lib/assets/icons/radio-button-checked.svg | 1 + lib/assets/icons/radio-button.svg | 1 + lib/assets/icons/reply.svg | 5 + lib/assets/icons/sort-asc.svg | 8 + lib/assets/icons/sort-desc.svg | 8 + lib/components/base/Avatar.vue | 95 ++++++------ lib/components/base/Badge.vue | 37 +++-- lib/components/base/Button.vue | 2 +- lib/components/base/Card.vue | 2 +- lib/components/base/Checkbox.vue | 2 +- lib/components/base/Chips.vue | 12 +- lib/components/base/ConditionalNuxtLink.vue | 21 +++ lib/components/base/CopyCode.vue | 12 +- lib/components/base/DoubleIcon.vue | 34 +++++ lib/components/base/DropdownSelect.vue | 2 +- lib/components/base/EnvironmentIndicator.vue | 15 +- lib/components/base/FileInput.vue | 2 +- lib/components/base/ModalReport.vue | 140 ------------------ lib/components/base/Notifications.vue | 8 + lib/components/base/OverflowMenu.vue | 3 +- lib/components/base/Pagination.vue | 9 +- lib/components/base/ProjectCard.vue | 15 +- lib/components/base/Promotion.vue | 5 +- lib/components/base/Toggle.vue | 2 - lib/components/brand/AnimatedLogo.vue | 13 +- lib/components/brand/TextLogo.vue | 17 +-- lib/components/{base => chart}/BarChart.vue | 2 +- lib/components/{base => chart}/LineChart.vue | 0 lib/components/{base => chart}/PieChart.vue | 0 lib/components/index.js | 98 ++++++++---- .../ConfirmModal.vue} | 15 +- lib/components/{base => modal}/Modal.vue | 2 +- lib/components/modal/ReportModal.vue | 123 +++++++++++++++ lib/components/{base => modal}/ShareModal.vue | 2 +- lib/components/{base => nav}/Breadcrumbs.vue | 2 +- lib/components/nav/NavItem.vue | 2 +- lib/components/nav/NavStack.vue | 4 - lib/components/search/Categories.vue | 23 +-- lib/components/search/SearchDropdown.vue | 2 +- lib/components/search/SearchFilter.vue | 57 ++++--- lib/helpers/index.js | 2 + lib/helpers/parse.js | 4 +- lib/helpers/projects.js | 109 ++++++++++++++ lib/helpers/users.js | 11 ++ lib/helpers/utils.js | 90 ++++++++++- package.json | 2 +- 68 files changed, 852 insertions(+), 342 deletions(-) create mode 100644 lib/assets/branding/404.svg create mode 100755 lib/assets/external/apple.svg create mode 100644 lib/assets/external/bmac.svg create mode 100644 lib/assets/external/discord.svg create mode 100644 lib/assets/external/kofi.svg create mode 100644 lib/assets/external/opencollective.svg create mode 100644 lib/assets/external/patreon.svg create mode 100644 lib/assets/external/paypal.svg create mode 100644 lib/assets/external/sso/discord.svg create mode 100644 lib/assets/external/sso/github.svg create mode 100644 lib/assets/external/sso/gitlab.svg create mode 100644 lib/assets/external/sso/google.svg create mode 100644 lib/assets/external/sso/microsoft.svg create mode 100644 lib/assets/external/sso/steam.svg create mode 100644 lib/assets/external/windows.svg create mode 100644 lib/assets/icons/check-check.svg create mode 100644 lib/assets/icons/key.svg create mode 100644 lib/assets/icons/languages.svg create mode 100644 lib/assets/icons/list-end.svg create mode 100644 lib/assets/icons/message.svg create mode 100644 lib/assets/icons/microphone.svg create mode 100644 lib/assets/icons/radio-button-checked.svg create mode 100644 lib/assets/icons/radio-button.svg create mode 100644 lib/assets/icons/reply.svg create mode 100644 lib/assets/icons/sort-asc.svg create mode 100644 lib/assets/icons/sort-desc.svg create mode 100644 lib/components/base/ConditionalNuxtLink.vue create mode 100644 lib/components/base/DoubleIcon.vue delete mode 100644 lib/components/base/ModalReport.vue rename lib/components/{base => chart}/BarChart.vue (98%) rename lib/components/{base => chart}/LineChart.vue (100%) rename lib/components/{base => chart}/PieChart.vue (100%) rename lib/components/{base/ModalConfirm.vue => modal/ConfirmModal.vue} (82%) rename lib/components/{base => modal}/Modal.vue (98%) create mode 100644 lib/components/modal/ReportModal.vue rename lib/components/{base => modal}/ShareModal.vue (99%) rename lib/components/{base => nav}/Breadcrumbs.vue (95%) create mode 100644 lib/helpers/projects.js create mode 100644 lib/helpers/users.js diff --git a/docs/components/analytics.md b/docs/components/analytics.md index 0ba7cfcd..22a2a0ec 100644 --- a/docs/components/analytics.md +++ b/docs/components/analytics.md @@ -1,6 +1,7 @@ # Analytics + + ```vue diff --git a/lib/assets/branding/404.svg b/lib/assets/branding/404.svg new file mode 100644 index 00000000..a372dacf --- /dev/null +++ b/lib/assets/branding/404.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/assets/external/apple.svg b/lib/assets/external/apple.svg new file mode 100755 index 00000000..34399ed1 --- /dev/null +++ b/lib/assets/external/apple.svg @@ -0,0 +1,9 @@ + + + + Black Logo Square + Created with Sketch. + + + + diff --git a/lib/assets/external/bmac.svg b/lib/assets/external/bmac.svg new file mode 100644 index 00000000..be7e015e --- /dev/null +++ b/lib/assets/external/bmac.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/lib/assets/external/discord.svg b/lib/assets/external/discord.svg new file mode 100644 index 00000000..a655bf5c --- /dev/null +++ b/lib/assets/external/discord.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/lib/assets/external/kofi.svg b/lib/assets/external/kofi.svg new file mode 100644 index 00000000..932483aa --- /dev/null +++ b/lib/assets/external/kofi.svg @@ -0,0 +1 @@ +Ko-fi \ No newline at end of file diff --git a/lib/assets/external/opencollective.svg b/lib/assets/external/opencollective.svg new file mode 100644 index 00000000..70e5816e --- /dev/null +++ b/lib/assets/external/opencollective.svg @@ -0,0 +1 @@ +Open Collective \ No newline at end of file diff --git a/lib/assets/external/patreon.svg b/lib/assets/external/patreon.svg new file mode 100644 index 00000000..13b742d0 --- /dev/null +++ b/lib/assets/external/patreon.svg @@ -0,0 +1 @@ + diff --git a/lib/assets/external/paypal.svg b/lib/assets/external/paypal.svg new file mode 100644 index 00000000..a5da5a46 --- /dev/null +++ b/lib/assets/external/paypal.svg @@ -0,0 +1 @@ +PayPal \ No newline at end of file diff --git a/lib/assets/external/sso/discord.svg b/lib/assets/external/sso/discord.svg new file mode 100644 index 00000000..5acd1326 --- /dev/null +++ b/lib/assets/external/sso/discord.svg @@ -0,0 +1 @@ + diff --git a/lib/assets/external/sso/github.svg b/lib/assets/external/sso/github.svg new file mode 100644 index 00000000..f84e184e --- /dev/null +++ b/lib/assets/external/sso/github.svg @@ -0,0 +1 @@ + diff --git a/lib/assets/external/sso/gitlab.svg b/lib/assets/external/sso/gitlab.svg new file mode 100644 index 00000000..5384280f --- /dev/null +++ b/lib/assets/external/sso/gitlab.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/lib/assets/external/sso/google.svg b/lib/assets/external/sso/google.svg new file mode 100644 index 00000000..f91fb516 --- /dev/null +++ b/lib/assets/external/sso/google.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/lib/assets/external/sso/microsoft.svg b/lib/assets/external/sso/microsoft.svg new file mode 100644 index 00000000..b21feea9 --- /dev/null +++ b/lib/assets/external/sso/microsoft.svg @@ -0,0 +1 @@ +MS-SymbolLockup diff --git a/lib/assets/external/sso/steam.svg b/lib/assets/external/sso/steam.svg new file mode 100644 index 00000000..414d6c18 --- /dev/null +++ b/lib/assets/external/sso/steam.svg @@ -0,0 +1,4 @@ + + + + diff --git a/lib/assets/external/windows.svg b/lib/assets/external/windows.svg new file mode 100644 index 00000000..9fd544f0 --- /dev/null +++ b/lib/assets/external/windows.svg @@ -0,0 +1,3 @@ + + + diff --git a/lib/assets/icons/check-check.svg b/lib/assets/icons/check-check.svg new file mode 100644 index 00000000..d3c06bd9 --- /dev/null +++ b/lib/assets/icons/check-check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/assets/icons/key.svg b/lib/assets/icons/key.svg new file mode 100644 index 00000000..7449c3f7 --- /dev/null +++ b/lib/assets/icons/key.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/lib/assets/icons/languages.svg b/lib/assets/icons/languages.svg new file mode 100644 index 00000000..72ed7aee --- /dev/null +++ b/lib/assets/icons/languages.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/assets/icons/list-end.svg b/lib/assets/icons/list-end.svg new file mode 100644 index 00000000..06ded6da --- /dev/null +++ b/lib/assets/icons/list-end.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/lib/assets/icons/message.svg b/lib/assets/icons/message.svg new file mode 100644 index 00000000..7b092e81 --- /dev/null +++ b/lib/assets/icons/message.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/lib/assets/icons/microphone.svg b/lib/assets/icons/microphone.svg new file mode 100644 index 00000000..a63b9967 --- /dev/null +++ b/lib/assets/icons/microphone.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/lib/assets/icons/radio-button-checked.svg b/lib/assets/icons/radio-button-checked.svg new file mode 100644 index 00000000..6571ac46 --- /dev/null +++ b/lib/assets/icons/radio-button-checked.svg @@ -0,0 +1 @@ + diff --git a/lib/assets/icons/radio-button.svg b/lib/assets/icons/radio-button.svg new file mode 100644 index 00000000..c2e74a31 --- /dev/null +++ b/lib/assets/icons/radio-button.svg @@ -0,0 +1 @@ + diff --git a/lib/assets/icons/reply.svg b/lib/assets/icons/reply.svg new file mode 100644 index 00000000..b308a45d --- /dev/null +++ b/lib/assets/icons/reply.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/lib/assets/icons/sort-asc.svg b/lib/assets/icons/sort-asc.svg new file mode 100644 index 00000000..859fb6e6 --- /dev/null +++ b/lib/assets/icons/sort-asc.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/lib/assets/icons/sort-desc.svg b/lib/assets/icons/sort-desc.svg new file mode 100644 index 00000000..2df48277 --- /dev/null +++ b/lib/assets/icons/sort-desc.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/lib/components/base/Avatar.vue b/lib/components/base/Avatar.vue index e5f01e65..e4b852e5 100644 --- a/lib/components/base/Avatar.vue +++ b/lib/components/base/Avatar.vue @@ -4,7 +4,7 @@ ref="img" :class="`avatar size-${size} ${circle ? 'circle' : ''} ${noShadow ? 'no-shadow' : ''} ${ pixelated ? 'pixelated' : '' - }`" + } ${raised ? 'raised' : ''}`" :src="src" :alt="alt" :loading="loading" @@ -12,7 +12,9 @@ /> - - + - - + + + - + - + - + - - + + + + + + + + + + + + @@ -39,7 +50,8 @@ import { CheckIcon, LockIcon, CalendarIcon, -} from '@/components' + capitalizeString, +} from '@' defineProps({ type: { @@ -52,7 +64,6 @@ defineProps({ }, }) - diff --git a/lib/components/base/DropdownSelect.vue b/lib/components/base/DropdownSelect.vue index b41fe6d8..e77428cd 100644 --- a/lib/components/base/DropdownSelect.vue +++ b/lib/components/base/DropdownSelect.vue @@ -61,7 +61,7 @@ diff --git a/lib/components/base/FileInput.vue b/lib/components/base/FileInput.vue index ffb463c2..6d85cfd0 100644 --- a/lib/components/base/FileInput.vue +++ b/lib/components/base/FileInput.vue @@ -13,7 +13,7 @@ - - diff --git a/lib/components/base/Notifications.vue b/lib/components/base/Notifications.vue index f2bf2c82..cdd4ad43 100644 --- a/lib/components/base/Notifications.vue +++ b/lib/components/base/Notifications.vue @@ -115,6 +115,14 @@ function stopTimer(notif) { margin: 0; } } + + @media screen and (max-width: 750px) { + bottom: calc(var(--size-mobile-navbar-height, 15px) + 10px) !important; + + &.browse-menu-open { + bottom: calc(var(--size-mobile-navbar-height-expanded, 15px) + 10px) !important; + } + } } .notifs-enter-active, diff --git a/lib/components/base/OverflowMenu.vue b/lib/components/base/OverflowMenu.vue index 328c8856..cd5de2ea 100644 --- a/lib/components/base/OverflowMenu.vue +++ b/lib/components/base/OverflowMenu.vue @@ -36,8 +36,7 @@ + diff --git a/lib/components/base/Toggle.vue b/lib/components/base/Toggle.vue index 779285f1..aeb01433 100644 --- a/lib/components/base/Toggle.vue +++ b/lib/components/base/Toggle.vue @@ -33,5 +33,3 @@ export default { }, } - - diff --git a/lib/components/brand/AnimatedLogo.vue b/lib/components/brand/AnimatedLogo.vue index 64546272..e6cea1b7 100644 --- a/lib/components/brand/AnimatedLogo.vue +++ b/lib/components/brand/AnimatedLogo.vue @@ -18,8 +18,9 @@ /> - + + @@ -72,12 +71,6 @@ - -