修改部分规则模块删除无用前端 新增前端界面

This commit is contained in:
zouju
2026-02-06 17:22:22 +08:00
parent 000f8d4bc5
commit a440094138
583 changed files with 26241 additions and 26046 deletions

View File

@@ -0,0 +1,42 @@
/*
* This file is part of the kernelstudio package.
*
* (c) 2014-2025 zlin <admin@kernelstudio.com>
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
import {defineComponent, h, type VNode} from 'vue';
import {ConfigProvider, StyleProvider} from 'ant-design-vue'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
export const Container = defineComponent({
name: 'Container',
setup(_, {slots}) {
const renderContent = (): VNode => {
const themeData = {
algorithm: [],
token: {
// colorPrimary: '#0653bf',
// borderPrimary: 'red',
// colorPrimaryBg: '#e6f7ff', // 按钮等
// colorBgContainer:'#0e2877', // 卡片等
},
components: {},
}
return h(StyleProvider, {}, {
default: () => h(ConfigProvider, {
locale: zhCN,
theme: themeData,
}, {
default: () => slots.default ? slots.default() : null
})
})
}
return () => renderContent()
},
});

View File

@@ -0,0 +1,26 @@
/*
* This file is part of the kernelstudio package.
*
* (c) 2014-2025 zlin <admin@kernelstudio.com>
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
import {defineComponent, h} from 'vue';
import {RouterView} from 'vue-router';
import {Container} from './container'
/**
* 应用入口组件,负责渲染路由视图
* @name Entrypoint
* @component
*/
export const Entrypoint = defineComponent({
name: 'Entrypoint',
setup() {
return () => h(Container, {}, {
default: () => h(RouterView)
});
},
});

View File

@@ -0,0 +1,29 @@
/*
* This file is part of the kernelstudio package.
*
* (c) 2014-2025 zlin <admin@kernelstudio.com>
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
import {defineComponent, h, type VNode} from 'vue';
export const Wrapper = defineComponent({
name: 'Wrapper',
setup(_, {slots}) {
const renderContent = (): VNode => {
return h('div', {
class: [
'ks-wrapper',
'bg-wrapper',
'w-full',
'h-[100vh]'
]
}, {
default: () => slots.default ? slots.default() : null
})
}
return () => renderContent()
},
});