Skip to content

Commit acf764f

Browse files
committed
change the meteor version
1 parent 45ef7ab commit acf764f

File tree

9 files changed

+130
-116
lines changed

9 files changed

+130
-116
lines changed

.meteor/release

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+

.meteor/versions

+83-83
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
2-
3-
4-
1+
2+
3+
4+
55
66
77
88
99
10-
11-
12-
13-
babel-compiler@6.5.2
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
24-
10+
11+
12+
13+
babel-compiler@6.6.1
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
2525
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
4646
4747
4848
@@ -51,52 +51,52 @@ iron:[email protected]
5151
5252
5353
54-
55-
56-
57-
58-
59-
54+
55+
56+
57+
58+
59+
6060
61-
62-
63-
64-
65-
66-
67-
68-
69-
70-
71-
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
7272
73-
73+
7474
75-
76-
77-
75+
76+
77+
7878
79-
80-
81-
82-
83-
84-
85-
86-
87-
88-
89-
90-
91-
92-
93-
94-
95-
96-
79+
80+
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
9797
98-
99-
100-
101-
102-
98+
99+
100+
101+
102+

client/stylesheets/biding.css

+13-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
}
88
.biding-top{
99
width: 100%;
10-
height: 20rem;
10+
height: 40rem;
1111
}
1212

1313
.biding-down{
1414
width: 100%;
15-
height: 10rem;
15+
height: 15rem;
16+
padding: 15px;
17+
font-family: Consolas, monaco, monospace;
18+
font-weight: 600;
1619
}
1720

1821
.biding-top img{
@@ -21,12 +24,18 @@
2124
}
2225
.biding-graph{
2326
width: 100%;
24-
height: 30rem;
27+
height: 55rem;
2528
border: solid 0.5px;
2629
}
2730
.biding-input-buttion{
28-
margin-top: 1rem;
31+
margin-top: 3rem;
2932
}
3033
.biding .col-md-4{
3134
padding: 0;
35+
}
36+
.bidPrice .price-detail{
37+
font-family: Consolas, monaco, monospace;
38+
font-weight: bold;
39+
padding: 1rem;
40+
margin: 0;
3241
}

client/views/templates/bidPrice.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<template name="bidPrice">
22
<li>
3-
<h6>
3+
<p class="price-detail">
44
<span class="consumer">{{customerName}}</span>
55
<span class="date">on {{submitted}}</span>
6-
</h6>
7-
<p>{{price}}</p>
6+
<br/>
7+
{{price}}
8+
</p>
89
</li>
910
</template>

client/views/templates/bidgraph.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template name="bidgraph">
22
<div id="chart">
3-
<svg style="height:370px;width:350px"/>
3+
<svg style="height:370px;width:350px; margin-top: 10rem;"/>
44
</div>
55
</template>

client/views/templates/bidgraph.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ Template.bidgraph.rendered = function() {
4343
console.log(auction.bidPrices);
4444
var bidXY = [];
4545
for(var i = 0; i < auction.bidPrices.length; i++){
46-
bidXY.push({ x:i+1, y:auction.bidPrices[i].price });
46+
bidXY.push({ x:i+1, y:auction.bidPrices[i].price });chart
4747
console.log(auction.bidPrices[i].price);
4848
}
4949

5050
var bidData = [{values: bidXY, key: 'Trendency', col: '#2ca02c'}]
5151
d3.select('#chart svg').datum(bidData).call(chart);
52+
chart.yDomain([0,auction.bidPrices[auction.bidPrices.length-1].price]);
5253
chart.update();
5354
}
5455
});

client/views/templates/biding.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
<div class="biding">
33
<div class="col-md-4">
44
<div class="biding-item-image biding-top">
5-
<img src="{{item.image}}">
5+
<!-- <img src="{{item.image}}"> -->
6+
<div style="background-image: url({{item.image}});background-size: cover;
7+
height: 100%;"></div>
68
</div>
9+
710
<div class="biding-item-detail biding-down">
811
<div>ID: Lot-{{item._id}}</div>
912
<div>Name: {{item.name}}</div>

client/views/templates/biding.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Template.biding.helpers({
88
bidPrices: function(){
99
var auction = Auctions.findOne({ itemId: this.itemId });
1010
if(auction){
11-
if(auction.bidPrices.length <= 4){
11+
if(auction.bidPrices.length <= 8){
1212
return auction.bidPrices;
1313
}else{
14-
prices = auction.bidPrices.slice(auction.bidPrices.length-4,auction.bidPrices.length);
14+
prices = auction.bidPrices.slice(auction.bidPrices.length-8,auction.bidPrices.length);
1515
return prices;
1616
}
1717
}
@@ -46,8 +46,8 @@ Template.biding.events({
4646
if( !isNum(newBidPrice) ){
4747
alert("You should put in a Integer!");
4848
$(e.target).find('[name=price]').val('');
49-
}else if( Number(newBidPrice) < Number(largestPrice)){
50-
alert("Your biding price is lower than current largest price!");
49+
}else if( Number(newBidPrice) <= Number(largestPrice)){
50+
alert("Your biding price should larger than current largest price!");
5151
$(e.target).find('[name=price]').val('');
5252
}else{
5353
var bidItem = {

0 commit comments

Comments
 (0)