Skip to content

Commit

Permalink
chore(popup): Remove logo and GitHub link
Browse files Browse the repository at this point in the history
The commit removes the logo and GitHub link from the Popup.tsx file, streamlining the UI and reducing clutter. It also updates the turbo package and React peer dependency to their latest versions, improving performance and ensuring compatibility with other packages.
  • Loading branch information
phodal committed Oct 10, 2024
1 parent e41770b commit 510fd5e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 40 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chrome-extension-boilerplate-react-vite",
"version": "0.3.3",
"description": "chrome extension boilerplate",
"version": "0.1.0",
"description": "AutoDev browser is a chrome extension boilerplate",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -19,6 +19,7 @@
"zip": "pnpm build && pnpm -F zipper zip",
"zip:firefox": "pnpm build:firefox && cross-env __FIREFOX__=true pnpm -F zipper zip",
"dev": "turbo ready && cross-env __DEV__=true turbo watch dev --concurrency 20",
"macosDev": "cross-env __DEV__=true turbo run dev --concurrency 20",
"dev:firefox": "turbo ready && cross-env __DEV__=true __FIREFOX__=true turbo watch dev --concurrency 20",
"e2e": "pnpm build && pnpm zip && turbo e2e",
"e2e:firefox": "pnpm build:firefox && pnpm zip:firefox && cross-env __FIREFOX__=true turbo e2e",
Expand Down Expand Up @@ -59,7 +60,7 @@
"rimraf": "^6.0.1",
"tailwindcss": "^3.4.11",
"tslib": "^2.6.3",
"turbo": "^2.0.12",
"turbo": "^2.1.3",
"typescript": "5.5.4",
"vite": "5.4.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"extensionDescription": {
"description": "Extension description",
"message": "Chrome extension boilerplate developed with Vite, React and Typescript"
"message": "AutoDev Browser is a chrome extension boilerplate"
},
"extensionName": {
"description": "Extension name",
"message": "Chrome extension boilerplate"
"message": "AutoDev Browser"
},
"toggleTheme": {
"message": "Toggle theme"
Expand Down
6 changes: 0 additions & 6 deletions pages/popup/src/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const notificationOptions = {
const Popup = () => {
const theme = useStorage(exampleThemeStorage);
const isLight = theme === 'light';
const logo = isLight ? 'popup/logo_vertical.svg' : 'popup/logo_vertical_dark.svg';
const goGithubSite = () =>
chrome.tabs.create({ url: 'https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite' });

const injectContentScript = async () => {
const [tab] = await chrome.tabs.query({ currentWindow: true, active: true });
Expand All @@ -40,9 +37,6 @@ const Popup = () => {
return (
<div className={`App ${isLight ? 'bg-slate-50' : 'bg-gray-800'}`}>
<header className={`App-header ${isLight ? 'text-gray-900' : 'text-gray-100'}`}>
<button onClick={goGithubSite}>
<img src={chrome.runtime.getURL(logo)} className="App-logo" alt="logo" />
</button>
<p>
Edit <code>pages/popup/src/Popup.tsx</code>
</p>
Expand Down
58 changes: 29 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 510fd5e

Please sign in to comment.