160 Replies
for context: I have a report which has many weeks. So I want to now only show the weeks that belong to the report that is open. /report/id
is this a supabase thing?
is this a official package from suapabase for nuxt?
or what
and what is reportId ?
because you mayke first that request and then set the reportId?
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
ah yea
i trought it was an existing bug which he reported some weeks ago omg xD
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
@π¨π Marko Bolliger <cannap> @Sr. Full Stack Dev yes so I am using supabase nuxt package. no reportId is what I created thinking it would do something xD. I think the code you send should work so I will try that. Thank you π
what should the file be called, is it [[id]].vue as currently I just have the code in index which I need to move
as the code I mentioned above is a component
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
yes got it thanks π Makes a lot more sense now. 1 other question not sure you know, supabase created date comes back with a really long date is their anyway to format that?
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
thanks thats perfect
also the index.vue inside the [id], this slug should be /reports/[id] right? as currently getting error when I turned the [id] into a folder from [id].vue so not sure if I've done it right
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
hmm ok weird im getting
since i updated it
thats my index which is inside of [id]
when you on window there is a problem with nuxt server restart
edge version of nuxt has included a fix for it
windows ?
the os xD
you put widow so was not sure xD
i am not 10% sure its only on windows
i'm on mac though
can you show the payload you send
this?
.select('id, driver (name, contract_hours ), created_at')
what is name
name is driver.name
that fetches from driver table
.select('id, driver (name, contract_hours ), created_at') i cannot see where you a name
as parameter
there is nothing
script setup>
const client = useSupabaseClient()
// get all reports with name of driver
const { data } = useAsyncData('reports', async () => {
const { data, error } = await client
.from('reports')
.select('id, driver (name, contract_hours ), created_at')
if (error) {
console.log(error)
}
return data
})
console.log(data);
</script>
look
where is name variable
i cannot see
oor contract_hourse
did you post the whole code
this stuff is missing
nvm
sry
i see '' its a string
but still dont understand it
supabase is right but they still miss types
like trcp as example
are you sure the db is in sync
so where I have does driver (name, contract_hours) not get the name and contract_hours from the db? as it was previously\
I think so, how do i check
i dont know
maybe you can add a debug log
from the db so you see each query
add i mean enable
so when I remove name & contract hours it works but without that data ofc which is strange as this is how I had it before
maybe db is not sync
can you make a fullreset on the db?
i know this is not the way to go
do you use migrations?
nope
Restarted still same :9
which db are you using
mysql postgres mongo?
what are you using to call the db
i forgot
I'm using supabase, but its postgres
i also use supabase
with prisma
I'm just using nuxt package with supabase
maybe an relation faild
i had this today
what does that mean sorry
do you have an relation
where you try to add something
i had this problem today
oh no thats not it
an now you made select
well I don't think as
are you german?
when I console.log it I see all the data
nope
did you restart nuxt? xD
yep tried that lol
also macbook or pc? π
no jk
π
hmm
wtf
do you have a repo
its strange as name is there so driver.name should work
not but I can upload it
do it
i will have look but i cannot promise
do you use ts?
go with trpc when its a single one
and you dont have to share the server
not yet as trying to learn vue first xD
ah
you get autocompletion in the use case
vue is easy π
i mean there are also complex stuff or performance thing you have to aware of but
simpler as in other frameworks
@Sr. Full Stack Dev made whole windows in vue xD
I'm currently a wordpress dev so all this is quite new for me. I am currently building a site with Storyblok + nuxt and trying to create this application to learn more about apis and creating a web app
wow
no its not like the real windows he just made the ui
lol
but he will not opensource it
for now π i forgot the demo link
here is the link https://github.com/RomiSinghio/Savari-Payroll
GitHub
GitHub - RomiSinghio/Savari-Payroll
Contribute to RomiSinghio/Savari-Payroll development by creating an account on GitHub.
where is t erros coming
i will not setup a db right now
its on /reports/4
i have no idea
i also dont know what client is+
the sql query should only happen on sever
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
@Romi i think you make sql queries on the client xD
you have very much todo xD
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
the colors are not correct
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
dark
i never installed any other things custom themes or what ever xD
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
OS: Windows 10 10.0.22621
CPU: (6) x64 Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
GitHub
devtools document is not defined Β· Issue #70 Β· danielroe/nuxt-vite...
no idea why this happens normal tests are running :D thanks for this module ξΆ recipes ξ° npx envinfo --system --binaries --browser --npmPackages System: OS: Windows 10 10.0.22621 CPU: (6) x64 Intel(...
maybe i changed i am not sure
can you not get the current one xD
i forgot mine looks better as the dark one i have no idea
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Wow that looks so cool
Oh, have I misunderstood how setup works I thought that runs it on the server ?
wait
i am not sure
π
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Yeah thatβs what I thought
But why am I getting this error xD
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
This π
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Sure , Iβm not home atm but will try that.
I did test by removing .name
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
And it outputted an array of the data
For that driver
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Ok not problem that would be great
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
This what happens when I console.log
But will message you once Iβm back π
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
hey @Sr. Full Stack Dev I am back π
so doing this has fixed it and shows the data
why is that lol as I thought just checks if its available
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
but whats underfined as its still outputting correctly
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
im am using that
but now its working when I removed wtf
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
but I did not change data and now removed the ? check lol
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
oh thats a thing lol , prob was that
Thanks π now I can carry on building my app xD
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
is this the correct way to add tailwind plugins using the nuxt tailwind package? I created my own config file.
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
do I need the import statement?
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
I have installed tailwind forms but still not working
nvm needed a restart of terminal
ty again
Hi Again, I am trying to total up all the weeks hours to calculate the total hours for the report. What is it called to cross add between rows as trying to search from some docs but not sure what the terminology is called
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
correct
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
but how to I pass my data to each row into the array? for example you have 1,2,3 I need to pass
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
so this is my report
and then my weeks are in a component
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
this right
thats my weeks ^
this is my report
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
correct
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
that worked now, cache maybe when I tired first version
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
so in my report component right I can then use {{ total }} and then store that against my db?
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
well its not actually a report component its my index.vue
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
i noticed lol
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
so how can I declare it from another file
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Yeah I have been following some tutorials on the side for certain parts but then get stuck on complex things where I cant really find as much information on
yeah have heard of Pinia its state management right
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Thanks, for now I might just put everything into one file kind of learn the basics while finishing the project then come back to refactor it back to components.
This project was more of a replacement I built in Laravel + vue last year but with upgrades so thought it would be good practice. I actually have a full web app built on core php that I want to upgrade the frond end using Nuxt but need to learn first π
Thanks for the help really appreciate it
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Thanks want to stop doing Wordpress π
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
lol
I Want to build with javascript not php lol
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
have used bit.ly yes
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
no way
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
dam nice I work for a Digital agency and just completed my apprenticeship
thanks
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
yeah I spend all day wordpress get home then start working on my own projects
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
dam I wish
What do you recommend for learning vue/nuxt?
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
yeah I might give that a go with downloading projects, as I watch tutorials but I always change it so i'm not just following it line by line
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
ah thats cool I will defo check that out ty