This commit is contained in:
seb
2026-10-23 23:11:05 +02:00
parent 5dd45916b8
commit 35144c7187
3 changed files with 41 additions and 53 deletions

21
package-lock.json generated
View File

@@ -34,7 +34,7 @@
"react-dom": "^19.3.1", "react-dom": "^19.3.1",
"react-router-dom": "^7.18.4", "react-router-dom": "^7.18.4",
"react-window": "^2.3.4", "react-window": "^2.3.4",
"skelehash-wasm": "file:../skelehash-wasm", "skelehash-wasm": "^0.1.1",
"sortablejs": "^1.15.7", "sortablejs": "^1.15.7",
"thumbhash": "^0.1.1" "thumbhash": "^0.1.1"
}, },
@@ -92,13 +92,6 @@
"react-dom": "^19.0.0" "react-dom": "^19.0.0"
} }
}, },
"../skelehash-wasm": {
"version": "0.1.0",
"license": "MIT",
"devDependencies": {
"sharp": "^0.35.5"
}
},
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
"version": "7.29.7", "version": "7.29.7",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
@@ -8203,9 +8196,9 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/set-cookie-parser": { "node_modules/set-cookie-parser": {
"version": "2.7.2", "version": "2.7.3",
"resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.3.tgz",
"integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", "integrity": "sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/set-function-length": { "node_modules/set-function-length": {
@@ -8476,8 +8469,10 @@
} }
}, },
"node_modules/skelehash-wasm": { "node_modules/skelehash-wasm": {
"resolved": "../skelehash-wasm", "version": "0.1.1",
"link": true "resolved": "https://registry.npmjs.org/skelehash-wasm/-/skelehash-wasm-0.1.1.tgz",
"integrity": "sha512-5kC7dESMvQUdpLvRYfTc0oZ/Ff78bedUhqvYAGnVjs3agsS9PP8RJ/lGpol5sSKoYET/7KJbQ2UVSDTNpmDtTw==",
"license": "0BSD"
}, },
"node_modules/smob": { "node_modules/smob": {
"version": "1.6.2", "version": "1.6.2",

View File

@@ -44,7 +44,7 @@
"react-dom": "^19.3.1", "react-dom": "^19.3.1",
"react-router-dom": "^7.18.4", "react-router-dom": "^7.18.4",
"react-window": "^2.3.4", "react-window": "^2.3.4",
"skelehash-wasm": "file:../skelehash-wasm", "skelehash-wasm": "^0.1.1",
"sortablejs": "^1.15.7", "sortablejs": "^1.15.7",
"thumbhash": "^0.1.1" "thumbhash": "^0.1.1"
}, },

View File

@@ -6,7 +6,6 @@ import CircularProgress from '@mui/material/CircularProgress';
import Link from '@mui/material/Link'; import Link from '@mui/material/Link';
import ListItemButton from '@mui/material/ListItemButton'; import ListItemButton from '@mui/material/ListItemButton';
import Skeleton from '@mui/material/Skeleton'; import Skeleton from '@mui/material/Skeleton';
import Tooltip from '@mui/material/Tooltip';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import ViewModuleIcon from '@mui/icons-material/ViewModule'; import ViewModuleIcon from '@mui/icons-material/ViewModule';
import { enqueueSnackbar } from 'notistack'; import { enqueueSnackbar } from 'notistack';
@@ -414,15 +413,13 @@ class ArticleHistoryRow extends PureComponent {
}} }}
> >
{this.renderSkelehashThumb(meta)} {this.renderSkelehashThumb(meta)}
<Tooltip title={item.text || ''} placement="top-start" enterDelay={700}> <Typography
<Typography variant="body2"
variant="body2" component="div"
component="div" sx={{ ...ellipsisSx, display: 'inline', width: '100%', fontSize: '0.8125rem' }}
sx={{ ...ellipsisSx, display: 'inline', width: '100%', fontSize: '0.8125rem' }} >
> {this.renderEntrySpans(item.text, meta)}
{this.renderEntrySpans(item.text, meta)} </Typography>
</Typography>
</Tooltip>
</Box> </Box>
</ListItemButton> </ListItemButton>
); );
@@ -617,35 +614,31 @@ class ArticleHistorySearchField extends PureComponent {
</Box> </Box>
{import.meta.env.DEV && ( {import.meta.env.DEV && (
<Tooltip <Chip
title={`Chunk-Cache-Monitor öffnen (Alt+Shift+C) — ${this.state.lruChunksCount || 0}/${this.state.maxLruChunks || 50} Chunks im RAM über ${this.state.filterCachesCount || 1} Filter`} size="small"
> icon={<ViewModuleIcon sx={{ fontSize: 16 }} />}
<Chip label={
size="small" this.state.lruChunksCount > 0
icon={<ViewModuleIcon sx={{ fontSize: 16 }} />} ? `Chunk-Cache (${this.state.lruChunksCount}/${this.state.maxLruChunks || 50})`
label={ : 'Chunk-Cache'
this.state.lruChunksCount > 0 }
? `Chunk-Cache (${this.state.lruChunksCount}/${this.state.maxLruChunks || 50})` onClick={() =>
: 'Chunk-Cache' window.dispatchEvent(
} new CustomEvent('dash:toggle-chunk-monitor', {
onClick={() => detail: { target: automat.name },
window.dispatchEvent( }),
new CustomEvent('dash:toggle-chunk-monitor', { )
detail: { target: automat.name }, }
}), sx={{
) cursor: 'pointer',
} height: 28,
sx={{ fontWeight: 600,
cursor: 'pointer', fontSize: '0.75rem',
height: 28, bgcolor: 'background.paper',
fontWeight: 600, boxShadow: 1,
fontSize: '0.75rem', '&:hover': { bgcolor: 'action.hover' },
bgcolor: 'background.paper', }}
boxShadow: 1, />
'&:hover': { bgcolor: 'action.hover' },
}}
/>
</Tooltip>
)} )}
</Box> </Box>
</Box> </Box>