Skip to content

Commit d621d79

Browse files
committed
pre-login panel
1 parent d90e48d commit d621d79

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

src/components/CommandLineInterface.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- src/components/CommandLineInterface.vue -->
12
<template>
23
<div class="cli-container">
34
<vue-command :commands="commands" :hide-buttons="true" :show-help="true" :cursor-position="0" :is-fullscreen="true">

src/store.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// src/store.js
2+
import { defineStore } from 'pinia'
3+
4+
export const useMainStore = defineStore('main', {
5+
state: () => ({
6+
count: 0,
7+
// cookieConsent: null // null, 'accepted', or 'rejected'
8+
cookieConsent: localStorage.getItem('cookieConsent')
9+
}),
10+
actions: {
11+
increment() {
12+
this.count++
13+
},
14+
setCookieConsent(value) {
15+
this.cookieConsent = value
16+
localStorage.setItem('cookieConsent', value)
17+
}
18+
},
19+
getters: {
20+
isCookieConsentSet: (state) => state.cookieConsent !== null
21+
}
22+
})
23+

0 commit comments

Comments
 (0)