fron-ui 1.0.0rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/.rubocop.yml +38 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +7 -0
  7. data/.yardopts +8 -0
  8. data/Gemfile +8 -0
  9. data/Gemfile.lock +105 -0
  10. data/Rakefile +37 -0
  11. data/Readme.md +4 -0
  12. data/db.json +192 -0
  13. data/fron-ui.gemspec +21 -0
  14. data/lib/fron-ui.rb +1 -0
  15. data/lib/fron_ui.rb +5 -0
  16. data/lib/fron_ui/version.rb +7 -0
  17. data/opal/fron-ui/base.rb +49 -0
  18. data/opal/fron-ui/behaviors/action.rb +40 -0
  19. data/opal/fron-ui/behaviors/actions.rb +40 -0
  20. data/opal/fron-ui/behaviors/confirmation.rb +23 -0
  21. data/opal/fron-ui/behaviors/dropdown.rb +27 -0
  22. data/opal/fron-ui/behaviors/file.rb +48 -0
  23. data/opal/fron-ui/behaviors/intendable_children.rb +76 -0
  24. data/opal/fron-ui/behaviors/keydown.rb +31 -0
  25. data/opal/fron-ui/behaviors/loop.rb +41 -0
  26. data/opal/fron-ui/behaviors/render.rb +30 -0
  27. data/opal/fron-ui/behaviors/rest.rb +121 -0
  28. data/opal/fron-ui/behaviors/selectable_children.rb +67 -0
  29. data/opal/fron-ui/behaviors/serialize.rb +32 -0
  30. data/opal/fron-ui/behaviors/shortcuts.rb +35 -0
  31. data/opal/fron-ui/behaviors/state.rb +56 -0
  32. data/opal/fron-ui/behaviors/transition.rb +63 -0
  33. data/opal/fron-ui/components/action.rb +18 -0
  34. data/opal/fron-ui/components/box.rb +17 -0
  35. data/opal/fron-ui/components/button.rb +61 -0
  36. data/opal/fron-ui/components/calendar.rb +129 -0
  37. data/opal/fron-ui/components/checkbox.rb +57 -0
  38. data/opal/fron-ui/components/chooser.rb +246 -0
  39. data/opal/fron-ui/components/color_panel.rb +235 -0
  40. data/opal/fron-ui/components/color_picker.rb +111 -0
  41. data/opal/fron-ui/components/container.rb +61 -0
  42. data/opal/fron-ui/components/date_picker.rb +141 -0
  43. data/opal/fron-ui/components/drag.rb +76 -0
  44. data/opal/fron-ui/components/dropdown.rb +72 -0
  45. data/opal/fron-ui/components/icon.rb +29 -0
  46. data/opal/fron-ui/components/image.rb +77 -0
  47. data/opal/fron-ui/components/input.rb +30 -0
  48. data/opal/fron-ui/components/label.rb +9 -0
  49. data/opal/fron-ui/components/list.rb +34 -0
  50. data/opal/fron-ui/components/loader.rb +63 -0
  51. data/opal/fron-ui/components/modal.rb +0 -0
  52. data/opal/fron-ui/components/notifications.rb +73 -0
  53. data/opal/fron-ui/components/number.rb +202 -0
  54. data/opal/fron-ui/components/progress.rb +52 -0
  55. data/opal/fron-ui/components/slider.rb +47 -0
  56. data/opal/fron-ui/components/tabs.rb +149 -0
  57. data/opal/fron-ui/components/textarea.rb +13 -0
  58. data/opal/fron-ui/components/time.rb +65 -0
  59. data/opal/fron-ui/components/title.rb +34 -0
  60. data/opal/fron-ui/examples/blog/index.rb +289 -0
  61. data/opal/fron-ui/examples/comments/components/comment.rb +75 -0
  62. data/opal/fron-ui/examples/comments/components/comments.rb +93 -0
  63. data/opal/fron-ui/examples/comments/components/footer.rb +36 -0
  64. data/opal/fron-ui/examples/comments/components/header.rb +35 -0
  65. data/opal/fron-ui/examples/comments/components/list.rb +12 -0
  66. data/opal/fron-ui/examples/comments/index.rb +6 -0
  67. data/opal/fron-ui/examples/contacts/components/contacts.rb +100 -0
  68. data/opal/fron-ui/examples/contacts/components/details.rb +92 -0
  69. data/opal/fron-ui/examples/contacts/components/item.rb +46 -0
  70. data/opal/fron-ui/examples/contacts/components/list.rb +10 -0
  71. data/opal/fron-ui/examples/contacts/components/sidebar.rb +30 -0
  72. data/opal/fron-ui/examples/contacts/index.rb +6 -0
  73. data/opal/fron-ui/examples/editor/index.rb +164 -0
  74. data/opal/fron-ui/examples/kitchensink/index.rb +193 -0
  75. data/opal/fron-ui/examples/todos/components/item.rb +84 -0
  76. data/opal/fron-ui/examples/todos/components/options.rb +26 -0
  77. data/opal/fron-ui/examples/todos/components/todos.rb +145 -0
  78. data/opal/fron-ui/examples/todos/index.rb +6 -0
  79. data/opal/fron-ui/examples/webshop/index.rb +0 -0
  80. data/opal/fron-ui/fonts/ionicons.rb +2954 -0
  81. data/opal/fron-ui/fonts/open_sans.rb +19 -0
  82. data/opal/fron-ui/lib/collection.rb +138 -0
  83. data/opal/fron-ui/lib/date.rb +23 -0
  84. data/opal/fron-ui/lib/debounce.rb +14 -0
  85. data/opal/fron-ui/lib/image_loader.rb +13 -0
  86. data/opal/fron-ui/lib/lorem.rb +93 -0
  87. data/opal/fron-ui/lib/nil.rb +29 -0
  88. data/opal/fron-ui/lib/record.rb +23 -0
  89. data/opal/fron-ui/lib/state_serializer.rb +129 -0
  90. data/opal/fron-ui/lib/storage.rb +57 -0
  91. data/opal/fron-ui/spec/setup.rb +40 -0
  92. data/opal/fron-ui/ui.rb +40 -0
  93. data/opal/fron-ui/utils/theme_roller.rb +63 -0
  94. data/opal/fron-ui/vendor/autoprefixer.js +21114 -0
  95. data/opal/fron-ui/vendor/marked.js +1291 -0
  96. data/opal/fron-ui/vendor/md5.js +274 -0
  97. data/opal/fron-ui/vendor/moment.js +3083 -0
  98. data/opal/fron-ui/vendor/uuid.js +92 -0
  99. data/opal/fron_ui.rb +13 -0
  100. data/spec/behaviors/action_spec.rb +34 -0
  101. data/spec/behaviors/actions_spec.rb +38 -0
  102. data/spec/behaviors/confirmation_spec.rb +23 -0
  103. data/spec/behaviors/dropdown_spec.rb +32 -0
  104. data/spec/behaviors/render_spec.rb +20 -0
  105. data/spec/behaviors/rest_spec.rb +70 -0
  106. data/spec/behaviors/selectable_children_spec.rb +40 -0
  107. data/spec/behaviors/serialize_spec.rb +34 -0
  108. data/spec/components/action_spec.rb +7 -0
  109. data/spec/components/base_spec.rb +19 -0
  110. data/spec/components/box_spec.rb +7 -0
  111. data/spec/components/button_spec.rb +9 -0
  112. data/spec/components/calendar_spec.rb +58 -0
  113. data/spec/components/checkbox_spec.rb +20 -0
  114. data/spec/components/chooser_spec.rb +75 -0
  115. data/spec/components/color_panel_spec.rb +49 -0
  116. data/spec/components/color_picker_spec.rb +41 -0
  117. data/spec/components/container_spec.rb +23 -0
  118. data/spec/components/date_picker_spec.rb +71 -0
  119. data/spec/components/drag_spec.rb +20 -0
  120. data/spec/components/dropdown_spec.rb +33 -0
  121. data/spec/components/image_spec.rb +33 -0
  122. data/spec/components/input_spec.rb +8 -0
  123. data/spec/components/list_spec.rb +10 -0
  124. data/spec/components/loader_spec.rb +9 -0
  125. data/spec/components/notifications_spec.rb +17 -0
  126. data/spec/components/number_spec.rb +64 -0
  127. data/spec/components/progress_spec.rb +23 -0
  128. data/spec/components/slider_spec.rb +25 -0
  129. data/spec/components/tabs_spec.rb +50 -0
  130. data/spec/components/textarea_spec.rb +7 -0
  131. data/spec/components/time_spec.rb +37 -0
  132. data/spec/components/title_spec.rb +11 -0
  133. data/spec/examples/comments_spec.rb +72 -0
  134. data/spec/examples/todos_spec.rb +39 -0
  135. data/spec/lib/collection_spec.rb +38 -0
  136. data/spec/lib/lorem_spec.rb +55 -0
  137. data/spec/lib/state_serializer_spec.rb +58 -0
  138. data/spec/lib/storage_spec.rb +39 -0
  139. data/spec/spec_helper.rb +1 -0
  140. metadata +223 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: efd20e4c3b9927019503ebaca34252746e80ff92
4
+ data.tar.gz: 691ca719a3c21076a57bd7f09abc9de4c22fb640
5
+ SHA512:
6
+ metadata.gz: 0820aa638ab91008ce05b756de363640aa3425368f86c52bbea82b2abe54defc4d09814adaf5d32fbc259d8432316021932e070bdbb8332a969dba46baca5fef
7
+ data.tar.gz: b519c7d63460f0ffc0b933021d942bf5c755920acfb37e7e7932691dc24221258060bc81107235632679c269a205204b51bb48696450d49c74758cdbbd137274
@@ -0,0 +1,3 @@
1
+ tmp
2
+ doc
3
+ .yardoc
@@ -0,0 +1,38 @@
1
+ ParallelAssignment:
2
+ Enabled: false
3
+
4
+ LineLength:
5
+ Enabled: false
6
+
7
+ FileName:
8
+ Enabled: false
9
+
10
+ CommandLiteral:
11
+ Enabled: false
12
+
13
+ MethodLength:
14
+ Enabled: false
15
+
16
+ AbcSize:
17
+ Enabled: false
18
+
19
+ AsciiComments:
20
+ Enabled: false
21
+
22
+ Documentation:
23
+ Enabled: false
24
+
25
+ BlockDelimiters:
26
+ Enabled: false
27
+
28
+ CyclomaticComplexity:
29
+ Enabled: false
30
+
31
+ PerceivedComplexity:
32
+ Enabled: false
33
+
34
+ ClassLength:
35
+ Enabled: false
36
+
37
+ MutableConstant:
38
+ Enabled: false
@@ -0,0 +1 @@
1
+ fron-ui
@@ -0,0 +1 @@
1
+ 2.0
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ script: bundle exec rake ci
3
+ rvm:
4
+ - 2.0
5
+ branches:
6
+ only:
7
+ - master
@@ -0,0 +1,8 @@
1
+ --private
2
+ --protected
3
+ --title Fron
4
+ --exclude opal/fron-ui/examples/blog
5
+ --exclude opal/fron-ui/examples/editor
6
+ --exclude opal/fron-ui/examples/kitchensink
7
+ --exclude opal/fron-ui/examples/webshop
8
+ opal/**/*.rb
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'rake', '~> 11.1'
5
+ gem 'execjs', '~> 2.6'
6
+ gem 'rubocop', '~> 0.39.0'
7
+ gem 'rubycritic', '~> 2.8'
8
+ gem 'yard', '~> 0.8.7.6'
@@ -0,0 +1,105 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fron-ui (1.0.0rc2)
5
+ color (= 1.8)
6
+ fron (= 1.0.0rc1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.4.0)
12
+ ast (2.2.0)
13
+ axiom-types (0.1.1)
14
+ descendants_tracker (~> 0.0.4)
15
+ ice_nine (~> 0.11.0)
16
+ thread_safe (~> 0.3, >= 0.3.1)
17
+ codeclimate-engine-rb (0.3.1)
18
+ virtus (~> 1.0)
19
+ coercible (1.0.0)
20
+ descendants_tracker (~> 0.0.1)
21
+ color (1.8)
22
+ colorize (0.7.7)
23
+ concurrent-ruby (1.0.1)
24
+ descendants_tracker (0.0.4)
25
+ thread_safe (~> 0.3, >= 0.3.1)
26
+ equalizer (0.0.11)
27
+ erubis (2.7.0)
28
+ execjs (2.6.0)
29
+ flay (2.7.0)
30
+ erubis (~> 2.7.0)
31
+ ruby_parser (~> 3.0)
32
+ sexp_processor (~> 4.0)
33
+ flog (4.3.2)
34
+ ruby_parser (~> 3.1, > 3.1.0)
35
+ sexp_processor (~> 4.4)
36
+ fron (1.0.0rc1)
37
+ opal (~> 0.9.2)
38
+ hike (1.2.3)
39
+ ice_nine (0.11.2)
40
+ launchy (2.4.3)
41
+ addressable (~> 2.3)
42
+ opal (0.9.2)
43
+ hike (~> 1.2)
44
+ sourcemap (~> 0.1.0)
45
+ sprockets (~> 3.1)
46
+ tilt (>= 1.4)
47
+ opal-rspec (0.5.0)
48
+ opal (>= 0.8.0, < 0.10)
49
+ parser (2.3.0.7)
50
+ ast (~> 2.2)
51
+ powerpack (0.1.1)
52
+ rack (1.6.4)
53
+ rainbow (2.1.0)
54
+ rake (11.1.2)
55
+ reek (3.11)
56
+ codeclimate-engine-rb (~> 0.3.1)
57
+ parser (~> 2.3, >= 2.3.0.6)
58
+ rainbow (~> 2.0)
59
+ rubocop (0.39.0)
60
+ parser (>= 2.3.0.7, < 3.0)
61
+ powerpack (~> 0.1)
62
+ rainbow (>= 1.99.1, < 3.0)
63
+ ruby-progressbar (~> 1.7)
64
+ unicode-display_width (~> 1.0, >= 1.0.1)
65
+ ruby-progressbar (1.7.5)
66
+ ruby_parser (3.8.1)
67
+ sexp_processor (~> 4.1)
68
+ rubycritic (2.8.0)
69
+ colorize
70
+ flay (= 2.7.0)
71
+ flog (= 4.3.2)
72
+ launchy (= 2.4.3)
73
+ parser (~> 2.3)
74
+ reek (= 3.11)
75
+ ruby_parser (~> 3.8)
76
+ virtus (~> 1.0)
77
+ sexp_processor (4.7.0)
78
+ sourcemap (0.1.1)
79
+ sprockets (3.5.2)
80
+ concurrent-ruby (~> 1.0)
81
+ rack (> 1, < 3)
82
+ thread_safe (0.3.5)
83
+ tilt (2.0.2)
84
+ unicode-display_width (1.0.3)
85
+ virtus (1.0.5)
86
+ axiom-types (~> 0.1)
87
+ coercible (~> 1.0)
88
+ descendants_tracker (~> 0.0, >= 0.0.3)
89
+ equalizer (~> 0.0, >= 0.0.9)
90
+ yard (0.8.7.6)
91
+
92
+ PLATFORMS
93
+ ruby
94
+
95
+ DEPENDENCIES
96
+ execjs (~> 2.6)
97
+ fron-ui!
98
+ opal-rspec (~> 0.5.0)
99
+ rake (~> 11.1)
100
+ rubocop (~> 0.39.0)
101
+ rubycritic (~> 2.8)
102
+ yard (~> 0.8.7.6)
103
+
104
+ BUNDLED WITH
105
+ 1.11.2
@@ -0,0 +1,37 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'opal/rspec/rake_task'
4
+ require 'rack'
5
+ require 'fron_ui'
6
+
7
+ Bundler::GemHelper.install_tasks
8
+
9
+ html = -> (file) { "<body><script src='/assets/#{file}.js'></script><script>Opal.modules[\"#{file}\"](Opal)</script></body>" }
10
+
11
+ Opal::RSpec::RakeTask.new(:spec) do |_, task|
12
+ task.files = FileList[ARGV[1] || 'spec/**/*_spec.rb']
13
+ task.timeout = 120_000
14
+ end
15
+
16
+ desc 'Run CI Tasks'
17
+ task :ci do
18
+ sh 'SPEC_OPTS="--color" rake spec'
19
+ sh 'rubocop lib opal spec'
20
+ sh 'rubycritic lib opal --mode-ci -s 94 --no-browser'
21
+ end
22
+
23
+ task :examples do
24
+ opal = Opal::Server.new do |s|
25
+ s.main = nil
26
+ s.debug = false
27
+ end
28
+
29
+ app = proc do |env|
30
+ next [404, {}, []] if env['PATH_INFO'] =~ %r{^/assets}
31
+ example = env['PATH_INFO'][1..-1]
32
+ ['200', { 'Content-Type' => 'text/html' }, [html.call("fron-ui/examples/#{example}/index")]]
33
+ end
34
+
35
+ server = Rack::Cascade.new([app, opal])
36
+ Rack::Handler::WEBrick.run server, Port: 9292
37
+ end
@@ -0,0 +1,4 @@
1
+ # Fron UI
2
+ [![Build Status](https://travis-ci.org/gdotdesign/fron-ui.svg?branch=master)](https://travis-ci.org/gdotdesign/fron-ui)
3
+ [![Inline docs](http://inch-ci.org/github/gdotdesign/fron-ui.svg?branch=master)](http://inch-ci.org/github/gdotdesign/fron-ui)
4
+ [![Join the chat at https://gitter.im/gdotdesign/fron-ui](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gdotdesign/fron-ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
data/db.json ADDED
@@ -0,0 +1,192 @@
1
+ {
2
+ "contacts": [
3
+ {
4
+ "id": "073f3c48-74d6-433b-b9d1-6f60225efecb",
5
+ "name": "asdasd",
6
+ "email": "cyber.gusztav@gmail.com",
7
+ "address": null,
8
+ "phone": null
9
+ },
10
+ {
11
+ "id": "efc6cf1f-3b0f-4ee9-ad11-185a8c330dd2",
12
+ "name": "asd",
13
+ "email": "sad",
14
+ "address": "asd",
15
+ "phone": "asd"
16
+ },
17
+ {
18
+ "id": "9927e5a2-6368-460f-9fd5-e98f9bfd6688"
19
+ }
20
+ ],
21
+ "todos": [
22
+ {
23
+ "id": "86b74f49-316b-4394-8f31-a00ad4b4fa2d",
24
+ "text": "asd",
25
+ "done": false
26
+ },
27
+ {
28
+ "id": "73acd3ad-2f46-4a5a-849e-651512358ae9",
29
+ "text": "asd",
30
+ "done": false
31
+ },
32
+ {
33
+ "id": "1fab55da-b5e2-491b-9a69-8518f837a990",
34
+ "text": "asd",
35
+ "done": true
36
+ },
37
+ {
38
+ "id": "00613730-0617-4bc6-b2d1-096fbe922e85",
39
+ "text": "asd",
40
+ "done": false
41
+ },
42
+ {
43
+ "id": "71336bf6-0bbc-46b1-b743-7620e7699375",
44
+ "text": "asd",
45
+ "done": false
46
+ },
47
+ {
48
+ "id": "3f44b881-dd11-4dc1-b482-22da50a54e5e",
49
+ "text": "asd",
50
+ "done": false
51
+ },
52
+ {
53
+ "id": "4a0f805a-512b-4360-8c6b-57e4fcecdab6",
54
+ "text": "d",
55
+ "done": false
56
+ }
57
+ ],
58
+ "comments": [
59
+ {
60
+ "id": "6a54bdf5-9d3f-408e-b75d-d9255acb8ce3",
61
+ "date": "2015-06-06T16:04:08+0200",
62
+ "votes": 0,
63
+ "user": {
64
+ "name": "Tamara Beier",
65
+ "image": "https://randomuser.me/api/portraits/men/63.jpg"
66
+ },
67
+ "body": "<p>Yo!</p>"
68
+ },
69
+ {
70
+ "id": "2e5b3ab0-1714-445c-9538-edc73e1d4e24",
71
+ "date": "2015-06-07T05:48:40+0200",
72
+ "votes": 0,
73
+ "user": {
74
+ "name": "Keegan Bahringer",
75
+ "image": "https://randomuser.me/api/portraits/men/23.jpg"
76
+ },
77
+ "body": "<p>Whatssuuup?</p>"
78
+ },
79
+ {
80
+ "id": "a62672a8-8639-4bb8-9b22-9af6b253b8b2",
81
+ "date": "2015-06-07T06:14:57+0200",
82
+ "votes": 0,
83
+ "user": {
84
+ "name": "Evie Wolff",
85
+ "image": "https://randomuser.me/api/portraits/women/72.jpg"
86
+ },
87
+ "body": "<p>asdasd</p><p>asdasd</p>"
88
+ },
89
+ {
90
+ "id": "3081cf67-8850-4253-86a0-823be113d900",
91
+ "date": "2015-06-28T07:13:15+0200",
92
+ "votes": 0,
93
+ "user": {
94
+ "name": "Nicolas Bins",
95
+ "image": "https://randomuser.me/api/portraits/men/52.jpg"
96
+ },
97
+ "body": "<p>Testing...</p>"
98
+ },
99
+ {
100
+ "id": "7c46fdce-75a0-47cd-91a0-b9604f21e525",
101
+ "date": "2015-07-07T14:56:07+0200",
102
+ "votes": 1,
103
+ "user": {
104
+ "name": "Korey Jacobs",
105
+ "image": "https://randomuser.me/api/portraits/women/0.jpg"
106
+ },
107
+ "body": "<p>adasda</p>"
108
+ },
109
+ {
110
+ "id": "2f44be0c-4950-48b7-8ac2-6b549c521235",
111
+ "date": "2016-04-02T08:55:29+0200",
112
+ "votes": 0,
113
+ "user": {
114
+ "name": "Harold Hudson",
115
+ "image": "https://randomuser.me/api/portraits/men/26.jpg"
116
+ },
117
+ "body": "<p>asdasd</p>"
118
+ }
119
+ ],
120
+ "files": [
121
+ {
122
+ "id": "asd",
123
+ "filename": "test.csv",
124
+ "content": "This is a textarea here where you can edit things....asdas\nasd\nasd\nasd\nas\ndas\nd"
125
+ },
126
+ {
127
+ "id": "asad",
128
+ "filename": "test2.csv",
129
+ "content": "This is some text heree....\n\nsad\nasd\nsad\nasd\nsad\nsad"
130
+ },
131
+ {
132
+ "id": "8cd890af-8806-4d58-a383-7e1216fda140",
133
+ "filename": "asdasd"
134
+ },
135
+ {
136
+ "id": "6db640c4-d4e3-4d19-82da-d8969e73bc4a",
137
+ "filename": "Test112"
138
+ }
139
+ ],
140
+ "posts": [
141
+ {
142
+ "title": "Some post title....",
143
+ "id": 1,
144
+ "body": "You're live! Nice. We've put together a little post to introduce you to the Ghost editor and get you started. You can manage your content by signing in to the admin area at `<your blog URL>/ghost/`. When you arrive, you can select this post from a list on the left and see a preview of it on the right. Click the little pencil icon at the top of the preview to edit this post and read the next section!\n\n## Getting Started\n\nGhost uses something called Markdown for writing. Essentially, it's a shorthand way to manage your post formatting as you write!\n\nWriting in Markdown is really easy. In the left hand panel of Ghost, you simply write as you normally would. Where appropriate, you can use *shortcuts* to **style** your content. For example, a list:\n\n* Item number one\n* Item number two\n * A nested item\n* A final item\n\nor with numbers!\n\n1. Remember to buy some milk\n2. Drink the milk\n3. Tweet that I remembered to buy the milk, and drank it\n\n### Links\n\nWant to link to a source? No problem. If you paste in a URL, like http://ghost.org - it'll automatically be linked up. But if you want to customise your anchor text, you can do that too! Here's a link to [the Ghost website](http://ghost.org). Neat.\n\n### What about Images?\n\nImages work too! Already know the URL of the image you want to include in your article? Simply paste it in like this to make it show up:\n\nNot sure which image you want to use yet? That's ok too. Leave yourself a descriptive placeholder and keep writing. Come back later and drag and drop the image in to upload:\n\n### Quoting\n\nSometimes a link isn't enough, you want to quote someone on what they've said. It was probably very wisdomous. Is wisdomous a word? Find out in a future release when we introduce spellcheck! For now - it's definitely a word.\n\n> Wisdomous - it's definitely a word.\n\n### Working with Code\n\nGot a streak of geek? We've got you covered there, too. You can write inline `<code>` blocks really easily with back ticks. Want to show off something more comprehensive? 4 spaces of indentation gets you there.\n\n .awesome-thing {\n display: block;\n width: 100%;\n }\n\n### Ready for a Break? \n\nThrow 3 or more dashes down on any new line and you've got yourself a fancy new divider. Aw yeah.\n\n---\n\n### Advanced Usage\n\nThere's one fantastic secret about Markdown. If you want, you can write plain old HTML and it'll still work! Very flexible.\n\nThat should be enough to get you started. Have fun - and let us know what you think :)"
145
+ },
146
+ {
147
+ "title": "Test Post",
148
+ "body": "this is the content....\nasdasdasd\nas\ndas\nd",
149
+ "id": 9
150
+ },
151
+ {
152
+ "title": "ASDasd",
153
+ "body": "asdasdasdasdasd",
154
+ "id": 10
155
+ },
156
+ {
157
+ "title": "Test post #301",
158
+ "body": "this is a textarea thingy....",
159
+ "id": 17
160
+ },
161
+ {
162
+ "title": "asdasdasd",
163
+ "body": "asdasdasdsadasdasda",
164
+ "id": 18
165
+ },
166
+ {
167
+ "title": "sadasd",
168
+ "body": "asdasdasdasda",
169
+ "id": 20
170
+ },
171
+ {
172
+ "title": "Test",
173
+ "body": null,
174
+ "id": 21
175
+ },
176
+ {
177
+ "title": "Test",
178
+ "body": null,
179
+ "id": 23
180
+ },
181
+ {
182
+ "title": "asdasd",
183
+ "body": null,
184
+ "id": 24
185
+ },
186
+ {
187
+ "title": "asdasd",
188
+ "body": "sad\nasd\nsad\nsad\n### Hello There\n\nThis is somethign nice!",
189
+ "id": 25
190
+ }
191
+ ]
192
+ }
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/fron_ui/version', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'fron-ui'
6
+ s.version = Fron::UI::VERSION
7
+ s.author = 'Gusztav Szikszai'
8
+ s.email = 'gusztav.szikszai@digitalnatives.hu'
9
+ s.homepage = 'https://github.com/gdotdesign/fron-ui'
10
+ s.summary = 'UI Library using Fron'
11
+ s.description = 'UI Library using Fron'
12
+
13
+ s.files = `git ls-files`.split("\n")
14
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.require_paths = ['lib']
17
+
18
+ s.add_runtime_dependency 'fron', '1.0.0rc1'
19
+ s.add_runtime_dependency 'color', '1.8'
20
+ s.add_development_dependency 'opal-rspec', '~> 0.5.0'
21
+ end