mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-10 00:36:43 +02:00
update browser extension
This commit is contained in:
1
5-browser-extension/solution/dist/main.js
vendored
1
5-browser-extension/solution/dist/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 3,
|
||||||
"name": "My Carbon Trigger",
|
"name": "My Carbon Trigger",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"permissions": ["<all_urls>"],
|
"host_permissions": ["<all_urls>"],
|
||||||
"background": {
|
"background": {
|
||||||
"scripts": ["background.js"]
|
"service_worker": "background.js"
|
||||||
},
|
},
|
||||||
"browser_action": {
|
"action": {
|
||||||
"default_popup": "index.html"
|
"default_popup": "index.html"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1415
5-browser-extension/solution/package-lock.json
generated
Normal file
1415
5-browser-extension/solution/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,10 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=9.0.0",
|
||||||
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"watch": "webpack --watch",
|
"watch": "webpack --watch",
|
||||||
@@ -13,13 +17,13 @@
|
|||||||
"edge extension",
|
"edge extension",
|
||||||
"carbon usage tracker"
|
"carbon usage tracker"
|
||||||
],
|
],
|
||||||
"author": "Jen Looper",
|
"author": "Microsoft Cloud Advocacy Team",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"webpack": "^4.44.1",
|
"webpack": "^5.88.1",
|
||||||
"webpack-cli": "^3.3.12"
|
"webpack-cli": "^5.1.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.21.1"
|
"axios": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import axios from './node_modules/axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
// form fields
|
// form fields
|
||||||
const form = document.querySelector('.form-data');
|
const form = document.querySelector('.form-data');
|
||||||
|
8
5-browser-extension/start/dist/manifest.json
vendored
8
5-browser-extension/start/dist/manifest.json
vendored
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 3,
|
||||||
"name": "My Carbon Trigger",
|
"name": "My Carbon Trigger",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"permissions": ["<all_urls>"],
|
"host_permissions": ["<all_urls>"],
|
||||||
"background": {
|
"background": {
|
||||||
"scripts": ["background.js"]
|
"service_worker": "background.js"
|
||||||
},
|
},
|
||||||
"browser_action": {
|
"action": {
|
||||||
"default_popup": "index.html"
|
"default_popup": "index.html"
|
||||||
}
|
}
|
||||||
}
|
}
|
1415
5-browser-extension/start/package-lock.json
generated
Normal file
1415
5-browser-extension/start/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,10 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=9.0.0",
|
||||||
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"watch": "webpack --watch",
|
"watch": "webpack --watch",
|
||||||
@@ -13,13 +17,13 @@
|
|||||||
"edge extension",
|
"edge extension",
|
||||||
"carbon usage tracker"
|
"carbon usage tracker"
|
||||||
],
|
],
|
||||||
"author": "Jen Looper",
|
"author": "Microsoft Cloud Advocacy Team",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"webpack": "^4.44.1",
|
"webpack": "^5.88.1",
|
||||||
"webpack-cli": "^3.3.12"
|
"webpack-cli": "^5.1.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.19.2"
|
"axios": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user