Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b7f638a
fix(LICENSE): update copyright holder to include Cloxl
Cloxl Mar 19, 2025
1d2cc0d
feat(pnpm): replace npm and add npmrc
lifefloating Mar 20, 2025
ceeba69
Merge pull request #24 from lifefloating/feature-fe-prompt-fy
Cloxl Mar 20, 2025
6e9573f
chore: remove unused update-server and version scripts, clean up pack…
Cloxl Mar 20, 2025
9a73d38
feat(lint): add init eslint & format
lifefloating Mar 20, 2025
de5d866
feat(ci): add Rust Clippy workflow and configuration for code linting
Cloxl Mar 20, 2025
6bbc39f
chore(ci): update workflows to use pnpm for dependency management and…
Cloxl Mar 20, 2025
a955d29
feat(lint): update ESLint and Prettier configurations, add Sass depen…
lifefloating Mar 20, 2025
0650a76
feat(ci): add WebView2 Fixed Runtime preparation for Windows platform…
Cloxl Mar 20, 2025
5439fd3
feat(lint): some code fix
lifefloating Mar 21, 2025
a0e1f22
Merge branch 'dev' into feature-lint-format
lifefloating Mar 21, 2025
6500bd6
feat(lint): .
lifefloating Mar 21, 2025
9c70e25
feat(unocss): remove some css and add unocss, and fix settings bug
lifefloating Mar 21, 2025
40bc9df
feat(ci): enhance release workflow to support WebView2 Fixed and Stan…
Cloxl Mar 23, 2025
c4e77d0
feat(ci): add development workflows for building Tauri applications a…
Cloxl Mar 23, 2025
60cbc2a
feat(dashboard): add CursorRunningModal component import to Dashboard…
Cloxl Mar 23, 2025
243fae6
refactor(cursor): consolidate cursor running checks into a single fun…
Cloxl Mar 23, 2025
fa352c9
refactor(LoginOverlay): extract common email option logic into a reus…
Cloxl Mar 23, 2025
6899b42
Merge pull request #26 from lifefloating/feature-lint-format
Cloxl Mar 23, 2025
001a71e
feat(dashboard): add CursorRunningModal component import to Dashboard…
Cloxl Mar 23, 2025
bc74415
refactor(cursor): consolidate cursor running checks into a single fun…
Cloxl Mar 23, 2025
73ef5fb
refactor(LoginOverlay): extract common email option logic into a reus…
Cloxl Mar 23, 2025
d648524
Merge pull request #27 from lifefloating/feature-uno-and-bugfix
Cloxl Mar 23, 2025
4401679
add husky for lint
lifefloating Mar 23, 2025
cd53789
feat: husky add
lifefloating Mar 23, 2025
9e9189a
Merge pull request #30 from lifefloating/feature-husky
Cloxl Mar 23, 2025
efc15b7
feat: add cargo-husky for pre-commit hooks
Cloxl Mar 24, 2025
cdbaa76
refactor(cursor_reset): replace safe_write with fs::write and remove …
Cloxl Mar 24, 2025
88b4a04
refactor: enhance error handling and add auth module
Cloxl Mar 24, 2025
0d56efe
refactor: clean up code formatting and improve readability across mul…
Cloxl Mar 24, 2025
c0e7124
feat: add tauri-plugin-notification dependency and update related con…
Cloxl Mar 24, 2025
d7732ce
feat: implement notification permission management with Vue component…
Cloxl Mar 24, 2025
355d32e
feat: article fix
lifefloating Mar 24, 2025
59bfe2b
feat: fix lint
lifefloating Mar 24, 2025
fe30cca
Merge pull request #33 from Cloxl/feat-aritcle
Cloxl Mar 25, 2025
d33dcb5
feat: add devtools protection and open/close functionality
Cloxl Mar 25, 2025
58faeb3
feat: 设置页面布局调整优化 + 响应式处理
lifefloating Mar 26, 2025
4fef762
feat: i18n 调整补充,基本覆盖全页面
lifefloating Mar 26, 2025
e265de2
feat: implement task scheduler with account usage monitoring and even…
Cloxl Mar 27, 2025
029ea65
feat: merge branch 'dev' into feat-setting-ui
lifefloating Mar 27, 2025
07dea72
fix: update log level configuration to disable hyper logging in debug…
Cloxl Mar 27, 2025
89b9ea7
refactor: remove unused notification store import and enhance permiss…
Cloxl Mar 27, 2025
3460407
feat: 系统通知调整
lifefloating Mar 27, 2025
2d4b4c3
feat: merge branch 'dev' into feat-setting-ui
lifefloating Mar 27, 2025
a8609e7
Merge pull request #42 from Cloxl/feat-setting-ui
Cloxl Mar 27, 2025
7ecf856
refactor: remove unnecessary logging statements in scheduler tasks
Cloxl Mar 27, 2025
365716a
feat: enhance HTTP request handling with retry logic and improved log…
Cloxl Mar 27, 2025
1d32bc3
fix: reduce logging verbosity for external dependencies
Cloxl Mar 27, 2025
4a1cbef
feat: integrate article store to manage unread articles and control t…
Cloxl Mar 27, 2025
430f895
refactor: remove history record saving logic from cursor store
Cloxl Mar 27, 2025
953dbf2
fix: correct formatting in notification message for account usage war…
Cloxl Mar 27, 2025
c151917
feat: add code status handling and localization for activation codes
Cloxl Mar 27, 2025
414b1e4
feat: implement error handling for cursor usage retrieval with locali…
Cloxl Mar 27, 2025
a13d53f
chore: update version to 1.8.0 in package.json, Cargo.toml, and Cargo…
Cloxl Mar 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"root": true,
"extends": [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"vue/multi-word-component-names": "off",
"vue/no-v-html": "off",
"vue/max-attributes-per-line": ["error", {
"singleline": 10,
"multiline": 1
}],
// todo 临时屏蔽
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}]
}
}
142 changes: 142 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
name: Dev Build

on:
workflow_dispatch:
push:
branches:
- main
- master
- dev
paths-ignore:
- '**.md'
- '.github/workflows/release.yml'
- '.github/workflows/updater.yml'

jobs:
check-version:
runs-on: ubuntu-latest
outputs:
should_build: ${{ steps.check.outputs.should_build }}
version: ${{ steps.check.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Check if package.json version changed
id: check
run: |
git diff HEAD^ HEAD --name-only | grep package.json || echo "No package.json changes"

# 获取当前版本
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo "Current version: $CURRENT_VERSION"
echo "version=v$CURRENT_VERSION" >> $GITHUB_OUTPUT

# 手动触发
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "Workflow manually triggered, building..."
echo "should_build=true" >> $GITHUB_OUTPUT
exit 0
fi

# 检查package.json中version是否改变
if git diff HEAD^ HEAD --name-only | grep -q package.json; then
PREV_VERSION=$(git show HEAD^:package.json | node -p "JSON.parse(require('fs').readFileSync(0)).version")
echo "Previous version: $PREV_VERSION"

if [[ "$CURRENT_VERSION" != "$PREV_VERSION" ]]; then
echo "Version changed, building..."
echo "should_build=true" >> $GITHUB_OUTPUT
else
echo "Version not changed, skipping build."
echo "should_build=false" >> $GITHUB_OUTPUT
fi
else
echo "Should build anyway..."
echo "should_build=true" >> $GITHUB_OUTPUT
fi

build-tauri:
needs: check-version
if: needs.check-version.outputs.should_build == 'true'
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-14'
args: '--target aarch64-apple-darwin'
display_name: 'macOS-ARM64'
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
display_name: 'macOS-Intel'
- platform: 'windows-latest'
args: '--target x86_64-pc-windows-msvc'
display_name: 'Windows-x64'
- platform: 'windows-latest'
args: '--target aarch64-pc-windows-msvc'
display_name: 'Windows-ARM64'

runs-on: ${{ matrix.platform }}
name: Dev Build - ${{ matrix.display_name }}
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: latest
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'x86_64-apple-darwin' || matrix.platform == 'macos-14' && 'aarch64-apple-darwin' || contains(matrix.args, 'aarch64-pc-windows-msvc') && 'aarch64-pc-windows-msvc' || '' }}

- name: Install dependencies (macOS)
if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-14'
run: |
brew install openssl@3

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: Install dependencies
run: pnpm install

- name: Build Tauri App (macOS)
if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-14'
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
run: |
pnpm tauri build ${{ matrix.args }}

- name: Build Tauri App (Windows)
if: matrix.platform == 'windows-latest'
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
run: |
pnpm tauri build ${{ matrix.args }}

- name: Upload Dev Build Artifacts
uses: actions/upload-artifact@v4
with:
name: dev-${{ needs.check-version.outputs.version }}-${{ matrix.display_name }}
path: |
src-tauri/target/*/release/bundle/msi/*.msi
src-tauri/target/*/release/bundle/nsis/*.exe
src-tauri/target/*/release/bundle/dmg/*.dmg
src-tauri/target/*/release/bundle/deb/*.deb
src-tauri/target/*/release/bundle/appimage/*.AppImage
src-tauri/target/*/release/bundle/macos/*.app
retention-days: 7
Loading
Loading