treerful_scanner 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/treerful_scanner/html_printer/template.erb +141 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61d8a13dead7af6b2aea48de62fafbd28fb7cfb4fb6e2260f08b56e3397fe32f
|
4
|
+
data.tar.gz: 2114f9d8aeb95af1e1537b467217a2d7c5a518bf6dc5630e5bb32c76adfd3baa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb957b678aac271942f6f24351a6f0c61ae4e1d3daee12f7ba65e169c8c24cc39fa00d783d34f4d2ad28ebedd6ce37e68c312c305f4c7d39ae09e06bdad8a72c
|
7
|
+
data.tar.gz: 4016b2e05054b2cc22878681a34dd63cf6e12b9b593fa82346edb7706adde5348034a34ff2017943e1627caecb7bfdcbf3bf0eefb642156aca363e4787e3f674
|
@@ -0,0 +1,141 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="zh-TW">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
8
|
+
<title><%= date %> 小樹屋</title>
|
9
|
+
<style>
|
10
|
+
html {
|
11
|
+
box-sizing: border-box;
|
12
|
+
}
|
13
|
+
|
14
|
+
*,
|
15
|
+
*:before,
|
16
|
+
*:after {
|
17
|
+
box-sizing: inherit;
|
18
|
+
}
|
19
|
+
|
20
|
+
.top-header {
|
21
|
+
display: flex;
|
22
|
+
}
|
23
|
+
|
24
|
+
.top-header>.definition-list {
|
25
|
+
margin-left: 24px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.definition-list {
|
29
|
+
display: grid;
|
30
|
+
grid-template-columns: 32px auto;
|
31
|
+
}
|
32
|
+
|
33
|
+
.definition-list>*:nth-child(even) {
|
34
|
+
margin: 0;
|
35
|
+
padding: 0;
|
36
|
+
margin-left: 12px;
|
37
|
+
}
|
38
|
+
|
39
|
+
.definition-list>*:nth-child(1) {
|
40
|
+
background: lightgreen;
|
41
|
+
}
|
42
|
+
|
43
|
+
.definition-list>*:nth-child(3) {
|
44
|
+
background: darkred;
|
45
|
+
}
|
46
|
+
|
47
|
+
table {
|
48
|
+
border-collapse: collapse;
|
49
|
+
}
|
50
|
+
|
51
|
+
th:not(:first-child):not(:nth-child(2)) {
|
52
|
+
transform: translateX(-50%);
|
53
|
+
}
|
54
|
+
|
55
|
+
td:not(:first-child):not(:nth-child(2)) {
|
56
|
+
width: 32px;
|
57
|
+
background: darkred;
|
58
|
+
border: 1px solid white;
|
59
|
+
border-top: none;
|
60
|
+
border-bottom: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
td:not(:first-child):not(:nth-child(2)).available {
|
64
|
+
background: lightgreen;
|
65
|
+
}
|
66
|
+
|
67
|
+
td:first-child,
|
68
|
+
td:nth-child(2) {
|
69
|
+
white-space: nowrap;
|
70
|
+
text-align: right;
|
71
|
+
}
|
72
|
+
|
73
|
+
td:nth-child(2) {
|
74
|
+
padding: 0 24px;
|
75
|
+
}
|
76
|
+
|
77
|
+
td > a {
|
78
|
+
text-decoration: none;
|
79
|
+
color: inherit;
|
80
|
+
}
|
81
|
+
</style>
|
82
|
+
</head>
|
83
|
+
|
84
|
+
<body>
|
85
|
+
<header class="top-header">
|
86
|
+
<h1 class="title"><%= date %> 小樹屋</h1>
|
87
|
+
<dl class="definition-list">
|
88
|
+
<dt></dt>
|
89
|
+
<dd>未被租用</dd>
|
90
|
+
<dt></dt>
|
91
|
+
<dd>已被租用</dd>
|
92
|
+
</dl>
|
93
|
+
</header>
|
94
|
+
<table>
|
95
|
+
<thead>
|
96
|
+
<tr>
|
97
|
+
<th>房號</th>
|
98
|
+
<th>人數</th>
|
99
|
+
<th>6</th>
|
100
|
+
<th></th>
|
101
|
+
<th>7</th>
|
102
|
+
<th></th>
|
103
|
+
<th>8</th>
|
104
|
+
<th></th>
|
105
|
+
<th>9</th>
|
106
|
+
<th></th>
|
107
|
+
<th>10</th>
|
108
|
+
<th></th>
|
109
|
+
<th>11</th>
|
110
|
+
<th></th>
|
111
|
+
<th>12</th>
|
112
|
+
<th></th>
|
113
|
+
<th>13</th>
|
114
|
+
<th></th>
|
115
|
+
<th>14</th>
|
116
|
+
<th></th>
|
117
|
+
<th>15</th>
|
118
|
+
<th></th>
|
119
|
+
<th>16</th>
|
120
|
+
<th></th>
|
121
|
+
<th>17</th>
|
122
|
+
<th></th>
|
123
|
+
<th>18</th>
|
124
|
+
<th></th>
|
125
|
+
<th>19</th>
|
126
|
+
<th></th>
|
127
|
+
<th>20</th>
|
128
|
+
<th></th>
|
129
|
+
<th>21</th>
|
130
|
+
<th></th>
|
131
|
+
<th>22</th>
|
132
|
+
<th></th>
|
133
|
+
<th>23</th>
|
134
|
+
<th></th>
|
135
|
+
</tr>
|
136
|
+
</thead>
|
137
|
+
<%= tbody %>
|
138
|
+
</table>
|
139
|
+
</body>
|
140
|
+
|
141
|
+
</html>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: treerful_scanner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jian Weihang
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- lib/treerful_scanner/client.rb
|
93
93
|
- lib/treerful_scanner/duration.rb
|
94
94
|
- lib/treerful_scanner/html_printer.rb
|
95
|
+
- lib/treerful_scanner/html_printer/template.erb
|
95
96
|
- lib/treerful_scanner/parser.rb
|
96
97
|
- lib/treerful_scanner/place.rb
|
97
98
|
- lib/treerful_scanner/png_printer.rb
|