Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"semi": false,
"trailingComma": "none"
}
12 changes: 5 additions & 7 deletions app/app.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
<script setup lang="ts">
const colorMode = useColorMode()

const color = computed(() => colorMode.value === 'dark' ? '#1b1718' : 'white')
const color = computed(() => (colorMode.value === 'dark' ? '#1b1718' : 'white'))

useHead({
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ key: 'theme-color', name: 'theme-color', content: color }
],
link: [
{ rel: 'icon', href: '/favicon.ico' }
],
link: [{ rel: 'icon', href: '/favicon.ico' }],
htmlAttrs: {
lang: 'en'
lang: 'pt-br'
}
})

const title = 'Nuxt Dashboard Template'
const description = 'A professional dashboard template built with Nuxt UI, featuring multiple pages, data visualization, and comprehensive management capabilities for creating powerful admin interfaces.'
const title = 'Vi No Uber'
const description = 'Aplicação web para anunciar em viagens de aplicativo.'

useSeoMeta({
title,
Expand Down
52 changes: 0 additions & 52 deletions app/components/NotificationsSlideover.vue

This file was deleted.

4 changes: 2 additions & 2 deletions app/components/home/HomeStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function formatCurrency(value: number): string {
}

const baseStats = [{
title: 'Customers',
title: 'Usuários',
icon: 'i-lucide-users',
minValue: 400,
maxValue: 1000,
Expand Down Expand Up @@ -70,7 +70,7 @@ const { data: stats } = await useAsyncData<Stat[]>('stats', async () => {
:key="index"
:icon="stat.icon"
:title="stat.title"
to="/customers"
to="/users"
variant="subtle"
:ui="{
container: 'gap-y-1.5',
Expand Down
80 changes: 0 additions & 80 deletions app/components/inbox/InboxList.vue

This file was deleted.

165 changes: 0 additions & 165 deletions app/components/inbox/InboxMail.vue

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const state = reactive<Partial<Schema>>({

const toast = useToast()
async function onSubmit(event: FormSubmitEvent<Schema>) {
toast.add({ title: 'Success', description: `New customer ${event.data.name} added`, color: 'success' })
toast.add({ title: 'Success', description: `Novo usuário ${event.data.name} adicionado`, color: 'success' })
open.value = false
}
</script>

<template>
<UModal v-model:open="open" title="New customer" description="Add a new customer to the database">
<UButton label="New customer" icon="i-lucide-plus" />
<UModal v-model:open="open" title="Novo usuário" description="Adicione um novo usuário ao banco de dados">
<UButton label="Novo usuário" icon="i-lucide-plus" />

<template #body>
<UForm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ async function onSubmit() {
<template>
<UModal
v-model:open="open"
:title="`Delete ${count} customer${count > 1 ? 's' : ''}`"
:description="`Are you sure, this action cannot be undone.`"
:title="`Excluir ${count} usuário${count > 1 ? 's' : ''}`"
:description="`Você tem certeza, esta ação não pode ser desfeita.`"
>
<slot />

<template #body>
<div class="flex justify-end gap-2">
<UButton
label="Cancel"
label="Cancelar"
color="neutral"
variant="subtle"
@click="open = false"
/>
<UButton
label="Delete"
label="Excluir"
color="error"
variant="solid"
loading-auto
Expand Down
Loading
Loading