Skip to content

Commit

Permalink
eslint alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Oct 19, 2023
1 parent 8475842 commit 4fa0eec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/frontend/src/frontends/vue/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4fa0eec

Please sign in to comment.