export default { name: "CookbookForm", setup() { const { ref } = Vue; const title = ref("SI18.5 - Diffractive Cookbook"); const description = ref("Compiling and sharing methods for diffractive reading."); const nature = ref("Methods"); const logs = ref([ "Do the assignment proposed by Femke", "While doing the assignment, make sure to track your method with the help of the following form", "This method will be used by others and applied on different resources", ]); const who = ref("Grr, Kamo, Kimberley"); const submit = function () { fetch("https://hub.xpub.nl/soupboat/cookbook/", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ title: title.value, description: description.value, nature: nature.value, logs: logs.value, who: who.value, }), }); }; return { title, description, nature, logs, who, submit }; }, template: `
`, };