Skip to content

Commit

Permalink
Add Pinia to externals
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Jul 10, 2024
1 parent 0252ec7 commit be6b688
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 348 deletions.
2 changes: 1 addition & 1 deletion dist/api.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ref as _ } from "vue";
import { AlertStyle as ie } from "./types.js";
import { u as ae } from "./auth-Bko0F-UD.js";
import { u as ae } from "./auth-B0ne5h5X.js";
function Ce(e, t) {
return function() {
return e.apply(t, arguments);
Expand Down
21 changes: 21 additions & 0 deletions dist/auth-B0ne5h5X.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineStore as t } from "pinia";
const r = t("auth", {
persist: !0,
state: () => ({
user: null
}),
getters: {
isAuthenticated: (e) => e.user !== null
},
actions: {
setUser(e) {
this.user = e;
},
unsetUser() {
this.user = null;
}
}
});
export {
r as u
};
9 changes: 0 additions & 9 deletions dist/auth-BTqz4VbC.cjs

This file was deleted.

334 changes: 0 additions & 334 deletions dist/auth-Bko0F-UD.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/auth-uAVyzo3O.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"use strict";const t=require("pinia"),s=t.defineStore("auth",{persist:!0,state:()=>({user:null}),getters:{isAuthenticated:e=>e.user!==null},actions:{setUser(e){this.user=e},unsetUser(){this.user=null}}});exports.useAuthStore=s;
2 changes: 1 addition & 1 deletion dist/stores.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./auth-BTqz4VbC.cjs");exports.useAuthStore=e.useAuthStore;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./auth-uAVyzo3O.cjs");exports.useAuthStore=e.useAuthStore;
2 changes: 1 addition & 1 deletion dist/stores.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { u as r } from "./auth-Bko0F-UD.js";
import { u as r } from "./auth-B0ne5h5X.js";
export {
r as useAuthStore
};
Loading

0 comments on commit be6b688

Please sign in to comment.