Skip to content

Commit d424057

Browse files
committed
fix(docs): remove imagePlugin for fumapress
1 parent 5bbd763 commit d424057

7 files changed

Lines changed: 166 additions & 33 deletions

File tree

apps/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"react": "catalog:",
3535
"react-dom": "catalog:",
3636
"react-server-dom-webpack": "19.2.7",
37+
"sharp": "0.35.3",
3738
"shiki": "4.3.1",
3839
"tailwind-merge": "catalog:",
3940
"use-sync-external-store": "1.6.0",

apps/docs/press.config.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { createDocsLayoutPage } from "fumapress/layouts/docs";
1414
import { createHomeLayout } from "fumapress/layouts/home";
1515
import { blogPlugin } from "fumapress/plugins/blog";
1616
import { flexsearchPlugin } from "fumapress/plugins/flexsearch";
17-
import { imagePlugin } from "fumapress/plugins/image/vercel";
17+
// import { imagePlugin } from "fumapress/plugins/image/self-hosted";
1818
// import { linkValidationPlugin } from "fumapress/plugins/link-validation";
1919
import { llmsPlugin } from "fumapress/plugins/llms.txt";
2020
// import { githubFeedbackPlugin } from "@fumapress/feedback/github";
@@ -134,9 +134,10 @@ const config = defineConfig({
134134
// you can use this option in "server" mode
135135
// createProxy: true,
136136
}),
137-
imagePlugin({
138-
formats: ["image/webp", "image/png"],
139-
}),
137+
/**
138+
* [Fumapress] Image Optimization is not compatible with static mode, please disable it
139+
*/
140+
// imagePlugin({ allowedHosts: ["xmlking.github.io"] }),
140141
// githubFeedbackPlugin({
141142
// appId: import.meta.env.GITHUB_APP_ID,
142143
// privateKey: import.meta.env.GITHUB_PRIVATE_KEY,

apps/web/src/routeTree.gen.ts

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ import { Route as publicThemeRouteImport } from './routes/(public)/theme'
1818
import { Route as publicAboutRouteImport } from './routes/(public)/about'
1919
import { Route as app2Dashboard2RouteImport } from './routes/(app2)/dashboard2'
2020
import { Route as appPlaygroundIndexRouteImport } from './routes/(app)/playground/index'
21-
import { Route as appDashboardIndexRouteImport } from './routes/(app)/dashboard.index'
21+
import { Route as appDashboardIndexRouteImport } from './routes/(app)/dashboard/index'
2222
import { Route as ApiHealthLiveRouteImport } from './routes/api/health/live'
2323
import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
2424
import { Route as publicAuthPathRouteImport } from './routes/(public)/auth/$path'
25-
import { Route as appSettingsPageRouteImport } from './routes/(app)/settings.$page'
25+
import { Route as appSettingsNotificationsRouteImport } from './routes/(app)/settings/notifications'
26+
import { Route as appSettingsPageRouteImport } from './routes/(app)/settings/$page'
2627
import { Route as appReportsPageRouteImport } from './routes/(app)/reports.$page'
2728
import { Route as appPlaygroundWorkflowRouteImport } from './routes/(app)/playground/workflow'
2829
import { Route as appPlaygroundFormDemoRouteImport } from './routes/(app)/playground/form-demo'
2930
import { Route as appPlaygroundErrorRouteImport } from './routes/(app)/playground/error'
30-
import { Route as appDashboardPageRouteImport } from './routes/(app)/dashboard.$page'
31+
import { Route as appDashboardPageRouteImport } from './routes/(app)/dashboard/$page'
3132
import { Route as appAdminPageRouteImport } from './routes/(app)/admin.$page'
3233
import { Route as appsecurityUserPathRouteImport } from './routes/(app)/(security)/user.$path'
3334
import { Route as appsecurityOrganizationPathRouteImport } from './routes/(app)/(security)/organization.$path'
@@ -94,6 +95,12 @@ const publicAuthPathRoute = publicAuthPathRouteImport.update({
9495
path: '/auth/$path',
9596
getParentRoute: () => publicRouteRoute,
9697
} as any)
98+
const appSettingsNotificationsRoute =
99+
appSettingsNotificationsRouteImport.update({
100+
id: '/settings/notifications',
101+
path: '/settings/notifications',
102+
getParentRoute: () => appRouteRoute,
103+
} as any)
97104
const appSettingsPageRoute = appSettingsPageRouteImport.update({
98105
id: '/settings/$page',
99106
path: '/settings/$page',
@@ -154,6 +161,7 @@ export interface FileRoutesByFullPath {
154161
'/playground/workflow': typeof appPlaygroundWorkflowRoute
155162
'/reports/$page': typeof appReportsPageRoute
156163
'/settings/$page': typeof appSettingsPageRoute
164+
'/settings/notifications': typeof appSettingsNotificationsRoute
157165
'/auth/$path': typeof publicAuthPathRoute
158166
'/api/auth/$': typeof ApiAuthSplatRoute
159167
'/api/health/live': typeof ApiHealthLiveRoute
@@ -175,6 +183,7 @@ export interface FileRoutesByTo {
175183
'/playground/workflow': typeof appPlaygroundWorkflowRoute
176184
'/reports/$page': typeof appReportsPageRoute
177185
'/settings/$page': typeof appSettingsPageRoute
186+
'/settings/notifications': typeof appSettingsNotificationsRoute
178187
'/auth/$path': typeof publicAuthPathRoute
179188
'/api/auth/$': typeof ApiAuthSplatRoute
180189
'/api/health/live': typeof ApiHealthLiveRoute
@@ -200,6 +209,7 @@ export interface FileRoutesById {
200209
'/(app)/playground/workflow': typeof appPlaygroundWorkflowRoute
201210
'/(app)/reports/$page': typeof appReportsPageRoute
202211
'/(app)/settings/$page': typeof appSettingsPageRoute
212+
'/(app)/settings/notifications': typeof appSettingsNotificationsRoute
203213
'/(public)/auth/$path': typeof publicAuthPathRoute
204214
'/api/auth/$': typeof ApiAuthSplatRoute
205215
'/api/health/live': typeof ApiHealthLiveRoute
@@ -223,6 +233,7 @@ export interface FileRouteTypes {
223233
| '/playground/workflow'
224234
| '/reports/$page'
225235
| '/settings/$page'
236+
| '/settings/notifications'
226237
| '/auth/$path'
227238
| '/api/auth/$'
228239
| '/api/health/live'
@@ -244,6 +255,7 @@ export interface FileRouteTypes {
244255
| '/playground/workflow'
245256
| '/reports/$page'
246257
| '/settings/$page'
258+
| '/settings/notifications'
247259
| '/auth/$path'
248260
| '/api/auth/$'
249261
| '/api/health/live'
@@ -268,6 +280,7 @@ export interface FileRouteTypes {
268280
| '/(app)/playground/workflow'
269281
| '/(app)/reports/$page'
270282
| '/(app)/settings/$page'
283+
| '/(app)/settings/notifications'
271284
| '/(public)/auth/$path'
272285
| '/api/auth/$'
273286
| '/api/health/live'
@@ -378,6 +391,13 @@ declare module '@tanstack/react-router' {
378391
preLoaderRoute: typeof publicAuthPathRouteImport
379392
parentRoute: typeof publicRouteRoute
380393
}
394+
'/(app)/settings/notifications': {
395+
id: '/(app)/settings/notifications'
396+
path: '/settings/notifications'
397+
fullPath: '/settings/notifications'
398+
preLoaderRoute: typeof appSettingsNotificationsRouteImport
399+
parentRoute: typeof appRouteRoute
400+
}
381401
'/(app)/settings/$page': {
382402
id: '/(app)/settings/$page'
383403
path: '/settings/$page'
@@ -452,6 +472,7 @@ interface appRouteRouteChildren {
452472
appPlaygroundWorkflowRoute: typeof appPlaygroundWorkflowRoute
453473
appReportsPageRoute: typeof appReportsPageRoute
454474
appSettingsPageRoute: typeof appSettingsPageRoute
475+
appSettingsNotificationsRoute: typeof appSettingsNotificationsRoute
455476
appDashboardIndexRoute: typeof appDashboardIndexRoute
456477
appPlaygroundIndexRoute: typeof appPlaygroundIndexRoute
457478
appsecurityOrganizationPathRoute: typeof appsecurityOrganizationPathRoute
@@ -466,6 +487,7 @@ const appRouteRouteChildren: appRouteRouteChildren = {
466487
appPlaygroundWorkflowRoute: appPlaygroundWorkflowRoute,
467488
appReportsPageRoute: appReportsPageRoute,
468489
appSettingsPageRoute: appSettingsPageRoute,
490+
appSettingsNotificationsRoute: appSettingsNotificationsRoute,
469491
appDashboardIndexRoute: appDashboardIndexRoute,
470492
appPlaygroundIndexRoute: appPlaygroundIndexRoute,
471493
appsecurityOrganizationPathRoute: appsecurityOrganizationPathRoute,
File renamed without changes.

apps/web/src/routes/(app)/dashboard/notifications.tsx renamed to apps/web/src/routes/(app)/settings/notifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createFileRoute } from "@tanstack/react-router";
33
import { DashboardPageSkeleton } from "#features/dashboard/dashboard-page-skeleton.tsx";
44
import { NotificationsPage } from "#features/notifications/notifications-page";
55

6-
export const Route = createFileRoute("/(app)/dashboard/notifications" as any)({
6+
export const Route = createFileRoute("/(app)/settings/notifications")({
77
component: NotificationsPage,
88
pendingComponent: DashboardPageSkeleton,
99
});

0 commit comments

Comments
 (0)