Merge pull request 'fix-hide-scheduled' (#10) from fix-hide-scheduled into main
Reviewed-on: #10
This commit is contained in:
commit
1a98061f97
5 changed files with 38 additions and 41 deletions
7
.idea/jsLibraryMappings.xml
generated
7
.idea/jsLibraryMappings.xml
generated
|
@ -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
64
.idea/workspace.xml
generated
|
@ -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[{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"RunOnceActivity.git.unshallow": "true",
|
"RunOnceActivity.git.unshallow": "true",
|
||||||
"WebServerToolWindowFactoryState": "false",
|
"WebServerToolWindowFactoryState": "false",
|
||||||
"code.cleanup.on.save": "true",
|
"code.cleanup.on.save": "true",
|
||||||
"git-widget-placeholder": "main",
|
"git-widget-placeholder": "main",
|
||||||
"last_opened_file_path": "/home/tiradoe/Projects/movie-night/web/src/types",
|
"junie.onboarding.icon.badge.shown": "true",
|
||||||
"list.type.of.created.stylesheet": "CSS",
|
"last_opened_file_path": "/home/tiradoe/Projects/MovieNight/movie-night-web",
|
||||||
"node.js.detected.package.eslint": "true",
|
"list.type.of.created.stylesheet": "CSS",
|
||||||
"node.js.detected.package.standard": "true",
|
"node.js.detected.package.eslint": "true",
|
||||||
"node.js.detected.package.tslint": "true",
|
"node.js.detected.package.standard": "true",
|
||||||
"node.js.selected.package.eslint": "(autodetect)",
|
"node.js.detected.package.tslint": "true",
|
||||||
"node.js.selected.package.standard": "",
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
"node.js.selected.package.tslint": "(autodetect)",
|
"node.js.selected.package.standard": "",
|
||||||
"nodejs_package_manager_path": "npm",
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
"npm.dev.executor": "Run",
|
"nodejs_package_manager_path": "npm",
|
||||||
"prettierjs.PrettierConfiguration.Package": "/home/tiradoe/Projects/movie-night/web/src/node_modules/prettier",
|
"npm.dev.executor": "Run",
|
||||||
"rearrange.code.on.save": "true",
|
"prettierjs.PrettierConfiguration.Package": "/home/tiradoe/Projects/movie-night/web/src/node_modules/prettier",
|
||||||
"settings.editor.selected.configurable": "configurable.group.editor",
|
"rearrange.code.on.save": "true",
|
||||||
"ts.external.directory.path": "/home/tiradoe/Projects/movie-night/web/src/node_modules/typescript/lib",
|
"settings.editor.selected.configurable": "configurable.group.editor",
|
||||||
"vue.rearranger.settings.migration": "true"
|
"ts.external.directory.path": "/home/tiradoe/Projects/MovieNight/movie-night-web/src/node_modules/typescript/lib",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
},
|
},
|
||||||
"keyToStringList": {
|
"keyToStringList": {
|
||||||
"vue.recent.templates": [
|
"vue.recent.templates": [
|
||||||
"Vue Composition API Component"
|
"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>
|
||||||
|
|
|
@ -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",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue