locomotivecms_wagon 3.0.0.rc0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/Gemfile +2 -2
- data/README.md +4 -4
- data/generators/blank/Gemfile.tt +0 -6
- data/generators/blank/app/assets/javascripts/sections/_manager.js +3 -2
- data/generators/blank/app/views/pages/layouts/default.liquid +1 -1
- data/generators/blank/config/metafields_schema.yml +5 -0
- data/generators/blank/package.json.tt +1 -1
- data/generators/blank/public/samples/images/default.svg +1 -0
- data/generators/content_type/app/content_types/%slug%.yml.tt +6 -0
- data/generators/section/%type%.js.tt +1 -1
- data/generators/section/template.liquid.tt +117 -142
- data/generators/site_metafields/schema.yml.tt +5 -0
- data/generators/webpack/app/assets/javascripts/sections/_manager.js +3 -2
- data/generators/webpack/package.json.tt +1 -1
- data/lib/locomotive/wagon/cli.rb +13 -23
- data/lib/locomotive/wagon/commands/concerns/api_concern.rb +1 -0
- data/lib/locomotive/wagon/commands/concerns/steam_concern.rb +1 -1
- data/lib/locomotive/wagon/commands/delete_command.rb +2 -2
- data/lib/locomotive/wagon/commands/generate_command.rb +6 -1
- data/lib/locomotive/wagon/commands/push_command.rb +30 -3
- data/lib/locomotive/wagon/commands/push_sub_commands/push_pages_command.rb +4 -0
- data/lib/locomotive/wagon/commands/push_sub_commands/push_site_command.rb +4 -3
- data/lib/locomotive/wagon/commands/serve_command.rb +35 -54
- data/lib/locomotive/wagon/commands/sync_sub_commands/sync_pages_command.rb +2 -0
- data/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb +1 -1
- data/lib/locomotive/wagon/decorators/content_type_decorator.rb +10 -1
- data/lib/locomotive/wagon/decorators/site_decorator.rb +14 -4
- data/lib/locomotive/wagon/generators/section.rb +3 -3
- data/lib/locomotive/wagon/generators/site/base.rb +2 -4
- data/lib/locomotive/wagon/middlewares/error_page.rb +18 -4
- data/lib/locomotive/wagon/tools/listen.rb +6 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +8 -8
- data/spec/fixtures/cassettes/authenticate.yml +42 -42
- data/spec/fixtures/cassettes/delete.yml +238 -238
- data/spec/fixtures/cassettes/push.yml +2006 -2027
- data/spec/fixtures/cassettes/sync.yml +2290 -2311
- data/spec/fixtures/default/icon.png +0 -0
- data/spec/integration/commands/push_command_spec.rb +39 -9
- data/spec/integration/commands/sync_command_spec.rb +7 -1
- data/spec/support/vcr.rb +13 -0
- data/spec/unit/decorators/site_decorator_spec.rb +4 -3
- metadata +23 -24
- data/TODO +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4afa7187e1d572da68484ff666c37873c60853ad6a1cfd926baf74ed84b8620d
|
4
|
+
data.tar.gz: 5ac5bbd400e61bd616e34d968d139450a2ab09c52ee380d7aebc47069d1fdf26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 396551c4762052faa7a1455e8e5a754412ce6bcaa26a651dd403918eca2e5f513849a7d07528662369ba6f0d1a1e41a504fb909751ae4990753f6170d334f92d
|
7
|
+
data.tar.gz: af779bab2277b73d3c2bf43b35e1d0a76ac79f4950ca9ed466f0ce5e01791a4429c5884fbf53f65737736067a27bd219904718536ee1b6109326bef9f1a7376f
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -7,8 +7,8 @@ gem 'rb-fsevent', '~> 0.9.1'
|
|
7
7
|
|
8
8
|
# Development
|
9
9
|
# gem 'locomotivecms_common', github: 'locomotivecms/common', ref: '4d1bd56' , require: false
|
10
|
-
# gem 'locomotivecms_coal', github: 'locomotivecms/coal', ref: '
|
11
|
-
# gem 'locomotivecms_steam', github: 'locomotivecms/steam', ref: '
|
10
|
+
# gem 'locomotivecms_coal', github: 'locomotivecms/coal', ref: 'e1719db', require: false
|
11
|
+
# gem 'locomotivecms_steam', github: 'locomotivecms/steam', ref: '8cd7541', require: false
|
12
12
|
# gem 'duktape', github: 'judofyr/duktape.rb', ref: '20ef6a5'
|
13
13
|
|
14
14
|
# Local development
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Wagon
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/locomotivecms_wagon.svg)](http://badge.fury.io/rb/locomotivecms_wagon) [![Code Climate](https://codeclimate.com/github/locomotivecms/wagon/badges/gpa.svg)](https://codeclimate.com/github/locomotivecms/wagon) [![
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/locomotivecms_wagon.svg)](http://badge.fury.io/rb/locomotivecms_wagon) [![Code Climate](https://codeclimate.com/github/locomotivecms/wagon/badges/gpa.svg)](https://codeclimate.com/github/locomotivecms/wagon) [![Build Status](https://travis-ci.com/locomotivecms/wagon.svg?branch=master)](https://travis-ci.com/locomotivecms/wagon) [![Coverage Status](https://coveralls.io/repos/locomotivecms/wagon/badge.svg?branch=master)](https://coveralls.io/r/locomotivecms/wagon?branch=master) [![Join the chat at https://gitter.im/locomotivecms/wagon](https://badges.gitter.im/locomotivecms/wagon.svg)](https://gitter.im/locomotivecms/wagon?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
4
|
|
5
5
|
Wagon is a command line tool that let's you develop for Locomotive right on your local machine.
|
6
6
|
|
@@ -16,9 +16,9 @@ To help you work faster, Wagon comes with support for tools like SASS, LESS, HAM
|
|
16
16
|
|
17
17
|
Please, visit the documentation website of Locomotive.
|
18
18
|
|
19
|
-
[
|
19
|
+
[https://doc.locomotivecms.com](https://doc.locomotivecms.com)
|
20
20
|
|
21
|
-
**Note:** The documentation for the previous version (v1.5.x) is available [here](http://doc.locomotivecms.com).
|
21
|
+
**Note:** The documentation for the previous version (v1.5.x) is available [here](http://doc-v2.locomotivecms.com/).
|
22
22
|
|
23
23
|
## Developers / Contributors
|
24
24
|
|
@@ -61,4 +61,4 @@ Please, visit the documentation website of Locomotive.
|
|
61
61
|
|
62
62
|
Feel free to contact me (didier at nocoffee dot fr).
|
63
63
|
|
64
|
-
Copyright (c)
|
64
|
+
Copyright (c) 2019 NoCoffee, released under the MIT license
|
data/generators/blank/Gemfile.tt
CHANGED
@@ -11,7 +11,7 @@ class Manager {
|
|
11
11
|
|
12
12
|
start() {
|
13
13
|
this.eachType((type, actions) => {
|
14
|
-
this.queryAll(
|
14
|
+
this.queryAll(`[data-locomotive-section-type="${type}"]`).forEach((section, index) => {
|
15
15
|
this.runAction(actions, 'load', section);
|
16
16
|
});
|
17
17
|
});
|
@@ -40,7 +40,8 @@ class Manager {
|
|
40
40
|
|
41
41
|
applyRuleToEvent(actionName, event) {
|
42
42
|
const { sectionId, blockId } = event.detail;
|
43
|
-
const section = document.getElementById(`locomotive-section-${sectionId}`)
|
43
|
+
const section = document.getElementById(`locomotive-section-${sectionId}`) ||
|
44
|
+
this.queryOne(`[data-locomotive-section-id="${sectionId}"]`);
|
44
45
|
const type = section.getAttribute('data-locomotive-section-type');
|
45
46
|
const block = this.queryOne(`[data-locomotive-block="section-${sectionId}-block-${blockId}"]`, section);
|
46
47
|
|
@@ -14,6 +14,7 @@
|
|
14
14
|
# hint: <my hint> # used as the hint of the HTML input. Use a hash if you want it in another languages.
|
15
15
|
# type: <string|text|integer|float|image|boolean|select|color>
|
16
16
|
# localized: <true|false> # if the value is scoped by the current locale when rendering the site.
|
17
|
+
# sample: <any value> # value only used in Wagon for testing purpose. Will not be deployed
|
17
18
|
# position: <0..n> # position of the input in the form
|
18
19
|
# select_options: [array]
|
19
20
|
# # select_options:
|
@@ -34,15 +35,19 @@
|
|
34
35
|
# address:
|
35
36
|
# type: string
|
36
37
|
# hint: "Ex: 7 allee Albert Camus"
|
38
|
+
# sample: "700 S Laflin St"
|
37
39
|
# city:
|
38
40
|
# type: string
|
39
41
|
# hint: "Chicago, Paris, Blagnac, Toulouse"
|
42
|
+
# sample: "Chicago"
|
40
43
|
# zip_code:
|
41
44
|
# type: string
|
42
45
|
# hint: "Digits only"
|
46
|
+
# sample: "60607"
|
43
47
|
# hours:
|
44
48
|
# type: text
|
45
49
|
# hint: "Free text here"
|
50
|
+
# sample: "6:00am - 8:00pm"
|
46
51
|
# theme:
|
47
52
|
# fields:
|
48
53
|
# background_image:
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg height="598.99741" viewBox="0 0 1028 598.99741" width="1028" xmlns="http://www.w3.org/2000/svg"><circle cx="332.00497" cy="292.00357" fill="#f2f2f2" r="292.00357"/><path d="m1114 668.4987a13.68982 13.68982 0 0 1 -.16992 2.12c-7.14014 43.76-234.46008 78.88-513.83008 78.88s-506.69-35.12-513.83-78.88a13.67509 13.67509 0 0 1 -.17-2.12c0-.2 0-.41.02-.61 0-.11005.01-.21.01-.32a.48944.48944 0 0 0 .01-.12c.04-.45.1-.88.18-1.32 3.26-17.89 43.35-34.33 108.74-47.5 53.48-10.77 123.89-19.36 204.93-24.76 61.5-4.1 129.12-6.37 200.11-6.37 57.12 0 112.06 1.47 163.38 4.17h.02q16.11.855 31.74 1.87c71.33 4.62 134.63 11.69 185.63 20.54 31.37 5.45 58.1 11.58 79.18994 18.22h.01c32.46 10.23 51.6001 21.7 53.81006 33.83.08.44.13989.87.17993 1.32a.48659.48659 0 0 0 .01.12c0 .11.01.21.01.32.02007.19997.02007.40999.02007.61z" fill="#3f3d56" transform="translate(-86 -150.5013)"/><ellipse cx="501" cy="571.99741" opacity=".1" rx="165" ry="24"/><path d="m1059.96 632.29869c-5.77 1.65-12.27 3.18-19.3999 4.58-29.36011 5.78-69.42005 9.33-113.53 9.33-49.28 0-93.45-4.43-123.38-11.44-24.84-5.81994-39.88-13.38995-39.88-21.69995 0-7.30005 11.63995-14.06 31.37-19.53 71.33 4.62 134.63 11.69 185.63 20.54 31.3699 5.44993 58.0999 11.57994 79.1899 18.21995z" opacity=".1" transform="translate(-86 -150.5013)"/><path d="m618 621.2487c0 15.13-94.92 27.4-212 27.4s-212-12.27-212-27.4a4.372 4.372 0 0 1 .96-2.62c53.48-10.77 123.89-19.36 204.93-24.76q3.045-.015 6.11-.01c117.08-.00001 212 12.26 212 27.39z" opacity=".1" transform="translate(-86 -150.5013)"/><path d="m416.47191 334.97493h41.68539v134.58427h-41.68539z" fill="#6c63ff"/><path d="m279.50562 271.85134h41.68539v197.70787h-41.68539z" fill="#6c63ff"/><path d="m143.73034 271.85134h41.68539v197.70787h-41.68539z" fill="#6c63ff"/><path d="m211.61798 271.85134h41.68539v134.58427h-41.68539z" fill="#6c63ff"/><path d="m347.39326 271.85134h41.68539v39.30337h-41.68539z" fill="#6c63ff"/><path d="m347.39326 334.97493h41.68539v134.58427h-41.68539z" fill="#8a8b8c"/><path d="m416.47191 271.85134h109.57303v39.30337h-109.57303z" fill="#6c63ff"/><path d="m901.062 410.53031q42.74823 0 72.77372 29.83923a97.98265 97.98265 0 0 1 21.83181 32.83846 107.34579 107.34579 0 0 1 .09551 78.40916 93.53335 93.53335 0 0 1 -21.73946 32.294 104.70367 104.70367 0 0 1 -33.84136 22.5609 101.42451 101.42451 0 0 1 -39.11384 7.82277 99.01466 99.01466 0 0 1 -38.66173-7.73362 104.84511 104.84511 0 0 1 -55.39934-55.39621 101.7643 101.7643 0 0 1 .08913-77.59409 102.30668 102.30668 0 0 1 22.46856-33.38603q29.10854-29.6482 71.497-29.65457zm.36932 18.3773q-34.93023 0-58.76787 24.37889a87.59486 87.59486 0 0 0 -18.46645 27.38128 80.78885 80.78885 0 0 0 0 63.31126 86.24851 86.24851 0 0 0 45.5771 45.30965 82.68682 82.68682 0 0 0 63.41-.08914 87.99456 87.99456 0 0 0 27.74106-18.37412q23.83128-23.28683 23.82809-58.40491a83.65859 83.65859 0 0 0 -6.18627-32.02018 81.465 81.465 0 0 0 -18.0016-26.92917q-24.57632-24.56197-59.13406-24.56356zm-1.27673 66.59064-13.64925 7.09685a14.0061 14.0061 0 0 0 -5.36482-6.36774 12.08742 12.08742 0 0 0 -5.91563-1.818q-13.63969 0-13.64606 18.01115 0 8.18574 3.45449 13.09526 3.45768 4.9143 10.19157 4.91589 8.91644 0 12.55719-8.73335l12.55082 6.36774a29.99 29.99 0 0 1 -26.74451 16.01168q-13.64448 0-22.01646-8.3704-8.36721-8.36721-8.36721-23.28364 0-14.55666 8.45954-23.10535 8.45795-8.5487 21.37969-8.55187 18.9265-.00953 27.11064 14.73178zm58.76469 0-13.46459 7.09685a13.99175 13.99175 0 0 0 -5.368-6.36774 12.37253 12.37253 0 0 0 -6.09393-1.818q-13.64446 0-13.64924 18.01115 0 8.18574 3.45767 13.09526 3.45291 4.9143 10.19157 4.91589 8.90688 0 12.54764-8.73335l12.73548 6.36774a31.27658 31.27658 0 0 1 -11.27409 11.73575 29.39766 29.39766 0 0 1 -15.46405 4.27593q-13.83072 0-22.09923-8.3704-8.2908-8.36721-8.28444-23.28364 0-14.55666 8.46273-23.10535 8.45319-8.5487 21.37333-8.55187 18.92171-.00953 26.92915 14.73178z" fill="#6c63ff" transform="translate(-86 -150.5013)"/><path d="m839.41688 660.83685c0 48.73748-67.93425 33.66253-151.11288 33.66253s-150.10359 15.075-150.10359-33.66253 67.925-59.33747 151.10359-59.33747 150.11288 10.59999 150.11288 59.33747z" opacity=".1" transform="translate(-86 -150.5013)"/><path d="m839.41688 648.83685c0 48.73748-67.93425 33.66253-151.11288 33.66253s-150.10359 15.075-150.10359-33.66253 67.925-59.33747 151.10359-59.33747 150.11288 10.59999 150.11288 59.33747z" fill="#3f3d56" transform="translate(-86 -150.5013)"/><path d="m825.54156 561.34329 3.43359 14.16355a.88462.88462 0 0 1 -.01719.478l-15.57547 48.67335a.88465.88465 0 0 1 -1.72156-.16974l-2.15469-18.96122a.88471.88471 0 0 1 .03787-.374l14.29657-43.87567a.88465.88465 0 0 1 1.70088.06573z" fill="#2f2e41" transform="translate(-86 -150.5013)"/><path d="m738.278 412.038 3.171 12.152-13.738 44.382-3.17-13.737z" fill="#f2f2f2"/><path d="m755.06392 628.58381c.52836 1.58507 54.949-.52835 55.47732-1.05671a11.4687 11.4687 0 0 0 1.16235-2.11342c.49669-1.05671.95107-2.11342.95107-2.11342l-2.11342-17.10815-53.89224-1.91265s-1.34734 14.49808-1.62209 21.13422a15.85321 15.85321 0 0 0 .03701 3.17013z" fill="#2f2e41" transform="translate(-86 -150.5013)"/><path d="m717.673 458.005 1.056 14.794h-23.776v-14.794z" opacity=".1"/><path d="m687.028 462.76.142-.028-.67 6.368h-13.209v-6.34z" opacity=".1"/><path d="m755.06392 628.58381c.52836 1.58507 54.949-.52835 55.47732-1.05671a11.4687 11.4687 0 0 0 1.16235-2.11342h-56.67669a15.85321 15.85321 0 0 0 .03702 3.17013z" opacity=".1" transform="translate(-86 -150.5013)"/><path d="m671.05541 573.10649h14.79395l36.45652-14.26559s25.88942-10.56711 23.776 9.5104-5.81188 47.02363-5.81188 47.02363-11.62382-5.28356-17.96409-3.69849-2.11342-32.22968-2.11342-32.22968-51.77883 24.8327-56.534 21.66257-5.81191-25.36106-5.81191-25.36106z" fill="#2f2e41" transform="translate(-86 -150.5013)"/><path d="m671.05541 573.10649h14.79395l36.45652-14.26559s25.88942-10.56711 23.776 9.5104-5.81188 47.02363-5.81188 47.02363-11.62382-5.28356-17.96409-3.69849-2.11342-32.22968-2.11342-32.22968-51.77883 24.8327-56.534 21.66257-5.81191-25.36106-5.81191-25.36106z" opacity=".1" transform="translate(-86 -150.5013)"/><path d="m694.36337 526.77716 17.90376 25.72347 41.74008 34.87146s38.56994 8.982 33.28639 15.32231-37.51323-6.34027-37.51323-6.34027-48.08037-34.87145-49.66537-37.51323-19.0208-27.47448-19.0208-27.47448z" fill="#a0616a" transform="translate(-86 -150.5013)"/><path d="m694.36337 526.77716 17.90376 25.72347 41.74008 34.87146s38.56994 8.982 33.28639 15.32231-37.51323-6.34027-37.51323-6.34027-48.08037-34.87145-49.66537-37.51323-19.0208-27.47448-19.0208-27.47448z" opacity=".1" transform="translate(-86 -150.5013)"/><circle cx="605.66127" cy="324.33109" fill="#a0616a" r="23.77599"/><g transform="translate(-86 -150.5013)"><path d="m690.0762 495.9666s-7.92533 13.73724-9.51039 21.13422-23.776-14.79395-23.776-14.79395l-2.90595-7.66115s20.87-9.77458 19.285-17.69991 16.90734 19.02079 16.90734 19.02079z" fill="#a0616a"/><path d="m683.73594 506.00536 11.62382 22.71928s-2.64178 11.09546-6.86862 12.15217-22.19093-13.73724-22.19093-13.73724z" fill="#d0cde1"/><path d="m694.30305 537.17833 21.66257 28.53119 51.77883 38.56994s37.51323 7.92534 29.05955 13.73724-32.758-5.28355-32.758-5.28355-52.30718-28.00284-63.40265-39.62666-31.70132-31.173-31.70132-31.173z" fill="#a0616a"/><path d="m665.2435 581.56018 6.34026 10.03875 37.83932-11.9045a29.75135 29.75135 0 0 1 24.7708 2.98851c6.60444 4.1608 10.83129 10.76524 1.32089 20.53981-19.0208 19.54915-31.70133 8.982-31.70133 8.982s-63.931 30.11625-74.49811 15.3223-11.09546-22.19093-11.09546-22.19093 40.68336-25.36101 47.02363-23.77594z" fill="#2f2e41"/><path d="m744.49681 616.43164s16.90737 11.09546-3.17013 16.379-34.87146-2.11343-34.87146-2.11343-17.43573 0-17.43573-8.982 5.81191-10.03875 5.81191-10.03875l17.96409 2.64178s21.66257-5.81193 31.70132 2.1134z" fill="#d0cde1"/><path d="m711.16583 468.8514a17.728 17.728 0 0 0 4.98235 1.78469 4.548 4.548 0 0 0 4.59533-1.96886 6.18073 6.18073 0 0 0 .522-2.7952c.06365-2.90132-.14619-6.03778-1.98475-8.28309-1.1701-1.429-2.87816-2.32977-4.08936-3.72406a17.59821 17.59821 0 0 1 -2.06717-3.37767c-2.35552-4.42406-5.84318-8.67589-10.69025-9.9513a23.18347 23.18347 0 0 0 -6.24-.47707l-12.20625.17221a21.25081 21.25081 0 0 0 -5.872.632c-3.92885 1.1879-6.78945 4.49179-9.40936 7.65139a47.85117 47.85117 0 0 0 -5.39639 7.44763 26.133 26.133 0 0 0 -3.09771 12.80437 11.97989 11.97989 0 0 0 .43881 3.38808 18.80129 18.80129 0 0 0 1.33168 2.925c2.28907 4.49613 3.64824 10.1121 1.07032 14.44908 4.47812-1.82926 8.90892-4.22774 11.863-8.05834 1.3215-1.71364 2.35787-3.7197 4.119-4.9772s4.63076-1.36658 5.76072.479a5.163 5.163 0 0 1 .58258 2.41835 11.084 11.084 0 0 0 .66762 4.08133 3.05833 3.05833 0 0 0 3.32224 1.8956c2.30039-.648 2.0801-4.17861 3.85194-5.78243 1.3456-1.218 3.42157-.98516 5.15028-1.53807a7.64334 7.64334 0 0 0 4.38653-4.32052c.65453-1.46807.64508-5.3098 1.88365-6.10481 1.55322-.99698 5.08545.58807 6.52519 1.22989z" fill="#2f2e41"/><path d="m651.99646 492.13947a6.27057 6.27057 0 0 1 3.26389.00831c3.39162.91054 10.99473 3.321 12.62493 6.989 2.11342 4.7552 9.51039 12.15217 9.51039 12.15217s10.03876 10.03875 7.92534 16.90737-10.03876 14.794-10.03876 14.794 2.11342 32.758-8.45368 41.21172-14.794 2.64178-14.794 10.56711-32.758 32.758-39.0983 17.43573c0 0 3.17014-28.5312 2.11343-38.56995-1.04144-9.89406.48322-71.62385 36.94676-81.49546z" fill="#d0cde1"/><path d="m668.942 505.477s32.22968 23.776 26.41777 33.81475c0 0-19.54915 9.5104-23.776 8.982s-20.60586-19.02079-24.8327-20.60586-6.34027-30.11622 22.19093-22.19089z" fill="#d0cde1"/><path d="m579.81065 526.78274c-5.01266 1.69284-9.5539 5.65228-10.58039 10.84253-.47582 2.40592-.18409 4.907-.58451 7.32661-.92865 5.61161-5.33358 9.89722-9.39638 13.878s-8.2584 8.60617-8.55492 14.28636c-.3247 6.22 4.1862 12.047 3.40563 18.22633-.90687 7.17909-8.48947 11.831-10.36389 18.82016-1.25164 4.667.28211 9.6942 2.8055 13.81484 4.80858 7.85231 13.0279 13.18323 21.78085 16.041s18.07506 3.45905 27.28222 3.55552c11.21079.11746 23.38277-.845 31.806-8.244a25.48043 25.48043 0 0 0 8.459-16.5882c.8002-8.57064-2.77695-17.42641-.30951-25.67311 1.55287-5.19 5.44709-9.93 4.86592-15.316-.56823-5.26625-5.16773-8.99907-8.32312-13.25346-2.9461-3.97222-4.7338-8.66319-6.48587-13.28794l-5.99481-15.82383c-1.17848-3.1107-2.47257-6.38232-5.09885-8.424-4.91665-3.8221-12.82242-3.07115-18.57152-2.28285-5.33345.7313-11.01234.3699-16.14135 2.10204z" fill="#2f2e41"/><path d="m581.68806 572.87747s2.65748 8.63681-17.27362 18.60236 1.99311 20.59548 1.99311 20.59548l23.25295 5.315s23.91732-3.32185 26.5748-7.30808 7.30808-17.27362 5.97934-19.26673a31.0614 31.0614 0 0 0 -3.32186-3.98622s-15.94488-2.65748-15.28051-9.96555-21.92421-3.98626-21.92421-3.98626z" fill="#ffb9b9"/><path d="m581.68806 572.87747s2.65748 8.63681-17.27362 18.60236 1.99311 20.59548 1.99311 20.59548l23.25295 5.315s23.91732-3.32185 26.5748-7.30808 7.30808-17.27362 5.97934-19.26673a31.0614 31.0614 0 0 0 -3.32186-3.98622s-15.94488-2.65748-15.28051-9.96555-21.92421-3.98626-21.92421-3.98626z" opacity=".1"/></g><circle cx="508.64328" cy="414.73592" fill="#ffb9b9" r="21.25984"/><path d="m592.318 610.08219s-25.60367-1.87245-26.08923-19.53858c0 0-9.12238-1.05689-11.77986 1.60059s-11.2943 4.65059-11.2943 11.29429 14.61615 26.57481 14.61615 26.57481 7.97244 26.5748 4.65059 31.22539-3.98622 16.60925-3.98622 16.60925 33.2185-2.65748 38.53346 0 26.57481 2.65748 27.90355 0-1.32874-35.876-1.32874-35.876 5.97933-7.97244 4.65059-17.27362l15.94486-18.60232s-5.97933-17.938-15.28051-17.938c0 0-12.623-3.32185-12.95522-1.66092s6.31152 20.26326-23.58512 23.58511z" fill="#ff6584" transform="translate(-86 -150.5013)"/><path d="m532.52467 668.54676s5.97933 9.30118 21.25985 11.29429 17.938-3.32185 16.60925-4.65059-17.27362-7.30807-17.27362-7.30807l-9.30119-7.30807z" fill="#ffb9b9" transform="translate(-86 -150.5013)"/><path d="m641.48137 660.57432-17.27362 9.96555s-22.58859-1.32874-13.95178 5.315 24.5817 3.98622 24.5817 3.98622l15.28051-7.30807z" fill="#ffb9b9" transform="translate(-86 -150.5013)"/><path d="m555.11326 677.84794s-15.94489 39.19784 3.32185 45.17717 72.41634 4.65059 84.375-3.32185 15.28051-18.60236 13.2874-21.92421-15.28051-12.623-24.58169-13.2874-76.40256-6.64371-76.40256-6.64371z" fill="#2f2e41" transform="translate(-86 -150.5013)"/><path d="m555.11326 677.84794s-15.94489 39.19784 3.32185 45.17717 72.41634 4.65059 84.375-3.32185 15.28051-18.60236 13.2874-21.92421-15.28051-12.623-24.58169-13.2874-76.40256-6.64371-76.40256-6.64371z" opacity=".05" transform="translate(-86 -150.5013)"/><path d="m630.37766 680.28318s56.28087-20.37323 55.6165 4.20847-35.876 31.22539-35.876 31.22539l-10.62992 1.32874-58.46457 1.99311s1.99311-10.62992-2.65748-11.95866c0 0 15.28051-3.98622 15.94488-4.65059s38.53347-13.95177 41.19095-14.61614 10.62992-5.97934 16.60925-5.315c0 0 6.6437-5.315 13.95177-3.98622l-20.59547 1.32874z" fill="#2f2e41" transform="translate(-86 -150.5013)"/><path d="m630.37766 680.28318s56.28087-20.37323 55.6165 4.20847-35.876 31.22539-35.876 31.22539l-10.62992 1.32874-58.46457 1.99311s1.99311-10.62992-2.65748-11.95866c0 0 15.28051-3.98622 15.94488-4.65059s38.53347-13.95177 41.19095-14.61614 10.62992-5.97934 16.60925-5.315c0 0 6.6437-5.315 13.95177-3.98622l-20.59547 1.32874z" opacity=".1" transform="translate(-86 -150.5013)"/><path d="m534.434 533.081 7.096 16.19 43.184-15.281 3.322-8.636-11.295-1.994-22.706 3.987-9.848 2.657z" fill="#2f2e41"/><path d="m534.434 533.081 7.096 16.19 43.184-15.281 3.322-8.636-11.295-1.994-22.706 3.987-9.848 2.657z" opacity=".1"/><path d="m528.53845 703.094s12.623 15.94488 27.23918 19.9311 22.58858-1.32874 22.58858-1.32874l-4.65059-18.60236-1.99311-11.95866-8.63681-5.97934-17.27363-7.97245-20.59547-6.6437s-8.63681-1.32874-8.63681 0 7.97244 21.25985 7.97244 21.25985z" fill="#2f2e41" transform="translate(-86 -150.5013)"/><path d="m543.819 711.73082s2.65748 19.26673 5.97934 20.59547 13.2874-1.32874 15.94488-2.65748 11.69054-7.45919 11.69054-7.45919-31.62169-11.80754-33.61476-10.4788z" fill="#f2f2f2" transform="translate(-86 -150.5013)"/><path d="m518.277 563.223 12.623 1.993-1.329 15.28-17.607-4.276z" fill="#ffb9b9"/><path d="m612.18567 717.97655s-5.91592 7.04167.06341 11.02789l3.98622 3.32185s13.28741 2.65748 14.61615 3.98622 6.6437-1.99311 6.6437-1.99311.66437-19.9311 0-21.25984-8.63681-2.65748-9.30118-1.32874-8.63682 3.32185-13.28741 1.99311z" fill="#f2f2f2" transform="translate(-86 -150.5013)"/><path d="m559.09948 682.49853s-46.50591-27.23917-53.814-17.27362-15.28051 23.91733 5.97933 34.54725 87.69685 32.55413 87.69685 32.55413 9.96555-15.28051 9.96555-19.26673c0 0-35.21161-15.94488-41.19094-17.27362s-29.89666-16.60926-33.21851-17.938-7.97244-5.315-7.97244-5.315z" fill="#2f2e41" transform="translate(-86 -150.5013)"/><path d="m545.81207 600.11664-2.65748 1.99311s-5.97933 15.28052-6.6437 23.91733-8.63681 35.21161-7.97244 38.53346 1.32874 5.97933 5.315 9.30118c0 0 5.315-11.95866 14.61615-9.96555l11.29429-41.19094z" fill="#ff6584" transform="translate(-86 -150.5013)"/><path d="m638.82389 600.11664 5.315 5.97933s3.32185 7.97245 3.32185 9.96556 6.6437 31.22539 7.30807 32.55413 3.32185 17.938 0 21.92421-9.30118 6.6437-9.30118 6.6437 3.98622-13.95177-8.63681-14.61614l1.32874-5.315-11.95866-39.8622z" fill="#ff6584" transform="translate(-86 -150.5013)"/><path d="m547.14082 645.85762v34.9949a8.41342 8.41342 0 0 0 8.2888 8.41251l73.18511 1.08423a8.41344 8.41344 0 0 0 8.53185-8.08916l1.34611-34.999a8.41344 8.41344 0 0 0 -8.28529-8.73591l-74.53123-1.08016a8.41342 8.41342 0 0 0 -8.53535 8.41259z" fill="#3f3d56" transform="translate(-86 -150.5013)"/><ellipse cx="509.89011" cy="401.732" fill="#2f2e41" rx="22.88412" ry="12.32222"/><circle cx="505.9858" cy="513.72706" fill="#f2f2f2" r="5.31496"/></svg>
|
@@ -25,6 +25,12 @@ order_by: manually
|
|
25
25
|
# Array of emails to be notified of new entries made with the public API
|
26
26
|
# public_submission_accounts: ['john@example.com']
|
27
27
|
|
28
|
+
# Add the files attached to the form to the notification email
|
29
|
+
# public_submission_email_attachments: false
|
30
|
+
|
31
|
+
# Set the title of the notification email
|
32
|
+
# public_submission_title_template: "{{ entry.name }} wants to reach you"
|
33
|
+
|
28
34
|
# we recommend to require Google Recaptcha when submitting the form
|
29
35
|
# if the public submission attribute is enabled in order to prevent spams
|
30
36
|
# recaptcha_required: true
|
@@ -1,89 +1,93 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
2
|
+
# Name of the section displayed in the editor UI
|
3
|
+
# (only if keep_name is set to true)
|
4
|
+
name: <%= config[:name] %>
|
5
|
+
|
6
|
+
# By default, the first text type setting will be used as
|
7
|
+
# the name of the section in the editor UI.
|
8
|
+
# To keep the name of the section instead, uncomment the following line.
|
9
|
+
# keep_name: true
|
10
|
+
|
11
|
+
# Icon of the section in the editor UI
|
12
|
+
# Values: <%= config[:all_icons].join(', ') %>
|
13
|
+
icon: <%= config[:icon] || 'image_text' %>
|
14
|
+
|
15
|
+
# By default, the first image_picker type setting will be used
|
16
|
+
# as the icon of the section in the editor UI.
|
17
|
+
# To keep the icon of the section instead, uncomment the following line.
|
18
|
+
# keep_icon: true
|
19
|
+
|
20
|
+
# Definition of the settings:
|
21
|
+
settings:
|
22
|
+
- label: "My awesome title"
|
23
|
+
id: title
|
24
|
+
type: text
|
25
|
+
<% if config[:global] -%>default: "Hello world"<% end %>
|
26
|
+
- label: "An image"
|
27
|
+
id: image
|
28
|
+
type: image_picker
|
29
|
+
<% if config[:global] -%>default: "/samples/images/default.svg"<% end %>
|
30
|
+
|
31
|
+
# Definition of the blocks.
|
32
|
+
# You can define as many types of blocks you want.
|
33
|
+
blocks:
|
34
|
+
- name: List item
|
35
|
+
type: list_item
|
36
|
+
settings:
|
37
|
+
- label: "Item title"
|
38
|
+
id: title
|
39
|
+
type: text
|
40
|
+
default: "my title"
|
41
|
+
- label: "Item image"
|
42
|
+
id: image
|
43
|
+
type: image_picker
|
44
|
+
default: "/samples/images/default.svg"
|
45
|
+
|
46
|
+
# By default, in the editor UI, blocks will be listed below the "Content" title.
|
47
|
+
# The title can be changed with the following property:
|
48
|
+
# blocks_label: "My list of items"
|
49
|
+
|
50
|
+
<% if config[:global] -%>
|
51
|
+
# Content of the global section. This content will be used in all the pages
|
52
|
+
# referencing this section.
|
53
|
+
default:
|
54
|
+
settings:
|
55
|
+
title: "Hello world"
|
56
|
+
image: "/samples/images/default.png"
|
57
|
+
blocks:
|
58
|
+
- type: list_item
|
59
|
+
settings:
|
60
|
+
title: "Item #1"
|
61
|
+
image: "/samples/images/default.png"
|
62
|
+
- type: list_item
|
63
|
+
settings:
|
64
|
+
title: "Item #2"
|
65
|
+
image: "/samples/images/default.png"
|
66
|
+
- type: list_item
|
67
|
+
settings:
|
68
|
+
title: "Item #3"
|
69
|
+
image: "/samples/images/default.png"
|
70
|
+
<% else -%>
|
71
|
+
# Presets can be seen as different versions of a same section.
|
72
|
+
# Useless if the section is not aimed tobe used along with section_dropzone liquid tag
|
73
|
+
presets:
|
74
|
+
- name: "<%= config[:name] %>"
|
75
|
+
category: "Category"
|
76
|
+
settings:
|
77
|
+
title: "Hello world"
|
78
|
+
blocks:
|
79
|
+
- type: list_item
|
80
|
+
settings:
|
81
|
+
title: "Item #1"
|
82
|
+
- type: list_item
|
83
|
+
settings:
|
84
|
+
title: "Item #2"
|
85
|
+
<% end %>
|
82
86
|
---
|
83
87
|
{% comment %}
|
84
|
-
Above is the
|
85
|
-
The setting's type can be one of the following values
|
86
|
-
Modify it to match your needs.
|
88
|
+
Above is the YAML definition of your section filled with random settings and blocks.
|
89
|
+
The setting's type can be one of the following values: checkbox, image_picker, index, radio, text, select, url.
|
90
|
+
Modify it to match your needs. Please visit: https://doc.locomotivecms.com/v4.0/docs/json-definition.
|
87
91
|
|
88
92
|
<% if config[:global] -%>
|
89
93
|
To use your global section, just add the following code in your layout template:
|
@@ -91,7 +95,7 @@ To use your global section, just add the following code in your layout template:
|
|
91
95
|
{% global_section <%= config[:type] %> %}
|
92
96
|
|
93
97
|
<% else -%>
|
94
|
-
To use your section, 2
|
98
|
+
To use your section, 2 possibilities:
|
95
99
|
|
96
100
|
1. within a dropzone
|
97
101
|
|
@@ -103,35 +107,20 @@ If you want to test this section in your Wagon site, add the following
|
|
103
107
|
lines in the YAML section of any page including the {% sections_dropzone %}
|
104
108
|
(or inheriting from a layout including it):
|
105
109
|
|
106
|
-
sections_dropzone_content:
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
"
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
{
|
121
|
-
"type": "list_item",
|
122
|
-
"settings": {
|
123
|
-
"title": "Item #2"
|
124
|
-
}
|
125
|
-
},
|
126
|
-
{
|
127
|
-
"type": "list_item",
|
128
|
-
"settings": {
|
129
|
-
"title": "Item #3"
|
130
|
-
}
|
131
|
-
}
|
132
|
-
]
|
133
|
-
}
|
134
|
-
]
|
110
|
+
sections_dropzone_content:
|
111
|
+
- type: "<%= config[:type] %>"
|
112
|
+
settings:
|
113
|
+
title: "My awesome section"
|
114
|
+
blocks:
|
115
|
+
- type: list_item
|
116
|
+
settings:
|
117
|
+
title: "Item #1"
|
118
|
+
- type: list_item
|
119
|
+
settings:
|
120
|
+
title: "Item #2"
|
121
|
+
- type: list_item
|
122
|
+
settings:
|
123
|
+
title: "Item #3"
|
135
124
|
|
136
125
|
2. as stand-alone section
|
137
126
|
|
@@ -140,38 +129,24 @@ sections_dropzone_content: >
|
|
140
129
|
If you want to test this section in your Wagon site, add the following
|
141
130
|
lines in the YAML section of the page including the statement above or complete it.
|
142
131
|
|
143
|
-
sections_content:
|
144
|
-
|
145
|
-
|
146
|
-
"
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
"type": "list_item",
|
158
|
-
"settings": {
|
159
|
-
"title": "Item #2"
|
160
|
-
}
|
161
|
-
},
|
162
|
-
{
|
163
|
-
"type": "list_item",
|
164
|
-
"settings": {
|
165
|
-
"title": "Item #3"
|
166
|
-
}
|
167
|
-
}
|
168
|
-
]
|
169
|
-
}
|
170
|
-
}
|
132
|
+
sections_content:
|
133
|
+
<%= config[:type] %>:
|
134
|
+
settings:
|
135
|
+
title: "My awesome <%= config[:type].humanize %> section"
|
136
|
+
blocks:
|
137
|
+
- type: "list_item"
|
138
|
+
settings:
|
139
|
+
title: "Item #1"
|
140
|
+
- type: "list_item"
|
141
|
+
settings:
|
142
|
+
title: "Item #2"
|
143
|
+
- type: "list_item"
|
144
|
+
settings:
|
145
|
+
title: "Item #3"
|
171
146
|
|
172
147
|
<% end -%>
|
173
148
|
{% endcomment %}
|
174
|
-
<div>
|
149
|
+
<div id="{{ section.anchor_id }}" class="<%= config[:type].dasherize %>-section" {{ section.locomotive_attributes }}>
|
175
150
|
<h2>{{ section.settings.title }}</h2>
|
176
151
|
<ul>
|
177
152
|
{% for block in section.blocks %}
|