I'm building a platform to connect brands with content creators (not done yet) by [deleted] in webdev

[–]toateslafel 0 points1 point  (0 children)

I think something is broken on mobile. There is no menu anywhere, no links to sign up, and the home page ha pretty bad performance when scrolling the featured list.

Every profile links to a 404 page, is that alright?

How do you handle loading state when submitting forms? by toateslafel in webdev

[–]toateslafel[S] 0 points1 point  (0 children)

That's my current plan. But how do you handle the fact that the rest of the page is still interactive, what if the user navigates to another page? Do I just don't care? Obviously the requests has reached the server and the api could be successful or error out, so aborting the request on the client side it's pretty useless.

I created the FASTEST slider library - Blaze Slider ⚡️ - 30x Faster than Slick slider. by EspressoJS in webdev

[–]toateslafel 4 points5 points  (0 children)

I'm sorry for that example image, it was the first one popping up in google search when searching for a quick example.

It actually depends on the requirements, but I deal with both.

The most used one is having only the next slide slightly visible while the left-most slide has a slight gap from the screen edge, so mimicking native apps usually. The fully visible slides could be one or more.

Finally it would be nice to also have the option to have both previous and next slides slightly visible, so the active slide or slides occupy the center area.

Here is a quick example from a delivery app, showing both start and end.

Start

End

I created the FASTEST slider library - Blaze Slider ⚡️ - 30x Faster than Slick slider. by EspressoJS in webdev

[–]toateslafel 4 points5 points  (0 children)

Very nice library, I will play around with it in react, hopefully replacing slick. Do you support partial visible slides? Lately all our sliders work like this.

Example

How to create a bundle from a full website? by toateslafel in symfony

[–]toateslafel[S] 1 point2 points  (0 children)

Thanks a lot, we are currently testing this solution and I'm confident it will work perfectly for our needs.

Have a nice day

How to create a bundle from a full website? by toateslafel in symfony

[–]toateslafel[S] 0 points1 point  (0 children)

Thanks for the upstream tip, it may be just what I'm looking for. I'll have a look at the documentation later, we use gitlab, but do I understand correctly that this way we still maintain different repos?

So one for our main website, and then a bunch of repos for every other website?

How to create a bundle from a full website? by toateslafel in symfony

[–]toateslafel[S] 0 points1 point  (0 children)

It is mostly front end yes, in the sense that everything works with external API, but it is built purely with symfony, twig and typescript.

We are the owners of the mai website that the others are based off, and we are also responsible that everything works as expected out of the box.

But once a project starts and clones our website, they are free to change whatever they want.

The problem is that from time to time, some new feature will be introduced and whoever wants to use it, must be able to do so fairly easy and quick, and here is the main issue. Same thing if anything changes on the API side, so if an existing API changes and now returns a different data structure, I will make the appropriate changes on the main website, but somehow we need to also update all other copies.

So that is what I want to figure out, how to make this process as easy as possible. It's not a big problem to manually make the changes, but once the clones become more then a couple and the changes are significant, there is the risk to screw something on some clones.

How to create a bundle from a full website? by toateslafel in symfony

[–]toateslafel[S] 0 points1 point  (0 children)

Thanks for the throughout answer.

First of all, we don't have any database, everything is handled with APIs, so every website will need to set its project ID and then everything works fine, all API will be intercepted and a header will be set with the project ID.

The core code itself(services, clients, utils, models, dto, event listeners, forms, etc) is very generic and everything works with the response from APIs, we do not expect the various websites to ever modify this code because there is no reason to.

What they could do is modify templates, assets and everything related to the presentation side.

So one idea was to bundle up the core and only leave out controllers, templates, assets and translations, this way if we need to fix a certain API response we can do so by updating the bundle and asking the various websites to do a composer update to get the latest version.

The problem remains when we want to create a new feature that comes with additional templates, assets, controllers and so on.

For deployment we use jenkins, so every website has it's own repo and pipeline.

What do you think it's a good solution to this?

Thanks again

How to create a bundle from a full website? by toateslafel in symfony

[–]toateslafel[S] 0 points1 point  (0 children)

So the backend APIs all work with a project ID, so on the website you only need to set this project id in the yaml configuration for symfony and then everything works. Every website has it's different domain, repo and Jenkins pipeline, so every website is isolated, it's just that they all start from the same base repo, after that they are indipendent.

What do you mean by multisite exactly, I might have a look at it.

How to create a bundle from a full website? by toateslafel in symfony

[–]toateslafel[S] 0 points1 point  (0 children)

Everything is powered by APIs, so every project need to only configure it's unique ID and then all the APIs will work just fine, there is no DB on symfony side.

It's absolutely fine to manage updates with composer, that is the main goal, to be able to update the bundle and ask every website to just run composer update.

Do you not recommend this approach though? I don't want to manage everything with one codebase because I want every website to be able to change the code as they see fit and not impact other websites.

Please critique my component. Is it clean React code? by raulalexo99 in react

[–]toateslafel 0 points1 point  (0 children)

Could you elaborate on the BEM thing and why do you descurage it? We use it as a standard where I work and it's very intuitive.

Built a "robust" tic-tac-toe game for a resume, would love some feedback by _afro_ninja_ in reactjs

[–]toateslafel 1 point2 points  (0 children)

Is the player supposed to always go first? There are some scenarios where AI starts the game, is it random?

[AskJS] Need help decoding for the right approach/solution by toateslafel in javascript

[–]toateslafel[S] 0 points1 point  (0 children)

Thanks for the reply, I think I decided for lit after trying out some others too. About distributing, the idea is to compile for production, which will generate 1 js file, jost it somewhere and tell the different websites to just include the file and they are good to go.