Skip to content

Commit

Permalink
use json-jcr
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed May 22, 2024
1 parent feee03e commit 5d37121
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/site/markdown/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Form checkbox for boolean data.

```json
```json-jcr
"field": {
"sling:resourceType": "wcm-io/wcm/ui/granite/components/form/checkbox",
"name": "./field",
Expand All @@ -24,7 +24,7 @@ Enhancements over AEM version:

Number field for long value.

```json
```json-jcr
"field": {
"sling:resourceType": "wcm-io/wcm/ui/granite/components/form/numberfield",
"name": "./field",
Expand All @@ -41,7 +41,7 @@ Enhancements over AEM version:

Form field for date/time value.

```json
```json-jcr
"field": {
"sling:resourceType": "wcm-io/wcm/ui/granite/components/form/datepicker",
"displayedFormat": "DD.MM.YYYY HH:mm",
Expand All @@ -60,7 +60,7 @@ Enhancements over AEM version:

Select form field.

```json
```json-jcr
"field": {
"sling:resourceType": "wcm-io/wcm/ui/granite/components/form/select",
"name": "./field",
Expand All @@ -80,7 +80,7 @@ Enhancements over AEM version:

A field that allows the user to enter path. This path field can be used for both picking page paths or asset paths.

```json
```json-jcr
"field": {
"sling:resourceType": "wcm-io/wcm/ui/granite/components/form/pathfield",
"name": "./field",
Expand All @@ -107,7 +107,7 @@ This is a customized Path Field/Browser that always sets the root path to the in
Requires proper configuration of Apache Sling Context-Aware configuration, see also [wcm.io Context-Aware Configuration][wcmio-caconfig].


```json
```json-jcr
"field": {
"sling:resourceType": "wcm-io/wcm/ui/granite/components/form/configScopePathBrowser",
"name": "./field",
Expand Down
2 changes: 1 addition & 1 deletion src/site/markdown/showhide.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This works the same as the AEM built-in `cq-dialog-dropdown-showhide` feature, b

### Example

```json
```json-jcr
{
"sling:resourceType": "granite/ui/components/coral/foundation/container",
"items": {
Expand Down
8 changes: 4 additions & 4 deletions src/site/markdown/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Collection of CoralUI 3 validators.

Validates a string against a predefined E-Mail pattern.

```json
```json-jcr
"email": {
"sling:resourceType": "granite/ui/components/coral/foundation/form/textfield",
"name": "./email",
Expand All @@ -24,7 +24,7 @@ Examples for matching values:

Validates a string against a predefined URL pattern.

```json
```json-jcr
"url": {
"sling:resourceType": "granite/ui/components/coral/foundation/form/textfield",
"name": "./url",
Expand All @@ -46,7 +46,7 @@ Examples for matching values:

Validates a string against a predefined content path pattern.

```json
```json-jcr
"url": {
"sling:resourceType": "granite/ui/components/coral/foundation/form/textfield",
"name": "./path",
Expand All @@ -65,7 +65,7 @@ Examples for matching values:

Validates a string against a custom regex pattern. A custom validation message can be provided as well.

```json
```json-jcr
"hex": {
"sling:resourceType": "granite/ui/components/coral/foundation/form/textfield",
"name": "./hex",
Expand Down
3 changes: 2 additions & 1 deletion src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 https://maven.apache.org/xsd/decoration-1.8.0.xsd">

<!-- temporarily define skin version directly and use local scripts -->
<skin>
<groupId>io.wcm.maven.skins</groupId>
<artifactId>reflow-maven-skin</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>1.2.0-SNAPSHOT</version>
</skin>
<custom>
<reflowSkin>
Expand Down

0 comments on commit 5d37121

Please sign in to comment.