Browse Source

drag+resize

Kévin Tessier 5 years ago
parent
commit
356d3a62f3
34 changed files with 564 additions and 212 deletions
  1. 99 187
      cache/compiled/blueprints/master-localhost.php
  2. 4 4
      cache/compiled/config/master-localhost.php
  3. 22 0
      cache/compiled/files/3e710272fd53c61ec9d40f88700e896a.yaml.php
  4. 52 0
      cache/compiled/files/61df610ba6929930259feea3b546e1a2.yaml.php
  5. 139 0
      cache/compiled/files/e2debe8a7c302596261150465a999131.yaml.php
  6. 0 1
      cache/gpm/8f/5b62333865643130323965613736323636653236613835613266303562373536315d5b315d.doctrinecache.data
  7. 0 1
      cache/gpm/d0/5b62613939336136653764643135616137616630613539666565663264343836315d5b315d.doctrinecache.data
  8. 0 1
      cache/gpm/ef/5b31303233303536663130303366393138623662623161653434373532383136625d5b315d.doctrinecache.data
  9. 0 0
      cache/problem-check-g-f3520b32
  10. 1 1
      logs/popularity/daily.json
  11. 1 1
      logs/popularity/monthly.json
  12. 1 1
      logs/popularity/totals.json
  13. 1 1
      logs/popularity/visitors.json
  14. 1 1
      user/config/site.yaml
  15. 0 0
      user/pages/01._recits/_11-avril-2017/text.md
  16. 0 0
      user/pages/01._recits/_30-janvier-2017/text.md
  17. 2 2
      user/pages/01._recits/recit.md
  18. 0 0
      user/pages/02._interviews/_andrea/text.md
  19. 0 0
      user/pages/02._interviews/_manon-dumond/text.md
  20. 0 0
      user/pages/02._interviews/_marie-preston/text.md
  21. 0 0
      user/pages/02._interviews/interviews.md
  22. 11 0
      user/pages/_links/_link/text.md
  23. 7 0
      user/pages/_reseaux-sociaux/_reseaux/text.md
  24. 2 0
      user/pages/_reseaux-sociaux/reseausociaux.md
  25. 7 0
      user/pages/_streetmap/_streetmap/text.md
  26. 2 2
      user/themes/r2c/css-compiled/template.css
  27. 0 0
      user/themes/r2c/css-compiled/template.min.css
  28. 9 0
      user/themes/r2c/css/resizer.css
  29. 137 0
      user/themes/r2c/js/resizer.js
  30. 42 3
      user/themes/r2c/js/site.js
  31. 17 4
      user/themes/r2c/scss/template/_section.scss
  32. 4 0
      user/themes/r2c/templates/default.html.twig
  33. 0 1
      user/themes/r2c/templates/modular/recit.html.twig
  34. 3 1
      user/themes/r2c/templates/partials/base.html.twig

+ 99 - 187
cache/compiled/blueprints/master-localhost.php

@@ -1,9 +1,15 @@
 <?php
 return [
     '@class' => 'Grav\\Common\\Config\\CompiledBlueprints',
-    'timestamp' => 1531324257,
-    'checksum' => 'fad855d5a7e0ccacc06cc1694e3790df',
+    'timestamp' => 1531325457,
+    'checksum' => '2996c20a593f6694b6eafe364c866235',
     'files' => [
+        'user/plugins/admin/blueprints/config' => [
+            'media' => [
+                'file' => 'user/plugins/admin/blueprints/config/media.yaml',
+                'modified' => 1529597236
+            ]
+        ],
         'system/blueprints/config' => [
             'media' => [
                 'file' => 'system/blueprints/config/media.yaml',
@@ -62,6 +68,53 @@ return [
                     'validation' => 'loose'
                 ]
             ],
+            'media.types' => [
+                'name' => 'media.types',
+                'type' => 'list',
+                'label' => 'PLUGIN_ADMIN.MEDIA_TYPES',
+                'style' => 'vertical',
+                'key' => 'extension',
+                'controls' => 'both',
+                'collapsed' => true,
+                'validation' => 'loose',
+                'array' => true
+            ],
+            'media.types.*' => [
+                'type' => '_parent',
+                'name' => 'media.types.*',
+                'form_field' => false
+            ],
+            'media.types.*.type' => [
+                'type' => 'text',
+                'label' => 'PLUGIN_ADMIN.TYPE',
+                'name' => 'media.types.*.type',
+                'validation' => 'loose'
+            ],
+            'media.types.*.thumb' => [
+                'type' => 'text',
+                'label' => 'PLUGIN_ADMIN.THUMB',
+                'name' => 'media.types.*.thumb',
+                'validation' => 'loose'
+            ],
+            'media.types.*.mime' => [
+                'type' => 'text',
+                'label' => 'PLUGIN_ADMIN.MIME_TYPE',
+                'validate' => [
+                    'type' => 'lower'
+                ],
+                'name' => 'media.types.*.mime',
+                'validation' => 'loose'
+            ],
+            'media.types.*.image' => [
+                'type' => 'textarea',
+                'yaml' => true,
+                'label' => 'PLUGIN_ADMIN.IMAGE_OPTIONS',
+                'validate' => [
+                    'type' => 'yaml'
+                ],
+                'name' => 'media.types.*.image',
+                'validation' => 'loose'
+            ],
             'site' => [
                 'type' => '_root',
                 'form_field' => false,
@@ -116,17 +169,10 @@ return [
                 'name' => 'site.taxonomies',
                 'validation' => 'loose'
             ],
-            'site.content' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'site.content',
-                'validation' => 'loose'
-            ],
             'site.summary' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'site.summary',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'site.summary.enabled' => [
                 'type' => 'toggle',
@@ -175,8 +221,8 @@ return [
                 'validation' => 'loose'
             ],
             'site.metadata' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => 'array',
+                'label' => 'PLUGIN_ADMIN.METADATA',
                 'name' => 'site.metadata',
                 'validation' => 'loose'
             ],
@@ -187,8 +233,8 @@ return [
                 'validation' => 'loose'
             ],
             'site.routes' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => 'array',
+                'label' => 'PLUGIN_ADMIN.CUSTOM_ROUTES',
                 'name' => 'site.routes',
                 'validation' => 'loose'
             ],
@@ -582,17 +628,10 @@ return [
                 'name' => 'system.pages.frontmatter.ignore_fields',
                 'validation' => 'loose'
             ],
-            'system.content' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'system.content',
-                'validation' => 'loose'
-            ],
             'system.languages' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'system.languages',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'system.languages.supported' => [
                 'type' => 'selectize',
@@ -750,12 +789,6 @@ return [
                 'name' => 'system.pages.vary_accept_encoding',
                 'validation' => 'loose'
             ],
-            'system.http_headers' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'system.http_headers',
-                'validation' => 'loose'
-            ],
             'system.pages.markdown' => [
                 'type' => '_parent',
                 'name' => 'system.pages.markdown',
@@ -817,12 +850,6 @@ return [
                 'name' => 'system.pages.markdown.escape_markup',
                 'validation' => 'loose'
             ],
-            'system.markdown' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'system.markdown',
-                'validation' => 'loose'
-            ],
             'system.cache' => [
                 'type' => '_parent',
                 'name' => 'system.cache',
@@ -1025,17 +1052,10 @@ return [
                 'name' => 'system.cache.redis.password',
                 'validation' => 'loose'
             ],
-            'system.caching' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'system.caching',
-                'validation' => 'loose'
-            ],
             'system.twig' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'system.twig',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'system.twig.cache' => [
                 'type' => 'toggle',
@@ -1108,10 +1128,9 @@ return [
                 'validation' => 'loose'
             ],
             'system.assets' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'system.assets',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'system.assets.css_pipeline' => [
                 'type' => 'toggle',
@@ -1277,10 +1296,9 @@ return [
                 'validation' => 'loose'
             ],
             'system.errors' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'system.errors',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'system.errors.display' => [
                 'type' => 'select',
@@ -1313,10 +1331,9 @@ return [
                 'validation' => 'loose'
             ],
             'system.debugger' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'system.debugger',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'system.debugger.enabled' => [
                 'type' => 'toggle',
@@ -1422,10 +1439,9 @@ return [
                 'validation' => 'loose'
             ],
             'system.media' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'system.media',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'system.media.enable_media_timestamp' => [
                 'type' => 'toggle',
@@ -1478,10 +1494,9 @@ return [
                 'validation' => 'loose'
             ],
             'system.session' => [
-                'type' => 'section',
-                'underline' => true,
+                'type' => '_parent',
                 'name' => 'system.session',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'system.session.enabled' => [
                 'type' => 'hidden',
@@ -1752,12 +1767,6 @@ return [
                 'name' => 'system.custom_base_url',
                 'validation' => 'loose'
             ],
-            'system.advanced' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'system.advanced',
-                'validation' => 'loose'
-            ],
             'plugins.problems' => [
                 'type' => '_root',
                 'form_field' => false,
@@ -2036,15 +2045,10 @@ return [
                 'name' => 'plugins.login.user_registration.redirect_after_activation',
                 'validation' => 'loose'
             ],
-            'plugins.login.routes' => [
-                'type' => 'section',
-                'name' => 'plugins.login.routes',
-                'validation' => 'loose'
-            ],
             'plugins.login.rememberme' => [
-                'type' => 'section',
+                'type' => '_parent',
                 'name' => 'plugins.login.rememberme',
-                'validation' => 'loose'
+                'form_field' => false
             ],
             'plugins.login.rememberme.enabled' => [
                 'type' => 'toggle',
@@ -2079,11 +2083,6 @@ return [
                 'name' => 'plugins.login.rememberme.name',
                 'validation' => 'loose'
             ],
-            'plugins.login.login' => [
-                'type' => 'tab',
-                'name' => 'plugins.login.login',
-                'validation' => 'loose'
-            ],
             'plugins.login.user_registration.enabled' => [
                 'type' => 'toggle',
                 'label' => 'PLUGIN_ADMIN.ENABLED',
@@ -2111,11 +2110,6 @@ return [
                 'name' => 'plugins.login.user_registration.default_values',
                 'validation' => 'loose'
             ],
-            'plugins.login.registration_fields' => [
-                'type' => 'section',
-                'name' => 'plugins.login.registration_fields',
-                'validation' => 'loose'
-            ],
             'plugins.login.user_registration.groups' => [
                 'type' => 'selectize',
                 'size' => 'large',
@@ -2143,12 +2137,6 @@ return [
                 'name' => 'plugins.login.user_registration.access.site',
                 'validation' => 'loose'
             ],
-            'plugins.login.access_levels' => [
-                'type' => 'section',
-                'security' => 'admin.super',
-                'name' => 'plugins.login.access_levels',
-                'validation' => 'loose'
-            ],
             'plugins.login.user_registration.options' => [
                 'type' => '_parent',
                 'name' => 'plugins.login.user_registration.options',
@@ -2235,16 +2223,6 @@ return [
                 'name' => 'plugins.login.user_registration.options.send_welcome_email',
                 'validation' => 'loose'
             ],
-            'plugins.login.options' => [
-                'type' => 'section',
-                'name' => 'plugins.login.options',
-                'validation' => 'loose'
-            ],
-            'plugins.login.registration' => [
-                'type' => 'tab',
-                'name' => 'plugins.login.registration',
-                'validation' => 'loose'
-            ],
             'plugins.login.max_pw_resets_count' => [
                 'type' => 'number',
                 'size' => 'x-small',
@@ -2293,18 +2271,6 @@ return [
                 'name' => 'plugins.login.max_login_interval',
                 'validation' => 'loose'
             ],
-            'plugins.login.Security' => [
-                'type' => 'tab',
-                'name' => 'plugins.login.Security',
-                'validation' => 'loose'
-            ],
-            'plugins.login.tabs' => [
-                'type' => 'tabs',
-                'active' => 1,
-                'class' => 'subtle',
-                'name' => 'plugins.login.tabs',
-                'validation' => 'loose'
-            ],
             'plugins.admin' => [
                 'type' => '_root',
                 'form_field' => false,
@@ -2312,12 +2278,6 @@ return [
                     'validation' => 'loose'
                 ]
             ],
-            'plugins.admin.Basics' => [
-                'type' => 'section',
-                'underline' => false,
-                'name' => 'plugins.admin.Basics',
-                'validation' => 'loose'
-            ],
             'plugins.admin.enabled' => [
                 'type' => 'hidden',
                 'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS',
@@ -2616,19 +2576,6 @@ return [
                 'name' => 'plugins.admin.hide_modular_page_types',
                 'validation' => 'loose'
             ],
-            'plugins.admin.MediaResize' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'plugins.admin.MediaResize',
-                'validation' => 'loose'
-            ],
-            'plugins.admin.MediaResizeNote' => [
-                'type' => 'spacer',
-                'text' => 'PLUGIN_ADMIN.PAGEMEDIA_RESIZER',
-                'markdown' => true,
-                'name' => 'plugins.admin.MediaResizeNote',
-                'validation' => 'loose'
-            ],
             'plugins.admin.pagemedia' => [
                 'type' => '_parent',
                 'name' => 'plugins.admin.pagemedia',
@@ -2719,12 +2666,6 @@ return [
                 'name' => 'plugins.admin.pagemedia.resize_quality',
                 'validation' => 'loose'
             ],
-            'plugins.admin.Dashboard' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'plugins.admin.Dashboard',
-                'validation' => 'loose'
-            ],
             'plugins.admin.widgets' => [
                 'type' => '_parent',
                 'name' => 'plugins.admin.widgets',
@@ -2805,12 +2746,6 @@ return [
                 'name' => 'plugins.admin.widgets.dashboard-pages',
                 'validation' => 'loose'
             ],
-            'plugins.admin.Notifications' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'plugins.admin.Notifications',
-                'validation' => 'loose'
-            ],
             'plugins.admin.notifications' => [
                 'type' => '_parent',
                 'name' => 'plugins.admin.notifications',
@@ -2876,12 +2811,6 @@ return [
                 'name' => 'plugins.admin.notifications.themes',
                 'validation' => 'loose'
             ],
-            'plugins.admin.Popularity' => [
-                'type' => 'section',
-                'underline' => true,
-                'name' => 'plugins.admin.Popularity',
-                'validation' => 'loose'
-            ],
             'plugins.admin.popularity' => [
                 'type' => '_parent',
                 'name' => 'plugins.admin.popularity',
@@ -3280,15 +3209,10 @@ return [
                 'name' => 'plugins.form.inline_errors',
                 'validation' => 'strict'
             ],
-            'plugins.form.general' => [
-                'type' => 'section',
-                'name' => 'plugins.form.general',
-                'validation' => 'strict'
-            ],
             'plugins.form.files' => [
-                'type' => 'section',
+                'type' => '_parent',
                 'name' => 'plugins.form.files',
-                'validation' => 'strict'
+                'form_field' => false
             ],
             'plugins.form.files.multiple' => [
                 'type' => 'toggle',
@@ -3382,9 +3306,9 @@ return [
                 'validation' => 'strict'
             ],
             'plugins.form.recaptcha' => [
-                'type' => 'section',
+                'type' => '_parent',
                 'name' => 'plugins.form.recaptcha',
-                'validation' => 'strict'
+                'form_field' => false
             ],
             'plugins.form.recaptcha.site_key' => [
                 'type' => 'text',
@@ -3405,9 +3329,17 @@ return [
             
         ],
         'nested' => [
-            'media' => 'media',
+            'media' => [
+                'types' => [
+                    '*' => [
+                        'type' => 'media.types.*.type',
+                        'thumb' => 'media.types.*.thumb',
+                        'mime' => 'media.types.*.mime',
+                        'image' => 'media.types.*.image'
+                    ]
+                ]
+            ],
             'site' => [
-                'content' => 'site.content',
                 'title' => 'site.title',
                 'default_lang' => 'site.default_lang',
                 'author' => [
@@ -3422,8 +3354,8 @@ return [
                     'delimiter' => 'site.summary.delimiter'
                 ],
                 'metadata' => 'site.metadata',
-                'routes' => 'site.routes',
-                'redirects' => 'site.redirects'
+                'redirects' => 'site.redirects',
+                'routes' => 'site.routes'
             ],
             'streams' => [
                 'schemes' => [
@@ -3431,7 +3363,6 @@ return [
                 ]
             ],
             'system' => [
-                'content' => 'system.content',
                 'home' => [
                     'alias' => 'system.home.alias',
                     'hide_in_urls' => 'system.home.hide_in_urls'
@@ -3489,9 +3420,6 @@ return [
                     'http_accept_language' => 'system.languages.http_accept_language',
                     'override_locale' => 'system.languages.override_locale'
                 ],
-                'http_headers' => 'system.http_headers',
-                'markdown' => 'system.markdown',
-                'caching' => 'system.caching',
                 'cache' => [
                     'enabled' => 'system.cache.enabled',
                     'check' => [
@@ -3550,12 +3478,6 @@ return [
                         'close_connection' => 'system.debugger.shutdown.close_connection'
                     ]
                 ],
-                'media' => [
-                    'enable_media_timestamp' => 'system.media.enable_media_timestamp',
-                    'auto_metadata_exif' => 'system.media.auto_metadata_exif',
-                    'allowed_fallback_types' => 'system.media.allowed_fallback_types',
-                    'unsupported_inline_types' => 'system.media.unsupported_inline_types'
-                ],
                 'images' => [
                     'default_image_quality' => 'system.images.default_image_quality',
                     'cache_all' => 'system.images.cache_all',
@@ -3563,6 +3485,12 @@ return [
                     'debug' => 'system.images.debug',
                     'auto_fix_orientation' => 'system.images.auto_fix_orientation'
                 ],
+                'media' => [
+                    'enable_media_timestamp' => 'system.media.enable_media_timestamp',
+                    'auto_metadata_exif' => 'system.media.auto_metadata_exif',
+                    'allowed_fallback_types' => 'system.media.allowed_fallback_types',
+                    'unsupported_inline_types' => 'system.media.unsupported_inline_types'
+                ],
                 'session' => [
                     'enabled' => 'system.session.enabled',
                     'timeout' => 'system.session.timeout',
@@ -3572,7 +3500,6 @@ return [
                     'path' => 'system.session.path',
                     'split' => 'system.session.split'
                 ],
-                'advanced' => 'system.advanced',
                 'gpm' => [
                     'releases' => 'system.gpm.releases',
                     'proxy_url' => 'system.gpm.proxy_url',
@@ -3608,8 +3535,6 @@ return [
                     ]
                 ],
                 'login' => [
-                    'tabs' => 'plugins.login.tabs',
-                    'login' => 'plugins.login.login',
                     'enabled' => 'plugins.login.enabled',
                     'built_in_css' => 'plugins.login.built_in_css',
                     'route' => 'plugins.login.route',
@@ -3621,7 +3546,6 @@ return [
                     'parent_acl' => 'plugins.login.parent_acl',
                     'dynamic_page_visibility' => 'plugins.login.dynamic_page_visibility',
                     'protect_protected_page_media' => 'plugins.login.protect_protected_page_media',
-                    'routes' => 'plugins.login.routes',
                     'route_activate' => 'plugins.login.route_activate',
                     'route_register' => 'plugins.login.route_register',
                     'user_registration' => [
@@ -3648,18 +3572,12 @@ return [
                         'timeout' => 'plugins.login.rememberme.timeout',
                         'name' => 'plugins.login.rememberme.name'
                     ],
-                    'registration' => 'plugins.login.registration',
-                    'registration_fields' => 'plugins.login.registration_fields',
-                    'access_levels' => 'plugins.login.access_levels',
-                    'options' => 'plugins.login.options',
-                    'Security' => 'plugins.login.Security',
                     'max_pw_resets_count' => 'plugins.login.max_pw_resets_count',
                     'max_pw_resets_interval' => 'plugins.login.max_pw_resets_interval',
                     'max_login_count' => 'plugins.login.max_login_count',
                     'max_login_interval' => 'plugins.login.max_login_interval'
                 ],
                 'admin' => [
-                    'Basics' => 'plugins.admin.Basics',
                     'enabled' => 'plugins.admin.enabled',
                     'cache_enabled' => 'plugins.admin.cache_enabled',
                     'twofa_enabled' => 'plugins.admin.twofa_enabled',
@@ -3693,8 +3611,6 @@ return [
                     ],
                     'hide_page_types' => 'plugins.admin.hide_page_types',
                     'hide_modular_page_types' => 'plugins.admin.hide_modular_page_types',
-                    'MediaResize' => 'plugins.admin.MediaResize',
-                    'MediaResizeNote' => 'plugins.admin.MediaResizeNote',
                     'pagemedia' => [
                         'resize_width' => 'plugins.admin.pagemedia.resize_width',
                         'resize_height' => 'plugins.admin.pagemedia.resize_height',
@@ -3704,7 +3620,6 @@ return [
                         'res_max_height' => 'plugins.admin.pagemedia.res_max_height',
                         'resize_quality' => 'plugins.admin.pagemedia.resize_quality'
                     ],
-                    'Dashboard' => 'plugins.admin.Dashboard',
                     'widgets' => [
                         'dashboard-maintenance' => 'plugins.admin.widgets.dashboard-maintenance',
                         'dashboard-statistics' => 'plugins.admin.widgets.dashboard-statistics',
@@ -3712,14 +3627,12 @@ return [
                         'dashboard-feed' => 'plugins.admin.widgets.dashboard-feed',
                         'dashboard-pages' => 'plugins.admin.widgets.dashboard-pages'
                     ],
-                    'Notifications' => 'plugins.admin.Notifications',
                     'notifications' => [
                         'feed' => 'plugins.admin.notifications.feed',
                         'dashboard' => 'plugins.admin.notifications.dashboard',
                         'plugins' => 'plugins.admin.notifications.plugins',
                         'themes' => 'plugins.admin.notifications.themes'
                     ],
-                    'Popularity' => 'plugins.admin.Popularity',
                     'popularity' => [
                         'enabled' => 'plugins.admin.popularity.enabled',
                         'ignore' => 'plugins.admin.popularity.ignore',
@@ -3764,7 +3677,6 @@ return [
                 ],
                 'form' => [
                     'enabled' => 'plugins.form.enabled',
-                    'general' => 'plugins.form.general',
                     'built_in_css' => 'plugins.form.built_in_css',
                     'inline_css' => 'plugins.form.inline_css',
                     'refresh_prevention' => 'plugins.form.refresh_prevention',

+ 4 - 4
cache/compiled/config/master-localhost.php

@@ -1,8 +1,8 @@
 <?php
 return [
     '@class' => 'Grav\\Common\\Config\\CompiledConfig',
-    'timestamp' => 1531324257,
-    'checksum' => 'f7dd0da9baca1c71997fbdd08d4aba80',
+    'timestamp' => 1531325457,
+    'checksum' => 'aeab2427940d5f22b9a8646d26430039',
     'files' => [
         'user/config' => [
             'media' => [
@@ -15,7 +15,7 @@ return [
             ],
             'site' => [
                 'file' => 'user/config/site.yaml',
-                'modified' => 1530713574
+                'modified' => 1531325457
             ],
             'streams' => [
                 'file' => 'user/config/streams.yaml',
@@ -519,7 +519,7 @@ return [
             ]
         ],
         'site' => [
-            'title' => 'r2c',
+            'title' => 'Réseau de convivialité',
             'default_lang' => 'en',
             'author' => [
                 'name' => 'Kevin Tessier',

+ 22 - 0
cache/compiled/files/3e710272fd53c61ec9d40f88700e896a.yaml.php

@@ -0,0 +1,22 @@
+<?php
+return [
+    '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
+    'filename' => '/var/www/html/user/accounts/admin.yaml',
+    'modified' => 1530713574,
+    'data' => [
+        'email' => 'kevin@figureslibres.io',
+        'fullname' => 'Kévin Tessier',
+        'title' => 'Administrator',
+        'state' => 'enabled',
+        'access' => [
+            'admin' => [
+                'login' => true,
+                'super' => true
+            ],
+            'site' => [
+                'login' => true
+            ]
+        ],
+        'hashed_password' => '$2y$10$Y3Nmqv.R9JKjvYicyX.pjep.UYP6p4Y05tp1lGJyYpwxIRmr9BIT6'
+    ]
+];

+ 52 - 0
cache/compiled/files/61df610ba6929930259feea3b546e1a2.yaml.php

@@ -0,0 +1,52 @@
+<?php
+return [
+    '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
+    'filename' => '/var/www/html/user/plugins/admin/blueprints/config/media.yaml',
+    'modified' => 1529597236,
+    'data' => [
+        'title' => 'PLUGIN_ADMIN.MEDIA',
+        'form' => [
+            'validation' => 'loose',
+            'fields' => [
+                'types' => [
+                    'name' => 'medias',
+                    'type' => 'list',
+                    'label' => 'PLUGIN_ADMIN.MEDIA_TYPES',
+                    'style' => 'vertical',
+                    'key' => 'extension',
+                    'controls' => 'both',
+                    'collapsed' => true,
+                    'fields' => [
+                        '.extension' => [
+                            'type' => 'key',
+                            'label' => 'PLUGIN_ADMIN.FILE_EXTENSION'
+                        ],
+                        '.type' => [
+                            'type' => 'text',
+                            'label' => 'PLUGIN_ADMIN.TYPE'
+                        ],
+                        '.thumb' => [
+                            'type' => 'text',
+                            'label' => 'PLUGIN_ADMIN.THUMB'
+                        ],
+                        '.mime' => [
+                            'type' => 'text',
+                            'label' => 'PLUGIN_ADMIN.MIME_TYPE',
+                            'validate' => [
+                                'type' => 'lower'
+                            ]
+                        ],
+                        '.image' => [
+                            'type' => 'textarea',
+                            'yaml' => true,
+                            'label' => 'PLUGIN_ADMIN.IMAGE_OPTIONS',
+                            'validate' => [
+                                'type' => 'yaml'
+                            ]
+                        ]
+                    ]
+                ]
+            ]
+        ]
+    ]
+];

+ 139 - 0
cache/compiled/files/e2debe8a7c302596261150465a999131.yaml.php

@@ -0,0 +1,139 @@
+<?php
+return [
+    '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
+    'filename' => '/var/www/html/system/blueprints/user/account.yaml',
+    'modified' => 1529597236,
+    'data' => [
+        'title' => 'Account',
+        'form' => [
+            'validation' => 'loose',
+            'fields' => [
+                'info' => [
+                    'type' => 'userinfo',
+                    'size' => 'large'
+                ],
+                'avatar' => [
+                    'type' => 'file',
+                    'size' => 'large',
+                    'destination' => 'user://accounts/avatars',
+                    'multiple' => false,
+                    'random_name' => true
+                ],
+                'content' => [
+                    'type' => 'section',
+                    'title' => 'PLUGIN_ADMIN.ACCOUNT',
+                    'underline' => true
+                ],
+                'username' => [
+                    'type' => 'text',
+                    'size' => 'large',
+                    'label' => 'PLUGIN_ADMIN.USERNAME',
+                    'disabled' => true,
+                    'readonly' => true
+                ],
+                'email' => [
+                    'type' => 'email',
+                    'size' => 'large',
+                    'label' => 'PLUGIN_ADMIN.EMAIL',
+                    'validate' => [
+                        'type' => 'email',
+                        'message' => 'PLUGIN_ADMIN.EMAIL_VALIDATION_MESSAGE',
+                        'required' => true
+                    ]
+                ],
+                'password' => [
+                    'type' => 'password',
+                    'size' => 'large',
+                    'label' => 'PLUGIN_ADMIN.PASSWORD',
+                    'autocomplete' => 'new-password',
+                    'validate' => [
+                        'required' => false,
+                        'message' => 'PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE',
+                        'config-pattern@' => 'system.pwd_regex'
+                    ]
+                ],
+                'fullname' => [
+                    'type' => 'text',
+                    'size' => 'large',
+                    'label' => 'PLUGIN_ADMIN.FULL_NAME',
+                    'validate' => [
+                        'required' => true
+                    ]
+                ],
+                'title' => [
+                    'type' => 'text',
+                    'size' => 'large',
+                    'label' => 'PLUGIN_ADMIN.TITLE'
+                ],
+                'language' => [
+                    'type' => 'select',
+                    'label' => 'PLUGIN_ADMIN.LANGUAGE',
+                    'size' => 'medium',
+                    'classes' => 'fancy',
+                    'data-options@' => '\\Grav\\Plugin\\Admin\\Admin::adminLanguages',
+                    'default' => 'en',
+                    'help' => 'PLUGIN_ADMIN.LANGUAGE_HELP'
+                ],
+                'twofa_check' => [
+                    'type' => 'conditional',
+                    'condition' => 'config.plugins.admin.twofa_enabled',
+                    'fields' => [
+                        'twofa' => [
+                            'title' => 'PLUGIN_ADMIN.2FA_TITLE',
+                            'type' => 'section',
+                            'underline' => true
+                        ],
+                        'twofa_enabled' => [
+                            'type' => 'toggle',
+                            'label' => 'PLUGIN_ADMIN.2FA_ENABLED',
+                            'classes' => 'twofa-toggle',
+                            'highlight' => 1,
+                            'default' => 0,
+                            'options' => [
+                                1 => 'PLUGIN_ADMIN.YES',
+                                0 => 'PLUGIN_ADMIN.NO'
+                            ],
+                            'validate' => [
+                                'type' => 'bool'
+                            ]
+                        ],
+                        'twofa_secret' => [
+                            'type' => '2fa_secret',
+                            'outerclasses' => 'twofa-secret',
+                            'label' => 'PLUGIN_ADMIN.2FA_SECRET',
+                            'sublabel' => 'PLUGIN_ADMIN.2FA_SECRET_HELP'
+                        ]
+                    ]
+                ],
+                'security' => [
+                    'title' => 'PLUGIN_ADMIN.ACCESS_LEVELS',
+                    'type' => 'section',
+                    'security' => 'admin.super',
+                    'underline' => true,
+                    'fields' => [
+                        'groups' => [
+                            'type' => 'select',
+                            'multiple' => true,
+                            'size' => 'large',
+                            'label' => 'PLUGIN_ADMIN.GROUPS',
+                            'data-options@' => '\\Grav\\Common\\User\\Group::groupNames',
+                            'classes' => 'fancy',
+                            'help' => 'PLUGIN_ADMIN.GROUPS_HELP',
+                            'validate' => [
+                                'type' => 'commalist'
+                            ]
+                        ],
+                        'access' => [
+                            'type' => 'permissions',
+                            'label' => 'PLUGIN_ADMIN.PERMISSIONS',
+                            'ignore_empty' => true,
+                            'validate' => [
+                                'type' => 'array'
+                            ]
+                        ]
+                    ]
+                ]
+            ]
+        ]
+    ]
+];

File diff suppressed because it is too large
+ 0 - 1
cache/gpm/8f/5b62333865643130323965613736323636653236613835613266303562373536315d5b315d.doctrinecache.data


File diff suppressed because it is too large
+ 0 - 1
cache/gpm/d0/5b62613939336136653764643135616137616630613539666565663264343836315d5b315d.doctrinecache.data


File diff suppressed because it is too large
+ 0 - 1
cache/gpm/ef/5b31303233303536663130303366393138623662623161653434373532383136625d5b315d.doctrinecache.data


+ 0 - 0
cache/problem-check-g-58d7bdf5 → cache/problem-check-g-f3520b32


+ 1 - 1
logs/popularity/daily.json

@@ -1 +1 @@
-{"02-07-2018":140,"03-07-2018":176,"04-07-2018":10,"11-07-2018":131}
+{"02-07-2018":140,"03-07-2018":176,"04-07-2018":10,"11-07-2018":166,"13-07-2018":188,"14-07-2018":111}

+ 1 - 1
logs/popularity/monthly.json

@@ -1 +1 @@
-{"07-2018":457}
+{"07-2018":791}

+ 1 - 1
logs/popularity/totals.json

@@ -1 +1 @@
-{"\/":457}
+{"\/":791}

+ 1 - 1
logs/popularity/visitors.json

@@ -1 +1 @@
-{"79c47964f1cd8a7f86f7fb4e1c1ac6bdb2551b4b":1531324663,"4b84b15bff6ee5796152495a230e45e3d7e947d9":1530699635}
+{"79c47964f1cd8a7f86f7fb4e1c1ac6bdb2551b4b":1531535672,"4b84b15bff6ee5796152495a230e45e3d7e947d9":1530699635}

+ 1 - 1
user/config/site.yaml

@@ -1,4 +1,4 @@
-title: r2c
+title: 'Réseau de convivialité'
 default_lang: en
 author:
   name: 'Kevin Tessier'

+ 0 - 0
user/pages/_recits/_11-avril-2017/text.md → user/pages/01._recits/_11-avril-2017/text.md


+ 0 - 0
user/pages/_recits/_30-janvier-2017/text.md → user/pages/01._recits/_30-janvier-2017/text.md


+ 2 - 2
user/pages/_recits/recit.md → user/pages/01._recits/recit.md

@@ -1,7 +1,7 @@
 ---
 title: Récits
-body_classes: modular
 content:
-	items: '@self.modular'
+    items: '@self.modular'
+body_classes: modular
 ---
 

+ 0 - 0
user/pages/01._interviews/_andrea/text.md → user/pages/02._interviews/_andrea/text.md


+ 0 - 0
user/pages/01._interviews/_manon-dumond/text.md → user/pages/02._interviews/_manon-dumond/text.md


+ 0 - 0
user/pages/01._interviews/_marie-preston/text.md → user/pages/02._interviews/_marie-preston/text.md


+ 0 - 0
user/pages/01._interviews/interviews.md → user/pages/02._interviews/interviews.md


File diff suppressed because it is too large
+ 11 - 0
user/pages/_links/_link/text.md


File diff suppressed because it is too large
+ 7 - 0
user/pages/_reseaux-sociaux/_reseaux/text.md


+ 2 - 0
user/pages/_reseaux-sociaux/reseausociaux.md

@@ -1,4 +1,6 @@
 ---
 title: 'Réseaux sociaux'
+content:
+    items: '@self.modular'
 ---
 

File diff suppressed because it is too large
+ 7 - 0
user/pages/_streetmap/_streetmap/text.md


File diff suppressed because it is too large
+ 2 - 2
user/themes/r2c/css-compiled/template.css


File diff suppressed because it is too large
+ 0 - 0
user/themes/r2c/css-compiled/template.min.css


+ 9 - 0
user/themes/r2c/css/resizer.css

@@ -0,0 +1,9 @@
+[data-rz-handle] {
+    flex: 0 0 6px;
+    background-color: rgba(0, 0, 0, .75);
+}
+
+[data-rz-handle] div {
+    width: 6px;
+    background-color: rgba(0, 0, 0, .5);
+}

+ 137 - 0
user/themes/r2c/js/resizer.js

@@ -0,0 +1,137 @@
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+var Resizer = function () {
+    function Resizer(containerSelector, resizerOptions) {
+        if (resizerOptions === void 0) {
+            resizerOptions = {};
+        }
+        this.containerSelector = containerSelector;
+        this.resizerOptions = resizerOptions;
+        this.offsetX = 0;
+        this.dragging = false;
+        this.options = _extends(Resizer.defaultOptions, this.resizerOptions, {});
+        this.container = Resizer.getElement(containerSelector);
+        this.target = this.container.firstElementChild;
+        if (this.container.Resizer) {
+            this.remove();
+        }
+        this.setup();
+    }
+    Resizer.removeBySelector = function (input) {
+        var container = Resizer.getElement(input);
+        if (container.hasOwnProperty('Resizer')) {
+            container.Resizer.remove();
+        } else {
+            throw new Error('Resizer doesn\'t exist on element');
+        }
+    };
+    Resizer.getElement = function (input) {
+        var el;
+        if (!input) {
+            throw new Error('Missing param, should be an element or selector');
+        }
+        if (typeof input === 'string') {
+            el = document.querySelector(input);
+            if (!el) {
+                throw new Error("Can not find element from selector " + input);
+            }
+        } else {
+            el = input;
+        }
+        return el;
+    };
+    Resizer.createHandle = function (handleClass) {
+        var el = document.createElement('div');
+        el.dataset.rzHandle = handleClass || '';
+        el.style.cursor = 'ew-resize';
+        return el;
+    };
+    Resizer.createGhost = function () {
+        var el = document.createElement('div');
+        el.style.position = 'absolute';
+        el.style.top = '0';
+        el.style.bottom = '0';
+        el.style.display = 'none';
+        el.style.zIndex = '99999';
+        return el;
+    };
+    Resizer.prototype.remove = function () {
+        delete this.container.Resizer;
+        this.container.style.position = null;
+        this.container.querySelector('[data-rz-handle]').remove();
+        this.target.style.flex = null;
+    };
+    Resizer.prototype.setup = function () {
+        var _this = this;
+        this.setupDom();
+        this.handle.addEventListener('mousedown', function (e) {
+            return _this.onDown(e);
+        });
+        this.container.addEventListener('mouseup', function (e) {
+            return _this.onUp(e);
+        });
+        this.container.addEventListener('mousemove', function (e) {
+            return _this.onMove(e);
+        });
+        this.container.Resizer = this;
+    };
+    Resizer.prototype.setupDom = function () {
+        this.container.style.position = 'relative';
+        this.handle = Resizer.createHandle();
+        this.ghost = Resizer.createGhost();
+        this.handle.appendChild(this.ghost);
+        this.container.insertBefore(this.handle, this.target.nextElementSibling);
+    };
+    Resizer.prototype.setDragging = function (value) {
+        if (value === void 0) {
+            value = true;
+        }
+        if (this.dragging) {
+            this.ghost.style.display = 'none';
+            this.target.style.flex = "0 0 " + this.handleX + "px";
+        } else {
+            this.ghost.style.display = 'block';
+        }
+        return this.dragging = value;
+    };
+    Resizer.prototype.setHandleX = function (value) {
+        if (value < 0) {
+            value = 0;
+        }
+        if (value > this.container.clientWidth) {
+            value = this.container.clientWidth;
+        }
+        this.ghost.style.left = value + "px";
+        return this.handleX = value;
+    };
+    Resizer.prototype.onDown = function (e) {
+        e.preventDefault();
+        if (!this.dragging) {
+            this.offsetX = e.offsetX;
+            this.setHandleX(e.pageX - this.container.getBoundingClientRect().left - this.offsetX);
+            this.setDragging(true);
+        }
+    };
+    Resizer.prototype.onUp = function (e) {
+        e.preventDefault();
+        if (this.dragging) {
+            this.setHandleX(e.pageX - this.container.getBoundingClientRect().left - this.offsetX);
+            this.setDragging(false);
+        }
+    };
+    Resizer.prototype.onMove = function (e) {
+        e.preventDefault();
+        if (this.dragging) {
+            var x = e.pageX - this.container.getBoundingClientRect().left - this.offsetX;
+            if (e.shiftKey) {
+                x = Math.ceil(x / 20) * 20;
+            }
+            this.setHandleX(x);
+        }
+    };
+    return Resizer;
+}();
+Resizer.defaultOptions = {
+    width: 8
+};
+//# sourceMappingURL=resizer.js.map

+ 42 - 3
user/themes/r2c/js/site.js

@@ -3,9 +3,48 @@ function wrap(){
   $('#start > div:nth-child(n+2)').wrapAll('<div class="bottom"></div> ')
 };
 
-$(document).ready(function() {
-  // wrap();
+function resize() {
   $(window).on("load resize", function() {
-    $(".blocs").resizable();
+    $("#recits").resizable();
+    // $( "#reseaux-sociaux" ).resizable();
+  });
+}
+
+function drag() {
+
+  var $hand = $( ".handler" );
+
+  $hand.draggable({
+    drag: function(){
+      var offset = $(this).offset();
+      var xPos = offset.left;
+      var yPos = offset.top;
+      $('#posX').text('x: ' + xPos);
+      $('#posY').text('y: ' + yPos);
+      console.log(yPos);
+
+      var $recits = $(this).parent('#page').find('#recits');
+      var $itw = $(this).parent('#page').find("#interviews");
+      var $links = $(this).parent('#page').find("#links");
+      var $rs = $(this).parent('#page').find("#reseaux-sociaux");
+
+      var $grid1 = $(this).parent('.top');
+      var $grid2 = $(this).parent('.bottom');
+
+      $grid1.css('griqd-template-columns', xPos + 'auto auto' );
+      $grid2.css('grid-template-columns', xPos + 'auto auto' );
+
+      $recits.css('width', xPos);
+      $rs.css('width', xPos);
+      $recits.css('height', yPos);
+      $itw.css('height', yPos);
+      $links.css('height', yPos);
+    }
   });
+};
+
+$(document).ready(function() {
+  wrap();
+  drag();
+  // resize();
 });

+ 17 - 4
user/themes/r2c/scss/template/_section.scss

@@ -1,4 +1,3 @@
-
   #page{
     height: 100%;
     .navbar{
@@ -8,10 +7,9 @@
     #start{
       width: 100%;
       height: calc(100% - 50px);
-      display: flex;
-      flex-wrap: wrap;
+      // display: grid;
+      //
       .blocs{
-        width: calc(100%/3);
         height: calc(100vh/2 - 25px);
         overflow-y: auto;
         &:nth-child(1){
@@ -35,3 +33,18 @@
       }
     }
   }
+
+.top, .bottom{
+  display: inline-grid;
+    grid-template-columns: auto auto auto;
+}
+.handler{
+  width: 50px;
+  height: 50px;
+  border-radius: 25px;
+  background: red;
+  position: absolute;
+  left : calc((100%/3) - 25px);
+  top: 50%;
+  z-index: 999;
+}

File diff suppressed because it is too large
+ 4 - 0
user/themes/r2c/templates/default.html.twig


+ 0 - 1
user/themes/r2c/templates/modular/recit.html.twig

@@ -9,4 +9,3 @@
       </div>
     {% endfor %}
   {% endblock %}
- 

+ 3 - 1
user/themes/r2c/templates/partials/base.html.twig

@@ -50,11 +50,13 @@
                 </nav>
             </section>
         </section>
+
     {% endblock %}
 
     {% block hero %}{% endblock %}
+        <div class="handler"></div>
 
-        <section id="start">
+          <section id="start">
         {% block body %}
             <section id="body-wrapper" class="section">
                 <section class="container {{ grid_size }}">

Some files were not shown because too many files changed in this diff