From ebd6af58ba475074ca58412d7c475b39ff5051a2 Mon Sep 17 00:00:00 2001 From: "Edward Tirado Jr." Date: Thu, 29 May 2025 13:54:48 -0500 Subject: [PATCH 1/2] .idea updates --- .idea/jsLibraryMappings.xml | 7 ---- .idea/workspace.xml | 64 ++++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 37 deletions(-) delete mode 100644 .idea/jsLibraryMappings.xml diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml deleted file mode 100644 index 0243211..0000000 --- a/.idea/jsLibraryMappings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 24de1e7..cbad2f0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,9 +5,11 @@ + - + + - { - "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" + +}]]> @@ -114,8 +117,8 @@ - @@ -143,6 +146,7 @@ + From 1382699dda07f4a2eb0de9a83d95191892027473 Mon Sep 17 00:00:00 2001 From: "Edward Tirado Jr." Date: Thu, 29 May 2025 13:55:55 -0500 Subject: [PATCH 2/2] fixed hide schedule bug --- src/nuxt.config.ts | 2 +- src/pages/lists/[id].vue | 4 ++-- src/types/movie.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nuxt.config.ts b/src/nuxt.config.ts index 4619992..17d32de 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/api", + apiURL: process.env.API_URL || "http://localhost:8000/v1", }, }, diff --git a/src/pages/lists/[id].vue b/src/pages/lists/[id].vue index 4408eaa..5eb525a 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 && movies.value.length > 0) { + if (hide_scheduled.value && movies.value.length > 0) { let filtered = movies.value.filter((movie) => { - return movie.last_watched === null; + return !movie.has_been_scheduled; }); if (typeof filtered != "undefined") { filtered_movies.value = filtered; diff --git a/src/types/movie.ts b/src/types/movie.ts index f8cfed0..39e67bc 100644 --- a/src/types/movie.ts +++ b/src/types/movie.ts @@ -10,5 +10,5 @@ export type Movie = { actors: string; plot: string; poster: string; - last_watched: string; + has_been_scheduled: boolean; };