Skip to content

Commit b9482b3

Browse files
committed
Move static assets around, align build with server and fix PWA #292
1 parent f954b31 commit b9482b3

27 files changed

+35
-17
lines changed

.vscode/tasks.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
"detail": "pnpm test",
2323
"isBackground": true,
2424
"group": "test"
25+
},
26+
{
27+
"type": "shell",
28+
"command": "./build_server.sh",
29+
"label": "build server JS assets",
30+
"isBackground": true,
31+
"group": "build"
2532
}
2633
]
2734
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This changelog covers all three packages, as they are (for now) updated as a who
55
## UNRELEASED
66

77
- Add `Store.parseMetaTags` to load JSON-AD objects stored in the DOM. Speeds up initial page load by allowing server to set JSON-AD objects in the initial HTML response.
8+
- Move static assets around, align build with server and fix PWA #292
89

910
## v0.35.0
1011

build_server.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
pnpm run build &&
4+
rm -r ../atomic-data-rust/server/app_assets/ &&
5+
mkdir ../atomic-data-rust/server/app_assets/ &&
6+
cp -r data-browser/dist/ ../atomic-data-rust/server/app_assets/ &&
7+
cp data-browser/tests/e2e.spec.ts ../atomic-data-rust/server/e2e_tests/e2e-generated.spec.ts &&
8+
cp data-browser/tests/testimage.svg ../atomic-data-rust/server/e2e_tests/testimage.svg &&
9+
cp -r data-browser/tests/e2e.spec.ts-snapshots/ ../atomic-data-rust/server/e2e_tests/e2e-generated.spec.ts-snapshots/

data-browser/index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta content="The easiest way to create, share and model Linked Atomic Data." name="description" />
8-
<link href="/icon.png" rel="icon" type="image/png" />
9-
<link href="/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
10-
<link href="/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" />
11-
<link href="/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" />
12-
<link color="#1e43a3" href="/mask-icon.svg" rel="mask-icon" />
8+
<link href="/app_data/images/icon.png" rel="icon" type="image/png" />
9+
<link href="/app_data/images/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
10+
<link href="/app_data/images/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" />
11+
<link href="/app_data/images/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" />
12+
<link color="#1e43a3" href="/app_data/images/mask-icon.svg" rel="mask-icon" />
1313
<meta content="yes" name="apple-mobile-web-app-capable" />
1414
<meta content="yes" name="mobile-web-app-capable" />
15+
<!-- Custom fonts -->
1516
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
1617
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
1718
<link rel="preconnect" crossorigin="anonymous" href="https://fonts.googleapis.com">
1819
<link rel="preconnect" crossorigin="anonymous" href="https://fonts.gstatic.com">
19-
<link
20-
crossorigin="anonymous"
20+
<link crossorigin="anonymous"
2121
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"
2222
rel="stylesheet">
23-
<title>Atomic Data Browser</title>
23+
<title>Atomic Data</title>
2424
<style>
2525
:root {
2626
--text-splash: black;
@@ -32,6 +32,8 @@
3232
}
3333

3434
</style>
35+
<!-- Meta tags and code added by from Atomic-Server -->
36+
<!-- { inject_html_head } -->
3537
</head>
3638

3739
<body>

data-browser/public/.nojekyll

Whitespace-only changes.
52.4 KB
Loading

0 commit comments

Comments
 (0)