Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp firefox extension #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion Chrome Extension/views/browser_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<div id="mainPopup">
<h1>CircuitVerse Live Circuit!</h1>
<p>
This extension will now load live circuits in Google Slides. Make sure to install Google Slides Add-On as well. For more details, read the user documentation <a href="https://docs.circuitverse.org/#/embedding_circuits?id=embedding-in-google-slides" target="_blank">here</a>.
This extension will now load live circuits in Google Slides. Make sure to install Google Slides Add-On as well. For more details, read the user documentation <a href="https://docs.circuitverse.org/#/chapter2/2cvforeducators?id=embed-circuitverse-simulation-in-google-slides" target="_blank">here</a>.
</p>
</div>
Binary file added Firefox Extension/img/google-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Firefox Extension/img/logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 50 additions & 36 deletions Firefox Extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,53 @@
{
"name": "CircuitVerse",
"version": "0.0.1",
"manifest_version": 2,
"description": "CircuitVerse Firefox Extension",
"homepage_url": "https://circuitverse.org",
"icons": {
"16": "icons/icon16.png",
"19": "icons/icon19.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"browser_action": {
"default_icon": "icons/icon32.png",
"default_popup": "views/browser_action.html",
"default_title": "Embed CircuitVerse Live Circuit"
},
"default_locale": "en",
"background": {
"scripts": [
"src/bg/background.js"
],
"persistent": true
},
"permissions": [
"https://docs.google.com/*"
],
"content_scripts": [
{
"matches": [
"https://docs.google.com/*"
"name": "CircuitVerse",
"version": "0.0.2",
"manifest_version": 2,
"description": "CircuitVerse Firefox Extension",
"homepage_url": "https://circuitverse.org",
"icons": {
"16": "icons/icon16.png",
"19": "icons/icon19.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"browser_action": {
"default_icon": "icons/icon32.png",
"default_popup": "views/popup.html",
"default_title": "Embed CircuitVerse Live Circuit"
},
"default_locale": "en",
"background": {
"scripts": [
"src/bg/background.js"
],
"js": [
"src/inject/inject.js"
"persistent": true
},
"permissions": [
"https://docs.google.com/*",
"https://circuitverse.org/*",
"https://www.googleapis.com/*",
"https://googleapis.com/*",
"https://slides.googleapis.com/*",
"storage",
"tabs"
],
"content_scripts": [
{
"matches": [
"https://docs.google.com/*"
],
"js": [
"src/inject/inject.js"
]
}
],
"web_accessible_resources": [
"views/embedTool.html",
"styles/embedTool.css",
"src/inject/embedTool.js",
"src/inject/gsi.client.js",
"img/google-icon.png",
"img/logo_white.png"
]
}
]
}
}
Loading