Skip to content

Commit

Permalink
[F] Improve Color Tool entry type
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mason authored and alexgoff committed Oct 20, 2023
1 parent 0939b6e commit 9e9f6d2
Show file tree
Hide file tree
Showing 27 changed files with 640 additions and 198 deletions.
2 changes: 1 addition & 1 deletion api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
fieldLayouts:
0586394b-f8e5-46a8-bd2e-23feaca1a16f:
tabs:
-
elementCondition: null
elements:
-
autocapitalize: true
autocomplete: false
autocorrect: true
class: null
disabled: false
elementCondition: null
id: null
instructions: null
label: null
max: null
min: null
name: null
orientation: null
placeholder: null
readonly: false
requirable: false
size: null
step: null
tip: null
title: null
type: craft\fieldlayoutelements\entries\EntryTitleField
uid: eb9701e1-9d3f-4d7a-84e7-675a011619cc
userCondition: null
warning: null
width: 100
name: Content
uid: 2f0f0f49-c45e-40cd-b4e6-0e80e2e9050c
userCondition: null
handle: cameraFilterTool
hasTitleField: true
name: 'Camera Filter Tool'
section: 28704998-935a-423b-a405-d4ad8b38efa2 # Widgets
showStatusField: true
slugTranslationKeyFormat: null
slugTranslationMethod: site
sortOrder: 2
titleFormat: null
titleTranslationKeyFormat: null
titleTranslationMethod: site
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ fieldLayouts:
userCondition: null
warning: null
width: 100
-
elementCondition: null
fieldUid: 131ceffb-300f-415d-8cd5-a932d7529287 # Read Only
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 6b0bd076-9062-450b-9357-f1743ab4e476
userCondition: null
warning: null
width: 100
-
elementCondition: null
fieldUid: 6b8e1421-5b57-4c4d-bd1f-de5a2cd186e2 # Filter Color Options
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 7863dfab-bccb-4c82-a6b4-0e9e81788c19
userCondition: null
warning: null
width: 100
-
elementCondition: null
fieldUid: dfab6165-acc6-4a81-9d4a-50c69d1c1045 # Color Filter Tool Objects
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
columnSuffix: null
contentColumnType: string
fieldGroup: 074f7db9-8ff3-4016-ad34-bfe9c31d5543 # Pages
handle: widget
handle: cameraFilterTool
instructions: null
name: Widget
name: 'Camera Filter Tool'
searchable: false
settings:
allowSelfRelations: false
Expand All @@ -23,6 +23,24 @@ settings:
-
- class
- craft\elements\conditions\entries\EntryCondition
-
- conditionRules
-
-
__assoc__:
-
- class
- craft\elements\conditions\entries\TypeConditionRule
-
- uid
- ebeda67f-cc37-4231-9322-165bc0f04f3b
-
- operator
- in
-
- values
-
- 0e4edcac-f39e-4825-946b-7174494adb63 # Camera Filter Tool
selectionLabel: null
showSiteMenu: false
sources:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
columnSuffix: null
contentColumnType: string
fieldGroup: 074f7db9-8ff3-4016-ad34-bfe9c31d5543 # Pages
handle: colorFilterTool
instructions: null
name: 'Color Filter Tool'
searchable: false
settings:
allowSelfRelations: false
branchLimit: null
localizeRelations: false
maintainHierarchy: false
maxRelations: 1
minRelations: null
selectionCondition:
__assoc__:
-
- elementType
- craft\elements\Entry
-
- fieldContext
- global
-
- class
- craft\elements\conditions\entries\EntryCondition
-
- conditionRules
-
-
__assoc__:
-
- class
- craft\elements\conditions\entries\TypeConditionRule
-
- uid
- 9891719e-7f51-49b2-8e3c-ced246d3d975
-
- operator
- in
-
- values
-
- d2e48b83-d161-48b9-b0a9-5c21914b5931 # Color Filter Tool
selectionLabel: null
showSiteMenu: false
sources:
- 'section:28704998-935a-423b-a405-d4ad8b38efa2' # Widgets
targetSiteId: null
validateRelatedElements: false
viewMode: null
translationKeyFormat: null
translationMethod: site
type: craft\fields\Entries
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
columnSuffix: xfhgcdim
contentColumnType: integer(10)
fieldGroup: a21a42b0-7211-4d77-9071-47a06960fef4 # Widgets
handle: colorToolDefaultValue
instructions: null
name: 'Default Value'
searchable: false
settings:
decimals: 0
defaultValue: 1
max: null
min: 0
prefix: null
previewCurrency: null
previewFormat: decimal
size: null
suffix: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
columnSuffix: rgykzmpe
contentColumnType: 'decimal(11,1)'
fieldGroup: a21a42b0-7211-4d77-9071-47a06960fef4 # Widgets
handle: colorToolMax
instructions: null
name: Max
searchable: false
settings:
decimals: 1
defaultValue: 1.5
max: null
min: 0
prefix: null
previewCurrency: null
previewFormat: decimal
size: null
suffix: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
columnSuffix: jjjgwxnw
contentColumnType: 'decimal(11,1)'
fieldGroup: a21a42b0-7211-4d77-9071-47a06960fef4 # Widgets
handle: colorToolMin
instructions: null
name: Min
searchable: false
settings:
decimals: 1
defaultValue: 0.5
max: null
min: 0
prefix: null
previewCurrency: null
previewFormat: decimal
size: null
suffix: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number

This file was deleted.

Loading

0 comments on commit 9e9f6d2

Please sign in to comment.