Skip to content

Commit f484123

Browse files
committed
feat: 更新 cdn 地址
1 parent 6e151fe commit f484123

13 files changed

Lines changed: 27 additions & 26 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "",
33
"description": "",
4-
"img": "https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg",
4+
"img": "https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg",
55
"category":["组件"]
66
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "lowcode",
44
"description": "低代码工具",
55
"author": "wjkang <ruoxieme@gmail.com>",
6-
"version": "1.2.7",
6+
"version": "1.2.8",
77
"icon": "asset/icon.png",
88
"publisher": "wjkang",
99
"repository": "https://github.com/lowcoding/lowcode-vscode",

src/utils/materials.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const getLocalMaterials = (
5050
} catch {}
5151
if (preview.img && preview.img.indexOf('gitee.') > -1) {
5252
preview.img =
53-
'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg';
53+
'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg';
5454
}
5555
if (type === 'snippets') {
5656
try {
@@ -119,7 +119,7 @@ export function getSnippets() {
119119
model: {},
120120
schema: {},
121121
preview: {
122-
img: 'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
122+
img: 'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
123123
category: [],
124124
},
125125
template: s.template,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "",
33
"description": "",
4-
"img": "https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg"
4+
"img": "https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg"
55
}

webview-react/src/components/DownloadMaterials/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface IFetchMaterialRepositoryListResult {
1313

1414
export function fetchMaterialRepositoryList() {
1515
return request<IFetchMaterialRepositoryListResult>(
16-
`https://cdn.jsdelivr.net/gh/lowcoding/material@latest/index.json`,
16+
`https://fastly.jsdelivr.net/gh/lowcoding/material@latest/index.json`,
1717
{
1818
method: 'GET',
1919
skipErrorHandler: true,

webview-react/src/components/HeaderControl/presenter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const usePresenter = () => {
2828
{
2929
title: model.blockModal.name,
3030
description: model.blockModal.name,
31-
img: 'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
31+
img: 'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
3232
category: [],
3333
},
3434
null,

webview-react/src/pages/scaffold/List/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const View = () => {
9191
<img
9292
src={
9393
s.screenshot?.includes('gitee.')
94-
? 'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg'
94+
? 'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg'
9595
: s.screenshot
9696
}
9797
/>

webview-react/src/pages/scaffold/List/useController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const useController = () => {
2929
});
3030
const promises: ReturnType<typeof getScaffolds>[] = [
3131
getScaffolds(
32-
'https://cdn.jsdelivr.net/gh/lowcoding/scaffold@latest/index.json',
32+
'https://fastly.jsdelivr.net/gh/lowcoding/scaffold@latest/index.json',
3333
),
3434
];
3535
if (isVankeInternal) {

webview-react/src/pages/snippets/AddSnippet/useModel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const useModel = () => {
1414
{
1515
title: '',
1616
description: '',
17-
img: 'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
17+
img:
18+
'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
1819
category: [],
1920
},
2021
null,

webview-react/src/webview/mock/getLocalMaterials.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default [
113113
title: '哈哈哈',
114114
description: 'ksjfdfhdfhdkfjd',
115115
img:
116-
'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
116+
'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
117117
},
118118
template: '1212121',
119119
},
@@ -235,7 +235,7 @@ export default [
235235
title: '哈哈哈',
236236
description: 'ksjfdfhdfhdkfjd',
237237
img:
238-
'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
238+
'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
239239
},
240240
template: '',
241241
},
@@ -273,7 +273,7 @@ export default [
273273
title: '哈哈哈',
274274
description: 'ksjfdfhdfhdkfjd',
275275
img:
276-
'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
276+
'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
277277
},
278278
template: '',
279279
},
@@ -311,7 +311,7 @@ export default [
311311
title: '哈哈哈',
312312
description: 'ksjfdfhdfhdkfjd',
313313
img:
314-
'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
314+
'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
315315
},
316316
template: '',
317317
},
@@ -349,7 +349,7 @@ export default [
349349
title: '哈哈哈',
350350
description: 'ksjfdfhdfhdkfjd',
351351
img:
352-
'https://cdn.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
352+
'https://fastly.jsdelivr.net/gh/migrate-gitee/img-host/2020/11/05/1604587962875.jpg',
353353
},
354354
template: '',
355355
},

0 commit comments

Comments
 (0)