Compare commits
2 Commits
537d81beb1
...
96249e0833
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96249e0833 | ||
|
|
213b115524 |
@@ -24,7 +24,12 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
- name: web-dist
|
||||||
|
path: /opt/jshERP-web
|
||||||
commands:
|
commands:
|
||||||
|
- rm -rf /opt/jshERP-web/*
|
||||||
|
- cp -r jshERP-web/dist/* /opt/jshERP-web/
|
||||||
|
- chmod -R 755 /opt/jshERP-web/
|
||||||
- docker build -t jsherp:latest .
|
- docker build -t jsherp:latest .
|
||||||
- docker stop jsherp || true
|
- docker stop jsherp || true
|
||||||
- docker rm jsherp || true
|
- docker rm jsherp || true
|
||||||
@@ -37,6 +42,9 @@ volumes:
|
|||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
- name: web-dist
|
||||||
|
host:
|
||||||
|
path: /opt/jshERP-web
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
26
AGENTS.md
Normal file
26
AGENTS.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# ERP 开发助手
|
||||||
|
|
||||||
|
## 角色
|
||||||
|
你是 jshERP(管伊佳ERP)的专属开发助手。
|
||||||
|
|
||||||
|
## 项目信息
|
||||||
|
- 技术栈:SpringBoot 2.0 (JDK 8) + Vue.js + MyBatis + MariaDB + Redis
|
||||||
|
- 代码位置:/root/jshERP
|
||||||
|
- 前端构建:cd /root/jshERP/jshERP-web && npm run build,输出到 /opt/jshERP-web/
|
||||||
|
- 后端构建:cd /root/jshERP/jshERP-boot && mvn clean package -DskipTests
|
||||||
|
- 部署:Docker 容器 jsherp(host network, 端口 9999)
|
||||||
|
- CI/CD:git push 到 Gitea 自动触发 Drone CI 构建
|
||||||
|
|
||||||
|
## 工作流程
|
||||||
|
1. 分析需求
|
||||||
|
2. 阅读相关代码
|
||||||
|
3. 提出修改方案
|
||||||
|
4. 用户确认后执行修改
|
||||||
|
5. git add/commit/push
|
||||||
|
6. Drone CI 自动构建部署
|
||||||
|
|
||||||
|
## 注意事项
|
||||||
|
- 修改代码前先 git status 检查当前状态
|
||||||
|
- 每次修改都要有清晰的 commit message
|
||||||
|
- 前端修改后需要 npm run build
|
||||||
|
- 后端修改后 Drone CI 会自动构建 Docker 镜像并部署
|
||||||
8
SOUL.md
Normal file
8
SOUL.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# ERP Dev Agent
|
||||||
|
|
||||||
|
专注于 jshERP 开发的 AI 助手。简洁、高效、直接。
|
||||||
|
|
||||||
|
- 先分析再动手
|
||||||
|
- 给出修改方案让用户确认
|
||||||
|
- 代码修改要精准,不做不必要的改动
|
||||||
|
- 每次改动都 commit,message 清晰
|
||||||
BIN
jshERP-web/public/static/bg-construction.jpg
Normal file
BIN
jshERP-web/public/static/bg-construction.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 163 KiB |
@@ -26,3 +26,43 @@ i {
|
|||||||
background-color: rgba(255, 192, 203, 0.31);
|
background-color: rgba(255, 192, 203, 0.31);
|
||||||
color:red;
|
color:red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ========== Milestone Theme Override ========== */
|
||||||
|
.header.light, .header.dark, .header {
|
||||||
|
background: #001a3a !important;
|
||||||
|
}
|
||||||
|
.ant-layout-sider {
|
||||||
|
background: #001a3a !important;
|
||||||
|
}
|
||||||
|
.ant-menu-dark, .ant-menu-dark .ant-menu-sub {
|
||||||
|
background: #001a3a !important;
|
||||||
|
}
|
||||||
|
.ant-menu-dark .ant-menu-item-selected {
|
||||||
|
background-color: #00458a !important;
|
||||||
|
border-left: 3px solid #f0c040;
|
||||||
|
}
|
||||||
|
.ant-btn-primary {
|
||||||
|
background-color: #00458a !important;
|
||||||
|
border-color: #00458a !important;
|
||||||
|
}
|
||||||
|
.ant-btn-primary:hover, .ant-btn-primary:focus {
|
||||||
|
background-color: #0077cc !important;
|
||||||
|
border-color: #0077cc !important;
|
||||||
|
}
|
||||||
|
a { color: #00458a; }
|
||||||
|
a:hover { color: #0077cc; }
|
||||||
|
.ant-layout-content {
|
||||||
|
background: #f5f7fa !important;
|
||||||
|
}
|
||||||
|
/* Dashboard card styling */
|
||||||
|
.ant-card {
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 26, 58, 0.08);
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
.ant-card-head-title {
|
||||||
|
color: #00458a !important;
|
||||||
|
}
|
||||||
|
/* Gold accent for active menu */
|
||||||
|
.ant-menu-dark .ant-menu-item-selected > a {
|
||||||
|
color: #f0c040 !important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
|
<div class="copyright">© 2015-2030 MILESTONE INDUSTRIAL DEVELOPMENT CORPORATION</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
primaryColor: '#1890FF', // primary color of ant design
|
primaryColor: '#00458a', // primary color of ant design
|
||||||
navTheme: 'light', // theme for nav menu
|
navTheme: 'light', // theme for nav menu
|
||||||
layout: 'sidemenu', // nav menu position: sidemenu or topmenu
|
layout: 'sidemenu', // nav menu position: sidemenu or topmenu
|
||||||
contentWidth: 'Fixed', // layout of content: Fluid or Fixed, only works when layout is topmenu
|
contentWidth: 'Fixed', // layout of content: Fluid or Fixed, only works when layout is topmenu
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-button type="link" v-if="showWeixinSpan()">MileStone Co. ERP</a-button>
|
<a-button type="link" v-if="showWeixinSpan()">MileStone Co. ERP</a-button>
|
||||||
</a-popover>
|
</a-popover>
|
||||||
© 2015-2030 {{systemTitle}} V3.6
|
© 2015-2030 MILESTONE INDUSTRIAL DEVELOPMENT CORPORATION
|
||||||
</div>
|
</div>
|
||||||
<a-tag v-if="tenant.type==0" color="blue">试用到期:{{tenant.expireTime}}</a-tag>
|
<a-tag v-if="tenant.type==0" color="blue">试用到期:{{tenant.expireTime}}</a-tag>
|
||||||
<a-tag v-if="tenant.type==0" color="blue">试用用户:{{tenant.userCurrentNum}}/{{tenant.userNumLimit}}</a-tag>
|
<a-tag v-if="tenant.type==0" color="blue">试用用户:{{tenant.userCurrentNum}}/{{tenant.userNumLimit}}</a-tag>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -36,7 +36,7 @@ module.exports = {
|
|||||||
less: {
|
less: {
|
||||||
modifyVars: {
|
modifyVars: {
|
||||||
/* less 变量覆盖,用于自定义 ant design 主题 */
|
/* less 变量覆盖,用于自定义 ant design 主题 */
|
||||||
'primary-color': '#1890FF',
|
'primary-color': '#00458a',
|
||||||
'link-color': '#1890FF',
|
'link-color': '#1890FF',
|
||||||
'border-radius-base': '4px'
|
'border-radius-base': '4px'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user