Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$ PORT=6002 npm run start
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="src/assets/img/icon-128.png" width="64"/>
<img src="src/assets/img/icon.png" width="64"/>

# Chrome Extension (MV3) Boilerplate with React 18 and Webpack 5

Expand Down
113 changes: 93 additions & 20 deletions package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "chrome-extension-boilerplate-react",
"name": "newscopev2",
"version": "5.0.4",
"description": "A chrome extension boilerplate built with React 18, Webpack 5, and Webpack Dev Server 4",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/lxieyang/chrome-extension-boilerplate-react.git"
"url": "https://github.com/NewScopeExtension/NewScopeV2.git"
},
"scripts": {
"build": "node utils/build.js",
Expand All @@ -14,7 +14,8 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-rnd": "^10.4.14"
},
"devDependencies": {
"@babel/core": "^7.20.12",
Expand Down
Binary file removed src/assets/img/icon-128.png
Binary file not shown.
Binary file removed src/assets/img/icon-34.png
Binary file not shown.
Binary file added src/assets/img/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/containers/Greetings/Greetings.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import icon from '../../assets/img/icon-128.png';
import icon from '../../assets/img/icon.png';

class GreetingComponent extends Component {
state = {
Expand Down
10 changes: 6 additions & 4 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"name": "Chrome Extension with React & Webpack",
"description": "A chrome extension boilerplate built with React 17, Webpack 5, and Webpack Dev Server 4",
"options_page": "options.html",
"background": { "service_worker": "background.bundle.js" },
"background": {
"service_worker": "background.bundle.js"
},
"action": {
"default_popup": "popup.html",
"default_icon": "icon-34.png"
"default_icon": "icon.png"
},
"chrome_url_overrides": {
"newtab": "newtab.html"
},
"icons": {
"128": "icon-128.png"
"128": "icon.png"
},
"content_scripts": [
{
Expand All @@ -24,7 +26,7 @@
"devtools_page": "devtools.html",
"web_accessible_resources": [
{
"resources": ["content.styles.css", "icon-128.png", "icon-34.png"],
"resources": ["content.styles.css", "icon.png"],
"matches": []
}
]
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion src/pages/Devtools/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
chrome.devtools.panels.create(
'Dev Tools from chrome-extension-boilerplate-react',
'icon-34.png',
'icon.png',
'panel.html'
);
46 changes: 46 additions & 0 deletions src/pages/Popup/Modal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* Modal.css */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

.modal {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 4px;
display: flex;
flex-direction: column;
width: 80%; /* 모달 너비 */
max-width: 600px; /* 최대 너비 */
}

.modal-header {
background-color: #f1f1f1;
padding: 8px;
text-align: right;
}

.close-button {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
}

.modal-body {
padding: 16px;
flex-grow: 1;
overflow: auto;
}

.search-popup-container {
margin-top: 10px; /* SearchPopup과 다른 내용 사이에 공간을 추가 */
}
Loading