Skip to content

Commit 4f00a59

Browse files
committed
refactor indent
1 parent 219ab2b commit 4f00a59

File tree

5 files changed

+70
-65
lines changed

5 files changed

+70
-65
lines changed

src/DeepThought/youtube.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
CMS.registerEditorComponent({
22
id: "youtube",
33
label: "YouTube",
4-
fields: [{
5-
name: "id",
6-
label: "the video id (mandatory)",
7-
widget: "string"
8-
},
4+
fields: [
5+
{
6+
name: "id",
7+
label: "the video id (mandatory)",
8+
widget: "string"
9+
},
910
],
1011
pattern: /{{ youtube\(id="([a-zA-Z0-9]+)"\) }}/,
1112
fromBlock: function(match) {

src/built-in/gist.js

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
CMS.registerEditorComponent({
22
id: "gist",
33
label: "Gist",
4-
fields: [{
5-
name: "username",
6-
label: "Github Username (mandatory)",
7-
widget: "string"
8-
},
9-
{
10-
name: "gid",
11-
label: "Gist ID (mandatory)",
12-
widget: "string"
13-
},
14-
{
15-
name: "file",
16-
label: "by default, the shortcode will pull every file from the URL unless a specific filename is requested (optional)",
17-
widget: "string"
18-
},
19-
{
20-
name: "class",
21-
label: "a class to add to the <div> surrounding the iframe (optional)",
22-
widget: "string"
23-
},
4+
fields: [
5+
{
6+
name: "username",
7+
label: "Github Username (mandatory)",
8+
widget: "string"
9+
},
10+
{
11+
name: "gid",
12+
label: "Gist ID (mandatory)",
13+
widget: "string"
14+
},
15+
{
16+
name: "file",
17+
label: "by default, the shortcode will pull every file from the URL unless a specific filename is requested (optional)",
18+
widget: "string"
19+
},
20+
{
21+
name: "class",
22+
label: "a class to add to the <div> surrounding the iframe (optional)",
23+
widget: "string"
24+
},
2425
],
2526
pattern: /{{ gist\(url="https:\/\/gist\.github\.com\/([-a-zA-Z0-9]+)\/([a-zA-Z0-9]+)"(, file="([-_.a-zA-Z0-9]+)")?(, class="([a-zA-Z][-_.:a-zA-Z0-9 ]*)")?\) }}/,
2627
fromBlock: function(match) {

src/built-in/streamable.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
CMS.registerEditorComponent({
22
id: "streamable",
33
label: "Streamable",
4-
fields: [{
5-
name: "id",
6-
label: "the video id (mandatory)",
7-
widget: "string"
8-
},
9-
{
10-
name: "class",
11-
label: "a class to add to the <div> surrounding the iframe (optional)",
12-
widget: "string"
13-
},
4+
fields: [
5+
{
6+
name: "id",
7+
label: "the video id (mandatory)",
8+
widget: "string"
9+
},
10+
{
11+
name: "class",
12+
label: "a class to add to the <div> surrounding the iframe (optional)",
13+
widget: "string"
14+
},
1415
],
1516
pattern: /{{ streamable\(id="([a-zA-Z0-9]+)"(, class="([a-zA-Z][-_.:a-zA-Z0-9 ]*)")?\) }}/,
1617
fromBlock: function(match) {

src/built-in/vimeo.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
CMS.registerEditorComponent({
22
id: "vimeo",
33
label: "Vimeo",
4-
fields: [{
5-
name: "id",
6-
label: "the video id (mandatory)",
7-
widget: "string"
8-
},
9-
{
10-
name: "class",
11-
label: "a class to add to the <div> surrounding the iframe (optional)",
12-
widget: "string"
13-
},
4+
fields: [
5+
{
6+
name: "id",
7+
label: "the video id (mandatory)",
8+
widget: "string"
9+
},
10+
{
11+
name: "class",
12+
label: "a class to add to the <div> surrounding the iframe (optional)",
13+
widget: "string"
14+
},
1415
],
1516
pattern: /{{ vimeo\(id="([0-9]+)"(, class="([a-zA-Z][-_.:a-zA-Z0-9 ]*)")?\) }}/,
1617
fromBlock: function(match) {

src/built-in/youtube.js

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
CMS.registerEditorComponent({
22
id: "youtube",
33
label: "YouTube",
4-
fields: [{
5-
name: "id",
6-
label: "the video id (mandatory)",
7-
widget: "string"
8-
},
9-
{
10-
name: "playlist",
11-
label: "the playlist id (optional)",
12-
widget: "string"
13-
},
14-
{
15-
name: "autoplay",
16-
label: "when set to \"true\", the video autoplays on load (optional)",
17-
widget: "boolean"
18-
},
19-
{
20-
name: "class",
21-
label: "a class to add to the <div> surrounding the iframe (optional)",
22-
widget: "string"
23-
},
4+
fields: [
5+
{
6+
name: "id",
7+
label: "the video id (mandatory)",
8+
widget: "string"
9+
},
10+
{
11+
name: "playlist",
12+
label: "the playlist id (optional)",
13+
widget: "string"
14+
},
15+
{
16+
name: "autoplay",
17+
label: "when set to \"true\", the video autoplays on load (optional)",
18+
widget: "boolean"
19+
},
20+
{
21+
name: "class",
22+
label: "a class to add to the <div> surrounding the iframe (optional)",
23+
widget: "string"
24+
},
2425
],
2526
pattern: /{{ youtube\(id="([-a-zA-Z0-9]+)"(, playlist="([a-zA-Z0-9]+)")?(, autoplay=(true|false))?(, class="([a-zA-Z][-_.:a-zA-Z0-9 ]*)")?\) }}/,
2627
fromBlock: function(match) {

0 commit comments

Comments
 (0)