From 214469eb31b2db667ae58bde6651fe71151d18e6 Mon Sep 17 00:00:00 2001 From: Park Dahyeon Date: Fri, 14 Nov 2025 14:57:34 +0000 Subject: [PATCH] . --- API_INTEGRATION_SUMMARY.md | 138 ++++ index.html | 3 + package-lock.json | 693 ++++++++++++++++-- package.json | 3 + src/App.tsx | 19 + src/components/DocumentationPage.tsx | 19 +- src/components/Header.tsx | 266 ++----- src/components/MainContent.tsx | 265 ++----- src/components/Sidebar.tsx | 279 ++----- src/hooks/useApi.ts | 62 ++ src/index.css | 14 +- src/kiota/.kiota.log | 8 + src/kiota/apiClient.ts | 74 ++ src/kiota/kiota-lock.json | 34 + src/kiota/models/index.ts | 588 +++++++++++++++ src/kiota/v1/account/index.ts | 54 ++ src/kiota/v1/account/signin/index.ts | 40 + src/kiota/v1/articles/index.ts | 35 + src/kiota/v1/articles/item/index.ts | 58 ++ .../v1/articles/item/taxonomyPath/index.ts | 44 ++ src/kiota/v1/contents/index.ts | 31 + src/kiota/v1/contents/siteHeader/index.ts | 40 + src/kiota/v1/image/index.ts | 45 ++ src/kiota/v1/index.ts | 91 +++ src/kiota/v1/taxonomies/index.ts | 34 + .../v1/taxonomies/item/childItems/index.ts | 44 ++ src/kiota/v1/taxonomies/item/index.ts | 31 + src/lib/apiClient.ts | 12 + src/main.tsx | 22 +- src/styles/globals.css | 2 + vite.config.ts | 5 +- 31 files changed, 2345 insertions(+), 708 deletions(-) create mode 100644 API_INTEGRATION_SUMMARY.md create mode 100644 src/hooks/useApi.ts create mode 100644 src/kiota/.kiota.log create mode 100644 src/kiota/apiClient.ts create mode 100644 src/kiota/kiota-lock.json create mode 100644 src/kiota/models/index.ts create mode 100644 src/kiota/v1/account/index.ts create mode 100644 src/kiota/v1/account/signin/index.ts create mode 100644 src/kiota/v1/articles/index.ts create mode 100644 src/kiota/v1/articles/item/index.ts create mode 100644 src/kiota/v1/articles/item/taxonomyPath/index.ts create mode 100644 src/kiota/v1/contents/index.ts create mode 100644 src/kiota/v1/contents/siteHeader/index.ts create mode 100644 src/kiota/v1/image/index.ts create mode 100644 src/kiota/v1/index.ts create mode 100644 src/kiota/v1/taxonomies/index.ts create mode 100644 src/kiota/v1/taxonomies/item/childItems/index.ts create mode 100644 src/kiota/v1/taxonomies/item/index.ts create mode 100644 src/lib/apiClient.ts diff --git a/API_INTEGRATION_SUMMARY.md b/API_INTEGRATION_SUMMARY.md new file mode 100644 index 0000000..7b6b690 --- /dev/null +++ b/API_INTEGRATION_SUMMARY.md @@ -0,0 +1,138 @@ +# API Integration Summary + +## Overview +Successfully integrated the frontend SPA with the backend API server using Kiota API client and React Query for data fetching and state management. + +## Changes Made + +### 1. API Client Setup +- **File**: `src/lib/apiClient.ts` +- Created a centralized API client using Kiota's `DefaultRequestAdapter` +- Configured with `AnonymousAuthenticationProvider` for now (can be upgraded to authenticated requests later) +- Base URL configured to: `https://moeum.dahyeon.us/` + +### 2. React Query Hooks +- **File**: `src/hooks/useApi.ts` +- Created custom hooks for API calls: + - `useSiteHeader()` - Fetches site header navigation data + - `useTaxonomyChildren(taxonomyId)` - Fetches child items for a taxonomy + - `useArticle(slug)` - Fetches article content by slug + - `useArticleTaxonomyPath(slug)` - Fetches taxonomy path for an article + +### 3. React Query Provider +- **File**: `src/main.tsx` +- Added `QueryClientProvider` to wrap the app +- Configured with: + - 5-minute stale time + - Disabled refetch on window focus + +### 4. Header Component Updates +- **File**: `src/components/Header.tsx` +- Replaced hardcoded menu items with dynamic data from `getSiteHeader` API +- Menu structure mapping: + - API `label` → Menu button label (e.g., "Documentation", "Training") + - API `key` → Internal identifier for menu state + - API `sections[].headline` → Dropdown section headers (e.g., "DOCUMENTATION") + - API `sections[].taxonomies[].label` → Dropdown menu items + - API `sections[].taxonomies[].taxonomyId` → Click handler for navigation +- Added `onTaxonomyClick` prop to handle taxonomy navigation + +### 5. Sidebar Component Updates +- **File**: `src/components/Sidebar.tsx` +- Replaced hardcoded navigation with dynamic taxonomy child items +- Fetches data from `/v1/taxonomies/{id}/child-items` endpoint +- Recursive rendering of nested menu items +- Mapping: + - API `items[].title` → Menu item label + - API `items[].href` → Article slug for navigation + - API `items[].children` → Nested submenu items +- Added `onArticleClick` prop to handle article selection + +### 6. MainContent Component Updates +- **File**: `src/components/MainContent.tsx` +- Replaced hardcoded article content with dynamic data from API +- Fetches data from `/v1/articles/{slug}` endpoint +- Displays: + - Article title + - Last updated date + - Article content (rendered as HTML) +- Added loading and error states +- Shows placeholder message when no article is selected + +### 7. App State Management +- **File**: `src/App.tsx` +- Added state for: + - `currentTaxonomyId` - Tracks selected taxonomy + - `currentArticleSlug` - Tracks selected article +- Added handlers: + - `handleTaxonomyClick` - Navigates to documentation page and loads taxonomy + - `handleArticleClick` - Loads article content +- Props flow: App → DocumentationPage → Sidebar/MainContent + +### 8. DocumentationPage Updates +- **File**: `src/components/DocumentationPage.tsx` +- Updated to accept and pass through: + - `taxonomyId` → Sidebar + - `articleSlug` → MainContent + - `onArticleClick` → Sidebar + +## Data Flow + +``` +1. User clicks menu item in Header + ↓ +2. Header calls onTaxonomyClick(taxonomyId) + ↓ +3. App updates currentTaxonomyId state + ↓ +4. Sidebar fetches /v1/taxonomies/{id}/child-items + ↓ +5. User clicks article in Sidebar + ↓ +6. Sidebar calls onArticleClick(slug) + ↓ +7. App updates currentArticleSlug state + ↓ +8. MainContent fetches /v1/articles/{slug} + ↓ +9. Article content is displayed +``` + +## API Endpoints Used + +1. **GET /v1/contents/site-header** + - Returns array of site header configurations + - Used by: Header component + +2. **GET /v1/taxonomies/{id}/child-items** + - Returns hierarchical menu structure for a taxonomy + - Used by: Sidebar component + +3. **GET /v1/articles/{slug}** + - Returns article content and metadata + - Used by: MainContent component + +4. **GET /v1/articles/{slug}/taxonomy-path** (prepared but not yet used) + - Returns taxonomy path for breadcrumb navigation + - Can be used for enhanced breadcrumb display + +## Dependencies Added + +- `@tanstack/react-query@^5.90.8` - Already in package.json +- `@microsoft/kiota-bundle@^1.0.0-preview.99` - Already in package.json +- `@types/react-dom` - Added for TypeScript support + +## Testing + +The application is now running at `http://localhost:3420` and ready for testing with your API server. + +## Next Steps (Optional Enhancements) + +1. **Authentication**: Replace `AnonymousAuthenticationProvider` with proper auth +2. **Error Handling**: Add more detailed error messages and retry logic +3. **Caching**: Fine-tune React Query cache settings based on data update frequency +4. **Breadcrumbs**: Use `useArticleTaxonomyPath` to show full navigation path +5. **Search**: Implement search functionality using the search input in Sidebar +6. **Loading Skeletons**: Replace simple loading text with skeleton screens +7. **Optimistic Updates**: Add optimistic UI updates for better UX +8. **Offline Support**: Add service worker for offline article reading diff --git a/index.html b/index.html index 42d0ff2..69ae340 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,9 @@ + + + Untitled diff --git a/package-lock.json b/package-lock.json index d0e5de2..678523e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,7 @@ "@radix-ui/react-toggle": "^1.1.10", "@radix-ui/react-toggle-group": "^1.1.11", "@radix-ui/react-tooltip": "^1.2.8", + "@tailwindcss/vite": "^4.1.17", "@tanstack/react-query": "^5.90.8", "class-variance-authority": "^0.7.1", "clsx": "*", @@ -51,11 +52,13 @@ "recharts": "^3.4.1", "sonner": "^2.0.7", "tailwind-merge": "*", + "tailwindcss": "^4.1.17", "vaul": "^1.1.2" }, "devDependencies": { "@types/node": "^24.10.1", "@types/react": "^19.2.4", + "@types/react-dom": "^19.2.3", "@vitejs/plugin-react-swc": "^4.2.2", "vite": "7.2.2" } @@ -73,7 +76,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -90,7 +92,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -107,7 +108,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -124,7 +124,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -141,7 +140,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -158,7 +156,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -175,7 +172,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -192,7 +188,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -209,7 +204,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -226,7 +220,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -243,7 +236,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -260,7 +252,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -277,7 +268,6 @@ "cpu": [ "mips64el" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -294,7 +284,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -311,7 +300,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -328,7 +316,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -345,7 +332,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -362,7 +348,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -379,7 +364,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -396,7 +380,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -413,7 +396,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -430,7 +412,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -447,7 +428,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -464,7 +444,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -481,7 +460,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -498,7 +476,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -546,6 +523,51 @@ "integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==", "license": "MIT" }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, "node_modules/@microsoft/kiota-abstractions": { "version": "1.0.0-preview.99", "resolved": "https://registry.npmjs.org/@microsoft/kiota-abstractions/-/kiota-abstractions-1.0.0-preview.99.tgz", @@ -2281,7 +2303,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2295,7 +2316,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2309,7 +2329,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2323,7 +2342,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2337,7 +2355,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2351,7 +2368,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2365,7 +2381,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2379,7 +2394,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2393,7 +2407,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2407,7 +2420,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2421,7 +2433,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2435,7 +2446,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2449,7 +2459,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2463,7 +2472,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2477,7 +2485,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2491,7 +2498,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2505,7 +2511,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2519,7 +2524,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2533,7 +2537,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2547,7 +2550,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2561,7 +2563,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2575,7 +2576,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2826,6 +2826,263 @@ "@swc/counter": "^0.1.3" } }, + "node_modules/@tailwindcss/node": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.17.tgz", + "integrity": "sha512-csIkHIgLb3JisEFQ0vxr2Y57GUNYh447C8xzwj89U/8fdW8LhProdxvnVH6U8M2Y73QKiTIH+LWbK3V2BBZsAg==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.4", + "enhanced-resolve": "^5.18.3", + "jiti": "^2.6.1", + "lightningcss": "1.30.2", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.1.17" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.17.tgz", + "integrity": "sha512-F0F7d01fmkQhsTjXezGBLdrl1KresJTcI3DB8EkScCldyKp3Msz4hub4uyYaVnk88BAS1g5DQjjF6F5qczheLA==", + "license": "MIT", + "engines": { + "node": ">= 10" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.1.17", + "@tailwindcss/oxide-darwin-arm64": "4.1.17", + "@tailwindcss/oxide-darwin-x64": "4.1.17", + "@tailwindcss/oxide-freebsd-x64": "4.1.17", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.17", + "@tailwindcss/oxide-linux-arm64-gnu": "4.1.17", + "@tailwindcss/oxide-linux-arm64-musl": "4.1.17", + "@tailwindcss/oxide-linux-x64-gnu": "4.1.17", + "@tailwindcss/oxide-linux-x64-musl": "4.1.17", + "@tailwindcss/oxide-wasm32-wasi": "4.1.17", + "@tailwindcss/oxide-win32-arm64-msvc": "4.1.17", + "@tailwindcss/oxide-win32-x64-msvc": "4.1.17" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.17.tgz", + "integrity": "sha512-BMqpkJHgOZ5z78qqiGE6ZIRExyaHyuxjgrJ6eBO5+hfrfGkuya0lYfw8fRHG77gdTjWkNWEEm+qeG2cDMxArLQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.17.tgz", + "integrity": "sha512-EquyumkQweUBNk1zGEU/wfZo2qkp/nQKRZM8bUYO0J+Lums5+wl2CcG1f9BgAjn/u9pJzdYddHWBiFXJTcxmOg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.17.tgz", + "integrity": "sha512-gdhEPLzke2Pog8s12oADwYu0IAw04Y2tlmgVzIN0+046ytcgx8uZmCzEg4VcQh+AHKiS7xaL8kGo/QTiNEGRog==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.17.tgz", + "integrity": "sha512-hxGS81KskMxML9DXsaXT1H0DyA+ZBIbyG/sSAjWNe2EDl7TkPOBI42GBV3u38itzGUOmFfCzk1iAjDXds8Oh0g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.17.tgz", + "integrity": "sha512-k7jWk5E3ldAdw0cNglhjSgv501u7yrMf8oeZ0cElhxU6Y2o7f8yqelOp3fhf7evjIS6ujTI3U8pKUXV2I4iXHQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.17.tgz", + "integrity": "sha512-HVDOm/mxK6+TbARwdW17WrgDYEGzmoYayrCgmLEw7FxTPLcp/glBisuyWkFz/jb7ZfiAXAXUACfyItn+nTgsdQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.17.tgz", + "integrity": "sha512-HvZLfGr42i5anKtIeQzxdkw/wPqIbpeZqe7vd3V9vI3RQxe3xU1fLjss0TjyhxWcBaipk7NYwSrwTwK1hJARMg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.17.tgz", + "integrity": "sha512-M3XZuORCGB7VPOEDH+nzpJ21XPvK5PyjlkSFkFziNHGLc5d6g3di2McAAblmaSUNl8IOmzYwLx9NsE7bplNkwQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.17.tgz", + "integrity": "sha512-k7f+pf9eXLEey4pBlw+8dgfJHY4PZ5qOUFDyNf7SI6lHjQ9Zt7+NcscjpwdCEbYi6FI5c2KDTDWyf2iHcCSyyQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.17.tgz", + "integrity": "sha512-cEytGqSSoy7zK4JRWiTCx43FsKP/zGr0CsuMawhH67ONlH+T79VteQeJQRO/X7L0juEUA8ZyuYikcRBf0vsxhg==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.6.0", + "@emnapi/runtime": "^1.6.0", + "@emnapi/wasi-threads": "^1.1.0", + "@napi-rs/wasm-runtime": "^1.0.7", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.17.tgz", + "integrity": "sha512-JU5AHr7gKbZlOGvMdb4722/0aYbU+tN6lv1kONx0JK2cGsh7g148zVWLM0IKR3NeKLv+L90chBVYcJ8uJWbC9A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.17.tgz", + "integrity": "sha512-SKWM4waLuqx0IH+FMDUw6R66Hu4OuTALFgnleKbqhgGU30DY20NORZMZUKgLRjQXNN2TLzKvh48QXTig4h4bGw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.17.tgz", + "integrity": "sha512-4+9w8ZHOiGnpcGI6z1TVVfWaX/koK7fKeSYF3qlYg2xpBtbteP2ddBxiarL+HVgfSJGeK5RIxRQmKm4rTJJAwA==", + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.1.17", + "@tailwindcss/oxide": "4.1.17", + "tailwindcss": "4.1.17" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7" + } + }, "node_modules/@tanstack/query-core": { "version": "5.90.8", "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.8.tgz", @@ -2919,14 +3176,13 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, "license": "MIT" }, "node_modules/@types/node": { "version": "24.10.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "undici-types": "~7.16.0" @@ -2942,6 +3198,16 @@ "csstype": "^3.0.2" } }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, "node_modules/@types/use-sync-external-store": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", @@ -3164,6 +3430,15 @@ "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==", "license": "MIT" }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, "node_modules/detect-node-es": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", @@ -3198,6 +3473,19 @@ "embla-carousel": "8.6.0" } }, + "node_modules/enhanced-resolve": { + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz", + "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/es-toolkit": { "version": "1.41.0", "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.41.0.tgz", @@ -3212,7 +3500,6 @@ "version": "0.25.12", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", - "dev": true, "hasInstallScript": true, "license": "MIT", "bin": { @@ -3260,7 +3547,6 @@ "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, "license": "MIT", "engines": { "node": ">=12.0.0" @@ -3278,7 +3564,6 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -3298,6 +3583,12 @@ "node": ">=6" } }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, "node_modules/immer": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/immer/-/immer-10.2.0.tgz", @@ -3327,6 +3618,264 @@ "node": ">=12" } }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/lightningcss": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.2.tgz", + "integrity": "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==", + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.30.2", + "lightningcss-darwin-arm64": "1.30.2", + "lightningcss-darwin-x64": "1.30.2", + "lightningcss-freebsd-x64": "1.30.2", + "lightningcss-linux-arm-gnueabihf": "1.30.2", + "lightningcss-linux-arm64-gnu": "1.30.2", + "lightningcss-linux-arm64-musl": "1.30.2", + "lightningcss-linux-x64-gnu": "1.30.2", + "lightningcss-linux-x64-musl": "1.30.2", + "lightningcss-win32-arm64-msvc": "1.30.2", + "lightningcss-win32-x64-msvc": "1.30.2" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.30.2.tgz", + "integrity": "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.2.tgz", + "integrity": "sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.2.tgz", + "integrity": "sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.2.tgz", + "integrity": "sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.2.tgz", + "integrity": "sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.2.tgz", + "integrity": "sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.2.tgz", + "integrity": "sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.2.tgz", + "integrity": "sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.2.tgz", + "integrity": "sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.2.tgz", + "integrity": "sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.2.tgz", + "integrity": "sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, "node_modules/lucide-react": { "version": "0.553.0", "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.553.0.tgz", @@ -3336,11 +3885,19 @@ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, "node_modules/nanoid": { "version": "3.3.11", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "dev": true, "funding": [ { "type": "github", @@ -3369,14 +3926,12 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -3389,7 +3944,6 @@ "version": "8.5.6", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", - "dev": true, "funding": [ { "type": "opencollective", @@ -3636,7 +4190,6 @@ "version": "4.53.2", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.53.2.tgz", "integrity": "sha512-MHngMYwGJVi6Fmnk6ISmnk7JAHRNF0UkuucA0CUW3N3a4KnONPEZz+vUanQP/ZC/iY1Qkf3bwPWzyY84wEks1g==", - "dev": true, "license": "MIT", "dependencies": { "@types/estree": "1.0.8" @@ -3694,7 +4247,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -3710,6 +4262,25 @@ "url": "https://github.com/sponsors/dcastil" } }, + "node_modules/tailwindcss": { + "version": "4.1.17", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.17.tgz", + "integrity": "sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q==", + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", + "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "node_modules/tiny-invariant": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", @@ -3726,7 +4297,6 @@ "version": "0.2.15", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", - "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", @@ -3749,7 +4319,7 @@ "version": "7.16.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", - "dev": true, + "devOptional": true, "license": "MIT" }, "node_modules/use-callback-ref": { @@ -3843,7 +4413,6 @@ "version": "7.2.2", "resolved": "https://registry.npmjs.org/vite/-/vite-7.2.2.tgz", "integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==", - "dev": true, "license": "MIT", "dependencies": { "esbuild": "^0.25.0", diff --git a/package.json b/package.json index b412335..fe1fea3 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "@radix-ui/react-toggle": "^1.1.10", "@radix-ui/react-toggle-group": "^1.1.11", "@radix-ui/react-tooltip": "^1.2.8", + "@tailwindcss/vite": "^4.1.17", "@tanstack/react-query": "^5.90.8", "class-variance-authority": "^0.7.1", "clsx": "*", @@ -46,11 +47,13 @@ "recharts": "^3.4.1", "sonner": "^2.0.7", "tailwind-merge": "*", + "tailwindcss": "^4.1.17", "vaul": "^1.1.2" }, "devDependencies": { "@types/node": "^24.10.1", "@types/react": "^19.2.4", + "@types/react-dom": "^19.2.3", "@vitejs/plugin-react-swc": "^4.2.2", "vite": "7.2.2" }, diff --git a/src/App.tsx b/src/App.tsx index 73a01d7..589dcf2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,8 @@ export default function App() { const [currentPage, setCurrentPage] = useState<'home' | 'documentation'>('home'); const [isSidebarOpen, setIsSidebarOpen] = useState(false); const [theme, setTheme] = useState<'light' | 'dark'>('light'); + const [currentTaxonomyId, setCurrentTaxonomyId] = useState(null); + const [currentArticleSlug, setCurrentArticleSlug] = useState(null); const toggleSidebar = () => { setIsSidebarOpen(!isSidebarOpen); @@ -19,6 +21,8 @@ export default function App() { const navigateToHome = () => { setCurrentPage('home'); setIsSidebarOpen(false); + setCurrentTaxonomyId(null); + setCurrentArticleSlug(null); }; const navigateToDocumentation = () => { @@ -26,6 +30,17 @@ export default function App() { setIsSidebarOpen(false); }; + const handleTaxonomyClick = (taxonomyId: string) => { + setCurrentPage('documentation'); + setCurrentTaxonomyId(taxonomyId); + setCurrentArticleSlug(null); + setIsSidebarOpen(false); + }; + + const handleArticleClick = (slug: string) => { + setCurrentArticleSlug(slug); + }; + return (
{currentPage === 'home' ? ( @@ -43,6 +59,9 @@ export default function App() { isSidebarOpen={isSidebarOpen} toggleSidebar={toggleSidebar} theme={theme} + taxonomyId={currentTaxonomyId} + articleSlug={currentArticleSlug} + onArticleClick={handleArticleClick} /> )} diff --git a/src/components/DocumentationPage.tsx b/src/components/DocumentationPage.tsx index 69fde12..6431b66 100644 --- a/src/components/DocumentationPage.tsx +++ b/src/components/DocumentationPage.tsx @@ -6,9 +6,19 @@ interface DocumentationPageProps { isSidebarOpen: boolean; toggleSidebar: () => void; theme: 'light' | 'dark'; + taxonomyId: string | null; + articleSlug: string | null; + onArticleClick: (slug: string) => void; } -export function DocumentationPage({ isSidebarOpen, toggleSidebar, theme }: DocumentationPageProps) { +export function DocumentationPage({ + isSidebarOpen, + toggleSidebar, + theme, + taxonomyId, + articleSlug, + onArticleClick +}: DocumentationPageProps) { return (
@@ -16,8 +26,13 @@ export function DocumentationPage({ isSidebarOpen, toggleSidebar, theme }: Docum isOpen={isSidebarOpen} toggleSidebar={toggleSidebar} theme={theme} + taxonomyId={taxonomyId} + onArticleClick={onArticleClick} + /> + -
diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 441d251..8d918f7 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,5 +1,6 @@ import { Search, ChevronDown, Menu, Sun, Moon } from 'lucide-react'; import { useState } from 'react'; +import { useSiteHeader } from '../hooks/useApi'; interface HeaderProps { toggleSidebar: () => void; @@ -7,10 +8,12 @@ interface HeaderProps { toggleTheme: () => void; navigateToHome: () => void; navigateToDocumentation: () => void; + onTaxonomyClick: (taxonomyId: string) => void; } -export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navigateToDocumentation }: HeaderProps) { +export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navigateToDocumentation, onTaxonomyClick }: HeaderProps) { const [openMenu, setOpenMenu] = useState(null); + const { data: siteHeaders, isLoading } = useSiteHeader(); const toggleMenu = (menu: string) => { setOpenMenu(openMenu === menu ? null : menu); @@ -31,8 +34,8 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
@@ -107,188 +90,51 @@ export function Header({ toggleSidebar, theme, toggleTheme, navigateToHome, navi
{/* Dropdown Menus */} - {openMenu === 'documentation' && ( + {siteHeaders?.map((header) => ( + openMenu === header.key && ( <>
setOpenMenu(null)} /> -
-
-

- DOCUMENTATION -

- -
-
- -
-
-

- FREE TO JOIN, REQUEST TO ATTEND -

-

- Microsoft AI Tour -

-

- Take your business to the AI frontier. -

-
+ {header.sections?.map((section, idx) => ( +
+

+ {section.headline} +

+ +
+ ))}
- )} - - {openMenu === 'training' && ( - <> -
setOpenMenu(null)} - /> - - - )} - - {openMenu === 'qa' && ( - <> -
setOpenMenu(null)} - /> -
- -
- - )} - - {openMenu === 'topics' && ( - <> -
setOpenMenu(null)} - /> - - - )} + ) + ))} ); } \ No newline at end of file diff --git a/src/components/MainContent.tsx b/src/components/MainContent.tsx index 95f28d8..8660b9c 100644 --- a/src/components/MainContent.tsx +++ b/src/components/MainContent.tsx @@ -1,10 +1,50 @@ import { ChevronRight, MessageSquare, Eye, MoreHorizontal, Download } from 'lucide-react'; +import { useArticle } from '../hooks/useApi'; interface MainContentProps { theme: 'light' | 'dark'; + articleSlug: string | null; } -export function MainContent({ theme }: MainContentProps) { +export function MainContent({ theme, articleSlug }: MainContentProps) { + const { data: article, isLoading, error } = useArticle(articleSlug); + + if (!articleSlug) { + return ( +
+
+

Select an article from the sidebar to view its content

+
+
+ ); + } + + if (isLoading) { + return ( +
+
+

Loading article...

+
+
+ ); + } + + if (error || !article) { + return ( +
+
+

Error loading article

+
+
+ ); + } + return (
{/* Breadcrumb */} @@ -13,7 +53,7 @@ export function MainContent({ theme }: MainContentProps) { }`}> Learn - OpenAPI + {article.title}
{/* Action buttons */} @@ -40,213 +80,24 @@ export function MainContent({ theme }: MainContentProps) {
{/* Main heading */} -

Kiota API models

+

{article.title}

- {/* Introduction */} -

- The primary goal of Kiota's generated models is to enable a developer to easily craft request payloads and get results as high levels objects. These models eliminate the need for developers to define their own types and/or implement serialization/deserialization. -

- - {/* Section */} -
-

- Components versus inline models -

-

- All models declared as components are generated under a models subnamespace. If models/components are namespaced components/models, components/ns1/models, the namespaces are included as subnamespaces of the models namespace. -

-

- All models declared inline with an operation are generated under the namespace of the operation, next to the request builder that uses it. As a reminder, all request builders are put in namespaces according to the path segment they refer to. -

-
- - {/* Section */} -
-

- Inheritance -

-

- Models in an allOf schema declaration inherit from each other. The uppermost type in the collection is the greatest ancestor of the chain. -

-
- - {/* Section */} -
-

- allOf interpretation rules -

-

- The following table describes how kiota will project any schema with allOf entries when processing an API description: -

- - {/* Table */} -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Number of peer properties - Peer props - - Number of inline schemas - Inline - - Number referenced schemas - Referenced - - Total number of schemas - Total - Result
0000 - Ignored/invalid - Invalid -
0011Unwrapped
002+2+ - Intersection type - Intersection -
1+any0any - Inline object - Inline obj -
-
+ Last updated: {new Date(article.updatedAt).toLocaleDateString()}
-
+ )} + + {/* Article content */} +
{/* Footer */}
); -} \ No newline at end of file +} diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 31863b0..b3a62f0 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,18 +1,19 @@ import { Search, ChevronRight, ChevronDown, X } from 'lucide-react'; import { useState } from 'react'; +import { useTaxonomyChildren } from '../hooks/useApi'; +import type { GetChildItemDto } from '../kiota/models'; interface SidebarProps { isOpen: boolean; toggleSidebar: () => void; theme: 'light' | 'dark'; + taxonomyId: string | null; + onArticleClick: (slug: string) => void; } -export function Sidebar({ isOpen, toggleSidebar, theme }: SidebarProps) { - const [expandedSections, setExpandedSections] = useState>({ - 'quick-start': true, - 'concepts': true, - 'how-to': false - }); +export function Sidebar({ isOpen, toggleSidebar, theme, taxonomyId, onArticleClick }: SidebarProps) { + const [expandedSections, setExpandedSections] = useState>({}); + const { data: taxonomyData, isLoading } = useTaxonomyChildren(taxonomyId); const toggleSection = (section: string) => { setExpandedSections(prev => ({ @@ -21,6 +22,45 @@ export function Sidebar({ isOpen, toggleSidebar, theme }: SidebarProps) { })); }; + const renderMenuItem = (item: GetChildItemDto, depth: number = 0) => { + const hasChildren = item.children && item.children.length > 0; + const isExpanded = expandedSections[item.title || '']; + + return ( +
+ + {hasChildren && isExpanded && ( +
+ {item.children?.map((child) => renderMenuItem(child, depth + 1))} +
+ )} +
+ ); + }; + return (
diff --git a/src/hooks/useApi.ts b/src/hooks/useApi.ts new file mode 100644 index 0000000..6387f86 --- /dev/null +++ b/src/hooks/useApi.ts @@ -0,0 +1,62 @@ +import { useQuery } from '@tanstack/react-query'; +import { apiClient } from '../lib/apiClient'; +import type { GetSiteHeaderResponseDto, GetChildResponseDto, GetArticleResponseDto } from '../kiota/models'; + +/** + * Hook to fetch site header data + */ +export function useSiteHeader() { + return useQuery({ + queryKey: ['siteHeader'], + queryFn: async () => { + const response = await apiClient.v1.contents.siteHeader.get(); + return response as GetSiteHeaderResponseDto[]; + }, + }); +} + +/** + * Hook to fetch taxonomy child items + */ +export function useTaxonomyChildren(taxonomyId: string | null) { + return useQuery({ + queryKey: ['taxonomyChildren', taxonomyId], + queryFn: async () => { + if (!taxonomyId) return null; + const response = await apiClient.v1.taxonomies.byId(taxonomyId).childItems.get(); + console.log(response); + return response as unknown as GetChildResponseDto; + }, + enabled: !!taxonomyId, + }); +} + +/** + * Hook to fetch article by slug + */ +export function useArticle(slug: string | null) { + return useQuery({ + queryKey: ['article', slug], + queryFn: async () => { + if (!slug) return null; + const response = await apiClient.v1.articles.bySlug(slug).get(); + return response as unknown as GetArticleResponseDto; + }, + enabled: !!slug, + }); +} + +/** + * Hook to fetch article taxonomy path + */ +export function useArticleTaxonomyPath(slug: string | null) { + return useQuery({ + queryKey: ['articleTaxonomyPath', slug], + queryFn: async () => { + if (!slug) return null; + const response = await apiClient.v1.articles.bySlug(slug).taxonomyPath.get(); + return response; + }, + enabled: !!slug, + }); +} diff --git a/src/index.css b/src/index.css index d2e564e..a1fe879 100644 --- a/src/index.css +++ b/src/index.css @@ -1,5 +1,11 @@ +@import "tailwindcss"; +@layer theme { + :root, :host { + font-family: "Asta Sans", sans-serif; + } +} /*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */ -@layer properties { +/* @layer properties { @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) { *, :before, :after, ::backdrop { --tw-translate-x: 0; @@ -40,8 +46,8 @@ @layer theme { :root, :host { - --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + --font-sans: "Asta Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + --font-mono: "Asta Sans", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --color-orange-500: oklch(.705 .213 47.604); --color-green-500: oklch(.723 .219 149.579); --color-blue-400: oklch(.707 .165 254.624); @@ -1642,4 +1648,4 @@ html { @property --tw-ease { syntax: "*"; inherits: false -} +} */ diff --git a/src/kiota/.kiota.log b/src/kiota/.kiota.log new file mode 100644 index 0000000..51d78c1 --- /dev/null +++ b/src/kiota/.kiota.log @@ -0,0 +1,8 @@ +Warning: KiotaBuilder Could not create error type for 4XX in AppController_isHealthy +Warning: KiotaBuilder Could not create error type for 5XX in AppController_isHealthy +Warning: KiotaBuilder Could not create error type for 4XX in AccountController_getAccountInfo +Warning: KiotaBuilder Could not create error type for 5XX in AccountController_getAccountInfo +Warning: KiotaBuilder Could not create error type for 4XX in ImageController_uploadImage +Warning: KiotaBuilder Could not create error type for 5XX in ImageController_uploadImage +Warning: KiotaBuilder Could not create error type for 4XX in AccountController_signIn +Warning: KiotaBuilder Could not create error type for 5XX in AccountController_signIn diff --git a/src/kiota/apiClient.ts b/src/kiota/apiClient.ts new file mode 100644 index 0000000..58a437e --- /dev/null +++ b/src/kiota/apiClient.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { type V1RequestBuilder, V1RequestBuilderNavigationMetadata, V1RequestBuilderRequestsMetadata } from './v1/index.js'; +// @ts-ignore +import { apiClientProxifier, ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions'; +// @ts-ignore +import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form'; +// @ts-ignore +import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json'; +// @ts-ignore +import { MultipartSerializationWriterFactory } from '@microsoft/kiota-serialization-multipart'; +// @ts-ignore +import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft/kiota-serialization-text'; + +/** + * The main entry point of the SDK, exposes the configuration and the fluent API. + */ +export interface ApiClient extends BaseRequestBuilder { + /** + * The v1 property + */ + get v1(): V1RequestBuilder; +} +/** + * Instantiates a new {@link ApiClient} and sets the default values. + * @param requestAdapter The request adapter to use to execute the requests. + */ +// @ts-ignore +export function createApiClient(requestAdapter: RequestAdapter) { + if (requestAdapter === undefined) { + throw new Error("requestAdapter cannot be undefined"); + } + const serializationWriterFactory = requestAdapter.getSerializationWriterFactory() as SerializationWriterFactoryRegistry; + const parseNodeFactoryRegistry = requestAdapter.getParseNodeFactory() as ParseNodeFactoryRegistry; + const backingStoreFactory = requestAdapter.getBackingStoreFactory(); + + if (parseNodeFactoryRegistry.registerDefaultDeserializer) { + parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory); + parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory); + parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory); + } + + if (serializationWriterFactory.registerDefaultSerializer) { + serializationWriterFactory.registerDefaultSerializer(JsonSerializationWriterFactory); + serializationWriterFactory.registerDefaultSerializer(TextSerializationWriterFactory); + serializationWriterFactory.registerDefaultSerializer(FormSerializationWriterFactory); + serializationWriterFactory.registerDefaultSerializer(MultipartSerializationWriterFactory); + } + + if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === null || requestAdapter.baseUrl === "") { + requestAdapter.baseUrl = "https://moeum.dahyeon.us"; + } + const pathParameters: Record = { + "baseurl": requestAdapter.baseUrl, + }; + return apiClientProxifier(requestAdapter, pathParameters, ApiClientNavigationMetadata, undefined); +} +/** + * Uri template for the request builder. + */ +export const ApiClientUriTemplate = "{+baseurl}"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const ApiClientNavigationMetadata: Record, NavigationMetadata> = { + v1: { + requestsMetadata: V1RequestBuilderRequestsMetadata, + navigationMetadata: V1RequestBuilderNavigationMetadata, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/kiota-lock.json b/src/kiota/kiota-lock.json new file mode 100644 index 0000000..7cfd9af --- /dev/null +++ b/src/kiota/kiota-lock.json @@ -0,0 +1,34 @@ +{ + "descriptionHash": "611FC3ED07B68D7974B5903237F68D794D044CCB3F89C7E348F801F31C53FA36B2A3BB5A2DC3C3B3B11C5D1D35E193D454673552A3181BCD4C104ECF35FD1001", + "descriptionLocation": "https://moeum.dahyeon.us/v1/api-json", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.28.0", + "clientClassName": "ApiClient", + "typeAccessModifier": "Public", + "clientNamespaceName": "ApiSdk", + "language": "TypeScript", + "usesBackingStore": false, + "excludeBackwardCompatible": false, + "includeAdditionalData": true, + "disableSSLValidation": false, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain;q=0.9", + "application/x-www-form-urlencoded;q=0.2", + "multipart/form-data;q=0.1" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [] +} \ No newline at end of file diff --git a/src/kiota/models/index.ts b/src/kiota/models/index.ts new file mode 100644 index 0000000..39811f0 --- /dev/null +++ b/src/kiota/models/index.ts @@ -0,0 +1,588 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export interface ArticleMetadataDto extends AdditionalDataHolder, Parsable { + /** + * The dataType property + */ + dataType?: ArticleMetadataDto_dataType | null; + /** + * The isReserved property + */ + isReserved?: boolean | null; + /** + * The key property + */ + key?: string | null; + /** + * The value property + */ + value?: string[] | string | null; +} +export type ArticleMetadataDto_dataType = (typeof ArticleMetadataDto_dataTypeObject)[keyof typeof ArticleMetadataDto_dataTypeObject]; +export type ArticleMetadataDto_value = string[] | string; +export interface ContentSectionDto extends AdditionalDataHolder, Parsable { + /** + * The headline property + */ + headline?: string | null; + /** + * The taxonomies property + */ + taxonomies?: ContentSectionEmbeddedTaxonomyDto[] | null; +} +export interface ContentSectionEmbeddedTaxonomyDto extends AdditionalDataHolder, Parsable { + /** + * The label property + */ + label?: string | null; + /** + * The taxonomyId property + */ + taxonomyId?: string | null; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {string[] | string} + */ +// @ts-ignore +export function createArticleMetadataDto_valueFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArticleMetadataDto_value; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {ArticleMetadataDto} + */ +// @ts-ignore +export function createArticleMetadataDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoArticleMetadataDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {ContentSectionDto} + */ +// @ts-ignore +export function createContentSectionDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoContentSectionDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {ContentSectionEmbeddedTaxonomyDto} + */ +// @ts-ignore +export function createContentSectionEmbeddedTaxonomyDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoContentSectionEmbeddedTaxonomyDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {GetArticleResponseDto} + */ +// @ts-ignore +export function createGetArticleResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoGetArticleResponseDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {GetChildItemDto} + */ +// @ts-ignore +export function createGetChildItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoGetChildItemDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {GetChildItemMetadataDto} + */ +// @ts-ignore +export function createGetChildItemMetadataDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoGetChildItemMetadataDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {GetChildItemResponseDto} + */ +// @ts-ignore +export function createGetChildItemResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoGetChildItemResponseDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {GetSiteHeaderResponseDto} + */ +// @ts-ignore +export function createGetSiteHeaderResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoGetSiteHeaderResponseDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {GetTaxonomyPathResponseDto} + */ +// @ts-ignore +export function createGetTaxonomyPathResponseDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoGetTaxonomyPathResponseDto; +} +/** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @returns {TaxonomyPathItemDto} + */ +// @ts-ignore +export function createTaxonomyPathItemDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record void>) { + return deserializeIntoTaxonomyPathItemDto; +} +/** + * The deserialization information for the current model + * @param ArticleMetadataDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoArticleMetadataDto(articleMetadataDto: Partial | undefined = {}) : Record void> { + return { + "dataType": n => { articleMetadataDto.dataType = n.getEnumValue(ArticleMetadataDto_dataTypeObject) ?? ArticleMetadataDto_dataTypeObject.String; }, + "isReserved": n => { articleMetadataDto.isReserved = n.getBooleanValue(); }, + "key": n => { articleMetadataDto.key = n.getStringValue(); }, + "value": n => { articleMetadataDto.value = n.getCollectionOfPrimitiveValues() ?? n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @param ArticleMetadataDto_value The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoArticleMetadataDto_value(articleMetadataDto_value: Partial | undefined = {}) : Record void> { + return { + "" : n => { articleMetadataDto_value = n.getCollectionOfPrimitiveValues() ?? n.getStringValue()}, + } +} +/** + * The deserialization information for the current model + * @param ContentSectionDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoContentSectionDto(contentSectionDto: Partial | undefined = {}) : Record void> { + return { + "headline": n => { contentSectionDto.headline = n.getStringValue(); }, + "taxonomies": n => { contentSectionDto.taxonomies = n.getCollectionOfObjectValues(createContentSectionEmbeddedTaxonomyDtoFromDiscriminatorValue); }, + } +} +/** + * The deserialization information for the current model + * @param ContentSectionEmbeddedTaxonomyDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoContentSectionEmbeddedTaxonomyDto(contentSectionEmbeddedTaxonomyDto: Partial | undefined = {}) : Record void> { + return { + "label": n => { contentSectionEmbeddedTaxonomyDto.label = n.getStringValue(); }, + "taxonomyId": n => { contentSectionEmbeddedTaxonomyDto.taxonomyId = n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @param GetArticleResponseDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoGetArticleResponseDto(getArticleResponseDto: Partial | undefined = {}) : Record void> { + return { + "content": n => { getArticleResponseDto.content = n.getStringValue(); }, + "createdAt": n => { getArticleResponseDto.createdAt = n.getDateValue(); }, + "_id": n => { getArticleResponseDto.id = n.getStringValue(); }, + "metadatas": n => { getArticleResponseDto.metadatas = n.getCollectionOfObjectValues(createArticleMetadataDtoFromDiscriminatorValue); }, + "slug": n => { getArticleResponseDto.slug = n.getStringValue(); }, + "status": n => { getArticleResponseDto.status = n.getEnumValue(GetArticleResponseDto_statusObject); }, + "title": n => { getArticleResponseDto.title = n.getStringValue(); }, + "updatedAt": n => { getArticleResponseDto.updatedAt = n.getDateValue(); }, + } +} +/** + * The deserialization information for the current model + * @param GetChildItemDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoGetChildItemDto(getChildItemDto: Partial | undefined = {}) : Record void> { + return { + "articleId": n => { getChildItemDto.articleId = n.getStringValue(); }, + "children": n => { getChildItemDto.children = n.getCollectionOfObjectValues(createGetChildItemDtoFromDiscriminatorValue); }, + "order": n => { getChildItemDto.order = n.getNumberValue(); }, + "slug": n => { getChildItemDto.slug = n.getStringValue(); }, + "title": n => { getChildItemDto.title = n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @param GetChildItemMetadataDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoGetChildItemMetadataDto(getChildItemMetadataDto: Partial | undefined = {}) : Record void> { + return { + } +} +/** + * The deserialization information for the current model + * @param GetChildItemResponseDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoGetChildItemResponseDto(getChildItemResponseDto: Partial | undefined = {}) : Record void> { + return { + "items": n => { getChildItemResponseDto.items = n.getCollectionOfObjectValues(createGetChildItemDtoFromDiscriminatorValue); }, + "label": n => { getChildItemResponseDto.label = n.getStringValue(); }, + "metadatas": n => { getChildItemResponseDto.metadatas = n.getCollectionOfObjectValues(createGetChildItemMetadataDtoFromDiscriminatorValue); }, + } +} +/** + * The deserialization information for the current model + * @param GetSiteHeaderResponseDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoGetSiteHeaderResponseDto(getSiteHeaderResponseDto: Partial | undefined = {}) : Record void> { + return { + "key": n => { getSiteHeaderResponseDto.key = n.getStringValue(); }, + "label": n => { getSiteHeaderResponseDto.label = n.getStringValue(); }, + "sections": n => { getSiteHeaderResponseDto.sections = n.getCollectionOfObjectValues(createContentSectionDtoFromDiscriminatorValue); }, + } +} +/** + * The deserialization information for the current model + * @param GetTaxonomyPathResponseDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoGetTaxonomyPathResponseDto(getTaxonomyPathResponseDto: Partial | undefined = {}) : Record void> { + return { + "items": n => { getTaxonomyPathResponseDto.items = n.getCollectionOfObjectValues(createTaxonomyPathItemDtoFromDiscriminatorValue); }, + "taxonomyId": n => { getTaxonomyPathResponseDto.taxonomyId = n.getStringValue(); }, + "taxonomyLabel": n => { getTaxonomyPathResponseDto.taxonomyLabel = n.getStringValue(); }, + } +} +/** + * The deserialization information for the current model + * @param TaxonomyPathItemDto The instance to deserialize into. + * @returns {Record void>} + */ +// @ts-ignore +export function deserializeIntoTaxonomyPathItemDto(taxonomyPathItemDto: Partial | undefined = {}) : Record void> { + return { + "articleId": n => { taxonomyPathItemDto.articleId = n.getStringValue(); }, + "order": n => { taxonomyPathItemDto.order = n.getNumberValue(); }, + "slug": n => { taxonomyPathItemDto.slug = n.getStringValue(); }, + "title": n => { taxonomyPathItemDto.title = n.getStringValue(); }, + } +} +export interface GetArticleResponseDto extends AdditionalDataHolder, ApiError, Parsable { + /** + * The content property + */ + content?: string | null; + /** + * The createdAt property + */ + createdAt?: Date | null; + /** + * The _id property + */ + id?: string | null; + /** + * The metadatas property + */ + metadatas?: ArticleMetadataDto[] | null; + /** + * The slug property + */ + slug?: string | null; + /** + * The status property + */ + status?: GetArticleResponseDto_status | null; + /** + * The title property + */ + title?: string | null; + /** + * The updatedAt property + */ + updatedAt?: Date | null; +} +export type GetArticleResponseDto_status = (typeof GetArticleResponseDto_statusObject)[keyof typeof GetArticleResponseDto_statusObject]; +export interface GetChildItemDto extends AdditionalDataHolder, Parsable { + /** + * The articleId property + */ + articleId?: string | null; + /** + * 하위 목차 아이템 리스트 + */ + children?: GetChildItemDto[] | null; + /** + * The order property + */ + order?: number | null; + /** + * The slug property + */ + slug?: string | null; + /** + * The title property + */ + title?: string | null; +} +export interface GetChildItemMetadataDto extends AdditionalDataHolder, Parsable { +} +export interface GetChildItemResponseDto extends AdditionalDataHolder, ApiError, Parsable { + /** + * The items property + */ + items?: GetChildItemDto[] | null; + /** + * The label property + */ + label?: string | null; + /** + * The metadatas property + */ + metadatas?: GetChildItemMetadataDto[] | null; +} +export interface GetSiteHeaderResponseDto extends AdditionalDataHolder, Parsable { + /** + * The key property + */ + key?: string | null; + /** + * The label property + */ + label?: string | null; + /** + * The sections property + */ + sections?: ContentSectionDto[] | null; +} +export interface GetTaxonomyPathResponseDto extends AdditionalDataHolder, ApiError, Parsable { + /** + * The items property + */ + items?: TaxonomyPathItemDto[] | null; + /** + * The taxonomyId property + */ + taxonomyId?: string | null; + /** + * The taxonomyLabel property + */ + taxonomyLabel?: string | null; +} +/** + * Serializes information the current object + * @param ArticleMetadataDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeArticleMetadataDto(writer: SerializationWriter, articleMetadataDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!articleMetadataDto || isSerializingDerivedType) { return; } + writer.writeEnumValue("dataType", articleMetadataDto.dataType ?? ArticleMetadataDto_dataTypeObject.String); + writer.writeBooleanValue("isReserved", articleMetadataDto.isReserved); + writer.writeStringValue("key", articleMetadataDto.key); + if ( typeof articleMetadataDto.value === "string") { + writer.writeStringValue("value", articleMetadataDto.value as string); + } + else { + writer.writeCollectionOfObjectValues("value", articleMetadataDto.value as string[] | undefined | null, serializeArticleMetadataDto_value); + } + writer.writeAdditionalData(articleMetadataDto.additionalData); +} +/** + * Serializes information the current object + * @param ArticleMetadataDto_value The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeArticleMetadataDto_value(writer: SerializationWriter, articleMetadataDto_value: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (articleMetadataDto_value === undefined || articleMetadataDto_value === null) return; + if (Array.isArray(articleMetadataDto_value) && (articleMetadataDto_value).every(item => typeof item === 'string')) { + writer.writeCollectionOfPrimitiveValues(undefined, articleMetadataDto_value as string[]); + } + else if (typeof articleMetadataDto_value === "string" ) { + writer.writeStringValue(undefined, articleMetadataDto_value as string); + } +} +/** + * Serializes information the current object + * @param ContentSectionDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeContentSectionDto(writer: SerializationWriter, contentSectionDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!contentSectionDto || isSerializingDerivedType) { return; } + writer.writeStringValue("headline", contentSectionDto.headline); + writer.writeCollectionOfObjectValues("taxonomies", contentSectionDto.taxonomies, serializeContentSectionEmbeddedTaxonomyDto); + writer.writeAdditionalData(contentSectionDto.additionalData); +} +/** + * Serializes information the current object + * @param ContentSectionEmbeddedTaxonomyDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeContentSectionEmbeddedTaxonomyDto(writer: SerializationWriter, contentSectionEmbeddedTaxonomyDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!contentSectionEmbeddedTaxonomyDto || isSerializingDerivedType) { return; } + writer.writeStringValue("label", contentSectionEmbeddedTaxonomyDto.label); + writer.writeStringValue("taxonomyId", contentSectionEmbeddedTaxonomyDto.taxonomyId); + writer.writeAdditionalData(contentSectionEmbeddedTaxonomyDto.additionalData); +} +/** + * Serializes information the current object + * @param GetArticleResponseDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeGetArticleResponseDto(writer: SerializationWriter, getArticleResponseDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!getArticleResponseDto || isSerializingDerivedType) { return; } + writer.writeStringValue("content", getArticleResponseDto.content); + writer.writeDateValue("createdAt", getArticleResponseDto.createdAt); + writer.writeStringValue("_id", getArticleResponseDto.id); + writer.writeCollectionOfObjectValues("metadatas", getArticleResponseDto.metadatas, serializeArticleMetadataDto); + writer.writeStringValue("slug", getArticleResponseDto.slug); + writer.writeEnumValue("status", getArticleResponseDto.status); + writer.writeStringValue("title", getArticleResponseDto.title); + writer.writeDateValue("updatedAt", getArticleResponseDto.updatedAt); + writer.writeAdditionalData(getArticleResponseDto.additionalData); +} +/** + * Serializes information the current object + * @param GetChildItemDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeGetChildItemDto(writer: SerializationWriter, getChildItemDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!getChildItemDto || isSerializingDerivedType) { return; } + writer.writeStringValue("articleId", getChildItemDto.articleId); + writer.writeCollectionOfObjectValues("children", getChildItemDto.children, serializeGetChildItemDto); + writer.writeNumberValue("order", getChildItemDto.order); + writer.writeStringValue("slug", getChildItemDto.slug); + writer.writeStringValue("title", getChildItemDto.title); + writer.writeAdditionalData(getChildItemDto.additionalData); +} +/** + * Serializes information the current object + * @param GetChildItemMetadataDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeGetChildItemMetadataDto(writer: SerializationWriter, getChildItemMetadataDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!getChildItemMetadataDto || isSerializingDerivedType) { return; } + writer.writeAdditionalData(getChildItemMetadataDto.additionalData); +} +/** + * Serializes information the current object + * @param GetChildItemResponseDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeGetChildItemResponseDto(writer: SerializationWriter, getChildItemResponseDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!getChildItemResponseDto || isSerializingDerivedType) { return; } + writer.writeCollectionOfObjectValues("items", getChildItemResponseDto.items, serializeGetChildItemDto); + writer.writeStringValue("label", getChildItemResponseDto.label); + writer.writeCollectionOfObjectValues("metadatas", getChildItemResponseDto.metadatas, serializeGetChildItemMetadataDto); + writer.writeAdditionalData(getChildItemResponseDto.additionalData); +} +/** + * Serializes information the current object + * @param GetSiteHeaderResponseDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeGetSiteHeaderResponseDto(writer: SerializationWriter, getSiteHeaderResponseDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!getSiteHeaderResponseDto || isSerializingDerivedType) { return; } + writer.writeStringValue("key", getSiteHeaderResponseDto.key); + writer.writeStringValue("label", getSiteHeaderResponseDto.label); + writer.writeCollectionOfObjectValues("sections", getSiteHeaderResponseDto.sections, serializeContentSectionDto); + writer.writeAdditionalData(getSiteHeaderResponseDto.additionalData); +} +/** + * Serializes information the current object + * @param GetTaxonomyPathResponseDto The instance to serialize from. + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeGetTaxonomyPathResponseDto(writer: SerializationWriter, getTaxonomyPathResponseDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!getTaxonomyPathResponseDto || isSerializingDerivedType) { return; } + writer.writeCollectionOfObjectValues("items", getTaxonomyPathResponseDto.items, serializeTaxonomyPathItemDto); + writer.writeStringValue("taxonomyId", getTaxonomyPathResponseDto.taxonomyId); + writer.writeStringValue("taxonomyLabel", getTaxonomyPathResponseDto.taxonomyLabel); + writer.writeAdditionalData(getTaxonomyPathResponseDto.additionalData); +} +/** + * Serializes information the current object + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. + * @param TaxonomyPathItemDto The instance to serialize from. + * @param writer Serialization writer to use to serialize this model + */ +// @ts-ignore +export function serializeTaxonomyPathItemDto(writer: SerializationWriter, taxonomyPathItemDto: Partial | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { + if (!taxonomyPathItemDto || isSerializingDerivedType) { return; } + writer.writeStringValue("articleId", taxonomyPathItemDto.articleId); + writer.writeNumberValue("order", taxonomyPathItemDto.order); + writer.writeStringValue("slug", taxonomyPathItemDto.slug); + writer.writeStringValue("title", taxonomyPathItemDto.title); + writer.writeAdditionalData(taxonomyPathItemDto.additionalData); +} +export interface TaxonomyPathItemDto extends AdditionalDataHolder, Parsable { + /** + * The articleId property + */ + articleId?: string | null; + /** + * The order property + */ + order?: number | null; + /** + * The slug property + */ + slug?: string | null; + /** + * The title property + */ + title?: string | null; +} +export const ArticleMetadataDto_dataTypeObject = { + String: "string", + Number: "number", + Boolean: "boolean", + Array: "array", + Json: "json", +} as const; +export const GetArticleResponseDto_statusObject = { + Draft: "draft", + Published: "published", + Archived: "archived", +} as const; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/account/index.ts b/src/kiota/v1/account/index.ts new file mode 100644 index 0000000..e1451bf --- /dev/null +++ b/src/kiota/v1/account/index.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { SigninRequestBuilderRequestsMetadata, type SigninRequestBuilder } from './signin/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/account + */ +export interface AccountRequestBuilder extends BaseRequestBuilder { + /** + * The signin property + */ + get signin(): SigninRequestBuilder; + /** + * 현재 로그인한 사용자의 계정 정보 조회 + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * 현재 로그인한 사용자의 계정 정보 조회 + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const AccountRequestBuilderUriTemplate = "{+baseurl}/v1/account"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const AccountRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + signin: { + requestsMetadata: SigninRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const AccountRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: AccountRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + adapterMethodName: "sendPrimitive", + responseBodyFactory: "string", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/account/signin/index.ts b/src/kiota/v1/account/signin/index.ts new file mode 100644 index 0000000..00cb1ef --- /dev/null +++ b/src/kiota/v1/account/signin/index.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/account/signin + */ +export interface SigninRequestBuilder extends BaseRequestBuilder { + /** + * 사용자 로그인 + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * 사용자 로그인 + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const SigninRequestBuilderUriTemplate = "{+baseurl}/v1/account/signin"; +/** + * Metadata for all the requests in the request builder. + */ +export const SigninRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: SigninRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + adapterMethodName: "sendPrimitive", + responseBodyFactory: "string", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/articles/index.ts b/src/kiota/v1/articles/index.ts new file mode 100644 index 0000000..5aa6ee0 --- /dev/null +++ b/src/kiota/v1/articles/index.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { type WithSlugItemRequestBuilder, WithSlugItemRequestBuilderNavigationMetadata, WithSlugItemRequestBuilderRequestsMetadata } from './item/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/articles + */ +export interface ArticlesRequestBuilder extends BaseRequestBuilder { + /** + * Gets an item from the ApiSdk.v1.articles.item collection + * @param slug Unique identifier of the item + * @returns {WithSlugItemRequestBuilder} + */ + bySlug(slug: string) : WithSlugItemRequestBuilder; +} +/** + * Uri template for the request builder. + */ +export const ArticlesRequestBuilderUriTemplate = "{+baseurl}/v1/articles"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const ArticlesRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + bySlug: { + requestsMetadata: WithSlugItemRequestBuilderRequestsMetadata, + navigationMetadata: WithSlugItemRequestBuilderNavigationMetadata, + pathParametersMappings: ["slug"], + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/articles/item/index.ts b/src/kiota/v1/articles/item/index.ts new file mode 100644 index 0000000..a1baf47 --- /dev/null +++ b/src/kiota/v1/articles/item/index.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createGetArticleResponseDtoFromDiscriminatorValue, type GetArticleResponseDto } from '../../../models/index.js'; +// @ts-ignore +import { TaxonomyPathRequestBuilderRequestsMetadata, type TaxonomyPathRequestBuilder } from './taxonomyPath/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/articles/{slug} + */ +export interface WithSlugItemRequestBuilder extends BaseRequestBuilder { + /** + * The taxonomyPath property + */ + get taxonomyPath(): TaxonomyPathRequestBuilder; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {GetArticleResponseDto} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const WithSlugItemRequestBuilderUriTemplate = "{+baseurl}/v1/articles/{slug}"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const WithSlugItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + taxonomyPath: { + requestsMetadata: TaxonomyPathRequestBuilderRequestsMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const WithSlugItemRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: WithSlugItemRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createGetArticleResponseDtoFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createGetArticleResponseDtoFromDiscriminatorValue, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/articles/item/taxonomyPath/index.ts b/src/kiota/v1/articles/item/taxonomyPath/index.ts new file mode 100644 index 0000000..231d2a6 --- /dev/null +++ b/src/kiota/v1/articles/item/taxonomyPath/index.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createGetTaxonomyPathResponseDtoFromDiscriminatorValue, type GetTaxonomyPathResponseDto } from '../../../../models/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/articles/{slug}/taxonomy-path + */ +export interface TaxonomyPathRequestBuilder extends BaseRequestBuilder { + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {GetTaxonomyPathResponseDto} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const TaxonomyPathRequestBuilderUriTemplate = "{+baseurl}/v1/articles/{slug}/taxonomy-path"; +/** + * Metadata for all the requests in the request builder. + */ +export const TaxonomyPathRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: TaxonomyPathRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createGetTaxonomyPathResponseDtoFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createGetTaxonomyPathResponseDtoFromDiscriminatorValue, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/contents/index.ts b/src/kiota/v1/contents/index.ts new file mode 100644 index 0000000..0b6d95a --- /dev/null +++ b/src/kiota/v1/contents/index.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { SiteHeaderRequestBuilderRequestsMetadata, type SiteHeaderRequestBuilder } from './siteHeader/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/contents + */ +export interface ContentsRequestBuilder extends BaseRequestBuilder { + /** + * The siteHeader property + */ + get siteHeader(): SiteHeaderRequestBuilder; +} +/** + * Uri template for the request builder. + */ +export const ContentsRequestBuilderUriTemplate = "{+baseurl}/v1/contents"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const ContentsRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + siteHeader: { + requestsMetadata: SiteHeaderRequestBuilderRequestsMetadata, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/contents/siteHeader/index.ts b/src/kiota/v1/contents/siteHeader/index.ts new file mode 100644 index 0000000..935b9c8 --- /dev/null +++ b/src/kiota/v1/contents/siteHeader/index.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createGetSiteHeaderResponseDtoFromDiscriminatorValue, type GetSiteHeaderResponseDto } from '../../../models/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/contents/site-header + */ +export interface SiteHeaderRequestBuilder extends BaseRequestBuilder { + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const SiteHeaderRequestBuilderUriTemplate = "{+baseurl}/v1/contents/site-header"; +/** + * Metadata for all the requests in the request builder. + */ +export const SiteHeaderRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: SiteHeaderRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + adapterMethodName: "sendCollection", + responseBodyFactory: createGetSiteHeaderResponseDtoFromDiscriminatorValue, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/image/index.ts b/src/kiota/v1/image/index.ts new file mode 100644 index 0000000..d7a94e4 --- /dev/null +++ b/src/kiota/v1/image/index.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { MultipartBody, serializeMultipartBody, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/image + */ +export interface ImageRequestBuilder extends BaseRequestBuilder { + /** + * 이미지 파일을 업로드합니다 + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + */ + post(body: MultipartBody, requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * 이미지 파일을 업로드합니다 + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toPostRequestInformation(body: MultipartBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const ImageRequestBuilderUriTemplate = "{+baseurl}/v1/image"; +/** + * Metadata for all the requests in the request builder. + */ +export const ImageRequestBuilderRequestsMetadata: RequestsMetadata = { + post: { + uriTemplate: ImageRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + adapterMethodName: "sendPrimitive", + responseBodyFactory: "string", + requestBodyContentType: "multipart/form-data", + requestBodySerializer: serializeMultipartBody, + requestInformationContentSetMethod: "setContentFromParsable", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/index.ts b/src/kiota/v1/index.ts new file mode 100644 index 0000000..8270d75 --- /dev/null +++ b/src/kiota/v1/index.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { AccountRequestBuilderNavigationMetadata, AccountRequestBuilderRequestsMetadata, type AccountRequestBuilder } from './account/index.js'; +// @ts-ignore +import { ArticlesRequestBuilderNavigationMetadata, type ArticlesRequestBuilder } from './articles/index.js'; +// @ts-ignore +import { ContentsRequestBuilderNavigationMetadata, type ContentsRequestBuilder } from './contents/index.js'; +// @ts-ignore +import { ImageRequestBuilderRequestsMetadata, type ImageRequestBuilder } from './image/index.js'; +// @ts-ignore +import { TaxonomiesRequestBuilderNavigationMetadata, type TaxonomiesRequestBuilder } from './taxonomies/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1 + */ +export interface V1RequestBuilder extends BaseRequestBuilder { + /** + * The account property + */ + get account(): AccountRequestBuilder; + /** + * The articles property + */ + get articles(): ArticlesRequestBuilder; + /** + * The contents property + */ + get contents(): ContentsRequestBuilder; + /** + * The image property + */ + get image(): ImageRequestBuilder; + /** + * The taxonomies property + */ + get taxonomies(): TaxonomiesRequestBuilder; + /** + * 서버 상태 확인 + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * 서버 상태 확인 + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const V1RequestBuilderUriTemplate = "{+baseurl}/v1"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const V1RequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + account: { + requestsMetadata: AccountRequestBuilderRequestsMetadata, + navigationMetadata: AccountRequestBuilderNavigationMetadata, + }, + articles: { + navigationMetadata: ArticlesRequestBuilderNavigationMetadata, + }, + contents: { + navigationMetadata: ContentsRequestBuilderNavigationMetadata, + }, + image: { + requestsMetadata: ImageRequestBuilderRequestsMetadata, + }, + taxonomies: { + navigationMetadata: TaxonomiesRequestBuilderNavigationMetadata, + }, +}; +/** + * Metadata for all the requests in the request builder. + */ +export const V1RequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: V1RequestBuilderUriTemplate, + responseBodyContentType: "application/json", + adapterMethodName: "sendPrimitive", + responseBodyFactory: "string", + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/taxonomies/index.ts b/src/kiota/v1/taxonomies/index.ts new file mode 100644 index 0000000..908a89c --- /dev/null +++ b/src/kiota/v1/taxonomies/index.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { TaxonomiesItemRequestBuilderNavigationMetadata, type TaxonomiesItemRequestBuilder } from './item/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/taxonomies + */ +export interface TaxonomiesRequestBuilder extends BaseRequestBuilder { + /** + * Gets an item from the ApiSdk.v1.taxonomies.item collection + * @param id Unique identifier of the item + * @returns {TaxonomiesItemRequestBuilder} + */ + byId(id: string) : TaxonomiesItemRequestBuilder; +} +/** + * Uri template for the request builder. + */ +export const TaxonomiesRequestBuilderUriTemplate = "{+baseurl}/v1/taxonomies"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const TaxonomiesRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + byId: { + navigationMetadata: TaxonomiesItemRequestBuilderNavigationMetadata, + pathParametersMappings: ["id"], + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/taxonomies/item/childItems/index.ts b/src/kiota/v1/taxonomies/item/childItems/index.ts new file mode 100644 index 0000000..507dfc9 --- /dev/null +++ b/src/kiota/v1/taxonomies/item/childItems/index.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { createGetChildItemResponseDtoFromDiscriminatorValue, type GetChildItemResponseDto } from '../../../../models/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/taxonomies/{id}/child-items + */ +export interface ChildItemsRequestBuilder extends BaseRequestBuilder { + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {Promise} + * @throws {GetChildItemResponseDto} error when the service returns a 4XX or 5XX status code + */ + get(requestConfiguration?: RequestConfiguration | undefined) : Promise; + /** + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns {RequestInformation} + */ + toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation; +} +/** + * Uri template for the request builder. + */ +export const ChildItemsRequestBuilderUriTemplate = "{+baseurl}/v1/taxonomies/{id}/child-items"; +/** + * Metadata for all the requests in the request builder. + */ +export const ChildItemsRequestBuilderRequestsMetadata: RequestsMetadata = { + get: { + uriTemplate: ChildItemsRequestBuilderUriTemplate, + responseBodyContentType: "application/json", + errorMappings: { + XXX: createGetChildItemResponseDtoFromDiscriminatorValue as ParsableFactory, + }, + adapterMethodName: "send", + responseBodyFactory: createGetChildItemResponseDtoFromDiscriminatorValue, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/kiota/v1/taxonomies/item/index.ts b/src/kiota/v1/taxonomies/item/index.ts new file mode 100644 index 0000000..141852b --- /dev/null +++ b/src/kiota/v1/taxonomies/item/index.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +// @ts-ignore +import { ChildItemsRequestBuilderRequestsMetadata, type ChildItemsRequestBuilder } from './childItems/index.js'; +// @ts-ignore +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions'; + +/** + * Builds and executes requests for operations under /v1/taxonomies/{id} + */ +export interface TaxonomiesItemRequestBuilder extends BaseRequestBuilder { + /** + * The childItems property + */ + get childItems(): ChildItemsRequestBuilder; +} +/** + * Uri template for the request builder. + */ +export const TaxonomiesItemRequestBuilderUriTemplate = "{+baseurl}/v1/taxonomies/{id}"; +/** + * Metadata for all the navigation properties in the request builder. + */ +export const TaxonomiesItemRequestBuilderNavigationMetadata: Record, NavigationMetadata> = { + childItems: { + requestsMetadata: ChildItemsRequestBuilderRequestsMetadata, + }, +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/lib/apiClient.ts b/src/lib/apiClient.ts new file mode 100644 index 0000000..b3e721d --- /dev/null +++ b/src/lib/apiClient.ts @@ -0,0 +1,12 @@ +import { DefaultRequestAdapter } from '@microsoft/kiota-bundle'; +import { AnonymousAuthenticationProvider } from '@microsoft/kiota-abstractions'; +import { createApiClient } from '../kiota/apiClient'; + +// Create authentication provider (anonymous for now) +const authProvider = new AnonymousAuthenticationProvider(); + +// Create the request adapter with the base URL +const requestAdapter = new DefaultRequestAdapter(authProvider); + +// Create and export the API client +export const apiClient = createApiClient(requestAdapter); diff --git a/src/main.tsx b/src/main.tsx index d96f8d8..1411f50 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,7 +1,19 @@ +import { createRoot } from "react-dom/client"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; +import App from "./App.tsx"; +import "./index.css"; - import { createRoot } from "react-dom/client"; - import App from "./App.tsx"; - import "./index.css"; +const queryClient = new QueryClient({ + defaultOptions: { + queries: { + staleTime: 1000 * 60 * 5, // 5 minutes + refetchOnWindowFocus: false, + }, + }, +}); - createRoot(document.getElementById("root")!).render(); - \ No newline at end of file +createRoot(document.getElementById("root")!).render( + + + +); \ No newline at end of file diff --git a/src/styles/globals.css b/src/styles/globals.css index 384b3e6..40c96f0 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -1,3 +1,5 @@ + + @custom-variant dark (&:is(.dark *)); :root { diff --git a/vite.config.ts b/vite.config.ts index 755c3d2..fee9410 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,9 +2,10 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react-swc'; import path from 'path'; + import tailwindcss from '@tailwindcss/vite' export default defineConfig({ - plugins: [react()], + plugins: [react(), tailwindcss()], resolve: { extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'], alias: { @@ -59,4 +60,4 @@ host: "0.0.0.0", allowedHosts: true, }, - }); \ No newline at end of file + });