Skip to content

Commit cc6b7e0

Browse files
committed
Merge branch 'master' into production
2 parents 29efdb1 + 2ec8f77 commit cc6b7e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+295
-22
lines changed

.github/pull_request_template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Summary
2+
*Give a quick summary of the changes this pull request includes and what they do.*
3+
4+
## Checklist
5+
- [ ] The commits in this PR follow the [commit guidelines](https://github.com/kevinkosterr/vue3-form-generator/CONTRIBUTING.md)
6+
- [ ] The pull request was issued to the `master` branch (if not part of a release)
7+
8+
#### What kind of change(s) does this PR introduce? (Check at least one)
9+
- [ ] Bug fix :bug: - `fix(...)`
10+
- [ ] Feature - `feat(...)`
11+
- [ ] Documentation - `docs(...)`
12+
- [ ] Introduces or modifies test(s) - `test(...)`
13+
- [ ] Other (please describe)

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Contributing
2+
Please read the following before contributing to this repository.
3+
4+
## Commit guidelines
5+
Commits should follow the basic guidelines as specified by [Angular](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit).
6+
The `scope` is applicable to `docs`, `feat`, `refactor`, `fix`, `test` or `perf`. Typically, the `scope` would be the
7+
field component that the change is made to/made for. For example: if you fix a bug in the `FieldCheckbox` component
8+
the commit should start with `fix(FieldCheckbox)`.
9+
10+
Commits must follow the guidelines as specified above in order for `semantic-release` to create proper release notes.
11+
Commits are also evaluated against the [default release rules](https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js).
12+
E.g. `feat:` will create a `minor` release and `fix:` will create a `patch` release.
13+
14+
Should your commits close any issues, please mention them in the footer of the commit message.

apps/docs/.vitepress/config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import { defineConfig } from 'vitepress'
2+
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
23
import path from 'path'
34

45
// https://vitepress.dev/reference/site-config
56
export default defineConfig({
67
base: '/vue3-form-generator/',
78
title: 'Vue3 Form Generator',
89
description: 'Documentation for vue3-form-generator',
10+
markdown: {
11+
config(md) {
12+
md.use(groupIconMdPlugin)
13+
}
14+
},
915
themeConfig: {
1016
nav: [
1117
{ text: 'Home', link: '/' }
@@ -48,6 +54,7 @@ export default defineConfig({
4854
items: [
4955
{ text: 'FieldButton', link: '/guide/fields/FieldButton' },
5056
{ text: 'FieldCheckbox', link: '/guide/fields/FieldCheckbox' },
57+
{ text: 'FieldChecklist', link: '/guide/fields/FieldChecklist' },
5158
{ text: 'FieldColor', link: '/guide/fields/FieldColor' },
5259
{ text: 'FieldMask', link: '/guide/fields/FieldMask' },
5360
{ text: 'FieldNumber', link: '/guide/fields/FieldNumber' },
@@ -75,6 +82,7 @@ export default defineConfig({
7582
]
7683
},
7784
vite: {
85+
plugins: [ groupIconVitePlugin() ],
7886
resolve: {
7987
alias: {
8088
'@': path.resolve(__dirname, '../../../src')

apps/docs/.vitepress/theme/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import VueFormGenerator from '@/index'
33

44
import './index.css'
55
import '@/scss/themes/basic.scss'
6+
import 'virtual:group-icons.css'
67

78
export default {
89
extends: DefaultTheme,
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<template>
2+
permissions: <code>{{ form.model.permissions }}</code>
3+
<vue-form-generator :schema="form.schema" :model="form.model" />
4+
</template>
5+
6+
<script setup>
7+
import { ref } from 'vue'
8+
9+
const form = ref({
10+
model: {
11+
permissions: []
12+
},
13+
schema: {
14+
fields: [
15+
{
16+
name: 'activePermissions',
17+
label: 'Active permissions',
18+
model: 'permissions',
19+
type: 'checklist',
20+
options: [
21+
{ name: 'Manage warehouse', value: 'manageWarehouse' },
22+
{ name: 'Create orders', value: 'createOrders' },
23+
{ name: 'Manage orders', value: 'manageOrders' }
24+
]
25+
}
26+
]
27+
}
28+
})
29+
</script>

0 commit comments

Comments
 (0)