tidy up a couple of things

pull/1900/head
Rich Harris 7 years ago
parent 29052aba7d
commit 29fd8d7881

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -1,6 +1,6 @@
<script> <script>
import Icon from './icon.html'; import Icon from './Icon.html';
import Logo from './logo.html'; import Logo from './Logo.html';
export let segment; export let segment;

@ -1,20 +1,13 @@
<script> <script>
import InlineSvg from '../components/inline-svg.html'; import InlineSvg from '../components/InlineSvg.html';
import DebugCss from '../components/debug-css.html'; import Nav from '../components/TopNav.html';
import Nav from '../components/top-nav.html';
export let child; export let child;
const dev = process.env.NODE_ENV === 'development';
</script> </script>
{#if dev}
<DebugCss style='bottom:4rem; right:3rem;' />
{/if}
<InlineSvg /> <InlineSvg />
<Nav segment={child.segment} /> <Nav segment={child.segment} />
<main role='main'> <main>
<svelte:component this={child.component} {...child.props} /> <svelte:component this={child.component} {...child.props} />
</main> </main>

@ -1,6 +1,6 @@
<script> <script>
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import Icon from '../../components/icon.html'; import Icon from '../../components/Icon.html';
export let sections = []; export let sections = [];
export let active_section = null; export let active_section = null;

@ -8,7 +8,7 @@
<script> <script>
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import GuideContents from './_GuideContents.html'; import GuideContents from './_GuideContents.html';
import Icon from '../../components/icon.html'; import Icon from '../../components/Icon.html';
// NOT YET // NOT YET
// get offset from css-vars (for smooth-scroll) // get offset from css-vars (for smooth-scroll)

@ -1,7 +1,6 @@
<script> <script>
import Icon from '../components/icon.html'; import Icon from '../components/Icon.html';
import Logo from '../components/logo.html'; import Logo from '../components/Logo.html';
import Iso from '../components/isometry.html';
let sy = 0; let sy = 0;
</script> </script>

@ -2,7 +2,7 @@
import * as fleece from 'golden-fleece'; import * as fleece from 'golden-fleece';
import { createEventDispatcher } from 'svelte'; import { createEventDispatcher } from 'svelte';
import UserMenu from './UserMenu.html'; import UserMenu from './UserMenu.html';
import Icon from '../../../../components/icon.html'; import Icon from '../../../../components/Icon.html';
import * as doNotZip from 'do-not-zip'; import * as doNotZip from 'do-not-zip';
import downloadBlob from '../../_utils/downloadBlob.js'; import downloadBlob from '../../_utils/downloadBlob.js';
import { user } from '../../../../user.js'; import { user } from '../../../../user.js';

@ -1,6 +1,6 @@
<script> <script>
import { createEventDispatcher } from 'svelte'; import { createEventDispatcher } from 'svelte';
import Icon from '../../../../components/icon.html'; import Icon from '../../../../components/Icon.html';
import { enter } from '../events.js'; import { enter } from '../events.js';
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();

Loading…
Cancel
Save