Skip to content

Commit

Permalink
perf: change package host
Browse files Browse the repository at this point in the history
  • Loading branch information
Jandiasnow committed Apr 17, 2024
1 parent 57efe22 commit bce9a31
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 29 deletions.
20 changes: 11 additions & 9 deletions packages/react-markdown-lowcode-materials/demo/assets.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"components": [
{
"url": "http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/meta.js",
"url": "http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/meta.js",
"version": "latest",
"reference": {
"id": "@tenx-ui/materials",
Expand All @@ -22,11 +22,11 @@
"packages": [
{
"id": "dayjs",
"urls": ["http://172.22.96.37/[email protected]/dayjs.min.js"],
"urls": ["http://dev-unpkg.tenxcloud.net/[email protected]/dayjs.min.js"],
"library": "dayjs",
"package": "dayjs",
"version": "1.11.6",
"editUrls": ["http://172.22.96.37/[email protected]/dayjs.min.js"]
"editUrls": ["http://dev-unpkg.tenxcloud.net/[email protected]/dayjs.min.js"]
},
{
"id": "antd",
Expand Down Expand Up @@ -76,25 +76,27 @@
{
"id": "@tenx-ui/materials",
"meta": {
"url": "http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/meta.js",
"url": "http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/meta.js",
"exportName": "TenxUiMaterialsMeta"
},
"urls": [
"http://172.22.96.37/@tenx-ui/materials@latest/dist/TenxUiMaterials.js",
"http://172.22.96.37/@tenx-ui/materials@latest/dist/TenxUiMaterials.css"
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/dist/TenxUiMaterials.js",
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/dist/TenxUiMaterials.css"
],
"library": "TenxUiMaterials",
"package": "@tenx-ui/materials",
"version": "latest",
"editUrls": [
"http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/view.css",
"http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/view.js"
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/view.css",
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/view.js"
]
},
{
"id": "@tenx-ui/auth-utils",
"meta": {},
"urls": ["http://172.22.96.37/@tenx-ui/[email protected]/dist/umd/auth-utils.min.js"],
"urls": [
"http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/dist/umd/auth-utils.min.js"
],
"library": "authUtils",
"package": "@tenx-ui/auth-utils",
"version": "0.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/desinger/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function registerPlugins(scenarioName: string, displayName: string, assets
await plugins.register(PluginCodeGen, {
solution: 'umi',
workerJsUrl:
'http://172.22.96.37/@yunti/[email protected]/dist/standalone-worker.min.js',
'http://dev-unpkg.tenxcloud.net/@yunti/[email protected]/dist/standalone-worker.min.js',
});

await plugins.register(SaveSamplePlugin);
Expand Down
32 changes: 17 additions & 15 deletions packages/shared/src/services/assets.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"components": [
{
"url": "http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/meta.js",
"url": "http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/meta.js",
"version": "latest",
"reference": {
"id": "@tenx-ui/materials",
Expand All @@ -10,7 +10,7 @@
"exportName": "TenxUiMaterialsMeta"
},
{
"url": "http://172.22.96.37/@tenx-ui/[email protected]/build/lowcode/meta.js",
"url": "http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/build/lowcode/meta.js",
"version": "0.1.5",
"reference": {
"id": "@tenx-ui/icon-materials",
Expand All @@ -22,11 +22,11 @@
"packages": [
{
"id": "dayjs",
"urls": ["http://172.22.96.37/[email protected]/dayjs.min.js"],
"urls": ["http://dev-unpkg.tenxcloud.net/[email protected]/dayjs.min.js"],
"library": "dayjs",
"package": "dayjs",
"version": "1.11.6",
"editUrls": ["http://172.22.96.37/[email protected]/dayjs.min.js"]
"editUrls": ["http://dev-unpkg.tenxcloud.net/[email protected]/dayjs.min.js"]
},
{
"id": "antd",
Expand Down Expand Up @@ -76,43 +76,45 @@
{
"id": "@tenx-ui/materials",
"meta": {
"url": "http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/meta.js",
"url": "http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/meta.js",
"exportName": "TenxUiMaterialsMeta"
},
"urls": [
"http://172.22.96.37/@tenx-ui/materials@latest/dist/TenxUiMaterials.js",
"http://172.22.96.37/@tenx-ui/materials@latest/dist/TenxUiMaterials.css"
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/dist/TenxUiMaterials.js",
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/dist/TenxUiMaterials.css"
],
"library": "TenxUiMaterials",
"package": "@tenx-ui/materials",
"version": "latest",
"editUrls": [
"http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/view.css",
"http://172.22.96.37/@tenx-ui/materials@latest/build/lowcode/view.js"
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/view.css",
"http://dev-unpkg.tenxcloud.net/@tenx-ui/materials@latest/build/lowcode/view.js"
]
},
{
"meta": {
"url": "http://172.22.96.37/@tenx-ui/[email protected]/build/lowcode/meta.js",
"url": "http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/build/lowcode/meta.js",
"exportName": "TenxUiIconMaterialsMeta"
},
"urls": [
"http://172.22.96.37/@tenx-ui/[email protected]/dist/TenxUiIconMaterials.js",
"http://172.22.96.37/@tenx-ui/[email protected]/dist/TenxUiIconMaterials.css"
"http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/dist/TenxUiIconMaterials.js",
"http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/dist/TenxUiIconMaterials.css"
],
"library": "TenxUiIconMaterials",
"package": "@tenx-ui/icon-materials",
"version": "0.1.5",
"editUrls": [
"http://172.22.96.37/@tenx-ui/[email protected]/build/lowcode/view.css",
"http://172.22.96.37/@tenx-ui/[email protected]/build/lowcode/view.js"
"http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/build/lowcode/view.css",
"http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/build/lowcode/view.js"
],
"id": "@tenx-ui/icon-materials"
},
{
"id": "@tenx-ui/auth-utils",
"meta": {},
"urls": ["http://172.22.96.37/@tenx-ui/[email protected]/dist/umd/auth-utils.min.js"],
"urls": [
"http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/dist/umd/auth-utils.min.js"
],
"library": "authUtils",
"package": "@tenx-ui/auth-utils",
"version": "0.0.2",
Expand Down
8 changes: 5 additions & 3 deletions packages/yunti-ui-lowcode-materials/demo/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"packages": [
{
"id": "dayjs",
"urls": ["http://172.22.96.37/[email protected]/dayjs.min.js"],
"urls": ["http://dev-unpkg.tenxcloud.net/[email protected]/dayjs.min.js"],
"library": "dayjs",
"package": "dayjs",
"version": "1.11.6",
"editUrls": ["http://172.22.96.37/[email protected]/dayjs.min.js"]
"editUrls": ["http://dev-unpkg.tenxcloud.net/[email protected]/dayjs.min.js"]
},
{
"id": "antd",
Expand Down Expand Up @@ -67,7 +67,9 @@
{
"id": "@tenx-ui/auth-utils",
"meta": {},
"urls": ["http://172.22.96.37/@tenx-ui/[email protected]/dist/umd/auth-utils.min.js"],
"urls": [
"http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/dist/umd/auth-utils.min.js"
],
"library": "authUtils",
"package": "@tenx-ui/auth-utils",
"version": "0.0.2",
Expand Down
2 changes: 1 addition & 1 deletion plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const LOW_CODE_HEAD_SCRIPTS = [

const LOW_CODE_LINKS = [
{
href: 'http://172.22.96.37/@tenx-ui/[email protected]/dist/@tenx-ui/icon.css',
href: 'http://dev-unpkg.tenxcloud.net/@tenx-ui/[email protected]/dist/@tenx-ui/icon.css',
rel: 'stylesheet',
},
{
Expand Down

0 comments on commit bce9a31

Please sign in to comment.