-
-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: goto app-console * chore: build && docker deploy * docs: add readme * feat: add app menus
- Loading branch information
Showing
29 changed files
with
411 additions
and
18 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script lang="ts" setup> | ||
import TopBar from './components/TopBar.vue' | ||
import SideBar from './components/SideBar/index.vue' | ||
</script> | ||
|
||
<template> | ||
<el-container fixed top-0 bottom-0 left-0 right-0> | ||
<el-header relative z-5 style="--el-header-padding: 0;"> | ||
<top-bar /> | ||
</el-header> | ||
|
||
<el-container> | ||
<side-bar /> | ||
|
||
<el-main style="--el-main-padding: 0;" bg-light pt-10 flex> | ||
<el-scrollbar> | ||
<div p-6 h-screen> | ||
<router-view /> | ||
</div> | ||
</el-scrollbar> | ||
</el-main> | ||
</el-container> | ||
</el-container> | ||
</template> |
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,18 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<el-sub-menu index="1"> | ||
<template #title> | ||
<el-icon><location /></el-icon> | ||
<span>Navigator One</span> | ||
</template> | ||
<el-menu-item index="1-1"> | ||
item one one | ||
</el-menu-item> | ||
<el-menu-item index="1-2"> | ||
item one two | ||
</el-menu-item> | ||
</el-sub-menu> | ||
</template> |
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 { useMenuStore } from '~/store' | ||
const router = useRouter() | ||
const menuStore = useMenuStore() | ||
const menus = ref<any>(menuStore.appMenus) | ||
const switchRoute = (item: any) => { | ||
const path = item.path | ||
router.push(path) | ||
} | ||
</script> | ||
|
||
<template> | ||
<el-aside width="200px"> | ||
<el-scrollbar> | ||
<el-menu | ||
h-screen | ||
> | ||
<el-sub-menu v-for="item in menus" :key="item.name" :collapse="false" :index="item.name"> | ||
<template #title> | ||
<el-icon><setting /></el-icon> | ||
<span>{{ item.name }}</span> | ||
</template> | ||
<el-menu-item v-for="child in item.children" :key="child.path" :index="child.path" @click="switchRoute(child)"> | ||
<!-- <el-icon><location /></el-icon> --> | ||
<span>{{ child.name }}</span> | ||
</el-menu-item> | ||
</el-sub-menu> | ||
</el-menu> | ||
</el-scrollbar> | ||
</el-aside> | ||
</template> |
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
21 changes: 21 additions & 0 deletions
21
packages/web/src/pages/app/[appid]/cloudfunction/index.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,21 @@ | ||
<script setup lang="ts"> | ||
import { useAppStore } from '~/store' | ||
const route = useRoute() | ||
const appid = route.params.appid | ||
const appStore = useAppStore() | ||
const app = appStore.currentApp | ||
</script> | ||
|
||
<template> | ||
cloud function index {{ appid }} {{ app }} | ||
</template> | ||
|
||
<route lang="yaml"> | ||
name: cloudFunction | ||
meta: | ||
title: 云函数 | ||
icon: cloud-function | ||
index: 1-0 | ||
</route> |
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,15 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
logs | ||
</template> | ||
|
||
<route lang="yaml"> | ||
name: logs | ||
meta: | ||
title: 云函数日志 | ||
hidden: true | ||
index: 1-1 | ||
</route> |
13 changes: 13 additions & 0 deletions
13
packages/web/src/pages/app/[appid]/cloudfunction/packages.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,13 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
packages | ||
</template> | ||
|
||
<route lang="yaml"> | ||
name: packages | ||
meta: | ||
title: 云函数依赖 | ||
index: 1-2 | ||
</route> |
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,58 @@ | ||
<script setup lang="ts"> | ||
import { useAppStore } from '~/store' | ||
const appStore = useAppStore() | ||
const { | ||
currentApp: app, | ||
appDeployUrlSchema: schema, | ||
appDeployHost: domain, | ||
} = appStore | ||
const getAppUrl = `${schema}://${app.appid}.${domain}` | ||
</script> | ||
|
||
<template> | ||
<div class="welcome"> | ||
欢迎使用 LaF 云开发! | ||
</div> | ||
<div class="introduce row"> | ||
<div class="label"> | ||
使用文档: | ||
</div> | ||
<div class="content"> | ||
<a style="color: blue" target="_blank" href="https://lafjs.github.io/">https://lafjs.github.io/</a> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="label"> | ||
应用名: | ||
</div> | ||
<div class="content"> | ||
{{ app.name }} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="label"> | ||
应用ID: | ||
</div> | ||
<div class="content"> | ||
{{ app.appid }} | ||
</div> | ||
<!-- <i v-clipboard:message="app.appid" v-clipboard:success="onCopy" class="el-icon-document-copy copy-btn" /> --> | ||
</div> | ||
<div class="row"> | ||
<div class="label"> | ||
服务地址: | ||
</div> | ||
<div class="content"> | ||
<a style="color: black; text-decoration: undeline"> {{ getAppUrl }}</a> | ||
<!-- <i v-clipboard:message="getAppUrl()" v-clipboard:success="onCopy" class="el-icon-document-copy copy-btn" /> --> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<route lang="yaml"> | ||
name: dashboard | ||
meta: | ||
title: 欢迎 | ||
index: 0-0 | ||
</route> |
14 changes: 14 additions & 0 deletions
14
packages/web/src/pages/app/[appid]/database/collections.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,14 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
collections | ||
</template> | ||
|
||
<route lang="yaml"> | ||
name: collections | ||
meta: | ||
title: 集合管理 | ||
index: 2-0 | ||
</route> |
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,14 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
policies | ||
</template> | ||
|
||
<route lang="yaml"> | ||
name: policies | ||
meta: | ||
title: 策略管理 | ||
index: 2-1 | ||
</route> |
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,6 @@ | ||
<route lang="yaml"> | ||
name: buckets | ||
meta: | ||
title: 文件管理 | ||
index: 3-0 # menu sort by index | ||
</route> |
Oops, something went wrong.