Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
koffeinfrei committed Aug 27, 2023
1 parent d66d25c commit f402dde
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
10 changes: 6 additions & 4 deletions client/src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Navbar isLoggedIn={$isAuthenticated} isApp={$location !== '/www'} />
<Navbar isLoggedIn={$isAuthenticated} {isApp} />
<main>
{#if !isPwa()}
<MultipleTabs />
Expand All @@ -22,8 +22,10 @@
import MultipleTabs from './MultipleTabs.svelte'
import { isPwa } from './capabilities'
$: console.log('$location', $location)
$: console.log('location', window.location)
/* $: console.log('$location', $location) */
/* $: console.log('location.pathname', window.location.pathname) */
$: isApp = window.location.pathname == '/www.html'
$: console.log('isApp', isApp);
const authenticate = async () => {
if ($isAuthenticated === true) return true
Expand Down Expand Up @@ -82,7 +84,7 @@
}),
'/': wrap({
asyncComponent: () => {},
conditions: [() => push('/notes')]
conditions: [() => push(isApp ? '/www' : '/notes')]
}),
'/www': wrap({
component: LandingPage,
Expand Down
15 changes: 15 additions & 0 deletions client/www.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#2c679f"/>
<link rel="manifest" href="/manifest.json">
<title>unnote</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

0 comments on commit f402dde

Please sign in to comment.