How kumashow/mini-trans works
Project type and purpose
• This is a browser-extension project built with React, TypeScript, and Vite.
• It supplies several entry-points: a background service worker (background.ts), content scripts (contentScripts/…), a sidebar UI, and an options page.
File structure
• Top-level config: vite.config.ts, tsconfig*.json, eslint.config.js, manifest.json.
• Source:
• src/main.tsx + src/App.tsx — supplier for your “popup” or primary UI.
• src/options/index.tsx + src/options/index.html — the options page UI.
• src/contentScripts/contentScript.ts + CSS — injected into pages.
• src/contentScripts/sidebar/Sidebar.tsx — React component injected into the DOM.
• src/background.ts — the MV3 service‐worker.
README for additional insights
• It’s the minimal React+TypeScript Vite template (HMR via plugin-react or plugin-react-swc).
• ESLint configs are present for static analysis, Type-aware linting, React-specific rules.