-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78ef70d
commit 45e6193
Showing
16 changed files
with
501 additions
and
10 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
starter/src/main/resources/static/embed/_virtual/_commonjs-dynamic-modules/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
function r(o) { | ||
throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); | ||
} | ||
export { | ||
r as commonjsRequire | ||
}; |
6 changes: 6 additions & 0 deletions
6
starter/src/main/resources/static/embed/_virtual/_commonjsHelpers/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
function e(t) { | ||
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; | ||
} | ||
export { | ||
e as getDefaultExportFromCjs | ||
}; |
4 changes: 4 additions & 0 deletions
4
starter/src/main/resources/static/embed/_virtual/_interop_require_default/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var e = {}; | ||
export { | ||
e as __exports | ||
}; |
4 changes: 4 additions & 0 deletions
4
starter/src/main/resources/static/embed/_virtual/dynamic/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var a = { exports: {} }; | ||
export { | ||
a as __module | ||
}; |
4 changes: 4 additions & 0 deletions
4
starter/src/main/resources/static/embed/_virtual/loadable-context.shared-runtime/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var e = {}; | ||
export { | ||
e as __exports | ||
}; |
4 changes: 4 additions & 0 deletions
4
starter/src/main/resources/static/embed/_virtual/loadable.shared-runtime/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var a = {}; | ||
export { | ||
a as __exports | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
var L = Object.create; | ||
var B = Object.defineProperty; | ||
var M = Object.getOwnPropertyDescriptor; | ||
var z = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), p = (e) => { | ||
throw TypeError(e); | ||
}; | ||
var E = (e, t, s) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s; | ||
var j = (e, t) => B(e, "name", { value: t, configurable: !0 }); | ||
var F = (e) => [, , , L((e == null ? void 0 : e[z("metadata")]) ?? null)], G = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], h = (e) => e !== void 0 && typeof e != "function" ? p("Function expected") : e, N = (e, t, s, f, i) => ({ kind: G[e], name: t, metadata: f, addInitializer: (d) => s._ ? p("Already initialized") : i.push(h(d || null)) }), I = (e, t) => E(t, z("metadata"), e[3]), O = (e, t, s, f) => { | ||
for (var i = 0, d = e[t >> 1], b = d && d.length; i < b; i++) t & 1 ? d[i].call(s) : f = d[i].call(s, f); | ||
return f; | ||
}, H = (e, t, s, f, i, d) => { | ||
var b, y, C, r, g, n = t & 7, m = !!(t & 8), l = !!(t & 16), c = n > 3 ? e.length + 1 : n ? m ? 1 : 2 : 0, D = G[n + 5], W = n > 3 && (e[c - 1] = []), K = e[c] || (e[c] = []), k = n && (!l && !m && (i = i.prototype), n < 5 && (n > 3 || !l) && M(n < 4 ? i : { get [s]() { | ||
return q(this, d); | ||
}, set [s](o) { | ||
return v(this, d, o); | ||
} }, s)); | ||
n ? l && n < 4 && j(d, (n > 2 ? "set " : n > 1 ? "get " : "") + s) : j(i, s); | ||
for (var u = f.length - 1; u >= 0; u--) | ||
r = N(n, s, C = {}, e[3], K), n && (r.static = m, r.private = l, g = r.access = { has: l ? (o) => P(i, o) : (o) => s in o }, n ^ 3 && (g.get = l ? (o) => (n ^ 1 ? q : Q)(o, i, n ^ 4 ? d : k.get) : (o) => o[s]), n > 2 && (g.set = l ? (o, w) => v(o, i, w, n ^ 4 ? d : k.set) : (o, w) => o[s] = w)), y = (0, f[u])(n ? n < 4 ? l ? d : k[D] : n > 4 ? void 0 : { get: k.get, set: k.set } : i, r), C._ = 1, n ^ 4 || y === void 0 ? h(y) && (n > 4 ? W.unshift(y) : n ? l ? d = y : k[D] = y : i = y) : typeof y != "object" || y === null ? p("Object expected") : (h(b = y.get) && (k.get = b), h(b = y.set) && (k.set = b), h(b = y.init) && W.unshift(b)); | ||
return n || I(e, i), k && B(i, s, k), l ? n ^ 4 ? d : k : i; | ||
}, x = (e, t, s) => E(e, typeof t != "symbol" ? t + "" : t, s), A = (e, t, s) => t.has(e) || p("Cannot " + s), P = (e, t) => Object(t) !== t ? p('Cannot use the "in" operator on this value') : e.has(t), q = (e, t, s) => (A(e, t, "read from private field"), s ? s.call(e) : t.get(e)); | ||
var v = (e, t, s, f) => (A(e, t, "write to private field"), f ? f.call(e, s) : t.set(e, s), s), Q = (e, t, s) => (A(e, t, "access private method"), s); | ||
import { Component as S, Input as T } from "@angular/core"; | ||
import U from "../core/BytedeskWeb/index.js"; | ||
var J, R, a; | ||
const Z = S({ | ||
selector: "bytedesk-angular", | ||
template: "", | ||
styles: [` | ||
:host { | ||
display: none; | ||
} | ||
`] | ||
})((J = [T()], a = class { | ||
constructor() { | ||
x(this, "config", O(R, 8, this)), O(R, 11, this); | ||
x(this, "bytedeskRef", null); | ||
} | ||
ngOnInit() { | ||
this.bytedeskRef = new U(this.config), this.bytedeskRef.init(), window.bytedesk = this.bytedeskRef; | ||
} | ||
ngOnDestroy() { | ||
this.bytedeskRef && (this.bytedeskRef.destroy(), delete window.bytedesk, this.bytedeskRef = null); | ||
} | ||
}, R = F(null), H(R, 5, "config", J, a), I(R, a), a)); | ||
export { | ||
Z as BytedeskAngular | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { jsx as n } from "react/jsx-runtime"; | ||
import { useRef as i, useEffect as o } from "react"; | ||
import u from "../node_modules/next/dynamic/index.js"; | ||
import { IntlProvider as m } from "react-intl"; | ||
import { messages as c } from "../locales/index/index.js"; | ||
const w = u(() => Promise.resolve(({ locale: e = "zh-cn", ...t }) => /* @__PURE__ */ n( | ||
m, | ||
{ | ||
messages: c[e], | ||
locale: e, | ||
defaultLocale: "zh-cn", | ||
children: /* @__PURE__ */ n(d, { ...t, locale: e }) | ||
} | ||
)), { | ||
ssr: !1 | ||
// 禁用服务端渲染 | ||
}), d = (e) => { | ||
const t = i(null); | ||
return o(() => (import("../index/index.js").then(({ default: s }) => { | ||
var r; | ||
t.current || (t.current = new s(e), t.current.init(), (r = e.onInit) == null || r.call(e), window.bytedesk = t.current); | ||
}), () => { | ||
t.current && (t.current.destroy(), delete window.bytedesk, t.current = null); | ||
}), [e]), null; | ||
}; | ||
export { | ||
w as BytedeskNextjs | ||
}; |
8 changes: 8 additions & 0 deletions
8
...in/resources/static/embed/node_modules/@swc/helpers/cjs/_interop_require_default/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
90 changes: 90 additions & 0 deletions
90
starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/dynamic/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...s/static/embed/node_modules/next/dist/shared/lib/loadable-context.shared-runtime/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
161 changes: 161 additions & 0 deletions
161
...resources/static/embed/node_modules/next/dist/shared/lib/loadable.shared-runtime/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.