line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cog::App::FileBrowser; |
2
|
2
|
|
|
2
|
|
1477
|
use Mo; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
8
|
|
3
|
|
|
|
|
|
|
extends 'Cog::App'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
139
|
use constant webapp => 'Cog::App::FileBrowser::WebApp'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
119
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Cog::App::FileBrowser::WebApp; |
8
|
2
|
|
|
2
|
|
7
|
use Mo; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
extends 'Cog::WebApp'; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
190
|
use constant index_file => 'index.html'; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
303
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub site_navigation { |
14
|
|
|
|
|
|
|
[ |
15
|
0
|
|
|
0
|
|
|
['Home' => '/home/'], |
16
|
|
|
|
|
|
|
['Files' => '/files/'], |
17
|
|
|
|
|
|
|
['Tags' => '/tags/'], |
18
|
|
|
|
|
|
|
] |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub url_map { |
22
|
|
|
|
|
|
|
[ |
23
|
0
|
|
|
0
|
|
|
['/' => 'redirect', ('/home/')], |
24
|
|
|
|
|
|
|
['/home/' => 'about_cog'], |
25
|
|
|
|
|
|
|
['/files/' => 'files_list'], |
26
|
|
|
|
|
|
|
['/tags/' => 'tags_list'], |
27
|
|
|
|
|
|
|
]; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub js_files { |
31
|
0
|
|
|
0
|
|
|
[qw( |
32
|
|
|
|
|
|
|
jquery-1.4.4.min.js |
33
|
|
|
|
|
|
|
jquery.cookie.js |
34
|
|
|
|
|
|
|
jemplate.js |
35
|
|
|
|
|
|
|
separator.js |
36
|
|
|
|
|
|
|
cog.js |
37
|
|
|
|
|
|
|
config.js |
38
|
|
|
|
|
|
|
url-map.js |
39
|
|
|
|
|
|
|
start.js |
40
|
|
|
|
|
|
|
)] |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub css_files { |
44
|
0
|
|
|
0
|
|
|
[qw( |
45
|
|
|
|
|
|
|
layout.css |
46
|
|
|
|
|
|
|
page-list.css |
47
|
|
|
|
|
|
|
page-display.css |
48
|
|
|
|
|
|
|
)]; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub image_files { |
52
|
0
|
|
|
0
|
|
|
[qw( |
53
|
|
|
|
|
|
|
tile.gif |
54
|
|
|
|
|
|
|
cog.png |
55
|
|
|
|
|
|
|
)]; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub template_files { |
59
|
0
|
|
|
0
|
|
|
[qw( |
60
|
|
|
|
|
|
|
config.js |
61
|
|
|
|
|
|
|
js-mf.mk |
62
|
|
|
|
|
|
|
css-mf.mk |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
layout.html |
65
|
|
|
|
|
|
|
site-navigation.html |
66
|
|
|
|
|
|
|
page-list.html |
67
|
|
|
|
|
|
|
page-display.html |
68
|
|
|
|
|
|
|
tag-list.html |
69
|
|
|
|
|
|
|
404.html |
70
|
|
|
|
|
|
|
)]; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
1; |