glikli
glikli
NNuxt
Created by glikli on 4/12/2024 in #❓・help
New SaaS project: Super Admin & Client Admin, how to structure?
Lovely, thank you so much for the input!
19 replies
NNuxt
Created by glikli on 4/12/2024 in #❓・help
New SaaS project: Super Admin & Client Admin, how to structure?
Do you have any advice regarding permissions (for the different pricing levels) in nuxt?
19 replies
NNuxt
Created by glikli on 4/12/2024 in #❓・help
New SaaS project: Super Admin & Client Admin, how to structure?
Okey! Our staff should be able do exactly the same as the customer, so "login as the client"-method that is being used today is the easy way but i really don't like it.
19 replies
NNuxt
Created by glikli on 4/12/2024 in #❓・help
New SaaS project: Super Admin & Client Admin, how to structure?
And your staff can change customer data from that admin ?
19 replies
NNuxt
Created by glikli on 4/12/2024 in #❓・help
New SaaS project: Super Admin & Client Admin, how to structure?
Ah i will check that out! Thanks. In your SaaS service, do you have a similar situation? With different admins?
19 replies
NNuxt
Created by glikli on 4/12/2024 in #❓・help
New SaaS project: Super Admin & Client Admin, how to structure?
Thanks for you reply! In short, there is only two roles, Admin (our staff) and Customer. I would like not to have them in different pages folder due to to the extra level in the route (folder). Im totaly with you with the admin-frontend as to be protected from public, but it is the way of how to make the admins be able to change customer data. One way is to do the same logic in the admin frontend as in the customer frontend, but then i have to write the logic twice, or is there any good solution for this? The goal is to have the admins only work in the admin-frontend (also when editing a customer), but without duplicating the logic behind it. And the customers are in the customer admin. Sorry if I'm confusing, I don't really know what I want myself xD
19 replies
NNuxt
Created by glikli on 2/20/2024 in #❓・help
How to detect cause of slow initial response (SSR)
Hi ! Yes im aware of that. But is there any way to debug, detect what is heavy/optimize the render?
3 replies
NNuxt
Created by glikli on 3/29/2023 in #❓・help
Implement Facebook Pixel
Hi @Thomas Bnt, thanks for answering. The problem is that it is a whole code snippet I need to implement:
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=‘2.0’;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,‘script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘{{ facebookPixelId }}’);
fbq(‘track’, ‘PageView’);
</script>
<noscript><img height=“1” width=“1" style=“display:none”
src=“https://www.facebook.com/tr?id={{facebookPixelId}}&ev=PageView&noscript=1”
/></noscript>
<!-- End Meta Pixel Code -->
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=‘2.0’;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,‘script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘{{ facebookPixelId }}’);
fbq(‘track’, ‘PageView’);
</script>
<noscript><img height=“1” width=“1" style=“display:none”
src=“https://www.facebook.com/tr?id={{facebookPixelId}}&ev=PageView&noscript=1”
/></noscript>
<!-- End Meta Pixel Code -->
I've now created a plugin and implemented it that way. Just wondering if there is an easier way to implement this..
5 replies
NNuxt
Created by glikli on 3/29/2023 in #❓・help
Implement Facebook Pixel
Anyone?
5 replies