jplan-pack 0.5.78 → 0.5.80
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/AuthRoute-BVkVgozS.mjs +47 -0
- package/dist/AuthRoute-BmRJRYJO.js +1 -0
- package/dist/index-DxDzRD5z.js +87 -0
- package/dist/index-f8QFuTOW.mjs +24184 -0
- package/dist/jplan-pack.cjs.js +1 -87
- package/dist/jplan-pack.es.js +48 -24167
- package/dist/types/_auth/_dev/AuthRoute.d.ts +2 -0
- package/dist/types/_auth/_dev/authRoute.d.ts +7 -0
- package/dist/types/composables/index.d.ts +1 -2
- package/dist/types/modules/scope/__scopedClient.d.ts +3 -0
- package/package.json +1 -1
- package/dist/types/composables/useGlobalScope.d.ts +0 -30
@@ -0,0 +1,47 @@
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as c, openBlock as m, createBlock as s, unref as u } from "vue";
|
2
|
+
import "@vueuse/core";
|
3
|
+
import "vuetify/lib/components/VBtn/index.mjs";
|
4
|
+
import "vuetify/components";
|
5
|
+
import "vuetify/lib/components/VIcon/index.mjs";
|
6
|
+
import { m as t, S as l } from "./index-f8QFuTOW.mjs";
|
7
|
+
import "vuetify/lib/components/VCard/index.mjs";
|
8
|
+
import "vuetify/lib/components/VDialog/index.mjs";
|
9
|
+
import "vuetify/lib/components/VDivider/index.mjs";
|
10
|
+
import "vuetify/lib/components/VGrid/index.mjs";
|
11
|
+
import "vuetify/lib/components/VDataTable/index.mjs";
|
12
|
+
import "vuetify/lib/components/VCheckbox/index.mjs";
|
13
|
+
import "vuetify/lib/components/VList/index.mjs";
|
14
|
+
import "vuetify/lib/components/VAvatar/index.mjs";
|
15
|
+
import "vuetify/lib/components/VImg/index.mjs";
|
16
|
+
import "vuetify/lib/components/VMenu/index.mjs";
|
17
|
+
import "vuetify/lib/components/VLabel/index.mjs";
|
18
|
+
import "vuetify/lib/components/VTextarea/index.mjs";
|
19
|
+
import "vuetify/lib/components/VBtnToggle/index.mjs";
|
20
|
+
import "vuetify/lib/components/VSelect/index.mjs";
|
21
|
+
const b = /* @__PURE__ */ a({
|
22
|
+
__name: "AuthRoute",
|
23
|
+
setup(f) {
|
24
|
+
const r = (e) => ({
|
25
|
+
scopes: ["https://graph.microsoft.com/.default", "openid", "profile"],
|
26
|
+
redirectStartPage: window.location.href,
|
27
|
+
extraQueryParameters: e
|
28
|
+
}), o = p(!1);
|
29
|
+
async function n() {
|
30
|
+
t.getAllAccounts().length === 0 && (o.value = !0);
|
31
|
+
const e = await t.handleRedirectPromise();
|
32
|
+
if (!e) {
|
33
|
+
await t.initialize();
|
34
|
+
const i = r();
|
35
|
+
await t.loginRedirect(i);
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
t.setActiveAccount(e.account);
|
39
|
+
}
|
40
|
+
return c(async () => {
|
41
|
+
await t.initialize(), await n();
|
42
|
+
}), (e, i) => (m(), s(u(l), { authenticated: o.value }, null, 8, ["authenticated"]));
|
43
|
+
}
|
44
|
+
});
|
45
|
+
export {
|
46
|
+
b as default
|
47
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("@vueuse/core");require("vuetify/lib/components/VBtn/index.mjs");require("vuetify/components");require("vuetify/lib/components/VIcon/index.mjs");const e=require("./index-DxDzRD5z.js");require("vuetify/lib/components/VCard/index.mjs");require("vuetify/lib/components/VDialog/index.mjs");require("vuetify/lib/components/VDivider/index.mjs");require("vuetify/lib/components/VGrid/index.mjs");require("vuetify/lib/components/VDataTable/index.mjs");require("vuetify/lib/components/VCheckbox/index.mjs");require("vuetify/lib/components/VList/index.mjs");require("vuetify/lib/components/VAvatar/index.mjs");require("vuetify/lib/components/VImg/index.mjs");require("vuetify/lib/components/VMenu/index.mjs");require("vuetify/lib/components/VLabel/index.mjs");require("vuetify/lib/components/VTextarea/index.mjs");require("vuetify/lib/components/VBtnToggle/index.mjs");require("vuetify/lib/components/VSelect/index.mjs");const o=r.defineComponent({__name:"AuthRoute",setup(c){const u=t=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:window.location.href,extraQueryParameters:t}),i=r.ref(!1);async function a(){e.msal.getAllAccounts().length===0&&(i.value=!0);const t=await e.msal.handleRedirectPromise();if(!t){await e.msal.initialize();const n=u();await e.msal.loginRedirect(n);return}e.msal.setActiveAccount(t.account)}return r.onMounted(async()=>{await e.msal.initialize(),await a()}),(t,n)=>(r.openBlock(),r.createBlock(r.unref(e.SpinnerLoader),{authenticated:i.value},null,8,["authenticated"]))}});exports.default=o;
|