wi-chat 0.6.1 → 0.6.2
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/dist/core/index.cjs +1 -1
- package/dist/core/index.js +273 -261
- package/dist/core/useChat.d.ts +61 -12
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +33 -33
- package/dist/mobile-ui/chat/ChatContainer.vue.d.ts +6 -6
- package/dist/mobile-ui/chat/ChatMessagesView.vue.d.ts +6 -6
- package/dist/mobile-ui/index.cjs +1 -1
- package/dist/mobile-ui/index.js +104 -104
- package/dist/mobile-ui/inputbox/Inputbox.vue.d.ts +5 -5
- package/dist/page-context/index.js +2 -4
- package/dist/parser/answerCom/actionExecute/actionProtocol.d.ts +1 -7
- package/dist/parser/answerCom/actionExecute/clarification.d.ts +15 -3
- package/dist/parser/answerCom/actionExecute/constants.d.ts +10 -0
- package/dist/parser/answerCom/actionExecute/parseCollectClarifications.d.ts +3 -2
- package/dist/parser/answerCom/actionExecute/parseHostAction.d.ts +3 -2
- package/dist/parser/answerCom/actionExecute/types.d.ts +3 -3
- package/dist/parser/index.cjs +2 -2
- package/dist/parser/index.d.ts +2 -2
- package/dist/parser/index.js +216 -258
- package/dist/parser/registry.d.ts +1 -1
- package/dist/renderers/aiAnswer/AiAnswerBubble.vue.d.ts +4 -4
- package/dist/renderers/clarification/ClarificationCard.vue.d.ts +3 -3
- package/dist/renderers/deepThinking/DeepThinkingSteps.vue.d.ts +4 -4
- package/dist/renderers/hostAction/HostActionStatus.vue.d.ts +3 -3
- package/dist/renderers/iframePage/IframePage.vue.d.ts +3 -3
- package/dist/renderers/index.cjs +1 -1
- package/dist/renderers/index.js +484 -498
- package/dist/renderers/knowledgeStream/KnowledgeStreamResult.vue.d.ts +3 -3
- package/dist/renderers/outputFile/OutputFile.vue.d.ts +3 -3
- package/dist/renderers/style.css +1 -1
- package/dist/request/index.cjs +2 -2
- package/dist/request/index.js +6 -13
- package/dist/request/ws.d.ts +3 -3
- package/dist/right-panel/RightPanel.vue.d.ts +6 -6
- package/dist/right-panel/RightPanelIcon.vue.d.ts +4 -4
- package/dist/right-panel/RightPanelTabs.vue.d.ts +5 -5
- package/dist/right-panel/index.cjs +1 -1
- package/dist/right-panel/index.js +397 -416
- package/dist/right-panel/panels/newtab/NewTabPanel.vue.d.ts +4 -4
- package/dist/right-panel/panels/web/WebPanel.vue.d.ts +3 -3
- package/dist/right-panel/shared/BrowserToolbar.vue.d.ts +3 -3
- package/dist/right-panel/shared/RightPanelToolList.vue.d.ts +5 -5
- package/dist/theme/index.js +2 -4
- package/dist/tools/index.cjs +2 -2
- package/dist/tools/index.js +10 -19
- package/dist/tools/markdown/MarkdownContent.vue.d.ts +5 -5
- package/dist/tools/useAutoScroll.d.ts +3 -3
- package/dist/web-ui/attach/AttachmentCard.vue.d.ts +6 -6
- package/dist/web-ui/attach/AttachmentList.vue.d.ts +6 -6
- package/dist/web-ui/chat/ChatContainer.vue.d.ts +6 -6
- package/dist/web-ui/chat/ChatMessagesView.vue.d.ts +6 -6
- package/dist/web-ui/envswitch/EnvSwitch.vue.d.ts +5 -5
- package/dist/web-ui/index.cjs +1 -1
- package/dist/web-ui/index.js +630 -635
- package/dist/web-ui/inputbox/Inputbox.vue.d.ts +7 -7
- package/dist/web-ui/recordset/RecordsetTable.vue.d.ts +4 -4
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as G, computed as y, openBlock as h, createElementBlock as v, Fragment as B, renderList as Q, createElementVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as G, computed as y, openBlock as h, createElementBlock as v, Fragment as B, renderList as Q, createElementVNode as u, normalizeClass as le, createVNode as $, toDisplayString as R, createCommentVNode as P, withModifiers as se, ref as E, watch as V, withDirectives as ve, vModelText as Le, normalizeStyle as ge, unref as _e, createBlock as be, createTextVNode as Ce, onMounted as fe, onUnmounted as me, shallowReactive as Se, reactive as we, nextTick as Ae, resolveDynamicComponent as We, vShow as Ne } from "vue";
|
|
2
|
+
const pe = {
|
|
3
3
|
/** 地球:网页标签页与推荐站点缺省图标 */
|
|
4
4
|
globe: [
|
|
5
5
|
"M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18",
|
|
@@ -47,18 +47,18 @@ const _e = {
|
|
|
47
47
|
maximize: ["M4 9V4h5", "M20 9V4h-5", "M4 15v5h5", "M20 15v5h-5"],
|
|
48
48
|
/** 还原(四角向内) */
|
|
49
49
|
restore: ["M9 4v5H4", "M15 4v5h5", "M9 20v-5H4", "M15 20v-5h5"]
|
|
50
|
-
},
|
|
50
|
+
}, Oe = ["width", "height"], Ue = ["d"], De = /* @__PURE__ */ G({
|
|
51
51
|
__name: "RightPanelIcon",
|
|
52
52
|
props: {
|
|
53
53
|
name: { default: "globe" },
|
|
54
54
|
size: { default: 16 }
|
|
55
55
|
},
|
|
56
56
|
setup(t) {
|
|
57
|
-
const e = t, n = y(() =>
|
|
58
|
-
return (
|
|
57
|
+
const e = t, n = y(() => pe[e.name] ?? pe.globe);
|
|
58
|
+
return (d, o) => (h(), v("svg", {
|
|
59
59
|
class: "wi-right-panel__icon",
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
60
|
+
width: t.size,
|
|
61
|
+
height: t.size,
|
|
62
62
|
viewBox: "0 0 24 24",
|
|
63
63
|
fill: "none",
|
|
64
64
|
stroke: "currentColor",
|
|
@@ -67,21 +67,21 @@ const _e = {
|
|
|
67
67
|
"stroke-linejoin": "round",
|
|
68
68
|
"aria-hidden": "true"
|
|
69
69
|
}, [
|
|
70
|
-
(h(!0), v(B, null, Q(n.value, (
|
|
71
|
-
key:
|
|
72
|
-
d:
|
|
73
|
-
}, null, 8,
|
|
74
|
-
], 8,
|
|
70
|
+
(h(!0), v(B, null, Q(n.value, (l, g) => (h(), v("path", {
|
|
71
|
+
key: g,
|
|
72
|
+
d: l
|
|
73
|
+
}, null, 8, Ue))), 128))
|
|
74
|
+
], 8, Oe));
|
|
75
75
|
}
|
|
76
76
|
}), F = (t, e) => {
|
|
77
77
|
const n = t.__vccOpts || t;
|
|
78
|
-
for (const [
|
|
79
|
-
n[
|
|
78
|
+
for (const [d, o] of e)
|
|
79
|
+
n[d] = o;
|
|
80
80
|
return n;
|
|
81
|
-
},
|
|
81
|
+
}, I = /* @__PURE__ */ F(De, [["__scopeId", "data-v-5a35fd97"]]), Be = { class: "wi-right-panel__tabs" }, Ge = { class: "wi-right-panel__tabs-list" }, Fe = ["title", "onClick"], He = { class: "wi-right-panel__tab-title" }, Ke = {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: "wi-right-panel__tab-loading"
|
|
84
|
-
},
|
|
84
|
+
}, Ve = ["onClick"], je = ["title"], Xe = /* @__PURE__ */ G({
|
|
85
85
|
__name: "RightPanelTabs",
|
|
86
86
|
props: {
|
|
87
87
|
tabs: {},
|
|
@@ -91,183 +91,183 @@ const _e = {
|
|
|
91
91
|
emits: ["select", "close", "add", "toggle-maximize", "collapse"],
|
|
92
92
|
setup(t, { emit: e }) {
|
|
93
93
|
const n = e;
|
|
94
|
-
return (
|
|
95
|
-
|
|
96
|
-
(h(!0), v(B, null, Q(
|
|
97
|
-
key:
|
|
94
|
+
return (d, o) => (h(), v("div", Be, [
|
|
95
|
+
u("div", Ge, [
|
|
96
|
+
(h(!0), v(B, null, Q(t.tabs, (l) => (h(), v("button", {
|
|
97
|
+
key: l.id,
|
|
98
98
|
type: "button",
|
|
99
|
-
class:
|
|
100
|
-
title:
|
|
101
|
-
onClick: (
|
|
99
|
+
class: le(["wi-right-panel__tab", { "is-active": l.id === t.activeId }]),
|
|
100
|
+
title: l.title,
|
|
101
|
+
onClick: (g) => n("select", l.id)
|
|
102
102
|
}, [
|
|
103
|
-
|
|
104
|
-
name:
|
|
103
|
+
$(I, {
|
|
104
|
+
name: l.icon || "globe",
|
|
105
105
|
size: 14
|
|
106
106
|
}, null, 8, ["name"]),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
u("span", He, R(l.title), 1),
|
|
108
|
+
l.loading ? (h(), v("span", Ke)) : P("", !0),
|
|
109
|
+
u("span", {
|
|
110
110
|
class: "wi-right-panel__tab-close",
|
|
111
111
|
title: "关闭标签页",
|
|
112
|
-
onClick:
|
|
112
|
+
onClick: se((g) => n("close", l.id), ["stop"])
|
|
113
113
|
}, [
|
|
114
|
-
|
|
114
|
+
$(I, {
|
|
115
115
|
name: "close",
|
|
116
116
|
size: 12
|
|
117
117
|
})
|
|
118
|
-
], 8,
|
|
119
|
-
], 10,
|
|
118
|
+
], 8, Ve)
|
|
119
|
+
], 10, Fe))), 128))
|
|
120
120
|
]),
|
|
121
|
-
|
|
121
|
+
u("button", {
|
|
122
122
|
type: "button",
|
|
123
123
|
class: "wi-right-panel__tab-action",
|
|
124
124
|
title: "新建标签页 Ctrl+Shift+B",
|
|
125
|
-
onClick: o[0] || (o[0] = (
|
|
125
|
+
onClick: o[0] || (o[0] = (l) => n("add"))
|
|
126
126
|
}, [
|
|
127
|
-
|
|
127
|
+
$(I, {
|
|
128
128
|
name: "plus",
|
|
129
129
|
size: 15
|
|
130
130
|
})
|
|
131
131
|
]),
|
|
132
|
-
|
|
132
|
+
u("button", {
|
|
133
133
|
type: "button",
|
|
134
134
|
class: "wi-right-panel__tab-action wi-right-panel__tab-action--maximize",
|
|
135
|
-
title:
|
|
136
|
-
onClick: o[1] || (o[1] = (
|
|
135
|
+
title: t.maximized ? "还原面板" : "最大化面板",
|
|
136
|
+
onClick: o[1] || (o[1] = (l) => n("toggle-maximize"))
|
|
137
137
|
}, [
|
|
138
|
-
|
|
139
|
-
name:
|
|
138
|
+
$(I, {
|
|
139
|
+
name: t.maximized ? "restore" : "maximize",
|
|
140
140
|
size: 15
|
|
141
141
|
}, null, 8, ["name"])
|
|
142
|
-
], 8,
|
|
143
|
-
|
|
142
|
+
], 8, je),
|
|
143
|
+
u("button", {
|
|
144
144
|
type: "button",
|
|
145
145
|
class: "wi-right-panel__tab-action wi-right-panel__tab-action--collapse",
|
|
146
146
|
title: "收起侧边栏",
|
|
147
|
-
onClick: o[2] || (o[2] = (
|
|
147
|
+
onClick: o[2] || (o[2] = (l) => n("collapse"))
|
|
148
148
|
}, [
|
|
149
|
-
|
|
149
|
+
$(I, {
|
|
150
150
|
name: "sidebar",
|
|
151
151
|
size: 15
|
|
152
152
|
})
|
|
153
153
|
])
|
|
154
154
|
]));
|
|
155
155
|
}
|
|
156
|
-
}),
|
|
156
|
+
}), qe = /* @__PURE__ */ F(Xe, [["__scopeId", "data-v-0f712f34"]]), ye = () => typeof window > "u" ? {} : window, Te = () => {
|
|
157
157
|
var e;
|
|
158
|
-
const t =
|
|
158
|
+
const t = ye();
|
|
159
159
|
return !!((e = t.electronApp) != null && e.isElectron) || !!t.wiElectron || !!t.wiChatDesktop;
|
|
160
|
-
},
|
|
160
|
+
}, Je = { class: "wi-right-panel__toolbar" }, Qe = ["disabled"], Ye = ["disabled"], Ze = {
|
|
161
161
|
key: 0,
|
|
162
162
|
class: "wi-right-panel__address-loading"
|
|
163
|
-
},
|
|
163
|
+
}, et = ["disabled"], tt = /* @__PURE__ */ G({
|
|
164
164
|
__name: "BrowserToolbar",
|
|
165
165
|
props: {
|
|
166
166
|
tab: {},
|
|
167
167
|
panel: {}
|
|
168
168
|
},
|
|
169
169
|
setup(t) {
|
|
170
|
-
const e = t, n = y(() => e.panel.canGoBack.value),
|
|
170
|
+
const e = t, n = y(() => e.panel.canGoBack.value), d = y(() => e.panel.canGoForward.value), o = E(""), l = E();
|
|
171
171
|
V(
|
|
172
172
|
() => e.tab.url,
|
|
173
|
-
(
|
|
174
|
-
o.value =
|
|
173
|
+
(f) => {
|
|
174
|
+
o.value = f ?? "";
|
|
175
175
|
},
|
|
176
176
|
{ immediate: !0 }
|
|
177
177
|
);
|
|
178
|
-
const
|
|
179
|
-
const
|
|
180
|
-
|
|
178
|
+
const g = () => {
|
|
179
|
+
const f = o.value.trim();
|
|
180
|
+
f && e.panel.navigate(f);
|
|
181
181
|
}, T = () => {
|
|
182
|
-
const
|
|
183
|
-
!
|
|
182
|
+
const f = e.tab.url;
|
|
183
|
+
!f || typeof window > "u" || window.open(f, "_blank", "noopener,noreferrer");
|
|
184
184
|
};
|
|
185
|
-
return (
|
|
186
|
-
|
|
185
|
+
return (f, w) => (h(), v("div", Je, [
|
|
186
|
+
u("button", {
|
|
187
187
|
type: "button",
|
|
188
188
|
class: "wi-right-panel__tool",
|
|
189
189
|
disabled: !n.value,
|
|
190
190
|
title: "后退",
|
|
191
|
-
onClick: w[0] || (w[0] = (
|
|
191
|
+
onClick: w[0] || (w[0] = (m) => t.panel.goBack())
|
|
192
192
|
}, [
|
|
193
|
-
|
|
193
|
+
$(I, {
|
|
194
194
|
name: "arrow-left",
|
|
195
195
|
size: 15
|
|
196
196
|
})
|
|
197
|
-
], 8,
|
|
198
|
-
|
|
197
|
+
], 8, Qe),
|
|
198
|
+
u("button", {
|
|
199
199
|
type: "button",
|
|
200
200
|
class: "wi-right-panel__tool",
|
|
201
|
-
disabled: !
|
|
201
|
+
disabled: !d.value,
|
|
202
202
|
title: "前进",
|
|
203
|
-
onClick: w[1] || (w[1] = (
|
|
203
|
+
onClick: w[1] || (w[1] = (m) => t.panel.goForward())
|
|
204
204
|
}, [
|
|
205
|
-
|
|
205
|
+
$(I, {
|
|
206
206
|
name: "arrow-right",
|
|
207
207
|
size: 15
|
|
208
208
|
})
|
|
209
|
-
], 8,
|
|
210
|
-
|
|
209
|
+
], 8, Ye),
|
|
210
|
+
u("button", {
|
|
211
211
|
type: "button",
|
|
212
212
|
class: "wi-right-panel__tool",
|
|
213
213
|
title: "刷新",
|
|
214
|
-
onClick: w[2] || (w[2] = (
|
|
214
|
+
onClick: w[2] || (w[2] = (m) => t.panel.reload())
|
|
215
215
|
}, [
|
|
216
|
-
|
|
216
|
+
$(I, {
|
|
217
217
|
name: "reload",
|
|
218
218
|
size: 15
|
|
219
219
|
})
|
|
220
220
|
]),
|
|
221
|
-
|
|
221
|
+
u("form", {
|
|
222
222
|
class: "wi-right-panel__address",
|
|
223
|
-
onSubmit:
|
|
223
|
+
onSubmit: se(g, ["prevent"])
|
|
224
224
|
}, [
|
|
225
|
-
|
|
225
|
+
$(I, {
|
|
226
226
|
class: "wi-right-panel__address-icon",
|
|
227
227
|
name: "search",
|
|
228
228
|
size: 13
|
|
229
229
|
}),
|
|
230
|
-
|
|
230
|
+
ve(u("input", {
|
|
231
231
|
ref_key: "inputRef",
|
|
232
|
-
ref:
|
|
233
|
-
"onUpdate:modelValue": w[3] || (w[3] = (
|
|
232
|
+
ref: l,
|
|
233
|
+
"onUpdate:modelValue": w[3] || (w[3] = (m) => o.value = m),
|
|
234
234
|
class: "wi-right-panel__address-input",
|
|
235
235
|
type: "text",
|
|
236
236
|
placeholder: "搜索或输入网址",
|
|
237
237
|
spellcheck: "false",
|
|
238
238
|
autocomplete: "off"
|
|
239
239
|
}, null, 512), [
|
|
240
|
-
[
|
|
240
|
+
[Le, o.value]
|
|
241
241
|
]),
|
|
242
|
-
|
|
242
|
+
t.tab.loading ? (h(), v("span", Ze)) : P("", !0)
|
|
243
243
|
], 32),
|
|
244
|
-
|
|
244
|
+
u("button", {
|
|
245
245
|
type: "button",
|
|
246
246
|
class: "wi-right-panel__tool",
|
|
247
|
-
disabled: !
|
|
247
|
+
disabled: !t.tab.url,
|
|
248
248
|
title: "在新窗口打开",
|
|
249
249
|
onClick: T
|
|
250
250
|
}, [
|
|
251
|
-
|
|
251
|
+
$(I, {
|
|
252
252
|
name: "external",
|
|
253
253
|
size: 15
|
|
254
254
|
})
|
|
255
|
-
], 8,
|
|
255
|
+
], 8, et)
|
|
256
256
|
]));
|
|
257
257
|
}
|
|
258
|
-
}),
|
|
258
|
+
}), ke = /* @__PURE__ */ F(tt, [["__scopeId", "data-v-89af1cad"]]), nt = {
|
|
259
259
|
key: 0,
|
|
260
260
|
class: "wi-right-panel__section"
|
|
261
|
-
},
|
|
261
|
+
}, at = {
|
|
262
262
|
key: 0,
|
|
263
263
|
class: "wi-right-panel__section-title"
|
|
264
|
-
},
|
|
264
|
+
}, it = ["title", "onClick"], ot = { class: "wi-right-panel__tool-card-label" }, lt = {
|
|
265
265
|
key: 0,
|
|
266
266
|
class: "wi-right-panel__tool-card-tag"
|
|
267
|
-
},
|
|
267
|
+
}, st = {
|
|
268
268
|
key: 1,
|
|
269
269
|
class: "wi-right-panel__tool-card-shortcut"
|
|
270
|
-
},
|
|
270
|
+
}, rt = /* @__PURE__ */ G({
|
|
271
271
|
__name: "RightPanelToolList",
|
|
272
272
|
props: {
|
|
273
273
|
tools: {},
|
|
@@ -276,33 +276,33 @@ const _e = {
|
|
|
276
276
|
},
|
|
277
277
|
emits: ["tool-click"],
|
|
278
278
|
setup(t, { emit: e }) {
|
|
279
|
-
const n = e,
|
|
279
|
+
const n = e, d = (o) => {
|
|
280
280
|
n("tool-click", o);
|
|
281
281
|
};
|
|
282
|
-
return (o,
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
return (o, l) => t.tools.length ? (h(), v("section", nt, [
|
|
283
|
+
t.title ? (h(), v("h4", at, R(t.title), 1)) : P("", !0),
|
|
284
|
+
u("div", {
|
|
285
285
|
class: "wi-right-panel__tools",
|
|
286
|
-
style:
|
|
286
|
+
style: ge({ gridTemplateColumns: `repeat(${t.columns}, minmax(0, 1fr))` })
|
|
287
287
|
}, [
|
|
288
|
-
(h(!0), v(B, null, Q(
|
|
289
|
-
key:
|
|
288
|
+
(h(!0), v(B, null, Q(t.tools, (g) => (h(), v("button", {
|
|
289
|
+
key: g.key,
|
|
290
290
|
type: "button",
|
|
291
|
-
class:
|
|
292
|
-
title:
|
|
293
|
-
onClick: (T) =>
|
|
291
|
+
class: le(["wi-right-panel__tool-card", { "is-disabled": g.disabled }]),
|
|
292
|
+
title: g.description ?? g.label,
|
|
293
|
+
onClick: (T) => d(g)
|
|
294
294
|
}, [
|
|
295
|
-
|
|
296
|
-
name:
|
|
295
|
+
$(I, {
|
|
296
|
+
name: g.icon,
|
|
297
297
|
size: 16
|
|
298
298
|
}, null, 8, ["name"]),
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
], 10,
|
|
299
|
+
u("span", ot, R(g.label), 1),
|
|
300
|
+
g.disabled ? (h(), v("span", lt, "即将支持")) : g.shortcut ? (h(), v("span", st, R(g.shortcut), 1)) : P("", !0)
|
|
301
|
+
], 10, it))), 128))
|
|
302
302
|
], 4)
|
|
303
303
|
])) : P("", !0);
|
|
304
304
|
}
|
|
305
|
-
}),
|
|
305
|
+
}), ct = /* @__PURE__ */ F(rt, [["__scopeId", "data-v-edb8e61a"]]), dt = [], ut = [
|
|
306
306
|
{
|
|
307
307
|
title: "地图 Demo · OpenLayers",
|
|
308
308
|
url: "https://openlayers.org/",
|
|
@@ -313,10 +313,10 @@ const _e = {
|
|
|
313
313
|
url: "http://127.0.0.1:8890",
|
|
314
314
|
description: "本机开发服务"
|
|
315
315
|
}
|
|
316
|
-
],
|
|
316
|
+
], pt = { class: "wi-right-panel__newtab" }, ht = { class: "wi-right-panel__newtab-body" }, vt = { class: "wi-right-panel__hero" }, gt = { class: "wi-right-panel__hero-title" }, _t = { class: "wi-right-panel__hero-desc" }, bt = {
|
|
317
317
|
key: 0,
|
|
318
318
|
class: "wi-right-panel__section"
|
|
319
|
-
},
|
|
319
|
+
}, ft = { class: "wi-right-panel__recommendations" }, mt = ["title", "onClick"], wt = { class: "wi-right-panel__recommendation-icon" }, yt = { class: "wi-right-panel__recommendation-title" }, Tt = /* @__PURE__ */ G({
|
|
320
320
|
__name: "NewTabPanel",
|
|
321
321
|
props: {
|
|
322
322
|
tab: {},
|
|
@@ -324,72 +324,71 @@ const _e = {
|
|
|
324
324
|
},
|
|
325
325
|
emits: ["tool-click"],
|
|
326
326
|
setup(t, { emit: e }) {
|
|
327
|
-
const n = t,
|
|
328
|
-
|
|
329
|
-
},
|
|
330
|
-
n.panel.navigate(
|
|
331
|
-
}, w = (
|
|
332
|
-
return (
|
|
333
|
-
|
|
334
|
-
tab:
|
|
335
|
-
panel:
|
|
327
|
+
const n = t, d = e, o = y(() => n.panel.options.tools ?? dt), l = y(() => n.panel.options.recommendations ?? ut), g = Te() ? "在这里打开网页或终端,与对话并行使用;每个标签页都会各自保留页面状态。" : "在这里打开网页,与对话并行使用;每个标签页都会各自保留页面状态。", T = (m) => {
|
|
328
|
+
d("tool-click", m);
|
|
329
|
+
}, f = (m) => {
|
|
330
|
+
n.panel.navigate(m.url, m.title);
|
|
331
|
+
}, w = (m) => m.trim().charAt(0).toUpperCase() || "·";
|
|
332
|
+
return (m, z) => (h(), v("div", pt, [
|
|
333
|
+
$(ke, {
|
|
334
|
+
tab: t.tab,
|
|
335
|
+
panel: t.panel
|
|
336
336
|
}, null, 8, ["tab", "panel"]),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
337
|
+
u("div", ht, [
|
|
338
|
+
u("section", vt, [
|
|
339
|
+
u("h3", gt, R(t.panel.options.newTabTitle), 1),
|
|
340
|
+
u("p", _t, R(_e(g)), 1)
|
|
341
341
|
]),
|
|
342
|
-
|
|
342
|
+
$(ct, {
|
|
343
343
|
tools: o.value,
|
|
344
344
|
onToolClick: T
|
|
345
345
|
}, null, 8, ["tools"]),
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
(h(!0), v(B, null, Q(
|
|
350
|
-
key:
|
|
346
|
+
l.value.length ? (h(), v("section", bt, [
|
|
347
|
+
z[0] || (z[0] = u("h4", { class: "wi-right-panel__section-title" }, "推荐", -1)),
|
|
348
|
+
u("div", ft, [
|
|
349
|
+
(h(!0), v(B, null, Q(l.value, (M) => (h(), v("button", {
|
|
350
|
+
key: M.url,
|
|
351
351
|
type: "button",
|
|
352
352
|
class: "wi-right-panel__recommendation",
|
|
353
|
-
title:
|
|
354
|
-
onClick: (
|
|
353
|
+
title: M.description ?? M.url,
|
|
354
|
+
onClick: (b) => f(M)
|
|
355
355
|
}, [
|
|
356
|
-
|
|
357
|
-
|
|
356
|
+
u("span", wt, [
|
|
357
|
+
M.icon ? (h(), be(I, {
|
|
358
358
|
key: 0,
|
|
359
|
-
name:
|
|
359
|
+
name: M.icon,
|
|
360
360
|
size: 17
|
|
361
361
|
}, null, 8, ["name"])) : (h(), v(B, { key: 1 }, [
|
|
362
|
-
|
|
362
|
+
Ce(R(w(M.title)), 1)
|
|
363
363
|
], 64))
|
|
364
364
|
]),
|
|
365
|
-
|
|
366
|
-
], 8,
|
|
365
|
+
u("span", yt, R(M.title), 1)
|
|
366
|
+
], 8, mt))), 128))
|
|
367
367
|
])
|
|
368
368
|
])) : P("", !0)
|
|
369
369
|
])
|
|
370
370
|
]));
|
|
371
371
|
}
|
|
372
|
-
}),
|
|
372
|
+
}), kt = /* @__PURE__ */ F(Tt, [["__scopeId", "data-v-1d433f71"]]), Mt = {
|
|
373
373
|
type: "newtab",
|
|
374
374
|
defaultTitle: "新建标签页",
|
|
375
375
|
icon: "newtab",
|
|
376
|
-
component:
|
|
377
|
-
},
|
|
378
|
-
var n,
|
|
379
|
-
if (typeof window > "u" || typeof document > "u")
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}, Lt = (t) => t || (St() ? "webview" : "iframe"), Ct = (t, e = Pt) => {
|
|
376
|
+
component: kt
|
|
377
|
+
}, $t = "persist:wi-right-panel", xt = () => {
|
|
378
|
+
var n, d, o;
|
|
379
|
+
if (typeof window > "u" || typeof document > "u") return !1;
|
|
380
|
+
const t = ye();
|
|
381
|
+
return !!((n = t.electronApp) != null && n.isElectron) || !!t.wiElectron ? ((d = t.wiElectron) == null ? void 0 : d.rightPanelWebviewEnabled) === !0 || ((o = t.electronApp) == null ? void 0 : o.rightPanelWebviewEnabled) === !0 : !1;
|
|
382
|
+
}, It = (t) => t || (xt() ? "webview" : "iframe"), Et = (t, e = $t) => {
|
|
384
383
|
const n = document.createElement("webview");
|
|
385
384
|
return n.className = "wi-right-panel__webview", n.style.display = "flex", n.style.width = "100%", n.style.height = "100%", n.style.background = "#fff", n.setAttribute("partition", e), t && n.setAttribute("src", t), n;
|
|
386
|
-
},
|
|
385
|
+
}, Rt = { class: "wi-right-panel__web" }, zt = {
|
|
387
386
|
key: 0,
|
|
388
387
|
class: "wi-right-panel__frame-hint"
|
|
389
|
-
},
|
|
388
|
+
}, Pt = { class: "wi-right-panel__web-body" }, Lt = ["src", "title"], Ct = {
|
|
390
389
|
key: 2,
|
|
391
390
|
class: "wi-right-panel__blocked"
|
|
392
|
-
},
|
|
391
|
+
}, St = { class: "wi-right-panel__blocked-title" }, At = { class: "wi-right-panel__blocked-desc" }, Wt = /* @__PURE__ */ G({
|
|
393
392
|
__name: "WebPanel",
|
|
394
393
|
props: {
|
|
395
394
|
tab: {},
|
|
@@ -397,26 +396,26 @@ const _e = {
|
|
|
397
396
|
runtime: {}
|
|
398
397
|
},
|
|
399
398
|
setup(t) {
|
|
400
|
-
const e = t, n =
|
|
401
|
-
o.value = !1, e.panel.reload(), n ||
|
|
402
|
-
},
|
|
399
|
+
const e = t, n = It(e.runtime) === "webview", d = y(() => `${e.tab.id}-${e.tab.reloadKey ?? 0}`), o = E(!1), l = () => {
|
|
400
|
+
o.value = !1, e.panel.reload(), n || m();
|
|
401
|
+
}, g = () => {
|
|
403
402
|
const i = e.tab.url;
|
|
404
403
|
!i || typeof window > "u" || window.open(i, "_blank", "noopener,noreferrer");
|
|
405
|
-
}, T =
|
|
406
|
-
let
|
|
404
|
+
}, T = E(!1);
|
|
405
|
+
let f;
|
|
407
406
|
const w = () => {
|
|
408
|
-
|
|
407
|
+
f && clearTimeout(f), f = void 0;
|
|
409
408
|
};
|
|
410
|
-
function
|
|
411
|
-
w(), T.value = !1, o.value = !1,
|
|
409
|
+
function m() {
|
|
410
|
+
w(), T.value = !1, o.value = !1, f = setTimeout(() => {
|
|
412
411
|
T.value || (o.value = !0);
|
|
413
412
|
}, 8e3);
|
|
414
413
|
}
|
|
415
|
-
const
|
|
416
|
-
var
|
|
414
|
+
const z = (i) => {
|
|
415
|
+
var s, k;
|
|
417
416
|
T.value = !0, o.value = !1, w(), e.panel.updateTab(e.tab.id, { loading: !1 });
|
|
418
417
|
try {
|
|
419
|
-
const D = (k = (
|
|
418
|
+
const D = (k = (s = i.target.contentDocument) == null ? void 0 : s.title) == null ? void 0 : k.trim();
|
|
420
419
|
D && e.panel.updateTab(e.tab.id, { title: D });
|
|
421
420
|
} catch {
|
|
422
421
|
}
|
|
@@ -424,113 +423,111 @@ const _e = {
|
|
|
424
423
|
V(
|
|
425
424
|
() => e.tab.url,
|
|
426
425
|
(i) => {
|
|
427
|
-
!i || n || (e.panel.updateTab(e.tab.id, { loading: !0 }),
|
|
426
|
+
!i || n || (e.panel.updateTab(e.tab.id, { loading: !0 }), m());
|
|
428
427
|
}
|
|
429
428
|
);
|
|
430
|
-
const
|
|
431
|
-
let
|
|
432
|
-
const C =
|
|
433
|
-
let
|
|
429
|
+
const M = E();
|
|
430
|
+
let b = null;
|
|
431
|
+
const C = E(e.tab.url ?? "");
|
|
432
|
+
let S = "";
|
|
434
433
|
const W = (i) => {
|
|
435
434
|
if (i) {
|
|
436
|
-
if (!
|
|
437
|
-
|
|
435
|
+
if (!b) {
|
|
436
|
+
S = i;
|
|
438
437
|
return;
|
|
439
438
|
}
|
|
440
|
-
i !== C.value && (C.value = i, e.panel.updateTab(e.tab.id, { loading: !0 }),
|
|
439
|
+
i !== C.value && (C.value = i, e.panel.updateTab(e.tab.id, { loading: !0 }), b.setAttribute("src", i));
|
|
441
440
|
}
|
|
442
441
|
}, H = () => {
|
|
443
442
|
o.value = !1, e.panel.updateTab(e.tab.id, { loading: !0 });
|
|
444
443
|
}, X = () => {
|
|
445
444
|
e.panel.updateTab(e.tab.id, { loading: !1 });
|
|
446
445
|
}, N = (i) => {
|
|
447
|
-
const
|
|
448
|
-
|
|
446
|
+
const s = i;
|
|
447
|
+
s.isMainFrame === !1 || !s.url || s.url === "about:blank" || (C.value = s.url, e.panel.recordNavigation(s.url, void 0, e.tab.id));
|
|
449
448
|
}, O = (i) => {
|
|
450
|
-
const
|
|
451
|
-
|
|
449
|
+
const s = i;
|
|
450
|
+
s.title && e.panel.updateTab(e.tab.id, { title: s.title });
|
|
452
451
|
}, q = (i) => {
|
|
453
|
-
const
|
|
454
|
-
|
|
452
|
+
const s = i;
|
|
453
|
+
s.isMainFrame === !1 || !s.errorCode || s.errorCode === -3 || (o.value = !0, e.panel.updateTab(e.tab.id, { loading: !1 }));
|
|
455
454
|
}, U = () => {
|
|
456
|
-
if (!
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
x = "", W(u);
|
|
455
|
+
if (!b) return;
|
|
456
|
+
const i = typeof b.getURL == "function" ? b.getURL() : b.getAttribute("src") || "";
|
|
457
|
+
if (i && (C.value = i), e.panel.updateTab(e.tab.id, { loading: !1 }), S) {
|
|
458
|
+
const s = S;
|
|
459
|
+
S = "", W(s);
|
|
462
460
|
}
|
|
463
461
|
}, K = () => {
|
|
464
|
-
if (!n ||
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
m = i, i.addEventListener("did-start-loading", H), i.addEventListener("did-stop-loading", X), i.addEventListener("did-navigate", N), i.addEventListener("did-navigate-in-page", N), i.addEventListener("page-title-updated", O), i.addEventListener("did-fail-load", q), i.addEventListener("dom-ready", U), $.value.replaceChildren(i);
|
|
462
|
+
if (!n || !M.value) return;
|
|
463
|
+
const i = Et(e.tab.url ?? "");
|
|
464
|
+
b = i, i.addEventListener("did-start-loading", H), i.addEventListener("did-stop-loading", X), i.addEventListener("did-navigate", N), i.addEventListener("did-navigate-in-page", N), i.addEventListener("page-title-updated", O), i.addEventListener("did-fail-load", q), i.addEventListener("dom-ready", U), M.value.replaceChildren(i);
|
|
468
465
|
};
|
|
469
466
|
return V(
|
|
470
467
|
() => e.tab.url,
|
|
471
468
|
(i) => {
|
|
472
469
|
!i || !n || W(i);
|
|
473
470
|
}
|
|
474
|
-
),
|
|
475
|
-
n ? K() :
|
|
476
|
-
}),
|
|
477
|
-
w(),
|
|
478
|
-
}), (i,
|
|
479
|
-
|
|
480
|
-
tab:
|
|
481
|
-
panel:
|
|
471
|
+
), fe(() => {
|
|
472
|
+
n ? K() : m();
|
|
473
|
+
}), me(() => {
|
|
474
|
+
w(), b && (b.remove(), b = null);
|
|
475
|
+
}), (i, s) => (h(), v("div", Rt, [
|
|
476
|
+
$(ke, {
|
|
477
|
+
tab: t.tab,
|
|
478
|
+
panel: t.panel
|
|
482
479
|
}, null, 8, ["tab", "panel"]),
|
|
483
|
-
n ? P("", !0) : (h(), v("div",
|
|
484
|
-
|
|
480
|
+
n ? P("", !0) : (h(), v("div", zt, [
|
|
481
|
+
$(I, {
|
|
485
482
|
name: "alert",
|
|
486
483
|
size: 12
|
|
487
484
|
}),
|
|
488
|
-
|
|
485
|
+
s[0] || (s[0] = u("span", null, "部分网站禁止被内嵌;若页面空白或显示禁止图标,请点右上角在新窗口打开。", -1))
|
|
489
486
|
])),
|
|
490
|
-
|
|
487
|
+
u("div", Pt, [
|
|
491
488
|
n ? (h(), v("div", {
|
|
492
489
|
key: 0,
|
|
493
490
|
ref_key: "webviewHostRef",
|
|
494
|
-
ref:
|
|
491
|
+
ref: M,
|
|
495
492
|
class: "wi-right-panel__webview-host"
|
|
496
|
-
}, null, 512)) :
|
|
497
|
-
key:
|
|
493
|
+
}, null, 512)) : t.tab.url ? (h(), v("iframe", {
|
|
494
|
+
key: d.value,
|
|
498
495
|
class: "wi-right-panel__iframe",
|
|
499
|
-
src:
|
|
500
|
-
title:
|
|
496
|
+
src: t.tab.url,
|
|
497
|
+
title: t.tab.title,
|
|
501
498
|
referrerpolicy: "no-referrer",
|
|
502
|
-
onLoad:
|
|
503
|
-
}, null, 40,
|
|
504
|
-
o.value ? (h(), v("div",
|
|
505
|
-
|
|
499
|
+
onLoad: z
|
|
500
|
+
}, null, 40, Lt)) : P("", !0),
|
|
501
|
+
o.value ? (h(), v("div", Ct, [
|
|
502
|
+
$(I, {
|
|
506
503
|
name: "alert",
|
|
507
504
|
size: 30
|
|
508
505
|
}),
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
506
|
+
u("p", St, R(n ? "页面加载失败" : "该页面可能不允许被嵌入"), 1),
|
|
507
|
+
u("p", At, R(n ? "请检查网络或地址是否正确,也可以在新窗口打开。" : "部分网站会通过 X-Frame-Options / CSP 禁止在 iframe 中打开,可在新窗口访问。"), 1),
|
|
508
|
+
u("div", { class: "wi-right-panel__blocked-actions" }, [
|
|
509
|
+
u("button", {
|
|
513
510
|
type: "button",
|
|
514
511
|
class: "wi-right-panel__ghost-button",
|
|
515
|
-
onClick:
|
|
512
|
+
onClick: l
|
|
516
513
|
}, "重试"),
|
|
517
|
-
|
|
514
|
+
u("button", {
|
|
518
515
|
type: "button",
|
|
519
516
|
class: "wi-right-panel__primary-button",
|
|
520
|
-
onClick:
|
|
517
|
+
onClick: g
|
|
521
518
|
}, "在新窗口打开")
|
|
522
519
|
])
|
|
523
520
|
])) : P("", !0)
|
|
524
521
|
])
|
|
525
522
|
]));
|
|
526
523
|
}
|
|
527
|
-
}),
|
|
524
|
+
}), Nt = /* @__PURE__ */ F(Wt, [["__scopeId", "data-v-4ee42504"]]), Ot = {
|
|
528
525
|
type: "web",
|
|
529
526
|
defaultTitle: "网页",
|
|
530
527
|
icon: "globe",
|
|
531
|
-
component:
|
|
532
|
-
},
|
|
533
|
-
const e =
|
|
528
|
+
component: Nt
|
|
529
|
+
}, Me = [Mt, Ot], $e = (t = []) => {
|
|
530
|
+
const e = Se(/* @__PURE__ */ new Map());
|
|
534
531
|
return t.forEach((n) => e.set(n.type, n)), {
|
|
535
532
|
register(n) {
|
|
536
533
|
return e.set(n.type, n), () => {
|
|
@@ -544,12 +541,12 @@ const _e = {
|
|
|
544
541
|
return Array.from(e.values());
|
|
545
542
|
}
|
|
546
543
|
};
|
|
547
|
-
},
|
|
544
|
+
}, re = $e(Me), sn = (t, e = re) => e.register(t), rn = (t, e = re) => e.get(t), xe = "https://www.bing.com/search?q={q}", Ut = Math.random().toString(36).slice(2, 8), Dt = {
|
|
548
545
|
initialWidth: 480,
|
|
549
546
|
minWidth: 360,
|
|
550
547
|
maxWidth: 900,
|
|
551
548
|
maxTabs: 10,
|
|
552
|
-
searchUrlTemplate:
|
|
549
|
+
searchUrlTemplate: xe,
|
|
553
550
|
defaultTabType: "newtab",
|
|
554
551
|
newTabTitle: "新建标签页"
|
|
555
552
|
}, Z = (t) => {
|
|
@@ -558,134 +555,124 @@ const _e = {
|
|
|
558
555
|
} catch {
|
|
559
556
|
return t;
|
|
560
557
|
}
|
|
561
|
-
}, ae = (t, e =
|
|
558
|
+
}, ae = (t, e = xe) => {
|
|
562
559
|
const n = (t ?? "").trim();
|
|
563
|
-
if (!n || /^(javascript|data|vbscript|file|about):/i.test(n))
|
|
564
|
-
|
|
565
|
-
if (/^https?:\/\//i.test(n))
|
|
566
|
-
return n;
|
|
560
|
+
if (!n || /^(javascript|data|vbscript|file|about):/i.test(n)) return "";
|
|
561
|
+
if (/^https?:\/\//i.test(n)) return n;
|
|
567
562
|
if (/^([\w-]+\.)*[\w-]+(:\d+)?(\/\S*)?$/i.test(n)) {
|
|
568
563
|
if (/^localhost(:\d+)?(\/.*)?$/i.test(n) || /^(\d{1,3}\.){3}\d{1,3}(:\d+)?(\/.*)?$/i.test(n))
|
|
569
564
|
return `http://${n}`;
|
|
570
|
-
if (/^[\w.-]+:\d+/.test(n))
|
|
571
|
-
|
|
572
|
-
if (/^([\w-]+\.)+[a-z]{2,}(:\d+)?(\/.*)?$/i.test(n))
|
|
573
|
-
return `https://${n}`;
|
|
565
|
+
if (/^[\w.-]+:\d+/.test(n)) return `http://${n}`;
|
|
566
|
+
if (/^([\w-]+\.)+[a-z]{2,}(:\d+)?(\/.*)?$/i.test(n)) return `https://${n}`;
|
|
574
567
|
}
|
|
575
568
|
return e.replace("{q}", encodeURIComponent(n));
|
|
576
|
-
},
|
|
577
|
-
const e =
|
|
578
|
-
...
|
|
569
|
+
}, Bt = (t = {}) => {
|
|
570
|
+
const e = we({
|
|
571
|
+
...Dt,
|
|
579
572
|
...Object.fromEntries(Object.entries(t).filter(([a, r]) => a !== "registry" && r !== void 0))
|
|
580
|
-
}), n = t.registry ??
|
|
581
|
-
let
|
|
582
|
-
const w = () => `right-panel-${++
|
|
583
|
-
const r =
|
|
573
|
+
}), n = t.registry ?? $e(Me), d = E(!1), o = E([]), l = E(""), g = E(!1), T = E(!1);
|
|
574
|
+
let f = 0;
|
|
575
|
+
const w = () => `right-panel-${++f}-${Ut}`, m = () => typeof window > "u" ? e.maxWidth : Math.min(e.maxWidth, Math.max(e.minWidth, window.innerWidth * 0.7)), z = (a) => {
|
|
576
|
+
const r = m();
|
|
584
577
|
return Math.round(Math.min(Math.max(a, e.minWidth), r));
|
|
585
|
-
},
|
|
578
|
+
}, M = E(z(t.initialWidth ?? e.initialWidth)), b = y(() => o.value.find((a) => a.id === l.value) ?? null), C = y(() => {
|
|
586
579
|
var a;
|
|
587
|
-
return (((a =
|
|
588
|
-
}),
|
|
589
|
-
const a =
|
|
580
|
+
return (((a = b.value) == null ? void 0 : a.historyIndex) ?? -1) > 0;
|
|
581
|
+
}), S = y(() => {
|
|
582
|
+
const a = b.value;
|
|
590
583
|
return !!a && a.historyIndex >= 0 && a.historyIndex < a.history.length - 1;
|
|
591
584
|
}), W = () => {
|
|
592
|
-
|
|
585
|
+
d.value = !0;
|
|
593
586
|
}, H = () => {
|
|
594
|
-
|
|
587
|
+
d.value = !1, g.value = !1;
|
|
595
588
|
}, X = () => {
|
|
596
|
-
|
|
589
|
+
d.value = !d.value, d.value || (g.value = !1);
|
|
597
590
|
}, N = (a) => {
|
|
598
|
-
|
|
599
|
-
}, O = () => N(!
|
|
600
|
-
|
|
591
|
+
g.value = a, a && (d.value = !0);
|
|
592
|
+
}, O = () => N(!g.value), q = (a) => {
|
|
593
|
+
M.value = z(a);
|
|
601
594
|
}, U = (a) => {
|
|
602
|
-
var
|
|
603
|
-
const r = typeof a == "string" ? { type: a } : a ?? {},
|
|
595
|
+
var ue;
|
|
596
|
+
const r = typeof a == "string" ? { type: a } : a ?? {}, _ = r.type ?? e.defaultTabType, c = n.get(_);
|
|
604
597
|
if (c != null && c.singleton) {
|
|
605
|
-
const ne = o.value.find((
|
|
598
|
+
const ne = o.value.find((Pe) => Pe.type === _);
|
|
606
599
|
if (ne)
|
|
607
|
-
return
|
|
600
|
+
return l.value = ne.id, d.value = !0, ne;
|
|
608
601
|
}
|
|
609
|
-
if (o.value.length >= e.maxTabs)
|
|
610
|
-
|
|
611
|
-
const p = ((ve = c == null ? void 0 : c.createTab) == null ? void 0 : ve.call(c, r)) ?? {}, I = r.url ?? p.url ?? "", Y = w(), te = {
|
|
602
|
+
if (o.value.length >= e.maxTabs) return null;
|
|
603
|
+
const p = ((ue = c == null ? void 0 : c.createTab) == null ? void 0 : ue.call(c, r)) ?? {}, x = r.url ?? p.url ?? "", Y = w(), te = {
|
|
612
604
|
...p,
|
|
613
605
|
id: Y,
|
|
614
|
-
type:
|
|
615
|
-
title: r.title ?? p.title ?? (c == null ? void 0 : c.defaultTitle) ??
|
|
616
|
-
icon: r.icon ?? p.icon ?? (c == null ? void 0 : c.icon) ?? (
|
|
617
|
-
url:
|
|
606
|
+
type: _,
|
|
607
|
+
title: r.title ?? p.title ?? (c == null ? void 0 : c.defaultTitle) ?? _,
|
|
608
|
+
icon: r.icon ?? p.icon ?? (c == null ? void 0 : c.icon) ?? (_ === "newtab" ? "newtab" : "globe"),
|
|
609
|
+
url: x || void 0,
|
|
618
610
|
// 调用方传入的 data 优先于面板定义 createTab 的默认 data
|
|
619
611
|
data: r.data ?? p.data,
|
|
620
|
-
history:
|
|
621
|
-
historyIndex:
|
|
612
|
+
history: x ? [x] : [],
|
|
613
|
+
historyIndex: x ? 0 : -1,
|
|
622
614
|
loading: !1,
|
|
623
615
|
reloadKey: 0
|
|
624
616
|
};
|
|
625
|
-
return
|
|
617
|
+
return x && !r.title && !p.title && (te.title = Z(x)), o.value.push(te), r.activate !== !1 && (l.value = Y), d.value = !0, te;
|
|
626
618
|
}, K = (a, r) => {
|
|
627
|
-
const
|
|
628
|
-
return
|
|
629
|
-
}, i = (a) => !!a && (a.type === "web" || a.type === "newtab"),
|
|
630
|
-
const
|
|
631
|
-
if (!
|
|
632
|
-
|
|
633
|
-
const c = m.value;
|
|
619
|
+
const _ = ae(a, e.searchUrlTemplate);
|
|
620
|
+
return _ ? U({ type: "web", url: _, title: r }) : null;
|
|
621
|
+
}, i = (a) => !!a && (a.type === "web" || a.type === "newtab"), s = (a, r) => {
|
|
622
|
+
const _ = ae(a, e.searchUrlTemplate);
|
|
623
|
+
if (!_) return;
|
|
624
|
+
const c = b.value;
|
|
634
625
|
if (!i(c)) {
|
|
635
|
-
U({ type: "web", url:
|
|
626
|
+
U({ type: "web", url: _, title: r });
|
|
636
627
|
return;
|
|
637
628
|
}
|
|
638
|
-
if (c.url ===
|
|
629
|
+
if (c.url === _) {
|
|
639
630
|
c.reloadKey = (c.reloadKey ?? 0) + 1, c.loading = !0;
|
|
640
631
|
return;
|
|
641
632
|
}
|
|
642
633
|
const p = c.history.slice(0, c.historyIndex + 1);
|
|
643
|
-
p.push(
|
|
634
|
+
p.push(_), c.type = "web", c.icon = "globe", c.url = _, c.title = r ?? Z(_), c.history = p, c.historyIndex = p.length - 1, c.loading = !0;
|
|
644
635
|
}, k = (a) => {
|
|
645
|
-
|
|
636
|
+
s(a);
|
|
646
637
|
}, A = (a) => {
|
|
647
638
|
const r = o.value.findIndex((c) => c.id === a);
|
|
648
|
-
if (r < 0)
|
|
649
|
-
return;
|
|
639
|
+
if (r < 0) return;
|
|
650
640
|
if (o.value.splice(r, 1), !o.value.length) {
|
|
651
|
-
|
|
641
|
+
l.value = "", H();
|
|
652
642
|
return;
|
|
653
643
|
}
|
|
654
|
-
if (
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
s.value = (f == null ? void 0 : f.id) ?? "";
|
|
644
|
+
if (l.value !== a) return;
|
|
645
|
+
const _ = o.value[r] ?? o.value[r - 1] ?? null;
|
|
646
|
+
l.value = (_ == null ? void 0 : _.id) ?? "";
|
|
658
647
|
}, D = (a) => {
|
|
659
|
-
o.value.some((r) => r.id === a) && (
|
|
648
|
+
o.value.some((r) => r.id === a) && (l.value = a);
|
|
660
649
|
}, ee = (a, r) => {
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
},
|
|
650
|
+
const _ = o.value.find((c) => c.id === a);
|
|
651
|
+
_ && Object.assign(_, r);
|
|
652
|
+
}, ze = (a, r, _) => {
|
|
664
653
|
const c = ae(a, e.searchUrlTemplate);
|
|
665
|
-
if (!c)
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
if (!p || p.type !== "web" && p.type !== "newtab")
|
|
669
|
-
return;
|
|
654
|
+
if (!c) return;
|
|
655
|
+
const p = _ ? o.value.find((Y) => Y.id === _) : b.value;
|
|
656
|
+
if (!p || p.type !== "web" && p.type !== "newtab") return;
|
|
670
657
|
if (p.url === c) {
|
|
671
658
|
r && (p.title = r);
|
|
672
659
|
return;
|
|
673
660
|
}
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
},
|
|
677
|
-
const r =
|
|
661
|
+
const x = p.history.slice(0, p.historyIndex + 1);
|
|
662
|
+
x.push(c), p.type === "newtab" && (p.type = "web", p.icon = "globe"), p.url = c, p.title = r ?? Z(c), p.history = x, p.historyIndex = x.length - 1;
|
|
663
|
+
}, de = (a) => {
|
|
664
|
+
const r = b.value;
|
|
678
665
|
!r || a < 0 || a >= r.history.length || (r.historyIndex = a, r.url = r.history[a], r.title = Z(r.url), r.loading = !0);
|
|
679
666
|
};
|
|
680
667
|
return {
|
|
681
|
-
isOpen:
|
|
682
|
-
width:
|
|
683
|
-
maximized:
|
|
668
|
+
isOpen: d,
|
|
669
|
+
width: M,
|
|
670
|
+
maximized: g,
|
|
684
671
|
tabs: o,
|
|
685
|
-
activeTabId:
|
|
686
|
-
activeTab:
|
|
672
|
+
activeTabId: l,
|
|
673
|
+
activeTab: b,
|
|
687
674
|
canGoBack: C,
|
|
688
|
-
canGoForward:
|
|
675
|
+
canGoForward: S,
|
|
689
676
|
isRestoring: T,
|
|
690
677
|
options: e,
|
|
691
678
|
registry: n,
|
|
@@ -701,22 +688,22 @@ const _e = {
|
|
|
701
688
|
closeTab: A,
|
|
702
689
|
activateTab: D,
|
|
703
690
|
updateTab: ee,
|
|
704
|
-
navigate:
|
|
705
|
-
recordNavigation:
|
|
691
|
+
navigate: s,
|
|
692
|
+
recordNavigation: ze,
|
|
706
693
|
goBack: () => {
|
|
707
|
-
const a =
|
|
708
|
-
a &&
|
|
694
|
+
const a = b.value;
|
|
695
|
+
a && de(a.historyIndex - 1);
|
|
709
696
|
},
|
|
710
697
|
goForward: () => {
|
|
711
|
-
const a =
|
|
712
|
-
a &&
|
|
698
|
+
const a = b.value;
|
|
699
|
+
a && de(a.historyIndex + 1);
|
|
713
700
|
},
|
|
714
701
|
reload: () => {
|
|
715
|
-
const a =
|
|
702
|
+
const a = b.value;
|
|
716
703
|
a && (a.reloadKey = (a.reloadKey ?? 0) + 1, a.loading = !0);
|
|
717
704
|
},
|
|
718
705
|
reset: () => {
|
|
719
|
-
o.value = [],
|
|
706
|
+
o.value = [], l.value = "", d.value = !1, g.value = !1, M.value = z(e.initialWidth);
|
|
720
707
|
},
|
|
721
708
|
snapshot: () => o.value.map((a) => ({
|
|
722
709
|
id: a.id,
|
|
@@ -731,42 +718,42 @@ const _e = {
|
|
|
731
718
|
restore: (a, r) => {
|
|
732
719
|
var c;
|
|
733
720
|
T.value = !0, o.value = (a ?? []).map((p) => {
|
|
734
|
-
var
|
|
721
|
+
var x;
|
|
735
722
|
return {
|
|
736
723
|
...p,
|
|
737
724
|
history: [...p.history ?? []],
|
|
738
|
-
historyIndex: Math.min(Math.max(p.historyIndex ?? -1, -1), (((
|
|
725
|
+
historyIndex: Math.min(Math.max(p.historyIndex ?? -1, -1), (((x = p.history) == null ? void 0 : x.length) ?? 0) - 1),
|
|
739
726
|
data: p.data ? { ...p.data } : void 0,
|
|
740
727
|
loading: !1,
|
|
741
728
|
reloadKey: 0
|
|
742
729
|
};
|
|
743
730
|
}), o.value.forEach((p) => {
|
|
744
|
-
const
|
|
745
|
-
|
|
731
|
+
const x = /^right-panel-(\d+)(?:-|$)/.exec(p.id);
|
|
732
|
+
x && (f = Math.max(f, Number(x[1])));
|
|
746
733
|
});
|
|
747
|
-
const
|
|
748
|
-
|
|
734
|
+
const _ = r && o.value.some((p) => p.id === r) ? r : ((c = o.value[0]) == null ? void 0 : c.id) ?? "";
|
|
735
|
+
l.value = _, Ae(() => {
|
|
749
736
|
T.value = !1;
|
|
750
737
|
});
|
|
751
738
|
}
|
|
752
739
|
};
|
|
753
740
|
};
|
|
754
741
|
let ie;
|
|
755
|
-
const j = () => (ie || (ie =
|
|
742
|
+
const j = () => (ie || (ie = Bt({ registry: re })), ie), cn = (t) => {
|
|
756
743
|
const e = j();
|
|
757
744
|
Object.assign(e.options, t), typeof t.initialWidth == "number" && e.setWidth(t.initialWidth);
|
|
758
|
-
},
|
|
745
|
+
}, dn = () => {
|
|
759
746
|
j().reset();
|
|
760
|
-
},
|
|
747
|
+
}, Gt = { class: "wi-right-panel__body" }, Ft = {
|
|
761
748
|
key: 1,
|
|
762
749
|
class: "wi-right-panel__unknown"
|
|
763
|
-
},
|
|
750
|
+
}, Ht = { class: "wi-right-panel__unknown-title" }, Kt = {
|
|
764
751
|
key: 1,
|
|
765
752
|
class: "wi-right-panel__lazy"
|
|
766
|
-
},
|
|
753
|
+
}, Vt = { class: "wi-right-panel__lazy-title" }, jt = {
|
|
767
754
|
key: 0,
|
|
768
755
|
class: "wi-right-panel__empty"
|
|
769
|
-
},
|
|
756
|
+
}, Xt = { class: "wi-right-panel__empty-icon" }, qt = { class: "wi-right-panel__empty-desc" }, Jt = /* @__PURE__ */ G({
|
|
770
757
|
__name: "RightPanel",
|
|
771
758
|
props: {
|
|
772
759
|
panel: {},
|
|
@@ -774,95 +761,93 @@ const j = () => (ie || (ie = Xt({ registry: de })), ie), mn = (t) => {
|
|
|
774
761
|
},
|
|
775
762
|
emits: ["tool-click"],
|
|
776
763
|
setup(t, { expose: e, emit: n }) {
|
|
777
|
-
const
|
|
764
|
+
const d = t, o = n, l = y(() => d.panel ?? j()), g = Te() ? "在这里打开网页或终端,与对话并行使用。" : "在这里打开网页,与对话并行使用。", T = y(() => l.value.isOpen.value), f = y(() => l.value.width.value), w = y(() => l.value.maximized.value), m = y(() => l.value.tabs.value), z = y(() => l.value.activeTabId.value), M = y(() => m.value.map((i) => ({ tab: i, definition: l.value.registry.get(i.type) }))), b = we(/* @__PURE__ */ new Set());
|
|
778
765
|
V(
|
|
779
|
-
|
|
766
|
+
z,
|
|
780
767
|
(i) => {
|
|
781
|
-
i &&
|
|
768
|
+
i && b.add(i);
|
|
782
769
|
},
|
|
783
770
|
{ immediate: !0 }
|
|
784
771
|
), V(
|
|
785
|
-
() =>
|
|
772
|
+
() => m.value.map((i) => i.id).join("|"),
|
|
786
773
|
() => {
|
|
787
|
-
const i = new Set(
|
|
788
|
-
Array.from(
|
|
789
|
-
i.has(
|
|
774
|
+
const i = new Set(m.value.map((s) => s.id));
|
|
775
|
+
Array.from(b).forEach((s) => {
|
|
776
|
+
i.has(s) || b.delete(s);
|
|
790
777
|
});
|
|
791
778
|
}
|
|
792
779
|
);
|
|
793
|
-
const C = (i) =>
|
|
794
|
-
if (typeof window > "u")
|
|
795
|
-
return;
|
|
780
|
+
const C = (i) => l.value.activateTab(i), S = (i) => l.value.closeTab(i), W = () => l.value.addTab(), H = () => l.value.close(), X = () => l.value.toggleMaximized(), N = (i) => o("tool-click", i), O = E(!1), q = (i) => {
|
|
781
|
+
if (typeof window > "u") return;
|
|
796
782
|
O.value = !0;
|
|
797
|
-
const
|
|
798
|
-
|
|
783
|
+
const s = i.clientX, k = f.value, A = (ee) => {
|
|
784
|
+
l.value.setWidth(k + (s - ee.clientX));
|
|
799
785
|
}, D = () => {
|
|
800
786
|
O.value = !1, window.removeEventListener("pointermove", A), window.removeEventListener("pointerup", D);
|
|
801
787
|
};
|
|
802
788
|
window.addEventListener("pointermove", A), window.addEventListener("pointerup", D);
|
|
803
|
-
}, U = () =>
|
|
804
|
-
if (!
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
k === "INPUT" || k === "TEXTAREA" || u != null && u.isContentEditable || (i.preventDefault(), s.value.addTab());
|
|
789
|
+
}, U = () => l.value.setWidth(l.value.options.initialWidth), K = (i) => {
|
|
790
|
+
if (!d.enableShortcut || !(i.ctrlKey || i.metaKey) || !i.shiftKey || i.key.toLowerCase() !== "b") return;
|
|
791
|
+
const s = i.target, k = s == null ? void 0 : s.tagName;
|
|
792
|
+
k === "INPUT" || k === "TEXTAREA" || s != null && s.isContentEditable || (i.preventDefault(), l.value.addTab());
|
|
808
793
|
};
|
|
809
|
-
return
|
|
794
|
+
return fe(() => window.addEventListener("keydown", K)), me(() => window.removeEventListener("keydown", K)), e({ panel: l }), (i, s) => T.value ? (h(), v("aside", {
|
|
810
795
|
key: 0,
|
|
811
|
-
class:
|
|
812
|
-
style:
|
|
796
|
+
class: le(["wi-right-panel", { "is-resizing": O.value, "is-maximized": w.value }]),
|
|
797
|
+
style: ge(w.value ? void 0 : { width: `${f.value}px` })
|
|
813
798
|
}, [
|
|
814
799
|
w.value ? P("", !0) : (h(), v("span", {
|
|
815
800
|
key: 0,
|
|
816
801
|
class: "wi-right-panel__resizer",
|
|
817
802
|
title: "拖拽调整宽度,双击恢复默认",
|
|
818
|
-
onPointerdown:
|
|
803
|
+
onPointerdown: se(q, ["stop", "prevent"]),
|
|
819
804
|
onDblclick: U
|
|
820
805
|
}, null, 32)),
|
|
821
|
-
|
|
822
|
-
tabs:
|
|
823
|
-
"active-id":
|
|
806
|
+
$(qe, {
|
|
807
|
+
tabs: m.value,
|
|
808
|
+
"active-id": z.value,
|
|
824
809
|
maximized: w.value,
|
|
825
810
|
onSelect: C,
|
|
826
|
-
onClose:
|
|
811
|
+
onClose: S,
|
|
827
812
|
onAdd: W,
|
|
828
813
|
onCollapse: H,
|
|
829
814
|
onToggleMaximize: X
|
|
830
815
|
}, null, 8, ["tabs", "active-id", "maximized"]),
|
|
831
|
-
|
|
832
|
-
(h(!0), v(B, null, Q(
|
|
816
|
+
u("div", Gt, [
|
|
817
|
+
(h(!0), v(B, null, Q(M.value, (k) => {
|
|
833
818
|
var A;
|
|
834
|
-
return
|
|
819
|
+
return ve((h(), v("div", {
|
|
835
820
|
key: k.tab.id,
|
|
836
821
|
class: "wi-right-panel__view"
|
|
837
822
|
}, [
|
|
838
|
-
|
|
839
|
-
k.definition ? (h(),
|
|
823
|
+
b.has(k.tab.id) ? (h(), v(B, { key: 0 }, [
|
|
824
|
+
k.definition ? (h(), be(We((A = k.definition) == null ? void 0 : A.component), {
|
|
840
825
|
key: `${k.tab.id}-${k.tab.reloadKey ?? 0}`,
|
|
841
826
|
tab: k.tab,
|
|
842
|
-
panel:
|
|
827
|
+
panel: l.value,
|
|
843
828
|
onToolClick: N
|
|
844
|
-
}, null, 40, ["tab", "panel"])) : (h(), v("div",
|
|
845
|
-
|
|
846
|
-
|
|
829
|
+
}, null, 40, ["tab", "panel"])) : (h(), v("div", Ft, [
|
|
830
|
+
u("p", Ht, "未注册的面板类型:" + R(k.tab.type), 1),
|
|
831
|
+
s[0] || (s[0] = u("p", { class: "wi-right-panel__unknown-desc" }, "请先通过 registerRightPanel 注册该类型的面板组件。", -1))
|
|
847
832
|
]))
|
|
848
|
-
], 64)) : (h(), v("div",
|
|
849
|
-
|
|
850
|
-
|
|
833
|
+
], 64)) : (h(), v("div", Kt, [
|
|
834
|
+
u("p", Vt, R(k.tab.title), 1),
|
|
835
|
+
s[1] || (s[1] = u("p", { class: "wi-right-panel__lazy-desc" }, "点击标签页加载内容", -1))
|
|
851
836
|
]))
|
|
852
837
|
])), [
|
|
853
|
-
[
|
|
838
|
+
[Ne, k.tab.id === z.value]
|
|
854
839
|
]);
|
|
855
840
|
}), 128)),
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
841
|
+
m.value.length ? P("", !0) : (h(), v("div", jt, [
|
|
842
|
+
u("span", Xt, [
|
|
843
|
+
$(I, {
|
|
859
844
|
name: "newtab",
|
|
860
845
|
size: 30
|
|
861
846
|
})
|
|
862
847
|
]),
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
848
|
+
s[2] || (s[2] = u("p", { class: "wi-right-panel__empty-title" }, "还没有打开任何标签页", -1)),
|
|
849
|
+
u("p", qt, R(_e(g)), 1),
|
|
850
|
+
u("button", {
|
|
866
851
|
type: "button",
|
|
867
852
|
class: "wi-right-panel__empty-button",
|
|
868
853
|
onClick: W
|
|
@@ -871,14 +856,12 @@ const j = () => (ie || (ie = Xt({ registry: de })), ie), mn = (t) => {
|
|
|
871
856
|
])
|
|
872
857
|
], 6)) : P("", !0);
|
|
873
858
|
}
|
|
874
|
-
}),
|
|
859
|
+
}), un = /* @__PURE__ */ F(Jt, [["__scopeId", "data-v-752ff3da"]]), oe = "wi-chat:right-panel-scope:", Qt = () => ({
|
|
875
860
|
load(t) {
|
|
876
|
-
if (typeof localStorage > "u")
|
|
877
|
-
return null;
|
|
861
|
+
if (typeof localStorage > "u") return null;
|
|
878
862
|
try {
|
|
879
863
|
const e = localStorage.getItem(oe + t);
|
|
880
|
-
if (!e)
|
|
881
|
-
return null;
|
|
864
|
+
if (!e) return null;
|
|
882
865
|
const n = JSON.parse(e);
|
|
883
866
|
return Array.isArray(n == null ? void 0 : n.tabs) ? n : null;
|
|
884
867
|
} catch {
|
|
@@ -899,54 +882,52 @@ const j = () => (ie || (ie = Xt({ registry: de })), ie), mn = (t) => {
|
|
|
899
882
|
} catch {
|
|
900
883
|
}
|
|
901
884
|
}
|
|
902
|
-
}), J =
|
|
903
|
-
let L =
|
|
904
|
-
const
|
|
905
|
-
"storage" in t && (L = t.storage ?? null), typeof t.persist == "boolean" && (
|
|
906
|
-
},
|
|
885
|
+
}), J = E("");
|
|
886
|
+
let L = Qt(), ce = !0, he = !1;
|
|
887
|
+
const Ie = /* @__PURE__ */ new Set(), pn = (t = {}) => {
|
|
888
|
+
"storage" in t && (L = t.storage ?? null), typeof t.persist == "boolean" && (ce = t.persist);
|
|
889
|
+
}, hn = () => J.value, Ee = (t) => {
|
|
907
890
|
const e = J.value;
|
|
908
|
-
if (!
|
|
909
|
-
return;
|
|
891
|
+
if (!ce || !L || !e) return;
|
|
910
892
|
const n = t.snapshot();
|
|
911
|
-
!n.length && !
|
|
893
|
+
!n.length && !Ie.has(e) || L.save(e, {
|
|
912
894
|
scopeId: e,
|
|
913
895
|
tabs: n,
|
|
914
896
|
activeTabId: t.activeTabId.value,
|
|
915
897
|
savedAt: Date.now()
|
|
916
898
|
});
|
|
917
|
-
},
|
|
918
|
-
|
|
919
|
-
},
|
|
920
|
-
|
|
899
|
+
}, Yt = (t) => {
|
|
900
|
+
he || (he = !0, V([t.tabs, t.activeTabId], () => Ee(t), { deep: !0, flush: "post" }));
|
|
901
|
+
}, vn = (t, e = j()) => {
|
|
902
|
+
Yt(e);
|
|
921
903
|
const n = String(t ?? "").trim();
|
|
922
|
-
if (n === J.value)
|
|
923
|
-
|
|
924
|
-
if (Se(e), J.value = n, !n) {
|
|
904
|
+
if (n === J.value) return;
|
|
905
|
+
if (Ee(e), J.value = n, !n) {
|
|
925
906
|
e.restore([]);
|
|
926
907
|
return;
|
|
927
908
|
}
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
},
|
|
909
|
+
const d = ce && L ? L.load(n) : null;
|
|
910
|
+
Ie.add(n), e.restore((d == null ? void 0 : d.tabs) ?? [], d == null ? void 0 : d.activeTabId);
|
|
911
|
+
}, gn = (t = J.value) => {
|
|
931
912
|
!t || !(L != null && L.clear) || L.clear(t);
|
|
932
|
-
},
|
|
913
|
+
}, Re = (t, e) => ({
|
|
933
914
|
id: t.id,
|
|
934
915
|
type: t.type,
|
|
935
916
|
title: t.title,
|
|
936
917
|
icon: t.icon,
|
|
937
918
|
url: t.url,
|
|
938
919
|
active: t.id === e
|
|
939
|
-
}),
|
|
920
|
+
}), _n = (t = {}) => {
|
|
940
921
|
const e = t.panel ?? j(), n = y(() => {
|
|
941
922
|
const T = e.activeTabId.value;
|
|
942
|
-
return e.tabs.value.map((
|
|
943
|
-
}),
|
|
923
|
+
return e.tabs.value.map((f) => Re(f, T));
|
|
924
|
+
}), d = y(() => n.value.length > 0), o = y(() => n.value.length), l = y(() => e.activeTabId.value), g = y(() => e.isOpen.value);
|
|
944
925
|
return {
|
|
945
926
|
tabs: n,
|
|
946
|
-
hasTabs:
|
|
927
|
+
hasTabs: d,
|
|
947
928
|
tabCount: o,
|
|
948
|
-
activeTabId:
|
|
949
|
-
isOpen:
|
|
929
|
+
activeTabId: l,
|
|
930
|
+
isOpen: g,
|
|
950
931
|
activateTab(T) {
|
|
951
932
|
e.activateTab(T), e.open();
|
|
952
933
|
},
|
|
@@ -960,45 +941,45 @@ const Pe = /* @__PURE__ */ new Set(), Tn = (t = {}) => {
|
|
|
960
941
|
e.toggle();
|
|
961
942
|
}
|
|
962
943
|
};
|
|
963
|
-
},
|
|
944
|
+
}, bn = (t = j()) => {
|
|
964
945
|
const e = t.activeTabId.value;
|
|
965
|
-
return t.tabs.value.map((n) =>
|
|
946
|
+
return t.tabs.value.map((n) => Re(n, e));
|
|
966
947
|
};
|
|
967
948
|
export {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
949
|
+
Me as BUILTIN_RIGHT_PANELS,
|
|
950
|
+
ke as BrowserToolbar,
|
|
951
|
+
ut as DEFAULT_NEW_TAB_RECOMMENDATIONS,
|
|
952
|
+
dt as DEFAULT_NEW_TAB_TOOLS,
|
|
953
|
+
xe as DEFAULT_SEARCH_URL_TEMPLATE,
|
|
954
|
+
pe as RIGHT_PANEL_ICONS,
|
|
974
955
|
oe as RIGHT_PANEL_SCOPE_STORAGE_PREFIX,
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
956
|
+
un as RightPanel,
|
|
957
|
+
I as RightPanelIcon,
|
|
958
|
+
qe as RightPanelTabs,
|
|
959
|
+
ct as RightPanelToolList,
|
|
960
|
+
$t as WEBVIEW_PARTITION,
|
|
961
|
+
xt as canUseWebview,
|
|
962
|
+
gn as clearRightPanelScope,
|
|
963
|
+
cn as configureRightPanel,
|
|
964
|
+
pn as configureRightPanelScope,
|
|
965
|
+
Qt as createLocalStorageRightPanelScopeStorage,
|
|
966
|
+
Bt as createRightPanel,
|
|
967
|
+
$e as createRightPanelRegistry,
|
|
968
|
+
re as defaultRightPanelRegistry,
|
|
969
|
+
rn as getRightPanelDefinition,
|
|
970
|
+
hn as getRightPanelScope,
|
|
971
|
+
Te as isDesktopRuntime,
|
|
972
|
+
bn as listRightPanelTabs,
|
|
973
|
+
Mt as newTabPanelDefinition,
|
|
974
|
+
ye as readElectronBridge,
|
|
975
|
+
sn as registerRightPanel,
|
|
976
|
+
dn as resetRightPanel,
|
|
996
977
|
Z as resolveRightPanelTitle,
|
|
997
978
|
ae as resolveRightPanelUrl,
|
|
998
|
-
|
|
999
|
-
|
|
979
|
+
It as resolveWebRuntime,
|
|
980
|
+
vn as setRightPanelScope,
|
|
1000
981
|
j as useRightPanel,
|
|
1001
|
-
|
|
1002
|
-
|
|
982
|
+
_n as useRightPanelTabs,
|
|
983
|
+
Ot as webPanelDefinition
|
|
1003
984
|
};
|
|
1004
985
|
//# sourceMappingURL=index.js.map
|