Skip to content

Commit

Permalink
feat(settings): add settings to side menu (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 authored Dec 19, 2024
1 parent ba94b62 commit f8a875e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/settings-side.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Add settings route in the side menu of toolbar.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"makepkg",
"msvc",
"Nsis",
"pacman",
"pango",
"patchelf",
"persistedstate",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Install Makepkg
run: sudo apt-get update && sudo apt-get install -y makepkg
run: sudo apt-get update && sudo apt-get install -y makepkg pacman
- name: Publish to AUR
run: pnpm publish:aur --version ${{ needs.version-or-publish.outputs.version }}
env:
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion src/components/UniversalToolBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ const userPanelItems = ref<{
{
separator: true
},
{
icon: 'pi pi-cog',
label: 'Settings',
command: () => {
router.push("/settings/profile");
}
},
{
separator: true
},
{
icon: 'pi pi-sign-out',
label: 'Sign out',
Expand Down Expand Up @@ -135,7 +145,8 @@ const toString = (value: any) => {
<div class="bg-gray-100 dark:bg-zinc-900 flex flex-row items-center justify-between w-full py-3 px-5 flex-wrap"
:class="{ 'border-b-[1.2px] border-zinc-300 dark:border-zinc-600 shadow-sm': separateBottom ?? true }">
<div class="inline-flex justify-center items-center">
<img @click="router.push('/')" class="cursor-pointer" :src="themeStore.dark ? '/acm-light.png' : '/acm.png'" width="40"></img>
<img @click="router.push('/')" class="cursor-pointer" :src="themeStore.dark ? '/acm-light.png' : '/acm.png'"
width="40"></img>
<Breadcrumb v-if="path?.length" :model="path" class="!bg-transparent !p-0">
<template #item="{ item }">
<Button v-if="item.link" v-ripple @click="router.push(item.link)" :icon="item.icon"
Expand Down

0 comments on commit f8a875e

Please sign in to comment.