-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9652fce
commit 51af48e
Showing
35 changed files
with
4,613 additions
and
8,948 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** @type { import("eslint").Linter.Config } */ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:svelte/recommended', | ||
'prettier' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
extraFileExtensions: ['.svelte'] | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.svelte'], | ||
parser: 'svelte-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser' | ||
} | ||
} | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
dist | ||
.DS_Store | ||
node_modules | ||
coverage | ||
/build | ||
/dist | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"printWidth": 80 | ||
"printWidth": 100, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"result":[{"scriptId":"747","url":"file:///Users/bryan/Projects/web/svelte-keyed/src/lib/index.test.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":37488,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":37488,"count":1}],"isBlockCoverage":true},{"functionName":"UserC","ranges":[{"startOffset":479,"endOffset":580,"count":2}],"isBlockCoverage":true},{"functionName":"NameC","ranges":[{"startOffset":599,"endOffset":675,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":701,"endOffset":1403,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":750,"endOffset":873,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":908,"endOffset":1019,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1065,"endOffset":1192,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1252,"endOffset":1399,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1444,"endOffset":5225,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1477,"endOffset":1620,"count":12}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1669,"endOffset":1983,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2028,"endOffset":2284,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2171,"endOffset":2225,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2329,"endOffset":2576,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2469,"endOffset":2487,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2620,"endOffset":2848,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2884,"endOffset":5221,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2957,"endOffset":3155,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3218,"endOffset":3414,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3500,"endOffset":3715,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3778,"endOffset":4019,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3929,"endOffset":3949,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4084,"endOffset":4345,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4232,"endOffset":4272,"count":0}],"isBlockCoverage":false},{"functionName":"","ranges":[{"startOffset":4409,"endOffset":4629,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4689,"endOffset":4943,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4835,"endOffset":4875,"count":0}],"isBlockCoverage":false},{"functionName":"","ranges":[{"startOffset":5002,"endOffset":5215,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5265,"endOffset":8963,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5301,"endOffset":5362,"count":12}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5411,"endOffset":5605,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5648,"endOffset":5896,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5944,"endOffset":6230,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6093,"endOffset":6127,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6274,"endOffset":6531,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6567,"endOffset":8959,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6640,"endOffset":6844,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6907,"endOffset":7109,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7195,"endOffset":7423,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7486,"endOffset":7733,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7640,"endOffset":7660,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7798,"endOffset":8060,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7952,"endOffset":7987,"count":0}],"isBlockCoverage":false},{"functionName":"","ranges":[{"startOffset":8124,"endOffset":8355,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":8415,"endOffset":8670,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":8567,"endOffset":8602,"count":0}],"isBlockCoverage":false},{"functionName":"","ranges":[{"startOffset":8729,"endOffset":8953,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9003,"endOffset":11262,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9036,"endOffset":9179,"count":6}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9228,"endOffset":9566,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9611,"endOffset":9941,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9767,"endOffset":9872,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":9986,"endOffset":10320,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":10145,"endOffset":10185,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":10364,"endOffset":10661,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":10697,"endOffset":11258,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":10760,"endOffset":10978,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11031,"endOffset":11252,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11305,"endOffset":11839,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11369,"endOffset":11835,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11443,"endOffset":11512,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11573,"endOffset":11647,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11708,"endOffset":11782,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11868,"endOffset":12730,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":11901,"endOffset":12007,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":12047,"endOffset":12361,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":12407,"endOffset":12726,"count":1}],"isBlockCoverage":true}]},{"scriptId":"770","url":"file:///Users/bryan/Projects/web/svelte-keyed/src/lib/index.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":8853,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":8853,"count":1}],"isBlockCoverage":true},{"functionName":"getTokens","ranges":[{"startOffset":354,"endOffset":564,"count":43},{"startOffset":466,"endOffset":523,"count":14}],"isBlockCoverage":true},{"functionName":"get","ranges":[{"startOffset":663,"endOffset":688,"count":4}],"isBlockCoverage":true},{"functionName":"getNested","ranges":[{"startOffset":710,"endOffset":893,"count":31},{"startOffset":813,"endOffset":841,"count":8},{"startOffset":841,"endOffset":892,"count":23}],"isBlockCoverage":true},{"functionName":"clonedWithPrototype","ranges":[{"startOffset":923,"endOffset":1025,"count":8}],"isBlockCoverage":true},{"functionName":"keyed","ranges":[{"startOffset":1027,"endOffset":2195,"count":39},{"startOffset":1151,"endOffset":1211,"count":3},{"startOffset":1211,"endOffset":2194,"count":36}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1116,"endOffset":1148,"count":49}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1389,"endOffset":1431,"count":18}],"isBlockCoverage":true},{"functionName":"set","ranges":[{"startOffset":1448,"endOffset":1745,"count":11}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1479,"endOffset":1739,"count":11},{"startOffset":1521,"endOffset":1554,"count":4},{"startOffset":1554,"endOffset":1602,"count":7},{"startOffset":1602,"endOffset":1616,"count":1},{"startOffset":1617,"endOffset":1647,"count":6}],"isBlockCoverage":true},{"functionName":"update","ranges":[{"startOffset":1764,"endOffset":2119,"count":7}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1792,"endOffset":2113,"count":7},{"startOffset":1834,"endOffset":1867,"count":4},{"startOffset":1867,"endOffset":1973,"count":3},{"startOffset":1973,"endOffset":1987,"count":1},{"startOffset":1988,"endOffset":2018,"count":2}],"isBlockCoverage":true},{"functionName":"get","ranges":[{"startOffset":2289,"endOffset":2310,"count":39}],"isBlockCoverage":true}]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
body, html { | ||
margin:0; padding: 0; | ||
height: 100%; | ||
} | ||
body { | ||
font-family: Helvetica Neue, Helvetica, Arial; | ||
font-size: 14px; | ||
color:#333; | ||
} | ||
.small { font-size: 12px; } | ||
*, *:after, *:before { | ||
-webkit-box-sizing:border-box; | ||
-moz-box-sizing:border-box; | ||
box-sizing:border-box; | ||
} | ||
h1 { font-size: 20px; margin: 0;} | ||
h2 { font-size: 14px; } | ||
pre { | ||
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; | ||
margin: 0; | ||
padding: 0; | ||
-moz-tab-size: 2; | ||
-o-tab-size: 2; | ||
tab-size: 2; | ||
} | ||
a { color:#0074D9; text-decoration:none; } | ||
a:hover { text-decoration:underline; } | ||
.strong { font-weight: bold; } | ||
.space-top1 { padding: 10px 0 0 0; } | ||
.pad2y { padding: 20px 0; } | ||
.pad1y { padding: 10px 0; } | ||
.pad2x { padding: 0 20px; } | ||
.pad2 { padding: 20px; } | ||
.pad1 { padding: 10px; } | ||
.space-left2 { padding-left:55px; } | ||
.space-right2 { padding-right:20px; } | ||
.center { text-align:center; } | ||
.clearfix { display:block; } | ||
.clearfix:after { | ||
content:''; | ||
display:block; | ||
height:0; | ||
clear:both; | ||
visibility:hidden; | ||
} | ||
.fl { float: left; } | ||
@media only screen and (max-width:640px) { | ||
.col3 { width:100%; max-width:100%; } | ||
.hide-mobile { display:none!important; } | ||
} | ||
|
||
.quiet { | ||
color: #7f7f7f; | ||
color: rgba(0,0,0,0.5); | ||
} | ||
.quiet a { opacity: 0.7; } | ||
|
||
.fraction { | ||
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; | ||
font-size: 10px; | ||
color: #555; | ||
background: #E8E8E8; | ||
padding: 4px 5px; | ||
border-radius: 3px; | ||
vertical-align: middle; | ||
} | ||
|
||
div.path a:link, div.path a:visited { color: #333; } | ||
table.coverage { | ||
border-collapse: collapse; | ||
margin: 10px 0 0 0; | ||
padding: 0; | ||
} | ||
|
||
table.coverage td { | ||
margin: 0; | ||
padding: 0; | ||
vertical-align: top; | ||
} | ||
table.coverage td.line-count { | ||
text-align: right; | ||
padding: 0 5px 0 20px; | ||
} | ||
table.coverage td.line-coverage { | ||
text-align: right; | ||
padding-right: 10px; | ||
min-width:20px; | ||
} | ||
|
||
table.coverage td span.cline-any { | ||
display: inline-block; | ||
padding: 0 5px; | ||
width: 100%; | ||
} | ||
.missing-if-branch { | ||
display: inline-block; | ||
margin-right: 5px; | ||
border-radius: 3px; | ||
position: relative; | ||
padding: 0 4px; | ||
background: #333; | ||
color: yellow; | ||
} | ||
|
||
.skip-if-branch { | ||
display: none; | ||
margin-right: 10px; | ||
position: relative; | ||
padding: 0 4px; | ||
background: #ccc; | ||
color: white; | ||
} | ||
.missing-if-branch .typ, .skip-if-branch .typ { | ||
color: inherit !important; | ||
} | ||
.coverage-summary { | ||
border-collapse: collapse; | ||
width: 100%; | ||
} | ||
.coverage-summary tr { border-bottom: 1px solid #bbb; } | ||
.keyline-all { border: 1px solid #ddd; } | ||
.coverage-summary td, .coverage-summary th { padding: 10px; } | ||
.coverage-summary tbody { border: 1px solid #bbb; } | ||
.coverage-summary td { border-right: 1px solid #bbb; } | ||
.coverage-summary td:last-child { border-right: none; } | ||
.coverage-summary th { | ||
text-align: left; | ||
font-weight: normal; | ||
white-space: nowrap; | ||
} | ||
.coverage-summary th.file { border-right: none !important; } | ||
.coverage-summary th.pct { } | ||
.coverage-summary th.pic, | ||
.coverage-summary th.abs, | ||
.coverage-summary td.pct, | ||
.coverage-summary td.abs { text-align: right; } | ||
.coverage-summary td.file { white-space: nowrap; } | ||
.coverage-summary td.pic { min-width: 120px !important; } | ||
.coverage-summary tfoot td { } | ||
|
||
.coverage-summary .sorter { | ||
height: 10px; | ||
width: 7px; | ||
display: inline-block; | ||
margin-left: 0.5em; | ||
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; | ||
} | ||
.coverage-summary .sorted .sorter { | ||
background-position: 0 -20px; | ||
} | ||
.coverage-summary .sorted-desc .sorter { | ||
background-position: 0 -10px; | ||
} | ||
.status-line { height: 10px; } | ||
/* yellow */ | ||
.cbranch-no { background: yellow !important; color: #111; } | ||
/* dark red */ | ||
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } | ||
.low .chart { border:1px solid #C21F39 } | ||
.highlighted, | ||
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ | ||
background: #C21F39 !important; | ||
} | ||
/* medium red */ | ||
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } | ||
/* light red */ | ||
.low, .cline-no { background:#FCE1E5 } | ||
/* light green */ | ||
.high, .cline-yes { background:rgb(230,245,208) } | ||
/* medium green */ | ||
.cstat-yes { background:rgb(161,215,106) } | ||
/* dark green */ | ||
.status-line.high, .high .cover-fill { background:rgb(77,146,33) } | ||
.high .chart { border:1px solid rgb(77,146,33) } | ||
/* dark yellow (gold) */ | ||
.status-line.medium, .medium .cover-fill { background: #f9cd0b; } | ||
.medium .chart { border:1px solid #f9cd0b; } | ||
/* light yellow */ | ||
.medium { background: #fff4c2; } | ||
|
||
.cstat-skip { background: #ddd; color: #111; } | ||
.fstat-skip { background: #ddd; color: #111 !important; } | ||
.cbranch-skip { background: #ddd !important; color: #111; } | ||
|
||
span.cline-neutral { background: #eaeaea; } | ||
|
||
.coverage-summary td.empty { | ||
opacity: .5; | ||
padding-top: 4px; | ||
padding-bottom: 4px; | ||
line-height: 1; | ||
color: #888; | ||
} | ||
|
||
.cover-fill, .cover-empty { | ||
display:inline-block; | ||
height: 12px; | ||
} | ||
.chart { | ||
line-height: 0; | ||
} | ||
.cover-empty { | ||
background: white; | ||
} | ||
.cover-full { | ||
border-right: none !important; | ||
} | ||
pre.prettyprint { | ||
border: none !important; | ||
padding: 0 !important; | ||
margin: 0 !important; | ||
} | ||
.com { color: #999 !important; } | ||
.ignore-none { color: #999; font-weight: normal; } | ||
|
||
.wrapper { | ||
min-height: 100%; | ||
height: auto !important; | ||
height: 100%; | ||
margin: 0 auto -48px; | ||
} | ||
.footer, .push { | ||
height: 48px; | ||
} |
Oops, something went wrong.