Merge branch 'main' of https://git2.tavasi.ir/front/base_ui into baghi/baseui/refactor

This commit is contained in:
Baghi 2025-04-16 17:53:17 +03:30
commit 8bb6032180
3 changed files with 30 additions and 24 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

View File

@ -69,7 +69,7 @@ export const useAuthStore = defineStore("authStore", {
isGuest(state) {
return !state.isRealUser;
},
async isAuthenticatedGetter(state) {
isAuthenticatedGetter(state) {
let isAuthenticated = useStorage("id_token", "GuestAccess").value;
// updating value sample
// isAuthenticated.value = null
@ -266,8 +266,6 @@ export const useAuthStore = defineStore("authStore", {
// });
},
async login(credentials) {
console.info(import.meta.env.VITE_AUTH_BASE_URL)
try {
const { $api } = useNuxtApp();
const response = await $api(apis.login, {

View File

@ -1,24 +1,32 @@
module.exports = {
prefix: 'tw-',
prefix: "tw-",
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./nuxt.config.{js,ts}",
],
theme: {
screens: {
sm: "360px",
md: "720px",
lg: "992px",
xl: "1200px",
"2xl": "1400px",
"3xl": "1900px",
},
extend: {},
},
plugins: [],
purge: {
enabled: process.env.NODE_ENV === "production",
content: [
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./nuxt.config.{js,ts}",
],
theme: {
extend: {},
},
plugins: [],
purge: {
enabled: process.env.NODE_ENV === 'production',
content: [
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
],
},
};
},
};