dashboard-shell-shell 3.0.5-tsh.1 → 3.0.5-tsh.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.
@@ -3495,6 +3495,18 @@ monitoringReceiver:
3495
3495
  opsgenie:
3496
3496
  label: Opsgenie
3497
3497
  title: Opsgenie 配置
3498
+ dingding:
3499
+ label: 钉钉
3500
+ title: 钉钉 配置
3501
+ weixin:
3502
+ label: 企业微信
3503
+ title: 企业微信 配置
3504
+ snmp:
3505
+ label: SNMP
3506
+ title: SNMP 配置
3507
+ message:
3508
+ label: 短信
3509
+ title: 短信 配置
3498
3510
  pagerduty:
3499
3511
  label: PagerDuty
3500
3512
  title: PagerDuty 配置
@@ -19,32 +19,32 @@ import { fetchAlertManagerConfigSpecs } from '@shell/utils/alertmanagerconfig';
19
19
  export const RECEIVERS_TYPES = [
20
20
  {
21
21
  name: 'message',
22
- label: '短信',
23
- title: '短信',
22
+ label: 'monitoringReceiver.message.label',
23
+ title: 'monitoringReceiver.message.title',
24
24
  info: 'monitoringReceiver.slack.info',
25
25
  key: 'slackConfigs',
26
26
  logo: require(`@shell/assets/images/vendor/slack.svg`)
27
27
  },
28
28
  {
29
29
  name: 'dingding',
30
- label: '钉钉',
31
- title: '钉钉',
30
+ label: 'monitoringReceiver.dingding.label',
31
+ title: 'monitoringReceiver.dingding.title',
32
32
  info: 'monitoringReceiver.slack.info',
33
33
  key: 'dingding',
34
34
  logo: require(`@shell/assets/images/vendor/slack.svg`)
35
35
  },
36
36
  {
37
37
  name: 'work',
38
- label: '企业微信',
39
- title: '企业微信',
38
+ label: 'monitoringReceiver.weixin.label',
39
+ title: 'monitoringReceiver.weixin.title',
40
40
  info: 'monitoringReceiver.slack.info',
41
41
  key: 'work',
42
42
  logo: require(`@shell/assets/images/vendor/slack.svg`)
43
43
  },
44
44
  {
45
45
  name: 'snmp',
46
- label: 'SNMP',
47
- title: 'SNMP',
46
+ label: 'monitoringReceiver.snmp.label',
47
+ title: 'monitoringReceiver.snmp.title',
48
48
  info: 'monitoringReceiver.slack.info',
49
49
  key: 'snmp',
50
50
  logo: require(`@shell/assets/images/vendor/slack.svg`)
@@ -16,9 +16,17 @@
16
16
  </div>
17
17
  </div>
18
18
  </template>
19
- <script setup>
20
- import { ref } from 'vue';
21
- const id = ref('');
22
-
23
- const message = ref('');
19
+ <script>
20
+ import { LabeledInput } from '@components/Form/LabeledInput';
21
+ export default {
22
+ components: { LabeledInput },
23
+ data() {
24
+ return {
25
+ message: '',
26
+ id: '',
27
+ scret: '',
28
+ templateId: ''
29
+ };
30
+ }
31
+ };
24
32
  </script>
@@ -30,10 +30,23 @@
30
30
  </div>
31
31
  </div>
32
32
  </template>
33
- <script setup>
34
- import { ref } from 'vue';
35
- const id = ref('');
36
- const scret = ref('');
37
- const message = ref('');
38
- const templateId = ref('');
33
+ <script>
34
+ import { LabeledInput } from '@components/Form/LabeledInput';
35
+ // import { ref } from 'vue';
36
+ // const id = ref('');
37
+ // const scret = ref('');
38
+ // const message = ref('');
39
+ // const templateId = ref('');
40
+
41
+ export default {
42
+ components: { LabeledInput },
43
+ data() {
44
+ return {
45
+ message: '',
46
+ id: '',
47
+ scret: '',
48
+ templateId: ''
49
+ };
50
+ }
51
+ };
39
52
  </script>
@@ -23,10 +23,23 @@
23
23
  </div>
24
24
  </div>
25
25
  </template>
26
- <script setup>
27
- import { ref } from 'vue';
28
- const id = ref('');
29
- const scret = ref('');
30
- const message = ref('');
26
+ <script>
27
+ import { LabeledInput } from '@components/Form/LabeledInput';
28
+ // import { ref } from 'vue';
29
+ // const id = ref('');
30
+ // const scret = ref('');
31
+ // const message = ref('');
32
+ // const templateId = ref('');
31
33
 
34
+ export default {
35
+ components: { LabeledInput },
36
+ data() {
37
+ return {
38
+ message: '',
39
+ id: '',
40
+ scret: '',
41
+ templateId: ''
42
+ };
43
+ }
44
+ };
32
45
  </script>
@@ -9,8 +9,23 @@
9
9
  </div>
10
10
  </div>
11
11
  </template>
12
- <script setup>
13
- import { ref } from 'vue';
14
- const message = ref('');
12
+ <script>
13
+ import { LabeledInput } from '@components/Form/LabeledInput';
14
+ // import { ref } from 'vue';
15
+ // const id = ref('');
16
+ // const scret = ref('');
17
+ // const message = ref('');
18
+ // const templateId = ref('');
15
19
 
20
+ export default {
21
+ components: { LabeledInput },
22
+ data() {
23
+ return {
24
+ message: '',
25
+ id: '',
26
+ scret: '',
27
+ templateId: ''
28
+ };
29
+ }
30
+ };
16
31
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashboard-shell-shell",
3
- "version": "3.0.5-tsh.1",
3
+ "version": "3.0.5-tsh.3",
4
4
  "description": "Rancher Dashboard Shell",
5
5
  "repository": "https://github.com/rancherlabs/dashboard",
6
6
  "license": "Apache-2.0",