Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
badges on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Jan 5, 2016
1 parent 4dc03e1 commit 26a1223
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dist/ko-component-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ return /******/ (function(modules) { // webpackBootstrap
ctx = ctx.$parent;
}

throw new Error('ko-component-router bindings must be within a router');
throw new Error('ko-component-router bindings must be in the same context as, or nested within, a router');
}

/***/ }
Expand Down
2 changes: 1 addition & 1 deletion dist/ko-component-router.min.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ ko.components.register('app', {
template: `
<div class="container">
<div class="page-header">
<small class="text-muted pull-right">
<small class="text-muted text-right pull-right">
<p>
<img src="https://img.shields.io/npm/v/ko-component-router.svg" alt="NPM" title="" />
<img src="https://img.shields.io/bower/v/ko-component-router.svg" alt="Bower" title="" />
<img src="https://img.shields.io/npm/l/ko-component-router.svg" alt="MIT" title="" />
<a href="https://travis-ci.org/caseyWebb/ko-component-router"><img src="https://img.shields.io/travis/caseyWebb/ko-component-router.svg" alt="Travis" title="" /></a>
<a href="https://codeclimate.com/github/caseyWebb/ko-component-router"><img src="https://img.shields.io/codeclimate/github/caseyWebb/ko-component-router.svg" alt="CodeClimate" title="" /></a>
<a href="https://codeclimate.com/github/caseyWebb/ko-component-router/coverage"><img src="https://img.shields.io/codeclimate/coverage/github/caseyWebb/ko-component-router.svg" alt="Test Coverage" title="" /></a>
</p>
pssst... this documentation is built using knockout + this router,
<a href="https://github.com/caseyWebb/ko-component-router/tree/gh-pages/example">source</a>
</small>
Expand Down
18 changes: 9 additions & 9 deletions example/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/dist/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ function getRouter(ctx) {
ctx = ctx.$parent
}

throw new Error('ko-component-router bindings must be within a router')
throw new Error('ko-component-router bindings must be in the same context as, or nested within, a router')
}
10 changes: 5 additions & 5 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ ko.components.register('anchors', {
<a id="about-link" href="/about"></a>
<div id="ignored-links">
<button id="not-a-link"></button>
<a id="download-link" download="/foo"></a>
<a id="blank-target-link" target="_blank"></a>
<a id="external-link" rel="external"></a>
<a id="mailto-link" href="mailto:foobar@example.com"></a>
<a id="cross-origin-link" href="http://example.com/"></a>
<a download="/foo"></a>
<a target="_blank"></a>
<a rel="external"></a>
<a href="mailto:foobar@example.com"></a>
<a href="http://example.com/"></a>
</div>
`
})
Expand Down

0 comments on commit 26a1223

Please sign in to comment.