Skip to content

Commit bb25884

Browse files
committed
merge: resolve conflicts with main branch and integrate icons functionality
- Merged main branch changes including new icons functionality - Preserved Composition API conversions in all affected files - Integrated icons tab in source pages (English and Chinese) - Maintained all existing site component modernizations - Added support for /icons and /icons-en routes in App.vue header handling
2 parents 2b657b6 + 6fcf16f commit bb25884

12 files changed

Lines changed: 111 additions & 40 deletions

File tree

pnpm-lock.yaml

Lines changed: 32 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/notice.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
11
{
22
"all": {},
3-
"site": {},
3+
"site": {
4+
"title": "🎨 新图标资源发布,支持可变粗细和多色填充,欢迎使用体验",
5+
"type": "primary",
6+
"actionUrl": "https://tdesign.tencent.com/icons",
7+
"closeable": true
8+
},
49
"vue": {
5-
"title": "🗓 新增单组件的更新日志,进入任意组件页后,点击更新日志按钮即可查看",
10+
"title": "🎨 图标新版本 0.4.0 发布,支持可变粗细和多色填充的图标资源,欢迎使用体验",
611
"type": "primary",
12+
"actionUrl": "https://tdesign.tencent.com/icons",
713
"closeable": true
814
},
915
"react": {
10-
"title": "🗓 新增单组件的更新日志,进入任意组件页后,点击更新日志按钮即可查看",
16+
"title": "🎨 图标新版本 0.6.0 发布,支持可变粗细和多色填充的图标资源,欢迎使用体验",
1117
"type": "primary",
18+
"actionUrl": "https://tdesign.tencent.com/icons",
1219
"closeable": true
1320
},
1421
"vue-next": {
15-
"title": "🗓 新增单组件的更新日志,进入任意组件页后,点击更新日志按钮即可查看",
22+
"title": "🎨 图标新版本 0.4.0 发布,支持可变粗细和多色填充的图标资源,欢迎使用体验",
1623
"type": "primary",
24+
"actionUrl": "https://tdesign.tencent.com/icons",
1725
"closeable": true
1826
},
1927
"vue-mobile": {
20-
"title": "🗓 新增单组件的更新日志,进入任意组件页后,点击更新日志按钮即可查看",
28+
"title": "🎨 图标新版本 0.4.0 发布,支持可变粗细和多色填充的图标资源,欢迎使用体验",
2129
"type": "primary",
30+
"actionUrl": "https://tdesign.tencent.com/icons",
2231
"closeable": true
2332
},
2433
"react-mobile": {
25-
"title": "📢 站点接入主题生成器,支持自定义CSS 变量",
34+
"title": "🎨 图标新版本 0.6.0 发布,支持可变粗细和多色填充的图标资源,欢迎使用体验",
2635
"type": "primary",
36+
"actionUrl": "https://tdesign.tencent.com/icons",
2737
"closeable": true
2838
},
2939
"miniprogram": {

site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"markdown-it": "^12.3.2",
1818
"markdown-it-link-attributes": "^4.0.0",
1919
"prismjs": "^1.29.0",
20-
"tdesign-icons-view": "^0.3.5",
20+
"tdesign-icons-view": "~0.4.0",
2121
"tdesign-icons-vue": "^0.1.4",
2222
"tdesign-vue": "1.9.8-naruto",
2323
"three": "0.127.0",

site/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const route = computed(() => proxy.$route);
1414
// Computed
1515
const headerStyle = computed(() => {
1616
const { name } = route.value;
17-
const fixedHeaderList = ['home', 'home-en', 'source', 'source-en', 'trade'];
17+
const fixedHeaderList = ['home', 'home-en', 'source', 'source-en', 'trade', 'icons', 'icons-en'];
1818
if (fixedHeaderList.includes(name)) {
1919
return {
2020
position: 'fixed',

site/src/components/all-icons.vue

Lines changed: 0 additions & 5 deletions
This file was deleted.

site/src/pages/design/icon.vue

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,26 @@
259259
</div>
260260
</div>
261261

262-
<h3>Download Icon</h3>
263-
<all-icons />
262+
<h3>All Icons</h3>
263+
<div
264+
style="
265+
background: #ecf2fe;
266+
display: flex;
267+
align-items: center;
268+
line-height: 20px;
269+
padding: 14px 24px;
270+
border-radius: 3px;
271+
color: #555a65;
272+
margin: 16px 0;
273+
"
274+
>
275+
Visit <a href="/icons-en"> TDesign Icons </a> to view and experience all supported icons.
276+
</div>
264277
</div>
265278
</template>
266279

267280
<script setup>
268281
import { ref, onMounted } from 'vue';
269-
import AllIcons from '@/components/all-icons.vue';
270282
import { genAnchor } from './utils';
271283
272284
// Template refs

site/src/pages/design/icon_zh-CN.vue

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,26 @@
218218
</div>
219219
</div>
220220

221-
<h3>下载 Icon</h3>
222-
<all-icons />
221+
<h3>全部图标</h3>
222+
<div
223+
style="
224+
background: #ecf2fe;
225+
display: flex;
226+
align-items: center;
227+
line-height: 20px;
228+
padding: 14px 24px;
229+
border-radius: 3px;
230+
color: #555a65;
231+
margin: 16px 0;
232+
"
233+
>
234+
打开 <a href="/icons"> TDesign 图标独立站点 </a> 查看全部支持的图标。
235+
</div>
223236
</div>
224237
</template>
225238

226239
<script setup>
227240
import { ref, onMounted } from 'vue';
228-
import AllIcons from '@/components/all-icons.vue';
229241
import { genAnchor } from './utils';
230242
231243
// Template refs

site/src/pages/design/source.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,12 @@ onMounted(() => {
196196
{ tab: 'web', name: 'Desktop' },
197197
{ tab: 'mobile', name: 'Mobile' },
198198
{ tab: 'web-chart', name: 'Desktop Chart' },
199+
{ tab: 'icons', name: 'Icons' },
199200
];
200-
tabsRef.value.onchange = ({ detail: currentTab }) => (tab.value = currentTab);
201+
tabsRef.value.onchange = ({ detail: currentTab }) => {
202+
if (currentTab !== 'icons') tab.value = currentTab;
203+
else window.open('/icons-en', '_blank');
204+
};
201205
fetch(sourceDownloadUrl)
202206
.then((res) => res.json())
203207
.then((res) => {

site/src/pages/design/source_zh-CN.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,13 @@ onMounted(() => {
194194
{ tab: 'web', name: '桌面端组件库' },
195195
{ tab: 'mobile', name: '移动端组件库' },
196196
{ tab: 'web-chart', name: '桌面端图表库' },
197+
{ tab: 'icons', name: '图标资源' },
197198
];
198-
tabsRef.value.onchange = ({ detail: currentTab }) => (tab.value = currentTab);
199+
tabsRef.value.onchange = ({ detail: currentTab }) => {
200+
if (currentTab !== 'icons') tab.value = currentTab;
201+
else window.open('/icons', '_blank');
202+
};
203+
199204
fetch(sourceDownloadUrl)
200205
.then((res) => res.json())
201206
.then((res) => {

site/src/pages/icons/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<td-icons-view />
3+
</template>

0 commit comments

Comments
 (0)