Skip to content

Commit 093499b

Browse files
authored
Merge pull request #106 from tookit/vuetify3.8
Vuetify3.8
2 parents f24b205 + a40f7ef commit 093499b

29 files changed

+7006
-508
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
branches: [main, dev]
8+
9+
concurrency:
10+
group: ci-${{ github.ref }}-${{ github.workflow }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [18.x, 20.x]
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: yarn
29+
cache-dependency-path: yarn.lock
30+
31+
- name: Install dependencies
32+
run: yarn install --frozen-lockfile
33+
34+
- name: Check vue-tsc availability
35+
id: check_vuetsc
36+
run: |
37+
node -e "const p=require('./package.json'); process.exit(p.devDependencies && p.devDependencies['vue-tsc'] || p.dependencies && p.dependencies['vue-tsc'] ? 0 : 1)"
38+
continue-on-error: true
39+
40+
- name: Type check
41+
if: steps.check_vuetsc.outcome == 'success'
42+
run: yarn vue-tsc --noEmit
43+
44+
- name: Check lint script availability
45+
id: check_lint
46+
run: |
47+
node -e "const p=require('./package.json'); process.exit(p.scripts && p.scripts['lint'] ? 0 : 1)"
48+
continue-on-error: true
49+
50+
- name: Lint
51+
if: steps.check_lint.outcome == 'success'
52+
run: yarn lint
53+
54+
- name: Build
55+
env:
56+
CI: true
57+
run: yarn build
58+
59+
- name: Upload build artifact (PR only)
60+
if: ${{ github.event_name == 'pull_request' }}
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: dist-${{ matrix.node-version }}
64+
path: dist

CHANGELOG.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [Unreleased] - 2025-12-03
6+
7+
### Updated
8+
9+
- **Vuetify**: Upgraded from 3.5.6 to 3.11.0 (latest version)
10+
- **Vue**: Updated to 3.5.13 with latest Composition API features
11+
- **Vite**: Upgraded to 6.0.1 for improved build performance
12+
- **TypeScript**: Updated to 5.7.2
13+
- **Pinia**: Updated to 2.2.8
14+
- **Vue Router**: Updated to 4.4.5
15+
- **Vue I18n**: Updated to 10.0.5
16+
- All other dependencies updated to their latest stable versions
17+
18+
### Added
19+
20+
- **Composables** (DRY Principle):
21+
- `useDrawer`: Reusable drawer state management
22+
- `useApi`: Generic API call handler with loading/error states
23+
- `useFormValidation`: Common form validation rules
24+
- Centralized composables export in `src/composables/index.ts`
25+
26+
- **Theme Constants**: Extracted theme colors and variables to `src/plugins/vuetify/constants.ts` for better maintainability
27+
28+
- **Documentation**:
29+
- Enhanced README with modern project structure
30+
- Added tech stack section
31+
- Added browser support information
32+
- Added Star History chart
33+
- Improved getting started guide
34+
- Added configuration documentation
35+
36+
### Changed
37+
38+
- **Vuetify Plugin**:
39+
- Removed manual component imports (using auto-import)
40+
- Switched to VuetifyDateAdapter (built-in)
41+
- Added explicit 'vuetify/styles' import
42+
- Cleaner plugin configuration
43+
44+
- **Main.ts**:
45+
- Reorganized plugin registration order
46+
- Added comments for better code organization
47+
- Grouped style imports
48+
49+
- **Vite Config**:
50+
- Updated to use `node:url` import (Node.js best practice)
51+
- Added build optimization with manual chunks
52+
- Configured modern SCSS compiler API
53+
- Improved code splitting strategy
54+
- Better dependency optimization
55+
56+
- **AppSidebar**:
57+
- Refactored to use `useDrawer` composable
58+
- Cleaner computed properties
59+
- Improved code readability
60+
- Fixed register route bug
61+
62+
- **Theme Configuration**:
63+
- Refactored to use constants (DRY principle)
64+
- Reduced code duplication
65+
- Easier to maintain and customize
66+
67+
### Best Practices Applied
68+
69+
- ✅ Composition API with `<script setup>`
70+
- ✅ TypeScript strict mode
71+
- ✅ DRY (Don't Repeat Yourself) principle
72+
- ✅ Separation of concerns
73+
- ✅ Reusable composables
74+
- ✅ Modern ES modules
75+
- ✅ Tree-shaking optimization
76+
- ✅ Code splitting for better performance
77+
- ✅ Centralized configuration
78+
79+
### Performance Improvements
80+
81+
- Optimized Vite build configuration
82+
- Manual chunk splitting for better caching
83+
- Modern SCSS compiler for faster builds
84+
- Removed unnecessary component imports
85+
- Better tree-shaking with latest dependencies

0 commit comments

Comments
 (0)