Skip to content

Commit 367c4b3

Browse files
Pollepsjoepio
authored andcommitted
#30 Make installable and better error handling
1 parent 0140fa8 commit 367c4b3

32 files changed

+761
-177
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ publish
77
.nohup
88
*/lib
99
*/dist
10+
*/dev-dist
1011
*/yarn-error.log
1112
test-results
1213
*/nohup.out

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This changelog covers all three packages, as they are (for now) updated as a who
77
- Add folders with list & grid views, allow drag & drop uploads #228
88
- Show icons in sidebar
99
- Add scoped search, funded by NGI NLnet Discovery #245
10+
- Make web app installable #30
1011
- Add cookie based authentication #241
1112

1213
## v0.32.1

data-browser/index.html

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
<link href="/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
1010
<link href="/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" />
1111
<link href="/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" />
12-
<link href="/site.webmanifest" rel="manifest" />
13-
<link color="#1e43a3" href="/safari-pinned-tab.svg" rel="mask-icon" />
12+
<link color="#1e43a3" href="/mask-icon.svg" rel="mask-icon" />
1413
<meta content="yes" name="apple-mobile-web-app-capable" />
1514
<meta content="yes" name="mobile-web-app-capable" />
16-
<link rel="preconnect" href="https://fonts.googleapis.com">
17-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15+
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
16+
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
17+
<link rel="preconnect" crossorigin="anonymous" href="https://fonts.googleapis.com">
18+
<link rel="preconnect" crossorigin="anonymous" href="https://fonts.gstatic.com">
1819
<link
20+
crossorigin="anonymous"
1921
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"
2022
rel="stylesheet">
2123
<title>Atomic Data Browser</title>
@@ -89,23 +91,6 @@
8991
.setProperty('--background-color', 'black');
9092
}
9193
</script>
92-
93-
<!-- Service worker -->
94-
<script>
95-
const registerServiceWorker = async () => {
96-
if ('serviceWorker' in navigator) {
97-
try {
98-
await navigator.serviceWorker.register('/sw.js', {
99-
scope: '/',
100-
});
101-
} catch (error) {
102-
console.error(`Registration failed with ${error}`);
103-
}
104-
}
105-
};
106-
107-
registerServiceWorker();
108-
</script>
10994
</body>
11095

11196
</html>

data-browser/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"react-intersection-observer": "^8.31.1",
2626
"react-is": "^18",
2727
"react-markdown": "^8.0.3",
28-
"react-router-dom": "^6.0.0",
2928
"react-router": "^6.0.0",
29+
"react-router-dom": "^6.0.0",
3030
"remark-gfm": "^3.0.1",
3131
"styled-components": "^5.3.3",
3232
"yamde": "^1.7.1"
@@ -42,6 +42,8 @@
4242
"gh-pages": "^3.1.0",
4343
"lint-staged": "^10.5.4",
4444
"types-wm": "^1.1.0",
45+
"vite": "^3.0.5",
46+
"vite-plugin-pwa": "^0.13.1",
4547
"workbox-cli": "^6.4.1"
4648
},
4749
"homepage": "https://atomicdata.dev/",
File renamed without changes.
47 KB
Loading
2.28 KB
Loading
3.79 KB
Loading
9.76 KB
Loading
15.6 KB
Loading

0 commit comments

Comments
 (0)