-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
391 additions
and
592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Supabase | ||
PLASMO_PUBLIC_SUPABASE_URL="" | ||
PLASMO_PUBLIC_SUPABASE_ANON_KEY="" | ||
VITE_SUPABASE_URL="" | ||
VITE_SUPABASE_ANON_KEY="" | ||
|
||
# OpenPanel Analytics | ||
PLASMO_PUBLIC_OPEN_PANEL_KEY="" | ||
VITE_OPEN_PANEL_KEY="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,22 +6,21 @@ | |
"author": "Bartosz Zagrodzki", | ||
"scripts": { | ||
"build": "run-p build:chrome build:firefox", | ||
"build:chrome": "plasmo build --src-path=src/app --zip", | ||
"build:firefox": "plasmo build --src-path=src/app --target=firefox-mv2 --zip", | ||
"build:chrome": "wxt zip", | ||
"build:firefox": "wxt -b firefox zip", | ||
"dev": "bun dev:chrome", | ||
"dev:chrome": "plasmo dev --src-path=src/app", | ||
"dev:firefox": "plasmo dev --src-path=src/app --target=firefox-mv2", | ||
"dev:chrome": "wxt", | ||
"dev:firefox": "wxt -b firefox", | ||
"lint": "biome check", | ||
"lint:fix": "biome check --write", | ||
"prepare": "husky", | ||
"typecheck": "tsc --noEmit" | ||
"typecheck": "tsc --noEmit", | ||
"postinstall": "wxt prepare" | ||
}, | ||
"dependencies": { | ||
"@biomejs/biome": "^1.9.4", | ||
"@hookform/resolvers": "^3.9.1", | ||
"@openpanel/web": "^1.0.1", | ||
"@plasmohq/messaging": "0.6.2", | ||
"@plasmohq/storage": "1.12.0", | ||
"@radix-ui/react-avatar": "^1.1.1", | ||
"@radix-ui/react-dropdown-menu": "^2.1.2", | ||
"@radix-ui/react-label": "^2.1.0", | ||
|
@@ -39,13 +38,13 @@ | |
"marked": "^14.1.3", | ||
"next-themes": "^0.3.0", | ||
"npm-run-all": "^4.1.5", | ||
"plasmo": "0.89.4", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"react-hook-form": "^7.53.1", | ||
"sonner": "^1.5.0", | ||
"tailwind-merge": "^2.5.4", | ||
"tailwindcss-animate": "^1.0.7", | ||
"vite-plugin-svgr": "^4.3.0", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
|
@@ -54,23 +53,16 @@ | |
"@commitlint/types": "19.0.3", | ||
"@tailwindcss/typography": "^0.5.15", | ||
"@total-typescript/ts-reset": "^0.6.1", | ||
"@types/bun": "latest", | ||
"@types/bun": "^1.1.13", | ||
"@types/chrome": "0.0.270", | ||
"@types/node": "20.16.10", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@wxt-dev/auto-icons": "^1.0.2", | ||
"@wxt-dev/module-react": "^1.1.2", | ||
"husky": "^9.1.6", | ||
"typescript": "^5.6.3" | ||
}, | ||
"manifest": { | ||
"name": "__MSG_extensionName__", | ||
"default_locale": "en", | ||
"host_permissions": ["<all_urls>"], | ||
"permissions": ["storage", "sidePanel", "scripting", "cookies"], | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "[email protected]" | ||
} | ||
} | ||
"typescript": "^5.6.3", | ||
"vitest": "^2.1.5", | ||
"wxt": "^0.19.16" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import { setupStorage } from "~/lib/storage"; | ||
|
||
const main = async () => { | ||
await setupStorage(); | ||
import { defineBackground } from "wxt/sandbox"; | ||
|
||
const main = () => { | ||
console.log( | ||
"Background service worker is running! Edit `src/app/background` and save to reload.", | ||
); | ||
}; | ||
|
||
void main(); | ||
export default defineBackground(main); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>DevTools</title> | ||
<meta name="manifest.type" content="browser_action" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="./main.tsx"></script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { browser } from "wxt/browser"; | ||
|
||
import { Main } from "~/components/common/main"; | ||
import { Layout } from "~/components/layout/layout"; | ||
|
||
browser.devtools.panels.create( | ||
browser.i18n.getMessage("extensionName"), | ||
"icons/128.png", | ||
"popup.html", | ||
); | ||
|
||
browser.devtools.panels.elements | ||
.createSidebarPane(browser.i18n.getMessage("extensionName")) | ||
.then((sidebar) => { | ||
sidebar.setPage("<p>siema</p>"); | ||
}); | ||
|
||
console.log("siema"); | ||
|
||
const DevTools = () => { | ||
return ( | ||
<Layout className="p-8"> | ||
<Main filename="app/devtools" /> | ||
</Layout> | ||
); | ||
}; | ||
|
||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( | ||
<React.StrictMode> | ||
<DevTools /> | ||
</React.StrictMode>, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!doctype html> | ||
<html> | ||
<html lang="en"> | ||
<head> | ||
<title>TurboStarter Panel</title> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="url:~src/styles/globals.css" /> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>DevTools Panel</title> | ||
<meta name="manifest.type" content="browser_action" /> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script src="url:./index.tsx" type="module"></script> | ||
<script type="module" src="./main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>New Tab</title> | ||
<meta name="manifest.type" content="browser_action" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="./main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.