Skip to content

Commit 1be1a9e

Browse files
committed
Merge branch 'craft-3' of https://github.com/verbb/field-manager into craft-4
# Conflicts: # CHANGELOG.md # composer.json # src/controllers/BaseController.php # src/services/Audit.php # src/twigextensions/Extension.php
2 parents 4604892 + 172ca27 commit 1be1a9e

4 files changed

Lines changed: 50 additions & 52 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
- Now requires Craft `4.0.0+`.
1111
- Rename base plugin methods.
1212

13+
## 2.2.5 - 2021-07-10
14+
15+
### Changed
16+
- Revamp Neo import/export handling to support field layout elements.
17+
18+
### Fixed
19+
- Improve `displayName` twig function.
20+
- Fix an error when exporting Neo fields with child blocks configured.
21+
1322
## 2.2.4 - 2021-06-30
1423

1524
### Fixed

config.codekit3

Lines changed: 35 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"uuidString" : "ECE3F09A-2816-43C6-9715-3F4A30BD28C5"
88
}
99
],
10-
"creatorBuild" : "34335",
10+
"creatorBuild" : "34365",
1111
"files" : {
1212
"\/.github\/FUNDING.yml" : {
1313
"cB" : 0,
@@ -419,6 +419,14 @@
419419
"oAP" : "\/src\/templates",
420420
"oF" : 0
421421
},
422+
"\/src\/translations\/en\/field-manager.php" : {
423+
"cB" : 0,
424+
"ft" : 8192,
425+
"hM" : 0,
426+
"oA" : 2,
427+
"oAP" : "\/src\/translations\/en\/field-manager.php",
428+
"oF" : 0
429+
},
422430
"\/src\/twigextensions\/Extension.php" : {
423431
"cB" : 0,
424432
"ft" : 8192,
@@ -444,8 +452,8 @@
444452
"creationDate" : 528723773,
445453
"displayValue" : "field-manager",
446454
"displayValueWasSetByUser" : 0,
447-
"iconImageName" : "meme-ariel",
448-
"iconImageWasSetByUser" : 0
455+
"iconImageName" : "brackets-koamaru",
456+
"iconImageWasSetByUser" : 1
449457
},
450458
"projectSettings" : {
451459
"abortBuildOnError" : 1,
@@ -795,10 +803,6 @@
795803
"active" : 0,
796804
"optionString" : "'1tbs', {'allowSingleLine': true}"
797805
},
798-
"callback-return" : {
799-
"active" : 0,
800-
"optionString" : "['callback', 'cb', 'next']"
801-
},
802806
"camelcase" : {
803807
"active" : 0,
804808
"optionString" : "{'properties': 'always'}"
@@ -890,6 +894,10 @@
890894
"active" : 0,
891895
"optionString" : "'expression'"
892896
},
897+
"function-call-argument-newline" : {
898+
"active" : 0,
899+
"optionString" : "'always'"
900+
},
893901
"function-paren-newline" : {
894902
"active" : 0,
895903
"optionString" : "'multiline'"
@@ -902,21 +910,14 @@
902910
"active" : 0,
903911
"optionString" : "{'allowImplicit': false}"
904912
},
905-
"global-require" : {
906-
"active" : 0
907-
},
908913
"grouped-accessor-pairs" : {
909914
"active" : 0,
910915
"optionString" : "'anyOrder'"
911916
},
912917
"guard-for-in" : {
913918
"active" : 0
914919
},
915-
"handle-callback-err" : {
916-
"active" : 0,
917-
"optionString" : "'err'"
918-
},
919-
"id-blacklist" : {
920+
"id-denylist" : {
920921
"active" : 0,
921922
"optionString" : "'data', 'err', 'e', 'cb', 'callback'"
922923
},
@@ -1040,9 +1041,6 @@
10401041
"active" : 0,
10411042
"optionString" : "{'allow': ['~'], 'int32Hint': true}"
10421043
},
1043-
"no-buffer-constructor" : {
1044-
"active" : 0
1045-
},
10461044
"no-caller" : {
10471045
"active" : 0
10481046
},
@@ -1070,6 +1068,9 @@
10701068
"no-const-assign" : {
10711069
"active" : 1
10721070
},
1071+
"no-constant-binary-expression" : {
1072+
"active" : 0
1073+
},
10731074
"no-constant-condition" : {
10741075
"active" : 1,
10751076
"optionString" : "{'checkLoops': true}"
@@ -1104,6 +1105,9 @@
11041105
"no-dupe-keys" : {
11051106
"active" : 1
11061107
},
1108+
"no-duplicate-case" : {
1109+
"active" : 1
1110+
},
11071111
"no-duplicate-imports" : {
11081112
"active" : 0,
11091113
"optionString" : "{'includeExports': false}"
@@ -1145,7 +1149,7 @@
11451149
"no-extra-boolean-cast" : {
11461150
"active" : 1
11471151
},
1148-
"no-extra-labels" : {
1152+
"no-extra-label" : {
11491153
"active" : 0
11501154
},
11511155
"no-extra-parens" : {
@@ -1233,10 +1237,6 @@
12331237
"active" : 0,
12341238
"optionString" : "{'groups': [['+', '-', '*', '\/', '%', '**'], ['&', '|', '^', '~', '<<', '>>', '>>>'], ['==', '!=', '===', '!==', '>', '>=', '<', '<='], ['&&', '||'], ['in', 'instanceof']], 'allowSamePrecedence': true}"
12351239
},
1236-
"no-mixed-requires" : {
1237-
"active" : 0,
1238-
"optionString" : "{'grouping': false, 'allowCall': false }"
1239-
},
12401240
"no-mixed-spaces-and-tabs" : {
12411241
"active" : 0,
12421242
"optionString" : ""
@@ -1271,9 +1271,6 @@
12711271
"no-new-object" : {
12721272
"active" : 0
12731273
},
1274-
"no-new-require" : {
1275-
"active" : 0
1276-
},
12771274
"no-new-symbol" : {
12781275
"active" : 1
12791276
},
@@ -1296,19 +1293,10 @@
12961293
"active" : 0,
12971294
"optionString" : "{'props': false}"
12981295
},
1299-
"no-path-concat" : {
1300-
"active" : 0
1301-
},
13021296
"no-plusplus" : {
13031297
"active" : 0,
13041298
"optionString" : "{'allowForLoopAfterthoughts': false}"
13051299
},
1306-
"no-process-env" : {
1307-
"active" : 0
1308-
},
1309-
"no-process-exit" : {
1310-
"active" : 0
1311-
},
13121300
"no-promise-executor-return" : {
13131301
"active" : 0
13141302
},
@@ -1336,10 +1324,6 @@
13361324
"no-restricted-imports" : {
13371325
"active" : 0
13381326
},
1339-
"no-restricted-modules" : {
1340-
"active" : 0,
1341-
"optionString" : ""
1342-
},
13431327
"no-restricted-properties" : {
13441328
"active" : 0,
13451329
"optionString" : "[{'object': 'disallowedObjectName', 'property': 'disallowedPropertyName'}, {'object': 'disallowedObjectName', 'property': 'anotherDisallowedPropertyName', 'message': 'Please use allowedObjectName.allowedPropertyName.'}]"
@@ -1382,10 +1366,6 @@
13821366
"no-sparse-arrays" : {
13831367
"active" : 1
13841368
},
1385-
"no-sync" : {
1386-
"active" : 0,
1387-
"optionString" : "{'allowAtRootLevel': false}"
1388-
},
13891369
"no-tabs" : {
13901370
"active" : 0,
13911371
"optionString" : ""
@@ -1617,10 +1597,6 @@
16171597
"require-await" : {
16181598
"active" : 0
16191599
},
1620-
"require-jsdoc" : {
1621-
"active" : 0,
1622-
"optionString" : "{'require': {'FunctionDeclaration': true, 'MethodDefinition': false, 'ClassDeclaration': false, 'ArrowFunctionExpression': false}}"
1623-
},
16241600
"require-unicode-regexp" : {
16251601
"active" : 0
16261602
},
@@ -1706,10 +1682,6 @@
17061682
"active" : 1,
17071683
"optionString" : ""
17081684
},
1709-
"valid-jsdoc" : {
1710-
"active" : 0,
1711-
"optionString" : "{'prefer': {'return': 'returns'}, 'requireReturn': true, 'requireReturnDescription': true, 'requireReturnType': true, 'requireParamDescription': true}"
1712-
},
17131685
"valid-typeof" : {
17141686
"active" : 1,
17151687
"optionString" : "{'requireStringLiterals': true}"
@@ -2210,6 +2182,10 @@
22102182
"active" : 0,
22112183
"flagValue" : -1
22122184
},
2185+
"keep_numbers" : {
2186+
"active" : 0,
2187+
"flagValue" : -1
2188+
},
22132189
"keep_quoted_props" : {
22142190
"active" : 0,
22152191
"flagValue" : -1
@@ -2234,6 +2210,10 @@
22342210
"active" : 1,
22352211
"flagValue" : 1
22362212
},
2213+
"preserve_annotations" : {
2214+
"active" : 0,
2215+
"flagValue" : -1
2216+
},
22372217
"properties" : {
22382218
"active" : 1,
22392219
"flagValue" : -1
@@ -2338,6 +2318,10 @@
23382318
"active" : 0,
23392319
"flagValue" : -1
23402320
},
2321+
"wrap_func_args" : {
2322+
"active" : 1,
2323+
"flagValue" : -1
2324+
},
23412325
"wrap_iife" : {
23422326
"active" : 0,
23432327
"flagValue" : -1

src/controllers/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,4 @@ public function actionImport(): ?Response
349349

350350
return null;
351351
}
352-
}
352+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
return [
4+
5+
];

0 commit comments

Comments
 (0)