Skip to content

Commit

Permalink
Merge pull request #1503 from BlueBrain/fix/migration/enhance-manifest
Browse files Browse the repository at this point in the history
Enhance PWA manifest file
  • Loading branch information
danburonline authored Feb 22, 2024
2 parents 5e83b58 + ac4039b commit 833ba78
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 7 deletions.
Binary file added public/screenshots/001.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 public/screenshots/002.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 public/screenshots/003.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 public/screenshots/004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 39 additions & 5 deletions public/web-manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,48 @@
{
"name": "Nexus Fusion",
"short_name": "BBP-NF",
"name": "Blue Brain Nexus Fusion",
"short_name": "Fusion",
"description": "The interface of Blue Brain Nexus, the open-source knowledge graph for data-driven science.",
"dir": "left",
"lang": "en-US",
"display": "standalone",
"orientation": "portrait",
"orientation": "landscape",
"background_color": "#fff",
"theme_color": "#fff",
"start_url": "<!--start-url-->",
"theme_color": "#050a56",
"start_url": "/",
"scope": "/",
"categories": [
"science",
"knowledge graph",
"neuroscience",
"data-driven",
"in silico"
],
"screenshots": [
{
"src": "screenshots/001.png",
"form_factor": "wide",
"type": "image/png",
"sizes": "3024x1694"
},
{
"src": "screenshots/002.png",
"form_factor": "wide",
"type": "image/png",
"sizes": "3024x1694"
},
{
"src": "screenshots/003.png",
"form_factor": "wide",
"type": "image/png",
"sizes": "3024x1694"
},
{
"src": "screenshots/004.png",
"form_factor": "wide",
"type": "image/png",
"sizes": "3024x1694"
}
],
"icons": [
{
"src": "favicon-64x64.png",
Expand Down
4 changes: 2 additions & 2 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ app.get(`${base}/web-manifest`, (req, res) => {
NODE_ENV === 'development' ? req.protocol : 'https'
}://${host}${base}`;

const manifestTempalte = fs.readFileSync(
const manifestTemplate = fs.readFileSync(
path.join(
__dirname,
NODE_ENV === 'development' ? '../public' : '',
Expand All @@ -199,7 +199,7 @@ app.get(`${base}/web-manifest`, (req, res) => {
'utf-8'
);

const manifest = manifestTempalte.replace('<!--start-url-->', startUrl);
const manifest = manifestTemplate.replace('<!--start-url-->', startUrl);

res.header('content-type', 'application/json');
return res.status(200).send(manifest);
Expand Down

0 comments on commit 833ba78

Please sign in to comment.