mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-13 15:13:51 +02:00
added frontend and updated backend with docker, wrote some initial instructions
This commit is contained in:
17
frontend/src/store/tokenStore.ts
Normal file
17
frontend/src/store/tokenStore.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
const tokenStore = defineStore("tokenStore", {
|
||||
state: () => ({
|
||||
token: "",
|
||||
}),
|
||||
actions: {
|
||||
setToken(token: string) {
|
||||
this.token = token;
|
||||
},
|
||||
removeToken() {
|
||||
this.token = "";
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default tokenStore;
|
Reference in New Issue
Block a user