feat: Implement project management with new views, services, store, and sidebar project selection.

This commit is contained in:
xds
2026-02-09 16:06:50 +03:00
parent 70e96eb503
commit 1a8c66ca35
11 changed files with 915 additions and 97 deletions

View File

@@ -13,8 +13,15 @@ const api = axios.create({
api.interceptors.request.use(
config => {
const user = JSON.parse(localStorage.getItem('user'));
if (user && user.token) {
config.headers['Authorization'] = `${user.tokenType} ${user.token}`;
if (user && user.access_token) {
config.headers.Authorization = `Bearer ${user.access_token}`;
} else if (user && user.token) {
config.headers.Authorization = `${user.tokenType} ${user.token}`;
}
const projectId = localStorage.getItem('active_project_id');
if (projectId) {
config.headers['X-Project-ID'] = projectId;
}
return config;
},