create-nuxt-base 0.1.23 → 0.2.1
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/.eslintignore +14 -0
- package/.eslintrc +3 -0
- package/.github/workflows/release.yml +1 -1
- package/.prettierignore +5 -0
- package/.prettierrc +6 -0
- package/.vscode/settings.json +10 -10
- package/CHANGELOG.md +22 -33
- package/README.md +1 -0
- package/index.js +30 -29
- package/nuxt-base-template/.env.example +8 -0
- package/nuxt-base-template/.eslintrc +1 -1
- package/nuxt-base-template/.vscode/settings.json +6 -16
- package/nuxt-base-template/e2e/init.spec.ts +18 -0
- package/nuxt-base-template/nuxt.config.ts +27 -12
- package/nuxt-base-template/package-lock.json +6050 -4606
- package/nuxt-base-template/package.json +47 -29
- package/nuxt-base-template/playwright.config.ts +77 -0
- package/nuxt-base-template/src/app.vue +4 -4
- package/nuxt-base-template/src/assets/css/tailwind.css +42 -33
- package/nuxt-base-template/src/components/SocialMediaBubble.vue +1 -1
- package/nuxt-base-template/src/components/base/BaseAccordion.vue +16 -13
- package/nuxt-base-template/src/components/base/BaseButton.vue +10 -13
- package/nuxt-base-template/src/components/base/BaseContainer.vue +1 -1
- package/nuxt-base-template/src/components/base/BaseContextMenuContainer.vue +61 -0
- package/nuxt-base-template/src/components/base/BaseInfinityList.vue +1 -1
- package/nuxt-base-template/src/components/base/BaseProgressbar.vue +28 -30
- package/nuxt-base-template/src/components/base/BaseToggle.vue +17 -10
- package/nuxt-base-template/src/components/form/FormInput.vue +34 -0
- package/nuxt-base-template/src/components/form/FormPassword.vue +47 -0
- package/nuxt-base-template/src/components/form/FormSelect.vue +40 -0
- package/nuxt-base-template/src/components/form/FormSubmit.vue +18 -0
- package/nuxt-base-template/src/components/form/FormTextarea.vue +36 -0
- package/nuxt-base-template/src/components/form/FormToggle.vue +27 -0
- package/nuxt-base-template/src/components/modal/Modal.vue +48 -0
- package/nuxt-base-template/src/components/modal/ModalConfirm.vue +38 -0
- package/nuxt-base-template/src/components/{base/BaseModalContainer.vue → modal/ModalContainer.vue} +1 -1
- package/nuxt-base-template/src/components/modal/ModalInfo.vue +22 -0
- package/nuxt-base-template/src/components/{ModalShare.vue → modal/ModalShare.vue} +7 -11
- package/nuxt-base-template/src/components/{base/BaseNotification.vue → notification/Notification.vue} +8 -7
- package/nuxt-base-template/src/components/{base/BaseNotificationContainer.vue → notification/NotificationContainer.vue} +11 -5
- package/nuxt-base-template/src/components/pwa/pwa-install-banner.vue +224 -0
- package/nuxt-base-template/src/components/transition/TransitionFade.vue +10 -7
- package/nuxt-base-template/src/components/transition/TransitionFadeScale.vue +10 -7
- package/nuxt-base-template/src/composables/use-auth-fetch.ts +22 -8
- package/nuxt-base-template/src/composables/use-context-menu.ts +19 -0
- package/nuxt-base-template/src/composables/use-file.ts +1 -2
- package/nuxt-base-template/src/composables/use-modal.ts +1 -1
- package/nuxt-base-template/src/composables/use-notification.ts +2 -2
- package/nuxt-base-template/src/composables/use-share.ts +3 -3
- package/nuxt-base-template/src/error.vue +10 -14
- package/nuxt-base-template/src/layouts/default.vue +13 -0
- package/nuxt-base-template/src/middleware/auth.global.ts +2 -2
- package/nuxt-base-template/src/pages/index.vue +31 -6
- package/nuxt-base-template/src/plugins/auth.server.ts +72 -0
- package/nuxt-base-template/src/plugins/form.plugin.ts +21 -0
- package/nuxt-base-template/src/plugins/pwa.plugin.ts +110 -0
- package/nuxt-base-template/src/tests/init.test.ts +1 -1
- package/nuxt-base-template/tailwind.config.js +33 -23
- package/nuxt-base-template/vitest.config.js +3 -3
- package/package.json +3 -1
- package/nuxt-base-template/formkit-theme.js +0 -137
- package/nuxt-base-template/formkit.config.js +0 -33
- package/nuxt-base-template/src/components/hello-world.vue +0 -10
- package/nuxt-base-template/src/composables/use-form-helper.ts +0 -100
- package/nuxt-base-template/src/composables/use-helper.ts +0 -52
- package/nuxt-base-template/src/forms/inputs/InputCheckbox.vue +0 -29
- package/nuxt-base-template/src/forms/inputs/InputFreeTags.vue +0 -98
- package/nuxt-base-template/src/forms/inputs/InputImage.vue +0 -65
- package/nuxt-base-template/src/forms/inputs/InputTags.vue +0 -112
- package/nuxt-base-template/src/forms/inputs/InputToggle.vue +0 -18
- package/nuxt-base-template/src/forms/plugins/asterisk-plugin.ts +0 -29
- package/nuxt-base-template/src/forms/plugins/scroll-error-plugin.ts +0 -36
- package/nuxt-base-template/src/forms/plugins/value-changes-plugin.ts +0 -13
- package/nuxt-base-template/src/plugins/4.auth.server.ts +0 -70
package/.eslintignore
ADDED
package/.eslintrc
ADDED
package/.prettierignore
ADDED
package/.prettierrc
ADDED
package/.vscode/settings.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
2
|
+
"files.exclude": {
|
|
3
|
+
"**/.git": true,
|
|
4
|
+
"**/.svn": true,
|
|
5
|
+
"**/.hg": true,
|
|
6
|
+
"**/CVS": true,
|
|
7
|
+
"**/.DS_Store": true,
|
|
8
|
+
"**/Thumbs.db": true
|
|
9
|
+
},
|
|
10
|
+
"hide-files.files": []
|
|
11
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.0...v0.2.1) (2024-02-02)
|
|
6
|
+
|
|
7
|
+
## [0.2.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.23...v0.2.0) (2024-02-02)
|
|
8
|
+
|
|
5
9
|
### [0.1.23](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.22...v0.1.23) (2023-10-21)
|
|
6
10
|
|
|
7
11
|
### [0.1.22](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.21...v0.1.22) (2023-10-21)
|
|
@@ -10,114 +14,99 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
10
14
|
|
|
11
15
|
### [0.1.20](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.19...v0.1.20) (2023-07-03)
|
|
12
16
|
|
|
13
|
-
|
|
14
17
|
### Features
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
- Add package-lock and remove auto-start ([500a7ee](https://github.com/lenneTech/nuxt-base-starter/commit/500a7eeca81de331929d314e7dfebeb19fc0b0c4))
|
|
17
20
|
|
|
18
21
|
### [0.1.19](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.18...v0.1.19) (2023-07-02)
|
|
19
22
|
|
|
20
|
-
|
|
21
23
|
### Features
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
- added eslint-config ([d0f9146](https://github.com/lenneTech/nuxt-base-starter/commit/d0f9146eba44a72c839be8996357a9f2a55e8737))
|
|
26
|
+
- updated eslint-config version ([2f1ef56](https://github.com/lenneTech/nuxt-base-starter/commit/2f1ef56b67eb4866908753f67e9b27b98a174543))
|
|
25
27
|
|
|
26
28
|
### [0.1.18](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.17...v0.1.18) (2023-06-26)
|
|
27
29
|
|
|
28
|
-
|
|
29
30
|
### Features
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
- add init command ([defa0a4](https://github.com/lenneTech/nuxt-base-starter/commit/defa0a46b4d9d0fa0448afddcb2db25d41252159))
|
|
32
33
|
|
|
33
34
|
### [0.1.17](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.16...v0.1.17) (2023-06-26)
|
|
34
35
|
|
|
35
36
|
### [0.1.16](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.15...v0.1.16) (2023-06-12)
|
|
36
37
|
|
|
37
|
-
|
|
38
38
|
### Bug Fixes
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
- fix vueuse integration ([0fdc1ee](https://github.com/lenneTech/nuxt-base-starter/commit/0fdc1ee1365bade6157620c307c7efe6080a4f4f))
|
|
41
41
|
|
|
42
42
|
### [0.1.15](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.14...v0.1.15) (2023-06-12)
|
|
43
43
|
|
|
44
|
-
|
|
45
44
|
### Bug Fixes
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
- fix install ([8159d1c](https://github.com/lenneTech/nuxt-base-starter/commit/8159d1cfb7c7ad03ac563d2744857c6a21e9fda5))
|
|
48
47
|
|
|
49
48
|
### [0.1.14](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.13...v0.1.14) (2023-06-12)
|
|
50
49
|
|
|
51
|
-
|
|
52
50
|
### Features
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
- remove storybook and add updates ([af33d31](https://github.com/lenneTech/nuxt-base-starter/commit/af33d317717ee0c3109b1730708ebd863293485a))
|
|
55
53
|
|
|
56
54
|
### [0.1.13](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.12...v0.1.13) (2023-04-23)
|
|
57
55
|
|
|
58
56
|
### [0.1.12](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.11...v0.1.12) (2023-04-01)
|
|
59
57
|
|
|
60
|
-
|
|
61
58
|
### Features
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
- Add some usefull scripts ([05102f9](https://github.com/lenneTech/nuxt-base-starter/commit/05102f91fcf098aef211db9c15b583bb7fd0aacf))
|
|
61
|
+
- Set nuxt-base watch prop default to false ([48189ea](https://github.com/lenneTech/nuxt-base-starter/commit/48189ea30501b698e2edb7d4cdfc56006964839f))
|
|
65
62
|
|
|
66
63
|
### [0.1.11](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.10...v0.1.11) (2023-04-01)
|
|
67
64
|
|
|
68
|
-
|
|
69
65
|
### Features
|
|
70
66
|
|
|
71
|
-
|
|
67
|
+
- Add default formatter in vscode ([b9a98b5](https://github.com/lenneTech/nuxt-base-starter/commit/b9a98b58ddd6f08136e3c46a1cfe4a6f7ec1e0e0))
|
|
72
68
|
|
|
73
69
|
### [0.1.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.9...v0.1.10) (2023-04-01)
|
|
74
70
|
|
|
75
|
-
|
|
76
71
|
### Bug Fixes
|
|
77
72
|
|
|
78
|
-
|
|
73
|
+
- fix package.json ([d277732](https://github.com/lenneTech/nuxt-base-starter/commit/d277732b5c2af1c8dd6d5eed7f10875016ddebe2))
|
|
79
74
|
|
|
80
75
|
### [0.1.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.8...v0.1.9) (2023-04-01)
|
|
81
76
|
|
|
82
|
-
|
|
83
77
|
### Features
|
|
84
78
|
|
|
85
|
-
|
|
79
|
+
- Add pinia ([230246a](https://github.com/lenneTech/nuxt-base-starter/commit/230246ab16c16122255ad697dfc506fc417a2649))
|
|
86
80
|
|
|
87
81
|
### [0.1.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.7...v0.1.8) (2023-03-31)
|
|
88
82
|
|
|
89
|
-
|
|
90
83
|
### Features
|
|
91
84
|
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
- Add version check ([fe85709](https://github.com/lenneTech/nuxt-base-starter/commit/fe857099af96fa3fda0e06faecbd483e59f279fd))
|
|
86
|
+
- Remove package-lock.json ([149a88a](https://github.com/lenneTech/nuxt-base-starter/commit/149a88ab9917a9738ed5916a3604dd50557405d8))
|
|
94
87
|
|
|
95
88
|
### [0.1.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.6...v0.1.7) (2023-03-31)
|
|
96
89
|
|
|
97
|
-
|
|
98
90
|
### Features
|
|
99
91
|
|
|
100
|
-
|
|
92
|
+
- Add webhook url secret ([5719919](https://github.com/lenneTech/nuxt-base-starter/commit/57199194d95aa15783d1f04a2216db1580f493d4))
|
|
101
93
|
|
|
102
94
|
### [0.1.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.5...v0.1.6) (2023-03-31)
|
|
103
95
|
|
|
104
|
-
|
|
105
96
|
### Features
|
|
106
97
|
|
|
107
|
-
|
|
98
|
+
- Change default host ([b026fed](https://github.com/lenneTech/nuxt-base-starter/commit/b026fed7eaf8c5964bac5cc4a5c37074878a8d30))
|
|
108
99
|
|
|
109
100
|
### [0.1.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.4...v0.1.5) (2023-03-31)
|
|
110
101
|
|
|
111
|
-
|
|
112
102
|
### Features
|
|
113
103
|
|
|
114
|
-
|
|
104
|
+
- Add release workflow ([fd3720c](https://github.com/lenneTech/nuxt-base-starter/commit/fd3720c62454cd16ca92b8614e9225af2149b547))
|
|
115
105
|
|
|
116
106
|
### [0.1.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.3...v0.1.4) (2023-03-31)
|
|
117
107
|
|
|
118
108
|
### [0.1.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.2...v0.1.3) (2023-03-31)
|
|
119
109
|
|
|
120
|
-
|
|
121
110
|
### Features
|
|
122
111
|
|
|
123
|
-
|
|
112
|
+
- Add standard version ([08ec915](https://github.com/lenneTech/nuxt-base-starter/commit/08ec9159dd831a76714a7677500dce20ce4347fa))
|
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
async function create() {
|
|
4
|
-
const spawn = require(
|
|
5
|
-
const fs = require(
|
|
6
|
-
const path = require(
|
|
7
|
-
const childProcess = require(
|
|
4
|
+
const spawn = require('cross-spawn');
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const childProcess = require('child_process');
|
|
8
8
|
const pjson = require('./package.json');
|
|
9
9
|
|
|
10
10
|
console.log('ℹ️ create-nuxt-base started in version ', pjson.version);
|
|
@@ -25,7 +25,7 @@ async function create() {
|
|
|
25
25
|
const autoStart = process.argv[3] === 'auto-start';
|
|
26
26
|
|
|
27
27
|
if (!projectName) {
|
|
28
|
-
console.error(
|
|
28
|
+
console.error('Please provide a valid project name.');
|
|
29
29
|
process.exit(-1);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -37,37 +37,39 @@ async function create() {
|
|
|
37
37
|
process.exit(-1);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
await copyFiles(__dirname +
|
|
40
|
+
await copyFiles(__dirname + '/nuxt-base-template', projectDir);
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
// Copy .env
|
|
43
|
+
await copyFiles(__dirname + '/nuxt-base-template/.env.example', projectDir + '/.env');
|
|
44
|
+
|
|
45
|
+
const projectPackageJson = require(path.join(projectDir, 'package.json'));
|
|
43
46
|
|
|
44
47
|
// Update the project's package.json with the new project name
|
|
45
48
|
projectPackageJson.name = projectName;
|
|
46
49
|
|
|
47
|
-
fs.writeFileSync(
|
|
48
|
-
path.join(projectDir, "package.json"),
|
|
49
|
-
JSON.stringify(projectPackageJson, null, 2)
|
|
50
|
-
);
|
|
50
|
+
fs.writeFileSync(path.join(projectDir, 'package.json'), JSON.stringify(projectPackageJson, null, 2));
|
|
51
51
|
|
|
52
52
|
process.chdir(projectName);
|
|
53
53
|
|
|
54
|
-
const gitInit = childProcess.exec(
|
|
54
|
+
const gitInit = childProcess.exec('git init');
|
|
55
55
|
await waitForChildProcess(gitInit);
|
|
56
56
|
|
|
57
|
-
console.log(
|
|
58
|
-
const npmInstall = spawn(
|
|
57
|
+
console.log('Installing dependencies ...');
|
|
58
|
+
const npmInstall = spawn('npm', ['install'], { stdio: 'inherit' });
|
|
59
59
|
await waitForSpawn(npmInstall);
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
const removeGit = spawn('rm', ['-rf', '.git'], { stdio: 'inherit' });
|
|
62
|
+
await waitForSpawn(removeGit);
|
|
63
|
+
|
|
64
|
+
console.log('Success! Your new project is ready. 🎉');
|
|
62
65
|
|
|
63
66
|
if (autoStart) {
|
|
64
|
-
console.log(
|
|
65
|
-
const npmRunBuild = spawn(
|
|
67
|
+
console.log('Building Project ...');
|
|
68
|
+
const npmRunBuild = spawn('npm', ['run', 'build'], { stdio: 'inherit' });
|
|
66
69
|
await waitForSpawn(npmRunBuild)
|
|
67
|
-
.then(() => console.log(
|
|
68
|
-
.catch(() => console.log(
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
.then(() => console.log('✅ Project was successfully built'))
|
|
71
|
+
.catch(() => console.log('❌ Error while building the project'));
|
|
72
|
+
|
|
71
73
|
console.log(`Created ${projectName} at ${projectDir} 💾`);
|
|
72
74
|
console.log(`Launching ${projectName} in: 3 💥`);
|
|
73
75
|
await waitForMS(1000);
|
|
@@ -77,16 +79,15 @@ async function create() {
|
|
|
77
79
|
await waitForMS(1000);
|
|
78
80
|
console.log(`Launching ${projectName} ... 🚀`);
|
|
79
81
|
await waitForMS(1000);
|
|
80
|
-
const npmRunDev = spawn(
|
|
82
|
+
const npmRunDev = spawn('npm', ['run', 'start'], { stdio: 'inherit' });
|
|
81
83
|
await waitForSpawn(npmRunDev);
|
|
82
84
|
}
|
|
83
|
-
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
function waitForSpawn(spawn) {
|
|
87
88
|
return new Promise((resolve, reject) => {
|
|
88
|
-
spawn.on(
|
|
89
|
-
spawn.on(
|
|
89
|
+
spawn.on('exit', () => resolve(true));
|
|
90
|
+
spawn.on('error', () => reject());
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
93
|
|
|
@@ -100,20 +101,20 @@ function waitForMS(ms) {
|
|
|
100
101
|
|
|
101
102
|
function waitForChildProcess(process) {
|
|
102
103
|
return new Promise((resolve, reject) => {
|
|
103
|
-
process.stdout.on(
|
|
104
|
+
process.stdout.on('data', (data) => {
|
|
104
105
|
resolve(data);
|
|
105
106
|
});
|
|
106
|
-
process.stdout.on(
|
|
107
|
+
process.stdout.on('error', (err) => {
|
|
107
108
|
reject(err);
|
|
108
109
|
});
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
async function copyFiles(from, to) {
|
|
113
|
-
const fse = require(
|
|
114
|
+
const fse = require('fs-extra');
|
|
114
115
|
try {
|
|
115
116
|
await fse.copy(from, to);
|
|
116
|
-
console.log(
|
|
117
|
+
console.log('Copied nuxt base template successfully!');
|
|
117
118
|
} catch (err) {
|
|
118
119
|
console.error(err);
|
|
119
120
|
process.exit(-1);
|
|
@@ -3,26 +3,16 @@
|
|
|
3
3
|
"editor.formatOnSave": true,
|
|
4
4
|
"eslint.alwaysShowStatus": true,
|
|
5
5
|
"eslint.options": {
|
|
6
|
-
|
|
7
|
-
".html",
|
|
8
|
-
".js",
|
|
9
|
-
".vue",
|
|
10
|
-
".jsx"
|
|
11
|
-
]
|
|
6
|
+
"extensions": [".html", ".js", ".vue", ".jsx"]
|
|
12
7
|
},
|
|
13
|
-
"eslint.validate": [
|
|
14
|
-
"html",
|
|
15
|
-
"vue",
|
|
16
|
-
"javascript",
|
|
17
|
-
"javascriptreact",
|
|
18
|
-
],
|
|
8
|
+
"eslint.validate": ["html", "vue", "javascript", "javascriptreact"],
|
|
19
9
|
"editor.codeActionsOnSave": {
|
|
20
|
-
|
|
10
|
+
"source.fixAll.eslint": true
|
|
21
11
|
},
|
|
22
12
|
"[javascript]": {
|
|
23
|
-
|
|
13
|
+
"editor.formatOnSave": false
|
|
24
14
|
},
|
|
25
15
|
"eslint.format.enable": true,
|
|
26
16
|
"css.validate": false,
|
|
27
|
-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
28
|
-
}
|
|
17
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { test, expect } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
test('has title', async ({ page }) => {
|
|
4
|
+
await page.goto('https://playwright.dev/');
|
|
5
|
+
|
|
6
|
+
// Expect a title "to contain" a substring.
|
|
7
|
+
await expect(page).toHaveTitle(/Playwright/);
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
test('get started link', async ({ page }) => {
|
|
11
|
+
await page.goto('https://playwright.dev/');
|
|
12
|
+
|
|
13
|
+
// Click the get started link.
|
|
14
|
+
await page.getByRole('link', { name: 'Get started' }).click();
|
|
15
|
+
|
|
16
|
+
// Expects page to have a heading with the name of Installation.
|
|
17
|
+
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
|
|
18
|
+
});
|
|
@@ -7,26 +7,35 @@ export default defineNuxtConfig({
|
|
|
7
7
|
'@nuxtjs/tailwindcss',
|
|
8
8
|
'@lenne.tech/nuxt-base',
|
|
9
9
|
'@vueuse/nuxt',
|
|
10
|
-
'@formkit/nuxt',
|
|
11
|
-
'@kevinmarrec/nuxt-pwa',
|
|
12
10
|
'@nuxtjs/google-fonts',
|
|
13
11
|
'@nuxtjs/color-mode',
|
|
12
|
+
'@nuxt/image',
|
|
13
|
+
'nuxt-simple-robots',
|
|
14
|
+
'@nuxtjs/sitemap',
|
|
15
|
+
'@nuxtjs/plausible',
|
|
14
16
|
],
|
|
17
|
+
plausible: {
|
|
18
|
+
apiHost: '',
|
|
19
|
+
},
|
|
15
20
|
experimental: {
|
|
16
|
-
|
|
21
|
+
asyncContext: true,
|
|
17
22
|
renderJsonPayloads: false,
|
|
23
|
+
typedPages: true,
|
|
24
|
+
},
|
|
25
|
+
sitemap: {
|
|
26
|
+
exclude: ['/app/**'],
|
|
27
|
+
},
|
|
28
|
+
image: {
|
|
29
|
+
ipx: {
|
|
30
|
+
maxAge: 2592000,
|
|
31
|
+
},
|
|
32
|
+
provider: 'ipx',
|
|
18
33
|
},
|
|
19
34
|
nuxtBase: {
|
|
20
|
-
host: 'http://localhost:3000/graphql',
|
|
21
|
-
schema: '../api/schema.gql',
|
|
22
|
-
storagePrefix: 'rk',
|
|
23
35
|
generateTypes: process.env['GENERATE_TYPES'] === '1',
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
tokenStorage: 'cookie',
|
|
28
|
-
proxyCookies: true,
|
|
29
|
-
},
|
|
36
|
+
host: process.env.API_URL + '/graphql',
|
|
37
|
+
schema: process.env.API_SCHEMA,
|
|
38
|
+
storagePrefix: process.env.STORAGE_PREFIX,
|
|
30
39
|
},
|
|
31
40
|
app: {
|
|
32
41
|
head: {
|
|
@@ -34,6 +43,12 @@ export default defineNuxtConfig({
|
|
|
34
43
|
viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no',
|
|
35
44
|
},
|
|
36
45
|
},
|
|
46
|
+
runtimeConfig: {
|
|
47
|
+
public: {
|
|
48
|
+
apiUrl: process.env.API_URL,
|
|
49
|
+
webPushKey: process.env.WEB_PUSH_KEY,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
37
52
|
devServer: {
|
|
38
53
|
port: 3001,
|
|
39
54
|
},
|