feat: implement activity logging for user actions and create activities table
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 44s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 44s
This commit is contained in:
parent
6c75efbc28
commit
7e2f320b4f
12 changed files with 420 additions and 160 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { defineStore } from 'pinia';
|
||||
import axios from 'axios';
|
||||
import { Dataset } from '@/Dataset';
|
||||
import { Activity, Dataset } from '@/Dataset';
|
||||
import menu from '@/menu';
|
||||
// import type Person from '#models/person';
|
||||
|
||||
|
|
@ -133,6 +133,8 @@ export const MainService = defineStore('main', {
|
|||
used: 0,
|
||||
codes: [],
|
||||
|
||||
activities: [] as Array<Activity>, // <-- neu
|
||||
|
||||
graphData: {},
|
||||
}),
|
||||
actions: {
|
||||
|
|
@ -203,6 +205,17 @@ export const MainService = defineStore('main', {
|
|||
});
|
||||
},
|
||||
|
||||
// async fetchApi(resource: string) {
|
||||
// try {
|
||||
// const { data } = await axios.get(`/api/${resource}`);
|
||||
// // @ts-ignore – dynamischer Key
|
||||
// this[resource] = data;
|
||||
// } catch (error) {
|
||||
// console.error(`Failed to fetch ${resource}`, error);
|
||||
// }
|
||||
// },
|
||||
|
||||
|
||||
setState(state: any) {
|
||||
this.totpState = state;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue