diff --git a/with-mellowtel/.gitignore b/with-mellowtel/.gitignore deleted file mode 100644 index 54afb48b..00000000 --- a/with-mellowtel/.gitignore +++ /dev/null @@ -1,33 +0,0 @@ - -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# local env files -.env*.local - -out/ -build/ -dist/ - -# plasmo -.plasmo - -# typescript -.tsbuildinfo diff --git a/with-mellowtel/.prettierrc.mjs b/with-mellowtel/.prettierrc.mjs deleted file mode 100644 index 77f84c21..00000000 --- a/with-mellowtel/.prettierrc.mjs +++ /dev/null @@ -1,26 +0,0 @@ -/** - * @type {import('prettier').Options} - */ -export default { - printWidth: 80, - tabWidth: 2, - useTabs: false, - semi: false, - singleQuote: false, - trailingComma: "none", - bracketSpacing: true, - bracketSameLine: true, - plugins: ["@ianvs/prettier-plugin-sort-imports"], - importOrder: [ - "", // Node.js built-in modules - "", // Imports not matched by other special words or groups. - "", // Empty line - "^@plasmo/(.*)$", - "", - "^@plasmohq/(.*)$", - "", - "^~(.*)$", - "", - "^[./]" - ] -} diff --git a/with-mellowtel/README.md b/with-mellowtel/README.md deleted file mode 100644 index ca9c259f..00000000 --- a/with-mellowtel/README.md +++ /dev/null @@ -1,33 +0,0 @@ -This is a [Plasmo extension](https://docs.plasmo.com/) project bootstrapped with [`plasmo init`](https://www.npmjs.com/package/plasmo). - -## Getting Started - -First, run the development server: - -```bash -pnpm dev -# or -npm run dev -``` - -Open your browser and load the appropriate development build. For example, if you are developing for the chrome browser, using manifest v3, use: `build/chrome-mv3-dev`. - -You can start editing the popup by modifying `popup.tsx`. It should auto-update as you make changes. To add an options page, simply add a `options.tsx` file to the root of the project, with a react component default exported. Likewise to add a content page, add a `content.ts` file to the root of the project, importing some module and do some logic, then reload the extension on your browser. - -For further guidance, [visit our Documentation](https://docs.plasmo.com/) - -## Making production build - -Run the following: - -```bash -pnpm build -# or -npm run build -``` - -This should create a production bundle for your extension, ready to be zipped and published to the stores. - -## Submit to the webstores - -The easiest way to deploy your Plasmo extension is to use the built-in [bpp](https://bpp.browser.market) GitHub action. Prior to using this action however, make sure to build your extension and upload the first version to the store to establish the basic credentials. Then, simply follow [this setup instruction](https://docs.plasmo.com/framework/workflows/submit) and you should be on your way for automated submission! diff --git a/with-mellowtel/assets/icon.png b/with-mellowtel/assets/icon.png deleted file mode 100644 index cfd931be..00000000 Binary files a/with-mellowtel/assets/icon.png and /dev/null differ diff --git a/with-mellowtel/background.ts b/with-mellowtel/background.ts deleted file mode 100644 index 7455b061..00000000 --- a/with-mellowtel/background.ts +++ /dev/null @@ -1,23 +0,0 @@ - -import Mellowtel from "mellowtel" - - -let mellowtel -;(async () => { - mellowtel = new Mellowtel(process.env.PLASMO_PUBLIC_MELLOWTEL) - await mellowtel.initBackground() -})() - -chrome.runtime.onInstalled.addListener(async function (details) { - console.log("Extension Installed or Updated", details) - // If you want to handle first install and updates differently - /** - if(details.reason === "install"){ - // call a function to handle a first install - } else if(details.reason === "update") { - // call a function to handle an update - } - **/ - await mellowtel.generateAndOpenOptInLink() -}) - diff --git a/with-mellowtel/content.ts b/with-mellowtel/content.ts deleted file mode 100644 index 3e8aa085..00000000 --- a/with-mellowtel/content.ts +++ /dev/null @@ -1,17 +0,0 @@ -import Mellowtel from "mellowtel" -import type { PlasmoCSConfig } from "plasmo" - -let mellowtel - -export const config: PlasmoCSConfig = { - matches: [""], - all_frames: true, - run_at: "document_start" -} -const start = async () => { - mellowtel = new Mellowtel(process.env.PLASMO_PUBLIC_MELLOWTEL) //Change here with your configuration key - const resp = await mellowtel.initContentScript() - console.log("TEST", resp, mellowtel) -} - -start() diff --git a/with-mellowtel/example.env.local b/with-mellowtel/example.env.local deleted file mode 100644 index 5daf4c1a..00000000 --- a/with-mellowtel/example.env.local +++ /dev/null @@ -1 +0,0 @@ -PLASMO_PUBLIC_MELLOWTEL= \ No newline at end of file diff --git a/with-mellowtel/package.json b/with-mellowtel/package.json deleted file mode 100644 index aa5fcdf4..00000000 --- a/with-mellowtel/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "with-mellowtel", - "displayName": "With mellowtel", - "version": "0.0.1", - "description": "A basic Plasmo extension.", - "author": "Plasmo Corp. ", - "scripts": { - "dev": "plasmo dev", - "build": "plasmo build", - "package": "plasmo package" - }, - "dependencies": { - "plasmo": "workspace:*", - "mellowtel": "1.3.5", - "react": "18.2.0", - "react-dom": "18.2.0" - }, - "devDependencies": { - "@ianvs/prettier-plugin-sort-imports": "4.1.1", - "@types/chrome": "0.0.258", - "@types/node": "20.11.5", - "@types/react": "18.2.48", - "@types/react-dom": "18.2.18", - "prettier": "3.2.4", - "typescript": "5.3.3" - }, - "manifest": { - "permissions": [ - "activeTab", - "identity", - "storage", - "tabs", - "declarativeNetRequest" - ], - "host_permissions": [ - "" - ] - } -} diff --git a/with-mellowtel/popup.tsx b/with-mellowtel/popup.tsx deleted file mode 100644 index 9a127e03..00000000 --- a/with-mellowtel/popup.tsx +++ /dev/null @@ -1,23 +0,0 @@ - -import Mellowtel from "mellowtel" - -const Popup: React.FC = () => { - - - const handleMellowtelSettings = async () => { - const mellowtel = new Mellowtel(process.env.PLASMO_PUBLIC_MELLOWTEL) - const link = await mellowtel.generateSettingsLink() - chrome.tabs.create({ url: link }) - } - - return ( -
- -
- ) -} - -export default Popup diff --git a/with-mellowtel/tsconfig.json b/with-mellowtel/tsconfig.json deleted file mode 100644 index 9c10ec49..00000000 --- a/with-mellowtel/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "plasmo/templates/tsconfig.base", - "exclude": [ - "node_modules" - ], - "include": [ - ".plasmo/index.d.ts", - "./**/*.ts", - "./**/*.tsx" - ], - "compilerOptions": { - "paths": { - "~*": [ - "./*" - ] - }, - "baseUrl": "." - } -}