From ec5bcdc908d49508821d9334d8e6e62598a2174f Mon Sep 17 00:00:00 2001
From: timongh <46739861+timongh@users.noreply.github.com>
Date: Mon, 20 Feb 2023 05:26:39 +0800
Subject: [PATCH 1/3] Fix type errors of IframePopup.vue
---
.../style/custom-navbar/iframe/IframePopup.vue | 9 +++++++++
.../lib/components/style/custom-navbar/iframe/iframe.ts | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/registry/lib/components/style/custom-navbar/iframe/IframePopup.vue b/registry/lib/components/style/custom-navbar/iframe/IframePopup.vue
index 099477608..a57a5fdd7 100644
--- a/registry/lib/components/style/custom-navbar/iframe/IframePopup.vue
+++ b/registry/lib/components/style/custom-navbar/iframe/IframePopup.vue
@@ -3,10 +3,19 @@
diff --git a/registry/lib/components/style/custom-navbar/iframe/iframe.ts b/registry/lib/components/style/custom-navbar/iframe/iframe.ts
index 770841e25..2be4cd53e 100644
--- a/registry/lib/components/style/custom-navbar/iframe/iframe.ts
+++ b/registry/lib/components/style/custom-navbar/iframe/iframe.ts
@@ -1,6 +1,6 @@
import { CustomNavbarItemInit } from '../custom-navbar-item'
-interface NavbarIframeConfig {
+export interface NavbarIframeConfig {
src: string
href: string
width: number
From ce201a0c04e005003b44ba0fb8091069703d139b Mon Sep 17 00:00:00 2001
From: the1812
Date: Mon, 20 Feb 2023 09:04:34 +0800
Subject: [PATCH 2/3] Fix undefined properties (fix #3992)
---
.../style/custom-navbar/feeds/tabs/LiveFeeds.vue | 2 +-
registry/lib/components/utils/dev-client/Widget.vue | 7 -------
src/core/toast/MiniToast.vue | 3 +--
3 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/registry/lib/components/style/custom-navbar/feeds/tabs/LiveFeeds.vue b/registry/lib/components/style/custom-navbar/feeds/tabs/LiveFeeds.vue
index c0e0608b3..1a23120a7 100644
--- a/registry/lib/components/style/custom-navbar/feeds/tabs/LiveFeeds.vue
+++ b/registry/lib/components/style/custom-navbar/feeds/tabs/LiveFeeds.vue
@@ -9,7 +9,7 @@
{{ c.title }}
-
{{ c.upName }}
+
{{ c.upName }}
diff --git a/registry/lib/components/utils/dev-client/Widget.vue b/registry/lib/components/utils/dev-client/Widget.vue
index b48e90862..20c43785a 100644
--- a/registry/lib/components/utils/dev-client/Widget.vue
+++ b/registry/lib/components/utils/dev-client/Widget.vue
@@ -34,8 +34,6 @@ export default Vue.extend({
data() {
return {
client: null,
- // sessions: [],
- // devRecords: options.devRecords,
isConnected: false,
}
},
@@ -44,12 +42,10 @@ export default Vue.extend({
this.client = devClient
this.updateConnectionStatus()
devClient.addEventListener(DevClientEvents.ServerChange, this.updateConnectionStatus)
- // devClient.addEventListener(DevClientEvents.SessionsUpdate, this.updateSessionsStatus)
},
beforeDestroy() {
const devClient = this.client as DevClient
devClient.removeEventListener(DevClientEvents.ServerChange, this.updateConnectionStatus)
- // devClient.removeEventListener(DevClientEvents.SessionsUpdate, this.updateSessionsStatus)
},
methods: {
async connect() {
@@ -61,9 +57,6 @@ export default Vue.extend({
updateConnectionStatus() {
this.isConnected = this.client.isConnected
},
- updateSessionsStatus() {
- this.sessions = [...this.client.sessions]
- },
},
})
diff --git a/src/core/toast/MiniToast.vue b/src/core/toast/MiniToast.vue
index bddf4075f..7971e47c5 100644
--- a/src/core/toast/MiniToast.vue
+++ b/src/core/toast/MiniToast.vue
@@ -49,8 +49,7 @@ export default Vue.extend({
async mounted() {
await this.$nextTick()
const appendTarget = containerMap[this.container]
- this.toast = createMiniToast(this.message, this.$refs.content, {
- content: this.$refs.toast,
+ this.toast = createMiniToast(this.$refs.toast, this.$refs.content, {
placement: this.placement,
showOnCreate: this.show,
trigger: 'mouseenter focusin',
From b633a03919008a9f2a7f5dd8fe1a00d76b855d38 Mon Sep 17 00:00:00 2001
From: the1812
Date: Mon, 20 Feb 2023 22:41:40 +0800
Subject: [PATCH 3/3] Export Dialog API
---
src/core/core-apis.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/core/core-apis.ts b/src/core/core-apis.ts
index 7aa9d809e..50974c6d0 100644
--- a/src/core/core-apis.ts
+++ b/src/core/core-apis.ts
@@ -1,6 +1,7 @@
import * as ajax from '@/core/ajax'
import * as cdnTypes from '@/core/cdn-types'
import * as download from '@/core/download'
+import * as dialog from '@/core/dialog'
import * as externalInput from '@/core/external-input'
import * as filePicker from '@/core/file-picker'
import * as installFeature from '@/core/install-feature'
@@ -39,6 +40,7 @@ export const coreApis = {
ajax,
cdnTypes,
download,
+ dialog,
externalInput,
filePicker,
installFeature,
@@ -78,6 +80,7 @@ export const externalApis = {
ajax,
...cdnTypes,
...download,
+ ...dialog,
...externalInput,
...filePicker,
...installFeature,