j1_template_mde 2018.4.20 → 2018.4.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +17 -12
  3. data/_layouts/home.html +1 -1
  4. data/lib/j1/version.rb +1 -1
  5. data/lib/j1_app.rb +17 -7
  6. data/lib/starter_web/Gemfile +1 -1
  7. data/lib/starter_web/_config.yml +1 -1
  8. data/lib/starter_web/_data/j1_config.yml +1 -0
  9. data/lib/starter_web/_rack/config.ru +27 -1
  10. data/lib/starter_web/_rack/dot.env +4 -3
  11. data/lib/starter_web/assets/images/icons/j1/scalable/j1v2.svg +1 -1
  12. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.css +12 -2
  13. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  14. data/lib/starter_web/assets/themes/j1/core/css/uno.css +41 -4
  15. data/lib/starter_web/assets/themes/j1/core/css/uno.min.css +1 -1
  16. data/lib/starter_web/assets/themes/j1/core/js/adapter/algolia.js +1 -1
  17. data/lib/starter_web/assets/themes/j1/core/js/template.js +7 -18
  18. data/lib/starter_web/assets/themes/j1/core/js/template.js.map +1 -1
  19. data/lib/starter_web/assets/themes/j1/core/js/template.min.js +1 -1
  20. data/lib/starter_web/package.json +8 -6
  21. data/lib/starter_web/pages/public/start/000_includes/attributes.asciidoc +40 -12
  22. data/lib/starter_web/pages/public/start/platform.adoc +151 -0
  23. data/lib/starter_web/pages/public/start/roundtrip/000_includes/attributes.asciidoc +18 -16
  24. data/lib/starter_web/pages/public/start/roundtrip/100_present_images.adoc +1 -1
  25. data/lib/starter_web/pages/public/start/roundtrip/200_cards.adoc +5 -4
  26. data/lib/starter_web/pages/public/start/roundtrip/300_typography.adoc +24 -27
  27. data/lib/starter_web/pages/public/start/roundtrip/400_icon_fonts.adoc +5 -4
  28. data/lib/starter_web/pages/public/start/roundtrip/500_asciidoc_extensions.adoc +3 -3
  29. data/lib/starter_web/pages/public/start/roundtrip/600_themes.adoc +10 -16
  30. data/lib/starter_web/pages/public/start/roundtrip/700_extended_modals.adoc +49 -44
  31. data/lib/starter_web/pages/public/start/roundtrip/800_search_engine.adoc +37 -2
  32. metadata +3 -10
  33. data/lib/j1_app/j1_auth_manager/views/_unused/iframe.erb +0 -29
  34. data/lib/j1_app/j1_auth_manager/views/_unused/modal_page.erb +0 -136
  35. data/lib/j1_app/omniauth/strategies/_unused/doumart_patreon.rb +0 -75
  36. data/lib/j1_app/omniauth/strategies/_unused/my_patreon.rb +0 -78
  37. data/lib/j1_app/omniauth/strategies/_unused/patreon.v1.rb +0 -50
  38. data/lib/j1_app/omniauth/strategies/_unused/patreon.v2-v1.rb +0 -82
  39. data/lib/j1_app/omniauth/strategies/_unused/patreon.v2.rb +0 -79
  40. data/lib/starter_web/pages/public/instant_search_media.adoc +0 -438
@@ -0,0 +1,151 @@
1
+ ---
2
+ title: Platform.js
3
+ tagline: A platform detection library
4
+ description: A platform detection library
5
+
6
+ tags: []
7
+ resources: []
8
+ #permalink: /pages/public/start/platform/
9
+
10
+ resource_options:
11
+
12
+ - toccer:
13
+ collapseDepth: 2
14
+
15
+ regenerate: false
16
+ ---
17
+
18
+ // Enable the Liquid Preprocessor
19
+ // -----------------------------------------------------------------------------
20
+ :page-liquid:
21
+
22
+ // Set other global page attributes here
23
+ // -----------------------------------------------------------------------------
24
+
25
+
26
+ {% comment %} Liquid procedures
27
+ -------------------------------------------------------------------------------- {% endcomment %}
28
+ {% capture set_env_entry_document %}themes/{{site.template.name}}/procedures/global/set_env_entry_document.proc{%endcapture%}
29
+
30
+
31
+ // NOTE: Initialize entry document paths
32
+ // -----------------------------------------------------------------------------
33
+ {% include {{set_env_entry_document}} init_folders=all %}
34
+
35
+ // Load tag, url and data attributes
36
+ // -----------------------------------------------------------------------------
37
+ include::{includedir}/attributes.asciidoc[tag=tags]
38
+ include::{includedir}/attributes.asciidoc[tag=urls]
39
+ include::{includedir}/attributes.asciidoc[tag=data]
40
+
41
+ // Additional Asciidoc page attributes goes here
42
+ // -----------------------------------------------------------------------------
43
+
44
+ lorem:sentences[5]
45
+
46
+ pass:[<i class="mdi mdi-book-open mdi-24px mdi-md-indigo"></i>]
47
+ Home: link:{home-platformjs}[Platform.js, window="_blank"]
48
+ pass:[<i class="mdi mdi-book-open mdi-24px mdi-md-indigo"></i>]
49
+ Docs: link:{home-platformjs-docs}[Docs@Platform.js , window="_blank"]
50
+
51
+ == `platform.os`
52
+
53
+ lorem:sentences[5]
54
+
55
+ === platform.os.architecture
56
+
57
+ The CPU architecture the OS is built for.
58
+
59
+ === platform.os.family
60
+
61
+ The family of the OS. Common values include: "Windows", "Windows Server
62
+ `2008` R2 / `7`", "Windows Server `2008` / Vista", "Windows XP", "OS X",
63
+ "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE", "Android", "iOS" and
64
+ "Windows Phone"
65
+
66
+ === platform.os.toString()
67
+
68
+ Returns the OS string.
69
+
70
+ === platform.os.version
71
+
72
+ The version of the OS.
73
+
74
+
75
+ == `platform`
76
+
77
+ The platform object.
78
+
79
+ lorem:sentences[5]
80
+
81
+ === platform.description
82
+
83
+ The platform description.
84
+
85
+ === platform.layout
86
+
87
+ The name of the browser's layout engine. The list of common layout
88
+ engines include: "Blink", "EdgeHTML", "Gecko", "Trident" and "WebKit"
89
+
90
+ === platform.manufacturer
91
+
92
+ The name of the product's manufacturer. The list of manufacturers
93
+ include: "Apple", "Archos", "Amazon", "Asus", "Barnes & Noble",
94
+ "BlackBerry", "Google", "HP", "HTC", "LG", "Microsoft", "Motorola",
95
+ "Nintendo", "Nokia", "Samsung" and "Sony"
96
+
97
+ === platform.name
98
+
99
+ The name of the browser/environment. The list of common browser names
100
+ include: "Chrome", "Electron", "Firefox", "Firefox for iOS", "IE",
101
+ "Microsoft Edge", "PhantomJS", "Safari", "SeaMonkey", "Silk", "Opera
102
+ Mini" and "Opera" Mobile versions of some browsers have "Mobile"
103
+ appended to their name: eg. "Chrome Mobile", "Firefox Mobile", "IE
104
+ Mobile" and "Opera Mobile"
105
+
106
+ === platform.os
107
+
108
+ The name of the operating system.
109
+
110
+ === platform.parse()
111
+
112
+ platform.parse([ua=navigator.userAgent])
113
+
114
+ Creates a new platform object.
115
+
116
+ ==== Arguments
117
+
118
+ `[ua=navigator.userAgent]` _(Object|string)_
119
+ The user agent string or context object.
120
+
121
+ Returns _(Object)_ as a platform object.
122
+
123
+
124
+ === platform.prerelease
125
+
126
+ The alpha/beta release indicator.
127
+
128
+ === platform.product
129
+
130
+ The name of the product hosting the browser. The list of common products
131
+ include: "BlackBerry", "Galaxy S4", "Lumia", "iPad", "iPod", "iPhone",
132
+ "Kindle", "Kindle Fire", "Nexus", "Nook", "PlayBook", "TouchPad" and
133
+ "Transformer"
134
+
135
+ === platform.toString()
136
+
137
+ Returns `platform.description` when the platform object is coerced to a
138
+ string.
139
+
140
+ Returns _(string)_: Returns `platform.description` if available, else
141
+ an empty string.
142
+
143
+ === platform.ua
144
+
145
+ The browser's user agent string.
146
+
147
+ === platform.version
148
+
149
+ The browser/environment version.
150
+
151
+
@@ -18,27 +18,29 @@ tag::urls[]
18
18
  :asciidoctor-extensions-use-extension: https://github.com/asciidoctor/asciidoctor-extensions-lab#using-an-extension
19
19
  :asciidoctor-user-manual-extensions: http://asciidoctor.org/docs/user-manual/#extensions
20
20
 
21
- :roundtrip_data_slider_picker: /pages/roundtrip/data_slider_picker
22
- :roundtrip_image_headers: /public/start/roundtrip/image_header
23
- :roundtrip_image_headers: /public/start/roundtrip/image_header
24
-
25
- :roundtrip-readme-first: /public/start/read_me_first/
26
- :roundtrip-present-images: /public/start/roundtrip/present_images/
27
- :roundtrip-cards: /public/start/roundtrip/cards/
28
- :roundtrip-typography: /public/start/roundtrip/typography/
29
- :roundtrip-asciidoc-extensions: /public/start/roundtrip/asciidoc_extensions/
30
- :roundtrip-icon-fonts: /public/start/roundtrip/mdi_icon_font/
31
- :roundtrip-responsive-tables: /public/start/roundtrip/responsive_tables/
32
- :roundtrip-themes: /public/start/roundtrip/themes/
21
+ :roundtrip_data_slider_picker: /pages/public/start/roundtrip/data_slider_picker
22
+ :roundtrip_image_headers: /pages/public/start/roundtrip/image_header
23
+ :roundtrip_image_headers: /pages/public/start/roundtrip/image_header
24
+
25
+ :roundtrip-readme-first: /pages/public/start/read_me_first/
26
+ :roundtrip-present-images: /pages/public/start/roundtrip/present_images/
27
+ :roundtrip-cards: /pages/public/start/roundtrip/cards/
28
+ :roundtrip-typography: /pages/public/start/roundtrip/typography/
29
+ :roundtrip-asciidoc-extensions: /pages/public/start/roundtrip/asciidoc_extensions/
30
+ :roundtrip-extended-modals: /pages/public/start/roundtrip/modals/
31
+ :roundtrip-icon-fonts: /pages/public/start/roundtrip/mdi_icon_font/
32
+ :roundtrip-responsive-tables: /pages/public/start/roundtrip/responsive_tables/
33
+ :roundtrip-themes: /pages/public/start/roundtrip/themes/
34
+ :roundtrip-search-engine: /pages/public/start/roundtrip/search_engine/
33
35
 
34
36
  :github-gist-home: https://gist.github.com/
35
37
  :asciidoc-extensions-gist-example: https://gist.github.com/mojavelinux/5546622
36
38
 
37
- :previewer-emoji: /pages/previewer/twitter_emoji/
38
- :previewer-theme: /pages/previewer/theme/
39
- :previewer-mdi: /pages/previewer/mdi_font/
39
+ :previewer-emoji: /pages/private/previewer/twitter_emoji/
40
+ :previewer-theme: /pages/public/previewer/theme/
41
+ :previewer-mdi: /pages/private/previewer/mdi_font/
40
42
 
41
- :kickstarter-web-in-a-day: /public/start/kickstarter/web_in_a_day/intro/
43
+ :kickstarter-web-in-a-day: /pages/public/start/kickstarter/web_in_a_day/intro/
42
44
  end::urls[]
43
45
 
44
46
  // Tags - Asciidoc attributes used internally
@@ -47,7 +47,7 @@ resource_options:
47
47
  transition: fadeInOut
48
48
  ---
49
49
 
50
- // Enable the Liquid Preprocessor
50
+ // Enable the Liquid Preprocessor
51
51
  // -----------------------------------------------------------------------------
52
52
  :page-liquid:
53
53
 
@@ -22,7 +22,7 @@ resource_options:
22
22
  ---
23
23
 
24
24
  // Enable the Liquid Preprocessor
25
- //
25
+ // -----------------------------------------------------------------------------
26
26
  :page-liquid:
27
27
 
28
28
  // Set other global page attributes here
@@ -35,16 +35,17 @@ resource_options:
35
35
 
36
36
 
37
37
  // NOTE: Initialize entry document paths
38
- //
38
+ // -----------------------------------------------------------------------------
39
39
  {% include {{set_env_entry_document}} init_folders=all %}
40
40
 
41
41
  // Load tags and urls
42
- //
42
+ // -----------------------------------------------------------------------------
43
43
  include::{includedir}/attributes.asciidoc[tag=tags]
44
44
  include::{includedir}/attributes.asciidoc[tag=urls]
45
+ include::{includedir}/attributes.asciidoc[tag=data]
45
46
 
46
47
  // Additional Asciidoc page attributes goes here
47
- //
48
+ // -----------------------------------------------------------------------------
48
49
 
49
50
  A card is a sheet of material that serves as an entry point to more detailed
50
51
  information. Cards may contain a photo, text, and a link about a single subject.
@@ -22,11 +22,11 @@ resource_options:
22
22
  ---
23
23
 
24
24
  // Enable the Liquid Preprocessor
25
- //
25
+ // -----------------------------------------------------------------------------
26
26
  :page-liquid:
27
27
 
28
28
  // Set other global page attributes here
29
- // -------------------------------------------------------------------
29
+ // -----------------------------------------------------------------------------
30
30
 
31
31
 
32
32
  {% comment %} Liquid procedures
@@ -35,16 +35,17 @@ resource_options:
35
35
 
36
36
 
37
37
  // NOTE: Initialize entry document paths
38
- //
38
+ // -----------------------------------------------------------------------------
39
39
  {% include {{set_env_entry_document}} init_folders=all %}
40
40
 
41
41
  // Load tags and urls
42
42
  //
43
43
  include::{includedir}/attributes.asciidoc[tag=tags]
44
44
  include::{includedir}/attributes.asciidoc[tag=urls]
45
+ include::{includedir}/attributes.asciidoc[tag=data]
45
46
 
46
47
  // Additional Asciidoc page attributes goes here
47
- //
48
+ // -----------------------------------------------------------------------------
48
49
 
49
50
 
50
51
  == Typography
@@ -103,8 +104,12 @@ you'll see quite often. Change the size of your Browser Window to see what
103
104
  will happen in terms of responsiveness.
104
105
 
105
106
  ++++
106
- <div class="col-md-12 col-sm-12 col-xs-12">
107
- <div class="card mb-4 raised-z3">
107
+ <div>
108
+ <button type="button" name="toggle-r-text" class="btn btn-primary btn-raised btn-flex mt-3 mb-3">
109
+ <i class="toggle-button mdi mdi-toggle-switch-off mdi-lg mdi-md-indigo-50 mr-1"></i>
110
+ Toggle rtext
111
+ </button>
112
+ <div class="card card-flat mb-4">
108
113
  <div class="content">
109
114
  <h4 class="notoc card-title">The Extremes of Good and Evil</h4>
110
115
  <h6 class="notoc category text-gray mb-3">Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus</h6>
@@ -127,12 +132,6 @@ will happen in terms of responsiveness.
127
132
  that has no annoying consequences, or one who avoids a pain that
128
133
  produces no resultant pleasure?
129
134
  </p>
130
- <div class="card-footer">
131
- <button type="button" name="toggle-r-text" class="btn btn btn-danger btn-raised btn-round btn-flex">
132
- <i class="toggle-button mdi mdi-toggle-switch-off mdi-lg mdi-md-indigo-50 mr-1"></i>
133
- Toggle rtext
134
- </button>
135
- </div>
136
135
  </div>
137
136
  </div>
138
137
  </div>
@@ -155,13 +154,22 @@ Responsive Text comes in five different scale factors in a range from 100 to
155
154
  you can offer different text sizes of your Web for vistors having a visual
156
155
  handicap or reading disabilities.
157
156
 
157
+ To see `r-text` scaling in action, click on the button above to resize
158
+ the text from `r-text` level *300* to *500* back and forth. And again: resize
159
+ your Browser and watch the size of this text body change to see responsiveness
160
+ of the text in action.
161
+
158
162
  ++++
159
- <div class="col-md-12 col-sm-12 col-xs-12">
160
- <div class="card mb-4 raised-z3">
163
+ <div>
164
+ <button type="button" name="scale-r-text" class="btn btn-primary btn-raised btn-flex mt-3 mb-3">
165
+ <i class="scale-button mdi mdi-arrow-up mdi-lg mdi-md-indigo-50 mr-1"></i>
166
+ Scale rtext
167
+ </button>
168
+ <div class="card card-flat mb-4">
161
169
  <div class="content">
162
170
  <h4 class="notoc card-title">The Extremes of Good and Evil</h4>
163
171
  <h6 class="notoc category text-gray mb-3">Cicero, Paragraph 1.10.33 · Translation by H. Rackham, Issue 1914 - De Finibus</h6>
164
- <p class="card-description scale-description r-text-200">
172
+ <p class="card-description scale-description r-text-300">
165
173
  On the other hand, we denounce with righteous indignation and dislike men who
166
174
  are so beguiled and demoralized by the charms of pleasure of the moment, so
167
175
  blinded by desire, that they cannot foresee the pain and trouble that are
@@ -177,29 +185,18 @@ handicap or reading disabilities.
177
185
  this principle of selection: he rejects pleasures to secure other greater
178
186
  pleasures, or else he endures pains to avoid worse pains.
179
187
  </p>
180
- <div class="card-footer">
181
- <button type="button" name="scale-r-text" class="btn btn btn-danger btn-raised btn-round btn-flex">
182
- <i class="scale-button mdi mdi-arrow-up mdi-lg mdi-md-indigo-50 mr-1"></i>
183
- Scale rtext
184
- </button>
185
- </div>
186
188
  </div>
187
189
  </div>
188
190
  </div>
189
191
 
190
192
  <script>
191
193
  $('button[name="scale-r-text"]').on('click', function (e) {
192
- $('p.scale-description').toggleClass('r-text-200 r-text-300');
194
+ $('p.scale-description').toggleClass('r-text-300 r-text-500');
193
195
  $('.scale-button').toggleClass('mdi-arrow-up mdi-arrow-down');
194
196
  });
195
197
  </script>
196
198
  ++++
197
199
 
198
- To see `r-text` scaling in action, click on the button above to resize
199
- the text from `r-text` level *200* to *300* back and forth. And again: resize
200
- your Browser and watch the size of this text body change to see responsiveness
201
- of the text in action.
202
-
203
200
  === Scale factors
204
201
 
205
202
  As mentioned, `r-text` comes in five levels of size. The base of `r-text` are
@@ -21,11 +21,11 @@ resource_options:
21
21
  ---
22
22
 
23
23
  // Enable the Liquid Preprocessor
24
- //
24
+ // -----------------------------------------------------------------------------
25
25
  :page-liquid:
26
26
 
27
27
  // Set other global page attributes here
28
- // -------------------------------------------------------------------
28
+ // -----------------------------------------------------------------------------
29
29
 
30
30
 
31
31
  {% comment %} Liquid procedures
@@ -34,16 +34,17 @@ resource_options:
34
34
 
35
35
 
36
36
  // NOTE: Initialize entry document paths
37
- //
37
+ // -----------------------------------------------------------------------------
38
38
  {% include {{set_env_entry_document}} init_folders=all %}
39
39
 
40
40
  // Load tags and urls
41
41
  //
42
42
  include::{includedir}/attributes.asciidoc[tag=tags]
43
43
  include::{includedir}/attributes.asciidoc[tag=urls]
44
+ include::{includedir}/attributes.asciidoc[tag=data]
44
45
 
45
46
  // Additional Asciidoc page attributes goes here
46
- //
47
+ // -----------------------------------------------------------------------------
47
48
 
48
49
  == Icon Fonts
49
50
 
@@ -21,12 +21,12 @@ regenerate: false
21
21
 
22
22
  ---
23
23
 
24
- // Enable the Liquid Preprocessor
25
- //
24
+ // Enable the Liquid Preprocessor
25
+ // -----------------------------------------------------------------------------
26
26
  :page-liquid:
27
27
 
28
28
  // Set other global page attributes here
29
- // -------------------------------------------------------------------
29
+ // -----------------------------------------------------------------------------
30
30
 
31
31
 
32
32
  // Load Liquid procedures
@@ -21,12 +21,12 @@ resource_options:
21
21
  caption_color: rgba_lighten_800
22
22
  ---
23
23
 
24
- // Enable the Liquid Preprocessor
25
- //
24
+ // Enable the Liquid Preprocessor
25
+ // -----------------------------------------------------------------------------
26
26
  :page-liquid:
27
27
 
28
28
  // Set other global page attributes here
29
- // -------------------------------------------------------------------
29
+ // -----------------------------------------------------------------------------
30
30
 
31
31
 
32
32
  {% comment %} Liquid procedures
@@ -35,16 +35,17 @@ resource_options:
35
35
 
36
36
 
37
37
  // NOTE: Initialize entry document paths
38
- //
38
+ // -----------------------------------------------------------------------------
39
39
  {% include {{set_env_entry_document}} init_folders=all %}
40
40
 
41
41
  // Load tags and urls
42
- //
42
+ // -----------------------------------------------------------------------------
43
43
  include::{includedir}/attributes.asciidoc[tag=tags]
44
44
  include::{includedir}/attributes.asciidoc[tag=urls]
45
+ include::{includedir}/attributes.asciidoc[tag=data]
45
46
 
46
47
  // Additional Asciidoc page attributes goes here
47
- //
48
+ // -----------------------------------------------------------------------------
48
49
 
49
50
  ++++
50
51
  <!-- page_path: {{page_path | debug}} -->
@@ -62,14 +63,7 @@ lorem:sentences[5]
62
63
 
63
64
  == What's next?
64
65
 
65
- Hopefully you've enjoyed exploring all the possibilities J1 offers for managing
66
- themes. But much, much more can the J1 do for your Web Site.
67
-
68
- This was the last place to go for the roundtrip. More details of the most
69
- common elements of Bootstrap can be found on the previewer for a theme. Have
70
- a look at the link:{previewer-theme}[Theme Previewer, window="_blank"].
66
+ lorem:sentences[5]
71
67
 
72
- To make things real for your new Web, go for *Web in a Day*. This tutorial
73
- guides you through all the steps to build a Web - your Web using Jekyll and the
74
- Template J1. It's really a nice journey to *explore* and *learn* J1 - start with
75
- link:{kickstarter-web-in-a-day}[Web in a Day here, window="_blank"]!
68
+ Check out what link:{roundtrip-extended-modals}[Extended Modals, window="_blank"]
69
+ can do!