Commit 4a17c531 by liimin

refactor(app): 移除未使用的组件并优化布局

- 删除了 BrowserInitor、SentryInitor、I18nServer 等未使用的组件
- 移除了 layout.tsx 中的多余导入和注释
- 优化了 layout.tsx 中的 HTML 结构
- 删除了未使用的 CSS 文件
1 parent 8d74b84b
# For production release, change this to PRODUCTION
NEXT_PUBLIC_DEPLOY_ENV=DEVELOPMENT
# The deployment edition, SELF_HOSTED
NEXT_PUBLIC_EDITION=SELF_HOSTED
# The base URL of console application, refers to the Console base URL of WEB service if console domain is
# different from api or web app domain.
# example: http://cloud.dify.ai/console/api
NEXT_PUBLIC_API_PREFIX=http://192.168.3.241/console/api
# The URL for Web APP, refers to the Web App base URL of WEB service if web app domain is different from
# console or api domain.
# example: http://udify.app/api
NEXT_PUBLIC_PUBLIC_API_PREFIX=http://192.168.3.241/v1
# The API PREFIX for MARKETPLACE
NEXT_PUBLIC_MARKETPLACE_API_PREFIX=https://marketplace.dify.ai/api/v1
# The URL for MARKETPLACE
NEXT_PUBLIC_MARKETPLACE_URL_PREFIX=https://marketplace.dify.ai
# NEXT_PUBLIC_DEPLOY_ENV=DEVELOPMENT
# # The deployment edition, SELF_HOSTED
# NEXT_PUBLIC_EDITION=SELF_HOSTED
# # The base URL of console application, refers to the Console base URL of WEB service if console domain is
# # different from api or web app domain.
# # example: http://cloud.dify.ai/console/api
# NEXT_PUBLIC_API_PREFIX=http://192.168.3.241/console/api
# # The URL for Web APP, refers to the Web App base URL of WEB service if web app domain is different from
# # console or api domain.
# # example: http://udify.app/api
# NEXT_PUBLIC_PUBLIC_API_PREFIX=http://192.168.3.241/v1
# # The API PREFIX for MARKETPLACE
# NEXT_PUBLIC_MARKETPLACE_API_PREFIX=https://marketplace.dify.ai/api/v1
# # The URL for MARKETPLACE
# NEXT_PUBLIC_MARKETPLACE_URL_PREFIX=https://marketplace.dify.ai
# SENTRY
NEXT_PUBLIC_SENTRY_DSN=https://90ddfaad2eac44f3b25cd4298ae7af14@sentry.glsx.com.cn/45
# Disable Next.js Telemetry (https://nextjs.org/telemetry)
NEXT_TELEMETRY_DISABLED=1
# NEXT_TELEMETRY_DISABLED=1
# Disable Upload Image as WebApp icon default is false
NEXT_PUBLIC_UPLOAD_IMAGE_AS_ICON=false
# # Disable Upload Image as WebApp icon default is false
# NEXT_PUBLIC_UPLOAD_IMAGE_AS_ICON=false
# The timeout for the text generation in millisecond
NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS=60000
# # The timeout for the text generation in millisecond
# NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS=60000
# CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
NEXT_PUBLIC_CSP_WHITELIST=
# # CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
# NEXT_PUBLIC_CSP_WHITELIST=
# Github Access Token, used for invoking Github API
NEXT_PUBLIC_GITHUB_ACCESS_TOKEN=
# The maximum number of top-k value for RAG.
NEXT_PUBLIC_TOP_K_MAX_VALUE=10
# # Github Access Token, used for invoking Github API
# NEXT_PUBLIC_GITHUB_ACCESS_TOKEN=
# # The maximum number of top-k value for RAG.
# NEXT_PUBLIC_TOP_K_MAX_VALUE=10
# The maximum number of tokens for segmentation
NEXT_PUBLIC_INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
# # The maximum number of tokens for segmentation
# NEXT_PUBLIC_INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
# Maximum loop count in the workflow
NEXT_PUBLIC_LOOP_NODE_MAX_COUNT=100
# # Maximum loop count in the workflow
# NEXT_PUBLIC_LOOP_NODE_MAX_COUNT=100
# Maximum number of tools in the agent/workflow
NEXT_PUBLIC_MAX_TOOLS_NUM=10
# # Maximum number of tools in the agent/workflow
# NEXT_PUBLIC_MAX_TOOLS_NUM=10
# Maximum number of Parallelism branches in the workflow
NEXT_PUBLIC_MAX_PARALLEL_LIMIT=10
# # Maximum number of Parallelism branches in the workflow
# NEXT_PUBLIC_MAX_PARALLEL_LIMIT=10
# The maximum number of iterations for agent setting
NEXT_PUBLIC_MAX_ITERATIONS_NUM=5
# # The maximum number of iterations for agent setting
# NEXT_PUBLIC_MAX_ITERATIONS_NUM=5
......@@ -2,8 +2,8 @@
'use client'
import { createContext, useContext } from 'use-context-selector'
import type { ChatItem } from '../../types'
import { useMemo } from 'react'
import { useEffect, useMemo } from 'react'
import { usePostMessage } from '../hooks'
type RespondingContext = {
isResponding?: boolean
......@@ -18,9 +18,12 @@ export const useChatRespondingContext = () => useContext(ChatRespondingContext)
type Props = {
children: React.ReactNode
} & RespondingContext
const postMessage = usePostMessage()
export const ChatRespondingProvider = ({ children, isResponding }: Props) => {
const __isResponding = useMemo(() => isResponding, [isResponding])
const value = useMemo(() => ({ isResponding:__isResponding }), [ __isResponding])
const value = useMemo(() => ({ isResponding: __isResponding }), [__isResponding])
useEffect(() => {
postMessage(value)
}, [__isResponding])
return <ChatRespondingContext.Provider value={value}>{children}</ChatRespondingContext.Provider>
}
......@@ -2,3 +2,4 @@ export { useChatWithHistory } from './useChatWithHistory'
export { useUrlParams } from './useUrlParams'
export { useChat } from './useChat'
export { default as useSyncState } from './useSyncState'
export { usePostMessage } from './usePostMessage'
declare const uni:
| {
postMessage: (options: { data: any }) => void
[key: string]: any
}
| undefined
const uniPostMessage = (() => {
if (typeof uni !== 'undefined' && uni?.postMessage) {
return uni.postMessage.bind(uni)
}
return () => {}
})()
export const usePostMessage = () => {
const postMessage = (message: Record<string, any>) => {
uniPostMessage({
data: {
...message,
},
})
}
return postMessage
}
import React from 'react'
import I18N from './i18n'
import { ToastProvider } from './base/toast'
import { ToastProvider } from '../../components/base/toast'
import { getLocaleOnServer } from '@/i18n/server'
export type II18NServerProps = {
......
export { default as I18nServer } from './i18n/i18n-server'
export { default as BrowserInitor } from './browser-initor'
export { default as SentryInitor } from './sentry-initor'
export { default as WebviewLoader } from './webview/webview-loader'
import useScriptLoader from '@/app/init/webview/useScriptLoader'
export default function useWebviewLoader() {
return useScriptLoader({
src: '/assets/uni.webview.1.5.6.js',
id: 'webview-script',
async: false,
defer: false
})
}
\ No newline at end of file
import { useEffect, useState } from 'react'
interface ScriptOptions {
src: string
async?: boolean
defer?: boolean
id?: string
}
interface UseScriptLoaderResult {
loading: boolean
error: Error | null
success: boolean
isUniApp?: boolean
}
export default function useScriptLoader(options: ScriptOptions): UseScriptLoaderResult {
const [loading, setLoading] = useState(false)
const [error, setError] = useState<Error | null>(null)
const [success, setSuccess] = useState(false)
useEffect(() => {
// 检查脚本是否已存在
const existingScript = options.id
? document.getElementById(options.id)
: document.querySelector(`script[src="${options.src}"]`)
if (existingScript) {
setSuccess(true)
return
}
// 创建脚本元素
const script = document.createElement('script')
script.src = options.src
if (options.async) {
script.async = true
}
if (options.defer) {
script.defer = true
}
if (options.id) {
script.id = options.id
}
const handleLoad = () => {
setLoading(false)
setSuccess(true)
}
const handleError = (err: ErrorEvent) => {
setLoading(false)
setError(new Error(`Script load error for ${options.src}: ${err.message}`))
}
script.addEventListener('load', handleLoad)
script.addEventListener('error', handleError)
// 添加脚本到页面
document.body.appendChild(script)
setLoading(true)
// 清理函数
return () => {
script.removeEventListener('load', handleLoad)
script.removeEventListener('error', handleError)
if (script.parentNode) {
script.parentNode.removeChild(script)
}
}
}, [options.src, options.async, options.defer, options.id])
return { loading, error, success }
}
'use client'
import Script from 'next/script'
// import { useEffect } from 'react'
// import useWebviewLoader from './use-webview-loader'
export default function WebviewLoader() {
// const { loading, error, success } = useWebviewLoader()
// useEffect(() => {
// if (error) {
// console.error('Failed to load webview.js:', error)
// } else if (success) {
// console.log('%c✓ uni.webview.js loaded successfully [version:1.5.6]', 'color: #4CAF50; font-weight: bold;')
// }
// }, [error, success])
// return null
return (
<Script
src="/assets/uni.webview.1.5.6.js"
strategy="beforeInteractive"
onLoad={() =>
console.log('%c✓ uni.webview.js loaded successfully [version:1.5.6]', 'color: #4CAF50; font-weight: bold;')
}
/>
)
}
......@@ -2,41 +2,39 @@
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Date: 2025-04-22 09:29:21
* @LastEditors: limin
* @LastEditTime: 2025-07-17 14:48:36
* @LastEditTime: 2025-07-24 23:52:55
* @FilePath: \ai-assistant\app\layout.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import type { Viewport } from "next";
import I18nServer from "./components/i18n-server";
import BrowserInitor from "./components/browser-initor";
import SentryInitor from "./components/sentry-initor";
import { getLocaleOnServer } from "@/i18n/server";
import { TanstackQueryIniter } from "@/context/query-client";
import { ThemeProvider } from "next-themes";
import "./styles/globals.css";
import "./styles/markdown.scss";
import type { Viewport } from 'next'
import { BrowserInitor, SentryInitor, I18nServer, WebviewLoader } from './init'
import { getLocaleOnServer } from '@/i18n/server'
import { TanstackQueryIniter } from '@/context/query-client'
import { ThemeProvider } from 'next-themes'
import './styles/globals.css'
import './styles/markdown.scss'
export const metadata = {
title: "广联AI集市",
title: '广联AI集市',
icons: {
icon: '/favicon.ico',
shortcut: '/favicon.ico'
shortcut: '/favicon.ico',
},
};
}
export const viewport: Viewport = {
width: "device-width",
width: 'device-width',
initialScale: 1,
maximumScale: 1,
viewportFit: "cover",
viewportFit: 'cover',
userScalable: false,
};
}
const LocaleLayout = async ({ children }: { children: React.ReactNode }) => {
const locale = await getLocaleOnServer();
const locale = await getLocaleOnServer()
return (
<html lang={locale ?? "en"} className="h-full" suppressHydrationWarning>
<html lang={locale ?? 'en'} className="h-full" suppressHydrationWarning>
<head>
<meta name="theme-color" content="#ffffff" />
<meta name="mobile-web-app-capable" content="yes" />
......@@ -45,40 +43,24 @@ const LocaleLayout = async ({ children }: { children: React.ReactNode }) => {
</head>
<body
className="color-scheme h-full select-auto chat-panel-bg"
data-api-prefix={process.env.NEXT_PUBLIC_API_PREFIX}
data-pubic-api-prefix={process.env.NEXT_PUBLIC_PUBLIC_API_PREFIX}
data-marketplace-api-prefix={
process.env.NEXT_PUBLIC_MARKETPLACE_API_PREFIX
}
data-marketplace-url-prefix={
process.env.NEXT_PUBLIC_MARKETPLACE_URL_PREFIX
}
data-public-edition={process.env.NEXT_PUBLIC_EDITION}
data-public-support-mail-login={
process.env.NEXT_PUBLIC_SUPPORT_MAIL_LOGIN
}
// data-api-prefix={process.env.NEXT_PUBLIC_API_PREFIX}
// data-pubic-api-prefix={process.env.NEXT_PUBLIC_PUBLIC_API_PREFIX}
// data-marketplace-api-prefix={process.env.NEXT_PUBLIC_MARKETPLACE_API_PREFIX}
// data-marketplace-url-prefix={process.env.NEXT_PUBLIC_MARKETPLACE_URL_PREFIX}
// data-public-edition={process.env.NEXT_PUBLIC_EDITION}
// data-public-support-mail-login={process.env.NEXT_PUBLIC_SUPPORT_MAIL_LOGIN}
data-public-sentry-dsn={process.env.NEXT_PUBLIC_SENTRY_DSN}
data-public-maintenance-notice={
process.env.NEXT_PUBLIC_MAINTENANCE_NOTICE
}
data-public-site-about={process.env.NEXT_PUBLIC_SITE_ABOUT}
data-public-text-generation-timeout-ms={
process.env.NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS
}
data-public-max-tools-num={process.env.NEXT_PUBLIC_MAX_TOOLS_NUM}
data-public-max-parallel-limit={
process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT
}
data-public-top-k-max-value={process.env.NEXT_PUBLIC_TOP_K_MAX_VALUE}
data-public-indexing-max-segmentation-tokens-length={
process.env.NEXT_PUBLIC_INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH
}
data-public-loop-node-max-count={
process.env.NEXT_PUBLIC_LOOP_NODE_MAX_COUNT
}
data-public-max-iterations-num={
process.env.NEXT_PUBLIC_MAX_ITERATIONS_NUM
}
// data-public-maintenance-notice={process.env.NEXT_PUBLIC_MAINTENANCE_NOTICE}
// data-public-site-about={process.env.NEXT_PUBLIC_SITE_ABOUT}
// data-public-text-generation-timeout-ms={process.env.NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS}
// data-public-max-tools-num={process.env.NEXT_PUBLIC_MAX_TOOLS_NUM}
// data-public-max-parallel-limit={process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT}
// data-public-top-k-max-value={process.env.NEXT_PUBLIC_TOP_K_MAX_VALUE}
// data-public-indexing-max-segmentation-tokens-length={
// process.env.NEXT_PUBLIC_INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH
// }
// data-public-loop-node-max-count={process.env.NEXT_PUBLIC_LOOP_NODE_MAX_COUNT}
// data-public-max-iterations-num={process.env.NEXT_PUBLIC_MAX_ITERATIONS_NUM}
>
<BrowserInitor>
<SentryInitor>
......@@ -88,16 +70,16 @@ const LocaleLayout = async ({ children }: { children: React.ReactNode }) => {
forcedTheme="light"
defaultTheme="light" // TODO: change to 'system' when dark mode ready
enableSystem
disableTransitionOnChange
>
disableTransitionOnChange>
<I18nServer>{children}</I18nServer>
</ThemeProvider>
</TanstackQueryIniter>
</SentryInitor>
</BrowserInitor>
<WebviewLoader />
</body>
</html>
);
};
)
}
export default LocaleLayout;
export default LocaleLayout
@import '../../themes/light';
@import '../../themes/dark';
@import '../../themes/markdown-light';
@import '../../themes/markdown-dark';
@import '../../themes/light.css';
@import '../../themes/dark.css';
@import '../../themes/markdown-light.css';
@import '../../themes/markdown-dark.css';
.markdown-body {
-ms-text-size-adjust: 100%;
......
!(function (e, n) {
'object' == typeof exports && 'undefined' != typeof module
? (module.exports = n())
: 'function' == typeof define && define.amd
? define(n)
: ((e = e || self).uni = n())
})(this, function () {
'use strict'
try {
var e = {}
Object.defineProperty(e, 'passive', {
get: function () {
!0
},
}),
window.addEventListener('test-passive', null, e)
} catch (e) {}
var n = Object.prototype.hasOwnProperty
function i(e, i) {
return n.call(e, i)
}
var t = []
function o() {
return window.__dcloud_weex_postMessage || window.__dcloud_weex_
}
function a() {
return window.__uniapp_x_postMessage || window.__uniapp_x_
}
var r = function (e, n) {
var i = { options: { timestamp: +new Date() }, name: e, arg: n }
if (a()) {
if ('postMessage' === e) {
var r = { data: n }
return window.__uniapp_x_postMessage
? window.__uniapp_x_postMessage(r)
: window.__uniapp_x_.postMessage(JSON.stringify(r))
}
var d = { type: 'WEB_INVOKE_APPSERVICE', args: { data: i, webviewIds: t } }
window.__uniapp_x_postMessage
? window.__uniapp_x_postMessageToService(d)
: window.__uniapp_x_.postMessageToService(JSON.stringify(d))
} else if (o()) {
if ('postMessage' === e) {
var s = { data: [n] }
return window.__dcloud_weex_postMessage
? window.__dcloud_weex_postMessage(s)
: window.__dcloud_weex_.postMessage(JSON.stringify(s))
}
var w = { type: 'WEB_INVOKE_APPSERVICE', args: { data: i, webviewIds: t } }
window.__dcloud_weex_postMessage
? window.__dcloud_weex_postMessageToService(w)
: window.__dcloud_weex_.postMessageToService(JSON.stringify(w))
} else {
if (!window.plus) return window.parent.postMessage({ type: 'WEB_INVOKE_APPSERVICE', data: i, pageId: '' }, '*')
if (0 === t.length) {
var u = plus.webview.currentWebview()
if (!u) throw new Error('plus.webview.currentWebview() is undefined')
var g = u.parent(),
v = ''
;(v = g ? g.id : u.id), t.push(v)
}
if (plus.webview.getWebviewById('__uniapp__service'))
plus.webview.postMessageToUniNView(
{ type: 'WEB_INVOKE_APPSERVICE', args: { data: i, webviewIds: t } },
'__uniapp__service',
)
else {
var c = JSON.stringify(i)
plus.webview
.getLaunchWebview()
.evalJS(
'UniPlusBridge.subscribeHandler("'
.concat('WEB_INVOKE_APPSERVICE', '",')
.concat(c, ',')
.concat(JSON.stringify(t), ');'),
)
}
}
},
d = {
navigateTo: function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = e.url
r('navigateTo', { url: encodeURI(n) })
},
navigateBack: function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = e.delta
r('navigateBack', { delta: parseInt(n) || 1 })
},
switchTab: function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = e.url
r('switchTab', { url: encodeURI(n) })
},
reLaunch: function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = e.url
r('reLaunch', { url: encodeURI(n) })
},
redirectTo: function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = e.url
r('redirectTo', { url: encodeURI(n) })
},
getEnv: function (e) {
a() ? e({ uvue: !0 }) : o() ? e({ nvue: !0 }) : window.plus ? e({ plus: !0 }) : e({ h5: !0 })
},
postMessage: function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
r('postMessage', e.data || {})
},
},
s = /uni-app/i.test(navigator.userAgent),
w = /Html5Plus/i.test(navigator.userAgent),
u = /complete|loaded|interactive/
var g =
window.my &&
navigator.userAgent.indexOf(['t', 'n', 'e', 'i', 'l', 'C', 'y', 'a', 'p', 'i', 'l', 'A'].reverse().join('')) > -1
var v = window.swan && window.swan.webView && /swan/i.test(navigator.userAgent)
var c =
window.qq && window.qq.miniProgram && /QQ/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent)
var p = window.tt && window.tt.miniProgram && /toutiaomicroapp/i.test(navigator.userAgent)
var _ =
window.wx &&
window.wx.miniProgram &&
/micromessenger/i.test(navigator.userAgent) &&
/miniProgram/i.test(navigator.userAgent)
var m = window.qa && /quickapp/i.test(navigator.userAgent)
var f =
window.ks &&
window.ks.miniProgram &&
/micromessenger/i.test(navigator.userAgent) &&
/miniProgram/i.test(navigator.userAgent)
var l = window.tt && window.tt.miniProgram && /Lark|Feishu/i.test(navigator.userAgent)
var E = window.jd && window.jd.miniProgram && /jdmp/i.test(navigator.userAgent)
var x = window.xhs && window.xhs.miniProgram && /xhsminiapp/i.test(navigator.userAgent)
for (
var S,
h = function () {
;(window.UniAppJSBridge = !0),
document.dispatchEvent(new CustomEvent('UniAppJSBridgeReady', { bubbles: !0, cancelable: !0 }))
},
y = [
function (e) {
if (s || w)
return (
window.__uniapp_x_postMessage ||
window.__uniapp_x_ ||
window.__dcloud_weex_postMessage ||
window.__dcloud_weex_
? document.addEventListener('DOMContentLoaded', e)
: window.plus && u.test(document.readyState)
? setTimeout(e, 0)
: document.addEventListener('plusready', e),
d
)
},
function (e) {
if (_)
return (
window.WeixinJSBridge && window.WeixinJSBridge.invoke
? setTimeout(e, 0)
: document.addEventListener('WeixinJSBridgeReady', e),
window.wx.miniProgram
)
},
function (e) {
if (c)
return (
window.QQJSBridge && window.QQJSBridge.invoke
? setTimeout(e, 0)
: document.addEventListener('QQJSBridgeReady', e),
window.qq.miniProgram
)
},
function (e) {
if (g) {
document.addEventListener('DOMContentLoaded', e)
var n = window.my
return {
navigateTo: n.navigateTo,
navigateBack: n.navigateBack,
switchTab: n.switchTab,
reLaunch: n.reLaunch,
redirectTo: n.redirectTo,
postMessage: n.postMessage,
getEnv: n.getEnv,
}
}
},
function (e) {
if (v) return document.addEventListener('DOMContentLoaded', e), window.swan.webView
},
function (e) {
if (p) return document.addEventListener('DOMContentLoaded', e), window.tt.miniProgram
},
function (e) {
if (m) {
window.QaJSBridge && window.QaJSBridge.invoke
? setTimeout(e, 0)
: document.addEventListener('QaJSBridgeReady', e)
var n = window.qa
return {
navigateTo: n.navigateTo,
navigateBack: n.navigateBack,
switchTab: n.switchTab,
reLaunch: n.reLaunch,
redirectTo: n.redirectTo,
postMessage: n.postMessage,
getEnv: n.getEnv,
}
}
},
function (e) {
if (f)
return (
window.WeixinJSBridge && window.WeixinJSBridge.invoke
? setTimeout(e, 0)
: document.addEventListener('WeixinJSBridgeReady', e),
window.ks.miniProgram
)
},
function (e) {
if (l) return document.addEventListener('DOMContentLoaded', e), window.tt.miniProgram
},
function (e) {
if (E)
return (
window.JDJSBridgeReady && window.JDJSBridgeReady.invoke
? setTimeout(e, 0)
: document.addEventListener('JDJSBridgeReady', e),
window.jd.miniProgram
)
},
function (e) {
if (x) return window.xhs.miniProgram
},
function (e) {
return document.addEventListener('DOMContentLoaded', e), d
},
],
M = 0;
M < y.length && !(S = y[M](h));
M++
);
S || (S = {})
var P = 'undefined' != typeof uni ? uni : {}
if (!P.navigateTo) for (var b in S) i(S, b) && (P[b] = S[b])
return (P.webView = S), P
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!