Skip to content

Commit 7517ce8

Browse files
committed
chore: update demo deps
1 parent 22667f7 commit 7517ce8

File tree

9 files changed

+1712
-2163
lines changed

9 files changed

+1712
-2163
lines changed

demo/.eslintrc.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: ["@nuxt/eslint-config"],
4+
};

demo/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

demo/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
Live demo: https://n3-supabase.netlify.app
66

77
- Frontend:
8-
- [Nuxt 3](https://v3.nuxtjs.org/) - a Vuejs framework.
9-
- [Tailwind](https://tailwindcss.com/) for styling and layout.
10-
- [Supabase Module](https://github.com/nuxt-community/supabase-module) for user management and supabase data client.
8+
- [Nuxt 3](https://nuxt.com/) - The Vue Framework for Web Architects
9+
- [TailwindCSS](https://tailwindcss.com/) for styling and layout.
10+
- [Supabase Module](https://github.com/nuxt-modules/supabase) for user management and supabase data client.
1111
- Backend:
12-
- [app.supabase.io](https://app.supabase.io/): hosted Postgres database with restful API for usage with Supabase.js.
12+
- [app.supabase.io](https://app.supabase.com/): hosted Postgres database with restful API for usage with Supabase.js.
1313

1414
## Setup
1515

1616
Make sure to install the dependencies
1717

1818
```bash
19-
yarn install
19+
pnpm i
2020
```
2121

2222
Create a project on [Supabase](https://supabase.com).
@@ -47,15 +47,15 @@ SUPABASE_KEY="<your_key>"
4747
Start the development server on http://localhost:3000
4848

4949
```bash
50-
yarn dev
50+
npm run dev
5151
```
5252

5353
## Production
5454

5555
Build the application for production:
5656

5757
```bash
58-
yarn build
58+
npm run build
5959
```
6060

6161
Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment).

demo/components/AppHeader.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const toggleDark = () => {
77
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark'
88
}
99
10-
const colorModeIcon = computed(() => colorMode.preference === 'dark' ? 'heroicons-outline:moon' : 'heroicons-outline:sun')
10+
const colorModeIcon = computed(() => colorMode.preference === 'dark' ? 'i-heroicons-outline-moon' : 'i-heroicons-outline-sun')
1111
1212
const logout = async () => {
1313
await client.auth.signOut()
@@ -25,19 +25,28 @@ const logout = async () => {
2525
variant="transparent"
2626
target="_blank"
2727
to="https://github.com/nuxt-modules/supabase/tree/main/demo"
28-
icon="heroicons-outline:external-link"
28+
icon="i-heroicons-outline-external-link"
2929
/>
3030
<UButton
3131
label="Hosted on Netlify"
3232
variant="transparent"
3333
target="_blank"
3434
to="https://netlify.com"
35-
icon="heroicons-outline:external-link"
35+
icon="i-heroicons-outline-external-link"
3636
/>
3737
</div>
3838
<div class="flex items-center">
39-
<UButton variant="transparent" :icon="colorModeIcon" @click="toggleDark" />
40-
<UButton v-if="user" class="u-text-white" variant="transparent" @click="logout">
39+
<UButton
40+
variant="transparent"
41+
:icon="colorModeIcon"
42+
@click="toggleDark"
43+
/>
44+
<UButton
45+
v-if="user"
46+
class="u-text-white"
47+
variant="transparent"
48+
@click="logout"
49+
>
4150
Logout
4251
</UButton>
4352
</div>

demo/nuxt.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default defineNuxtConfig({
1010
ui: {
1111
colors: {
1212
primary: 'green'
13-
}
13+
},
14+
icons: ['mdi', 'heroicons', 'heroicons-outline']
1415
}
1516
})

demo/package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@
1010
"lint": "eslint ."
1111
},
1212
"devDependencies": {
13-
"@nuxtjs/eslint-config-typescript": "^12.0.0",
14-
"@nuxthq/ui": "^1.2.3",
13+
"@iconify-json/heroicons": "^1.1.10",
14+
"@iconify-json/heroicons-outline": "^1.1.6",
15+
"@iconify-json/mdi": "^1.1.50",
16+
"@nuxt/eslint-config": "^0.1.1",
17+
"@nuxthq/ui": "^1.2.10",
1518
"@nuxtjs/color-mode": "^3.2.0",
1619
"@nuxtjs/supabase": "^0.3.5",
17-
"eslint": "^8.37.0",
18-
"nuxt": "^3.3.3",
19-
"typescript": "^5.0.3"
20+
"eslint": "^8.38.0",
21+
"nuxt": "^3.4.1",
22+
"typescript": "^5.0.4"
23+
},
24+
"resolutions": {
25+
"consola": "^3.0.0"
2026
}
2127
}

demo/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ watchEffect(() => {
1717
<LoginCard>
1818
<UButton
1919
class="mt-3"
20-
icon="mdi:github"
20+
icon="i-mdi-github"
2121
block
2222
label="Github"
2323
variant="black"

demo/pages/tasks.vue

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ const fetchTasksFromServerRoute = async () => {
6161
<h1 class="mb-12 text-6xl font-bold u-text-white">
6262
Todo List.
6363
</h1>
64-
<form class="flex gap-2 my-2" @submit.prevent="addTask">
64+
<form
65+
class="flex gap-2 my-2"
66+
@submit.prevent="addTask"
67+
>
6568
<UInput
6669
v-model="newTask"
6770
:loading="loading"
@@ -74,11 +77,17 @@ const fetchTasksFromServerRoute = async () => {
7477
autofocus
7578
autocomplete="off"
7679
/>
77-
<UButton type="submit" variant="white">
80+
<UButton
81+
type="submit"
82+
variant="white"
83+
>
7884
Add
7985
</UButton>
8086
</form>
81-
<UCard v-if="tasks?.length > 0" body-class="px-6 py-2 overflow-hidden">
87+
<UCard
88+
v-if="tasks?.length > 0"
89+
body-class="px-6 py-2 overflow-hidden"
90+
>
8291
<ul>
8392
<li
8493
v-for="task of tasks"
@@ -105,7 +114,7 @@ const fetchTasksFromServerRoute = async () => {
105114
class="ml-3 text-red-600"
106115
size="sm"
107116
variant="transparent"
108-
icon="heroicons-outline:trash"
117+
icon="i-heroicons-outline-trash"
109118
@click="removeTask(task)"
110119
/>
111120
</div>
@@ -122,9 +131,17 @@ const fetchTasksFromServerRoute = async () => {
122131
<UModal v-model="isModalOpen">
123132
<h2 class="mb-4">
124133
Tasks fetched from
125-
<a href="https://nuxt.com/docs/guide/directory-structure/server" target="_blank" class="text-primary-500 underline">Nuxt Server route</a>
134+
<a
135+
href="https://nuxt.com/docs/guide/directory-structure/server"
136+
target="_blank"
137+
class="text-primary-500 underline"
138+
>Nuxt Server route</a>
126139
with the use of the
127-
<a href="https://supabase.nuxtjs.org/usage/services/server-supabase-client" target="_blank" class="text-primary-500 underline">serverSupabaseClient</a>:
140+
<a
141+
href="https://supabase.nuxtjs.org/usage/services/server-supabase-client"
142+
target="_blank"
143+
class="text-primary-500 underline"
144+
>serverSupabaseClient</a>:
128145
</h2>
129146
<pre>
130147
{{ tasksFromServer }}

0 commit comments

Comments
 (0)