From 504f15edac38f47a5d7e9b804d3e9f35e42309be Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 12 Aug 2022 18:23:03 +0200 Subject: [PATCH] ci siamo quasi dai --- README.md | 11 ++---- app.vue | 2 +- components.d.ts | 5 --- components/cosetta.vue | 18 ++++----- components/header.vue | 6 +-- components/upload.vue | 43 ++++++++++++--------- pages/c/[cosetta].vue | 29 ++++++++++++-- pages/index.vue | 2 +- server/api/comment.post.js | 12 ++++++ server/api/comments/[cosetta_uuid].js | 9 +++++ server/api/cosetta/{[name].js => [uuid].js} | 3 +- server/api/cosette.js | 5 +-- server/api/cosette.post.js | 6 +-- server/controller.js | 35 +++++++++++++---- 14 files changed, 121 insertions(+), 65 deletions(-) create mode 100644 server/api/comment.post.js create mode 100644 server/api/comments/[cosetta_uuid].js rename server/api/cosetta/{[name].js => [uuid].js} (55%) diff --git a/README.md b/README.md index d90610e..ee992c2 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,6 @@ Make sure to install the dependencies: # yarn yarn install -# npm -npm install - -# pnpm -pnpm install --shamefully-hoist ``` ## Development Server @@ -22,7 +17,7 @@ pnpm install --shamefully-hoist Start the development server on http://localhost:3000 ```bash -npm run dev +yarn dev ``` ## Production @@ -30,13 +25,13 @@ npm run dev Build the application for production: ```bash -npm run build +yarn build ``` Locally preview production build: ```bash -npm run preview +yarn preview ``` Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information. diff --git a/app.vue b/app.vue index 519743d..b802e1e 100644 --- a/app.vue +++ b/app.vue @@ -2,7 +2,7 @@
- +
diff --git a/components.d.ts b/components.d.ts index dc5d1ea..22693f2 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,11 +8,6 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { 'IconIc:baselineAdd': typeof import('~icons/ic/baseline-add')['default'] - 'IconMaterialSymbols:add': typeof import('~icons/material-symbols/add')['default'] - 'IconSimpleIcons:add': typeof import('~icons/simple-icons/add')['default'] - 'IconSimpleIcons:addthis': typeof import('~icons/simple-icons/addthis')['default'] - 'IconSimpleIcons:nuxtdotjs': typeof import('~icons/simple-icons/nuxtdotjs')['default'] - 'IconSimpleIcons:plus': typeof import('~icons/simple-icons/plus')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/components/cosetta.vue b/components/cosetta.vue index 1d19909..a7c49df 100644 --- a/components/cosetta.vue +++ b/components/cosetta.vue @@ -7,13 +7,13 @@ const { cosetta } = defineProps({ }) \ No newline at end of file diff --git a/components/header.vue b/components/header.vue index 0b58fe5..b8b9e9d 100644 --- a/components/header.vue +++ b/components/header.vue @@ -13,7 +13,7 @@ @@ -23,9 +23,9 @@
diff --git a/pages/c/[cosetta].vue b/pages/c/[cosetta].vue index d1eeabc..9dbf76a 100644 --- a/pages/c/[cosetta].vue +++ b/pages/c/[cosetta].vue @@ -1,14 +1,35 @@ diff --git a/pages/index.vue b/pages/index.vue index d55d21e..4b7803a 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -10,7 +10,7 @@ const cosette = await $fetch('/api/cosette')