-
-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fixA11yLogoIssue' of github.com:plone/volto into fixA11…
…yLogoIssue
- Loading branch information
Showing
38 changed files
with
1,179 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ styles/rules/* | |
node_modules | ||
packages/volto/types/* | ||
storybook-static | ||
app/vite-ssr/src/routeTree.gen.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import config from '@plone/registry'; | ||
import { slate } from '@plone/blocks'; | ||
import { blocksConfig } from '@plone/blocks'; | ||
|
||
const settings = { | ||
apiPath: 'http://localhost:8080/Plone', | ||
slate, | ||
}; | ||
|
||
const config = { | ||
settings, | ||
}; | ||
config.set('settings', settings); | ||
|
||
config.set('blocks', { blocksConfig }); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { createFileRoute } from '@tanstack/react-router'; | ||
import * as React from 'react'; | ||
import { flattenToAppURL } from '../utils'; | ||
import { useSuspenseQuery } from '@tanstack/react-query'; | ||
import { usePloneClient } from '@plone/client/provider'; | ||
import { Breadcrumbs } from '@plone/components'; | ||
|
||
const expand = ['breadcrumbs', 'navigation']; | ||
|
||
export const Route = createFileRoute('/$')({ | ||
loader: ({ context: { queryClient, ploneClient }, location }) => { | ||
const { getContentQuery } = ploneClient; | ||
return queryClient.ensureQueryData( | ||
getContentQuery({ path: flattenToAppURL(location.pathname), expand }), | ||
); | ||
}, | ||
component: SplatRouteComponent, | ||
}); | ||
|
||
function SplatRouteComponent() { | ||
const { _splat: path } = Route.useParams(); | ||
const { getContentQuery } = usePloneClient(); | ||
const { data } = useSuspenseQuery( | ||
getContentQuery({ path: flattenToAppURL(`/${path}`), expand }), | ||
); | ||
return ( | ||
<div className="p-2"> | ||
<Breadcrumbs | ||
items={data['@components'].breadcrumbs.items || []} | ||
root={data['@components'].breadcrumbs.root} | ||
includeRoot | ||
/> | ||
|
||
<h1> {data.title}</h1> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.