Yuri
eslint ignore
My esling.config.mjs:
But when I start task lint I receive such error:
C:\work\shop**android**\app\build\intermediates\assets\debug\native-bridge.js
4:5 error 'nativeBridge' is assigned a value but never used no-unused-vars
How can I exclude android & ios folders from linter?
7 replies
JWT Example Project
Hello. I develop an online store with Nuxt.
I used a third part Backend API before.
Now I want to use /server/api for it. And inside /server/API/, requests are sending to the necessary services and the database. I plan to sign all requests with the JWT token and I will keep it in the cookie.
Does anyone have examples of such real projects to see how it should be set up correctly?
1 replies
Mock API
Hello! What can I use for Mock API.
Example:
It is my /server/api/contacts/
export default defineCachedEventHandler(async (_event) => {
const data = await $fetch('https://example.com/contacts');
return {
status: 'success',
data,
};
}, { maxAge: -1 });
How can I return mock data for 'https://example.com/contacts' (It is example url for back API)
1 replies
Different tailwind config for desktop and mobile version
I'm using tailwind on my project. I want to separate mobile and desktop layouts. But I can't refuse breakpoints as they are necessary for desktop responsiveness (from 1280 to 1920). But if the mobile version is stretched to 1920 in the browser emulator, then the breakpoints modifiers from the desktop are connected to it. but I wouldn't want that. What can you think of? We have: two very different mobile and desktop versions. Purpose: to use tailwind for class atomicity and desktop adaptability, and in the mobile version only class atomicity.
I am sorry for my English. 🙃
10 replies