Skip to content

Commit

Permalink
chore(lint): Use eslint-config-typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Nov 7, 2023
1 parent 6acb67f commit 9fae07f
Show file tree
Hide file tree
Showing 8 changed files with 3,399 additions and 1,453 deletions.
26 changes: 6 additions & 20 deletions components/Account/Profile.vue
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
<template>
<div>
<n-upload
class="overflow-hidden w-min mx-auto my-4"
list-type="image-card"
:max="1"
accept="image/*"
:custom-request="(e) => (model.file = e.file.file)"
>
<n-upload class="overflow-hidden w-min mx-auto my-4" list-type="image-card" :max="1" accept="image/*"
:custom-request="(e) => (model.file = e.file.file)">
<img v-if="model.picture" :src="model.picture" class="object-cover" />
</n-upload>

<n-form
ref="formRef"
@submit.prevent="onSubmit(updateAccount)"
class="flex-1"
>
<n-form ref="formRef" @submit.prevent="onSubmit(updateAccount)" class="flex-1">
<n-form-item label="Name">
<n-input v-model:value="model.name"></n-input>
</n-form-item>

<div class="flex gap-2">
<n-button
attr-type="submit"
:loading="pending"
:disabled="pending || !edited"
type="primary"
>Update profile</n-button
>
<n-button attr-type="submit" :loading="pending" :disabled="pending || !edited" type="primary">Update
profile</n-button>

<n-button attr-type="reset" @click="reset" :disabled="pending || !edited">Reset</n-button>
<n-button attr-type="reset" @click="reset" :disabled="pending || !edited">Reset</n-button>
</div>
</n-form>
</div>
Expand Down
8 changes: 4 additions & 4 deletions config/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ export const auth: Partial<ModuleOptions> = {
baseUrl: process.env.AUTH_BASE_URL,

accessToken: {
jwtSecret: process.env.AUTH_ACCESS_TOKEN_SECRET || "",
jwtSecret: process.env.AUTH_ACCESS_TOKEN_SECRET ?? "",
},

refreshToken: {
jwtSecret: process.env.AUTH_REFRESH_TOKEN_SECRET || "",
jwtSecret: process.env.AUTH_REFRESH_TOKEN_SECRET ?? "",
},

oauth: {
google: {
clientId: process.env.AUTH_OAUTH_GOOGLE_CLIENT_ID || "",
clientSecret: process.env.AUTH_OAUTH_GOOGLE_CLIENT_SECRET || "",
clientId: process.env.AUTH_OAUTH_GOOGLE_CLIENT_ID ?? "",
clientSecret: process.env.AUTH_OAUTH_GOOGLE_CLIENT_SECRET ?? "",
scopes: "email profile",
authorizeUrl: "https://accounts.google.com/o/oauth2/auth",
tokenUrl: "https://accounts.google.com/o/oauth2/token",
Expand Down
10 changes: 6 additions & 4 deletions docs/components/Logo.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div class="flex items-center gap-3">
<Icon name="logos:nuxt-icon" size="40px"></Icon>
<p strong>Nuxt starter</p>
</div>
<div class="flex items-center gap-3">
<Icon name="logos:nuxt-icon" size="40px" />
<p strong>
Nuxt starter
</p>
</div>
</template>
14 changes: 7 additions & 7 deletions docs/components/content/Grid.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<div>
<h3 class="text-xl font-semibold my-8">
{{ title }}
</h3>
<div class="grid md:grid-cols-3 gap-4">
<slot></slot>
</div>
<div>
<h3 class="text-xl font-semibold my-8">
{{ title }}
</h3>
<div class="grid md:grid-cols-3 gap-4">
<slot />
</div>
</div>
</template>

<script setup lang="ts">
Expand Down
3,193 changes: 1,829 additions & 1,364 deletions docs/components/content/Hero/Graphic.vue

Large diffs are not rendered by default.

55 changes: 28 additions & 27 deletions docs/components/content/Hero/Index.vue
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
<template>
<div class="wrapper">

<div>
<p class="title">
Nuxt starter
</p>

<p class="description">Quickly get started on your Nuxt 3 project</p>

<slot name="extra"></slot>

<div class="actions">

<ButtonLink href="https://nuxt-starter-app.bg.tn" color="blue">
Demo
</ButtonLink>

<NuxtLink to="/intro"
class="py-px mt-px font-medium text-gray-800 border-b-2 border-transparent dark:text-gray-100 hover:border-gray-800 dark:hover:border-gray-100">
Documentation
</NuxtLink>
</div>
</div>

<div class="graphic">
<Graphic />
</div>
<div class="wrapper">
<div>
<p class="title">
Nuxt starter
</p>

<p class="description">
Quickly get started on your Nuxt 3 project
</p>

<slot name="extra" />

<div class="actions">
<ButtonLink href="https://nuxt-starter-app.bg.tn" color="blue">
Demo
</ButtonLink>

<NuxtLink
to="/intro"
class="py-px mt-px font-medium text-gray-800 border-b-2 border-transparent dark:text-gray-100 hover:border-gray-800 dark:hover:border-gray-100"
>
Documentation
</NuxtLink>
</div>
</div>

<div class="graphic">
<Graphic />
</div>
</div>
</template>

<style scoped>
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@
"generate": "prisma generate && nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"release": "changelogen --release && git push --follow-tags"
"release": "npm run lint && changelogen --release && git push --follow-tags",
"lint": "eslint ."
},
"devDependencies": {
"@bg-dev/nuxt-auth": "2.0.2",
"@bg-dev/nuxt-naiveui": "1.5.2",
"@nuxt/devtools": "^1.0.0",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/tailwindcss": "^6.9.4",
"@types/ua-parser-js": "^0.7.38",
"changelogen": "^0.5.5",
"eslint": "^8.53.0",
"nuxt": "^3.8.1",
"nuxt-s3": "0.2.2",
"nuxt-security": "^0.14.4"
Expand Down

0 comments on commit 9fae07f

Please sign in to comment.