diff --git a/docs/.vitepress/components/DockerCompose.vue b/docs/.vitepress/components/DockerCompose.vue index dd16bba..e9de2bf 100644 --- a/docs/.vitepress/components/DockerCompose.vue +++ b/docs/.vitepress/components/DockerCompose.vue @@ -30,9 +30,15 @@ Delete + @@ -69,7 +75,10 @@ export default { pgid: "$GID", tz: "Etc/UTC", port: "8111", - volumes: ["./shoko-config:/home/shoko/.shoko"], + volumes: [ + ["./shoko-config", "/home/shoko/.shoko"], + ["", "/mnt/anime"] + ], }; const userInput = ref({...initialUserInput}); @@ -78,12 +87,12 @@ export default { userInput.value[key] = value; }; - const updateVolume = (index, value) => { - userInput.value.volumes[index] = value; + const updateVolume = (index, position, value) => { + userInput.value.volumes[index][position] = value; }; const addVolume = () => { - userInput.value.volumes.push(""); + userInput.value.volumes.push(["", ""]); }; const removeVolume = (index) => { @@ -106,7 +115,7 @@ services: ports: - "${userInput.value.port}:8111" volumes: - ${userInput.value.volumes.map((volume) => `- "${volume}"`).join("\n ")}`; + ${userInput.value.volumes.filter((volume) => volume[0] && volume[1]).map((volume) => `- "${volume.join(":")}"`).join("\n ")}`; }); return {