diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..0243211 --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cbad2f0..24de1e7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,11 +5,9 @@ - - + - - { + "keyToString": { + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.git.unshallow": "true", + "WebServerToolWindowFactoryState": "false", + "code.cleanup.on.save": "true", + "git-widget-placeholder": "main", + "last_opened_file_path": "/home/tiradoe/Projects/movie-night/web/src/types", + "list.type.of.created.stylesheet": "CSS", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.standard": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.standard": "", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "npm.dev.executor": "Run", + "prettierjs.PrettierConfiguration.Package": "/home/tiradoe/Projects/movie-night/web/src/node_modules/prettier", + "rearrange.code.on.save": "true", + "settings.editor.selected.configurable": "configurable.group.editor", + "ts.external.directory.path": "/home/tiradoe/Projects/movie-night/web/src/node_modules/typescript/lib", + "vue.rearranger.settings.migration": "true" }, - "keyToStringList": { - "vue.recent.templates": [ - "Vue Composition API Component" + "keyToStringList": { + "vue.recent.templates": [ + "Vue Composition API Component" ] } -}]]> +} @@ -117,8 +114,8 @@ - @@ -146,7 +143,6 @@ - diff --git a/src/nuxt.config.ts b/src/nuxt.config.ts index 17d32de..4619992 100644 --- a/src/nuxt.config.ts +++ b/src/nuxt.config.ts @@ -24,7 +24,7 @@ export default defineNuxtConfig({ runtimeConfig: { public: { - apiURL: process.env.API_URL || "http://localhost:8000/v1", + apiURL: process.env.API_URL || "http://localhost:8000/api", }, }, diff --git a/src/pages/lists/[id].vue b/src/pages/lists/[id].vue index 5eb525a..4408eaa 100644 --- a/src/pages/lists/[id].vue +++ b/src/pages/lists/[id].vue @@ -120,9 +120,9 @@ const getList = async function (list_id: number) { }; const hideScheduled = function () { - if (hide_scheduled.value && movies.value.length > 0) { + if (hide_scheduled && movies.value.length > 0) { let filtered = movies.value.filter((movie) => { - return !movie.has_been_scheduled; + return movie.last_watched === null; }); if (typeof filtered != "undefined") { filtered_movies.value = filtered; diff --git a/src/types/movie.ts b/src/types/movie.ts index 39e67bc..f8cfed0 100644 --- a/src/types/movie.ts +++ b/src/types/movie.ts @@ -10,5 +10,5 @@ export type Movie = { actors: string; plot: string; poster: string; - has_been_scheduled: boolean; + last_watched: string; };