active_analytics 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +88 -15
- data/app/controllers/active_analytics/application_controller.rb +23 -5
- data/app/controllers/active_analytics/assets_controller.rb +29 -0
- data/app/controllers/active_analytics/pages_controller.rb +9 -10
- data/app/controllers/active_analytics/referrers_controller.rb +9 -5
- data/app/controllers/active_analytics/sites_controller.rb +4 -4
- data/app/models/active_analytics/views_per_day.rb +22 -3
- data/app/views/active_analytics/assets/_charts.css +249 -0
- data/app/{assets/stylesheets/active_analytics/style.css → views/active_analytics/assets/_style.css} +36 -26
- data/app/views/active_analytics/assets/application.css.erb +2 -0
- data/app/{assets/javascripts/active_analytics → views/active_analytics/assets}/application.js +1 -3
- data/app/{assets/stylesheets/active_analytics → views/active_analytics/assets}/ariato.css +237 -234
- data/app/views/active_analytics/pages/_table.html.erb +6 -17
- data/app/views/active_analytics/pages/index.html.erb +1 -1
- data/app/views/active_analytics/pages/show.html.erb +7 -4
- data/app/views/active_analytics/referrers/_table.html.erb +9 -2
- data/app/views/active_analytics/referrers/index.html.erb +2 -2
- data/app/views/active_analytics/referrers/show.html.erb +6 -3
- data/app/views/active_analytics/sites/_histogram.html.erb +9 -2
- data/app/views/active_analytics/sites/_histogram_header.html.erb +10 -0
- data/app/views/active_analytics/sites/show.html.erb +2 -2
- data/app/views/layouts/active_analytics/_footer.html.erb +3 -3
- data/app/views/layouts/active_analytics/_header.html.erb +1 -3
- data/app/views/layouts/active_analytics/application.html.erb +5 -3
- data/config/routes.rb +2 -1
- data/lib/active_analytics/engine.rb +0 -4
- data/lib/active_analytics/version.rb +1 -1
- data/lib/active_analytics.rb +41 -3
- metadata +11 -9
- data/app/assets/stylesheets/active_analytics/application.css +0 -15
- data/app/assets/stylesheets/active_analytics/charts.css +0 -296
- /data/app/{assets/javascripts/active_analytics → views/active_analytics/assets}/ariato.js +0 -0
data/app/{assets/stylesheets/active_analytics/style.css → views/active_analytics/assets/_style.css}
RENAMED
@@ -1,10 +1,10 @@
|
|
1
|
-
body {
|
1
|
+
.active-analytics body {
|
2
2
|
padding: 0;
|
3
3
|
margin: 0;
|
4
4
|
width: 100%;
|
5
5
|
}
|
6
6
|
|
7
|
-
body > header nav {
|
7
|
+
.active-analytics body > header nav {
|
8
8
|
width: 100%;
|
9
9
|
max-width: 1280px;
|
10
10
|
margin: 0 auto;
|
@@ -15,15 +15,15 @@ body > header nav {
|
|
15
15
|
min-height: 88px;
|
16
16
|
}
|
17
17
|
|
18
|
-
header nav .menubutton {
|
18
|
+
.active-analytics header nav .menubutton {
|
19
19
|
margin-left: auto;
|
20
20
|
}
|
21
21
|
|
22
|
-
header .logo {
|
22
|
+
.active-analytics header .logo {
|
23
23
|
margin-right: 8px;
|
24
24
|
}
|
25
25
|
|
26
|
-
header .logo svg {
|
26
|
+
.active-analytics header .logo svg {
|
27
27
|
width: 24px;
|
28
28
|
height: 24px;
|
29
29
|
fill: none;
|
@@ -32,7 +32,7 @@ header .logo svg {
|
|
32
32
|
vertical-align: middle;
|
33
33
|
}
|
34
34
|
|
35
|
-
header .is-link {
|
35
|
+
.active-analytics header .is-link {
|
36
36
|
text-transform: none;
|
37
37
|
text-decoration: none;
|
38
38
|
font-size: 1rem;
|
@@ -44,62 +44,72 @@ header .is-link {
|
|
44
44
|
color: rgba(var(--color-grey-700), 1);
|
45
45
|
}
|
46
46
|
|
47
|
-
header .is-link:hover {
|
47
|
+
.active-analytics header .is-link:hover {
|
48
48
|
background: rgba(var(--color-grey-50), 1);
|
49
49
|
}
|
50
50
|
|
51
|
-
main {
|
51
|
+
.active-analytics main {
|
52
52
|
width: 100%;
|
53
53
|
max-width: 1280px;
|
54
54
|
margin: 0 auto;
|
55
55
|
padding: 0 24px;
|
56
56
|
}
|
57
57
|
|
58
|
-
main h2 {
|
58
|
+
.active-analytics main h2 {
|
59
59
|
word-break: break-word;
|
60
|
+
display: flex;
|
61
|
+
gap: var(--space);
|
60
62
|
}
|
61
63
|
|
62
|
-
section {
|
64
|
+
.active-analytics section {
|
63
65
|
margin-bottom: var(--space-4x);
|
64
66
|
}
|
65
67
|
|
66
|
-
.tooltip-date {
|
68
|
+
.active-analytics .tooltip-date {
|
67
69
|
color: rgba(var(--color-grey-100), 1);
|
68
70
|
}
|
69
71
|
|
70
|
-
.card h3 {
|
72
|
+
.active-analytics .card h3 {
|
71
73
|
display: flex;
|
72
74
|
}
|
73
75
|
|
74
|
-
.card h3
|
76
|
+
.active-analytics .card h3 small {
|
77
|
+
color: rgba(var(--color-red-500), 1);
|
78
|
+
}
|
79
|
+
|
80
|
+
.active-analytics .card h3 small.is-success {
|
81
|
+
color: rgba(var(--color-green-500), 1);
|
82
|
+
}
|
83
|
+
|
84
|
+
.active-analytics .card h3 a {
|
75
85
|
margin-left: auto;
|
76
86
|
font-weight: 400;
|
77
87
|
font-size: 1rem;
|
78
88
|
}
|
79
89
|
|
80
|
-
.card table {
|
90
|
+
.active-analytics .card table {
|
81
91
|
margin: 0 -24px -24px;
|
82
92
|
width: calc(100% + 48px);
|
83
93
|
}
|
84
94
|
|
85
|
-
tr td:first-of-type {
|
95
|
+
.active-analytics tr td:first-of-type {
|
86
96
|
padding: 12px 0px 12px 24px;
|
87
97
|
}
|
88
98
|
|
89
|
-
tr td:last-of-type {
|
99
|
+
.active-analytics tr td:last-of-type {
|
90
100
|
padding: 12px 24px 12px 0;
|
91
101
|
}
|
92
102
|
|
93
|
-
td a {
|
103
|
+
.active-analytics td a {
|
94
104
|
word-break: break-word;
|
95
105
|
}
|
96
106
|
|
97
|
-
td.number {
|
107
|
+
.active-analytics td.number {
|
98
108
|
text-align: right;
|
99
109
|
font-variant-numeric: tabular-nums;
|
100
110
|
}
|
101
111
|
|
102
|
-
.referer-favicon {
|
112
|
+
.active-analytics .referer-favicon {
|
103
113
|
width: 16px;
|
104
114
|
height: 16px;
|
105
115
|
display: inline-block;
|
@@ -108,7 +118,7 @@ td.number {
|
|
108
118
|
margin-right: 4px;
|
109
119
|
}
|
110
120
|
|
111
|
-
div.is-empty {
|
121
|
+
.active-analytics div.is-empty {
|
112
122
|
display: flex;
|
113
123
|
align-items: center;
|
114
124
|
justify-content: center;
|
@@ -117,34 +127,34 @@ div.is-empty {
|
|
117
127
|
color: rgba(var(--color-grey-300), 1);
|
118
128
|
}
|
119
129
|
|
120
|
-
body > footer {
|
130
|
+
.active-analytics body > footer {
|
121
131
|
max-width: 1280px;
|
122
132
|
margin: 48px auto 0;
|
123
133
|
padding: 24px;
|
124
134
|
}
|
125
135
|
|
126
|
-
body > footer ul {
|
136
|
+
.active-analytics body > footer ul {
|
127
137
|
margin: 0;
|
128
138
|
list-style-type: none;
|
129
139
|
padding: 0;
|
130
140
|
}
|
131
141
|
|
132
|
-
body > footer .card {
|
142
|
+
.active-analytics body > footer .card {
|
133
143
|
margin: 0;
|
134
144
|
background: rgba(var(--color-grey-50), 1);
|
135
145
|
}
|
136
146
|
|
137
|
-
body > footer .card p {
|
147
|
+
.active-analytics body > footer .card p {
|
138
148
|
padding: 0 0 2px;
|
139
149
|
color: rgba(var(--color-grey-400), 1);
|
140
150
|
}
|
141
151
|
|
142
152
|
@media (max-width: 480px) {
|
143
|
-
header nav .menubutton {
|
153
|
+
.active-analytics header nav .menubutton {
|
144
154
|
margin-top: 24px;
|
145
155
|
}
|
146
156
|
|
147
|
-
[role="dialog"] {
|
157
|
+
.active-analytics [role="dialog"] {
|
148
158
|
min-width: 280px;
|
149
159
|
}
|
150
160
|
}
|
data/app/{assets/javascripts/active_analytics → views/active_analytics/assets}/application.js
RENAMED
@@ -1,5 +1,3 @@
|
|
1
|
-
//= require active_analytics/ariato
|
2
|
-
|
3
1
|
ActiveAnalytics = {}
|
4
2
|
|
5
3
|
ActiveAnalytics.Header = function() {
|
@@ -13,4 +11,4 @@ ActiveAnalytics.Header.prototype.toggleDateRangeForm = function() {
|
|
13
11
|
form.setAttribute("hidden", "hidden")
|
14
12
|
}
|
15
13
|
|
16
|
-
Ariato.launchWhenDomIsReady()
|
14
|
+
Ariato.launchWhenDomIsReady()
|