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

View File

@ -1,24 +1,32 @@
module.exports = { 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: [ content: [
'./components/**/*.{js,vue,ts}', "./components/**/*.{js,vue,ts}",
'./layouts/**/*.vue', "./layouts/**/*.vue",
'./pages/**/*.vue', "./pages/**/*.vue",
'./plugins/**/*.{js,ts}', "./plugins/**/*.{js,ts}",
'./nuxt.config.{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}',
],
},
};