From fa7355fd4aabea56a3335ffbcf736677ef5a8dec Mon Sep 17 00:00:00 2001 From: ni00 Date: Tue, 11 Jul 2023 14:32:38 +0800 Subject: [PATCH] chore(script):modify some script example --- scripts-example/{ => function}/dynamicSwitch.js | 0 scripts-example/{ => function}/tempAndHum.js | 0 scripts-example/{ => function}/timestamp.js | 0 scripts-example/schema/Person.proto | 6 ++++++ src/lang/connections.ts | 2 +- src/views/connections/ConnectionsDetail.vue | 2 +- 6 files changed, 8 insertions(+), 2 deletions(-) rename scripts-example/{ => function}/dynamicSwitch.js (100%) rename scripts-example/{ => function}/tempAndHum.js (100%) rename scripts-example/{ => function}/timestamp.js (100%) create mode 100644 scripts-example/schema/Person.proto diff --git a/scripts-example/dynamicSwitch.js b/scripts-example/function/dynamicSwitch.js similarity index 100% rename from scripts-example/dynamicSwitch.js rename to scripts-example/function/dynamicSwitch.js diff --git a/scripts-example/tempAndHum.js b/scripts-example/function/tempAndHum.js similarity index 100% rename from scripts-example/tempAndHum.js rename to scripts-example/function/tempAndHum.js diff --git a/scripts-example/timestamp.js b/scripts-example/function/timestamp.js similarity index 100% rename from scripts-example/timestamp.js rename to scripts-example/function/timestamp.js diff --git a/scripts-example/schema/Person.proto b/scripts-example/schema/Person.proto new file mode 100644 index 000000000..9104897dc --- /dev/null +++ b/scripts-example/schema/Person.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; + +message Person { + int32 id = 1; + string name = 2; +} diff --git a/src/lang/connections.ts b/src/lang/connections.ts index fc18f00e7..d1b811f42 100644 --- a/src/lang/connections.ts +++ b/src/lang/connections.ts @@ -811,7 +811,7 @@ export default { hu: 'Legalább egy tanúsítványfájlt töltsön fel', }, usedScript: { - zh: '使用', + zh: '已使用', en: 'Used', tr: '', ja: '', diff --git a/src/views/connections/ConnectionsDetail.vue b/src/views/connections/ConnectionsDetail.vue index bdfdb2499..51812f66b 100644 --- a/src/views/connections/ConnectionsDetail.vue +++ b/src/views/connections/ConnectionsDetail.vue @@ -1538,7 +1538,7 @@ export default class ConnectionsDetail extends Vue { count, ) } catch (error) { - this.$message.error((error as Error).toString()) + this.$message.error(`Function Error: ${(error as Error).toString()}`) } } return convertPayload