-
DruxtEntityForm example:
-
-
Contact form - Basic
-
<DruxtEntityForm type="contact_message--feedback" />
+
+
+ @TODO - Login UI
+
-
- {{ JSON.stringify(response, null, ' ') }}
-
+
+
+
+
-
+
+
+
diff --git a/examples/entity-form/store/index.js b/examples/entity-form/store/index.js
new file mode 100644
index 000000000..eec9db258
--- /dev/null
+++ b/examples/entity-form/store/index.js
@@ -0,0 +1,13 @@
+export const state = () => ({
+ entity: undefined,
+})
+
+export const mutations = {
+ clearEntity(state) {
+ state.entity = undefined
+ },
+
+ setEntity(state, entity) {
+ state.entity = entity
+ }
+}
diff --git a/examples/entity-form/yarn.lock b/examples/entity-form/yarn.lock
index d808eb6a7..2074a930e 100644
--- a/examples/entity-form/yarn.lock
+++ b/examples/entity-form/yarn.lock
@@ -4239,9 +4239,15 @@ __metadata:
languageName: node
linkType: hard
-"druxt-site@link:../../../packages/druxt-entity::locator=entity-form%40workspace%3A.":
+"druxt-entity@link:../../../packages/entity::locator=entity-form%40workspace%3A.":
version: 0.0.0-use.local
- resolution: "druxt-site@link:../../../packages/druxt-entity::locator=entity-form%40workspace%3A."
+ resolution: "druxt-entity@link:../../../packages/entity::locator=entity-form%40workspace%3A."
+ languageName: node
+ linkType: soft
+
+"druxt-views@link:../../../packages/views::locator=entity-form%40workspace%3A.":
+ version: 0.0.0-use.local
+ resolution: "druxt-views@link:../../../packages/views::locator=entity-form%40workspace%3A."
languageName: node
linkType: soft
@@ -4354,7 +4360,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "entity-form@workspace:."
dependencies:
- druxt-site: "link:../../../packages/druxt-entity"
+ druxt-entity: "link:../../../packages/entity"
+ druxt-views: "link:../../../packages/views"
nuxt: latest
languageName: unknown
linkType: soft
diff --git a/package.json b/package.json
index 00b3491b4..a9928a07c 100644
--- a/package.json
+++ b/package.json
@@ -27,6 +27,7 @@
"example:druxt-site:storybook:test:open": "start-server-and-test 'yarn example:druxt-site:storybook --port 3000' http://localhost:3000 'npx cypress open --project examples/druxt-site/test'",
"example:druxt-site:test": "start-server-and-test 'yarn example:druxt-site' http://localhost:3000 'npx cypress run --project examples/druxt-site/test --spec examples/druxt-site/test/cypress/e2e/umami-*.cy.js'",
"example:druxt-site:test:open": "start-server-and-test 'yarn example:druxt-site' http://localhost:3000 'npx cypress open --project examples/druxt-site/test'",
+ "example:entity-form": "cd examples/entity-form && yarn && yarn dev",
"lint": "eslint --ext .js,.vue packages/*/src",
"lint:commit": "commitlint",
"lint:renovate": "renovate-config-validator",