@steedos/service-package-registry 3.0.0-beta.94 → 3.0.0-beta.96
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/main/default/objectTranslations/steedos_packages.en/steedos_packages.en.objectTranslation.yml +10 -1
- package/main/default/objectTranslations/steedos_packages.zh-CN/steedos_packages.zh-CN.objectTranslation.yml +11 -0
- package/main/default/objects/steedos_packages/buttons/edit_npmrc.button.yml +3 -3
- package/main/default/objects/steedos_packages/buttons/installPackageFromUrl.button.yml +23 -20
- package/main/default/objects/steedos_packages/buttons/uninstall.button.js +2 -2
- package/package.json +6 -6
|
@@ -125,6 +125,8 @@ actions:
|
|
|
125
125
|
label: Uninstall
|
|
126
126
|
upgradePackage:
|
|
127
127
|
label: Upgrade Package
|
|
128
|
+
edit_npmrc:
|
|
129
|
+
label: Verification information
|
|
128
130
|
CustomLabels:
|
|
129
131
|
steedos_packages_tab_introduce_title: Introduction
|
|
130
132
|
steedos_packages_tab_components_title: Package Components
|
|
@@ -133,4 +135,11 @@ CustomLabels:
|
|
|
133
135
|
steedos_packages_button_enable_dialog_confirm_text_prefix: "Make sure to enable \""
|
|
134
136
|
steedos_packages_button_enable_dialog_confirm_text_suffix: "\"?"
|
|
135
137
|
steedos_packages_button_enable_dialog_button_ok: Enable
|
|
136
|
-
steedos_packages_button_enable_dialog_message_success: Enabled Successfully
|
|
138
|
+
steedos_packages_button_enable_dialog_message_success: Enabled Successfully
|
|
139
|
+
steedos_packages_button_edit_npmrc_dialog_describe: "##### Verification Information Description (.npmrc):\r- `; Set a new registry for scoped packages`\r- `@myscope:registry=https://mycustomregistry.example.org`\r- `; Configure authentication information for the new registry (optional)`\r- `//mycustomregistry.example.org:_authToken=\"Authentication Token\"`"
|
|
140
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry: Registry
|
|
141
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_taobao: taobao
|
|
142
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_cnpm: cnpm
|
|
143
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_npmjs: npmjs
|
|
144
|
+
steedos_packages_button_installPackageFromUrl_dialog_describe1: "##### You can specify a version using one of the following options:\r- `package-name` Install the 'latest' version of the package.\r- `package-name@1.2.3` Install a specific version of the package from the registry.\r- `package-name@tag` Install a specific 'tag', such as beta, next, or latest."
|
|
145
|
+
steedos_packages_button_installPackageFromUrl_dialog_describe2: "##### You can also specify packages from different locations:\r- `package-name` Install the package from the npm registry.\r- `file:/path/to/local/folder` Install a package located on your local filesystem. This is useful for testing packages you haven’t published to the registry yet.\r- `file:/path/to/local/tarball.tgz` Install from a gzipped tarball, which can be used to share packages before publishing.\r- `link:/path/to/local/folder` Install a symbolic link to a package on your local filesystem. Useful in monorepo environments.\r- `<git remote url>` Install a package from a remote Git repository.\r- `<git remote url>#<branch/commit/tag>` Install a package from a specific git branch, commit, or tag in the remote Git repository.\r- `https://my-project.org/package.tgz` Install from a remote gzipped tarball."
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
name: steedos_packages
|
|
2
2
|
label: 软件包
|
|
3
3
|
description:
|
|
4
|
+
actions:
|
|
5
|
+
edit_npmrc:
|
|
6
|
+
label: 验证信息
|
|
4
7
|
CustomLabels:
|
|
5
8
|
steedos_packages_tab_introduce_title: 简介
|
|
6
9
|
steedos_packages_tab_components_title: 软件包组件
|
|
@@ -10,3 +13,11 @@ CustomLabels:
|
|
|
10
13
|
steedos_packages_button_enable_dialog_confirm_text_suffix: 」?
|
|
11
14
|
steedos_packages_button_enable_dialog_button_ok: 启用
|
|
12
15
|
steedos_packages_button_enable_dialog_message_success: 已启用
|
|
16
|
+
steedos_packages_button_edit_npmrc_dialog_describe: "##### 验证信息说明(.npmrc):\r- `; 为范围包设置新的注册表`\r- `@myscope:registry=https://mycustomregistry.example.org`\r- `; 配置新注册表的认证信息(可选)`\r- `//mycustomregistry.example.org:_authToken=\"认证信息\"`"
|
|
17
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry: 镜像源
|
|
18
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_taobao: 淘宝源
|
|
19
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_cnpm: cnpm
|
|
20
|
+
steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_npmjs: 官方源
|
|
21
|
+
steedos_packages_button_installPackageFromUrl_dialog_describe1: "##### 您可以使用以下选项之一指定版本: \r- `package-name`安装包的“最新”版本。 \r- `package-name@1.2.3`从以下位置安装包的特定版本 注册表。 \r- `package-name@tag`安装特定的“标签”。(例如)beta、next、latest"
|
|
22
|
+
steedos_packages_button_installPackageFromUrl_dialog_describe2: "##### 您还可以指定来自不同位置的包:\r- `package-name` 从 npm 注册表安装包 \r- `file:/path/to/local/folder`安装一个位于本地文件系统的包。这对于测试您尚未发布到注册表的软件包很有用。 \r- `file:/path/to/local/tarball.tgz`从 gzip 压缩的 tarball,可用于在发布包之前共享包。 \r- `link:/path/to/local/folder`安装指向软件包的符号链接:在本地文件系统上。适用于monorepo环境。 \r- `<git remote url>`从远程 Git 存储库安装包。 \r- `<git remote url>#<branch/commit/tag>`从远程安装软件包特定 git 分支、git commit 或 git 标签处的 git 存储库。 \r- `https://my-project.org/package.tgz` 从远程gzip压缩压缩包。"
|
|
23
|
+
|
|
@@ -5,7 +5,7 @@ amis_schema: |-
|
|
|
5
5
|
"body": [
|
|
6
6
|
{
|
|
7
7
|
"type": "button",
|
|
8
|
-
"label": "
|
|
8
|
+
"label": "${'CustomAction.steedos_packages.edit_npmrc' | t}",
|
|
9
9
|
"id": "u:edit_npmrc",
|
|
10
10
|
"editorState": "default",
|
|
11
11
|
"onEvent": {
|
|
@@ -16,7 +16,7 @@ amis_schema: |-
|
|
|
16
16
|
"actionType": "dialog",
|
|
17
17
|
"dialog": {
|
|
18
18
|
"type": "dialog",
|
|
19
|
-
"title": "
|
|
19
|
+
"title": "${'CustomAction.steedos_packages.edit_npmrc' | t}",
|
|
20
20
|
"body": [
|
|
21
21
|
{
|
|
22
22
|
"type": "form",
|
|
@@ -49,7 +49,7 @@ amis_schema: |-
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"type": "markdown",
|
|
52
|
-
"value": "
|
|
52
|
+
"value": "${'steedos_packages_button_edit_npmrc_dialog_describe' | t}"
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
55
|
"showCloseButton": true,
|
|
@@ -18,6 +18,22 @@ amis_schema: |-
|
|
|
18
18
|
"dialog": {
|
|
19
19
|
"type": "dialog",
|
|
20
20
|
"title": "${'steedos_packages.install.install_package_from_url' | t}",
|
|
21
|
+
"data": {
|
|
22
|
+
"registryOptions": [
|
|
23
|
+
{
|
|
24
|
+
"label": "${'steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_taobao' | t}",
|
|
25
|
+
"value": "https://registry.npmmirror.com"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"label": "${'steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_cnpm' | t}",
|
|
29
|
+
"value": "https://r.cnpmjs.org"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"label": "${'steedos_packages_button_installPackageFromUrl_dialog_field_registry_option_npmjs' | t}",
|
|
33
|
+
"value": "https://registry.npmjs.org"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
21
37
|
"body": [
|
|
22
38
|
{
|
|
23
39
|
"type": "form",
|
|
@@ -32,25 +48,12 @@ amis_schema: |-
|
|
|
32
48
|
"required": true
|
|
33
49
|
},
|
|
34
50
|
{
|
|
35
|
-
"label": "
|
|
51
|
+
"label": "${'steedos_packages_button_installPackageFromUrl_dialog_field_registry' | t}",
|
|
36
52
|
"type": "input-text",
|
|
37
53
|
"name": "registry",
|
|
38
54
|
"id": "u:524cb8f8d666",
|
|
39
55
|
"required": false,
|
|
40
|
-
"
|
|
41
|
-
{
|
|
42
|
-
"label": "淘宝源",
|
|
43
|
-
"value": "https://registry.npmmirror.com"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"label": "cnpm",
|
|
47
|
-
"value": "https://r.cnpmjs.org"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"label": "官方源",
|
|
51
|
-
"value": "https://registry.npmjs.org"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
56
|
+
"source": "${registryOptions}"
|
|
54
57
|
}
|
|
55
58
|
],
|
|
56
59
|
"mode": "normal",
|
|
@@ -67,9 +70,9 @@ amis_schema: |-
|
|
|
67
70
|
}
|
|
68
71
|
},
|
|
69
72
|
"messages": {
|
|
70
|
-
"fetchFailed": "
|
|
71
|
-
"saveSuccess": "
|
|
72
|
-
"saveFailed": "
|
|
73
|
+
"fetchFailed": "Initialization failed",
|
|
74
|
+
"saveSuccess": "Installation successful",
|
|
75
|
+
"saveFailed": "Installation failed"
|
|
73
76
|
},
|
|
74
77
|
"onEvent": {
|
|
75
78
|
"submitSucc": {
|
|
@@ -101,11 +104,11 @@ amis_schema: |-
|
|
|
101
104
|
},
|
|
102
105
|
{
|
|
103
106
|
"type": "markdown",
|
|
104
|
-
"value": "
|
|
107
|
+
"value": "${'steedos_packages_button_installPackageFromUrl_dialog_describe1' | t}"
|
|
105
108
|
},
|
|
106
109
|
{
|
|
107
110
|
"type": "markdown",
|
|
108
|
-
"value": "
|
|
111
|
+
"value": "${'steedos_packages_button_installPackageFromUrl_dialog_describe2' | t}"
|
|
109
112
|
}
|
|
110
113
|
],
|
|
111
114
|
"id": "u:efa30bace722",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
3
3
|
* @Date: 2025-07-07 16:57:38
|
|
4
4
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
5
|
-
* @LastEditTime: 2025-09-
|
|
5
|
+
* @LastEditTime: 2025-09-02 14:13:23
|
|
6
6
|
*/
|
|
7
7
|
module.exports = {
|
|
8
8
|
uninstall: function (object_name, record_id) {
|
|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
SteedosUI.Modal.confirm({
|
|
15
|
-
title: t('steedos_packages.uninstall.text') + ` ${record.name}
|
|
15
|
+
title: t('steedos_packages.uninstall.text') + ` ${record.name}?` ,
|
|
16
16
|
content: t('steedos_packages.uninstall.content'),
|
|
17
17
|
okText: t('steedos_packages.uninstall.title'),
|
|
18
18
|
cancelText: t('Cancel'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-package-registry",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.96",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "package.service.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@steedos/auth": "3.0.0-beta.
|
|
13
|
-
"@steedos/metadata-core": "3.0.0-beta.
|
|
14
|
-
"@steedos/objectql": "3.0.0-beta.
|
|
15
|
-
"@steedos/service-package-loader": "3.0.0-beta.
|
|
12
|
+
"@steedos/auth": "3.0.0-beta.96",
|
|
13
|
+
"@steedos/metadata-core": "3.0.0-beta.96",
|
|
14
|
+
"@steedos/objectql": "3.0.0-beta.96",
|
|
15
|
+
"@steedos/service-package-loader": "3.0.0-beta.96",
|
|
16
16
|
"clone": "^2.1.2",
|
|
17
17
|
"fs-extra": "8.1.0",
|
|
18
18
|
"i18next": "20.3.2",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "96b68e266d217fce7ae35724edca75e53930db14"
|
|
35
35
|
}
|