From 7435e592540e0bec389dac2378cb723a41f7b3c3 Mon Sep 17 00:00:00 2001 From: Fine Date: Tue, 20 Dec 2022 14:40:54 +0800 Subject: [PATCH] feat: add new widget --- src/assets/icons/add_iframe.svg | 15 +++ src/store/modules/dashboard.ts | 4 +- src/views/dashboard/controls/Text.vue | 4 +- .../dashboard/controls/ThirdPartyApp.vue | 100 ++++++++++++++++++ src/views/dashboard/controls/index.ts | 2 + src/views/dashboard/controls/tab.ts | 2 + src/views/dashboard/data.ts | 10 +- src/views/dashboard/panel/Tool.vue | 6 ++ 8 files changed, 138 insertions(+), 5 deletions(-) create mode 100644 src/assets/icons/add_iframe.svg create mode 100644 src/views/dashboard/controls/ThirdPartyApp.vue diff --git a/src/assets/icons/add_iframe.svg b/src/assets/icons/add_iframe.svg new file mode 100644 index 00000000..5fa776c0 --- /dev/null +++ b/src/assets/icons/add_iframe.svg @@ -0,0 +1,15 @@ + + \ No newline at end of file diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 3258bfbf..e2c068d4 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -108,7 +108,7 @@ export const dashboardStore = defineStore({ depth: this.entity === EntityType[1].value ? 1 : this.entity === EntityType[0].value ? 2 : 3, }; } - if (["Trace", "Profile", "Log", "DemandLog", "Ebpf", "NetworkProfiling"].includes(type)) { + if (["Trace", "Profile", "Log", "DemandLog", "Ebpf", "NetworkProfiling", "Iframe"].includes(type)) { newItem.h = 36; } if (type === "Text") { @@ -168,7 +168,7 @@ export const dashboardStore = defineStore({ showDepth: true, }; } - if (["Trace", "Profile", "Log", "DemandLog", "Ebpf", "NetworkProfiling"].includes(type)) { + if (["Trace", "Profile", "Log", "DemandLog", "Ebpf", "NetworkProfiling", "Iframe"].includes(type)) { newItem.h = 32; } if (type === "Text") { diff --git a/src/views/dashboard/controls/Text.vue b/src/views/dashboard/controls/Text.vue index 209694da..3c637c76 100644 --- a/src/views/dashboard/controls/Text.vue +++ b/src/views/dashboard/controls/Text.vue @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->