Compare commits

..

2 Commits

10 changed files with 711 additions and 510 deletions

View File

@@ -24,7 +24,12 @@ steps:
volumes:
- name: docker-sock
path: /var/run/docker.sock
- name: web-dist
path: /opt/jshERP-web
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 stop jsherp || true
- docker rm jsherp || true
@@ -37,6 +42,9 @@ volumes:
- name: docker-sock
host:
path: /var/run/docker.sock
- name: web-dist
host:
path: /opt/jshERP-web
trigger:
branch:

26
AGENTS.md Normal file
View 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 容器 jsherphost network, 端口 9999
- CI/CDgit 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
View File

@@ -0,0 +1,8 @@
# ERP Dev Agent
专注于 jshERP 开发的 AI 助手。简洁、高效、直接。
- 先分析再动手
- 给出修改方案让用户确认
- 代码修改要精准,不做不必要的改动
- 每次改动都 commitmessage 清晰

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

View File

@@ -26,3 +26,43 @@ i {
background-color: rgba(255, 192, 203, 0.31);
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;
}

View File

@@ -1,5 +1,6 @@
<template>
<div class="footer">
<div class="footer">
<div class="copyright">© 2015-2030 MILESTONE INDUSTRIAL DEVELOPMENT CORPORATION</div>
</div>
</template>

View File

@@ -14,7 +14,7 @@
*/
export default {
primaryColor: '#1890FF', // primary color of ant design
primaryColor: '#00458a', // primary color of ant design
navTheme: 'light', // theme for nav menu
layout: 'sidemenu', // nav menu position: sidemenu or topmenu
contentWidth: 'Fixed', // layout of content: Fluid or Fixed, only works when layout is topmenu

View File

@@ -133,7 +133,7 @@
</div>
<a-button type="link" v-if="showWeixinSpan()">MileStone Co. ERP</a-button>
</a-popover>
&copy; 2015-2030 {{systemTitle}} V3.6
© 2015-2030 MILESTONE INDUSTRIAL DEVELOPMENT CORPORATION
</div>
<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>

File diff suppressed because it is too large Load Diff

View File

@@ -36,7 +36,7 @@ module.exports = {
less: {
modifyVars: {
/* less 变量覆盖,用于自定义 ant design 主题 */
'primary-color': '#1890FF',
'primary-color': '#00458a',
'link-color': '#1890FF',
'border-radius-base': '4px'
},