Merge pull request 'fix-hide-scheduled' (#10) from fix-hide-scheduled into main

Reviewed-on: #10
This commit is contained in:
Edward Tirado Jr 2025-05-29 18:56:32 +00:00
commit 1a98061f97
5 changed files with 38 additions and 41 deletions

View file

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="file://$PROJECT_DIR$/src" libraries="{web/src/node_modules}" />
<file url="PROJECT" libraries="{@types/tailwindcss, web/src/node_modules}" />
</component>
</project>

64
.idea/workspace.xml generated
View file

@ -5,9 +5,11 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="5e320804-68c9-4504-97d5-d421de3438b2" name="Changes" comment=""> <list default="true" id="5e320804-68c9-4504-97d5-d421de3438b2" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/jsLibraryMappings.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/modal-content/ShowMovie.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/modal-content/ShowMovie.vue" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/nuxt.config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/nuxt.config.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/lists/[id].vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/lists/[id].vue" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/pages/lists/[id].vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/lists/[id].vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/types/movie.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/movie.ts" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -57,36 +59,37 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent">{ <component name="PropertiesComponent"><![CDATA[{
&quot;keyToString&quot;: { "keyToString": {
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;, "RunOnceActivity.OpenProjectViewOnStart": "true",
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;, "RunOnceActivity.ShowReadmeOnStart": "true",
&quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;, "RunOnceActivity.git.unshallow": "true",
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;, "WebServerToolWindowFactoryState": "false",
&quot;code.cleanup.on.save&quot;: &quot;true&quot;, "code.cleanup.on.save": "true",
&quot;git-widget-placeholder&quot;: &quot;main&quot;, "git-widget-placeholder": "main",
&quot;last_opened_file_path&quot;: &quot;/home/tiradoe/Projects/movie-night/web/src/types&quot;, "junie.onboarding.icon.badge.shown": "true",
&quot;list.type.of.created.stylesheet&quot;: &quot;CSS&quot;, "last_opened_file_path": "/home/tiradoe/Projects/MovieNight/movie-night-web",
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;, "list.type.of.created.stylesheet": "CSS",
&quot;node.js.detected.package.standard&quot;: &quot;true&quot;, "node.js.detected.package.eslint": "true",
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;, "node.js.detected.package.standard": "true",
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;, "node.js.detected.package.tslint": "true",
&quot;node.js.selected.package.standard&quot;: &quot;&quot;, "node.js.selected.package.eslint": "(autodetect)",
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;, "node.js.selected.package.standard": "",
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;, "node.js.selected.package.tslint": "(autodetect)",
&quot;npm.dev.executor&quot;: &quot;Run&quot;, "nodejs_package_manager_path": "npm",
&quot;prettierjs.PrettierConfiguration.Package&quot;: &quot;/home/tiradoe/Projects/movie-night/web/src/node_modules/prettier&quot;, "npm.dev.executor": "Run",
&quot;rearrange.code.on.save&quot;: &quot;true&quot;, "prettierjs.PrettierConfiguration.Package": "/home/tiradoe/Projects/movie-night/web/src/node_modules/prettier",
&quot;settings.editor.selected.configurable&quot;: &quot;configurable.group.editor&quot;, "rearrange.code.on.save": "true",
&quot;ts.external.directory.path&quot;: &quot;/home/tiradoe/Projects/movie-night/web/src/node_modules/typescript/lib&quot;, "settings.editor.selected.configurable": "configurable.group.editor",
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot; "ts.external.directory.path": "/home/tiradoe/Projects/MovieNight/movie-night-web/src/node_modules/typescript/lib",
"vue.rearranger.settings.migration": "true"
}, },
&quot;keyToStringList&quot;: { "keyToStringList": {
&quot;vue.recent.templates&quot;: [ "vue.recent.templates": [
&quot;Vue Composition API Component&quot; "Vue Composition API Component"
] ]
} }
}</component> }]]></component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src/types" /> <recent name="$PROJECT_DIR$/src/types" />
@ -114,8 +117,8 @@
<component name="SharedIndexes"> <component name="SharedIndexes">
<attachedChunks> <attachedChunks>
<set> <set>
<option value="bundled-js-predefined-d6986cc7102b-f27c65a3e318-JavaScript-PS-251.23774.436" /> <option value="bundled-js-predefined-d6986cc7102b-6a121458b545-JavaScript-PS-251.25410.148" />
<option value="bundled-php-predefined-a98d8de5180a-aaeaa8632555-com.jetbrains.php.sharedIndexes-PS-251.23774.436" /> <option value="bundled-php-predefined-a98d8de5180a-c5828cf854d9-com.jetbrains.php.sharedIndexes-PS-251.25410.148" />
</set> </set>
</attachedChunks> </attachedChunks>
</component> </component>
@ -143,6 +146,7 @@
<workItem from="1745366380362" duration="223000" /> <workItem from="1745366380362" duration="223000" />
<workItem from="1745366610986" duration="319000" /> <workItem from="1745366610986" duration="319000" />
<workItem from="1745366940811" duration="4297000" /> <workItem from="1745366940811" duration="4297000" />
<workItem from="1748541588253" duration="2587000" />
</task> </task>
<servers /> <servers />
</component> </component>

View file

@ -24,7 +24,7 @@ export default defineNuxtConfig({
runtimeConfig: { runtimeConfig: {
public: { public: {
apiURL: process.env.API_URL || "http://localhost:8000/api", apiURL: process.env.API_URL || "http://localhost:8000/v1",
}, },
}, },

View file

@ -120,9 +120,9 @@ const getList = async function (list_id: number) {
}; };
const hideScheduled = function () { const hideScheduled = function () {
if (hide_scheduled && movies.value.length > 0) { if (hide_scheduled.value && movies.value.length > 0) {
let filtered = movies.value.filter((movie) => { let filtered = movies.value.filter((movie) => {
return movie.last_watched === null; return !movie.has_been_scheduled;
}); });
if (typeof filtered != "undefined") { if (typeof filtered != "undefined") {
filtered_movies.value = filtered; filtered_movies.value = filtered;

View file

@ -10,5 +10,5 @@ export type Movie = {
actors: string; actors: string;
plot: string; plot: string;
poster: string; poster: string;
last_watched: string; has_been_scheduled: boolean;
}; };