-
+
{children}
@@ -46,9 +35,8 @@ export function NoLNBLayout({
-
-
-
+
+
);
}
diff --git a/packages/common/components/src/ui/lnb/index.tsx b/packages/common/components/src/ui/lnb/index.tsx
index 1c7722a36..35d2f121d 100644
--- a/packages/common/components/src/ui/lnb/index.tsx
+++ b/packages/common/components/src/ui/lnb/index.tsx
@@ -42,7 +42,6 @@ import {
const appConfig = getConfig();
const userId = getCookie(appConfig.AUTH_USER_ID ?? "");
-const appSiteId = getCookie("site-id-key") ?? "";
const isLoggedIn = !!userId;
export function LNB({
@@ -74,6 +73,7 @@ export function LNB({
helpContent,
} = useHelpDialog();
+ const appSiteId = getCookie("site-id-key") ?? "";
const siteId = propSiteId ?? appSiteId;
const { data: menuListData } = useQuery({
diff --git a/packages/common/components/tsconfig.json b/packages/common/components/tsconfig.json
index 9fa9e88ee..e5eeffcad 100644
--- a/packages/common/components/tsconfig.json
+++ b/packages/common/components/tsconfig.json
@@ -12,21 +12,22 @@
"noEmit": false,
"incremental": true,
"strict": true,
- "baseUrl": ".",
"paths": {
- "@/*": ["src/*"]
+ "@/*": ["./src/*"]
}
},
- "exclude": ["**/node_modules", "**/.*/*", "dist"],
+ "exclude": [
+ "node_modules",
+ ".next",
+ "dist",
+ "coverage",
+ "storybook-static",
+ "public"
+ ],
"include": [
- ".eslintrc.*",
"**/*.ts",
"**/*.tsx",
"**/*.mts",
- "**/*.cjs",
- "**/*.mjs",
- "**/*.jsx",
- "**/*.json",
".storybook/env.ts"
]
}
diff --git a/packages/common/config/tsconfig.json b/packages/common/config/tsconfig.json
index 20cbe8801..95f0c3842 100644
--- a/packages/common/config/tsconfig.json
+++ b/packages/common/config/tsconfig.json
@@ -9,5 +9,10 @@
"incremental": false
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
- "exclude": ["node_modules", "dist"]
+ "exclude": [
+ "node_modules",
+ "dist",
+ "coverage",
+ "storybook-static"
+ ]
}
diff --git a/packages/common/network/client.ts b/packages/common/network/client.ts
index 6b39a33fa..f222bff3f 100644
--- a/packages/common/network/client.ts
+++ b/packages/common/network/client.ts
@@ -9,6 +9,8 @@ interface ClientConfig {
siteId: string;
}
+const DEVICE_ID_KEY = "x-device-id";
+
class Client {
private static instance: Client;
private axiosInstance: AxiosInstance;
@@ -26,6 +28,7 @@ class Client {
this.axiosInstance.interceptors.request.use((config) => {
const token = Cookies.get(CLAIM_NAME);
const userId = Cookies.get(AUTH_USER_ID);
+ const deviceId = Cookies.get(DEVICE_ID_KEY);
if (!token || !userId) {
return config;
@@ -33,6 +36,7 @@ class Client {
config.headers[CLAIM_NAME] = token;
config.headers[AUTH_USER_ID] = userId;
+ config.headers["X-Device-Id"] = deviceId;
return config;
});
diff --git a/packages/common/network/tsconfig.json b/packages/common/network/tsconfig.json
index 7f4dcf889..ec4a9e559 100644
--- a/packages/common/network/tsconfig.json
+++ b/packages/common/network/tsconfig.json
@@ -2,9 +2,10 @@
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
- "baseUrl": ".",
- "module": "ESNext"
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "types": ["node"]
},
"include": ["."],
- "exclude": ["node_modules", "dist"]
+ "exclude": ["node_modules", "dist", "coverage", "storybook-static"]
}
diff --git a/packages/common/types/css.d.ts b/packages/common/types/css.d.ts
new file mode 100644
index 000000000..cbe652dbe
--- /dev/null
+++ b/packages/common/types/css.d.ts
@@ -0,0 +1 @@
+declare module "*.css";
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fd99062b0..4b95e9068 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -195,9 +195,6 @@ importers:
tus-js-client:
specifier: ^4.3.1
version: 4.3.1
- uuid:
- specifier: ^14.0.1
- version: 14.0.1
zod:
specifier: ^3.24.2
version: 3.25.76
@@ -247,9 +244,9 @@ importers:
'@common/components':
specifier: workspace:*
version: link:../../packages/common/components
- '@common/config':
+ '@common/network':
specifier: workspace:*
- version: link:../../packages/common/config
+ version: link:../../packages/common/network
'@dnd-kit/core':
specifier: ^6.3.1
version: 6.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
@@ -352,9 +349,6 @@ importers:
tus-js-client:
specifier: ^4.3.1
version: 4.3.1
- uuid:
- specifier: ^14.0.1
- version: 14.0.1
zod:
specifier: ^3.24.2
version: 3.25.76
@@ -639,9 +633,6 @@ importers:
tus-js-client:
specifier: ^4.3.1
version: 4.3.1
- uuid:
- specifier: ^14.0.1
- version: 14.0.1
zod:
specifier: ^3.24.2
version: 3.25.76
@@ -951,9 +942,6 @@ importers:
select:
specifier: ^1.1.2
version: 1.1.2
- uuid:
- specifier: ^14.0.1
- version: 14.0.1
webpack:
specifier: ^5.98.0
version: 5.105.4
@@ -1042,6 +1030,9 @@ importers:
js-cookie:
specifier: ^3.0.5
version: 3.0.5
+ lucide-react:
+ specifier: ^0.474.0
+ version: 0.474.0(react@19.2.4)
moment:
specifier: ^2.30.1
version: 2.30.1
@@ -1075,9 +1066,6 @@ importers:
tus-js-client:
specifier: ^4.3.1
version: 4.3.1
- uuid:
- specifier: ^14.0.1
- version: 14.0.1
xlsx:
specifier: ^0.18.5
version: 0.18.5
@@ -1277,9 +1265,6 @@ importers:
tus-js-client:
specifier: ^4.3.1
version: 4.3.1
- uuid:
- specifier: ^14.0.1
- version: 14.0.1
xlsx:
specifier: ^0.18.5
version: 0.18.5
@@ -1437,9 +1422,6 @@ importers:
tus-js-client:
specifier: ^4.3.1
version: 4.3.1
- uuid:
- specifier: ^14.0.1
- version: 14.0.1
xlsx:
specifier: ^0.18.5
version: 0.18.5
@@ -1492,6 +1474,9 @@ importers:
js-cookie:
specifier: ^3.0.5
version: 3.0.5
+ uuid:
+ specifier: ^14.0.1
+ version: 14.0.1
devDependencies:
'@types/js-cookie':
specifier: ^3.0.6
diff --git a/tsconfig.base.json b/tsconfig.base.json
index 254e01445..55754237d 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -18,5 +18,12 @@
"incremental": true,
"newLine": "lf"
},
- "exclude": ["**/node_modules", "**/.*/"]
+ "exclude": [
+ "**/node_modules",
+ "**/.*/",
+ "**/dist",
+ "**/coverage",
+ "**/storybook-static",
+ "**/.next"
+ ]
}