Skip to content

Commit

Permalink
feat: added popup to display current version and links for troublesho…
Browse files Browse the repository at this point in the history
…oting
  • Loading branch information
clementlize committed Oct 4, 2023
1 parent 7aefdc8 commit b5d5808
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Firestore fullscreen",
"version": "1.0.3",
"version": "1.0.4",
"description": "Get a fullscreen experience when browsing the Firestore database.",

"icons": {
Expand All @@ -10,12 +10,14 @@
"48": "images/icon-48.png",
"128": "images/icon-128.png"
},

"content_scripts": [
{
"matches": ["*://console.firebase.google.com/*"],
"js": ["scripts/content.js"],
"css" : ["css/content.css"]
}
]
],
"action": {
"default_popup": "popup/popup.html"
}
}
22 changes: 22 additions & 0 deletions popup/popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
body {
font-family: 'Roboto', sans-serif;
min-width: 400px;
padding: 20px;
font-size: 16px;
}

.main_container {
display: flex;
flex-direction: column;
gap: 20px;
}

.container {
display: flex;
align-items: center;
gap: 20px;
}

ul {
padding-inline-start: 1.5em;
}
32 changes: 32 additions & 0 deletions popup/popup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./popup.css" />
</head>
<body>

<div classname="main_container">

<div classname="container">
<img src="../images/icon-48.png" />
<h1>Firebase Fullscreen</h1>
</div>

<p id="insert_version"></p>

<br/>

<h3>Having trouble?</h3>

<ul>
<li>Make sure you are running the <a href="https://chrome.google.com/webstore/detail/firestore-fullscreen/gemkoopkmgjeegmkoceojgflbpfibnbb" target="_blank">latest version</a></li>
<li>Submit an issue on <a href="https://github.com/clementlize/firestore-fullscreen" target="_blank">Github</a></li>
</ul>

</div>

<script src="./popup.js" type="module"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions popup/popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const manifestData = chrome.runtime.getManifest();
const insertVersion = document.querySelector('#insert_version');
insertVersion.innerHTML = `Version ${manifestData.version}`;

0 comments on commit b5d5808

Please sign in to comment.