chore: 完善并规范 Bell 上游源码导入 (#62)

This commit is contained in:
QiuSW
2026-08-27 18:26:56 +08:00
parent f5a3dd796b
commit 91befd63a7
36 changed files with 127 additions and 72 deletions
-1
View File
@@ -5,4 +5,3 @@ ENV = 'staging'
# base api
VUE_APP_BASE_API = ''
+1 -1
View File
@@ -1,6 +1,6 @@
name: Build CI
on:
on:
push:
branches: [ master ]
pull_request:
+7 -7
View File
@@ -34,7 +34,7 @@
- 支持 Swagger 文档(基于swaggo)
- 基于 GORM 的数据库存储,可扩展多种类型数据库
- 基于 GORM 的数据库存储,可扩展多种类型数据库
- 配置文件简单的模型映射,快速能够得到想要的配置
@@ -66,7 +66,7 @@
## 准备工作
你需要在本地安装 [go] [gin] [node](http://nodejs.org/) 和 [git](https://git-scm.com/)
你需要在本地安装 [go] [gin] [node](http://nodejs.org/) 和 [git](https://git-scm.com/)
同时配套了系列教程包含视频和文档,如何从下载完成到熟练使用,强烈建议大家先看完这些教程再来实践本项目!!!
@@ -74,9 +74,9 @@
[步骤一 - 基础内容介绍](http://doc.zhangwj.com/go-admin-site/guide/intro/tutorial01.html)
[步骤二 - 实际应用 - 编写增删改查](http://doc.zhangwj.com/go-admin-site/guide/intro/tutorial02.html)
[步骤二 - 实际应用 - 编写增删改查](http://doc.zhangwj.com/go-admin-site/guide/intro/tutorial02.html)
### 手把手教你从入门到放弃 - 视频教程
### 手把手教你从入门到放弃 - 视频教程
[如何启动go-admin](https://www.bilibili.com/video/BV1z5411x7JG)
@@ -141,11 +141,11 @@ cd ./go-admin
# 编译项目
go build
# 修改配置
# 修改配置
# 文件路径 go-admin/config/settings.yml
vi ./config/setting.yml
vi ./config/setting.yml
# 1. 配置文件中修改数据库信息
# 1. 配置文件中修改数据库信息
# 注意: settings.database 下对应的配置数据
# 2. 确认log路径
```
+2 -2
View File
@@ -134,9 +134,9 @@ cd ./go-admin
# Compile the project
go build
# Change setting
# Change setting
# File path go-admin/config/settings.yml
vi ./config/setting.yml
vi ./config/setting.yml
# 1. Modify the database information in the configuration file
# Note: The corresponding configuration data under settings.database
+1 -2
View File
@@ -3,7 +3,7 @@
## 问题描述
编译时出现警告:
```
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated
and will be removed in Dart Sass 2.0.0.
```
@@ -87,4 +87,3 @@ npm run dev
- [Sass Legacy JS API](https://sass-lang.com/d/legacy-js-api)
- [Sass Silencing Deprecations](https://sass-lang.com/documentation/cli/dart-sass/#silencedeprecations)
- [sass-loader v13 文档](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
+35
View File
@@ -0,0 +1,35 @@
const { run } = require('runjs')
const chalk = require('chalk')
const config = require('../vue.config.js')
const rawArgv = process.argv.slice(2)
const args = rawArgv.join(' ')
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
const report = rawArgv.includes('--report')
run(`vue-cli-service build ${args}`)
const port = 9526
const publicPath = config.publicPath
var connect = require('connect')
var serveStatic = require('serve-static')
const app = connect()
app.use(
publicPath,
serveStatic('./dist', {
index: ['index.html', '/']
})
)
app.listen(port, function () {
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
if (report) {
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
}
})
} else {
run(`vue-cli-service build ${args}`)
}
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
-1
View File
@@ -9,4 +9,3 @@ export default {
name: 'App'
}
</script>
-1
View File
@@ -43,4 +43,3 @@ export function delSysApi(data) {
data: data
})
}
-1
View File
@@ -25,4 +25,3 @@ export function delSysLoginlog(data) {
data: data
})
}
-1
View File
@@ -25,4 +25,3 @@ export function delSysOperlog(data) {
data: data
})
}
-1
View File
@@ -43,4 +43,3 @@ export function delPost(postId) {
data: postId
})
}
-1
View File
@@ -132,4 +132,3 @@ export function getUserProfile() {
method: 'get'
})
}
-1
View File
@@ -59,4 +59,3 @@ export function startJob(jobId) {
method: 'get'
})
}
-1
View File
@@ -33,4 +33,3 @@ export function getInfo() {
method: 'get'
})
}
+2 -2
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1"
xmlns="http://www.w3.org/2000/svg"
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter x="-9.4%" y="-6.2%" width="118.8%" height="122.5%" filterUnits="objectBoundingBox" id="filter-1">

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

+2 -2
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1"
xmlns="http://www.w3.org/2000/svg"
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter x="-9.4%" y="-6.2%" width="118.8%" height="122.5%" filterUnits="objectBoundingBox" id="filter-1">

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

-1
View File
@@ -88,4 +88,3 @@ vueSticky.install = Vue => {
}
export default vueSticky
-1
View File
@@ -34,4 +34,3 @@ export default {
mutations,
actions
}
-1
View File
@@ -365,4 +365,3 @@ export function formatJson(filterVal, jsonData) {
}
}))
}
-1
View File
@@ -22,4 +22,3 @@ export default function openWindow(url, title, w, h) {
newWindow.focus()
}
}
@@ -311,4 +311,3 @@ export default {
}
}
</script>
@@ -0,0 +1,36 @@
<template>
<BasicLayout>
<template #wrapper>
<el-card class="box-card">
<div v-loading="loading" :style="'height:'+ height">
<iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
</div>
</el-card>
</template>
</BasicLayout>
</template>
<script>
export default {
components: {
},
data() {
return {
src: process.env.VUE_APP_BASE_API + '/form-generator/index.html',
height: document.documentElement.clientHeight - 94.5 + 'px;',
loading: true
}
},
mounted: function() {
setTimeout(() => {
this.loading = false
}, 230)
const that = this
window.onresize = function temp() {
that.height = document.documentElement.clientHeight - 94.5 + 'px;'
}
}
}
</script>