diff --git a/src/containers/Greetings/Greetings.jsx b/src/containers/Greetings/Greetings.jsx deleted file mode 100644 index b0404c8..0000000 --- a/src/containers/Greetings/Greetings.jsx +++ /dev/null @@ -1,19 +0,0 @@ -import React, { Component } from 'react'; -import icon from '../../assets/img/icon-128.png'; - -class GreetingComponent extends Component { - state = { - name: 'dev', - }; - - render() { - return ( -
-

Hello, {this.state.name}!

- extension icon -
- ); - } -} - -export default GreetingComponent; diff --git a/src/manifest.json b/src/manifest.json index 1b83717..0a244eb 100755 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,6 @@ "manifest_version": 3, "name": "Vytal", "description": "Vytal", - "options_page": "options.html", "permissions": ["storage", "debugger", "activeTab", "alarms"], "background": { "service_worker": "background.bundle.js" }, "action": { @@ -12,16 +11,9 @@ "icons": { "128": "icon-128.png" }, - "content_scripts": [ - { - "matches": ["http://*/*", "https://*/*", ""], - "js": ["contentScript.bundle.js"], - "css": ["content.styles.css"] - } - ], "web_accessible_resources": [ { - "resources": ["content.styles.css", "icon-128.png", "icon-32.png"], + "resources": ["icon-128.png", "icon-32.png"], "matches": [] } ] diff --git a/src/pages/Content/content.styles.css b/src/pages/Content/content.styles.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/Content/index.js b/src/pages/Content/index.js deleted file mode 100644 index d9e44ce..0000000 --- a/src/pages/Content/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import { printLine } from './modules/print'; - -console.log('Content script works!'); -console.log('Must reload extension for modifications to take effect.'); - -printLine("Using the 'printLine' function from the Print Module"); diff --git a/src/pages/Content/modules/print.js b/src/pages/Content/modules/print.js deleted file mode 100644 index b639665..0000000 --- a/src/pages/Content/modules/print.js +++ /dev/null @@ -1,3 +0,0 @@ -export const printLine = (line) => { - console.log('===> FROM THE PRINT MODULE:', line); -}; diff --git a/src/pages/Newtab/index.html b/src/pages/Newtab/index.html deleted file mode 100644 index d9ef155..0000000 --- a/src/pages/Newtab/index.html +++ /dev/null @@ -1 +0,0 @@ -
diff --git a/src/pages/Newtab/index.jsx b/src/pages/Newtab/index.jsx deleted file mode 100644 index 23a7881..0000000 --- a/src/pages/Newtab/index.jsx +++ /dev/null @@ -1,2 +0,0 @@ -window.location.replace("https://google.com"); - diff --git a/src/pages/Options/Options.css b/src/pages/Options/Options.css deleted file mode 100644 index 08a2ee4..0000000 --- a/src/pages/Options/Options.css +++ /dev/null @@ -1,8 +0,0 @@ -.OptionsContainer { - width: 100%; - height: 50vh; - font-size: 2rem; - display: flex; - align-items: center; - justify-content: center; -} diff --git a/src/pages/Options/Options.tsx b/src/pages/Options/Options.tsx deleted file mode 100644 index f42e02d..0000000 --- a/src/pages/Options/Options.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import React from 'react'; -import './Options.css'; - -interface Props { - title: string; -} - -const Options: React.FC = ({ title }: Props) => { - return
{title} Page
; -}; - -export default Options; diff --git a/src/pages/Options/index.css b/src/pages/Options/index.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/Options/index.html b/src/pages/Options/index.html deleted file mode 100644 index 8ecd255..0000000 --- a/src/pages/Options/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Settings - - - -
- - diff --git a/src/pages/Options/index.jsx b/src/pages/Options/index.jsx deleted file mode 100644 index eada518..0000000 --- a/src/pages/Options/index.jsx +++ /dev/null @@ -1,12 +0,0 @@ -import React from 'react'; -import { render } from 'react-dom'; - -import Options from './Options'; -import './index.css'; - -render( - , - window.document.querySelector('#app-container') -); - -if (module.hot) module.hot.accept(); diff --git a/webpack.config.js b/webpack.config.js index e9b3c0e..df6e7fb 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -36,14 +36,11 @@ if (fileSystem.existsSync(secretsPath)) { var options = { mode: process.env.NODE_ENV || 'development', entry: { - newtab: path.join(__dirname, 'src', 'pages', 'Newtab', 'index.jsx'), - options: path.join(__dirname, 'src', 'pages', 'Options', 'index.jsx'), popup: path.join(__dirname, 'src', 'pages', 'Popup', 'index.jsx'), background: path.join(__dirname, 'src', 'pages', 'Background', 'index.js'), - contentScript: path.join(__dirname, 'src', 'pages', 'Content', 'index.js'), }, chromeExtensionBoilerplate: { - notHotReload: ['background', 'contentScript'], + notHotReload: ['background'], }, output: { filename: '[name].bundle.js', @@ -131,15 +128,6 @@ var options = { }, ], }), - new CopyWebpackPlugin({ - patterns: [ - { - from: 'src/pages/Content/content.styles.css', - to: path.join(__dirname, 'build'), - force: true, - }, - ], - }), new CopyWebpackPlugin({ patterns: [ { @@ -158,24 +146,12 @@ var options = { }, ], }), - new HtmlWebpackPlugin({ - template: path.join(__dirname, 'src', 'pages', 'Options', 'index.html'), - filename: 'options.html', - chunks: ['options'], - cache: false, - }), new HtmlWebpackPlugin({ template: path.join(__dirname, 'src', 'pages', 'Popup', 'index.html'), filename: 'popup.html', chunks: ['popup'], cache: false, }), - new HtmlWebpackPlugin({ - template: path.join(__dirname, 'src', 'pages', 'Newtab', 'index.html'), - filename: 'newtab.html', - chunks: ['newtab'], - cache: false, - }), ], infrastructureLogging: { level: 'info',