Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
dbb2b06
0.0.1
atorber Nov 28, 2023
f9a58cb
0.0.2
atorber Nov 28, 2023
9f35471
0.0.3
atorber Nov 28, 2023
8ba13b8
0.1.0
atorber Nov 28, 2023
f9d5e49
0.1.1
atorber Nov 28, 2023
81e733e
Create docker-image.yml
atorber Nov 28, 2023
8085e4a
Update docker-image.yml
atorber Nov 28, 2023
302a3d8
Update docker-image.yml
atorber Nov 28, 2023
af8713e
0.2.0
atorber Nov 28, 2023
4c91bfc
Update login.vue
atorber Nov 28, 2023
6ad43b6
0.3.0
atorber Nov 30, 2023
14b11a4
0.3.0
atorber Nov 30, 2023
c4b3064
Create biuld.yml
atorber Nov 30, 2023
5f4774f
Create s3.yml
atorber Nov 30, 2023
830fd8d
Create static.yml
atorber Nov 30, 2023
4aa0f76
Create release.yml
atorber Nov 30, 2023
c94b9d1
Update README.md
atorber Nov 30, 2023
57fb2be
0.3.1
atorber Nov 30, 2023
cbabf2f
0.3.2
atorber Nov 30, 2023
87f34a4
0.3.2
atorber Dec 1, 2023
e0826a8
0.3.3
atorber Dec 2, 2023
cae68ce
Update socket.ts
atorber Dec 2, 2023
9254a9d
Delete .github/workflows/docker-image.yml
atorber Dec 2, 2023
f6bbcb4
0.4.0
atorber Dec 2, 2023
aa0d5ec
Merge branch 'chatflow'
atorber Dec 2, 2023
a175793
0.5.0
atorber Dec 3, 2023
173c5a9
0.5.0
atorber Dec 3, 2023
e524dec
0.5.1
atorber Dec 7, 2023
c808ab9
0.5.2
atorber Dec 7, 2023
390c6ff
Merge branch 'chatflow'
atorber Dec 7, 2023
6b51c44
Update Dockerfile
atorber Dec 8, 2023
8976d9c
Update Dockerfile
atorber Dec 8, 2023
603bd59
0.6.0
atorber Dec 12, 2023
e58af71
0.6.1
atorber Dec 13, 2023
0c85c51
Merge branch 'chatflow'
atorber Dec 13, 2023
198b0ca
0.6.2
atorber Dec 13, 2023
c080297
Merge branch 'chatflow'
atorber Dec 13, 2023
2970aef
0.6.3
atorber Dec 13, 2023
7afb793
Merge branch 'chatflow'
atorber Dec 13, 2023
ad1d5e6
Update biuld.yml
atorber Dec 13, 2023
74750c6
Merge branch 'chatflow'
atorber Dec 13, 2023
72cb453
Update biuld.yml
atorber Dec 13, 2023
dd3a23e
Update biuld.yml
atorber Dec 13, 2023
3af3fcc
Update biuld.yml
atorber Dec 13, 2023
d1f36ef
Merge branch 'chatflow'
atorber Dec 13, 2023
c6461e4
Update biuld.yml
atorber Dec 13, 2023
192f812
Merge branch 'chatflow'
atorber Dec 13, 2023
e05b226
Update biuld.yml
atorber Dec 13, 2023
4d1f78c
Merge branch 'chatflow'
atorber Dec 13, 2023
f2b0800
Update biuld.yml
atorber Dec 13, 2023
be6d21b
Update biuld.yml
atorber Dec 13, 2023
8795dc9
Update biuld.yml
atorber Dec 13, 2023
423758a
Update biuld.yml
atorber Dec 13, 2023
73d3770
Update biuld.yml
atorber Dec 13, 2023
b32c39f
0.6.4
atorber Dec 13, 2023
a3ebd17
Update biuld.yml
atorber Dec 13, 2023
2d84220
Update biuld.yml
atorber Dec 13, 2023
d332633
Update apply.vue
atorber Dec 13, 2023
206c77f
更新 biuld.yml
atorber Dec 13, 2023
dd9c767
0.6.4
atorber Dec 15, 2023
1777174
Merge branch 'chatflow'
atorber Dec 15, 2023
f933e8b
0.6.4
atorber Dec 15, 2023
8d36be2
Merge branch 'chatflow'
atorber Dec 15, 2023
1d58a9f
Update remote.yml
atorber Dec 15, 2023
a031d6e
更新actions
atorber Dec 15, 2023
0d9db04
部署到github page
atorber Dec 15, 2023
10ce80a
Update Build-and-Deploy-to-GitHub-Pages.yml
atorber Dec 15, 2023
3f3a363
Delete .github/workflows/Deploy-static-content-to-Pages.yml
atorber Dec 15, 2023
0304b23
0.6.5
atorber Dec 16, 2023
1f28220
Merge branch 'main' of https://github.com/atorber/chatflow-console
atorber Dec 16, 2023
2f30e27
Create LICENSE
atorber Dec 18, 2023
1ffb761
Update README.md
atorber Dec 18, 2023
6d351f9
0.6.5增加Copilot助手UI
atorber Dec 19, 2023
0062d07
Update README.md
atorber Jan 16, 2024
28f1b0b
0.6.6 增加coplit
atorber Jan 19, 2024
e744e1d
0.6.7 修复列表不显示问题
atorber Mar 22, 2024
c65376f
Update .gitignore
atorber Sep 26, 2024
06a48fe
Update connect.ts
atorber Oct 18, 2024
00371bb
更新环境配置,升级版本至0.6.8,调整electron启动端口及依赖
atorber Nov 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 6 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ ENV = 'development'

VITE_BASE=/
VUE_APP_PREVIEW=false
VITE_BASE_API=https://xxx.xxx.com
VITE_SOCKET_API=wss://xxx.xxx.com
VUE_APP_WEBSITE_NAME="Lumen IM"
# VITE_BASE_API=https://chat.vlist.cc
VITE_BASE_API=http://127.0.0.1:9503
# VITE_SOCKET_API=wss://broker.emqx.io:8084
# VITE_SOCKET_API=mqtt://127.0.0.1:11883
VITE_SOCKET_API=ws://127.0.0.1:18888
VUE_APP_WEBSITE_NAME="ChatFlow"
4 changes: 2 additions & 2 deletions .env.electron
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ ENV = 'production'

VITE_BASE=./
VITE_ROUTER_MODE=hash
VITE_BASE_API=https://xxx.xxx.com
VITE_SOCKET_API=wss://xxx.xxx.com
VITE_BASE_API=https://chat.vlist.cc
VITE_SOCKET_API=wss://broker.emqx.io:8084
4 changes: 2 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ENV = 'production'

VITE_BASE=/
VITE_ROUTER_MODE=history
VITE_BASE_API=https://xxxx.xxx.com
VITE_SOCKET_API=wss://xxxx.xxxx.com
VITE_BASE_API=https://chat.vlist.cc
VITE_SOCKET_API=wss://broker.emqx.io:8084
61 changes: 61 additions & 0 deletions .github/workflows/Build-and-Deploy-to-GitHub-Pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build and Deploy to GitHub Pages

on:
push:
branches:
- main # 触发构建的分支
workflow_dispatch:

permissions: # 添加权限配置
contents: read
id-token: write
pages: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

# 推送构建内容到 gh-pages 分支
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GIT_TOKEN }}
publish_dir: ./dist

# 在 gh-pages 分支上触发 GitHub Pages 部署
deploy-to-pages:
runs-on: ubuntu-latest
needs: build-and-deploy # 确保在构建完成后执行
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v3
with:
ref: 'gh-pages'

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: '.'

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
38 changes: 38 additions & 0 deletions .github/workflows/Build-and-Deploy-to-Remote-Server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Deploy to Remote Server

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

# 使用用户名和密码连接 SSH
- name: Deploy dist to Remote Server
env:
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
run: |
sudo apt-get update
sudo apt-get install -y sshpass
sshpass -p $SSH_PASSWORD scp -o StrictHostKeyChecking=no -r ./dist/* $SSH_USERNAME@$SSH_HOST:/etc/nginx/html/
38 changes: 38 additions & 0 deletions .github/workflows/Build-and-Deploy-to-S3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 编译的静态文件部署到S3存储
name: Node.js Build and Deploy to S3

on:
create:
tags:
- '*'

jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages

steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy to S3
uses: jakejarvis/s3-sync-action@v0.5.1
with:
args: --acl public-read --follow-symlinks --delete --endpoint-url ${{ secrets.CUSTOM_S3_ENDPOINT }}
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }} # Or your AWS region
SOURCE_DIR: 'dist'
58 changes: 58 additions & 0 deletions .github/workflows/Electron-Build-and-Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Electron Build and Release

# 定义触发事件
on:
create:
tags:
- 'release-v*'

# 定义任务
jobs:
build-and-release:
# 运行环境
runs-on: ubuntu-latest
# 步骤
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
# 设置 Node.js 环境
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Dependencies
# 安装依赖
run: npm install
- name: Build Electron App
# 构建 Electron 应用,生成 .dmg 和 .exe 文件
run: npm run electron:build
- name: Create Release
# 创建 GitHub 发布
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload DMG Asset
# 上传 DMG 文件作为发布的一部分
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist_electron/ChatFlow-0.2.0-arm64.dmg
asset_name: ChatFlow-0.2.0-arm64.dmg
asset_content_type: application/octet-stream
- name: Upload EXE Asset
# 上传 EXE 文件作为发布的一部分
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist_electron/ChatFlow Setup 0.2.1.exe
asset_name: ChatFlow Setup 0.2.1.exe
asset_content_type: application/octet-stream
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ makefile
*.njsproj
*.sln
*.sw?
makefile
yarn.lock
package-lock.json
package-lock.json
.env
45 changes: 45 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 第一阶段:使用 Node.js 构建项目
FROM node:latest as builder

# 设置工作目录
WORKDIR /app

# 复制 package.json 和 package-lock.json(如果存在)
COPY package*.json ./

# 安装项目依赖
RUN npm install

# 复制项目文件
COPY . .

# 构建项目
RUN npm run build

# 第二阶段:设置 Nginx
FROM nginx:alpine

# 从 builder 阶段复制构建出的 dist 目录
COPY --from=builder /app/dist /usr/share/nginx/html

# 创建一个自定义的 Nginx 配置文件
RUN echo 'server {\
listen 80;\
server_name localhost;\
\
location / {\
root /usr/share/nginx/html;\
index index.html index.htm;\
try_files $uri $uri/ /index.html;\
}\
\
location /api/v1 {\
proxy_pass http://127.0.0.1:9503;\
}\
}' > /etc/nginx/conf.d/default.conf

# 暴露 80 端口
EXPOSE 80

# 启动 Nginx
CMD ["nginx", "-g", "daemon off;"]
Loading