Skip to content

Commit 817b854

Browse files
committed
refactor: directory structure adjustment and optimization
1 parent 924ed72 commit 817b854

File tree

76 files changed

+346
-300
lines changed

Some content is hidden

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

76 files changed

+346
-300
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 【通用】环境变量
22

33
# 版本号
4-
VITE_VERSION = 2.6.1
4+
VITE_VERSION = 3.0.0
55

66
# 端口号
77
VITE_PORT = 3006

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,45 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Released]
88

9+
### v3.0.0 - 2025-11-09 🎉
10+
11+
#### Refactored
12+
13+
- Style system refactored: Sass fully migrated to Tailwind CSS, improving development efficiency and style consistency
14+
- Icon solution upgraded: Iconfont replaced with Iconify, supporting richer icon libraries and on-demand loading
15+
- Route registration refactored: Comprehensive refactoring of route registration system with object-oriented design, improving code maintainability, testability and extensibility
16+
- Refactored ArtTextScroll component, improving performance and maintainability
17+
- Refactored color system, unified UI visual specifications, improving interface consistency
18+
19+
#### Optimized
20+
21+
- Build optimization: Complete package size reduced by 1.3 MB, significantly improving loading performance
22+
- Architecture optimization: Optimized directory structure with clearer responsibility division, reducing user learning curve and onboarding difficulty
23+
- Comment optimization: Unified module comment standards, improved component descriptions, feature explanations and usage examples, reducing user understanding cost and onboarding difficulty
24+
- Performance improvement: Optimized core code logic, improving system runtime efficiency
25+
- Menu optimization: Refined menu styles, optimized interaction experience and visual presentation
26+
- Responsive optimization: Optimized ArtForm and ArtSearchBar grid layout, adapting to various screen sizes
27+
- Configuration management optimization: Added setting.ts configuration file, supporting one-click copy and reset of system default settings
28+
29+
#### Fixed
30+
31+
- Fixed ArtForm and ArtSearchBar custom component rendering issues
32+
33+
#### Added
34+
35+
- ArtForm and ArtSearchBar added render property, supporting custom component rendering
36+
- Festival feature enhancement: Fireworks configuration supports cross-date range settings and custom playback counts
37+
38+
#### Upgraded
39+
40+
- Dependency updates: Upgraded core dependencies to latest stable versions
41+
42+
#### ⚠️ Important Notice
43+
44+
> This upgrade involves fundamental refactoring of the style system (Sass → Tailwind CSS) and icon library (Iconfont → Iconify), which is a breaking change. It is recommended to use v3.0 for new projects. Upgrading existing projects is not recommended.
45+
46+
---
47+
948
### v2.6.1 - 2025-10-19
1049

1150
#### Fixed

CHANGELOG.zh-CN.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,45 @@
66

77
## [已发布]
88

9+
### v3.0.0 - 2025-11-09 🎉
10+
11+
#### 重构
12+
13+
- 样式系统重构:Sass 全面迁移至 Tailwind CSS,提升开发效率与样式一致性
14+
- 图标方案升级:Iconfont 替换为 Iconify,支持更丰富的图标库与按需加载
15+
- 路由注册重构:全面重构路由注册系统,引入面向对象设计,提高代码的可维护性、可测试性和扩展能力
16+
- 重构 ArtTextScroll 组件,提升性能与可维护性
17+
- 重构颜色体系,统一 UI 视觉规范,提升界面一致性
18+
19+
#### 优化
20+
21+
- 构建优化:完整包体积减少 1.3 MB,显著提升加载性能
22+
- 架构优化:优化目录结构,职责划分更清晰,降低用户学习成本与上手难度
23+
- 注释优化:统一模块注释规范,完善每一个组件介绍、功能说明与使用示例,降低用户理解成本与上手难度
24+
- 性能提升:优化核心代码逻辑,提升系统运行效率
25+
- 菜单优化:细化菜单样式,优化交互体验与视觉呈现
26+
- 响应式优化:优化 ArtForm、ArtSearchBar 栅格布局,适配多种屏幕尺寸
27+
- 配置管理优化:新增 setting.ts 配置文件,支持一键复制与重置系统默认设置
28+
29+
#### 修复
30+
31+
- 修复 ArtForm、ArtSearchBar 自定义组件渲染异常
32+
33+
#### 新增
34+
35+
- ArtForm、ArtSearchBar 新增 render 属性,支持自定义组件渲染
36+
- 节日功能增强:礼花配置支持跨日期范围设置与自定义播放次数
37+
38+
#### 升级
39+
40+
- 依赖更新:升级核心依赖至最新稳定版本
41+
42+
#### ⚠️ 重要提示
43+
44+
> 本次升级涉及样式系统(Sass → Tailwind CSS)与图标库(Iconfont → Iconify)的底层重构,属于破坏性更新。建议新项目直接使用 v3.0,旧版本项目不建议升级。
45+
46+
---
47+
948
### v2.6.1 - 2025-10-19
1049

1150
#### 修复

src/App.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import zh from 'element-plus/es/locale/lang/zh-cn'
1010
import en from 'element-plus/es/locale/lang/en'
1111
import { systemUpgrade } from './utils/sys'
12-
13-
import { setThemeTransitionClass } from './utils/ui/animation'
12+
import { toggleTransition } from './utils/ui/animation'
1413
import { checkStorageCompatibility } from './utils/storage'
14+
import { initializeTheme } from './hooks/core/useTheme'
1515
1616
const userStore = useUserStore()
1717
const { language } = storeToRefs(userStore)
@@ -22,15 +22,13 @@
2222
}
2323
2424
onBeforeMount(() => {
25-
setThemeTransitionClass(true)
25+
toggleTransition(true)
26+
initializeTheme()
2627
})
2728
2829
onMounted(() => {
29-
// 检查存储兼容性
3030
checkStorageCompatibility()
31-
// 提升暗黑主题下页面刷新视觉体验
32-
setThemeTransitionClass(false)
33-
// 系统升级
31+
toggleTransition(false)
3432
systemUpgrade()
3533
})
3634
</script>
File renamed without changes.

src/components/custom/comment-widget/widget/CommentItem.vue renamed to src/components/business/comment-widget/widget/CommentItem.vue

File renamed without changes.

src/components/core/base/art-back-to-top/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</template>
2020

2121
<script setup lang="ts">
22-
import { useCommon } from '@/composables/useCommon'
22+
import { useCommon } from '@/hooks/core/useCommon'
2323
2424
defineOptions({ name: 'ArtBackToTop' })
2525

src/components/core/cards/art-bar-chart-card/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</template>
2929

3030
<script setup lang="ts">
31-
import { useChartOps, useChartComponent } from '@/composables/useChart'
31+
import { useChartOps, useChartComponent } from '@/hooks/core/useChart'
3232
import { type EChartsOption } from '@/plugins/echarts'
3333
3434
defineOptions({ name: 'ArtBarChartCard' })

src/components/core/cards/art-donut-chart-card/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<script setup lang="ts">
4242
import { type EChartsOption } from '@/plugins/echarts'
43-
import { useChartOps, useChartComponent } from '@/composables/useChart'
43+
import { useChartOps, useChartComponent } from '@/hooks/core/useChart'
4444
4545
defineOptions({ name: 'ArtDonutChartCard' })
4646

src/components/core/cards/art-line-chart-card/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<script setup lang="ts">
3434
import { graphic, type EChartsOption } from '@/plugins/echarts'
3535
import { getCssVar, hexToRgba } from '@/utils/ui'
36-
import { useChartOps, useChartComponent } from '@/composables/useChart'
36+
import { useChartOps, useChartComponent } from '@/hooks/core/useChart'
3737
3838
defineOptions({ name: 'ArtLineChartCard' })
3939

0 commit comments

Comments
 (0)