Cleanup/code cleanup 2026 03 (#45)

* chore: cleanup of unused exports and stuff

* fix: media and languages was broken for english media

* fix: embedding model load was broken on standalone

---------

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauer
2026-03-10 19:54:38 +01:00
committed by GitHub
parent 4f9be93c6d
commit 1b4ab08c37
60 changed files with 176 additions and 1696 deletions

View File

@@ -11,15 +11,6 @@ function read(relativePath: string): string {
describe('Phase 1 i18n hardcoded literals', () => {
it('does not keep known hardcoded user-facing literals in renderer components', () => {
const checks: Array<{ file: string; literals: string[] }> = [
{
file: 'src/renderer/components/PostSearchModal/PostSearchModal.tsx',
literals: [
'Search posts by title or content...',
'Searching...',
'Type at least 2 characters to search',
'Use ↑↓ to navigate, Enter to select, Esc to close',
],
},
{
file: 'src/renderer/components/StatusBar/StatusBar.tsx',
literals: ['<span>{totalPosts} posts</span>', '<span>{media.length} media</span>', 'Theme: {activeTheme}', 'aria-label="UI language"'],