Minimal working frontend.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x�ŽK
|
||||
1]ç}�‘ɯ{"Á…à:ŸŽ�i‰ñþÎʸy‹¢
|
||||
^–ÖÖÆúÃèÌ�¬vI‡ì‘Ù�‰”CÉ–BXB´¦úìÐR¯Øy ™4F«i‰„•m`¦´,uÎÕ”ì¢sä+ªøép“×Îï!Ûtç¾q‡Ó�viò”–䘥�AZ9‹¦™æYít9vù¿^Õµ3üF}ɆJü
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
x�’A�Σ@…9Ο―°΄‡‚ΤMO Δ±� 8P�8TrObe2�<“�ϊορd[΅έR.φΌ<Ο3u�ή½}�κφj�=vΗδά³8Aξ &•��DNΔΓΡZ�¥®9Ζ0$�J€ΰiq8M„�±±ΗUώM΄-Ώ·Η.m!/rλ�bΖ…p?DYbi�N_+8”Ο%Lρ|ή$π3¦,ΚΉΨT«{ΚΆ—d�0Οj�kB‹R@�R–Π‚W
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
x��M
|
||||
Β0F]ηs�J:™ζD<‚Αυ¤� B:%Ζ…··gpω=ήƒoΦZ�ΠΡ΅7Η)η’�Dk‰Ω³υ(qN�#ν[Z27Y;�d�—%eοCI‚�Θ'XM.Δ9ΰbψΣΪমMή]Χα.m•§®υRυ¥5λqΦz†C¤0Z?Α`ƒµf§ϋΛΎΛ�υ†—δ+°=΄«ωo#J
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
x]’A�Ó@…9ϯ°Ä¡ uSqÙÇ" 8PŠ8Tr'±2Gw£þ{<ÙVˆ•r±çåù{ž©£ÔðøîñÕkØs¬öØ÷œrÿ•Àl ˜U{Iœ
|
||||
¤ƒ£·>K]³¦0f� GÊ€ÐÑpž SãN«ü›h[~-nN}Þ‚-rïLâÆÅø0&YRiŸN_+8”/%ŽLé|Þdè0æ+,ÊVlªÕ=›èõYGhuÍ-¡G) AÉ$¶Ð©LŽÛrבR2˜IóL�ñèúaÀÙH×?.ôþ£R-ê’ð+uì+¨…#FÊU_<í3³&TÅÕ¯ßÛ¶/7ƒ£ÄuÄ=G�ÿÎméÁWg.P
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
x•�KjΓ0@»Φ)ζ)#{$� ”΅‹@Χϊ�hΪΘdωώρΆθφρΌΆ½ί&,k|™C¨„€iuK³ΒƒΝ�±q�‰#ΚΝEDnΙ<��mBΖj‘Χ…ΙE!jQ
|
||||
ΎT³ΕZΛJ©΅l�1ΏuΐU;|Ω§n—/›x›Ϊ?ΊώhΟϊZ΄Ώƒ]“χΑYΈ`@4'=/η)�§ηθώzsΏmΏp<`Χ.°Ο£5σΓ,L�
|
||||
@@ -0,0 +1 @@
|
||||
x��KjУ0@Лж)ц)#i,KPJ�аE k}fhкШdљўёЂшіёМЊНп&8�^ц`�ь).Ё�9&AOњт�#)5-та�GМM(и,Fя"-ЇE"By
|
||||
@@ -0,0 +1,3 @@
|
||||
�
|
||||
�
|
||||
�
|
||||
@@ -1 +1 @@
|
||||
f01428b3138994aab19d5f880b6f37336ddf1f24
|
||||
4fde706c7c8d3b30b6caec8c82ff4c01261350f2
|
||||
|
||||
+5
-5
@@ -81,34 +81,34 @@ context "Markup" do
|
||||
test "image with horizontal align" do
|
||||
%w{left center right}.each do |align|
|
||||
content = "a [[alpha.jpg|align=#{align}]] b"
|
||||
output = "<p>a <div class=\"align-#{align}\"><div><img src=\"/greek/alpha.jpg\" /></div></div> b</p>\n"
|
||||
output = "<p>a <span class=\"align-#{align}\"><span><img src=\"/greek/alpha.jpg\" /></span></span> b</p>\n"
|
||||
relative_image(content, output)
|
||||
end
|
||||
end
|
||||
|
||||
test "image with float" do
|
||||
content = "a\n\n[[alpha.jpg|float]]\n\nb"
|
||||
output = "<p>a</p>\n\n<p><div class=\"float-left;\"><div><img src=\"/greek/alpha.jpg\" /></div></div></p>\n\n<p>b</p>\n"
|
||||
output = "<p>a</p>\n\n<p><span class=\"float-left\"><span><img src=\"/greek/alpha.jpg\" /></span></span></p>\n\n<p>b</p>\n"
|
||||
relative_image(content, output)
|
||||
end
|
||||
|
||||
test "image with float and align" do
|
||||
%w{left right}.each do |align|
|
||||
content = "a\n\n[[alpha.jpg|float|align=#{align}]]\n\nb"
|
||||
output = "<p>a</p>\n\n<p><div class=\"float-#{align};\"><div><img src=\"/greek/alpha.jpg\" /></div></div></p>\n\n<p>b</p>\n"
|
||||
output = "<p>a</p>\n\n<p><span class=\"float-#{align}\"><span><img src=\"/greek/alpha.jpg\" /></span></span></p>\n\n<p>b</p>\n"
|
||||
relative_image(content, output)
|
||||
end
|
||||
end
|
||||
|
||||
test "image with frame" do
|
||||
content = "a\n\n[[alpha.jpg|frame]]\n\nb"
|
||||
output = "<p>a</p>\n\n<p><div class=\"frame\"><div><img src=\"/greek/alpha.jpg\" /></div></div></p>\n\n<p>b</p>\n"
|
||||
output = "<p>a</p>\n\n<p><span class=\"frame\"><span><img src=\"/greek/alpha.jpg\" /></span></span></p>\n\n<p>b</p>\n"
|
||||
relative_image(content, output)
|
||||
end
|
||||
|
||||
test "image with frame and alt" do
|
||||
content = "a\n\n[[alpha.jpg|frame|alt=Alpha]]\n\nb"
|
||||
output = "<p>a</p>\n\n<p><div class=\"frame\"><div><img src=\"/greek/alpha.jpg\" alt=\"Alpha\" /><p>Alpha</p></div></div></p>\n\n<p>b</p>\n"
|
||||
output = "<p>a</p>\n\n<p><span class=\"frame\"><span><img src=\"/greek/alpha.jpg\" alt=\"Alpha\" /><span>Alpha</span></span></span></p>\n\n<p>b</p>\n"
|
||||
relative_image(content, output)
|
||||
end
|
||||
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ context "Page" do
|
||||
|
||||
test "page versions" do
|
||||
page = @wiki.page('Bilbo Baggins')
|
||||
assert_equal ['5bc1aaec6149e854078f1d0f8b71933bbc6c2e43'],
|
||||
assert_equal ["f25eccd98e9b667f9e22946f3e2f945378b8a72d", "5bc1aaec6149e854078f1d0f8b71933bbc6c2e43"],
|
||||
page.versions.map { |v| v.id }
|
||||
end
|
||||
|
||||
|
||||
+9
-7
@@ -17,25 +17,27 @@ context "Wiki" do
|
||||
test "shows paginated log with no page" do
|
||||
Gollum::Wiki.per_page = 3
|
||||
assert_equal %w(
|
||||
f01428b3138994aab19d5f880b6f37336ddf1f24
|
||||
fbabba862dfa7ac35b39042dd4ad780c9f67b8cb
|
||||
df26e61e707116f81ebc6b935ec6d1676b7e96c4),
|
||||
4fde706c7c8d3b30b6caec8c82ff4c01261350f2
|
||||
1e716a3178a76fe39ee7b88f0cf2dc4a447566f6
|
||||
afe2034d400ba21e13361f38f74900c51dbc7fde),
|
||||
@wiki.log.map { |c| c.id }
|
||||
end
|
||||
|
||||
test "shows paginated log with 1st page" do
|
||||
Gollum::Wiki.per_page = 3
|
||||
assert_equal %w(
|
||||
f01428b3138994aab19d5f880b6f37336ddf1f24
|
||||
fbabba862dfa7ac35b39042dd4ad780c9f67b8cb
|
||||
df26e61e707116f81ebc6b935ec6d1676b7e96c4),
|
||||
4fde706c7c8d3b30b6caec8c82ff4c01261350f2
|
||||
1e716a3178a76fe39ee7b88f0cf2dc4a447566f6
|
||||
afe2034d400ba21e13361f38f74900c51dbc7fde),
|
||||
@wiki.log(:page => 1).map { |c| c.id }
|
||||
end
|
||||
|
||||
test "shows paginated log with next page" do
|
||||
Gollum::Wiki.per_page = 3
|
||||
assert_equal %w(
|
||||
5bc1aaec6149e854078f1d0f8b71933bbc6c2e43),
|
||||
f25eccd98e9b667f9e22946f3e2f945378b8a72d
|
||||
b0d108328459e44fff4a76cd19b10ddc34adce4b
|
||||
f01428b3138994aab19d5f880b6f37336ddf1f24),
|
||||
@wiki.log(:page => 2).map { |c| c.id }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user