Pimki 1.0.092
Sign up to get free protection for your applications and to get access to all the features.
- data/README +158 -0
- data/README-PIMKI +87 -0
- data/app/controllers/wiki.rb +563 -0
- data/app/models/author.rb +4 -0
- data/app/models/chunks/category.rb +31 -0
- data/app/models/chunks/category_test.rb +21 -0
- data/app/models/chunks/chunk.rb +20 -0
- data/app/models/chunks/engines.rb +34 -0
- data/app/models/chunks/include.rb +29 -0
- data/app/models/chunks/literal.rb +19 -0
- data/app/models/chunks/match.rb +19 -0
- data/app/models/chunks/nowiki.rb +31 -0
- data/app/models/chunks/nowiki_test.rb +14 -0
- data/app/models/chunks/test.rb +18 -0
- data/app/models/chunks/todo.rb +22 -0
- data/app/models/chunks/uri.rb +97 -0
- data/app/models/chunks/uri_test.rb +92 -0
- data/app/models/chunks/wiki.rb +82 -0
- data/app/models/chunks/wiki_test.rb +36 -0
- data/app/models/page.rb +91 -0
- data/app/models/page_lock.rb +24 -0
- data/app/models/page_set.rb +73 -0
- data/app/models/page_test.rb +76 -0
- data/app/models/revision.rb +91 -0
- data/app/models/revision_test.rb +252 -0
- data/app/models/web.rb +277 -0
- data/app/models/web_test.rb +53 -0
- data/app/models/wiki_content.rb +113 -0
- data/app/models/wiki_service.rb +137 -0
- data/app/models/wiki_service_test.rb +15 -0
- data/app/models/wiki_words.rb +26 -0
- data/app/models/wiki_words_test.rb +12 -0
- data/app/views/bottom.rhtml +4 -0
- data/app/views/markdown_help.rhtml +16 -0
- data/app/views/menu.rhtml +20 -0
- data/app/views/navigation.rhtml +26 -0
- data/app/views/rdoc_help.rhtml +16 -0
- data/app/views/static_style_sheet.rhtml +231 -0
- data/app/views/style.rhtml +179 -0
- data/app/views/textile_help.rhtml +28 -0
- data/app/views/top.rhtml +52 -0
- data/app/views/wiki/authors.rhtml +15 -0
- data/app/views/wiki/bliki.rhtml +101 -0
- data/app/views/wiki/bliki_edit.rhtml +33 -0
- data/app/views/wiki/bliki_new.rhtml +61 -0
- data/app/views/wiki/bliki_revision.rhtml +51 -0
- data/app/views/wiki/edit.rhtml +34 -0
- data/app/views/wiki/edit_menu.rhtml +27 -0
- data/app/views/wiki/edit_web.rhtml +139 -0
- data/app/views/wiki/export.rhtml +14 -0
- data/app/views/wiki/feeds.rhtml +10 -0
- data/app/views/wiki/list.rhtml +164 -0
- data/app/views/wiki/locked.rhtml +14 -0
- data/app/views/wiki/login.rhtml +11 -0
- data/app/views/wiki/mind.rhtml +39 -0
- data/app/views/wiki/new.rhtml +27 -0
- data/app/views/wiki/new_system.rhtml +78 -0
- data/app/views/wiki/new_web.rhtml +64 -0
- data/app/views/wiki/page.rhtml +84 -0
- data/app/views/wiki/print.rhtml +16 -0
- data/app/views/wiki/published.rhtml +10 -0
- data/app/views/wiki/recently_revised.rhtml +31 -0
- data/app/views/wiki/revision.rhtml +87 -0
- data/app/views/wiki/rss_feed.rhtml +22 -0
- data/app/views/wiki/search.rhtml +26 -0
- data/app/views/wiki/tex.rhtml +23 -0
- data/app/views/wiki/tex_web.rhtml +35 -0
- data/app/views/wiki/todo.rhtml +39 -0
- data/app/views/wiki/web_list.rhtml +13 -0
- data/app/views/wiki_words_help.rhtml +8 -0
- data/libraries/action_controller_servlet.rb +177 -0
- data/libraries/bluecloth.rb +1127 -0
- data/libraries/diff/diff.rb +475 -0
- data/libraries/diff/diff_test.rb +80 -0
- data/libraries/erb.rb +490 -0
- data/libraries/madeleine/automatic.rb +357 -0
- data/libraries/madeleine/clock.rb +94 -0
- data/libraries/madeleine_service.rb +69 -0
- data/libraries/rdocsupport.rb +156 -0
- data/libraries/redcloth_for_tex.rb +869 -0
- data/libraries/redcloth_for_tex_test.rb +41 -0
- data/libraries/view_helper.rb +33 -0
- data/libraries/web_controller_server.rb +95 -0
- data/pimki.rb +97 -0
- metadata +169 -0
@@ -0,0 +1,231 @@
|
|
1
|
+
#Menu {
|
2
|
+
float: left;
|
3
|
+
margin: 0 auto;
|
4
|
+
text-align: left;
|
5
|
+
width: 180px;
|
6
|
+
}
|
7
|
+
|
8
|
+
#Menu a, existingWikiWord, newWikiWord {
|
9
|
+
font-size: 11px;
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
#Menu th {
|
14
|
+
color: darkgreen;
|
15
|
+
font-size: 12px;
|
16
|
+
text-align: left
|
17
|
+
}
|
18
|
+
|
19
|
+
#Container {
|
20
|
+
float: left;
|
21
|
+
margin: 0 auto;
|
22
|
+
text-align: center;
|
23
|
+
}
|
24
|
+
|
25
|
+
#Content {
|
26
|
+
margin: 0;
|
27
|
+
padding: 5px;
|
28
|
+
text-align: left;
|
29
|
+
border-top: none;
|
30
|
+
float: right;
|
31
|
+
}
|
32
|
+
|
33
|
+
body { background-color: #fff; color: #333; }
|
34
|
+
|
35
|
+
body, p, ol, ul, td {
|
36
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
37
|
+
font-size: 13px;
|
38
|
+
line-height: 18px;
|
39
|
+
}
|
40
|
+
|
41
|
+
a { color: #000; }
|
42
|
+
|
43
|
+
.newWikiWord { background-color: #eee; }
|
44
|
+
.newWikiWord a:hover { background-color: white; }
|
45
|
+
|
46
|
+
// a:visited { color: #666; }
|
47
|
+
a:hover { color: #fff; background-color:#000; }
|
48
|
+
|
49
|
+
/* a.edit:link, a.edit:visited { color: #DA0006; } */
|
50
|
+
|
51
|
+
|
52
|
+
h1, h2, h3 { color: #333; font-family: georgia, verdana; }
|
53
|
+
h1 { font-size: 28px; color: blue }
|
54
|
+
h2 { font-size: 19px; color: darkblue }
|
55
|
+
h3 { font-size: 16px; color: darkblue }
|
56
|
+
|
57
|
+
h1#pageName {
|
58
|
+
margin: 5px 0px 0px 0px;
|
59
|
+
padding: 0px 0px 0px 0px;
|
60
|
+
line-height: 28px;
|
61
|
+
}
|
62
|
+
|
63
|
+
h1#pageName small {
|
64
|
+
color: grey;
|
65
|
+
line-height: 10px;
|
66
|
+
font-size: 10px;
|
67
|
+
padding: 0px;
|
68
|
+
}
|
69
|
+
|
70
|
+
a.nav, a.nav:link, a.nav:visited { color: #000; }
|
71
|
+
a.nav:hover { color: #fff; background-color:#000; }
|
72
|
+
|
73
|
+
li { margin-bottom: 7px }
|
74
|
+
|
75
|
+
.navigation {
|
76
|
+
margin-top: 5px;
|
77
|
+
font-size : 12px;
|
78
|
+
color: #999;
|
79
|
+
}
|
80
|
+
|
81
|
+
.navigation a:hover { color: #fff; background-color:#000; }
|
82
|
+
|
83
|
+
.navigation a {
|
84
|
+
font-size: 11px;
|
85
|
+
color: black;
|
86
|
+
font-weight: bold;
|
87
|
+
}
|
88
|
+
|
89
|
+
.navigation small a {
|
90
|
+
font-weight: normal;
|
91
|
+
font-size: 11px;
|
92
|
+
}
|
93
|
+
|
94
|
+
.navOn{
|
95
|
+
font-size: 11px;
|
96
|
+
color: grey;
|
97
|
+
font-weight: bold;
|
98
|
+
text-decoration: none;
|
99
|
+
}
|
100
|
+
|
101
|
+
.help {
|
102
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
103
|
+
font-size: 11px;
|
104
|
+
}
|
105
|
+
|
106
|
+
.inputBox {
|
107
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
108
|
+
font-size: 11px;
|
109
|
+
background-color: #eee;
|
110
|
+
padding: 5px;
|
111
|
+
margin-bottom: 20px;
|
112
|
+
}
|
113
|
+
|
114
|
+
blockquote {
|
115
|
+
display: block;
|
116
|
+
margin: 0px 0px 20px 0px;
|
117
|
+
padding: 0px 30px;
|
118
|
+
font-size:11px;
|
119
|
+
line-height:17px;
|
120
|
+
font-style: italic;
|
121
|
+
}
|
122
|
+
|
123
|
+
pre {
|
124
|
+
background-color: #eee;
|
125
|
+
padding: 10px;
|
126
|
+
font-size: 11px;
|
127
|
+
}
|
128
|
+
|
129
|
+
ol.setup {
|
130
|
+
font-size: 19px;
|
131
|
+
font-family: georgia, verdana;
|
132
|
+
padding-left: 25px;
|
133
|
+
}
|
134
|
+
|
135
|
+
ol.setup li {
|
136
|
+
margin-bottom: 20px
|
137
|
+
}
|
138
|
+
|
139
|
+
.byline {
|
140
|
+
font-size: 10px;
|
141
|
+
font-style: italic;
|
142
|
+
margin-bottom: 10px;
|
143
|
+
color: #999;
|
144
|
+
}
|
145
|
+
|
146
|
+
.references {
|
147
|
+
font-size: 10px;
|
148
|
+
}
|
149
|
+
|
150
|
+
.diffdel {
|
151
|
+
background: pink;
|
152
|
+
}
|
153
|
+
|
154
|
+
.diffins {
|
155
|
+
background: lightgreen;
|
156
|
+
}
|
157
|
+
|
158
|
+
#TextileHelp table {
|
159
|
+
margin-bottom: 0;
|
160
|
+
}
|
161
|
+
|
162
|
+
#TextileHelp table+h3 {
|
163
|
+
margin-top: 11px;
|
164
|
+
}
|
165
|
+
|
166
|
+
#TextileHelp table td {
|
167
|
+
font-size: 11px;
|
168
|
+
padding: 3px;
|
169
|
+
vertical-align: top;
|
170
|
+
border-top: 1px dotted #ccc;
|
171
|
+
}
|
172
|
+
|
173
|
+
#TextileHelp table td.arrow {
|
174
|
+
padding-right: 5px;
|
175
|
+
padding-left: 10px;
|
176
|
+
color: #999;
|
177
|
+
}
|
178
|
+
|
179
|
+
#TextileHelp table td.label {
|
180
|
+
font-weight: bold;
|
181
|
+
white-space: nowrap;
|
182
|
+
font-size: 10px;
|
183
|
+
padding-right: 15px;
|
184
|
+
color: #000;
|
185
|
+
}
|
186
|
+
|
187
|
+
#TextileHelp h3 {
|
188
|
+
font-size: 11px;
|
189
|
+
font-weight: bold;
|
190
|
+
font-weight: normal;
|
191
|
+
margin: 0 0 5px 0;
|
192
|
+
padding: 5px 0 0 0;
|
193
|
+
}
|
194
|
+
|
195
|
+
#TextileHelp p {
|
196
|
+
font-size: 10px;
|
197
|
+
}
|
198
|
+
|
199
|
+
.rightHandSide {
|
200
|
+
float: right;
|
201
|
+
width: 147px;
|
202
|
+
margin-left: 10px;
|
203
|
+
padding-left: 20px;
|
204
|
+
border-left: 1px dotted #ccc;
|
205
|
+
}
|
206
|
+
|
207
|
+
.rightHandSide p {
|
208
|
+
font-size: 10px;
|
209
|
+
}
|
210
|
+
|
211
|
+
.newsList {
|
212
|
+
margin-top: 20px;
|
213
|
+
}
|
214
|
+
|
215
|
+
.newsList p {
|
216
|
+
margin-bottom:30px
|
217
|
+
}
|
218
|
+
|
219
|
+
.todo {
|
220
|
+
color : red;
|
221
|
+
}
|
222
|
+
|
223
|
+
.todoFuture {
|
224
|
+
color : darkred;
|
225
|
+
}
|
226
|
+
|
227
|
+
.searchresult {
|
228
|
+
color: purple;
|
229
|
+
font-weight: bold;
|
230
|
+
font-style: italic;
|
231
|
+
}
|
@@ -0,0 +1,179 @@
|
|
1
|
+
<style type="text/css">
|
2
|
+
h1#pageName, .newWikiWord a, a.existingWikiWord, .newWikiWord a:hover, #TextileHelp h3 { color: #<%= @web ? @web.color : "393" %>; }
|
3
|
+
|
4
|
+
#Container, #Content {
|
5
|
+
width: <%= @content_width || "600" %>px;
|
6
|
+
}
|
7
|
+
|
8
|
+
#Container {
|
9
|
+
float: none;
|
10
|
+
margin: 0 auto;
|
11
|
+
text-align: center;
|
12
|
+
}
|
13
|
+
|
14
|
+
#Content {
|
15
|
+
margin: 0;
|
16
|
+
padding: 5px;
|
17
|
+
text-align: left;
|
18
|
+
border-top: none;
|
19
|
+
float: left;
|
20
|
+
}
|
21
|
+
|
22
|
+
body { background-color: #fff; }
|
23
|
+
|
24
|
+
body, p, ol, ul, td {
|
25
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
26
|
+
color: #333;
|
27
|
+
font-size: 13px;
|
28
|
+
line-height: 18px;
|
29
|
+
}
|
30
|
+
|
31
|
+
a { color: #000; }
|
32
|
+
|
33
|
+
.newWikiWord { background-color: #eee; }
|
34
|
+
.newWikiWord a:hover { background-color: white; }
|
35
|
+
|
36
|
+
a:visited { color: #666; }
|
37
|
+
a:hover { color: #fff; background-color:#000; }
|
38
|
+
|
39
|
+
h1, h2, h3 { color: #333; font-family: georgia, verdana; }
|
40
|
+
h1 { font-size: 28px }
|
41
|
+
h2 { font-size: 19px }
|
42
|
+
h3 { font-size: 16px }
|
43
|
+
|
44
|
+
h1#pageName {
|
45
|
+
margin: 5px 0px 0px 0px;
|
46
|
+
padding: 0px 0px 0px 0px;
|
47
|
+
line-height: 28px;
|
48
|
+
}
|
49
|
+
|
50
|
+
h1#pageName small {
|
51
|
+
color: grey;
|
52
|
+
line-height: 10px;
|
53
|
+
font-size: 10px;
|
54
|
+
padding: 0px;
|
55
|
+
}
|
56
|
+
|
57
|
+
a.nav, a.nav:link, a.nav:visited { color: #000; }
|
58
|
+
a.nav:hover { color: #fff; background-color:#000; }
|
59
|
+
|
60
|
+
li { margin-bottom: 7px }
|
61
|
+
|
62
|
+
.navigation {
|
63
|
+
margin-top: 5px;
|
64
|
+
font-size : 12px;
|
65
|
+
color: #000;
|
66
|
+
}
|
67
|
+
|
68
|
+
.navigation a:hover { color: #fff; background-color:#000; }
|
69
|
+
|
70
|
+
.navigation a {
|
71
|
+
font-size: 11px;
|
72
|
+
color: black;
|
73
|
+
font-weight: bold;
|
74
|
+
}
|
75
|
+
|
76
|
+
.navigation small a {
|
77
|
+
font-weight: normal;
|
78
|
+
font-size: 11px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.navOn{
|
82
|
+
font-size: 11px;
|
83
|
+
color: grey;
|
84
|
+
font-weight: bold;
|
85
|
+
text-decoration: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
.help {
|
89
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
90
|
+
font-size: 11px;
|
91
|
+
}
|
92
|
+
|
93
|
+
.inputBox {
|
94
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
95
|
+
font-size: 11px;
|
96
|
+
background-color: #eee;
|
97
|
+
padding: 5px;
|
98
|
+
margin-bottom: 20px;
|
99
|
+
}
|
100
|
+
|
101
|
+
blockquote {
|
102
|
+
display: block;
|
103
|
+
margin: 0px 0px 20px 0px;
|
104
|
+
padding: 0px 30px;
|
105
|
+
font-size:11px;
|
106
|
+
line-height:17px;
|
107
|
+
font-style: italic;
|
108
|
+
}
|
109
|
+
|
110
|
+
pre {
|
111
|
+
background-color: #eee;
|
112
|
+
padding: 10px;
|
113
|
+
font-size: 11px;
|
114
|
+
}
|
115
|
+
|
116
|
+
ol.setup {
|
117
|
+
font-size: 19px;
|
118
|
+
font-family: georgia, verdana;
|
119
|
+
padding-left: 25px;
|
120
|
+
}
|
121
|
+
|
122
|
+
ol.setup li {
|
123
|
+
margin-bottom: 20px
|
124
|
+
}
|
125
|
+
|
126
|
+
.byline {
|
127
|
+
font-size: 10px;
|
128
|
+
font-style: italic;
|
129
|
+
margin-bottom: 10px;
|
130
|
+
}
|
131
|
+
|
132
|
+
.references {
|
133
|
+
font-size: 10px;
|
134
|
+
}
|
135
|
+
|
136
|
+
#TextileHelp table {
|
137
|
+
margin-bottom: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
#TextileHelp table+h3 {
|
141
|
+
margin-top: 11px;
|
142
|
+
}
|
143
|
+
|
144
|
+
#TextileHelp table td {
|
145
|
+
font-size: 11px;
|
146
|
+
padding: 3px;
|
147
|
+
vertical-align: top;
|
148
|
+
border-top: 1px dotted #ccc;
|
149
|
+
}
|
150
|
+
|
151
|
+
#TextileHelp table td.arrow {
|
152
|
+
padding-right: 5px;
|
153
|
+
padding-left: 10px;
|
154
|
+
color: #999;
|
155
|
+
}
|
156
|
+
|
157
|
+
#TextileHelp table td.label {
|
158
|
+
font-weight: bold;
|
159
|
+
white-space: nowrap;
|
160
|
+
font-size: 10px;
|
161
|
+
padding-right: 15px;
|
162
|
+
color: #000;
|
163
|
+
}
|
164
|
+
|
165
|
+
#TextileHelp h3 {
|
166
|
+
font-size: 11px;
|
167
|
+
font-weight: bold;
|
168
|
+
font-weight: normal;
|
169
|
+
margin: 0 0 5px 0;
|
170
|
+
padding: 5px 0 0 0;
|
171
|
+
}
|
172
|
+
|
173
|
+
#TextileHelp p {
|
174
|
+
font-size: 10px;
|
175
|
+
}
|
176
|
+
|
177
|
+
<%= @style_additions %>
|
178
|
+
<%= @web ? web.additional_style : "" %>
|
179
|
+
</style>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div id="TextileHelp" style="float: right; width: 250px; margin-top: 5px">
|
2
|
+
<h3>Textile formatting tips (<a href="#" onClick="quickRedReference(); return false;">advanced</a>)</h3>
|
3
|
+
<table cellspacing="0" cellpadding="0">
|
4
|
+
<tr><td>_your text_</td><td class="arrow">→</td><td><em>your text</em></td></tr>
|
5
|
+
<tr><td>*your text*</td><td class="arrow">→</td><td><strong>your text</strong></td></tr>
|
6
|
+
<tr><td>%{color:red}hello%</td><td class="arrow">→</td><td><span style="color: red;">hello</span></td></tr>
|
7
|
+
<tr><td>* Bulleted list<br />* Second item</td><td class="arrow">→</td><td>• Bulleted list<br />• Second item</td></tr>
|
8
|
+
<tr><td># Numbered list<br /># Second item</td><td class="arrow">→</td><td>1. Numbered list<br />2. Second item</td></tr>
|
9
|
+
<tr><td>"linkname":URL</td><td class="arrow">→</td><td><a href="URL">linkname</a></td></tr>
|
10
|
+
<tr><td>|a|table|row|<br />|b|table|row|</td><td class="arrow">→</td><td>Table</td></tr>
|
11
|
+
<tr><td>http://url<br />email@address.com</td><td class="arrow">→</td><td>Auto-linked</td></tr>
|
12
|
+
<tr><td>!imageURL!</td><td class="arrow">→</td><td>Image</td></tr>
|
13
|
+
</table>
|
14
|
+
|
15
|
+
<%= sub_template "wiki_words_help" %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<script language="JavaScript">
|
19
|
+
function quickRedReference() {
|
20
|
+
window.open(
|
21
|
+
"http://hobix.com/textile/quick.html",
|
22
|
+
"redRef",
|
23
|
+
"height=600,width=550,channelmode=0,dependent=0," +
|
24
|
+
"directories=0,fullscreen=0,location=0,menubar=0," +
|
25
|
+
"resizable=0,scrollbars=1,status=1,toolbar=0"
|
26
|
+
);
|
27
|
+
}
|
28
|
+
</script>
|
data/app/views/top.rhtml
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<title>
|
5
|
+
<% if @web && @page && @page.name == "HomePage" && %( show published print ).include?(@action_name) %>
|
6
|
+
<%= @web.name %>
|
7
|
+
<% elsif @web %>
|
8
|
+
<%= @title %> in <%= @web.name %>
|
9
|
+
<% else %>
|
10
|
+
<%= @title %>
|
11
|
+
<% end %>
|
12
|
+
</title>
|
13
|
+
|
14
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
15
|
+
|
16
|
+
<style type="text/css">
|
17
|
+
h1#pageName, .newWikiWord a, a.existingWikiWord, .newWikiWord a:hover, #TextileHelp h3 {
|
18
|
+
color: #<%= @web ? @web.color : "393" %>;
|
19
|
+
}
|
20
|
+
|
21
|
+
#Container, #Content {
|
22
|
+
width: <%= @content_width || "600" %>px;
|
23
|
+
}
|
24
|
+
<%= sub_template("static_style_sheet") if @inline_style %>
|
25
|
+
</style>
|
26
|
+
|
27
|
+
<link rel="Stylesheet" href="../static_style_sheet/" type="text/css" media="screen" />
|
28
|
+
|
29
|
+
<style type="text/css">
|
30
|
+
<%= @style_additions %>
|
31
|
+
<%= @web ? web.additional_style : "" %>
|
32
|
+
</style>
|
33
|
+
</head>
|
34
|
+
<body>
|
35
|
+
|
36
|
+
<%= sub_template "menu" unless @hide_navigation%>
|
37
|
+
|
38
|
+
<div id="Container">
|
39
|
+
<div id="Content">
|
40
|
+
|
41
|
+
<h1 id="pageName">
|
42
|
+
<% if @web && @page && @page.name == "HomePage" && %( show published print ).include?(@action_name) %>
|
43
|
+
<%= @web.name %>
|
44
|
+
<% elsif @web %>
|
45
|
+
<small><%= @web.name %></small><br />
|
46
|
+
<%= @title %>
|
47
|
+
<% else %>
|
48
|
+
<%= @title %>
|
49
|
+
<% end %>
|
50
|
+
</h1>
|
51
|
+
|
52
|
+
<%= sub_template "navigation" unless @web.nil? || @hide_navigation %>
|