Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions frameworks/keyed/scarletsframe/.babelrc

This file was deleted.

16 changes: 16 additions & 0 deletions frameworks/keyed/scarletsframe/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-optional-chaining"
],
"presets": [
[
"@babel/preset-env", {
"targets": {
"browsers": ["last 1 chrome versions"]
},
"shippedProposals": true
}
]
]
}
42 changes: 21 additions & 21 deletions frameworks/keyed/scarletsframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="/css/currentStyle.css" rel="stylesheet"/>
</head>
<body>
<sf-m name="bench-mark">
<sf-m name="benchmark">
<div class="container">
<div class="jumbotron">
<div class="row">
Expand All @@ -16,46 +16,46 @@ <h1>ScarletsFrame-"keyed"</h1>
<div class="col-md-6">
<div class="row">
<div class="col-sm-6 smallpad">
<button type='button' class='btn btn-primary btn-block' id='run' @click='b_run()'>Create 1,000 rows</button>
<button type="button" class="btn btn-primary btn-block" id="run" @click="run">Create 1,000 rows</button>
</div>
<div class="col-sm-6 smallpad">
<button type='button' class='btn btn-primary btn-block' id='runlots' @click='b_runlots()'>Create 10,000 rows</button>
<button type="button" class="btn btn-primary btn-block" id="runlots" @click="runlots">Create 10,000 rows</button>
</div>
<div class="col-sm-6 smallpad">
<button type='button' class='btn btn-primary btn-block' id='add' @click='b_add()'>Append 1,000 rows</button>
<button type="button" class="btn btn-primary btn-block" id="add" @click="add">Append 1,000 rows</button>
</div>
<div class="col-sm-6 smallpad">
<button type='button' class='btn btn-primary btn-block' id='update' @click='b_update()'>Update every 10th row</button>
<button type="button" class="btn btn-primary btn-block" id="update" @click="update">Update every 10th row</button>
</div>
<div class="col-sm-6 smallpad">
<button type='button' class='btn btn-primary btn-block' id='clear' @click='b_clear()'>Clear</button>
<button type="button" class="btn btn-primary btn-block" id="clear" @click="clear">Clear</button>
</div>
<div class="col-sm-6 smallpad">
<button type='button' class='btn btn-primary btn-block' id='swaprows' @click='b_swaprows()'>Swap Rows</button>
<button type="button" class="btn btn-primary btn-block" id="swaprows" @click="swaprows">Swap Rows</button>
</div>
</div>
</div>
</div>
</div>
<table class="table table-hover table-striped test-data">
<tbody id="tbody">
<tr sf-repeat-this="x in list" class="{{ x.selected ? 'danger' : '' }}">
<td class="col-md-1">{{ x.id }}</td>
<td class="col-md-4">
<a class="lbl" @click="b_select(x)">{{ x.label }}</a>
</td>
<td class="col-md-1">
<a class="remove" @click="b_remove(x)">
<span class="remove glyphicon glyphicon-remove" aria-hidden="true"></span>
</a>
</td>
<td class="col-md-6"></td>
</tr>
<tr sf-each="x in list" class="{{ selectedItem === x ? 'danger' : '' }}">
<td class="col-md-1">{{ x.id }}</td>
<td class="col-md-4">
<a class="lbl" @click="selectedItem = x">{{ x.label }}</a>
</td>
<td class="col-md-1">
<a class="remove" @click="remove(x)">
<span class="remove glyphicon glyphicon-remove" aria-hidden="true"></span>
</a>
</td>
<td class="col-md-6"></td>
</tr>
</tbody>
</table>
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
</div>
</sf-m>
<script src='dist/main.js'></script>
<script src="dist/main.js"></script>
</body>
</html>
</html>
Loading