From 4fa0eec542d919980b30e98cba94a01af74077e1 Mon Sep 17 00:00:00 2001 From: terrablue <102580937+terrablue@users.noreply.github.com> Date: Thu, 19 Oct 2023 23:34:16 +0300 Subject: [PATCH] eslint alignment --- packages/frontend/src/frontends/vue/module.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/frontends/vue/module.js b/packages/frontend/src/frontends/vue/module.js index 636cb671..36c90068 100644 --- a/packages/frontend/src/frontends/vue/module.js +++ b/packages/frontend/src/frontends/vue/module.js @@ -7,21 +7,21 @@ const name = "vue"; const dependencies = ["vue"]; const default_extension = "vue"; -const handler = config => (name, props = {}, { status = Status.OK, page } = {}) => - async app => { - const { make, createSSRApp, render } = config; - const imported = await make(name, props); - const component = createSSRApp({ +const handler = ({ make, createSSRApp, render }) => + (name, props = {}, { status = Status.OK, page } = {}) => + async app => { + const imported = await make(name, props); + const component = createSSRApp({ render: imported.component.render, data: () => props, }); - const body = await render(component); + const body = await render(component); - return new Response(await app.render({ body, page }), { + return new Response(await app.render({ body, page }), { status, headers: { ...app.headers(), "Content-Type": MediaType.TEXT_HTML }, }); - }; + }; export default ({ directory,