thefox-wallet 0.19.4 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +1 -2
- data/lib/wallet/version.rb +2 -2
- data/resources/css/style.css +20 -11
- data/resources/views/index.liquid +28 -22
- data/resources/views/month.liquid +41 -33
- data/resources/views/year.liquid +39 -33
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '078db9032bda2206a976622f6ba05437fc9a530c15f762b2eeb87876e658268e'
|
4
|
+
data.tar.gz: a07dff735e5295c4c812ded9a34c863b33af22821c7fe7040bef6e0f7712148a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0956651df207eb1a24a9efa266cf9e4511847c50befd725b26bbdc21864bb760c145d1ef03ddfa45851cd31329a98ea01b93571e899815d07bc2df0aa00d2f44'
|
7
|
+
data.tar.gz: eaa1fd035de2d5fd6bd5c38d8bae349634026ed71fa6b6fc7092657981923455bf46b954f93d21194c75849ea0c0313bde9adf9892323653c8da5c04a56cc6d5
|
data/.gitlab-ci.yml
CHANGED
data/lib/wallet/version.rb
CHANGED
data/resources/css/style.css
CHANGED
@@ -2,21 +2,30 @@
|
|
2
2
|
/* Style */
|
3
3
|
|
4
4
|
html {
|
5
|
-
|
5
|
+
-webkit-text-size-adjust: none;
|
6
6
|
}
|
7
|
+
|
7
8
|
table.list, table.list th, table.list td {
|
8
|
-
|
9
|
+
border: 1px solid black;
|
9
10
|
}
|
10
|
-
|
11
|
-
|
11
|
+
|
12
|
+
tfoot {
|
13
|
+
font-weight: bold;
|
12
14
|
}
|
13
|
-
|
14
|
-
|
15
|
+
|
16
|
+
.left {
|
17
|
+
text-align: left;
|
15
18
|
}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
+
|
20
|
+
.right {
|
21
|
+
text-align: right;
|
19
22
|
}
|
20
|
-
|
21
|
-
|
23
|
+
|
24
|
+
.first_column {
|
25
|
+
min-width: 180px;
|
26
|
+
width: 300px;
|
27
|
+
}
|
28
|
+
|
29
|
+
.red {
|
30
|
+
color: #ff0000;
|
22
31
|
}
|
@@ -12,31 +12,37 @@
|
|
12
12
|
<p>Generated @ {{ now }} by <a href="{{ app_homepage }}">{{ app_name }}</a> v{{ app_version }}</p>
|
13
13
|
|
14
14
|
<table class="list">
|
15
|
-
<
|
16
|
-
<th class="left">Year</th>
|
17
|
-
<th class="right">Revenue</th>
|
18
|
-
<th class="right">Expense</th>
|
19
|
-
<th class="right">Balance</th>
|
20
|
-
<th class="right">Balance ∑</th>
|
21
|
-
</tr>
|
22
|
-
|
23
|
-
{% for year in years_total_formatted %}
|
15
|
+
<thead>
|
24
16
|
<tr>
|
25
|
-
<
|
26
|
-
<
|
27
|
-
<
|
28
|
-
<
|
29
|
-
<
|
17
|
+
<th class="left">Year</th>
|
18
|
+
<th class="right">Revenue</th>
|
19
|
+
<th class="right">Expense</th>
|
20
|
+
<th class="right">Balance</th>
|
21
|
+
<th class="right">Balance ∑</th>
|
30
22
|
</tr>
|
31
|
-
|
23
|
+
</thead>
|
24
|
+
|
25
|
+
<tbody>
|
26
|
+
{% for year in years_total_formatted %}
|
27
|
+
<tr>
|
28
|
+
<td class="left"><a href="year_{{ year['name'] }}.html">{{ year['name'] }}</a></td>
|
29
|
+
<td class="right">{{ year['revenue'] }}</td>
|
30
|
+
<td class="right red">{{ year['expense'] }}</td>
|
31
|
+
<td class="right {{ year['balance_class'] }}">{{ year['balance'] }}</td>
|
32
|
+
<td class="right {{ year['balance_total_class'] }}">{{ year['balance_total'] }}</td>
|
33
|
+
</tr>
|
34
|
+
{% endfor %}
|
35
|
+
</tbody>
|
32
36
|
|
33
|
-
<
|
34
|
-
<
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
<tfoot>
|
38
|
+
<tr>
|
39
|
+
<td class="left">TOTAL</td>
|
40
|
+
<td class="right">{{ revenue_total }}</td>
|
41
|
+
<td class="right red">{{ expense_total }}</td>
|
42
|
+
<td class="right {{ balance_total_class }}">{{ balance_total }}</td>
|
43
|
+
<td> </td>
|
44
|
+
</tr>
|
45
|
+
</tfoot>
|
40
46
|
</table>
|
41
47
|
|
42
48
|
<p><img src="total.png"></p>
|
@@ -2,52 +2,60 @@
|
|
2
2
|
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
3
3
|
<head>
|
4
4
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
5
|
-
<title>{{ month_s }} {{ year_s }}
|
5
|
+
<title>{{ month_s }} {{ year_s }} -- {{ dir_path }}</title>
|
6
6
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
7
7
|
</head>
|
8
8
|
|
9
9
|
<body>
|
10
10
|
<h1><a href="./index.html">{{ dir_path }}</a></h1>
|
11
11
|
|
12
|
-
<p>
|
12
|
+
<p>
|
13
|
+
Generated @ {{ now }} by <a href="{{ app_homepage }}">{{ app_name }}</a> v{{ app_version }} from <code>{{ file_name_s }}</code>
|
14
|
+
</p>
|
13
15
|
|
14
16
|
<h2>Month: {{ month_s }} <a href="{{ year_file_name_s }}">{{ year_s }}</a></h2>
|
15
17
|
|
16
18
|
<table class="list">
|
17
|
-
<
|
18
|
-
<th class="left">#</th>
|
19
|
-
<th class="left">Date</th>
|
20
|
-
<th class="left first_column">Title</th>
|
21
|
-
<th class="right">Revenue</th>
|
22
|
-
<th class="right">Expense</th>
|
23
|
-
<th class="right">Balance</th>
|
24
|
-
<th class="right">Category</th>
|
25
|
-
<th class="left">Comment</th>
|
26
|
-
</tr>
|
27
|
-
|
28
|
-
{% for day in days %}
|
19
|
+
<thead>
|
29
20
|
<tr>
|
30
|
-
<
|
31
|
-
<
|
32
|
-
<
|
33
|
-
<
|
34
|
-
<
|
35
|
-
<
|
36
|
-
<
|
37
|
-
<
|
21
|
+
<th class="left">#</th>
|
22
|
+
<th class="left">Date</th>
|
23
|
+
<th class="left first_column">Title</th>
|
24
|
+
<th class="right">Revenue</th>
|
25
|
+
<th class="right">Expense</th>
|
26
|
+
<th class="right">Balance</th>
|
27
|
+
<th class="right">Category</th>
|
28
|
+
<th class="left">Comment</th>
|
38
29
|
</tr>
|
39
|
-
|
30
|
+
</thead>
|
31
|
+
|
32
|
+
<tbody>
|
33
|
+
{% for day in days %}
|
34
|
+
<tr>
|
35
|
+
<td valign="top" class="left">{{ day['entry_n'] }}</td>
|
36
|
+
<td valign="top" class="left">{{ day['entry_date_s'] }}</td>
|
37
|
+
<td valign="top" class="left">{{ day['title'] }}</td>
|
38
|
+
<td valign="top" class="right">{{ day['revenue_out'] }}</td>
|
39
|
+
<td valign="top" class="right red">{{ day['expense_out'] }}</td>
|
40
|
+
<td valign="top" class="right {{ day['balance_class'] }}">{{ day['balance'] }}</td>
|
41
|
+
<td valign="top" class="right">{{ day['category_out'] }}</td>
|
42
|
+
<td valign="top" class="left">{{ day['comment_out'] }}</td>
|
43
|
+
</tr>
|
44
|
+
{% endfor %}
|
45
|
+
</tbody>
|
40
46
|
|
41
|
-
<
|
42
|
-
<
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
47
|
+
<tfoot>
|
48
|
+
<tr>
|
49
|
+
<td> </td>
|
50
|
+
<td> </td>
|
51
|
+
<td class="left">TOTAL</td>
|
52
|
+
<td class="right">{{ revenue_month }}</td>
|
53
|
+
<td class="right red">{{ expense_month }}</td>
|
54
|
+
<td class="right {{ balance_class }}">{{ balance_month }}</td>
|
55
|
+
<td> </td>
|
56
|
+
<td> </td>
|
57
|
+
</tr>
|
58
|
+
</tfoot>
|
51
59
|
</table>
|
52
60
|
|
53
61
|
</body>
|
data/resources/views/year.liquid
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
3
3
|
<head>
|
4
4
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
5
|
-
<title>{{ year_s }}
|
5
|
+
<title>{{ year_s }} -- {{ dir_path }}</title>
|
6
6
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
7
7
|
</head>
|
8
8
|
|
@@ -13,44 +13,50 @@
|
|
13
13
|
|
14
14
|
<h2>Year: {{ year_s }}</h2>
|
15
15
|
<table class="list">
|
16
|
-
<
|
17
|
-
<th class="left">Month</th>
|
18
|
-
<th class="right">Revenue</th>
|
19
|
-
<th class="right">Expense</th>
|
20
|
-
<th class="right">Balance</th>
|
21
|
-
<th colspan="{{ categories_available_count }}">{{ categories_available_count }} Categories</th>
|
22
|
-
</tr>
|
23
|
-
<tr>
|
24
|
-
<th colspan="4"> </th>
|
25
|
-
|
26
|
-
{% for category in categories_available %}
|
27
|
-
<th class="right">{{ category }}</th>
|
28
|
-
{% endfor %}
|
29
|
-
</tr>
|
30
|
-
|
31
|
-
{% for month in months %}
|
16
|
+
<thead>
|
32
17
|
<tr>
|
33
|
-
<
|
34
|
-
<
|
35
|
-
<
|
36
|
-
<
|
18
|
+
<th class="left">Month</th>
|
19
|
+
<th class="right">Revenue</th>
|
20
|
+
<th class="right">Expense</th>
|
21
|
+
<th class="right">Balance</th>
|
22
|
+
<th colspan="{{ categories_available_count }}">{{ categories_available_count }} Categories</th>
|
23
|
+
</tr>
|
24
|
+
<tr>
|
25
|
+
<th colspan="4"> </th>
|
37
26
|
|
38
|
-
{% for category in
|
39
|
-
<
|
27
|
+
{% for category in categories_available %}
|
28
|
+
<th class="right">{{ category }}</th>
|
40
29
|
{% endfor %}
|
41
30
|
</tr>
|
42
|
-
|
31
|
+
</thead>
|
43
32
|
|
44
|
-
<
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
33
|
+
<tbody>
|
34
|
+
{% for month in months %}
|
35
|
+
<tr>
|
36
|
+
<td class="left"><a href="{{ month['month_file_name_s'] }}">{{ month['month_s'] }}</a></td>
|
37
|
+
<td class="right">{{ month['revenue_month'] }}</td>
|
38
|
+
<td class="right red">{{ month['expense_month'] }}</td>
|
39
|
+
<td class="right {{ month['balance_class'] }}">{{ month['balance_month'] }}</td>
|
40
|
+
|
41
|
+
{% for category in month['categories'] %}
|
42
|
+
<td class="right {{ category['class'] }}">{{ category['balance'] }}</td>
|
43
|
+
{% endfor %}
|
44
|
+
</tr>
|
52
45
|
{% endfor %}
|
53
|
-
</
|
46
|
+
</tbody>
|
47
|
+
|
48
|
+
<tfoot>
|
49
|
+
<tr>
|
50
|
+
<td class="left">TOTAL</td>
|
51
|
+
<td class="right">{{ revenue_year }}</td>
|
52
|
+
<td class="right red">{{ expense_year }}</td>
|
53
|
+
<td class="right {{ balance_year_class }}">{{ balance_year }}</td>
|
54
|
+
|
55
|
+
{% for category in categories_available %}
|
56
|
+
<td class="right {{ categories_year_balance_formatted[category]['class'] }}">{{ categories_year_balance_formatted[category]['balance'] }}</td>
|
57
|
+
{% endfor %}
|
58
|
+
</tr>
|
59
|
+
</tfoot>
|
54
60
|
</table>
|
55
61
|
|
56
62
|
<p><img src="year_{{ year_s }}.png"></p>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thefox-wallet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.7.
|
161
|
+
rubygems_version: 2.7.8
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Finances Tracking
|