@fefeding/aicmd 0.1.16 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/index.css +139 -37
- package/dist/public/index.js +464 -34
- package/dist/public/views.css +156 -156
- package/dist/public/views.js +69 -41
- package/dist/public/vue.js +1 -1
- package/dist/server/service/ai.service.d.ts +20 -128
- package/dist/server/service/ai.service.d.ts.map +1 -1
- package/dist/server/service/ai.service.js +359 -649
- package/dist/server/service/ai.service.js.map +1 -1
- package/dist/server/service/ai.service.ts +404 -833
- package/electron/main.js +21 -2
- package/electron/preload.js +9 -0
- package/electron/updater.js +6 -6
- package/package.json +5 -2
package/dist/public/index.css
CHANGED
|
@@ -7,77 +7,179 @@ html, body, #app {
|
|
|
7
7
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
/*
|
|
11
|
-
.update-
|
|
10
|
+
/* 更新通知卡片 - 右下角浮动 */
|
|
11
|
+
.update-card {
|
|
12
12
|
position: fixed;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
right: 0;
|
|
13
|
+
bottom: 20px;
|
|
14
|
+
right: 20px;
|
|
16
15
|
z-index: 10000;
|
|
16
|
+
width: 320px;
|
|
17
|
+
border-radius: 10px;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
font-size: 13px;
|
|
20
|
+
color: #cdd6f4;
|
|
21
|
+
background: #1e1e2e;
|
|
22
|
+
border: 1px solid rgba(137, 180, 250, 0.15);
|
|
23
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
24
|
+
}
|
|
25
|
+
.update-card.available { border-color: rgba(137, 180, 250, 0.3);
|
|
26
|
+
}
|
|
27
|
+
.update-card.progress { border-color: rgba(249, 226, 175, 0.3);
|
|
28
|
+
}
|
|
29
|
+
.update-card.downloaded { border-color: rgba(166, 227, 161, 0.3);
|
|
30
|
+
}
|
|
31
|
+
.update-card.error { border-color: rgba(243, 139, 168, 0.3);
|
|
32
|
+
}
|
|
33
|
+
.update-card-header {
|
|
17
34
|
display: flex;
|
|
18
35
|
align-items: center;
|
|
19
36
|
justify-content: space-between;
|
|
20
|
-
padding:
|
|
37
|
+
padding: 10px 12px 8px;
|
|
38
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
39
|
+
}
|
|
40
|
+
.update-card-title {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 8px;
|
|
44
|
+
font-weight: 600;
|
|
21
45
|
font-size: 13px;
|
|
22
|
-
color: #cdd6f4;
|
|
23
|
-
background: linear-gradient(90deg, #1e1e2e 0%, #313244 100%);
|
|
24
|
-
border-bottom: 1px solid rgba(137, 180, 250, 0.2);
|
|
25
|
-
animation: slideDown 0.3s ease;
|
|
26
46
|
}
|
|
27
|
-
.update-
|
|
47
|
+
.update-card.available .update-card-title { color: #89b4fa;
|
|
48
|
+
}
|
|
49
|
+
.update-card.progress .update-card-title { color: #f9e2af;
|
|
50
|
+
}
|
|
51
|
+
.update-card.progress .update-card-title i { animation: spin 1s linear infinite;
|
|
52
|
+
}
|
|
53
|
+
.update-card.downloaded .update-card-title { color: #a6e3a1;
|
|
54
|
+
}
|
|
55
|
+
.update-card.error .update-card-title { color: #f38ba8;
|
|
56
|
+
}
|
|
57
|
+
.update-card-close {
|
|
58
|
+
background: none;
|
|
59
|
+
border: none;
|
|
60
|
+
color: #6c7086;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
padding: 2px 6px;
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
border-radius: 4px;
|
|
65
|
+
line-height: 1;
|
|
66
|
+
}
|
|
67
|
+
.update-card-close:hover { color: #cdd6f4; background: rgba(255,255,255,0.1);
|
|
68
|
+
}
|
|
69
|
+
.update-card-body {
|
|
70
|
+
padding: 10px 12px 12px;
|
|
71
|
+
}
|
|
72
|
+
.update-version-info {
|
|
73
|
+
margin-bottom: 6px;
|
|
74
|
+
}
|
|
75
|
+
.update-version-badge {
|
|
76
|
+
display: inline-block;
|
|
77
|
+
padding: 2px 8px;
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
border-radius: 4px;
|
|
81
|
+
background: rgba(137, 180, 250, 0.15);
|
|
82
|
+
color: #89b4fa;
|
|
83
|
+
}
|
|
84
|
+
.update-card.downloaded .update-version-badge {
|
|
85
|
+
background: rgba(166, 227, 161, 0.15);
|
|
86
|
+
color: #a6e3a1;
|
|
87
|
+
}
|
|
88
|
+
.update-card-desc {
|
|
89
|
+
font-size: 12px;
|
|
90
|
+
color: #a6adc8;
|
|
91
|
+
line-height: 1.5;
|
|
92
|
+
margin-bottom: 8px;
|
|
28
93
|
}
|
|
29
|
-
.update-
|
|
94
|
+
.update-error-text {
|
|
95
|
+
color: #f38ba8;
|
|
30
96
|
}
|
|
31
|
-
.update-
|
|
97
|
+
.update-card-actions {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: flex-end;
|
|
100
|
+
gap: 8px;
|
|
101
|
+
margin-top: 4px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* 进度条 */
|
|
105
|
+
.update-progress-section {
|
|
106
|
+
padding: 2px 0;
|
|
32
107
|
}
|
|
33
|
-
.update-
|
|
108
|
+
.update-progress-header {
|
|
34
109
|
display: flex;
|
|
110
|
+
justify-content: space-between;
|
|
35
111
|
align-items: center;
|
|
36
|
-
|
|
37
|
-
flex: 1;
|
|
112
|
+
margin-bottom: 8px;
|
|
38
113
|
}
|
|
39
|
-
.update-
|
|
114
|
+
.update-progress-label {
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
color: #a6adc8;
|
|
40
117
|
}
|
|
41
|
-
.update-
|
|
118
|
+
.update-progress-percent {
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
font-weight: 700;
|
|
121
|
+
color: #f9e2af;
|
|
122
|
+
font-variant-numeric: tabular-nums;
|
|
42
123
|
}
|
|
43
|
-
.update-
|
|
124
|
+
.update-progress-bar {
|
|
125
|
+
height: 6px;
|
|
126
|
+
border-radius: 3px;
|
|
127
|
+
background: rgba(255, 255, 255, 0.08);
|
|
128
|
+
overflow: hidden;
|
|
44
129
|
}
|
|
45
|
-
.update-
|
|
130
|
+
.update-progress-fill {
|
|
131
|
+
height: 100%;
|
|
132
|
+
border-radius: 3px;
|
|
133
|
+
background: linear-gradient(90deg, #f9e2af, #fab387);
|
|
134
|
+
transition: width 0.3s ease;
|
|
46
135
|
}
|
|
47
|
-
.update-
|
|
136
|
+
.update-progress-detail {
|
|
137
|
+
display: flex;
|
|
138
|
+
gap: 4px;
|
|
139
|
+
margin-top: 6px;
|
|
140
|
+
font-size: 11px;
|
|
141
|
+
color: #6c7086;
|
|
142
|
+
font-variant-numeric: tabular-nums;
|
|
48
143
|
}
|
|
144
|
+
|
|
145
|
+
/* 按钮 */
|
|
49
146
|
.update-btn {
|
|
50
|
-
padding:
|
|
147
|
+
padding: 5px 14px;
|
|
51
148
|
font-size: 12px;
|
|
52
149
|
border: none;
|
|
53
|
-
border-radius:
|
|
150
|
+
border-radius: 6px;
|
|
54
151
|
cursor: pointer;
|
|
55
152
|
font-weight: 500;
|
|
56
153
|
background: #a6e3a1;
|
|
57
154
|
color: #1e1e2e;
|
|
58
155
|
transition: opacity 0.15s;
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
align-items: center;
|
|
59
158
|
}
|
|
60
159
|
.update-btn:hover { opacity: 0.85;
|
|
61
160
|
}
|
|
62
161
|
.update-btn-secondary {
|
|
63
|
-
background: rgba(255,255,255,0.
|
|
64
|
-
color: #
|
|
162
|
+
background: rgba(255,255,255,0.08);
|
|
163
|
+
color: #a6adc8;
|
|
65
164
|
}
|
|
66
|
-
.update-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
165
|
+
.update-btn-secondary:hover { color: #cdd6f4; background: rgba(255,255,255,0.12);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* 动画 */
|
|
169
|
+
.update-slide-enter-active { animation: slideInRight 0.35s ease;
|
|
170
|
+
}
|
|
171
|
+
.update-slide-leave-active { animation: slideOutRight 0.25s ease;
|
|
172
|
+
}
|
|
173
|
+
@keyframes slideInRight {
|
|
174
|
+
from { transform: translateX(100%); opacity: 0;
|
|
175
|
+
}
|
|
176
|
+
to { transform: translateX(0); opacity: 1;
|
|
74
177
|
}
|
|
75
|
-
.update-banner-close:hover { color: #cdd6f4; background: rgba(255,255,255,0.1);
|
|
76
178
|
}
|
|
77
|
-
@keyframes
|
|
78
|
-
from { transform:
|
|
179
|
+
@keyframes slideOutRight {
|
|
180
|
+
from { transform: translateX(0); opacity: 1;
|
|
79
181
|
}
|
|
80
|
-
to { transform:
|
|
182
|
+
to { transform: translateX(100%); opacity: 0;
|
|
81
183
|
}
|
|
82
184
|
}
|
|
83
185
|
@keyframes spin {
|