Skip to content

Commit 543954d

Browse files
authored
Merge pull request #1 from qianmoQ/dev-25.0.0
Dev 25.0.0
2 parents fe1892b + 66c1194 commit 543954d

54 files changed

Lines changed: 4965 additions & 517 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish docs via GitHub Pages
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [closed]
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [ 18.x ]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
run: npm install pageforge -g
26+
27+
- name: Build
28+
run: |
29+
cd docs
30+
pageforge build
31+
echo 'codeforge.devlive.org' > dist/CNAME
32+
33+
- name: Deploy
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GH_TOKEN }}
37+
publish_dir: docs/dist

.github/workflows/release.yml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
name: Release
2+
3+
on:
4+
# 新发布触发
5+
release:
6+
types: [published]
7+
8+
# 手动触发
9+
workflow_dispatch:
10+
inputs:
11+
tag:
12+
description: 'Release tag (e.g., v1.0.0)'
13+
required: true
14+
type: string
15+
16+
env:
17+
CARGO_TERM_COLOR: always
18+
NODE_VERSION: '18'
19+
RUST_VERSION: '1.85.0'
20+
PNPM_VERSION: '8'
21+
22+
jobs:
23+
# 构建发布版本
24+
build-release:
25+
name: Build Release
26+
runs-on: ${{ matrix.platform }}
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
platform: [macos-latest, windows-latest]
32+
include:
33+
- platform: macos-latest
34+
os: macos
35+
target: universal-apple-darwin
36+
- platform: windows-latest
37+
os: windows
38+
target: x86_64-pc-windows-msvc
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: ${{ env.NODE_VERSION }}
48+
49+
- name: Setup pnpm
50+
uses: pnpm/action-setup@v2
51+
with:
52+
version: ${{ env.PNPM_VERSION }}
53+
54+
- name: Setup Rust
55+
uses: dtolnay/rust-toolchain@stable
56+
with:
57+
toolchain: ${{ env.RUST_VERSION }}
58+
59+
- name: Add Rust targets (macOS)
60+
if: matrix.platform == 'macos-latest'
61+
run: |
62+
rustup target add aarch64-apple-darwin
63+
rustup target add x86_64-apple-darwin
64+
65+
- name: Rust Cache
66+
uses: Swatinem/rust-cache@v2
67+
with:
68+
workspaces: src-tauri
69+
70+
- name: Install frontend dependencies
71+
run: |
72+
if [ -f "pnpm-lock.yaml" ]; then
73+
pnpm install --frozen-lockfile
74+
else
75+
pnpm install
76+
fi
77+
shell: bash
78+
79+
- name: Build application
80+
run: pnpm tauri build --target ${{ matrix.target }}
81+
82+
- name: Upload build artifacts
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: release-${{ matrix.os }}
86+
path: src-tauri/target/release/bundle/
87+
retention-days: 30
88+
89+
# 创建或更新 GitHub Release
90+
create-release:
91+
name: Create Release
92+
needs: build-release
93+
runs-on: ubuntu-latest
94+
if: github.event_name == 'workflow_dispatch'
95+
96+
steps:
97+
- name: Download all artifacts
98+
uses: actions/download-artifact@v4
99+
with:
100+
path: artifacts
101+
102+
- name: Prepare release assets
103+
run: |
104+
mkdir -p release-assets
105+
find artifacts -name "*.dmg" -exec cp {} release-assets/ \;
106+
find artifacts -name "*.msi" -exec cp {} release-assets/ \;
107+
find artifacts -name "*.exe" -exec cp {} release-assets/ \;
108+
109+
- name: Create Release
110+
uses: softprops/action-gh-release@v1
111+
with:
112+
tag_name: ${{ github.event.inputs.tag }}
113+
name: Release ${{ github.event.inputs.tag }}
114+
files: release-assets/*
115+
env:
116+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
117+
118+
# 更新现有 Release
119+
update-release:
120+
name: Update Release
121+
needs: build-release
122+
runs-on: ubuntu-latest
123+
if: github.event_name == 'release'
124+
125+
steps:
126+
- name: Download all artifacts
127+
uses: actions/download-artifact@v4
128+
with:
129+
path: artifacts
130+
131+
- name: Prepare release assets
132+
run: |
133+
mkdir -p release-assets
134+
find artifacts -name "*.dmg" -exec cp {} release-assets/ \;
135+
find artifacts -name "*.msi" -exec cp {} release-assets/ \;
136+
find artifacts -name "*.exe" -exec cp {} release-assets/ \;
137+
138+
- name: Upload to existing release
139+
uses: softprops/action-gh-release@v1
140+
with:
141+
tag_name: ${{ github.event.release.tag_name }}
142+
files: release-assets/*
143+
env:
144+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ dist-ssr
2525
pnpm-lock.yaml
2626
*.csv
2727
*.json
28+
!config*.json

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ pnpm tauri dev
4343
pnpm tauri build
4444
```
4545

46-
## 使用
47-
48-
1. 在左侧编辑器输入代码
49-
2. 点击 "执行代码" 按钮执行
50-
3. 在右侧面板查看输出结果
51-
5246
## 技术栈
5347

5448
- **前端:** Vue 3 + TypeScript + Tailwind CSS

config/config.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"log_directory": null,
3+
"auto_clear_logs": true,
4+
"keep_log_days": 30,
5+
"theme": "system",
6+
"plugins": [
7+
{
8+
"enabled": true,
9+
"execute_home": null,
10+
"extensions": [],
11+
"language": "python2",
12+
"before_compile": null,
13+
"after_compile": null,
14+
"run_command": null,
15+
"template": null
16+
}
17+
]
18+
}

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
codeforge.devlive.org

docs/assets/logo.svg

Lines changed: 84 additions & 0 deletions
Loading

docs/content/index.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: 欢迎使用 CodeForge
3+
template: home
4+
5+
config:
6+
sidebar: false
7+
toc: false
8+
9+
hero:
10+
title: 轻量级桌面代码执行器
11+
description: 轻量级、高性能的桌面代码执行器,专为开发者、学生和编程爱好者设计。
12+
primaryCta:
13+
url: /download.html
14+
text: 立即下载
15+
secondaryCta:
16+
url: /<%= pageData.language %>/usage/href.html
17+
text: 了解更多
18+
19+
features:
20+
subtitle: 核心优势
21+
title: 为什么选择我们
22+
description: 轻量级、高性能,专为开发者、学生和编程爱好者设计。
23+
items:
24+
- icon: >-
25+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-6 h-6 text-indigo-600">
26+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
27+
</svg>
28+
title: 高性能
29+
description: 可扩展的语言支持系统
30+
31+
- icon: >-
32+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-6 h-6 text-indigo-600">
33+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
34+
</svg>
35+
title: 操作简洁
36+
description: 一键运行代码
37+
38+
- icon: >-
39+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-6 h-6 text-indigo-600">
40+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
41+
</svg>
42+
title: 易于使用
43+
description: 直观的界面设计,简单易上手
44+
45+
stats:
46+
title: 用数据说话
47+
description: 我们取得的成就
48+
items:
49+
- label: GitHub Stars
50+
value: 0+
51+
- label: Gitee Stars
52+
value: 0+
53+
- label: 正常运行时间
54+
value: 99.99%
55+
- label: 客户满意度
56+
value: 0%
57+
58+
cta:
59+
title: 准备好开始了吗?
60+
description: 立即下载,开启您的技术创新之旅
61+
button:
62+
url: /download.html
63+
text: 立即下载
64+
---

docs/pageforge.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
site:
2+
title: CodeForge
3+
description: CodeForge 是一款轻量级、高性能的桌面代码执行器,专为开发者、学生和编程爱好者设计。
4+
hiddenTitle: true
5+
keywords: CodeForge, Markdown, Python 2, Python 3, Rust
6+
logo: /assets/logo.svg
7+
favicon: assets/logo.svg
8+
baseUrl: https://codeforge.devlive.org
9+
10+
repo:
11+
owner: devlive-community
12+
name: codeforge
13+
url: https://github.com/devlive-community/codeforge
14+
branch: dev
15+
16+
footer:
17+
copyright: © 2025 CodeForge All Rights Reserved.
18+
social:
19+
github:
20+
title: GitHub
21+
href: https://github.com/devlive-community/codeforge

0 commit comments

Comments
 (0)