From d1f2fa8d0f596343041858478ded0799f8081532 Mon Sep 17 00:00:00 2001 From: Emma Triphora Date: Sat, 14 Oct 2023 22:24:19 -0400 Subject: [PATCH 1/6] Move many things over from Knossos (and other rearrangements) --- 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/DropdownButton.vue | 2 +- 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 | 19 +-- 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 | 49 ++++-- .../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, 822 insertions(+), 333 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/lib/assets/branding/404.svg b/lib/assets/branding/404.svg new file mode 100644 index 000000000..a372dacfd --- /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 000000000..34399ed18 --- /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 000000000..be7e015eb --- /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 000000000..a655bf5ce --- /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 000000000..932483aa3 --- /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 000000000..70e5816e1 --- /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 000000000..13b742d04 --- /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 000000000..a5da5a46c --- /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 000000000..5acd13260 --- /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 000000000..f84e184e0 --- /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 000000000..5384280fb --- /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 000000000..f91fb5160 --- /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 000000000..b21feea96 --- /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 000000000..414d6c183 --- /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 000000000..9fd544f0e --- /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 000000000..d3c06bd92 --- /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 000000000..7449c3f71 --- /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 000000000..72ed7aeee --- /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 000000000..06ded6da5 --- /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 000000000..7b092e81a --- /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 000000000..a63b99671 --- /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 000000000..6571ac46e --- /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 000000000..c2e74a314 --- /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 000000000..b308a45d5 --- /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 000000000..859fb6e60 --- /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 000000000..2df482776 --- /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 e5f01e654..e4b852e58 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/DropdownButton.vue b/lib/components/base/DropdownButton.vue index dac7cb436..626655e1b 100644 --- a/lib/components/base/DropdownButton.vue +++ b/lib/components/base/DropdownButton.vue @@ -72,7 +72,7 @@ diff --git a/lib/components/base/FileInput.vue b/lib/components/base/FileInput.vue index ffb463c23..6d85cfd0a 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 f2bf2c829..cdd4ad435 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 328c88564..cd5de2ea0 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 779285f1e..aeb01433f 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 64546272f..e6cea1b79 100644 --- a/lib/components/brand/AnimatedLogo.vue +++ b/lib/components/brand/AnimatedLogo.vue @@ -18,8 +18,9 @@ /> - + + @@ -72,12 +71,6 @@ - -