feat: add skills file
This commit is contained in:
9
.npmrc
9
.npmrc
@@ -1,3 +1,8 @@
|
|||||||
# registry=https://registry.npmmirror.com
|
# registry=https://registry.npmmirror.com
|
||||||
electron_mirror=https://npmmirror.com/mirrors/electron/
|
# electron_mirror=https://npmmirror.com/mirrors/electron/
|
||||||
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
|
# electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
|
||||||
|
|
||||||
|
package-import-method=copy
|
||||||
|
shamefully-hoist=true
|
||||||
|
strict-peer-dependencies=false
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="w-[80px] h-full box-border flex flex-col items-center pb-[8px]">
|
<div class="w-[80px] h-full box-border flex flex-col items-center pb-[8px]">
|
||||||
<div :class="['flex flex-col gap-[16px]', { 'mt-auto mb-[8px] shrink-1': item.id === 4 }]"
|
<div :class="['flex flex-col gap-[16px]', { 'mt-auto mb-[8px] shrink-1': item.id === 5 }]"
|
||||||
v-for="(item) in menus" :key="item.id">
|
v-for="(item) in menus" :key="item.id">
|
||||||
<div :class="['cursor-pointer flex flex-col items-center justify-center']" @click="handleClick(item)">
|
<div :class="['cursor-pointer flex flex-col items-center justify-center']" @click="handleClick(item)">
|
||||||
<div :class="['box-border rounded-[16px] p-[8px]', { 'bg-white': item.id === currentId }]">
|
<div :class="['box-border rounded-[16px] p-[8px] hover:bg-white', { 'bg-white': item.id === currentId }]">
|
||||||
<component :is="item.icon" :color="item.id === currentId ? item.activeColor : item.color"
|
<component :is="item.icon" :color="item.id === currentId ? item.activeColor : item.color"
|
||||||
:class="['w-[32px] h-[32px]']" />
|
:class="['w-[32px] h-[32px]]']" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="text-[14px] mt-[4px] mb-[8px]"
|
class="text-[14px] mt-[4px] mb-[8px] hover:text-[#2B7FFF]"
|
||||||
:style="{ color: item.id === currentId ? item.activeColor : item.color }">
|
:style="{ color: item.id === currentId ? item.activeColor : item.color }">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
import { useRouter, useRoute } from 'vue-router'
|
import { useRouter, useRoute } from 'vue-router'
|
||||||
import { menus, type MenuItem } from '@constant/menus'
|
import { menus, type MenuItem } from '../../constant/menus'
|
||||||
|
|
||||||
const currentId = ref(1)
|
const currentId = ref(1)
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { RiHomeLine, RiFileEditLine, RiCpuLine, RiSettingsLine } from '@remixicon/vue'
|
import { RiHomeLine, RiFileEditLine, RiCpuLine, RiSettingsLine, RiPuzzle2Line } from '@remixicon/vue'
|
||||||
|
|
||||||
// 菜单列表申明
|
// 菜单列表申明
|
||||||
export interface MenuItem {
|
export interface MenuItem {
|
||||||
@@ -37,6 +37,14 @@ export const menus: MenuItem[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
|
name: '技能',
|
||||||
|
icon: RiPuzzle2Line,
|
||||||
|
color: '#525866',
|
||||||
|
activeColor: '#2B7FFF',
|
||||||
|
url: '/skills',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
name: '设置',
|
name: '设置',
|
||||||
icon: RiSettingsLine,
|
icon: RiSettingsLine,
|
||||||
color: '#525866',
|
color: '#525866',
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<div class="flex items-center m-2">
|
<div class="flex items-center m-2">
|
||||||
<img class="w-10 h-10 rounded-md" src="@assets/images/login/white_logo.png" />
|
<img class="w-10 h-10 rounded-md" src="@assets/images/login/white_logo.png" />
|
||||||
<div class="font-bold text-gray-80">YINIAN</div>
|
<div class="font-bold text-gray-80">YINIAN</div>
|
||||||
|
<RiSideBarLine class="ml-auto cursor-pointer" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -69,7 +70,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, defineEmits } from 'vue'
|
import { ref, onMounted, defineEmits } from 'vue'
|
||||||
import { RiAddLine, RiArrowRightSLine, RiArrowDownSLine } from '@remixicon/vue'
|
import { RiSideBarLine, RiArrowRightSLine, RiArrowDownSLine } from '@remixicon/vue'
|
||||||
import { getSessionList, deleteSession, updateSession } from '../../api/SessionsApi';
|
import { getSessionList, deleteSession, updateSession } from '../../api/SessionsApi';
|
||||||
|
|
||||||
const deleteDialogVisible = ref(false)
|
const deleteDialogVisible = ref(false)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<layout>
|
<layout>
|
||||||
<div class="bg-white box-border w-full h-full flex rounded-[8px]">
|
<div class="bg-white box-border w-full h-full flex rounded-[16px]">
|
||||||
<SystemConfig @change=onChange />
|
<SystemConfig @change=onChange />
|
||||||
<component :is="currentComponent" />
|
<component :is="currentComponent" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
11
src/pages/skills/index.vue
Normal file
11
src/pages/skills/index.vue
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
<layout>
|
||||||
|
<div class="bg-white box-border w-full h-full flex rounded-[16px]">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</layout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
||||||
@@ -29,6 +29,12 @@ const routes = [
|
|||||||
name: "Knowledge",
|
name: "Knowledge",
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/skills",
|
||||||
|
component: () => import("@src/pages/skills/index.vue"),
|
||||||
|
name: "Skills",
|
||||||
|
meta: { requiresAuth: true },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/setting",
|
path: "/setting",
|
||||||
component: () => import("@src/pages/setting/index.vue"),
|
component: () => import("@src/pages/setting/index.vue"),
|
||||||
|
|||||||
Reference in New Issue
Block a user