srcdev-nuxt-forms 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +12 -0
- package/.eslintignore +7 -0
- package/.eslintrc.cjs +12 -0
- package/.nuxtrc +1 -0
- package/.prettierrc +4 -0
- package/.release-it.json +6 -0
- package/nuxt.config.ts +6 -6
- package/package.json +1 -8
- package/pages/index.vue +5 -5
- package/tsconfig.json +3 -0
package/.editorconfig
ADDED
package/.eslintignore
ADDED
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"root": true,
|
|
3
|
+
"extends": [
|
|
4
|
+
"@nuxtjs/eslint-config-typescript",
|
|
5
|
+
"plugin:prettier/recommended"
|
|
6
|
+
],
|
|
7
|
+
"rules": {
|
|
8
|
+
"vue/multi-word-component-names": "off",
|
|
9
|
+
"vue/no-multiple-template-root": "off",
|
|
10
|
+
"@typescript-eslint/no-unused-vars": "off"
|
|
11
|
+
}
|
|
12
|
+
};
|
package/.nuxtrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typescript.includeWorkspace = true
|
package/.prettierrc
ADDED
package/.release-it.json
ADDED
package/nuxt.config.ts
CHANGED
|
@@ -5,10 +5,10 @@ const { resolve } = createResolver(import.meta.url)
|
|
|
5
5
|
export default defineNuxtConfig({
|
|
6
6
|
devtools: { enabled: true },
|
|
7
7
|
css: [resolve('./assets/styles/main.css')],
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
components: [
|
|
9
|
+
{
|
|
10
|
+
path: '~/components',
|
|
11
|
+
pathPrefix: false,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
14
|
})
|
package/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "srcdev-nuxt-forms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
|
-
"files": [
|
|
7
|
-
"assets",
|
|
8
|
-
"components",
|
|
9
|
-
"layouts",
|
|
10
|
-
"pages",
|
|
11
|
-
"nuxt.config.ts"
|
|
12
|
-
],
|
|
13
6
|
"scripts": {
|
|
14
7
|
"dev": "nuxi dev",
|
|
15
8
|
"build": "nuxt build",
|
package/pages/index.vue
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
<div>
|
|
6
6
|
<h1>Sample form page</h1>
|
|
7
7
|
|
|
8
|
-
<
|
|
8
|
+
<FormWrapper width="medium">
|
|
9
9
|
<template #default>
|
|
10
10
|
<form>
|
|
11
11
|
<p>Form content</p>
|
|
12
|
-
<
|
|
12
|
+
<FormField width="wide" :has-gutter="true">
|
|
13
13
|
<template #default>
|
|
14
14
|
<p>Input text</p>
|
|
15
|
-
<
|
|
15
|
+
<InputText />
|
|
16
16
|
</template>
|
|
17
|
-
</
|
|
17
|
+
</FormField>
|
|
18
18
|
</form>
|
|
19
19
|
</template>
|
|
20
|
-
</
|
|
20
|
+
</FormWrapper>
|
|
21
21
|
</div>
|
|
22
22
|
</template>
|
|
23
23
|
</NuxtLayout>
|
package/tsconfig.json
ADDED