-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(framework/vue): framework support for Vue.js #464
Conversation
Hi, this looks great! i already implemented the there are a couple of things we need to add:
<!-- ./routes/index.vue -->
<script>
// this will be striped in client
export const data = {
get: () => {
return new Response(JSON.stringify({ ... }))
}
}
</script>
<script setup>
import { Head, Link, useData } from "aleph/vue"
const { data } = await useData()
</script>
<template>
<Head>
<title>Page</title>
</Head>
<p>Page data: {{ data }}</p>
<Link to="/blog">Blog</Link>
</template> |
@ije Thank you for your reply, I think I was done with |
@@ -30,6 +32,19 @@ deno task start examples/react-app | |||
deno task build examples/react-app | |||
``` | |||
|
|||
### vue-app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
I found |
check https://dash.deno.com, it is built by aleph/react, support session/i18n is not hard although, i will add an auth middleware later |
@ije I found your code with more detail, like |
Thank you for your reply. I was wonder how it works |
I think this PR can be review, I want to refactor https://bing-wallpaper.deno.dev after this PR merge, it will be testting. |
@linbingquan 👍 great job! i will look into it, thanks |
the deploy build testing was failed, i will look into it |
OK, I was try to found the error for |
…e data without refresh.
@linbingquan i'm going to merge this pr, you done this vary well! congratulations! 🎉 |
i will fix the build issue later, please keep improving the vue framework if you have time |
Related issue: #461
TODO
useData
hookHead
componentLink
component