j1_template_mde 2018.4.15 → 2018.4.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +3 -3
  3. data/_includes/themes/j1/layouts/layout_shim_generator.html +4 -0
  4. data/_includes/themes/j1/modules/navigator/generator.html +4 -4
  5. data/_includes/themes/j1/modules/navigator/procedures/sidebar.proc +174 -127
  6. data/lib/j1/version.rb +1 -1
  7. data/lib/j1_app.rb +4 -1
  8. data/lib/j1_app/j1_auth_manager/auth_manager.previous.rb +939 -0
  9. data/lib/j1_app/j1_auth_manager/auth_manager.rb +386 -214
  10. data/lib/j1_app/j1_auth_manager/config.rb +103 -66
  11. data/lib/j1_app/j1_auth_manager/helpers.rb +22 -14
  12. data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.erb +7 -2
  13. data/lib/j1_app/omniauth/strategies/_unused/doumart_patreon.rb +75 -0
  14. data/lib/j1_app/omniauth/strategies/_unused/my_patreon.rb +78 -0
  15. data/lib/j1_app/omniauth/strategies/_unused/patreon.v1.rb +50 -0
  16. data/lib/j1_app/omniauth/strategies/_unused/patreon.v2-v1.rb +82 -0
  17. data/lib/j1_app/omniauth/strategies/_unused/patreon.v2.rb +79 -0
  18. data/lib/starter_web/Gemfile +185 -168
  19. data/lib/starter_web/_config.yml +85 -69
  20. data/lib/starter_web/_data/j1_resources.yml +15 -0
  21. data/lib/starter_web/_data/modules/j1_navigator.yml +79 -12
  22. data/lib/starter_web/_rack/Guardfile +75 -0
  23. data/lib/starter_web/assets/data/authclient.html +10 -7
  24. data/lib/starter_web/assets/data/banner.html +127 -127
  25. data/lib/starter_web/assets/images/patreon/premium-content-460x200.png +0 -0
  26. data/lib/starter_web/assets/images/patreon/scalable/{Premium-content.psd → premium-content.psd} +0 -0
  27. data/lib/starter_web/assets/images/patreon/scalable/value-content.psd +0 -0
  28. data/lib/starter_web/assets/images/patreon/value-content-460x200.png +0 -0
  29. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.css +2 -2
  30. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  31. data/lib/starter_web/assets/themes/j1/core/css/uno.css +2 -2
  32. data/lib/starter_web/assets/themes/j1/core/css/uno.min.css +1 -1
  33. data/lib/starter_web/assets/themes/j1/core/js/adapter/navigator.js +66 -11
  34. data/lib/starter_web/assets/themes/j1/core/js/adapter/navigator.js.failed +797 -0
  35. data/lib/starter_web/assets/themes/j1/core/js/adapter/template.js +26 -7
  36. data/lib/starter_web/assets/themes/j1/extensions/livereload/LICENSE +20 -0
  37. data/lib/starter_web/assets/themes/j1/extensions/livereload/README.md +249 -0
  38. data/lib/starter_web/assets/themes/j1/extensions/livereload/js/livereload.js +1951 -0
  39. data/lib/starter_web/assets/themes/j1/extensions/livereload/js/livereload.min.js +1 -0
  40. data/lib/starter_web/assets/themes/j1/extensions/patreon/patreon.widget.button.html +21 -0
  41. data/lib/starter_web/package.json +14 -5
  42. data/lib/starter_web/pages/public/about/become_a_patron.adoc +1 -1
  43. data/lib/starter_web/pages/public/blog/navigator/archive.html +0 -1
  44. metadata +19 -4
  45. data/lib/starter_web/assets/images/patreon/premium-content-420x200.png +0 -0
@@ -60,7 +60,7 @@ environment: development
60
60
  # anything here because version information is bumped-in by
61
61
  # the build process
62
62
  #
63
- version: 2018.4.15
63
+ version: 2018.4.16
64
64
 
65
65
 
66
66
  # ==============================================================================
@@ -378,12 +378,12 @@ include: [.htaccess]
378
378
  exclude: [
379
379
  vendor, node_modules, "package*",
380
380
  ".sass-cache",".vscode","*.ignore",
381
- "*.bat*", "*.sh",
381
+ "*.bat*", "*.sh", "*.tmp",
382
382
  "*.ppt*", "*.zip","*.7z","*.a2p",
383
383
  "*.asciidoc", "History.markdown",
384
- "README.md", "Rakefile",
385
- "changelog.md", "Gemfile",
386
- "Gemfile.lock", "*.log"
384
+ "README.md", "changelog.md",
385
+ "Rakefile", "Gemfile", "Guardfile",
386
+ "Gemfile.lock", "yarn.lock","*.log"
387
387
  ]
388
388
  keep_files: [ ".git", ".gitignore", node_modules, "package*" ]
389
389
 
@@ -532,90 +532,106 @@ asciidoctor:
532
532
  #
533
533
  # ---------------------------------------------------------------
534
534
  j1_auth:
535
- enabled: true
535
+ enabled: false
536
536
  ssl: false
537
537
 
538
538
  content:
539
539
  public:
540
- - ^(\/assets)
541
- - ^(\/\w+\/public)
540
+ - \W*((?i)assets(?-i))\W*
541
+ - \W*((?i)public(?-i))\W*
542
542
  private:
543
- - ^(\/\w+\/private)
543
+ - \W*((?i)private(?-i))\W*
544
544
  premium:
545
- - ^(\/\w+\/premium)
545
+ - \W*((?i)premium(?-i))\W*
546
546
 
547
- provider:
547
+ providers:
548
548
  activated: [ disqus, github, patreon ]
549
- home_url:
550
- disqus: https://disqus.com
551
- facebook: https://facebook.com
552
- github: https://github.com
553
- patreon: https://patreon.com
554
- twitter: https://twitter.com
555
- scope:
556
- disqus: []
557
- facebook: []
558
- github: []
559
- patreon: []
560
- twitter: []
561
- data:
562
- disqus: []
563
- facebook: []
564
- github: []
565
- patreon: []
566
- twitter: []
567
- user:
568
- disqus: [ all ]
569
- facebook: [ all ]
570
- github: [ all ]
571
- patreon: [ all ]
572
- twitter: [ all ]
573
- strategy:
574
- disqus: member
575
- facebook: member
576
- github: member
577
- patreon: member
578
- twitter: member
579
- permission:
580
- disqus: [ private ]
581
- facebook: [ private ]
582
- github: [ private ]
583
- patreon: [ private, premium ]
584
- twitter: [ private ]
585
- condition:
586
- disqus:
587
- private:
588
- enabled: true
589
- premium:
590
- enabled: false
591
- facebook:
549
+
550
+ disqus:
551
+ home_url: https://disqus.com
552
+ strategy: member
553
+ scope: []
554
+ users: [ all ]
555
+ permissions: [ private ]
556
+ data_fields: []
557
+ conditions:
592
558
  private:
593
559
  enabled: true
594
- premium:
595
- enabled: false
596
- github:
560
+ users:
561
+ blacklist: []
562
+
563
+ facebook:
564
+ home_url: https://facebook.com
565
+ strategy: member
566
+ scope: []
567
+ users: [ all ]
568
+ permissions: [ private ]
569
+ data_fields: []
570
+ conditions:
597
571
  private:
598
572
  enabled: true
599
- premium:
600
- enabled: false
601
- twitter:
573
+ users:
574
+ whitelist: [ all ]
575
+ blacklist: []
576
+
577
+ github:
578
+ home_url: https://github.com
579
+ strategy: member
580
+ scope: []
581
+ users: [ all ]
582
+ permissions: [ private ]
583
+ data_fields: []
584
+ conditions:
602
585
  private:
603
586
  enabled: true
604
- premium:
605
- enabled: false
606
- patreon:
587
+ users:
588
+ whitelist: [ all ]
589
+ blacklist: []
590
+
591
+ patreon:
592
+ home_url: https://github.com
593
+ strategy: member
594
+ scope: [ users, pledges-to-me ]
595
+ users: [ all ]
596
+ permissions: [ private, premium ]
597
+ data_fields: [
598
+ email, name, first_name, nickname,
599
+ amount_cents, created_at, declined_since
600
+ ]
601
+ conditions:
607
602
  private:
608
603
  enabled: true
604
+ users:
605
+ blacklist: []
609
606
  premium:
610
607
  enabled: true
608
+ users:
609
+ whitelist: [ "@jekyll-one.com" ]
610
+ blacklist: []
611
611
  payment:
612
+ activated: [ "Premium Content", "Value Content" ]
612
613
  tiers:
613
- - { subscription: {
614
- amount: 100,
615
- period: 1m,
616
- state: paid # paid, paused, subscribed
617
- }
618
- }
614
+ - tier:
615
+ name: "Premium Content"
616
+ amount: 500,
617
+ state: paid
618
+ - tier:
619
+ name: "Value Content"
620
+ amount: 100,
621
+ state: paid
622
+
623
+ twitter:
624
+ home_url: https://twitter.com
625
+ strategy: member
626
+ scope: []
627
+ users: [ all ]
628
+ permissions: [ private, premium ]
629
+ data_fields: []
630
+ conditions:
631
+ private:
632
+ enabled: true
633
+ users:
634
+ blacklist: []
619
635
 
620
636
  # ---------------------------------------------------------------
621
637
  # SAFEMODE
@@ -629,3 +629,18 @@ resources:
629
629
  remote: "https://cdn.datatables.net/v/jszip-3.1.3/pdfmake-0.1.27/dt-1.10.15/af-2.2.0/b-1.3.1/b-colvis-1.3.1/b-html5-1.3.1/b-print-1.3.1/cr-1.3.3/fc-3.2.2/fh-3.1.2/kt-2.2.1/r-2.1.1/rg-1.0.0/rr-1.2.0/sc-1.4.2/se-1.2.2/datatables"
630
630
  }
631
631
  ]
632
+
633
+ # -----------------------------------------------------------------------
634
+ # Livereload
635
+ #
636
+ - resource:
637
+ enabled: false
638
+ id: livereload
639
+ comment: JS Client for livereload
640
+ region: head
641
+ layout: all
642
+ required: always
643
+ script_load: sync
644
+ data:
645
+
646
+ files: extensions/livereload/js/livereload.js
@@ -104,11 +104,10 @@ defaults:
104
104
 
105
105
  nav_sidebar:
106
106
  enabled: false
107
- display_user_info: true
108
- display_theme: true
107
+ width: 380
109
108
  icon_family: Material Design Icons
110
109
  icon_color: md_white
111
- icon_size: xxxlarge
110
+ icon_size: mdi-1x
112
111
  sidebar_icon: dots-vertical
113
112
  close_icon: close
114
113
  background_color: md_grey_800
@@ -145,7 +144,7 @@ nav_topsearch:
145
144
  enabled: true
146
145
 
147
146
  # ------------------------------------------------------------------------------
148
- # 5. Auth client settings
147
+ # 5. J1 Auth CLIENT settings
149
148
  #
150
149
  nav_authclient:
151
150
  enabled: true
@@ -199,21 +198,89 @@ nav_authclient:
199
198
  to the provider you're currently authenticated. From your
200
199
  home page at the provider, you can sign out completely.
201
200
 
202
-
203
201
  # ------------------------------------------------------------------------------
204
202
  # 6. Navigation sidebar settings
205
203
  #
206
204
  nav_sidebar:
207
205
  enabled: true
206
+
208
207
  boxes:
209
208
 
210
209
  - box:
210
+ enabled: true
211
+ type: user_info
212
+ title: User Info
213
+ links:
214
+ - title: Provider
215
+ value: ??provider-name
216
+ href: ??provider-url
217
+ target: blank
218
+ icon: domain
219
+ - title: User
220
+ value: ??user-name
221
+ href: javascript:void(0)
222
+ target: blank
223
+ icon: account
224
+ - title: State
225
+ value: ??user-state
226
+ href: javascript:void(0)
227
+ target: blank
228
+ icon: account-alert
229
+ - title: Permisions
230
+ value: ??provider-permissions
231
+ href: javascript:void(0)
232
+ target: blank
233
+ icon: account-check
234
+ - title: Membership
235
+ value: ??provider-membership
236
+ href: ??provider-member-url
237
+ target: blank
238
+ icon: account-settings
239
+
240
+ - box:
241
+ enabled: true
242
+ type: theme_info
243
+ title: Theme Info
244
+ links:
245
+ - title: Theme
246
+ value: ??theme-name
247
+ href: /pages/public/previewer/theme/
248
+ target: blank
249
+ icon: face
250
+ - title: Author
251
+ value: Jekyll-One
252
+ href: https://support.jekyll-one.com/
253
+ target: blank
254
+ icon: grease-pencil
255
+ - title: Version
256
+ value: V4
257
+ href: http://getbootstrap.com/
258
+ target: blank
259
+ icon: numeric
260
+
261
+ - box:
262
+ enabled: true
263
+ type: site_info
211
264
  title: Site Info
212
- type: linkbox
213
265
  links:
214
- About: /pages/about/
215
- Impress: /pages/public/legal/en/impress/
216
- Terms of Use: /pages/public/legal/en/terms_of_use/
217
- Privacy: /pages/public/legal/en/privacy/
218
- License Agreements: /pages/public/legal/en/license_agreement/
219
- Contact: mailto:contact@jekyll.one
266
+ - title: About
267
+ href: /pages/public/about/
268
+ icon: home-outline
269
+ - title: Become a Patron
270
+ href: /pages/public/about/become_a_patron/
271
+ icon: patreon
272
+ - title: Impress
273
+ href: /pages/public/legal/en/impress/
274
+ icon: alert-outline
275
+ - title: Terms of Use
276
+ href: /pages/public/legal/en/terms_of_use/
277
+ icon: compass-outline
278
+ - title: Privacy
279
+ href: /pages/public/legal/en/privacy/
280
+ icon: heart-off
281
+ - title: License Agreement
282
+ href: /pages/public/legal/en/license_agreement/
283
+ icon: checkbox-multiple-marked-circle-outline
284
+ - title: Contact
285
+ href: mailto:contact@jekyll.one
286
+ icon: contact-mail
@@ -0,0 +1,75 @@
1
+ # ------------------------------------------------------------------------------
2
+ # ~/Guardfile
3
+ # Provides watcher information for Guard used to livereload
4
+ # for J1 App development
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll-one.com
8
+ #
9
+ # Copyright (C) 2019 Juergen Adams
10
+ #
11
+ # J1 Template is licensed under the MIT License.
12
+ # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE
13
+ #
14
+ # ------------------------------------------------------------------------------
15
+ # Based on the sample Guardfile created by
16
+ # bundle exec guard init livereload
17
+ #
18
+ # More info at https://github.com/guard/guard#readme
19
+ #
20
+ # ------------------------------------------------------------------------------
21
+
22
+ # Uncomment and set this to only include directories you want to watch
23
+ #
24
+ # directories %w(app lib config test spec features) \
25
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
26
+
27
+ ## Note: if you are using the `directories` clause above and you are not
28
+ ## watching the project directory ('.'), then you will want to move
29
+ ## the Guardfile to a watched dir and symlink it back, e.g.
30
+ #
31
+ # $ mkdir config
32
+ # $ mv Guardfile config/
33
+ # $ ln -s config/Guardfile .
34
+ #
35
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
36
+
37
+ guard 'livereload' do
38
+ extensions = {
39
+ css: :css,
40
+ scss: :css,
41
+ sass: :css,
42
+ js: :js,
43
+ coffee: :js,
44
+ html: :html,
45
+ png: :png,
46
+ gif: :gif,
47
+ jpg: :jpg,
48
+ jpeg: :jpeg,
49
+ # less: :less, # uncomment if you want LESS stylesheets done in browser
50
+ }
51
+
52
+ rails_view_exts = %w(erb haml slim)
53
+
54
+ # file types LiveReload may optimize refresh for
55
+ compiled_exts = extensions.values.uniq
56
+ watch(%r{public/.+\.(#{compiled_exts * '|'})})
57
+
58
+ extensions.each do |ext, type|
59
+ watch(%r{
60
+ (?:app|vendor)
61
+ (?:/assets/\w+/(?<path>[^.]+) # path+base without extension
62
+ (?<ext>\.#{ext})) # matching extension (must be first encountered)
63
+ (?:\.\w+|$) # other extensions
64
+ }x) do |m|
65
+ path = m[1]
66
+ "/assets/#{path}.#{type}"
67
+ end
68
+ end
69
+
70
+ # file needing a full reload of the page anyway
71
+ watch(%r{app/views/.+\.(#{rails_view_exts * '|'})$})
72
+ watch(%r{app/helpers/.+\.rb})
73
+ watch(%r{config/locales/.+\.yml})
74
+ end
75
+
@@ -42,8 +42,8 @@ regenerate: true
42
42
  {% comment %} Set config options
43
43
  -------------------------------------------------------------------------------- {% endcomment %}
44
44
  {% assign authclient_options = nav_authclient_default | merge: nav_authclient_config %}
45
- {% assign providers = site.j1_auth.provider.activated %}
46
- {% assign active_provider = site.j1_auth.provider.activated[0] %}
45
+ {% assign providers = site.j1_auth.providers.activated %}
46
+ {% assign active_provider = site.j1_auth.providers.activated[0] %}
47
47
 
48
48
 
49
49
  {% comment %} Liquid var initialization
@@ -136,7 +136,7 @@ regenerate: true
136
136
  <div class="modal-header">
137
137
  <p class="lead">{{signin_modal_title}}</p>
138
138
  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
139
- <i class="mdi mdi-close mdi-light mdi-48px"></i>
139
+ <i class="mdi mdi-close mdi-dark mdi-48px"></i>
140
140
  </button>
141
141
  </div>
142
142
 
@@ -240,7 +240,7 @@ regenerate: true
240
240
  <!-- Footer -->
241
241
  <div class="modal-footer justify-content-right">
242
242
  <a type="button" id="signInButton" class="btn btn-primary-modal mr-2" data-dismiss="modal">
243
- <i class="mdi mdi-18px mdi-light mdi-login"></i>
243
+ <i class="mdi mdi-18px mdi-dark mdi-login"></i>
244
244
  Yes, please
245
245
  </a>
246
246
  <a type="button" id="exitButton" class="btn btn-outline-secondary-modal" data-dismiss="modal">
@@ -265,7 +265,7 @@ regenerate: true
265
265
  <div class="modal-header">
266
266
  <p class="lead">{{signout_modal_title}}</p>
267
267
  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
268
- <i class="mdi mdi-close mdi-light mdi-48px"></i>
268
+ <i class="mdi mdi-close mdi-dark mdi-48px"></i>
269
269
  </button>
270
270
  </div>
271
271
  <!-- Body -->
@@ -302,7 +302,10 @@ regenerate: true
302
302
 
303
303
  <!-- Footer -->
304
304
  <div class="modal-footer">
305
- <a type="button" id="signOutButton" class="btn btn-primary-modal mr-2" data-dismiss="modal">Yes, please</a>
305
+ <a type="button" id="signOutButton" class="btn btn-primary-modal mr-2" data-dismiss="modal">
306
+ <i class="mdi mdi-18px mdi-dark mdi-logout"></i>
307
+ Yes, please
308
+ </a>
306
309
  <a type="button" id="exitButton" class="btn btn-outline-secondary-modal" data-dismiss="modal">No, thanks</a>
307
310
  </div>
308
311
  </div>
@@ -321,7 +324,7 @@ regenerate: true
321
324
  <div class="modal-header">
322
325
  <p class="lead">Info</p>
323
326
  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
324
- <i class="mdi mdi-close mdi-light mdi-48px"></i>
327
+ <i class="mdi mdi-close mdi-dark mdi-48px"></i>
325
328
  </button>
326
329
  </div>
327
330
  <!-- Body -->