Skip to content

Commit ef2d485

Browse files
Deploy preview for PR #70
1 parent 23aecdb commit ef2d485

24 files changed

Lines changed: 1735 additions & 0 deletions

pr-70/404.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Cept</title>
6+
<script>
7+
// Single Page App 404 redirect hack for GitHub Pages.
8+
// When GitHub Pages can't find a file, it serves this 404.html.
9+
// We encode the original path into a query parameter and redirect
10+
// to index.html, where the app reads it and restores the route.
11+
//
12+
// Works for both production (/) and preview (/cept/pr-N/) base paths.
13+
14+
(function () {
15+
// The base path is injected at build time via string replacement.
16+
// Falls back to detecting from the current URL.
17+
var basePath = '/cept/pr-70/';
18+
if (basePath.indexOf('__VITE') === 0) {
19+
// Not replaced — detect from script location or use /
20+
basePath = '/';
21+
}
22+
23+
var path = window.location.pathname;
24+
25+
// Strip the base path prefix to get the app-relative route
26+
if (basePath !== '/' && path.indexOf(basePath) === 0) {
27+
path = '/' + path.slice(basePath.length);
28+
}
29+
30+
// Don't redirect if we're already at the root
31+
if (path === '/' || path === '') {
32+
return;
33+
}
34+
35+
// Encode the route path + search + hash into a query param
36+
var redirectUrl =
37+
basePath +
38+
'?route=' +
39+
encodeURIComponent(path + window.location.search + window.location.hash);
40+
41+
window.location.replace(redirectUrl);
42+
})();
43+
</script>
44+
</head>
45+
<body></body>
46+
</html>

pr-70/assets/index-SCME8O5H.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-70/assets/index-SCME8O5H.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-70/assets/main-CAMODzcN.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-70/assets/main-CMsDz_TA.js

Lines changed: 1623 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-70/assets/main-CMsDz_TA.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-70/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta name="description" content="Cept — A fully-featured Notion clone. Client-only. Offline-first." />
7+
<title>Cept</title>
8+
<link rel="manifest" href="/cept/pr-70/manifest.json" />
9+
<meta name="theme-color" content="#1a1a2e" />
10+
<script type="module" crossorigin src="/cept/pr-70/assets/main-CMsDz_TA.js"></script>
11+
<link rel="stylesheet" crossorigin href="/cept/pr-70/assets/main-CAMODzcN.css">
12+
</head>
13+
<body>
14+
<div id="root"></div>
15+
</body>
16+
</html>

pr-70/manifest.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "Cept",
3+
"short_name": "Cept",
4+
"description": "A fully-featured Notion clone backed by Git. Client-only. Offline-first. Collaborative.",
5+
"start_url": "/",
6+
"display": "standalone",
7+
"background_color": "#ffffff",
8+
"theme_color": "#1a1a2e",
9+
"orientation": "any",
10+
"categories": ["productivity", "utilities"],
11+
"icons": [
12+
{
13+
"src": "/icons/icon-192.png",
14+
"sizes": "192x192",
15+
"type": "image/png"
16+
},
17+
{
18+
"src": "/icons/icon-512.png",
19+
"sizes": "512x512",
20+
"type": "image/png"
21+
},
22+
{
23+
"src": "/icons/icon-512.png",
24+
"sizes": "512x512",
25+
"type": "image/png",
26+
"purpose": "maskable"
27+
}
28+
],
29+
"screenshots": [],
30+
"shortcuts": [
31+
{
32+
"name": "New Page",
33+
"url": "/?action=new-page",
34+
"description": "Create a new page"
35+
},
36+
{
37+
"name": "Search",
38+
"url": "/?action=search",
39+
"description": "Search your workspace"
40+
}
41+
]
42+
}

pr-70/screenshots/.gitkeep

Whitespace-only changes.
9.88 KB
Loading

0 commit comments

Comments
 (0)