@nuxtus/nuxtus 2.0.0 → 2.0.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/CHANGELOG.md +7 -0
- package/TODO +2 -0
- package/client/nuxt.config.ts +8 -6
- package/client/package.json +1 -1
- package/package.json +1 -1
- package/templates/env-nuxt.liquid +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.1](https://github.com/nuxtus/nuxtus/compare/v2.0.0...v2.0.1) (2022-11-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* :bug: Move Directus credentials to public configuration variables ([fb85d82](https://github.com/nuxtus/nuxtus/commit/fb85d8216c9d2949e927606e6bdf3fbb5e2b14d2))
|
|
9
|
+
|
|
3
10
|
# [2.0.0](https://github.com/nuxtus/nuxtus/compare/v1.9.1...v2.0.0) (2022-11-18)
|
|
4
11
|
|
|
5
12
|
|
package/TODO
CHANGED
|
@@ -4,6 +4,8 @@ Todo:
|
|
|
4
4
|
☐ Websockets (https://github.com/br41nslug/directus-websocket-subscribe)
|
|
5
5
|
☐ Nuxtus website should actually pull data from Directus!
|
|
6
6
|
☐ Detect when Directus is not running and show error message
|
|
7
|
+
☐ Use nuxt.config in generator login.ts instead of env
|
|
8
|
+
☐ Move the Directus email/password and token to private server variables and use a server middleware (https://nuxt.com/docs/guide/directory-structure/server#server-middleware) to login and provide AUTH_TOKEN back to client. This workflow only needed if not rendering a static site.
|
|
7
9
|
|
|
8
10
|
Archive:
|
|
9
11
|
✔ Make opening browser window on start optional using npm run start (not possible) @done(22-09-14 16:44) @project(Todo)
|
package/client/nuxt.config.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
2
2
|
export default {
|
|
3
3
|
buildModules: [
|
|
4
|
-
|
|
4
|
+
'@nuxtjs/google-fonts'
|
|
5
5
|
],
|
|
6
|
-
modules: ["nuxt-directus", "@nuxtus/nuxt-module"],
|
|
6
|
+
modules: ["@nuxtjs/tailwindcss", "nuxt-directus", "@nuxtus/nuxt-module"],
|
|
7
7
|
googleFonts: {
|
|
8
8
|
families: {
|
|
9
9
|
Inter: true,
|
|
@@ -18,10 +18,12 @@ export default {
|
|
|
18
18
|
authDirectus: true,
|
|
19
19
|
},
|
|
20
20
|
runtimeConfig: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
public: {
|
|
22
|
+
nuxtus: {
|
|
23
|
+
directus: {
|
|
24
|
+
email: '',
|
|
25
|
+
password: ''
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
}
|
package/client/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# nuxt-directus required values
|
|
2
2
|
DIRECTUS_URL="{{ directus_url }}"
|
|
3
3
|
# Nuxtus values
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
NUXT_PUBLIC_NUXTUS_DIRECTUS_EMAIL="{{ email }}"
|
|
5
|
+
NUXT_PUBLIC_NUXTUS_DIRECTUS_PASSWORD="{{ password }}"
|