rail_stat_generator 0.1.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.
- data/MIT-LICENSE +21 -0
- data/USAGE +21 -0
- data/rail_stat_generator.rb +40 -0
- data/templates/README +21 -0
- data/templates/app/controllers/rail_stat_controller.rb +111 -0
- data/templates/app/helpers/rail_stat_helper.rb +184 -0
- data/templates/app/models/iptoc.rb +5 -0
- data/templates/app/models/rail_stat.rb +130 -0
- data/templates/app/models/search_term.rb +19 -0
- data/templates/app/views/layouts/rail_stat.rhtml +22 -0
- data/templates/app/views/rail_stat/_menu.rhtml +17 -0
- data/templates/app/views/rail_stat/hits.rhtml +28 -0
- data/templates/app/views/rail_stat/lang.rhtml +25 -0
- data/templates/app/views/rail_stat/other.rhtml +51 -0
- data/templates/app/views/rail_stat/path.rhtml +81 -0
- data/templates/app/views/rail_stat/platform.rhtml +25 -0
- data/templates/app/views/rail_stat/refs.rhtml +25 -0
- data/templates/db/ip-to-country.mysql.sql +22 -0
- data/templates/db/railstat.mysql.sql +43 -0
- data/templates/lib/path_tracker.rb +325 -0
- data/templates/public/images/railstat/1.gif +0 -0
- data/templates/public/images/railstat/10.gif +0 -0
- data/templates/public/images/railstat/11.gif +0 -0
- data/templates/public/images/railstat/12.gif +0 -0
- data/templates/public/images/railstat/13.gif +0 -0
- data/templates/public/images/railstat/14.gif +0 -0
- data/templates/public/images/railstat/15.gif +0 -0
- data/templates/public/images/railstat/16.gif +0 -0
- data/templates/public/images/railstat/17.gif +0 -0
- data/templates/public/images/railstat/18.gif +0 -0
- data/templates/public/images/railstat/19.gif +0 -0
- data/templates/public/images/railstat/1pxtr.gif +0 -0
- data/templates/public/images/railstat/2.gif +0 -0
- data/templates/public/images/railstat/20.gif +0 -0
- data/templates/public/images/railstat/21.gif +0 -0
- data/templates/public/images/railstat/22.gif +0 -0
- data/templates/public/images/railstat/23.gif +0 -0
- data/templates/public/images/railstat/24.gif +0 -0
- data/templates/public/images/railstat/25.gif +0 -0
- data/templates/public/images/railstat/26.gif +0 -0
- data/templates/public/images/railstat/27.gif +0 -0
- data/templates/public/images/railstat/28.gif +0 -0
- data/templates/public/images/railstat/29.gif +0 -0
- data/templates/public/images/railstat/3.gif +0 -0
- data/templates/public/images/railstat/30.gif +0 -0
- data/templates/public/images/railstat/31.gif +0 -0
- data/templates/public/images/railstat/32.gif +0 -0
- data/templates/public/images/railstat/33.gif +0 -0
- data/templates/public/images/railstat/34.gif +0 -0
- data/templates/public/images/railstat/35.gif +0 -0
- data/templates/public/images/railstat/36.gif +0 -0
- data/templates/public/images/railstat/37.gif +0 -0
- data/templates/public/images/railstat/38.gif +0 -0
- data/templates/public/images/railstat/39.gif +0 -0
- data/templates/public/images/railstat/4.gif +0 -0
- data/templates/public/images/railstat/40.gif +0 -0
- data/templates/public/images/railstat/5.gif +0 -0
- data/templates/public/images/railstat/6.gif +0 -0
- data/templates/public/images/railstat/7.gif +0 -0
- data/templates/public/images/railstat/8.gif +0 -0
- data/templates/public/images/railstat/9.gif +0 -0
- data/templates/public/images/railstat/other.gif +0 -0
- data/templates/public/javascripts/railstat.js +10 -0
- data/templates/public/stylesheets/railstat.css +54 -0
- data/templates/public/stylesheets/tabs.css +110 -0
- metadata +116 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,10 @@
|
|
1
|
+
function show_date_as_local_time() {
|
2
|
+
var spans = document.getElementsByTagName('span');
|
3
|
+
for (var i=0; i<spans.length; i++)
|
4
|
+
if (spans[i].className.match(/\bLOCAL_TIME\b/i)) {
|
5
|
+
system_date = new Date(Date.parse(spans[i].innerHTML));
|
6
|
+
if (system_date.getHours() >= 12) { adds = ' PM'; h = system_date.getHours() - 12; }
|
7
|
+
else { adds = ' AM'; h = system_date.getHours(); }
|
8
|
+
spans[i].innerHTML = h + ":" + (system_date.getMinutes()+"").replace(/\b(\d)\b/g, '0$1') + adds;
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
table.list {
|
2
|
+
width: 98%;
|
3
|
+
border: #E6E6E6 solid 0.5px;
|
4
|
+
margin: 1px;
|
5
|
+
text-align: left;
|
6
|
+
font-family: Verdana, Arial, Helvetica, sans-serif;
|
7
|
+
font-size: 12px;
|
8
|
+
}
|
9
|
+
|
10
|
+
table.list a, table.list a:link, table.list a:active, table.list a:visited {
|
11
|
+
color: #e70;
|
12
|
+
text-decoration: none;
|
13
|
+
font-family: Verdana, Arial, Helvetica, sans-serif;
|
14
|
+
}
|
15
|
+
|
16
|
+
table.list a:hover { color: #000000; }
|
17
|
+
|
18
|
+
table.list td#alphaListHeader a, table.list td#alphaListHeader a:link, table.list td#alphaListHeader a:active, table.list td#alphaListHeader a:visited {
|
19
|
+
font-size:14px;
|
20
|
+
color:#F2820A;
|
21
|
+
font-weight:bold;
|
22
|
+
}
|
23
|
+
|
24
|
+
table.list td#alphaListHeader a:hover {
|
25
|
+
font-size:14px;
|
26
|
+
background-color:#000000;
|
27
|
+
color:#F2820A;
|
28
|
+
font-weight:bold;
|
29
|
+
}
|
30
|
+
|
31
|
+
table.list td { margin: 0; padding: 0 0 0 5px; }
|
32
|
+
|
33
|
+
table.list th {
|
34
|
+
background-color: #E6E6E6;
|
35
|
+
font-family: Verdana, Arial, Helvetica, sans-serif;
|
36
|
+
font-size: 12px;
|
37
|
+
font-weight: bold;
|
38
|
+
color: #e70;
|
39
|
+
text-align: left;
|
40
|
+
padding-left: 1em;
|
41
|
+
}
|
42
|
+
|
43
|
+
table.list tr.even { background-color: #fcfcfc; }
|
44
|
+
table.list tr.odd{ background-color: #f7f7f7 }
|
45
|
+
table.list tr:hover { background: #eed !important; }
|
46
|
+
table.list a img { border: 0; }
|
47
|
+
|
48
|
+
#path_stats img { border: 0; }
|
49
|
+
#pathslegend img { border: 0; }
|
50
|
+
#path_stats table.list tr td { font-size: 10px; }
|
51
|
+
#path_stats table.list th { font-size: 10px; }
|
52
|
+
|
53
|
+
.cutField { width: 100%; overflow: hidden; }
|
54
|
+
|
@@ -0,0 +1,110 @@
|
|
1
|
+
#tab_main {
|
2
|
+
background: #789A9F;
|
3
|
+
padding-top: 1.8em;
|
4
|
+
width: 98%
|
5
|
+
}
|
6
|
+
|
7
|
+
#tab_content {
|
8
|
+
width: 100%;
|
9
|
+
padding: 10px 0 0 0;
|
10
|
+
background: #fff;
|
11
|
+
min-height: 300px;
|
12
|
+
}
|
13
|
+
|
14
|
+
#header {
|
15
|
+
position: relative;
|
16
|
+
width: 98%;
|
17
|
+
height: 3em;
|
18
|
+
width: 48em; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
|
19
|
+
}
|
20
|
+
|
21
|
+
#header ul#primary {
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
position: absolute;
|
25
|
+
bottom: -1px;
|
26
|
+
width: 48em; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
|
27
|
+
}
|
28
|
+
|
29
|
+
#header ul#primary li {
|
30
|
+
display: inline;
|
31
|
+
list-style: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
#header ul#primary a,#header ul#primary span,#header ul#primary a.current {
|
35
|
+
width: 9.6em;
|
36
|
+
display: block;
|
37
|
+
float: left;
|
38
|
+
padding: 2px 0;
|
39
|
+
margin: 1px 2px 0 0;
|
40
|
+
text-align: center;
|
41
|
+
font-family: tahoma, verdana, sans-serif;
|
42
|
+
font-size: 11px;
|
43
|
+
text-decoration: none;
|
44
|
+
color: #333;
|
45
|
+
}
|
46
|
+
|
47
|
+
#header ul#primary span,#header ul#primary a.current,#header ul#primary a.current:hover {
|
48
|
+
border: 1px solid #666;
|
49
|
+
border-bottom: none;
|
50
|
+
background: #789A9F;
|
51
|
+
padding-bottom: 4px;
|
52
|
+
margin-top: 0;
|
53
|
+
color: #FFF;
|
54
|
+
}
|
55
|
+
|
56
|
+
#header ul#primary a {
|
57
|
+
background: #EDF4F5;
|
58
|
+
border: 1px solid #AAA;
|
59
|
+
border-bottom: none;
|
60
|
+
}
|
61
|
+
|
62
|
+
#header ul#primary a:hover {
|
63
|
+
margin-top: 0;
|
64
|
+
border-color: #666;
|
65
|
+
background: #fff;
|
66
|
+
padding-bottom: 3px;
|
67
|
+
}
|
68
|
+
|
69
|
+
#header ul#secondary {
|
70
|
+
position: absolute;
|
71
|
+
margin: 0;
|
72
|
+
padding: 0;
|
73
|
+
bottom: -1.4em;
|
74
|
+
left: 1px;
|
75
|
+
width: 48em; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
|
76
|
+
}
|
77
|
+
|
78
|
+
#header ul#secondary li a,#header ul#secondary li span {
|
79
|
+
width: auto;
|
80
|
+
display: block;
|
81
|
+
float: left;
|
82
|
+
padding: 0 10px;
|
83
|
+
margin: 0;
|
84
|
+
text-align: auto;
|
85
|
+
border: none;
|
86
|
+
border-right: 1px dotted #AAA;
|
87
|
+
background: none;
|
88
|
+
}
|
89
|
+
|
90
|
+
#header ul#secondary li a {
|
91
|
+
color: #FFF;
|
92
|
+
text-decoration: underline;
|
93
|
+
}
|
94
|
+
|
95
|
+
#header ul#secondary li a:hover {
|
96
|
+
color: #E1FFFA;
|
97
|
+
background: transparent;
|
98
|
+
padding: 0 10px;
|
99
|
+
border: none;
|
100
|
+
border-right: 1px dotted #AAA;
|
101
|
+
}
|
102
|
+
|
103
|
+
#header ul#secondary li a:active {
|
104
|
+
color: #000;
|
105
|
+
background: transparent;
|
106
|
+
}
|
107
|
+
|
108
|
+
#header ul#secondary li:last-child a { border: none; }
|
109
|
+
|
110
|
+
|
metadata
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.10
|
3
|
+
specification_version: 1
|
4
|
+
name: rail_stat_generator
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.1.0
|
7
|
+
date: 2005-08-17
|
8
|
+
summary: RailStat is a real-time web site statistics package which uses Ruby on Rails web application framework.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: lubo_AT_manolov.org
|
12
|
+
homepage: http://www.railstat.com
|
13
|
+
rubyforge_project: railstat
|
14
|
+
description:
|
15
|
+
autorequire: rail_stat_generator
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: false
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
-
|
22
|
+
- ">"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.0.0
|
25
|
+
version:
|
26
|
+
platform: ruby
|
27
|
+
authors:
|
28
|
+
- Luben Manolov
|
29
|
+
- Nick Penkov
|
30
|
+
files:
|
31
|
+
- templates/db
|
32
|
+
- templates/app
|
33
|
+
- templates/lib
|
34
|
+
- templates/README
|
35
|
+
- templates/public
|
36
|
+
- templates/db/ip-to-country.mysql.sql
|
37
|
+
- templates/db/railstat.mysql.sql
|
38
|
+
- templates/app/views
|
39
|
+
- templates/app/controllers
|
40
|
+
- templates/app/models
|
41
|
+
- templates/app/helpers
|
42
|
+
- templates/app/views/layouts
|
43
|
+
- templates/app/views/rail_stat
|
44
|
+
- templates/app/views/layouts/rail_stat.rhtml
|
45
|
+
- templates/app/views/rail_stat/_menu.rhtml
|
46
|
+
- templates/app/views/rail_stat/hits.rhtml
|
47
|
+
- templates/app/views/rail_stat/platform.rhtml
|
48
|
+
- templates/app/views/rail_stat/lang.rhtml
|
49
|
+
- templates/app/views/rail_stat/other.rhtml
|
50
|
+
- templates/app/views/rail_stat/refs.rhtml
|
51
|
+
- templates/app/views/rail_stat/path.rhtml
|
52
|
+
- templates/app/controllers/rail_stat_controller.rb
|
53
|
+
- templates/app/models/iptoc.rb
|
54
|
+
- templates/app/models/search_term.rb
|
55
|
+
- templates/app/models/rail_stat.rb
|
56
|
+
- templates/app/helpers/rail_stat_helper.rb
|
57
|
+
- templates/lib/path_tracker.rb
|
58
|
+
- templates/public/stylesheets
|
59
|
+
- templates/public/javascripts
|
60
|
+
- templates/public/images
|
61
|
+
- templates/public/stylesheets/tabs.css
|
62
|
+
- templates/public/stylesheets/railstat.css
|
63
|
+
- templates/public/javascripts/railstat.js
|
64
|
+
- templates/public/images/railstat
|
65
|
+
- templates/public/images/railstat/1.gif
|
66
|
+
- templates/public/images/railstat/2.gif
|
67
|
+
- templates/public/images/railstat/3.gif
|
68
|
+
- templates/public/images/railstat/4.gif
|
69
|
+
- templates/public/images/railstat/5.gif
|
70
|
+
- templates/public/images/railstat/6.gif
|
71
|
+
- templates/public/images/railstat/7.gif
|
72
|
+
- templates/public/images/railstat/8.gif
|
73
|
+
- templates/public/images/railstat/9.gif
|
74
|
+
- templates/public/images/railstat/other.gif
|
75
|
+
- templates/public/images/railstat/10.gif
|
76
|
+
- templates/public/images/railstat/11.gif
|
77
|
+
- templates/public/images/railstat/12.gif
|
78
|
+
- templates/public/images/railstat/13.gif
|
79
|
+
- templates/public/images/railstat/14.gif
|
80
|
+
- templates/public/images/railstat/15.gif
|
81
|
+
- templates/public/images/railstat/16.gif
|
82
|
+
- templates/public/images/railstat/17.gif
|
83
|
+
- templates/public/images/railstat/18.gif
|
84
|
+
- templates/public/images/railstat/19.gif
|
85
|
+
- templates/public/images/railstat/20.gif
|
86
|
+
- templates/public/images/railstat/21.gif
|
87
|
+
- templates/public/images/railstat/22.gif
|
88
|
+
- templates/public/images/railstat/23.gif
|
89
|
+
- templates/public/images/railstat/24.gif
|
90
|
+
- templates/public/images/railstat/25.gif
|
91
|
+
- templates/public/images/railstat/26.gif
|
92
|
+
- templates/public/images/railstat/27.gif
|
93
|
+
- templates/public/images/railstat/28.gif
|
94
|
+
- templates/public/images/railstat/29.gif
|
95
|
+
- templates/public/images/railstat/30.gif
|
96
|
+
- templates/public/images/railstat/31.gif
|
97
|
+
- templates/public/images/railstat/32.gif
|
98
|
+
- templates/public/images/railstat/33.gif
|
99
|
+
- templates/public/images/railstat/34.gif
|
100
|
+
- templates/public/images/railstat/35.gif
|
101
|
+
- templates/public/images/railstat/36.gif
|
102
|
+
- templates/public/images/railstat/37.gif
|
103
|
+
- templates/public/images/railstat/38.gif
|
104
|
+
- templates/public/images/railstat/39.gif
|
105
|
+
- templates/public/images/railstat/40.gif
|
106
|
+
- templates/public/images/railstat/1pxtr.gif
|
107
|
+
- rail_stat_generator.rb
|
108
|
+
- USAGE
|
109
|
+
- MIT-LICENSE
|
110
|
+
test_files: []
|
111
|
+
rdoc_options: []
|
112
|
+
extra_rdoc_files: []
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
requirements: []
|
116
|
+
dependencies: []
|