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

Commit 26a1223

Browse files
committed
badges on docs
1 parent 4dc03e1 commit 26a1223

File tree

7 files changed

+27
-19
lines changed

7 files changed

+27
-19
lines changed

dist/ko-component-router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ return /******/ (function(modules) { // webpackBootstrap
18011801
ctx = ctx.$parent;
18021802
}
18031803

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

18071807
/***/ }

dist/ko-component-router.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/app.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ ko.components.register('app', {
4747
template: `
4848
<div class="container">
4949
<div class="page-header">
50-
<small class="text-muted pull-right">
50+
<small class="text-muted text-right pull-right">
51+
<p>
52+
<img src="https://img.shields.io/npm/v/ko-component-router.svg" alt="NPM" title="" />
53+
<img src="https://img.shields.io/bower/v/ko-component-router.svg" alt="Bower" title="" />
54+
<img src="https://img.shields.io/npm/l/ko-component-router.svg" alt="MIT" title="" />
55+
<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>
56+
<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>
57+
<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>
58+
</p>
5159
pssst... this documentation is built using knockout + this router,
5260
<a href="https://github.com/caseyWebb/ko-component-router/tree/gh-pages/example">source</a>
5361
</small>

example/dist/bundle.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/dist/bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/binding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ function getRouter(ctx) {
4747
ctx = ctx.$parent
4848
}
4949

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

test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ ko.components.register('anchors', {
267267
<a id="about-link" href="/about"></a>
268268
<div id="ignored-links">
269269
<button id="not-a-link"></button>
270-
<a id="download-link" download="/foo"></a>
271-
<a id="blank-target-link" target="_blank"></a>
272-
<a id="external-link" rel="external"></a>
273-
<a id="mailto-link" href="mailto:[email protected]"></a>
274-
<a id="cross-origin-link" href="http://example.com/"></a>
270+
<a download="/foo"></a>
271+
<a target="_blank"></a>
272+
<a rel="external"></a>
273+
<a href="mailto:[email protected]"></a>
274+
<a href="http://example.com/"></a>
275275
</div>
276276
`
277277
})

0 commit comments

Comments
 (0)