Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Bruno Predot
/
tmdb_test
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Bruno Predot
2025-04-23 19:46:33 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
6086e6c33688c8e251adb75930d2d13acc98d3f8
6086e6c3
2 parents
d974e6c2
38809be9
Merge branch 'hotfix/0.1.2'
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
79 additions
and
31 deletions
.eslintrc.cjs
.prettierignore
.prettierrc
CHANGELOG.md
composables/tMDB.ts
eslint.config.mjs
nuxt.config.ts
package-lock.json
package.json
.eslintrc.cjs
View file @
6086e6c
module.exports = {
root: true,
extends: ['@nuxtjs/eslint-config', 'plugin:prettier/recommended'],
};
\ No newline at end of file
extends: ["@nuxtjs/eslint-config", "plugin:prettier/recommended"],
};
...
...
.prettierignore
0 → 100644
View file @
6086e6c
node_modules
logs
*.log*
.output
.nuxt
.nitro
.cache
dist
.gitignore
.env
.env.*
!.env.example
CHANGELOG.md
CHANGELOG_RELEASE.md
.idea
\ No newline at end of file
...
...
.prettierrc
View file @
6086e6c
{
"semi"
:
true
,
"trailingComma"
:
"all"
,
"singleQuote"
:
tru
e
,
"singleQuote"
:
fals
e
,
"printWidth"
:
120
,
"arrowParens"
:
"always"
,
"useTabs"
:
false
,
"tabWidth"
:
2
}
\ No newline at end of file
}
...
...
CHANGELOG.md
View file @
6086e6c
0.
1.2:
-
Ajout fichier .prettierignore.
-
Installation module vuetify + modif script lint dans package.json.
-
Installation de lucide-vue-next pour librairie d'icônes.
-
Ajout composable tMDB.
0.
1.1:
-
Installation et configuration d'eslint et prettier.
-
Ajout de variables dans le runtimeConfig du fichier nuxt.config.
...
...
composables/tMDB.ts
0 → 100644
View file @
6086e6c
import
type
{
RuntimeConfig
}
from
"nuxt/schema"
;
export
const
useTMDB
=
function
()
{
const
runtimeconfig
:
RuntimeConfig
=
useRuntimeConfig
();
const
apiUrl
=
runtimeconfig
.
public
.
apiTMDBUrl
;
const
apiKey
=
runtimeconfig
.
public
.
apiTMDBSecret
;
return
{
apiUrl
,
apiKey
}
}
\ No newline at end of file
...
...
eslint.config.mjs
View file @
6086e6c
// @ts-check
import withNuxt from
'./.nuxt/eslint.config.mjs'
import withNuxt from
"./.nuxt/eslint.config.mjs";
export default withNuxt(
// Your custom configs here
)
export default withNuxt();
// Your custom configs here
...
...
nuxt.config.ts
View file @
6086e6c
// https://nuxt.com/docs/api/configuration/nuxt-config
export
default
defineNuxtConfig
({
compatibilityDate
:
'2024-11-01'
,
compatibilityDate
:
"2024-11-01"
,
devtools
:
{
enabled
:
true
},
app
:
{
head
:
{
title
:
'TMDB Movie App'
,
title
:
"TMDB Movie App"
,
htmlAttrs
:
{
lang
:
"fr"
,
},
meta
:
[
{
charset
:
'utf-8'
},
{
name
:
'viewport'
,
content
:
'width=device-width, initial-scale=1'
},
{
name
:
'description'
,
content
:
'Application de films utilisant l\'API TMDB'
},
{
charset
:
"utf-8"
},
{
name
:
"viewport"
,
content
:
"width=device-width, initial-scale=1"
},
{
name
:
"description"
,
content
:
"Application de films utilisant l'API TMDB"
},
{
name
:
"format-detection"
,
content
:
"telephone=no"
},
],
link
:
[
{
rel
:
'icon'
,
type
:
'image/x-icon'
,
href
:
'/favicon.ico'
}
]
}
link
:
[{
rel
:
"icon"
,
type
:
"image/x-icon"
,
href
:
"/favicon.ico"
}],
},
},
// css: ['~/assets/css/main.scss'],
modules
:
[
'@nuxt/eslint'
,
'@nuxt/icon'
,
'@nuxt/image'
,
"@nuxt/eslint"
,
"@nuxt/icon"
,
"@nuxt/image"
,
[
"@pinia/nuxt"
,
{
...
...
@@ -37,18 +35,19 @@ export default defineNuxtConfig({
],
},
],
'pinia-plugin-persistedstate/nuxt'
,
'@nuxt/scripts'
,
'@nuxt/test-utils'
,
'@nuxt/ui'
,
'@nuxtjs/tailwindcss'
,
'@vueuse/nuxt'
,
"pinia-plugin-persistedstate/nuxt"
,
"@nuxt/scripts"
,
"@nuxt/test-utils"
,
"@nuxt/ui"
,
"@nuxtjs/tailwindcss"
,
"@vueuse/nuxt"
,
"vuetify-nuxt-module"
,
],
// Persisted state config.
piniaPluginPersistedstate
:
{
storage
:
'localStorage'
,
storage
:
"localStorage"
,
cookieOptions
:
{
sameSite
:
'lax'
,
sameSite
:
"lax"
,
},
debug
:
true
,
},
...
...
@@ -63,4 +62,13 @@ export default defineNuxtConfig({
apiTMDBUrl
:
process
.
env
.
NUXT_ENV_TMDB_URL
,
},
},
})
\ No newline at end of file
vuetify
:
{
moduleOptions
:
{
/* module specific options */
},
vuetifyOptions
:
{
/* vuetify options */
},
},
});
...
...
package-lock.json
View file @
6086e6c
This diff is collapsed. Click to expand it.
package.json
View file @
6086e6c
...
...
@@ -9,7 +9,9 @@
"generate"
:
"nuxt generate"
,
"preview"
:
"nuxt preview"
,
"postinstall"
:
"nuxt prepare"
,
"lint"
:
"eslint ."
,
"lint:js"
:
"eslint --ext \".ts,.vue\" ."
,
"lint:prettier"
:
"prettier --write ."
,
"lint"
:
"npm run lint:js && npm run lint:prettier"
,
"format"
:
"prettier --write \"{components,pages,plugins,middleware,layouts,composables,assets}/**/*.{js,jsx,ts,tsx,vue,html,css,scss,json,md}\""
},
"dependencies"
:
{
...
...
@@ -24,11 +26,13 @@
"@vueuse/core"
:
"^13.1.0"
,
"@vueuse/nuxt"
:
"^13.1.0"
,
"eslint"
:
"^9.25.1"
,
"lucide-vue-next"
:
"^0.503.0"
,
"nuxt"
:
"^3.16.2"
,
"pinia"
:
"^3.0.2"
,
"pinia-plugin-persistedstate"
:
"^4.2.0"
,
"vue"
:
"^3.5.13"
,
"vue-router"
:
"^4.5.0"
"vue-router"
:
"^4.5.0"
,
"vuetify-nuxt-module"
:
"^0.18.6"
},
"devDependencies"
:
{
"@nuxtjs/tailwindcss"
:
"^6.13.2"
,
...
...
Please
register
or
login
to post a comment