Skip to content

Commit

Permalink
chore: rename to “.svelte” extension
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Apr 24, 2019
1 parent 37cbca3 commit 26ceec8
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/App.html → src/components/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script>
import Navaid from 'navaid';
import { onDestroy } from 'svelte';
import Nav from './Nav.html';
import Nav from './Nav.svelte';
let Route, params, active;
let uri = location.pathname;
Expand All @@ -34,10 +34,10 @@
addEventListener('popstate', track);
const router = Navaid('/')
.on('/', () => import('../routes/Home.html').then(draw))
.on('/about', () => import('../routes/About.html').then(draw))
.on('/blog', () => import('../routes/Blog.html').then(draw))
.on('/blog/:title', obj => import('../routes/Article.html').then(m => draw(m, obj)))
.on('/', () => import('../routes/Home.svelte').then(draw))
.on('/about', () => import('../routes/About.svelte').then(draw))
.on('/blog', () => import('../routes/Blog.svelte').then(draw))
.on('/blog/:title', obj => import('../routes/Article.svelte').then(m => draw(m, obj)))
.listen();
onDestroy(router.unlisten);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import App from './components/App.html';
import App from './components/App.svelte';

const app = new App({
target: document.body
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 26ceec8

Please sign in to comment.