Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 12, 2019. It is now read-only.

Commit 99780da

Browse files
committed
update vidom
1 parent 590a448 commit 99780da

File tree

9 files changed

+23
-21
lines changed

9 files changed

+23
-21
lines changed
File renamed without changes.

vidom-v0.7.1/index.html renamed to vidom-v0.9.8/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>vidom v0.7.1</title>
5+
<title>vidom v0.9.8</title>
66
<link href="/css/currentStyle.css" rel="stylesheet"/>
77
</head>
88
<body>

vidom-v0.7.1/package.json renamed to vidom-v0.9.8/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "1.0.0",
44
"description": "Benchmark for vidom framework",
55
"scripts": {
6-
"build-dev": "webpack -w -d -c webpack.config.js",
7-
"build-prod": "webpack -p -c webpack.config.js"
6+
"build-dev": "webpack -w -d",
7+
"build-prod": "webpack -p"
88
},
99
"keywords": [
1010
"ractive"
@@ -17,14 +17,14 @@
1717
"url": "https://github.com/krausest/js-framework-benchmark.git"
1818
},
1919
"devDependencies": {
20-
"babel-core": "6.21.0",
21-
"babel-loader": "6.2.10",
22-
"babel-plugin-vidom-jsx": "0.4.0",
23-
"babel-preset-es2015": "6.18.0",
24-
"babel-preset-stage-0": "6.16.0",
25-
"webpack": "1.14.0"
20+
"babel-core": "6.24.1",
21+
"babel-loader": "7.0.0",
22+
"babel-plugin-vidom-jsx": "0.5.1",
23+
"babel-preset-es2015": "6.24.1",
24+
"babel-preset-stage-0": "6.24.1",
25+
"webpack": "2.5.1"
2626
},
2727
"dependencies": {
28-
"vidom": "0.7.1"
28+
"vidom": "0.9.8"
2929
}
3030
}

vidom-v0.7.1/src/controller.jsx renamed to vidom-v0.9.8/src/controller.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export class Row extends Component {
1616
this._onDelete = this._onDelete.bind(this);
1717
}
1818

19-
onRender({styleClass, data}) {
19+
onRender(props) {
20+
let {styleClass, data} = this.attrs;
2021
return (<tr key={data.id} className={styleClass}>
2122
<td className="col-md-1">{data.id}</td>
2223
<td className="col-md-4">
@@ -28,12 +29,12 @@ export class Row extends Component {
2829
}
2930

3031
_onClick() {
31-
const {onClick, data} = this.getAttrs();
32+
const {onClick, data} = this.attrs;
3233
onClick(data.id);
3334
}
3435

3536
_onDelete() {
36-
const {onDelete, data} = this.getAttrs();
37+
const {onDelete, data} = this.attrs;
3738
onDelete(data.id);
3839
}
3940
}
@@ -127,7 +128,7 @@ export class Controller extends Component{
127128
<div className="jumbotron">
128129
<div className="row">
129130
<div className="col-md-6">
130-
<h1>Vidom v0.7.1</h1>
131+
<h1>Vidom v0.9.8</h1>
131132
</div>
132133
<div className="col-md-6">
133134
<div className="row">
File renamed without changes.
File renamed without changes.

vidom-v0.7.1/webpack.config.js renamed to vidom-v0.9.8/webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
2+
var path = require('path')
33
var cache = {};
44
var loaders = [
55
{
@@ -16,7 +16,7 @@ var loaders = [
1616
}
1717
];
1818
var extensions = [
19-
'', '.js', '.jsx', '.es6.js', '.msx'
19+
'.js', '.jsx', '.es6.js', '.msx'
2020
];
2121

2222
module.exports = [{
@@ -28,15 +28,16 @@ module.exports = [{
2828
main: './src/main',
2929
},
3030
output: {
31-
path: './dist',
31+
path: path.resolve(__dirname, "dist"),
3232
filename: '[name].js',
3333
sourceMapFilename: "[file].map",
3434
},
3535
resolve: {
3636
extensions: extensions,
37-
root: [
37+
modules: [
3838
__dirname,
39-
__dirname + '/src'
39+
path.resolve(__dirname, "src"),
40+
"node_modules"
4041
],
4142
alias: {
4243
"vidom": __dirname+"/node_modules/vidom/dist/vidom.min.js",

webdriver-ts/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export let frameworks = [
8484
f("tsers-v1.0.0", true),
8585
f("vanillajs-non-keyed", true),
8686
f("vanillajs-keyed", false),
87-
f("vidom-v0.7.1", false),
87+
f("vidom-v0.7.1", false), // remove
8888
f("vue-v2.2.6-keyed", false),
8989
f("vue-v2.2.6-non-keyed", true),
9090
]

webdriver-ts/table.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)