Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed Dec 16, 2017
1 parent 7237891 commit 7224738
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
18 changes: 14 additions & 4 deletions components/nav.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{{#each pages as page}}
<li><a href="#{{page.id}}">{{page.title}}</a></li>
{{/each}}

<div class="navbar">
<div class="navbar-section">
{{#each pages as page}}
<a class="btn btn-link" href="#{{page.id}}">{{page.title}}</a>
{{/each}}
</div>
<div class="navbar-section">
</div>
</div>

<script>
import 'spectre.css/dist/spectre.min.css';
export default {
data() {
return {};
return {
searchResult: ''
};
}
}
</script>
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"license": "ISC",
"dependencies": {
"can-define": "^1.5.4",
"spectre.css": "^0.5.0",
"steal": "^1.6.2",
"svelte": "^1.49.1"
},
Expand All @@ -19,7 +20,8 @@
"html": "steal-svelte-plugin"
},
"plugins": [
"steal-svelte-plugin"
"steal-svelte-plugin",
"steal-css"
],
"bundle": [
"steal-svelte/pages/circle.html",
Expand All @@ -29,6 +31,7 @@
]
},
"devDependencies": {
"steal-css": "^1.3.1",
"steal-tools": "^1.10.0"
}
}
7 changes: 5 additions & 2 deletions pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ <h1>Home</h1>
<p>This page demonstrates a basic example of progressively loaded svelte app.</p>
<h3>search for some data!</h3>

<input bind:value="viewModel.search" />
<div class="input-group input-inline">
<input bind:value="viewModel.search" class="form-input" type="text" placeholder="search" data-cip-id="cIPJQ342845639">
<button class="btn btn-primary input-group-btn">Search</button>
</div>

<table>
<table class="table">
{{#each viewModel.data as row, index}}
<tr on:click="select(row, viewModel)"><td>{{row.code}}</td><td>{{row.name}}</td></tr>
{{/each}}
Expand Down

0 comments on commit 7224738

Please sign in to comment.