-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1414 from dpc-sdp/release/2.23.0
Release/2.23.0
- Loading branch information
Showing
101 changed files
with
2,791 additions
and
528 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
examples/nuxt-app/layers/example-data-driven-component/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## About this layer | ||
|
||
An example of setting up a data driven component for testing purposes | ||
|
||
Data driven components can be registered in the Nuxt `app.config` file: | ||
|
||
```ts | ||
export default defineAppConfig({ | ||
ripple: { | ||
dataDrivenComponents: { | ||
// add key of field_data_driven_component and value of component name to render | ||
// eg: find_a_council_map: 'VicCouncilLookup' | ||
example_ddc: 'ExampleDDC' | ||
} | ||
} | ||
}) | ||
``` | ||
|
||
Note that the vue component (e.g. ExampleDDC) must be declared globally for this to work, see https://nuxt.com/docs/guide/directory-structure/components. |
12 changes: 12 additions & 0 deletions
12
examples/nuxt-app/layers/example-data-driven-component/app.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default defineAppConfig({ | ||
ripple: { | ||
featureFlags: { | ||
contentCollectionSearchConnector: 'elasticsearch' | ||
}, | ||
dataDrivenComponents: { | ||
// add key of field_data_driven_component and value of component name to render | ||
// eg: find_a_council_map: 'VicCouncilLookup' | ||
example_ddc: 'ExampleDDC' | ||
} | ||
} | ||
}) |
15 changes: 15 additions & 0 deletions
15
examples/nuxt-app/layers/example-data-driven-component/components/global/ExampleDDC.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<h3>{{ title }}</h3> | ||
<div v-html="description" /> | ||
<p>{{ testCustomProp }}</p> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
interface Props { | ||
title: string | ||
description: string | ||
testCustomProp: string | ||
} | ||
defineProps<Props>() | ||
</script> |
3 changes: 3 additions & 0 deletions
3
examples/nuxt-app/layers/example-data-driven-component/nuxt.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { defineNuxtConfig } from 'nuxt/config' | ||
|
||
export default defineNuxtConfig({}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.