linted
This commit is contained in:
parent
9491f7c504
commit
98f03c2296
|
@ -144,12 +144,7 @@
|
|||
"engines": {
|
||||
"node": ">= 20"
|
||||
},
|
||||
"trustedDependencies": [
|
||||
"@biomejs/biome",
|
||||
"@swc/core",
|
||||
"esbuild",
|
||||
"protobufjs"
|
||||
],
|
||||
"trustedDependencies": ["@biomejs/biome", "@swc/core", "esbuild", "protobufjs"],
|
||||
"dependencies": {
|
||||
"form-data": "^4.0.0",
|
||||
"idb": "^8.0.0",
|
||||
|
|
|
@ -99,17 +99,17 @@ export const Placeholder = (props: PlaceholderProps) => {
|
|||
// dufok (^-^') mem for placeholder data without a fallback, it will be `undefined` if not found
|
||||
|
||||
const placeholderData = createMemo(() => {
|
||||
const dataForType = data[props.type];
|
||||
const dataForType = data[props.type]
|
||||
if (!dataForType) {
|
||||
console.warn(`No placeholder data found for type: ${props.type}`);
|
||||
console.warn(`No placeholder data found for type: ${props.type}`)
|
||||
}
|
||||
return dataForType;
|
||||
// (^-^') No fallback to ensure it is empty when data is missing
|
||||
});
|
||||
return dataForType
|
||||
// (^-^') No fallback to ensure it is empty when data is missing
|
||||
})
|
||||
|
||||
// (^-^') Return null if no placeholder data is found
|
||||
if (!placeholderData()) {
|
||||
return null;
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
@ -133,10 +133,12 @@ export default function AuthorPage(props: RouteSectionProps<AuthorPageProps>) {
|
|||
)
|
||||
|
||||
return (
|
||||
<ErrorBoundary fallback={(_err) => {
|
||||
console.error('ErrorBoundary caught an error', _err)
|
||||
return <FourOuFourView />
|
||||
}}>
|
||||
<ErrorBoundary
|
||||
fallback={(_err) => {
|
||||
console.error('ErrorBoundary caught an error', _err)
|
||||
return <FourOuFourView />
|
||||
}}
|
||||
>
|
||||
<Suspense fallback={<Loading />}>
|
||||
<PageLayout
|
||||
title={title()}
|
||||
|
|
|
@ -28,7 +28,7 @@ export default {
|
|||
'@': path.resolve('./public'),
|
||||
'/icons': path.resolve('./public/icons'),
|
||||
'/fonts': path.resolve('./public/fonts'),
|
||||
'bootstrap': path.resolve('./node_modules/bootstrap')
|
||||
bootstrap: path.resolve('./node_modules/bootstrap')
|
||||
}
|
||||
},
|
||||
envPrefix: 'PUBLIC_',
|
||||
|
|
Loading…
Reference in New Issue
Block a user