From 0511ab89cdef1196610e38266ab82ad1986a6117 Mon Sep 17 00:00:00 2001 From: mwinter Date: Thu, 8 Jun 2023 19:39:45 +0200 Subject: [PATCH] added pinia for stores and buttons coming alive --- portfolio-nuxt/components/button.vue | 32 ++++++++++++++------- portfolio-nuxt/layouts/default.vue | 16 ++++++----- portfolio-nuxt/nuxt.config.ts | 2 +- portfolio-nuxt/package.json | 4 +++ portfolio-nuxt/pages/[files]/[filename].vue | 20 +++++++++++++ portfolio-nuxt/pages/index.vue | 12 ++++---- portfolio-nuxt/stores/AudioPlayerStore.js | 10 +++++++ portfolio-nuxt/yarn.lock | 21 ++++++++++++++ 8 files changed, 93 insertions(+), 24 deletions(-) create mode 100644 portfolio-nuxt/pages/[files]/[filename].vue create mode 100644 portfolio-nuxt/stores/AudioPlayerStore.js diff --git a/portfolio-nuxt/components/button.vue b/portfolio-nuxt/components/button.vue index 69966fa..480c2ca 100644 --- a/portfolio-nuxt/components/button.vue +++ b/portfolio-nuxt/components/button.vue @@ -1,17 +1,29 @@ + + \ No newline at end of file diff --git a/portfolio-nuxt/layouts/default.vue b/portfolio-nuxt/layouts/default.vue index 7ace3a8..0386fe1 100644 --- a/portfolio-nuxt/layouts/default.vue +++ b/portfolio-nuxt/layouts/default.vue @@ -9,12 +9,14 @@ +
+ +
- + diff --git a/portfolio-nuxt/nuxt.config.ts b/portfolio-nuxt/nuxt.config.ts index c086e39..f8f71aa 100644 --- a/portfolio-nuxt/nuxt.config.ts +++ b/portfolio-nuxt/nuxt.config.ts @@ -1,6 +1,6 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - modules: ['@nuxtjs/tailwindcss', '@nuxt/image', 'nuxt-icon'], + modules: ['@nuxtjs/tailwindcss', '@nuxt/image', 'nuxt-icon', '@pinia/nuxt'], image: { domains: ['unboundedpress.org'] } diff --git a/portfolio-nuxt/package.json b/portfolio-nuxt/package.json index 780ab71..813ed1e 100644 --- a/portfolio-nuxt/package.json +++ b/portfolio-nuxt/package.json @@ -14,5 +14,9 @@ "@types/node": "^18", "nuxt": "^3.5.2", "nuxt-icon": "^0.4.1" + }, + "dependencies": { + "@pinia/nuxt": "^0.4.11", + "pinia": "^2.1.3" } } diff --git a/portfolio-nuxt/pages/[files]/[filename].vue b/portfolio-nuxt/pages/[files]/[filename].vue new file mode 100644 index 0000000..153a49c --- /dev/null +++ b/portfolio-nuxt/pages/[files]/[filename].vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/portfolio-nuxt/pages/index.vue b/portfolio-nuxt/pages/index.vue index 5811343..da8f04a 100644 --- a/portfolio-nuxt/pages/index.vue +++ b/portfolio-nuxt/pages/index.vue @@ -1,5 +1,5 @@