-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
97 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
apps/admin/src/layouts/sidebar/components/SidebarFooter.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script lang="ts" setup> | ||
defineOptions({ | ||
name: "SidebarFooter", | ||
}); | ||
withDefaults( | ||
defineProps<{ | ||
collapsed?: boolean; | ||
}>(), | ||
{ collapsed: false }, | ||
); | ||
</script> | ||
|
||
<template> | ||
<div class="sidebar-footer" :class="{ collapsed }" /> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
19 changes: 19 additions & 0 deletions
19
apps/admin/src/layouts/sidebar/components/SidebarHeader.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script lang="ts" setup> | ||
defineOptions({ | ||
name: "SidebarHeader", | ||
}); | ||
const props = defineProps<{ | ||
collapsed?: boolean; | ||
}>(); | ||
const { collapsed } = toRefs(props); | ||
</script> | ||
|
||
<template> | ||
<div class="my-auto flex h-16"> | ||
<CAAppLogo :show-title="!collapsed" /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script setup lang="ts"> | ||
import SidebarHeader from "./components/SidebarHeader.vue"; | ||
import SidebarFooter from "./components/SidebarFooter.vue"; | ||
import { useMenuSetting } from "~/composables"; | ||
import MenuLayout from "~/layouts/sidebar/components/Menu.vue"; | ||
defineOptions({ | ||
name: "SidebarLayout", | ||
}); | ||
const isCollapse = useMenuSetting().getCollapsed; | ||
const sidebar = ref(null); | ||
</script> | ||
|
||
<template> | ||
<aside | ||
id="sidebar" | ||
class="sidebar flex flex-col" | ||
:class="{ collapsed: isCollapse, opened: !isCollapse }" | ||
> | ||
<div ref="sidebar" class="sidebar-wrap grow flex flex-col"> | ||
<SidebarHeader :collapsed="isCollapse" /> | ||
<NScrollbar> | ||
<MenuLayout :collapsed="isCollapse" /> | ||
</NScrollbar> | ||
<SidebarFooter :collapsed="isCollapse" /> | ||
</div> | ||
</aside> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c0565d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
celeris-web-api – ./services/admin
celeris-web-api-kirklin.vercel.app
celeris-web-api-git-master-kirklin.vercel.app
celeris-web-api.vercel.app
c0565d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
celeris-web – ./apps/admin
celeris-web-kirklin.vercel.app
celeris-web.vercel.app
celeris-web-git-master-kirklin.vercel.app