-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webui): add dep management page
- Loading branch information
Showing
7 changed files
with
117 additions
and
96 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
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,23 @@ | ||
<template> | ||
<k-card class="page-deps" :class="{ authorized: user?.authority >= 4 }" title="依赖管理"> | ||
<table v-if="manager.packages.length"> | ||
<tr> | ||
<th>模块名称</th> | ||
<th>当前版本</th> | ||
<th>最新版本</th> | ||
<th>综合评分</th> | ||
<th>操作</th> | ||
</tr> | ||
<dep-view v-for="remote in manager.packages" :remote="remote"/> | ||
</table> | ||
<p v-else>正在加载……</p> | ||
</k-card> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import DepView from '../dependencies/dep-view.vue' | ||
import { manager } from '../dependencies/manager' | ||
import { user } from '~/client' | ||
</script> |
File renamed without changes.
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,59 @@ | ||
<template> | ||
<k-card class="page-plugins" :class="{ authorized: user?.authority >= 4 }" title="插件列表"> | ||
<div class="table-header plugin-item"> | ||
<span class="title">插件名</span> | ||
<span class="complexity">复杂度</span> | ||
<span class="operation">操作</span> | ||
</div> | ||
<div class="plugin-list root"> | ||
<plugin-view :data="data" v-for="(data) in registry.plugins"/> | ||
</div> | ||
</k-card> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import PluginView from './plugin-view.vue' | ||
import { registry, user } from '~/client' | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import '~/variables'; | ||
.page-plugins { | ||
header { | ||
color: rgba(244, 244, 245, .6); | ||
span { | ||
transition: 0.3s ease; | ||
} | ||
span.inactive:hover { | ||
cursor: pointer; | ||
color: rgba(244, 244, 245, .8); | ||
} | ||
span:not(.inactive) { | ||
color: rgba(244, 244, 245); | ||
} | ||
} | ||
} | ||
.table-header { | ||
font-weight: bold; | ||
border-top: $borderColor 1px solid; | ||
.title { | ||
margin-left: 3rem; | ||
} | ||
} | ||
.page-plugins:not(.authorized) { | ||
.complexity, .operation { | ||
display: none; | ||
} | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.