Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed Sep 10, 2024
1 parent 0d60e61 commit 8779e32
Show file tree
Hide file tree
Showing 22 changed files with 600 additions and 222 deletions.
9 changes: 4 additions & 5 deletions app-views/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
AAffix: typeof import('ant-design-vue/es')['Affix']
AButton: typeof import('ant-design-vue/es')['Button']
ALayout: typeof import('ant-design-vue/es')['Layout']
ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent']
ALayoutFooter: typeof import('ant-design-vue/es')['LayoutFooter']
ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader']
ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']
AFloatButton: typeof import('ant-design-vue/es')['FloatButton']
AMenu: typeof import('ant-design-vue/es')['Menu']
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
AProgress: typeof import('ant-design-vue/es')['Progress']
ATabPane: typeof import('ant-design-vue/es')['TabPane']
ATabs: typeof import('ant-design-vue/es')['Tabs']
ATag: typeof import('ant-design-vue/es')['Tag']
}
}
2 changes: 1 addition & 1 deletion app-views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<!-- https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;frame-src *" />
<title>electron demo</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion app-views/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ant-design-vue": "^4.2.3",
"lit": "^3.2.0",
"lodash": "^4.17.21",
"vue": "^3.4.38",
"vue": "^3.5.3",
"vue-router": "4"
}
}
146 changes: 73 additions & 73 deletions app-views/pnpm-lock.yaml

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

40 changes: 1 addition & 39 deletions app-views/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,41 +1,3 @@
<template>
<div class="layout-nav">
<a-menu v-model:selectedKeys="selectedKeys" theme="dark" mode="inline">
<a-menu-item v-for="item in routes" :key="item.name">
<RouterLink :to="item.path">
<span class="nav-text">{{ item.name }}</span>
</RouterLink>
</a-menu-item>
</a-menu>
</div>
<div class="layout-content">
<RouterView />
</div>
<RouterView />
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import { routes } from './route'
const selectedKeys = ref<string[]>([]);
</script>
<style scoped>
.layout-nav {
position: fixed;
width: 200px;
top: 0;
left: 0;
bottom: 0;
& .ant-menu {
height: 100%;
}
}
.layout-content {
margin-left: 200px;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
</style>
24 changes: 24 additions & 0 deletions app-views/src/pages/creator/panel.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div class="page-panel">
<span>{{ name }}</span>
</div>
</template>
<script setup lang="ts">
const { name } = defineProps<{
name: string
}>()
</script>

<style>
.page-panel {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(27, 27, 31);
color: rgba(255, 255, 245, 0.86);
font-size: 20vw;
text-transform: capitalize;
}
</style>
Loading

0 comments on commit 8779e32

Please sign in to comment.