@nuxtify/pages 0.1.0

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.
Files changed (53) hide show
  1. package/README.md +203 -0
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.d.mts +139 -0
  4. package/dist/module.d.ts +139 -0
  5. package/dist/module.json +13 -0
  6. package/dist/module.mjs +138 -0
  7. package/dist/runtime/components/EmailSubscribeForm.vue +215 -0
  8. package/dist/runtime/components/FooterCallToAction.vue +38 -0
  9. package/dist/runtime/components/app/AppAnnouncementBar.vue +40 -0
  10. package/dist/runtime/components/app/AppBar.vue +128 -0
  11. package/dist/runtime/components/app/AppDialog.vue +40 -0
  12. package/dist/runtime/components/app/AppFooter.vue +150 -0
  13. package/dist/runtime/components/app/AppLoading.vue +16 -0
  14. package/dist/runtime/components/app/AppLogo.vue +55 -0
  15. package/dist/runtime/components/app/AppNavigationDrawer.vue +101 -0
  16. package/dist/runtime/components/app/AppToast.vue +18 -0
  17. package/dist/runtime/composables/dialog.d.ts +13 -0
  18. package/dist/runtime/composables/dialog.js +15 -0
  19. package/dist/runtime/composables/nuxtify.d.ts +2 -0
  20. package/dist/runtime/composables/nuxtify.js +2 -0
  21. package/dist/runtime/composables/state.d.ts +15 -0
  22. package/dist/runtime/composables/state.js +10 -0
  23. package/dist/runtime/layouts/DefaultLayout.vue +33 -0
  24. package/dist/runtime/pages/DynamicSlug.vue +23 -0
  25. package/dist/runtime/pages/IndexPage.vue +23 -0
  26. package/dist/runtime/server/composables/client.d.ts +1 -0
  27. package/dist/runtime/server/composables/client.js +1 -0
  28. package/dist/runtime/server/tsconfig.json +3 -0
  29. package/dist/runtime/server/utils/client.d.ts +1 -0
  30. package/dist/runtime/server/utils/client.js +1 -0
  31. package/dist/runtime/utils/email.d.ts +5 -0
  32. package/dist/runtime/utils/email.js +26 -0
  33. package/dist/runtime/utils/formRules.d.ts +18 -0
  34. package/dist/runtime/utils/formRules.js +22 -0
  35. package/dist/runtime/utils/icons.d.ts +1 -0
  36. package/dist/runtime/utils/icons.js +1 -0
  37. package/dist/runtime/utils/io.d.ts +2 -0
  38. package/dist/runtime/utils/io.js +19 -0
  39. package/dist/runtime/utils/math.d.ts +2 -0
  40. package/dist/runtime/utils/math.js +13 -0
  41. package/dist/runtime/utils/text.d.ts +23 -0
  42. package/dist/runtime/utils/text.js +159 -0
  43. package/dist/runtime/utils/time.d.ts +2 -0
  44. package/dist/runtime/utils/time.js +7 -0
  45. package/dist/runtime/utils/url.d.ts +9 -0
  46. package/dist/runtime/utils/url.js +27 -0
  47. package/dist/runtime/utils/util.d.ts +7 -0
  48. package/dist/runtime/utils/util.js +5 -0
  49. package/dist/runtime/utils/youtube.d.ts +1 -0
  50. package/dist/runtime/utils/youtube.js +13 -0
  51. package/dist/types.d.mts +7 -0
  52. package/dist/types.d.ts +7 -0
  53. package/package.json +60 -0
@@ -0,0 +1 @@
1
+ export declare function youTubeUrl(url: string): string | null;
@@ -0,0 +1,13 @@
1
+ function youTubeId(url) {
2
+ const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;
3
+ const match = url.match(regExp);
4
+ return match && match[2].length === 11 ? match[2] : null;
5
+ }
6
+ export function youTubeUrl(url) {
7
+ const videoId = youTubeId(url);
8
+ if (videoId) {
9
+ return `https://www.youtube.com/embed/${videoId}`;
10
+ } else {
11
+ return null;
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ import type { NuxtModule } from '@nuxt/schema'
2
+
3
+ import type { default as Module } from './module.js'
4
+
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
+
7
+ export { default } from './module.js'
@@ -0,0 +1,7 @@
1
+ import type { NuxtModule } from '@nuxt/schema'
2
+
3
+ import type { default as Module } from './module'
4
+
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
+
7
+ export { default } from './module'
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@nuxtify/pages",
3
+ "version": "0.1.0",
4
+ "description": "Nuxtify pages module powered by Nuxt and Vuetify.",
5
+ "license": "MIT",
6
+ "homepage": "https://nuxtify.dev/",
7
+ "author": "Nuxtify.dev <hello@nuxtify.dev>",
8
+ "funding": "https://github.com/sponsors/davidstackio",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/nuxtify-dev/pages"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/nuxtify-dev/pages/issues"
15
+ },
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/types.d.ts",
20
+ "import": "./dist/module.mjs",
21
+ "require": "./dist/module.cjs"
22
+ }
23
+ },
24
+ "main": "./dist/module.cjs",
25
+ "types": "./dist/types.d.ts",
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "scripts": {
30
+ "prepack": "nuxt-module-build build",
31
+ "dev": "nuxi dev playground",
32
+ "dev:build": "nuxi build playground",
33
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
34
+ "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
35
+ "lint": "eslint .",
36
+ "test": "vitest run",
37
+ "test:watch": "vitest watch",
38
+ "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
39
+ },
40
+ "dependencies": {
41
+ "@mdi/js": "^7.4.47",
42
+ "defu": "^6.1.4",
43
+ "vuetify-nuxt-module": "^0.18.5"
44
+ },
45
+ "devDependencies": {
46
+ "@nuxt/devtools": "^2.3.2",
47
+ "@nuxt/eslint-config": "^1.3.0",
48
+ "@nuxt/kit": "^3.16.2",
49
+ "@nuxt/module-builder": "^0.8.4",
50
+ "@nuxt/schema": "^3.16.2",
51
+ "@nuxt/test-utils": "^3.17.2",
52
+ "@types/node": "^20.17.30",
53
+ "changelogen": "^0.6.1",
54
+ "eslint": "^9.23.0",
55
+ "nuxt": "^3.16.2",
56
+ "typescript": "~5.8.2",
57
+ "vitest": "^3.1.1",
58
+ "vue-tsc": "^2.2.8"
59
+ }
60
+ }