cyberweb 0.12.35 → 0.13.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +220 -124
  3. data/bin/cyberweb_sanitize +1 -1
  4. data/bin/images_from_this_webpage +1 -1
  5. data/doc/README.gen +209 -98
  6. data/doc/configuration/configuration.md +7 -4
  7. data/doc/todo/todo_for_the_cyberweb_project.md +123 -133
  8. data/examples/html/underlined_text_example/underlined_text_example.html +40 -0
  9. data/examples/misc/table_example.rb +19 -17
  10. data/examples/objectified/objectified_caesar_cipher.cgi +73 -0
  11. data/images/cyberweb_theme.png +0 -0
  12. data/lib/cyberweb/REST/constants.rb +1 -1
  13. data/lib/cyberweb/base/base.rb +19 -27
  14. data/lib/cyberweb/base_module/base_module/base_module.rb +31 -16
  15. data/lib/cyberweb/base_module/colours/colours.rb +0 -8
  16. data/lib/cyberweb/cascading_style_sheets/margin.css +4 -0
  17. data/lib/cyberweb/cascading_style_sheets/misc.css +15 -0
  18. data/lib/cyberweb/cgi/cookie.rb +160 -156
  19. data/lib/cyberweb/cgi/core.rb +7 -7
  20. data/lib/cyberweb/cgi/query_extension.rb +1 -1
  21. data/lib/cyberweb/cgi/session/memory_store.rb +1 -1
  22. data/lib/cyberweb/cgi/session/pstore.rb +2 -2
  23. data/lib/cyberweb/cgi/session.rb +1 -1
  24. data/lib/cyberweb/cgi/util.rb +4 -1
  25. data/lib/cyberweb/cmd/cmd.rb +12 -10
  26. data/lib/cyberweb/coloured_tags/coloured_tags.rb +1 -1
  27. data/lib/cyberweb/colours/colour_chart.rb +1 -2
  28. data/lib/cyberweb/colours/colours.rb +1 -1
  29. data/lib/cyberweb/commandline/commandline_interface.rb +1 -1
  30. data/lib/cyberweb/configuration/load_the_configuration.rb +3 -1
  31. data/lib/cyberweb/constants/http_status_codes.rb +4 -1
  32. data/lib/cyberweb/constants/misc.rb +8 -6
  33. data/lib/cyberweb/constants/registered_html_tags.rb +6 -5
  34. data/lib/cyberweb/constants/user_x.rb +7 -0
  35. data/lib/cyberweb/css_manager/css_manager.rb +5 -2
  36. data/lib/cyberweb/encoding/encoding.rb +1 -1
  37. data/lib/cyberweb/erb/test.rhtml +7 -2
  38. data/lib/cyberweb/experimental/html_template_powered_by_rack.rb +3 -1
  39. data/lib/cyberweb/foto_gallery/foto_gallery.rb +3 -0
  40. data/lib/cyberweb/generator/cgi.rb +1 -1
  41. data/lib/cyberweb/html_template/html_template.rb +262 -253
  42. data/lib/cyberweb/images/images.rb +2 -2
  43. data/lib/cyberweb/images/remove_this_substring_from_all_images.rb +5 -1
  44. data/lib/cyberweb/images/standard_images/standard_images.html +3 -4
  45. data/lib/cyberweb/information/README.md +2 -2
  46. data/lib/cyberweb/information/information.cgi +1 -1
  47. data/lib/cyberweb/javascript/dragula_collection.rb +4 -1
  48. data/lib/cyberweb/javascript/javascript_magic.rb +2 -2
  49. data/lib/cyberweb/javascript/on_click_change_opacity.rb +2 -1
  50. data/lib/cyberweb/javascript/popup.rb +8 -1
  51. data/lib/cyberweb/javascript/snoweffect.rb +5 -1
  52. data/lib/cyberweb/javascript_code/custom_functions.js +50 -32
  53. data/lib/cyberweb/objectified/html_tags/README.md +7 -9
  54. data/lib/cyberweb/objectified/html_tags/a.rb +62 -3
  55. data/lib/cyberweb/objectified/html_tags/abbr.rb +33 -3
  56. data/lib/cyberweb/objectified/html_tags/audio.rb +33 -3
  57. data/lib/cyberweb/objectified/html_tags/base.rb +661 -588
  58. data/lib/cyberweb/objectified/html_tags/blockquote.rb +33 -3
  59. data/lib/cyberweb/objectified/html_tags/body.rb +43 -3
  60. data/lib/cyberweb/objectified/html_tags/button.rb +75 -5
  61. data/lib/cyberweb/objectified/html_tags/canvas.rb +43 -3
  62. data/lib/cyberweb/objectified/html_tags/cite.rb +43 -3
  63. data/lib/cyberweb/objectified/html_tags/div.rb +70 -7
  64. data/lib/cyberweb/objectified/html_tags/embed.rb +43 -3
  65. data/lib/cyberweb/objectified/html_tags/fieldset.rb +43 -3
  66. data/lib/cyberweb/objectified/html_tags/figure.rb +43 -3
  67. data/lib/cyberweb/objectified/html_tags/form.rb +78 -3
  68. data/lib/cyberweb/objectified/html_tags/h1.rb +43 -3
  69. data/lib/cyberweb/objectified/html_tags/h2.rb +43 -3
  70. data/lib/cyberweb/objectified/html_tags/h3.rb +43 -3
  71. data/lib/cyberweb/objectified/html_tags/h4.rb +43 -3
  72. data/lib/cyberweb/objectified/html_tags/h5.rb +43 -3
  73. data/lib/cyberweb/objectified/html_tags/h6.rb +43 -3
  74. data/lib/cyberweb/objectified/html_tags/head.rb +34 -1
  75. data/lib/cyberweb/objectified/html_tags/i.rb +112 -0
  76. data/lib/cyberweb/objectified/html_tags/img.rb +65 -18
  77. data/lib/cyberweb/objectified/html_tags/input.rb +86 -2
  78. data/lib/cyberweb/objectified/html_tags/label.rb +103 -0
  79. data/lib/cyberweb/objectified/html_tags/legend.rb +129 -0
  80. data/lib/cyberweb/objectified/html_tags/li.rb +111 -0
  81. data/lib/cyberweb/objectified/html_tags/map.rb +43 -3
  82. data/lib/cyberweb/objectified/html_tags/meta.rb +13 -2
  83. data/lib/cyberweb/objectified/html_tags/nav.rb +111 -0
  84. data/lib/cyberweb/objectified/html_tags/object.rb +33 -3
  85. data/lib/cyberweb/objectified/html_tags/ol.rb +127 -0
  86. data/lib/cyberweb/objectified/html_tags/p.rb +33 -3
  87. data/lib/cyberweb/objectified/html_tags/pre.rb +41 -4
  88. data/lib/cyberweb/objectified/html_tags/progress.rb +43 -3
  89. data/lib/cyberweb/objectified/html_tags/section.rb +116 -0
  90. data/lib/cyberweb/objectified/html_tags/select.rb +34 -1
  91. data/lib/cyberweb/objectified/html_tags/span.rb +64 -5
  92. data/lib/cyberweb/objectified/html_tags/style.rb +9 -2
  93. data/lib/cyberweb/objectified/html_tags/table.rb +137 -3
  94. data/lib/cyberweb/objectified/html_tags/td.rb +135 -0
  95. data/lib/cyberweb/objectified/html_tags/textarea.rb +37 -3
  96. data/lib/cyberweb/objectified/html_tags/th.rb +114 -0
  97. data/lib/cyberweb/objectified/html_tags/thead.rb +114 -0
  98. data/lib/cyberweb/objectified/html_tags/title.rb +10 -2
  99. data/lib/cyberweb/objectified/html_tags/tr.rb +110 -0
  100. data/lib/cyberweb/objectified/html_tags/ul.rb +45 -4
  101. data/lib/cyberweb/objectified/shorter_helper_methods/shorter_helper_methods.rb +67 -46
  102. data/lib/cyberweb/oop.rb +9 -0
  103. data/lib/cyberweb/predefined_and_freeform_methods/hash_registered_extra_tags.rb +2 -0
  104. data/lib/cyberweb/predefined_and_freeform_methods/header.rb +4 -1
  105. data/lib/cyberweb/project/project.rb +0 -4
  106. data/lib/cyberweb/requires/remove_html.rb +1 -1
  107. data/lib/cyberweb/requires/require_the_cyberweb_project.rb +1 -9
  108. data/lib/cyberweb/route_handler/module/route_handler_module.rb +2 -1
  109. data/lib/cyberweb/standalone_classes/all_css_classes.rb +5 -2
  110. data/lib/cyberweb/standalone_classes/calculator.rb +3 -1
  111. data/lib/cyberweb/toplevel_methods/audio.rb +3 -1
  112. data/lib/cyberweb/toplevel_methods/csv.rb +1 -1
  113. data/lib/cyberweb/toplevel_methods/frames.rb +11 -3
  114. data/lib/cyberweb/toplevel_methods/greek_letters/greek_letters.rb +3 -0
  115. data/lib/cyberweb/toplevel_methods/hfin.rb +5 -1
  116. data/lib/cyberweb/toplevel_methods/html_tags/README.md +8 -7
  117. data/lib/cyberweb/toplevel_methods/html_tags/html_tags.rb +4211 -2827
  118. data/lib/cyberweb/toplevel_methods/html_tags/table.rb +1202 -0
  119. data/lib/cyberweb/toplevel_methods/javascript.rb +9 -1
  120. data/lib/cyberweb/toplevel_methods/jquery.rb +1 -1
  121. data/lib/cyberweb/toplevel_methods/{log_directory.rb → log_directory_and_logging.rb} +36 -1
  122. data/lib/cyberweb/toplevel_methods/params.rb +11 -11
  123. data/lib/cyberweb/toplevel_methods/random.rb +4 -3
  124. data/lib/cyberweb/toplevel_methods/registered_ids.rb +3 -0
  125. data/lib/cyberweb/toplevel_methods/return_head_start.rb +1 -3
  126. data/lib/cyberweb/toplevel_methods/return_html_start.rb +1 -3
  127. data/lib/cyberweb/toplevel_methods/sanitize_url.rb +2 -1
  128. data/lib/cyberweb/toplevel_methods/server_base_directory.rb +0 -1
  129. data/lib/cyberweb/toplevel_methods/textile.rb +2 -1
  130. data/lib/cyberweb/toplevel_methods/{misc.rb → toplevel_methods.rb} +1446 -807
  131. data/lib/cyberweb/toplevel_methods/video.rb +21 -3
  132. data/lib/cyberweb/toplevel_methods/write_what_into.rb +2 -2
  133. data/lib/cyberweb/utility_scripts/autogenerate_drop_shadow_rules/autogenerate_drop_shadow_rules.rb +2 -4
  134. data/lib/cyberweb/utility_scripts/booklet/booklet.rb +0 -4
  135. data/lib/cyberweb/utility_scripts/download_all_images_from_this_website.rb +1 -1
  136. data/lib/cyberweb/utility_scripts/{download_balloon_css.rb → download_balloon_css/download_balloon_css.rb} +1 -1
  137. data/lib/cyberweb/utility_scripts/images_to_html/images_to_html.rb +3 -0
  138. data/lib/cyberweb/utility_scripts/obtain_files_and_directories_from_this_path/obtain_files_and_directories_from_this_path.rb +183 -71
  139. data/lib/cyberweb/utility_scripts/pdf_to_html/pdf_to_html.rb +160 -65
  140. data/lib/cyberweb/version/version.rb +2 -2
  141. data/lib/cyberweb/web_images/map_symbol_to_image_location.rb +13 -2
  142. data/lib/cyberweb/web_object/web_object.rb +62 -20
  143. data/lib/cyberweb/web_scraper/scrape_this_url.rb +3 -1
  144. data/lib/cyberweb/webmin/biology_server.cgi +1 -1
  145. data/lib/cyberweb/webmin/calculator.cgi +1 -1
  146. data/lib/cyberweb/webmin/colour_chart.cgi +1 -1
  147. data/lib/cyberweb/webmin/comments.cgi +2 -2
  148. data/lib/cyberweb/webmin/constants.rb +1 -1
  149. data/lib/cyberweb/webmin/dictionary.cgi +2 -2
  150. data/lib/cyberweb/webmin/simple_forum/index.cgi +2 -2
  151. data/lib/cyberweb/webmin/sys_info.cgi +3 -3
  152. data/lib/cyberweb/webmin/webforum.cgi +1 -1
  153. data/lib/cyberweb/yaml/registered_html_tags.yml +3 -1
  154. data/test/simple_tests/testing_return_dataset_without_any_comments.rb +1 -1
  155. metadata +23 -57
  156. data/lib/cyberweb/html_tags/README.md +0 -3
  157. data/lib/cyberweb/html_tags/a.rb +0 -67
  158. data/lib/cyberweb/html_tags/accesskey.rb +0 -25
  159. data/lib/cyberweb/html_tags/blockquote.rb +0 -56
  160. data/lib/cyberweb/html_tags/body.rb +0 -14
  161. data/lib/cyberweb/html_tags/br.rb +0 -19
  162. data/lib/cyberweb/html_tags/button.rb +0 -150
  163. data/lib/cyberweb/html_tags/canvas.rb +0 -59
  164. data/lib/cyberweb/html_tags/chtml.rb +0 -14
  165. data/lib/cyberweb/html_tags/div.rb +0 -170
  166. data/lib/cyberweb/html_tags/fieldset.rb +0 -69
  167. data/lib/cyberweb/html_tags/figure.rb +0 -72
  168. data/lib/cyberweb/html_tags/form.rb +0 -203
  169. data/lib/cyberweb/html_tags/h1.rb +0 -77
  170. data/lib/cyberweb/html_tags/h2.rb +0 -81
  171. data/lib/cyberweb/html_tags/h3.rb +0 -60
  172. data/lib/cyberweb/html_tags/h4.rb +0 -66
  173. data/lib/cyberweb/html_tags/h5.rb +0 -64
  174. data/lib/cyberweb/html_tags/h6.rb +0 -60
  175. data/lib/cyberweb/html_tags/hr.rb +0 -22
  176. data/lib/cyberweb/html_tags/html_tags.rb +0 -267
  177. data/lib/cyberweb/html_tags/i.rb +0 -52
  178. data/lib/cyberweb/html_tags/img.rb +0 -294
  179. data/lib/cyberweb/html_tags/input.rb +0 -354
  180. data/lib/cyberweb/html_tags/label.rb +0 -65
  181. data/lib/cyberweb/html_tags/legend.rb +0 -56
  182. data/lib/cyberweb/html_tags/li.rb +0 -67
  183. data/lib/cyberweb/html_tags/map.rb +0 -38
  184. data/lib/cyberweb/html_tags/nav.rb +0 -63
  185. data/lib/cyberweb/html_tags/object.rb +0 -57
  186. data/lib/cyberweb/html_tags/ol.rb +0 -57
  187. data/lib/cyberweb/html_tags/option.rb +0 -64
  188. data/lib/cyberweb/html_tags/p.rb +0 -88
  189. data/lib/cyberweb/html_tags/pre.rb +0 -162
  190. data/lib/cyberweb/html_tags/section.rb +0 -33
  191. data/lib/cyberweb/html_tags/select.rb +0 -104
  192. data/lib/cyberweb/html_tags/span.rb +0 -344
  193. data/lib/cyberweb/html_tags/strong.rb +0 -42
  194. data/lib/cyberweb/html_tags/table.rb +0 -284
  195. data/lib/cyberweb/html_tags/tbody.rb +0 -26
  196. data/lib/cyberweb/html_tags/td.rb +0 -212
  197. data/lib/cyberweb/html_tags/textarea.rb +0 -173
  198. data/lib/cyberweb/html_tags/th.rb +0 -70
  199. data/lib/cyberweb/html_tags/thead.rb +0 -41
  200. data/lib/cyberweb/html_tags/tr.rb +0 -99
  201. data/lib/cyberweb/html_tags/ul.rb +0 -51
  202. data/lib/cyberweb/requires/require_html_tags_files.rb +0 -23
  203. data/lib/cyberweb/toplevel_methods/logging.rb +0 -42
  204. data/lib/cyberweb/web_base/web_base.rb +0 -33
@@ -1,11 +1,37 @@
1
1
  --------------------------------------------------------------------------------
2
+ (38) → Scroll down with a delay through jquery.
3
+ Add it!
4
+ --------------------------------------------------------------------------------
5
+ (25) → html { head; body { p { "I'm awesome!" } } }
6
+ ^^^ the cyberweb framework should allow this as well
7
+ include Cyberweb
8
+ include HtmlTags
9
+ html { head; body { p { "I'm awesome!" } } }
10
+ Hmmmm.
11
+ --------------------------------------------------------------------------------
12
+ (12) → in img:
13
+ img 'FOO/BAR'
14
+ und wenn es hinter keine Endung .png oder .jpg gibt, dann machen
15
+ wir ein glob und versuchen irgend etwas zu finden.
16
+ --------------------------------------------------------------------------------
17
+ (1) → For the logo: flip the image and only use the teal part; drop the rest
18
+ or re-work it a bit until it looks better. and improve the cyborg too.
19
+ --------------------------------------------------------------------------------
20
+ (2) → Feed some class arbitrary html and convert this into
21
+ cyberweb-conforming generators.
22
+ --------------------------------------------------------------------------------
23
+ (3) → Consider switching to a database-layout and enable a plugin
24
+ structure with different database-adapters.
25
+ ^^^ The above should probably also store everything into
26
+ a database.
27
+ --------------------------------------------------------------------------------
2
28
  (4) → import io.kweb.*
3
29
  import io.kweb.dom.element.*
4
30
  fun main(args : Array<String>) {
5
31
  Kweb(port = 8091) {
6
32
  doc.body.new {
7
- p().text("Hello world with Kweb!")
8
- }
33
+ p().text("Hello world with Kweb!")
34
+ }
9
35
  }
10
36
  ^^^ das p.text('FOOBAR')
11
37
  ist interessamnt
@@ -13,11 +39,7 @@
13
39
  sollten - eher in cyberweb, so das html_tags clean bleibt.
14
40
  Eventuell in objectified HTML tags
15
41
  --------------------------------------------------------------------------------
16
- (1) → Replace html_tags/ e. g. class I < WebBase
17
- with class I < Objectified ... hmmm
18
- think about this more.
19
- --------------------------------------------------------------------------------
20
- (2) → fieldset.id = 'bla'
42
+ (5) → fieldset.id = 'bla'
21
43
  ^^^ Jedes HTML Element, das registriert ist, muss ein OpenStruct sein.
22
44
  class Foo < OpenStruct
23
45
  end
@@ -40,14 +62,14 @@
40
62
  ^^^
41
63
  nope, no longer open-struct.
42
64
  --------------------------------------------------------------------------------
43
- (3) → Integrate useful wordpress functionality:
65
+ (6) → Integrate useful wordpress functionality:
44
66
  - make changes to your website without any programming knowledge.
45
67
  - schedule posts to be displayed at specific dates/times so that
46
68
  you can create content ahead of time and schedule it to be published.
47
69
  --------------------------------------------------------------------------------
48
- (5) → extend on dragula, so that we can do fancier stuff
70
+ (7) → extend on dragula, so that we can do fancier stuff
49
71
  --------------------------------------------------------------------------------
50
- (6) → add a method:
72
+ (8) → add a method:
51
73
  p_default_le {
52
74
  }
53
75
  ^^^ this will make use of "le" rather than "e".
@@ -60,28 +82,23 @@
60
82
  Well p_default_le {} has been added. Do we need
61
83
  RenderOrDisplay still? hmmm.
62
84
  --------------------------------------------------------------------------------
63
- (7) → add a simple and documented way to convert from csv into
85
+ (9) → add a simple and documented way to convert from csv into
64
86
  table format:
65
- csv_from_file_to_table
87
+ csv_from_file_to_table
66
88
  or something liket hat.
67
89
  class method
68
90
  Cyberweb.
69
91
  This has been implemented but not yet documented.
70
92
  What does this mean, though?
71
93
  --------------------------------------------------------------------------------
72
- (8) → ability to use different CSS templates quickly
94
+ (10) → ability to use different CSS templates quickly
73
95
  to change the look and style of any site
74
96
  --------------------------------------------------------------------------------
75
- (9) → Ability to generate static html sites.
97
+ (11) → Ability to generate static html sites.
76
98
  The whole layout should be also put into static html and
77
99
  then upload to a remote host! \o/
78
100
  --------------------------------------------------------------------------------
79
- (10) → in img:
80
- img 'FOO/BAR'
81
- und wenn es hinter keine Endung .png oder .jpg gibt, dann machen
82
- wir ein glob und versuchen irgend etwas zu finden.
83
- --------------------------------------------------------------------------------
84
- (11) → Wir erstellen eine inline .css Datei.
101
+ (13) → Wir erstellen eine inline .css Datei.
85
102
  Die nur genau jene Elemente enthält, die in einer webpage auch vorkommen
86
103
  können.
87
104
  This already works like:
@@ -90,10 +107,10 @@
90
107
  (a) Fetch all these entries (use a little class, a converter...)
91
108
  (b) put this into a giant string and generate an inline css for this
92
109
  --------------------------------------------------------------------------------
93
- (12) → > Integriere Sinatra-Funktionalität in WebFoundation, also
110
+ (14) → > Integriere Sinatra-Funktionalität in WebFoundation, also
94
111
  langsam Sinatra erlernen. Insbesondere das Routing.
95
112
  --------------------------------------------------------------------------------
96
- (13) → Flexible Menügenerierung:
113
+ (15) → Flexible Menügenerierung:
97
114
  Schneiden Sie mit dem grafischen Editor Menüs auf Bedürfnisse von Man-
98
115
  ^^ allow us to create easy menus (meta menus):
99
116
  menu 'foo','bla','ble'
@@ -102,7 +119,7 @@
102
119
  add + document them
103
120
  remove this here, then upload to rubygems
104
121
  --------------------------------------------------------------------------------
105
- (14) → (42) → clone the functionality of webmin
122
+ (16) → (42) → clone the functionality of webmin
106
123
  # ======================================================================== #
107
124
  # This is a clone of Webmin. In addition to what webmin allows, the
108
125
  # features of this webmin clone will be manifold, such as the ones
@@ -165,9 +182,7 @@
165
182
  bestimmte verzeichnisse einlesen kann und diese bilder nach
166
183
  id oder namen ausgeben kann - evtl auch nach Größe.
167
184
  --------------------------------------------------------------------------------
168
- (15) → dig through the php docu and integrate things that seem useful.
169
- --------------------------------------------------------------------------------
170
- (16) → Todo bei webmin.cgi überarbeiten/abarbeiten.
185
+ (17) → Todo bei webmin.cgi überarbeiten/abarbeiten.
171
186
  rf webmin
172
187
  pwdrbsrc
173
188
  cd WWW/cybersprawl
@@ -201,16 +216,16 @@
201
216
  (2)
202
217
  div_fin {} is not working as expected. WHY NOT!
203
218
  --------------------------------------------------------------------------------
204
- (17) → add support for erb.
219
+ (18) → add support for erb.
205
220
  first extend this on
206
221
  todoc: bl erb; rf ruby erb
207
222
  then add it.
208
223
  --------------------------------------------------------------------------------
209
- (18) → Reach a point where we can simply copy a remote webpage, and transform all
224
+ (19) → Reach a point where we can simply copy a remote webpage, and transform all
210
225
  of its components into the logic of a local page.
211
226
  bl $CYBERWEB/standalone_classes/turn_html_into_cyberweb.rb
212
227
  --------------------------------------------------------------------------------
213
- (19) → propel.targetPackage = lib.model
228
+ (20) → propel.targetPackage = lib.model
214
229
  propel.packageObjectModel = true
215
230
  propel.project = blog
216
231
  propel.database = mysql
@@ -226,9 +241,6 @@
226
241
  Aber was machen wir dann? Wie holen wir daten da raus?
227
242
  Noch keine Ahnung.
228
243
  --------------------------------------------------------------------------------
229
- (20) → Feed some class arbitrary html and convert this into
230
- cyberweb-conforming generators.
231
- --------------------------------------------------------------------------------
232
244
  (21) → === We must redirect output into the web object.
233
245
  Perhaps we should do another rewrite, where we write up the default
234
246
  tests first. And clean up as we go.
@@ -259,15 +271,10 @@
259
271
  text("Hello Prawn!")
260
272
  }
261
273
  --------------------------------------------------------------------------------
262
- (22) → Consider switching to a database-layout and enable a plugin
263
- structure with different database-adapters.
264
- ^^^ The above should probably also store everything into
265
- a database.
266
- --------------------------------------------------------------------------------
267
- (23) → Try to add activerecord. For this to work, we must first work a
274
+ (22) → Try to add activerecord. For this to work, we must first work a
268
275
  bit with activerecord. (And maybe we should try to install rails)
269
276
  --------------------------------------------------------------------------------
270
- (24) → Sending an email is as simple as using the composeAndSend()
277
+ (23) → Sending an email is as simple as using the composeAndSend()
271
278
  method from an action:
272
279
  $this→getMailer()→composeAndSend(
273
280
  'from@example.com', 'to@example.com', 'Subject', 'Body'
@@ -283,7 +290,7 @@
283
290
  This can work through sendmail but logically sendmail must exist.
284
291
  http://localhost/PROGRAMMING_LANGUAGES/RUBY/SRC/cyberweb/test/testing_email.cgi
285
292
  --------------------------------------------------------------------------------
286
- (25) → Anschauen ob man den pretty_url kerl da mit den installable
293
+ (24) → Anschauen ob man den pretty_url kerl da mit den installable
287
294
  URLs installieren kann.
288
295
  Kann man, und zwar über url_action.
289
296
  Aber da klappt was mit den requires nicht.
@@ -298,20 +305,14 @@
298
305
  WWW verwendbar sein!!!!! Das muss dann ein Teil von
299
306
  Ruby-Webmin (cybermin) werden, also das Testen.
300
307
  ^^^ Nein das geht mit Easycompile.
308
+
301
309
  --------------------------------------------------------------------------------
302
- (26) → html { head; body { p { "I'm awesome!" } } }
303
- ^^^ the cyberweb framework should allow this as well
304
- include Cyberweb
305
- include HtmlTags
306
- html { head; body { p { "I'm awesome!" } } }
307
- Hmmmm.
308
- --------------------------------------------------------------------------------
309
- (27) → Von Markaby lernen heisst siegen lernen → anschauen was
310
+ (26) → Von Markaby lernen heisst siegen lernen anschauen was
310
311
  man da verwenden kann. Die haben einen HTML Generator
311
312
  der brauchbar ist:
312
313
  https://github.com/markaby/markaby
313
314
  --------------------------------------------------------------------------------
314
- (28) → === IMPROVE THE FRAMES-CODE PART OF CYBERWEB.
315
+ (27) → === IMPROVE THE FRAMES-CODE PART OF CYBERWEB.
315
316
  Right now we can do frames like so:
316
317
  w.frame_left 'foo.cgi'
317
318
  w.frame_right 'bla.cgi'
@@ -337,15 +338,15 @@
337
338
  frameset('30,40') { 'FRAME_LEFT.html,FRAME_RIGHT.html' }
338
339
  Hmm. Das klappt, glaube ich... testen, dann entfernen.
339
340
  --------------------------------------------------------------------------------
340
- (29) → === Extend Webmin functionality
341
+ (28) → === Extend Webmin functionality
341
342
  --------------------------------------------------------------------------------
342
- (30) → Debug Toolbar
343
+ (29) → Debug Toolbar
343
344
  Irgendwann, wenn wir mal WebApps schreiben, machen wir so eine
344
345
  Debug Toolbar. Die sollte auch status information anzeigen können.
345
346
  Also see:
346
347
  http://django-debug-toolbar.readthedocs.org/en/1.3/panels.html
347
348
  --------------------------------------------------------------------------------
348
- (31) → Gegeben ist:
349
+ (30) → Gegeben ist:
349
350
  read_display 'foo'
350
351
  Nun wollen wir eine Möglichkeit haben, herauszufinden:
351
352
  (a) Wo diese Methode definiert ist.
@@ -356,17 +357,17 @@
356
357
  find_end.rb
357
358
  Das geht eigentlich schon über die DiamondShell.
358
359
  --------------------------------------------------------------------------------
359
- (32) → Factor out:
360
+ (31) → Factor out:
360
361
  CGI.new.params
361
362
  So that we don't depend on ruby-cgi anymore.
362
363
  Perhaps as a first step, we will copy all of cgi into cyberweb,
363
364
  and then slowly phase it.
364
365
  --------------------------------------------------------------------------------
365
- (33) → Wenn eine CSS klasse verlinkt wird, sie aber nicht existiert,
366
+ (32) → Wenn eine CSS klasse verlinkt wird, sie aber nicht existiert,
366
367
  dann reporten wir das im debug mode.
367
368
  ^^^^^^^^^^^^
368
369
  --------------------------------------------------------------------------------
369
- (34) → https://github.com/rdoc/rdoc/blob/master/lib/rdoc/encoding.rb#L21-46
370
+ (33) → https://github.com/rdoc/rdoc/blob/master/lib/rdoc/encoding.rb#L21-46
370
371
  ^^^ das is cool... wir sollten das eines Tages implementieren,
371
372
  so ein line highlighting.
372
373
  if params.include?('#') and params.include?('-') and params.include?('L')
@@ -378,7 +379,7 @@
378
379
  http://localhost/MISC/SITEMAP.cgi?show_source
379
380
  Now this works. We have to add some highlight-thingy though.
380
381
  --------------------------------------------------------------------------------
381
- (35) → improve on dragula
382
+ (34) → improve on dragula
382
383
  dragula([document.getElementById(left), document.getElementById(right)], {
383
384
  moves: function (el, container, handle) {
384
385
  return handle.className === 'handle';
@@ -387,23 +388,20 @@
387
388
  ^^^ add handles,
388
389
  also perhaps images as these handles
389
390
  --------------------------------------------------------------------------------
390
- (36) → ?sys_information also does not work.
391
+ (35) → ?sys_information also does not work.
391
392
  rf sitemap ?sys_information
392
393
  --------------------------------------------------------------------------------
393
- (37) → in cyberweb, find a way to add a special environment so that
394
+ (36) → in cyberweb, find a way to add a special environment so that
394
395
  my variables are also known.
395
396
  Cyberweb.add_this_environment_variable(hash_here)
396
397
  This method now exists and it also works; we have to generate all
397
398
  my variables first before this can work completely.
398
399
  This may require another project ... hmmm...
399
400
  --------------------------------------------------------------------------------
400
- (38) → finish the cgi? environment
401
+ (37) → finish the cgi? environment
401
402
  right now there is a bug so that does not work.
402
403
  --------------------------------------------------------------------------------
403
- (39) → Scroll down with a delay through jquery.
404
- Add it!
405
- --------------------------------------------------------------------------------
406
- (40) → also ... we need to be able to describe a valid HTML document
404
+ (39) → also ... we need to be able to describe a valid HTML document
407
405
  w {
408
406
  }
409
407
  ^^^ the above should give us a full valid HTML document,
@@ -455,12 +453,12 @@
455
453
  # bar = Bar.new # But we want foo to add into @string.
456
454
  # e bar.string
457
455
  --------------------------------------------------------------------------------
458
- (41) → FS_BIGGER
456
+ (40) → FS_BIGGER
459
457
  ^^^ when a CSS class is not found, report it.
460
458
  This exists now in the file:
461
459
  all_css_classes.rb
462
460
  --------------------------------------------------------------------------------
463
- (42) → add support for gettext
461
+ (41) → add support for gettext
464
462
  http://sevenseacat.net/
465
463
  An introduction to I18n with Gettext
466
464
  Gettext is an established standard for doing i18n and l10n in any
@@ -471,9 +469,9 @@
471
469
  done in web/templates/page/index.html.eex -
472
470
  <h2><%= gettext "Welcome to %{name}", name: "Phoenix!" %></h2>
473
471
  --------------------------------------------------------------------------------
474
- (43) → we must be able to play local video files
472
+ (42) → we must be able to play local video files.
475
473
  --------------------------------------------------------------------------------
476
- (44) → https://jqueryui.com/resizable/
474
+ (43) → https://jqueryui.com/resizable/
477
475
  add support for resizable; when this is done,
478
476
  perhaps move one down the line from
479
477
  there adn continue
@@ -481,23 +479,23 @@
481
479
  https://jqueryui.com/resizable/
482
480
  ^^^ take this example
483
481
  --------------------------------------------------------------------------------
484
- (45) → javascript charts
482
+ (44) → javascript charts
485
483
  - start with google charts, but branch out to other charts lateron as well.
486
484
  This sorta works but we have to continue this, then add docu.
487
485
  https://developers.google.com/chart/interactive/docs/quick_start
488
486
  --------------------------------------------------------------------------------
489
- (46) → # self.append_to_tables << result if result # Store the result in our Tables.
487
+ (45) → # self.append_to_tables << result if result # Store the result in our Tables.
490
488
  ^^^ this does not work no clue why not
491
489
  --------------------------------------------------------------------------------
492
- (47) → add a html→markdown converter
490
+ (46) → add a html→markdown converter
493
491
  --------------------------------------------------------------------------------
494
- (48) → write a webforum, simple one with
492
+ (47) → write a webforum, simple one with
495
493
  yaml files first
496
494
  and /tmp or so
497
495
  a temp dir
498
496
  ^^^ document if we have a temp dir and where it it is as well
499
497
  --------------------------------------------------------------------------------
500
- (49) → The fancy popup thingy, that we ingegrated into studium -. also somehow
498
+ (48) → The fancy popup thingy, that we ingegrated into studium -. also somehow
501
499
  generate this via cyberweb hmmmmm.
502
500
  Cyberweb.popup_widget(text: 'bla bla bla')
503
501
  ^^^ add balloon thingy to cyberweb
@@ -505,21 +503,21 @@
505
503
  AND a way to use Cyberweb.return_balloon
506
504
  or something like that to returh a stylesheet or so
507
505
  --------------------------------------------------------------------------------
508
- (50) → 15) build a big CSS string that is then displayed. perhaps
506
+ (49) → 15) build a big CSS string that is then displayed. perhaps
509
507
  also store it into some file or so. Or at the least
510
508
  offer that possibility to save it.
511
509
  ^^^ Well ... storing has to be re-thought.
512
510
  --------------------------------------------------------------------------------
513
- (51) → search for web-related projects on rubygems.
511
+ (50) → search for web-related projects on rubygems.
514
512
  --------------------------------------------------------------------------------
515
- (52) → Make sure that gathering all CSS classes works properly.
513
+ (51) → Make sure that gathering all CSS classes works properly.
516
514
  --------------------------------------------------------------------------------
517
- (53) → make sure that a HTML-dumper works. It does via the
515
+ (52) → make sure that a HTML-dumper works. It does via the
518
516
  .save functionality but perhaps we have to simplify the
519
517
  API and add a standalone bin/ file for that functionality.
520
518
  And check the documetnation.
521
519
  --------------------------------------------------------------------------------
522
- (54) → (19)
520
+ (53) → (19)
523
521
  kjavascript
524
522
  on_click :random_colour
525
523
  ^^^
@@ -537,10 +535,7 @@
537
535
  first add standalone html; it now exists as standalone
538
536
  but we must add it to objectified html tags still.
539
537
  --------------------------------------------------------------------------------
540
- (55) → flip the image and only use the teal part; drop the rest or re-work it
541
- a bit until it looks better. and improve the cyborg too.
542
- --------------------------------------------------------------------------------
543
- (56) → add a download-all-images from this remote website
538
+ (54) → add a download-all-images from this remote website
544
539
  and add it to cyberweb
545
540
  and document it too!
546
541
  Downloading a remote webpage
@@ -552,18 +547,18 @@
552
547
  rather than a regex we may have to use something else
553
548
  to obtain all img tags
554
549
  --------------------------------------------------------------------------------
555
- (57) → change meta, store it into ONE variable only
550
+ (55) → change meta, store it into ONE variable only
556
551
  and add meta.rb
557
552
  meta_description 'This is a sitemap.'
558
553
  <meta name="description" content="Used auto parts for sale">
559
554
  ^^^ add this
560
555
  This works only partially. I think we have to rewrite WebObject...
561
556
  --------------------------------------------------------------------------------
562
- (58) → continue experimenting with Objectified::HtmlTags
557
+ (56) → continue experimenting with Objectified::HtmlTags
563
558
  --------------------------------------------------------------------------------
564
- (59) → expand css stuff in cyberweb. and more screenshots.
559
+ (57) → expand css stuff in cyberweb. and more screenshots.
565
560
  --------------------------------------------------------------------------------
566
- (60) → add:
561
+ (58) → add:
567
562
  send email via cyberweb
568
563
  send_email(
569
564
  to: 'foobar@hotmail.com',
@@ -578,20 +573,20 @@
578
573
  Then test it; and it must insta-show up on my system or something... hmm
579
574
  ^^^ we want to be able to use emails from cyberweb, no matter how.
580
575
  --------------------------------------------------------------------------------
581
- (61) → html_slider.html
576
+ (59) → html_slider.html
582
577
  ^^^ integrate this into WebObject as well as the OOP variant. We need
583
578
  to use range-like elements like this.
584
579
  --------------------------------------------------------------------------------
585
- (62) → create a fully objectified HTML page somehow.
580
+ (60) → create a fully objectified HTML page somehow.
586
581
  Continue to explore how an OOP-webpage would
587
582
  look like.
588
583
  --------------------------------------------------------------------------------
589
- (63) → consider supporting:
584
+ (61) → consider supporting:
590
585
  def on_this_id(:div_browser_in_use).content = 'Browser in use: <b>'+navigator.userAgent+"</b>";
591
586
  to return JavaccriptHelper class
592
587
  so .content= works on that class
593
588
  --------------------------------------------------------------------------------
594
- (64) → consider adding:
589
+ (62) → consider adding:
595
590
  form.label # Implemented!
596
591
  form.check_box # Implemented!
597
592
  form.text_field # Implemented!
@@ -601,17 +596,17 @@
601
596
  actually add this to the form OOP tag
602
597
  and document it too.
603
598
  --------------------------------------------------------------------------------
604
- (65) → Add more games to the cyberweb project.
599
+ (63) → Add more games to the cyberweb project.
605
600
  - Tetris!!!
606
601
  - snake (added) hmmmmmm
607
602
  --------------------------------------------------------------------------------
608
- (66) → add more jquery goodies. Document them once they work too.
603
+ (64) → add more jquery goodies. Document them once they work too.
609
604
  https://www.tutorialrepublic.com/jquery-examples.php
610
605
  ^^^ continue there
611
606
  --------------------------------------------------------------------------------
612
- (67) → modify grub file via webmin [HALF DONE]
607
+ (65) → modify grub file via webmin [HALF DONE]
613
608
  --------------------------------------------------------------------------------
614
- (68) → require "http/server"
609
+ (66) → require "http/server"
615
610
  # === response?
616
611
  def response?
617
612
  "Hello world! The time is #{Time.now}"
@@ -628,20 +623,20 @@
628
623
  ^^^ this was now implemented
629
624
  document it, test it, and then when it works, remove the entry here.
630
625
  --------------------------------------------------------------------------------
631
- (69) → Add www-support for the simple widgets project.
626
+ (67) → Add www-support for the simple widgets project.
632
627
  This may take a longer while so before we go to do that, perhaps
633
628
  first make libui+ruby-gtk3 support better. Then at a later point
634
629
  we can perhaps improve support for simple widgets in the cyberweb
635
630
  project.
636
631
  --------------------------------------------------------------------------------
637
- (70) → add some way to collect or generate
632
+ (68) → add some way to collect or generate
638
633
  good CSS and re-use them somehow.
639
634
  also document to other people how this is done. Add more CSS
640
635
  solutions in this regard and document them. Then eventually
641
636
  deprecate this entry, or move it towards a "recurring-todo.md"
642
637
  file or something.
643
638
  --------------------------------------------------------------------------------
644
- (71) → Make a flexible base directory and document it.
639
+ (69) → Make a flexible base directory and document it.
645
640
  This should also be set-able via yaml files.
646
641
  perhaps scan:
647
642
  if has_dir? yaml/base_dir.yml
@@ -652,25 +647,25 @@
652
647
  and work on a per-project basis.
653
648
  try_to_use_per_project_settings:
654
649
  --------------------------------------------------------------------------------
655
- (72) → write a forum for the web_object-project, in yaml initially.
650
+ (70) → write a forum for the web_object-project, in yaml initially.
656
651
  ^^^ make this work hmmmm then
657
652
  show to the users how to work with it, as a proof-of-concept.
658
653
  ^^^ and rewrite the project TOO!
659
654
  Well this works somewhat. Needs to be improved still.
660
655
  --------------------------------------------------------------------------------
661
- (73) → Add openID support. everyone likes openID so lets add that
656
+ (71) → Add openID support. everyone likes openID so lets add that
662
657
  --------------------------------------------------------------------------------
663
- (74) → extend jquery examples, like via:
658
+ (72) → extend jquery examples, like via:
664
659
  https://www.freecodecamp.org/news/the-best-jquery-examples/
665
660
  https://www.w3schools.com/jquery/jquery_examples.asp
666
661
  <meta name="DCTERMS.language" content="eng" />
667
662
  ^^^
668
663
  https://terms.tdwg.org/wiki/dcterms:language
669
664
  --------------------------------------------------------------------------------
670
- (75) → http://asciimath.org/
665
+ (73) → http://asciimath.org/
671
666
  ^^^ integrate this.
672
667
  --------------------------------------------------------------------------------
673
- (76) → $(document).ready(function(){
668
+ (74) → $(document).ready(function(){
674
669
  $("p").click(function(){
675
670
  $(this).hide();
676
671
  });
@@ -681,7 +676,7 @@
681
676
  on_click_hide('id_here')
682
677
  ^^^
683
678
  --------------------------------------------------------------------------------
684
- (77) → We can animate any element, such as a simple image:
679
+ (75) → We can animate any element, such as a simple image:
685
680
  <div id="clickme">
686
681
  Click here
687
682
  </div>
@@ -693,24 +688,24 @@
693
688
  });
694
689
  });
695
690
  --------------------------------------------------------------------------------
696
- (78) → investigate charts in javascript
691
+ (76) → investigate charts in javascript
697
692
  http://n3-charts.github.io/line-chart/#/home
698
693
  https://d3js.org/
699
694
  http://smoothiecharts.org/
700
695
  --------------------------------------------------------------------------------
701
- (79) → continue with the simple forum, once it works.
696
+ (77) → continue with the simple forum, once it works.
702
697
  Once the simple forum works, we may have to add
703
698
  a more complex forum, that has more features.
704
699
  and perhaps showcase it somewhere, together with
705
700
  SQL.
706
701
  --------------------------------------------------------------------------------
707
- (80) → >
702
+ (78) → >
708
703
  create Cyberweb::Cybersprawl::SimpleForum
709
704
  ^^^ as test
710
705
  implement first as .cgi thingy
711
706
  document it too
712
707
  --------------------------------------------------------------------------------
713
- (81) → Wir brauchen einen weg das letzte Tag anzusprechen. Beispiel:
708
+ (79) → Wir brauchen einen weg das letzte Tag anzusprechen. Beispiel:
714
709
  img 'LAYOUT.png','mar8px FLL'
715
710
  Dieses Image sollte man dann so verwenden können.
716
711
  last_object.onmousedown = 'dragstart(this)'
@@ -722,7 +717,7 @@
722
717
  ^^^^^^^ hmmm
723
718
  test this.
724
719
  --------------------------------------------------------------------------------
725
- (82) → We should experiment with two variants of WebObject:
720
+ (80) → We should experiment with two variants of WebObject:
726
721
  a) the first one is the traditional variant. This is the currently
727
722
  used variant.
728
723
  b) the second variant is an object-oriented variant. We may call it
@@ -746,7 +741,7 @@
746
741
  that make sense. Once finished there, document it
747
742
  and remove the entry here.
748
743
  --------------------------------------------------------------------------------
749
- (83) → 86) → Cyberweb: be able to read up a .html page and
744
+ (81) → 86) → Cyberweb: be able to read up a .html page and
750
745
  "convert" it into a .cgi page;
751
746
  including the option to dump the html again,
752
747
  including sanitiziation
@@ -757,29 +752,24 @@
757
752
  to know where a page is. Make it perhaps easier to define
758
753
  where the server-dir is and define that too.
759
754
  --------------------------------------------------------------------------------
760
- (84) ->
761
-
762
- /home/x/programming/ruby/src/cyberweb/test/complex_tests/testing_objectified_html_tags/testing_a_standalone_webpage_described_via_objectied_html_tags_as_cgi_file.cgi
763
-
764
- ^^^ continue there
765
-
766
- this may serve as the basis for a future release of cyberweb gem with
767
- objectified HTML tags.
768
-
769
-
770
-
771
-
772
-
773
- --------
774
-
775
- (85)
776
-
777
- Viewing the source of a webpage
778
- Use the view_source() method to add a javascript button, to view the source of a page. The method view_source() is defined in the file cyberweb/web_object/misc.rb:.
779
-
780
- You can, of course, combine this with other code elements. For instance, if you want to embed the view-source button into a div, and style it, then consider the following:
781
-
782
- div('BG_Black white','div_view_source') { view_source }
783
- This will create a div-tag with black background and white font colour, and the id of that div will be div_view_source. Inside that div-tag the view-source button can be found.
755
+ (82)
756
+ /home/x/programming/ruby/src/cyberweb/test/complex_tests/testing_objectified_html_tags/testing_a_standalone_webpage_described_via_objectied_html_tags_as_cgi_file.cgi
757
+ ^^^ continue there
758
+ this may serve as the basis for a future release of cyberweb gem with
759
+ objectified HTML tags.
760
+ --------------------------------------------------------------------------------
761
+ (83) (85)
762
+ Viewing the source of a webpage
763
+ Use the view_source() method to add a javascript button, to view the source of a page. The method view_source() is defined in the file cyberweb/web_object/misc.rb:.
764
+ You can, of course, combine this with other code elements. For instance, if you want to embed the view-source button into a div, and style it, then consider the following:
765
+ div('BG_Black white','div_view_source') { view_source }
766
+ This will create a div-tag with black background and white font colour, and the id of that div will be div_view_source. Inside that div-tag the view-source button can be found.
767
+ ^^^^^^ and add an image how this looks onto the webpage.
768
+ --------------------------------------------------------------------------------
769
+ input(type: 'text') {
770
+ content_editable false
771
+ }
772
+ ^^^^^^^^^^^^^^^^^^^
784
773
 
785
- ^^^^^^ and add an image how this looks onto the webpage.
774
+ thikn whether that may make sense for cyberweb
775
+ --------------------------------------
@@ -0,0 +1,40 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>
5
+ Showcasing the HTML u-tag
6
+ </title>
7
+ <style>
8
+ body {
9
+ font-size: 1.5em;
10
+ padding: 10px;
11
+ }
12
+ .spelling_error1 {
13
+ text-decoration-line: underline;
14
+ text-decoration-style: wavy;
15
+ text-decoration-color: red;
16
+ }
17
+
18
+ .spelling_error2 {
19
+ text-decoration-line: underline;
20
+ text-decoration-style: dotted;
21
+ text-decoration-color: lightblue;
22
+ }
23
+
24
+ .spelling_error3 {
25
+ text-decoration-line: underline;
26
+ text-decoration-style: dashed;
27
+ text-decoration-color: royalblue;
28
+ }
29
+
30
+
31
+ </style>
32
+ </head>
33
+ <body>
34
+ <h1 style="margin: 2px">Showcasing the u element next</h1>
35
+
36
+ <p>This is some <u class="spelling_error1">mispeled</u> text.</p>
37
+ <p>This is some <u class="spelling_error2">mispeled</u> text.</p>
38
+ <p>This is some <u class="spelling_error3">mispeled</u> text.</p>
39
+ </body>
40
+ </html>