init
This commit is contained in:
7212
assets/Admin-BC2FD85r.js
Normal file
7212
assets/Admin-BC2FD85r.js
Normal file
File diff suppressed because it is too large
Load Diff
1
assets/Admin-DtVsRG5L.css
Normal file
1
assets/Admin-DtVsRG5L.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.n-pagination[data-v-bd8929db]{margin-top:10px;margin-bottom:10px}.n-data-table[data-v-bd8929db]{min-width:700px}.n-card[data-v-b73833c7]{margin-bottom:20px}.n-pagination[data-v-fbae4450],.n-pagination[data-v-05ab3412]{margin-top:10px;margin-bottom:10px}.n-data-table[data-v-05ab3412]{min-width:1000px}.center[data-v-22702c12],.center[data-v-e681a103]{display:flex;text-align:left;place-items:center;justify-content:center;margin:20px}.n-data-table[data-v-b33d0779]{min-width:700px}.n-pagination[data-v-9bf893ed]{margin-top:10px;margin-bottom:10px}.n-data-table[data-v-9bf893ed]{min-width:800px}.center[data-v-609cb7d1],.center[data-v-a62aa937]{display:flex;text-align:left;place-items:center;justify-content:center}.oauth2-icon-preview[data-v-a62aa937]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--n-border-color);border-radius:4px;padding:4px}.oauth2-icon-preview[data-v-a62aa937] svg{width:100%;height:100%}.n-data-table[data-v-68eee4b7]{min-width:600px}.n-card[data-v-2f016879]{max-width:800px}.center[data-v-2f016879]{display:flex;text-align:center;place-items:center;justify-content:center}.n-alert[data-v-2f016879]{margin-bottom:20px}.sql-input[data-v-2f016879]{text-align:left}.n-card[data-v-6eef5c21]{max-width:800px}.n-alert[data-v-6eef5c21]{margin-bottom:10px}.center[data-v-6eef5c21]{display:flex;text-align:center;place-items:center;justify-content:center}.n-button[data-v-6eef5c21]{margin-top:10px}.center[data-v-008f01c5],.center[data-v-6baca40b],.center[data-v-92d764b2]{display:flex;text-align:left;place-items:center;justify-content:center}.center[data-v-6cc70158]{display:flex;text-align:left;place-items:center;justify-content:center;margin:20px}.center[data-v-230de380]{display:flex;text-align:left;place-items:center;justify-content:center}.n-button[data-v-230de380]{margin-top:10px}.n-pagination[data-v-ef349626]{margin-top:10px;margin-bottom:10px}
|
||||||
26
assets/Mail-QoAjapmb.js
Normal file
26
assets/Mail-QoAjapmb.js
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
import { G as h, H as g, w, O as D, E as v, S as a, ab as d, Q as s, ae as p, l as M, M as b, aJ as x, a5 as T, aK as k, D as i, P as l, ac as N, V as n, R as c, aL as O, F as S } from "./index-rOHOLR3M.js";
|
||||||
|
const V = { class: "center" }, B = ["srcdoc"], I = { __name: "Mail", setup(C) {
|
||||||
|
const { telegramApp: r, loading: _, useUTCDate: f } = g(), m = k(), e = M({});
|
||||||
|
w(r, async () => {
|
||||||
|
r.value.initData && (e.value = await u());
|
||||||
|
});
|
||||||
|
const u = async () => {
|
||||||
|
try {
|
||||||
|
const t = await b.fetch("/telegram/get_mail", { method: "POST", body: JSON.stringify({ initData: r.value.initData, mailId: m.query.mail_id }) });
|
||||||
|
return _.value = true, await x(t);
|
||||||
|
} catch (t) {
|
||||||
|
return console.error(t), {};
|
||||||
|
} finally {
|
||||||
|
_.value = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return D(async () => {
|
||||||
|
e.value = await u();
|
||||||
|
}), (t, E) => {
|
||||||
|
const o = N, y = T;
|
||||||
|
return i(), v("div", V, [a(e).message ? (i(), d(y, { key: 0, bordered: false, embedded: "", style: { "max-width": "800px", height: "100%" } }, { default: s(() => [l(o, { type: "info" }, { default: s(() => [n(" ID: " + c(a(e).id), 1)]), _: 1 }), l(o, { type: "info" }, { default: s(() => [n(" Date: " + c(a(O)(a(e).created_at, a(f))), 1)]), _: 1 }), l(o, { type: "info" }, { default: s(() => [n(" FROM: " + c(a(e).source), 1)]), _: 1 }), t.showEMailTo ? (i(), d(o, { key: 0, type: "info" }, { default: s(() => [n(" TO: " + c(a(e).address), 1)]), _: 1 })) : p("", true), S("iframe", { srcdoc: a(e).message, style: { "margin-top": "10px", width: "100%", height: "100%" } }, null, 8, B)]), _: 1 })) : p("", true)]);
|
||||||
|
};
|
||||||
|
} }, F = h(I, [["__scopeId", "data-v-5ff036bb"]]);
|
||||||
|
export {
|
||||||
|
F as default
|
||||||
|
};
|
||||||
1
assets/Mail-ZAkRaohU.css
Normal file
1
assets/Mail-ZAkRaohU.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.center[data-v-5ff036bb]{display:flex;text-align:left;place-items:center;justify-content:center;height:80vh}
|
||||||
37
assets/SendMail-BZn2VeiJ.js
Normal file
37
assets/SendMail-BZn2VeiJ.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
import { T as z, E } from "./index.esm-YCBPJhFu.js";
|
||||||
|
import { G as P, I as H, H as I, J as F, aM as J, O as $, M as p, S as e, D as d, E as f, P as a, Q as s, ao as D, V as b, R as i, K as G, aN as K, ap as Y, F as S, as as Q, T as Z, Z as W, _ as X, am as ee, ar as te, aw as ae, au as ne, ab as x, ae as M, a5 as le, aO as se, l as oe } from "./index-rOHOLR3M.js";
|
||||||
|
const ue = { key: 0, class: "center" }, de = { key: 0 }, ce = { key: 1 }, re = { class: "left" }, ie = ["innerHTML"], _e = { key: 1, style: { border: "1px solid #ccc" } }, me = { __name: "SendMail", setup(pe) {
|
||||||
|
const c = H(), v = oe(false), y = se(), { settings: _, sendMailModel: t, indexTab: k, userSettings: w } = I(), { t: l } = F({ locale: "zh", messages: { en: { successSend: "Please check your sendbox. If failed, please check your balance or try again later.", fromName: "Your Name and Address, leave Name blank to use email address", toName: "Recipient Name and Address, leave Name blank to use email address", subject: "Subject", options: "Options", edit: "Edit", preview: "Preview", content: "Content", send: "Send", requestAccess: "Request Access", requestAccessTip: "You need to request access to send mail, if have request, please contact admin.", send_balance: "Send Mail Balance Left", text: "Text", html: "HTML", "rich text": "Rich Text", tooLarge: "Too large file, please upload file less than 1MB." }, zh: { successSend: "\u8BF7\u67E5\u770B\u60A8\u7684\u53D1\u4EF6\u7BB1, \u5982\u679C\u5931\u8D25, \u8BF7\u68C0\u67E5\u60A8\u7684\u4F59\u989D\u6216\u7A0D\u540E\u91CD\u8BD5\u3002", fromName: "\u4F60\u7684\u540D\u79F0\u548C\u5730\u5740\uFF0C\u540D\u79F0\u4E0D\u586B\u5199\u5219\u4F7F\u7528\u90AE\u7BB1\u5730\u5740", toName: "\u6536\u4EF6\u4EBA\u540D\u79F0\u548C\u5730\u5740\uFF0C\u540D\u79F0\u4E0D\u586B\u5199\u5219\u4F7F\u7528\u90AE\u7BB1\u5730\u5740", subject: "\u4E3B\u9898", options: "\u9009\u9879", edit: "\u7F16\u8F91", preview: "\u9884\u89C8", content: "\u5185\u5BB9", send: "\u53D1\u9001", requestAccess: "\u7533\u8BF7\u6743\u9650", requestAccessTip: "\u60A8\u9700\u8981\u7533\u8BF7\u6743\u9650\u624D\u80FD\u53D1\u9001\u90AE\u4EF6, \u5982\u679C\u5DF2\u7ECF\u7533\u8BF7\u8FC7, \u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u63D0\u5347\u989D\u5EA6\u3002", send_balance: "\u5269\u4F59\u53D1\u9001\u90AE\u4EF6\u989D\u5EA6", text: "\u6587\u672C", html: "HTML", "rich text": "\u5BCC\u6587\u672C", tooLarge: "\u6587\u4EF6\u8FC7\u5927, \u8BF7\u4E0A\u4F20\u5C0F\u4E8E1MB\u7684\u6587\u4EF6\u3002" } } }), C = [{ label: l("text"), value: "text" }, { label: l("html"), value: "html" }, { label: l("rich text"), value: "rich" }], q = async () => {
|
||||||
|
try {
|
||||||
|
await p.fetch("/api/send_mail", { method: "POST", body: JSON.stringify({ from_name: t.value.fromName, to_name: t.value.toName, to_mail: t.value.toMail, subject: t.value.subject, is_html: t.value.contentType != "text", content: t.value.content }) }), t.value = { fromName: "", toName: "", toMail: "", subject: "", contentType: "text", content: "" };
|
||||||
|
} catch (u) {
|
||||||
|
c.error(u.message || "error");
|
||||||
|
} finally {
|
||||||
|
c.success(l("successSend")), k.value = "sendbox";
|
||||||
|
}
|
||||||
|
}, U = async () => {
|
||||||
|
try {
|
||||||
|
await p.fetch("/api/request_send_mail_access", { method: "POST", body: JSON.stringify({}) }), c.success(l("success")), await p.getSettings();
|
||||||
|
} catch (u) {
|
||||||
|
c.error(u.message || "error");
|
||||||
|
}
|
||||||
|
}, j = { excludeKeys: ["uploadVideo"] }, A = { MENU_CONF: { uploadImage: { async customUpload() {
|
||||||
|
c.error(l("tooLarge"));
|
||||||
|
}, maxFileSize: 1 * 1024 * 1024, base64LimitSize: 1 * 1024 * 1024 } } };
|
||||||
|
J(() => {
|
||||||
|
const u = y.value;
|
||||||
|
u == null ? void 0 : u.destroy();
|
||||||
|
});
|
||||||
|
const L = (u) => {
|
||||||
|
y.value = u;
|
||||||
|
};
|
||||||
|
return $(async () => {
|
||||||
|
w.value.user_id || await p.getUserSettings(c), await p.getSettings();
|
||||||
|
}), (u, o) => {
|
||||||
|
const g = G, N = D, B = Y, r = X, T = W, m = Z, O = ne, V = ee, h = le, R = Q;
|
||||||
|
return e(_).address ? (d(), f("div", ue, [a(h, { bordered: false, embedded: "" }, { default: s(() => [!e(_).send_balance || e(_).send_balance <= 0 ? (d(), f("div", de, [a(N, { type: "warning", "show-icon": false, bordered: false }, { default: s(() => [b(i(e(l)("requestAccessTip")) + " ", 1), a(g, { type: "primary", tertiary: "", onClick: U, size: "small" }, { default: s(() => [b(i(e(l)("requestAccess")), 1)]), _: 1 })]), _: 1 }), a(K)])) : (d(), f("div", ce, [a(N, { type: "info", "show-icon": false, bordered: false, closable: "" }, { default: s(() => [b(i(e(l)("send_balance")) + ": " + i(e(_).send_balance), 1)]), _: 1 }), a(B, { justify: "end" }, { default: s(() => [a(g, { type: "primary", onClick: q }, { default: s(() => [b(i(e(l)("send")), 1)]), _: 1 })]), _: 1 }), S("div", re, [a(R, { model: e(t) }, { default: s(() => [a(m, { label: e(l)("fromName"), "label-placement": "top" }, { default: s(() => [a(T, null, { default: s(() => [a(r, { value: e(t).fromName, "onUpdate:value": o[0] || (o[0] = (n) => e(t).fromName = n) }, null, 8, ["value"]), a(r, { value: e(_).address, disabled: "" }, null, 8, ["value"])]), _: 1 })]), _: 1 }, 8, ["label"]), a(m, { label: e(l)("toName"), "label-placement": "top" }, { default: s(() => [a(T, null, { default: s(() => [a(r, { value: e(t).toName, "onUpdate:value": o[1] || (o[1] = (n) => e(t).toName = n) }, null, 8, ["value"]), a(r, { value: e(t).toMail, "onUpdate:value": o[2] || (o[2] = (n) => e(t).toMail = n) }, null, 8, ["value"])]), _: 1 })]), _: 1 }, 8, ["label"]), a(m, { label: e(l)("subject"), "label-placement": "top" }, { default: s(() => [a(r, { value: e(t).subject, "onUpdate:value": o[3] || (o[3] = (n) => e(t).subject = n) }, null, 8, ["value"])]), _: 1 }, 8, ["label"]), a(m, { label: e(l)("options"), "label-placement": "top" }, { default: s(() => [a(V, { value: e(t).contentType, "onUpdate:value": o[4] || (o[4] = (n) => e(t).contentType = n) }, { default: s(() => [(d(), f(te, null, ae(C, (n) => a(O, { key: n.value, value: n.value, label: n.label }, null, 8, ["value", "label"])), 64))]), _: 1 }, 8, ["value"]), e(t).contentType != "text" ? (d(), x(g, { key: 0, onClick: o[5] || (o[5] = (n) => v.value = !v.value), style: { "margin-left": "10px" } }, { default: s(() => [b(i(v.value ? e(l)("edit") : e(l)("preview")), 1)]), _: 1 })) : M("", true)]), _: 1 }, 8, ["label"]), a(m, { label: e(l)("content"), "label-placement": "top" }, { default: s(() => [v.value ? (d(), x(h, { key: 0, bordered: false, embedded: "" }, { default: s(() => [S("div", { innerHTML: e(t).content }, null, 8, ie)]), _: 1 })) : e(t).contentType == "rich" ? (d(), f("div", _e, [a(e(z), { style: { "border-bottom": "1px solid #ccc" }, defaultConfig: j, editor: y.value, mode: "default" }, null, 8, ["editor"]), a(e(E), { style: { height: "500px", "overflow-y": "hidden" }, modelValue: e(t).content, "onUpdate:modelValue": o[6] || (o[6] = (n) => e(t).content = n), defaultConfig: A, mode: "default", onOnCreated: L }, null, 8, ["modelValue"])])) : (d(), x(r, { key: 2, type: "textarea", value: e(t).content, "onUpdate:value": o[7] || (o[7] = (n) => e(t).content = n), autosize: { minRows: 3 } }, null, 8, ["value"]))]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"])])]))]), _: 1 })])) : M("", true);
|
||||||
|
};
|
||||||
|
} }, ve = P(me, [["__scopeId", "data-v-570e25a4"]]);
|
||||||
|
export {
|
||||||
|
ve as default
|
||||||
|
};
|
||||||
1
assets/SendMail-DCXwsSgv.css
Normal file
1
assets/SendMail-DCXwsSgv.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.n-card[data-v-570e25a4]{max-width:800px}.n-button[data-v-570e25a4]{text-align:left;margin-right:10px}.center[data-v-570e25a4]{display:flex;text-align:center;place-items:center;justify-content:center}.left[data-v-570e25a4]{text-align:left;place-items:left;justify-content:left}.n-alert[data-v-570e25a4]{margin-bottom:10px}
|
||||||
1
assets/SendMail-aMwcx0sS.css
Normal file
1
assets/SendMail-aMwcx0sS.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.n-card[data-v-9747bb0e]{max-width:800px}.n-button[data-v-9747bb0e]{text-align:left;margin-right:10px}.center[data-v-9747bb0e]{display:flex;text-align:center;place-items:center;justify-content:center}.left[data-v-9747bb0e]{text-align:left;place-items:left;justify-content:left}
|
||||||
29
assets/SendMail-gI-QSIA2.js
Normal file
29
assets/SendMail-gI-QSIA2.js
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import { T as B, E as L } from "./index.esm-YCBPJhFu.js";
|
||||||
|
import { G as V, I as R, aR as E, J as O, aM as z, D as r, E as p, P as l, Q as n, ap as I, K as P, V as g, R as x, S as e, F as N, as as F, T as H, Z as A, _ as D, am as J, ar as K, aw as G, au as Q, ab as f, ae as Y, a5 as Z, aO as $, M as q, l as W } from "./index-rOHOLR3M.js";
|
||||||
|
const X = { class: "center" }, ee = { class: "left" }, te = ["innerHTML"], ae = { key: 1, style: { border: "1px solid #ccc" } }, le = { __name: "SendMail", setup(oe) {
|
||||||
|
const c = R(), m = W(false), _ = $(), t = E("sendMailByAdminModel", { fromName: "", fromMail: "", toName: "", toMail: "", subject: "", contentType: "text", content: "" }), { t: s } = O({ locale: "zh", messages: { en: { successSend: "Please check your sendbox. If failed, please try again later.", fromName: "Your Name and Address, leave Name blank to use email address", toName: "Recipient Name and Address, leave Name blank to use email address", subject: "Subject", options: "Options", edit: "Edit", preview: "Preview", content: "Content", send: "Send", text: "Text", html: "HTML", "rich text": "Rich Text", tooLarge: "Too large file, please upload file less than 1MB." }, zh: { successSend: "\u8BF7\u67E5\u770B\u60A8\u7684\u53D1\u4EF6\u7BB1, \u5982\u679C\u5931\u8D25, \u8BF7\u68C0\u67E5\u7A0D\u540E\u91CD\u8BD5\u3002", fromName: "\u4F60\u7684\u540D\u79F0\u548C\u5730\u5740\uFF0C\u540D\u79F0\u4E0D\u586B\u5199\u5219\u4F7F\u7528\u90AE\u7BB1\u5730\u5740", toName: "\u6536\u4EF6\u4EBA\u540D\u79F0\u548C\u5730\u5740\uFF0C\u540D\u79F0\u4E0D\u586B\u5199\u5219\u4F7F\u7528\u90AE\u7BB1\u5730\u5740", subject: "\u4E3B\u9898", options: "\u9009\u9879", edit: "\u7F16\u8F91", preview: "\u9884\u89C8", content: "\u5185\u5BB9", send: "\u53D1\u9001", text: "\u6587\u672C", html: "HTML", "rich text": "\u5BCC\u6587\u672C", tooLarge: "\u6587\u4EF6\u8FC7\u5927, \u8BF7\u4E0A\u4F20\u5C0F\u4E8E1MB\u7684\u6587\u4EF6\u3002" } } }), M = [{ label: s("text"), value: "text" }, { label: s("html"), value: "html" }, { label: s("rich text"), value: "rich" }], T = async () => {
|
||||||
|
try {
|
||||||
|
await q.fetch("/admin/send_mail", { method: "POST", body: JSON.stringify({ from_name: t.value.fromName, from_mail: t.value.fromMail, to_name: t.value.toName, to_mail: t.value.toMail, subject: t.value.subject, is_html: t.value.contentType != "text", content: t.value.content }) }), t.value = { fromName: "", fromMail: "", toName: "", toMail: "", subject: "", contentType: "text", content: "" };
|
||||||
|
} catch (u) {
|
||||||
|
c.error(u.message || "error");
|
||||||
|
} finally {
|
||||||
|
c.success(s("successSend"));
|
||||||
|
}
|
||||||
|
}, S = { excludeKeys: ["uploadVideo"] }, k = { MENU_CONF: { uploadImage: { async customUpload() {
|
||||||
|
c.error(s("tooLarge"));
|
||||||
|
}, maxFileSize: 1 * 1024 * 1024, base64LimitSize: 1 * 1024 * 1024 } } };
|
||||||
|
z(() => {
|
||||||
|
const u = _.value;
|
||||||
|
u == null ? void 0 : u.destroy();
|
||||||
|
});
|
||||||
|
const C = (u) => {
|
||||||
|
_.value = u;
|
||||||
|
};
|
||||||
|
return (u, o) => {
|
||||||
|
const v = P, h = I, d = D, b = A, i = H, j = Q, w = J, y = Z, U = F;
|
||||||
|
return r(), p("div", X, [l(y, { bordered: false, embedded: "" }, { default: n(() => [l(h, { justify: "end" }, { default: n(() => [l(v, { type: "primary", onClick: T }, { default: n(() => [g(x(e(s)("send")), 1)]), _: 1 })]), _: 1 }), N("div", ee, [l(U, { model: e(t) }, { default: n(() => [l(i, { label: e(s)("fromName"), "label-placement": "top" }, { default: n(() => [l(b, null, { default: n(() => [l(d, { value: e(t).fromName, "onUpdate:value": o[0] || (o[0] = (a) => e(t).fromName = a) }, null, 8, ["value"]), l(d, { value: e(t).fromMail, "onUpdate:value": o[1] || (o[1] = (a) => e(t).fromMail = a) }, null, 8, ["value"])]), _: 1 })]), _: 1 }, 8, ["label"]), l(i, { label: e(s)("toName"), "label-placement": "top" }, { default: n(() => [l(b, null, { default: n(() => [l(d, { value: e(t).toName, "onUpdate:value": o[2] || (o[2] = (a) => e(t).toName = a) }, null, 8, ["value"]), l(d, { value: e(t).toMail, "onUpdate:value": o[3] || (o[3] = (a) => e(t).toMail = a) }, null, 8, ["value"])]), _: 1 })]), _: 1 }, 8, ["label"]), l(i, { label: e(s)("subject"), "label-placement": "top" }, { default: n(() => [l(d, { value: e(t).subject, "onUpdate:value": o[4] || (o[4] = (a) => e(t).subject = a) }, null, 8, ["value"])]), _: 1 }, 8, ["label"]), l(i, { label: e(s)("options"), "label-placement": "top" }, { default: n(() => [l(w, { value: e(t).contentType, "onUpdate:value": o[5] || (o[5] = (a) => e(t).contentType = a) }, { default: n(() => [(r(), p(K, null, G(M, (a) => l(j, { key: a.value, value: a.value, label: a.label }, null, 8, ["value", "label"])), 64))]), _: 1 }, 8, ["value"]), e(t).contentType != "text" ? (r(), f(v, { key: 0, onClick: o[6] || (o[6] = (a) => m.value = !m.value), style: { "margin-left": "10px" } }, { default: n(() => [g(x(m.value ? e(s)("edit") : e(s)("preview")), 1)]), _: 1 })) : Y("", true)]), _: 1 }, 8, ["label"]), l(i, { label: e(s)("content"), "label-placement": "top" }, { default: n(() => [m.value ? (r(), f(y, { key: 0, bordered: false, embedded: "" }, { default: n(() => [N("div", { innerHTML: e(t).content }, null, 8, te)]), _: 1 })) : e(t).contentType == "rich" ? (r(), p("div", ae, [l(e(B), { style: { "border-bottom": "1px solid #ccc" }, defaultConfig: S, editor: _.value, mode: "default" }, null, 8, ["editor"]), l(e(L), { style: { height: "500px", "overflow-y": "hidden" }, modelValue: e(t).content, "onUpdate:modelValue": o[7] || (o[7] = (a) => e(t).content = a), defaultConfig: k, mode: "default", onOnCreated: C }, null, 8, ["modelValue"])])) : (r(), f(d, { key: 2, type: "textarea", value: e(t).content, "onUpdate:value": o[8] || (o[8] = (a) => e(t).content = a), autosize: { minRows: 3 } }, null, 8, ["value"]))]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"])])]), _: 1 })]);
|
||||||
|
};
|
||||||
|
} }, ue = V(le, [["__scopeId", "data-v-9747bb0e"]]);
|
||||||
|
export {
|
||||||
|
ue as default
|
||||||
|
};
|
||||||
1
assets/index-BHtaHxM4.css
Normal file
1
assets/index-BHtaHxM4.css
Normal file
File diff suppressed because one or more lines are too long
1
assets/index-CeVFrBXC.css
Normal file
1
assets/index-CeVFrBXC.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.n-layout-header[data-v-8006b645]{display:flex;align-items:center;justify-content:space-between}.n-alert[data-v-8006b645]{margin-top:10px;margin-bottom:10px;text-align:center}.n-card[data-v-8006b645]{margin-top:10px}.center[data-v-8006b645]{display:flex;text-align:left;place-items:center;justify-content:center;margin:20px}.n-form .n-button[data-v-8006b645]{margin-top:10px}.footer-divider[data-v-d9827d3e]{margin:0;padding:0 var(--x-padding)}.n-switch{margin-left:10px;margin-right:10px}.side[data-v-2ffec98f]{height:100vh}.main[data-v-2ffec98f]{height:100vh;text-align:center}.n-grid[data-v-2ffec98f],.n-gi[data-v-2ffec98f],.n-space[data-v-2ffec98f]{height:100%}.center[data-v-bf056655]{display:flex}.n-button[data-v-bf056655]{margin-left:10px}.n-alert[data-v-09845092]{margin-top:10px;margin-bottom:10px;text-align:center}.n-form .n-button[data-v-09845092]{margin-top:10px}.switch-login-button[data-v-09845092]{display:flex;justify-content:center;margin:10px 0}.n-form[data-v-09845092]{text-align:left}.n-data-table[data-v-2af033d1]{min-width:700px}.address-row[data-v-335af9ba]{width:100%;gap:10px}.address-select[data-v-335af9ba]{min-width:220px;max-width:420px;flex:1 1 220px}.address-copy[data-v-335af9ba]{flex:0 0 auto;white-space:nowrap}.n-alert[data-v-33992ef1]{margin-top:10px;margin-bottom:10px;text-align:center}.n-card[data-v-33992ef1]{margin-top:10px}.center[data-v-33992ef1]{display:flex;text-align:left;place-items:center;justify-content:center;margin:20px}.address-manage[data-v-33992ef1]{flex:0 0 auto;white-space:nowrap}.ai-extract-info[data-v-c2dbe356]{margin-bottom:10px}.mail-content-renderer[data-v-d503cbff]{display:flex;flex-direction:column;gap:10px}.mail-content[data-v-d503cbff]{margin-top:10px;flex:1}.mail-text[data-v-d503cbff]{white-space:pre-wrap;word-wrap:break-word;margin:0;padding:0;font-family:inherit;font-size:inherit;line-height:inherit}.dark-mode .mail-text[data-v-d503cbff]{color:#e0e0e0}.mail-iframe[data-v-d503cbff]{width:100%;height:100%;border:none;min-height:400px}.dark-mode .mail-iframe[data-v-d503cbff]{background-color:#fff}.mail-html[data-v-d503cbff]{width:100%;height:100%}.center[data-v-d503cbff]{text-align:center}.fullscreen-mail-content[data-v-d503cbff]{height:calc(100vh - 120px);overflow:auto}.fullscreen-mail-content .mail-iframe[data-v-d503cbff]{min-height:calc(100vh - 120px)}.left[data-v-d1585b00]{text-align:left}.center[data-v-d1585b00]{text-align:center}.overlay[data-v-d1585b00]{width:100%;height:100%;z-index:1000}.overlay-dark-backgroud[data-v-d1585b00]{background-color:#ffffff1a}.overlay-light-backgroud[data-v-d1585b00]{background-color:#0000001a}.mail-item[data-v-d1585b00]{height:100%}pre[data-v-d1585b00]{white-space:pre-wrap;word-wrap:break-word}.left[data-v-56d1af9f]{text-align:left}.center[data-v-56d1af9f]{text-align:center}.overlay[data-v-56d1af9f]{width:100%;height:100%;z-index:1000}.overlay-dark-backgroud[data-v-56d1af9f]{background-color:#ffffff1a}.overlay-light-backgroud[data-v-56d1af9f]{background-color:#0000001a}.mail-item[data-v-56d1af9f]{height:100%}pre[data-v-56d1af9f]{white-space:pre-wrap;word-wrap:break-word}.n-card[data-v-e3028e17]{max-width:800px}.n-button[data-v-e3028e17]{text-align:left}.center[data-v-e3028e17]{display:flex;text-align:center;place-items:center;justify-content:center}.left[data-v-e3028e17]{text-align:left;place-items:left;justify-content:left}.right[data-v-e3028e17]{text-align:right;place-items:right;justify-content:right}.center[data-v-0ba80a16]{display:flex;justify-content:center}.n-card[data-v-0ba80a16]{max-width:800px;text-align:left}.n-button[data-v-0ba80a16]{margin-top:10px}.center[data-v-d45c959c]{display:flex;justify-content:center}.n-card[data-v-d45c959c]{max-width:800px;text-align:left}.center[data-v-f7229ace]{display:flex;text-align:left;place-items:center;justify-content:center}.n-button[data-v-f7229ace]{margin-top:10px}.center[data-v-709bfb8d]{display:flex;justify-content:center}.n-card[data-v-709bfb8d]{max-width:800px}.n-button[data-v-709bfb8d]{margin-top:10px;margin-left:10px}.center[data-v-bae9495d]{max-width:800px;margin:0 auto}.n-card[data-v-bae9495d]{margin-top:20px;width:100%}.center[data-v-128c1f0f]{display:flex;justify-content:center}.n-card[data-v-128c1f0f]{max-width:800px;text-align:left}.n-button[data-v-128c1f0f]{margin-top:10px;margin-bottom:10px}.center[data-v-1bb19ba3]{display:flex;text-align:center;place-items:center;justify-content:center}.n-button[data-v-1bb19ba3]{margin-top:10px}.oauth2-icon[data-v-1bb19ba3]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}.oauth2-icon[data-v-1bb19ba3] svg{width:100%;height:100%}.n-alert[data-v-7936a6f0]{margin-top:10px;margin-bottom:10px;text-align:center}.center[data-v-7936a6f0]{display:flex;text-align:center;place-items:center;justify-content:center;margin:20px}.center[data-v-83781169]{display:flex;text-align:center;place-items:center;justify-content:center}
|
||||||
63010
assets/index-rOHOLR3M.js
Normal file
63010
assets/index-rOHOLR3M.js
Normal file
File diff suppressed because one or more lines are too long
20608
assets/index.esm-YCBPJhFu.js
Normal file
20608
assets/index.esm-YCBPJhFu.js
Normal file
File diff suppressed because one or more lines are too long
2324
assets/jszip.min-CeOOLoxS.js
Normal file
2324
assets/jszip.min-CeOOLoxS.js
Normal file
File diff suppressed because it is too large
Load Diff
313
assets/mail_parser_wasm-DCfoRg1W.js
Normal file
313
assets/mail_parser_wasm-DCfoRg1W.js
Normal file
@@ -0,0 +1,313 @@
|
|||||||
|
let m, h, y, O, B, R, C, k, oe;
|
||||||
|
let __tla = (async () => {
|
||||||
|
const F = "/assets/mail_parser_wasm_bg-BA0AUcSW.wasm", W = async (n = {}, e) => {
|
||||||
|
let t;
|
||||||
|
if (e.startsWith("data:")) {
|
||||||
|
const r = e.replace(/^data:.*?base64,/, "");
|
||||||
|
let a;
|
||||||
|
if (typeof Buffer == "function" && typeof Buffer.from == "function") a = Buffer.from(r, "base64");
|
||||||
|
else if (typeof atob == "function") {
|
||||||
|
const l = atob(r);
|
||||||
|
a = new Uint8Array(l.length);
|
||||||
|
for (let i = 0; i < l.length; i++) a[i] = l.charCodeAt(i);
|
||||||
|
} else throw new Error("Cannot decode base64-encoded data URL");
|
||||||
|
t = await WebAssembly.instantiate(a, n);
|
||||||
|
} else {
|
||||||
|
const r = await fetch(e), a = r.headers.get("Content-Type") || "";
|
||||||
|
if ("instantiateStreaming" in WebAssembly && a.startsWith("application/wasm")) t = await WebAssembly.instantiateStreaming(r, n);
|
||||||
|
else {
|
||||||
|
const l = await r.arrayBuffer();
|
||||||
|
t = await WebAssembly.instantiate(l, n);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return t.instance.exports;
|
||||||
|
};
|
||||||
|
let _;
|
||||||
|
R = function(n) {
|
||||||
|
_ = n;
|
||||||
|
};
|
||||||
|
const U = typeof TextDecoder > "u" ? (0, module.require)("util").TextDecoder : TextDecoder;
|
||||||
|
let v = new U("utf-8", {
|
||||||
|
ignoreBOM: true,
|
||||||
|
fatal: true
|
||||||
|
});
|
||||||
|
v.decode();
|
||||||
|
let f = null;
|
||||||
|
function u() {
|
||||||
|
return (f === null || f.byteLength === 0) && (f = new Uint8Array(_.memory.buffer)), f;
|
||||||
|
}
|
||||||
|
function o(n, e) {
|
||||||
|
return n = n >>> 0, v.decode(u().subarray(n, n + e));
|
||||||
|
}
|
||||||
|
function z(n, e) {
|
||||||
|
return n = n >>> 0, u().subarray(n / 1, n / 1 + e);
|
||||||
|
}
|
||||||
|
let d = null;
|
||||||
|
function M() {
|
||||||
|
return (d === null || d.buffer.detached === true || d.buffer.detached === void 0 && d.buffer !== _.memory.buffer) && (d = new DataView(_.memory.buffer)), d;
|
||||||
|
}
|
||||||
|
function p(n, e) {
|
||||||
|
n = n >>> 0;
|
||||||
|
const t = M(), r = [];
|
||||||
|
for (let a = n; a < n + 4 * e; a += 4) r.push(_.__wbindgen_export_0.get(t.getUint32(a, true)));
|
||||||
|
return _.__externref_drop_slice(n, e), r;
|
||||||
|
}
|
||||||
|
let w = 0;
|
||||||
|
const S = typeof TextEncoder > "u" ? (0, module.require)("util").TextEncoder : TextEncoder;
|
||||||
|
let b = new S("utf-8");
|
||||||
|
const E = typeof b.encodeInto == "function" ? function(n, e) {
|
||||||
|
return b.encodeInto(n, e);
|
||||||
|
} : function(n, e) {
|
||||||
|
const t = b.encode(n);
|
||||||
|
return e.set(t), {
|
||||||
|
read: n.length,
|
||||||
|
written: t.length
|
||||||
|
};
|
||||||
|
};
|
||||||
|
function D(n, e, t) {
|
||||||
|
if (t === void 0) {
|
||||||
|
const c = b.encode(n), g = e(c.length, 1) >>> 0;
|
||||||
|
return u().subarray(g, g + c.length).set(c), w = c.length, g;
|
||||||
|
}
|
||||||
|
let r = n.length, a = e(r, 1) >>> 0;
|
||||||
|
const l = u();
|
||||||
|
let i = 0;
|
||||||
|
for (; i < r; i++) {
|
||||||
|
const c = n.charCodeAt(i);
|
||||||
|
if (c > 127) break;
|
||||||
|
l[a + i] = c;
|
||||||
|
}
|
||||||
|
if (i !== r) {
|
||||||
|
i !== 0 && (n = n.slice(i)), a = t(a, r, r = i + n.length * 3, 1) >>> 0;
|
||||||
|
const c = u().subarray(a + i, a + r), g = E(n, c);
|
||||||
|
i += g.written, a = t(a, r, i, 1) >>> 0;
|
||||||
|
}
|
||||||
|
return w = i, a;
|
||||||
|
}
|
||||||
|
oe = function(n) {
|
||||||
|
const e = D(n, _.__wbindgen_malloc, _.__wbindgen_realloc), t = w, r = _.parse_message(e, t);
|
||||||
|
return y.__wrap(r);
|
||||||
|
};
|
||||||
|
const x = typeof FinalizationRegistry > "u" ? {
|
||||||
|
register: () => {
|
||||||
|
},
|
||||||
|
unregister: () => {
|
||||||
|
}
|
||||||
|
} : new FinalizationRegistry((n) => _.__wbg_attachmentresult_free(n >>> 0, 1));
|
||||||
|
m = class {
|
||||||
|
static __wrap(e) {
|
||||||
|
e = e >>> 0;
|
||||||
|
const t = Object.create(m.prototype);
|
||||||
|
return t.__wbg_ptr = e, x.register(t, t.__wbg_ptr, t), t;
|
||||||
|
}
|
||||||
|
__destroy_into_raw() {
|
||||||
|
const e = this.__wbg_ptr;
|
||||||
|
return this.__wbg_ptr = 0, x.unregister(this), e;
|
||||||
|
}
|
||||||
|
free() {
|
||||||
|
const e = this.__destroy_into_raw();
|
||||||
|
_.__wbg_attachmentresult_free(e, 0);
|
||||||
|
}
|
||||||
|
get content_id() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.attachmentresult_content_id(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get content_type() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.attachmentresult_content_type(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get filename() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.attachmentresult_filename(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get content() {
|
||||||
|
const e = _.attachmentresult_content(this.__wbg_ptr);
|
||||||
|
var t = z(e[0], e[1]).slice();
|
||||||
|
return _.__wbindgen_free(e[0], e[1] * 1, 1), t;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const A = typeof FinalizationRegistry > "u" ? {
|
||||||
|
register: () => {
|
||||||
|
},
|
||||||
|
unregister: () => {
|
||||||
|
}
|
||||||
|
} : new FinalizationRegistry((n) => _.__wbg_messageheader_free(n >>> 0, 1));
|
||||||
|
h = class {
|
||||||
|
static __wrap(e) {
|
||||||
|
e = e >>> 0;
|
||||||
|
const t = Object.create(h.prototype);
|
||||||
|
return t.__wbg_ptr = e, A.register(t, t.__wbg_ptr, t), t;
|
||||||
|
}
|
||||||
|
__destroy_into_raw() {
|
||||||
|
const e = this.__wbg_ptr;
|
||||||
|
return this.__wbg_ptr = 0, A.unregister(this), e;
|
||||||
|
}
|
||||||
|
free() {
|
||||||
|
const e = this.__destroy_into_raw();
|
||||||
|
_.__wbg_messageheader_free(e, 0);
|
||||||
|
}
|
||||||
|
get key() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.messageheader_key(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get value() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.messageheader_value(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const T = typeof FinalizationRegistry > "u" ? {
|
||||||
|
register: () => {
|
||||||
|
},
|
||||||
|
unregister: () => {
|
||||||
|
}
|
||||||
|
} : new FinalizationRegistry((n) => _.__wbg_messageresult_free(n >>> 0, 1));
|
||||||
|
y = class {
|
||||||
|
static __wrap(e) {
|
||||||
|
e = e >>> 0;
|
||||||
|
const t = Object.create(y.prototype);
|
||||||
|
return t.__wbg_ptr = e, T.register(t, t.__wbg_ptr, t), t;
|
||||||
|
}
|
||||||
|
__destroy_into_raw() {
|
||||||
|
const e = this.__wbg_ptr;
|
||||||
|
return this.__wbg_ptr = 0, T.unregister(this), e;
|
||||||
|
}
|
||||||
|
free() {
|
||||||
|
const e = this.__destroy_into_raw();
|
||||||
|
_.__wbg_messageresult_free(e, 0);
|
||||||
|
}
|
||||||
|
get sender() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.messageresult_sender(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get subject() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.messageresult_subject(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get headers() {
|
||||||
|
const e = _.messageresult_headers(this.__wbg_ptr);
|
||||||
|
var t = p(e[0], e[1]).slice();
|
||||||
|
return _.__wbindgen_free(e[0], e[1] * 4, 4), t;
|
||||||
|
}
|
||||||
|
get body_html() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.messageresult_body_html(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get text() {
|
||||||
|
let e, t;
|
||||||
|
try {
|
||||||
|
const r = _.messageresult_text(this.__wbg_ptr);
|
||||||
|
return e = r[0], t = r[1], o(r[0], r[1]);
|
||||||
|
} finally {
|
||||||
|
_.__wbindgen_free(e, t, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get attachments() {
|
||||||
|
const e = _.messageresult_attachments(this.__wbg_ptr);
|
||||||
|
var t = p(e[0], e[1]).slice();
|
||||||
|
return _.__wbindgen_free(e[0], e[1] * 4, 4), t;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
O = function(n) {
|
||||||
|
return m.__wrap(n);
|
||||||
|
};
|
||||||
|
B = function(n) {
|
||||||
|
return h.__wrap(n);
|
||||||
|
};
|
||||||
|
C = function() {
|
||||||
|
const n = _.__wbindgen_export_0, e = n.grow(4);
|
||||||
|
n.set(0, void 0), n.set(e + 0, void 0), n.set(e + 1, null), n.set(e + 2, true), n.set(e + 3, false);
|
||||||
|
};
|
||||||
|
k = function(n, e) {
|
||||||
|
throw new Error(o(n, e));
|
||||||
|
};
|
||||||
|
URL = globalThis.URL;
|
||||||
|
const s = await W({
|
||||||
|
"./mail_parser_wasm_bg.js": {
|
||||||
|
__wbg_attachmentresult_new: O,
|
||||||
|
__wbg_messageheader_new: B,
|
||||||
|
__wbindgen_throw: k,
|
||||||
|
__wbindgen_init_externref_table: C
|
||||||
|
}
|
||||||
|
}, F), L = s.memory, V = s.__wbg_attachmentresult_free, q = s.attachmentresult_content_id, I = s.attachmentresult_content_type, $ = s.attachmentresult_filename, H = s.attachmentresult_content, J = s.__wbg_messageheader_free, N = s.messageheader_key, P = s.messageheader_value, G = s.__wbg_messageresult_free, K = s.messageresult_sender, Q = s.messageresult_subject, X = s.messageresult_headers, Y = s.messageresult_body_html, Z = s.messageresult_text, ee = s.messageresult_attachments, te = s.parse_message, re = s.__wbindgen_export_0, ne = s.__wbindgen_free, _e = s.__externref_drop_slice, se = s.__wbindgen_malloc, ae = s.__wbindgen_realloc, j = s.__wbindgen_start, ie = Object.freeze(Object.defineProperty({
|
||||||
|
__proto__: null,
|
||||||
|
__externref_drop_slice: _e,
|
||||||
|
__wbg_attachmentresult_free: V,
|
||||||
|
__wbg_messageheader_free: J,
|
||||||
|
__wbg_messageresult_free: G,
|
||||||
|
__wbindgen_export_0: re,
|
||||||
|
__wbindgen_free: ne,
|
||||||
|
__wbindgen_malloc: se,
|
||||||
|
__wbindgen_realloc: ae,
|
||||||
|
__wbindgen_start: j,
|
||||||
|
attachmentresult_content: H,
|
||||||
|
attachmentresult_content_id: q,
|
||||||
|
attachmentresult_content_type: I,
|
||||||
|
attachmentresult_filename: $,
|
||||||
|
memory: L,
|
||||||
|
messageheader_key: N,
|
||||||
|
messageheader_value: P,
|
||||||
|
messageresult_attachments: ee,
|
||||||
|
messageresult_body_html: Y,
|
||||||
|
messageresult_headers: X,
|
||||||
|
messageresult_sender: K,
|
||||||
|
messageresult_subject: Q,
|
||||||
|
messageresult_text: Z,
|
||||||
|
parse_message: te
|
||||||
|
}, Symbol.toStringTag, {
|
||||||
|
value: "Module"
|
||||||
|
}));
|
||||||
|
R(ie);
|
||||||
|
j();
|
||||||
|
})();
|
||||||
|
export {
|
||||||
|
m as AttachmentResult,
|
||||||
|
h as MessageHeader,
|
||||||
|
y as MessageResult,
|
||||||
|
__tla,
|
||||||
|
O as __wbg_attachmentresult_new,
|
||||||
|
B as __wbg_messageheader_new,
|
||||||
|
R as __wbg_set_wasm,
|
||||||
|
C as __wbindgen_init_externref_table,
|
||||||
|
k as __wbindgen_throw,
|
||||||
|
oe as parse_message
|
||||||
|
};
|
||||||
BIN
assets/mail_parser_wasm_bg-BA0AUcSW.wasm
Normal file
BIN
assets/mail_parser_wasm_bg-BA0AUcSW.wasm
Normal file
Binary file not shown.
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
26
index.html
Normal file
26
index.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link rel="icon" href="/logo.png">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Temp Email</title>
|
||||||
|
<meta name="description" content="Temp Email">
|
||||||
|
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#000">
|
||||||
|
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#ffffff">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Temp Email">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
|
<link rel="icon" href="/logo.png" sizes="any">
|
||||||
|
<link rel="apple-touch-icon" href="/logo.png">
|
||||||
|
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit"></script>
|
||||||
|
<script type="module" crossorigin src="/assets/index-rOHOLR3M.js"></script>
|
||||||
|
<link rel="stylesheet" crossorigin href="/assets/index-CeVFrBXC.css">
|
||||||
|
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
1
manifest.webmanifest
Normal file
1
manifest.webmanifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"name":"Temp Email","short_name":"Temp Email","description":"Temp Email - Temporary Email","start_url":"/","display":"standalone","background_color":"#ffffff","theme_color":"#ffffff","lang":"en","scope":"/","icons":[{"src":"/logo.png","sizes":"192x192","type":"image/png"}]}
|
||||||
1
registerSW.js
Normal file
1
registerSW.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('/sw.js', { scope: '/' })})}
|
||||||
1
sw.js
Normal file
1
sw.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
if(!self.define){let e,s={};const t=(t,o)=>(t=new URL(t+".js",o).href,s[t]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()}).then(()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didn’t register its module`);return e}));self.define=(o,i)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let r={};const f=e=>t(e,n),l={module:{uri:n},exports:r,require:f};s[n]=Promise.all(o.map(e=>l[e]||f(e))).then(e=>(i(...e),r))}}define(["./workbox-0f8a451b"],function(e){"use strict";self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),e.precacheAndRoute([{url:"logo.png",revision:"f13f7a9b0f4adf6b653f5320465b8f09"},{url:"manifest.webmanifest",revision:"d7f3d7a23d0b9f65aa265512e402e409"}],{}),e.cleanupOutdatedCaches(),self.__WB_DISABLE_DEV_LOGS=!0});
|
||||||
1
workbox-0f8a451b.js
Normal file
1
workbox-0f8a451b.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user