Dashboard page restructured. Moved some elements to the other views.

This commit is contained in:
Jesse Malotaux 2025-04-30 18:06:53 +02:00
parent 1cf9029a63
commit 315d169cf9
10 changed files with 363 additions and 121 deletions

View file

@ -2,9 +2,13 @@ import axios from 'axios'
import { appUrl, isLocal } from './ApiService'
import { AuthCall } from './EncryptService'
export const GetMacroList = async () => {
export const GetMacroList = async (count = false) => {
const request = await axios.post(appUrl() + '/macro/list')
return sortMacroList(request.data)
if (!request.data) return 0
if (!count) return sortMacroList(request.data)
else return request.data.length
}
const sortMacroList = (list) => {