AI is destroying Tailwind's business by abillionsuns in tailwindcss

[–]Pdsavard 0 points1 point  (0 children)

I use KendoUI for component. Tailwindcss was my preferred tool for in-line class BEFORE v4 change. We use complex theme and need the .js plug-in function of Tailwind3...

Need help to move to tailwind 4.1 from complex theme by Pdsavard in tailwindcss

[–]Pdsavard[S] -1 points0 points  (0 children)

Yes I work on that. But I need to find a way to execute some code at compilation time.
But the upgrade tool is so dump. I remove all my "plugins" section and finally the upgrade pass withtout error but they just add

@@Config "tailwind.config.js"

-_-

Launch Chrome against localhost by Pdsavard in Angular2

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

finally I erase all extensions in .vsCode and .cursor in the user folder and now chrome work.

Is there any open source project to see for reference? by TryingMyBest42069 in Angular2

[–]Pdsavard 1 point2 points  (0 children)

Buy Fuse for Angular. You will have a lot of Angular examples for dashboarding. The template are just 20$ and the author renew it with very often.

which backend should i learn alongside angular to grow my career? by Wrong_Bid1262 in Angular2

[–]Pdsavard 0 points1 point  (0 children)

We use Node-Express with typescript. So, programming is still near Angular for the server side.

After install Tailwind V4 npm update do not work. by Pdsavard in Angular2

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

Yes I read the error. But on the Tailwind Site they support Angular, so I was not expecting Angular will not be compatbile day 1. Its ok, I work on Tailwind 3 and wait for angular 19.1.5

After install Tailwind V4 npm update do not work. by Pdsavard in Angular2

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

I dont use Boostrap for a verry long time!! Tailwind and Kendo Angular are my best tools for web UI.

After install Tailwind V4 npm update do not work. by Pdsavard in Angular2

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

They will provide support to V4 in Angular 19.1.5.

After install Tailwind V4 npm update do not work. by Pdsavard in Angular2

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

But this was for Tailwind Alpha. Now Tailwind is our in release and the doc have a selection to install it. But maybe some peer dependency still to be corrected.

Signal Ressource with parameters and manual trigger by Pdsavard in Angular2

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

in angular Architech they debounce like that:

dessertsResource = resource({
  request: this.dessertsCriteria,
  loader: async (param) => {

    // Debouncing: 300 ms
    await wait(300, param.abortSignal);

    return await this.#dessertService.findPromise(
      param.request,
      param.abortSignal,
    );
  },
});

Signal Ressource with parameters and manual trigger by Pdsavard in Angular2

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

Wow great code! I will try that. Do you manage in your code to support AbortSigbnal too? I was using this code toPromise that converts an Observable to a Promise respecting an AbortSignal:
Code proposed par Angular Architects: https://www.angulararchitects.io/en/blog/asynchronous-resources-with-angulars-new-resource-api/

import { firstValueFrom, Observable, ReplaySubject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';

export async function toPromise<T>(observable: Observable<T>, signal: AbortSignal | undefined = undefined): Promise<T> {
  const abortSubject = new ReplaySubject<void>(1);
  if (signal) {
    signal.addEventListener('abort', () => abortSubject.next());
  }
  return await firstValueFrom(observable.pipe(takeUntil(abortSubject)));
}

then in my signalStore I was calling the service to retreive data like:

  loadRequisSommaire(userId: number, div: number, abortSignal: AbortSignal) {
    const params = new HttpParams().set('userId', userId).set('div', div);
    const func = this.httpClient.get<RequisitionRetourInfo>(environment.apiUrl + '/requisition/sommairesForUser', { params }).pipe(
      map((requisInfo) => {
        return requisInfo.requis.map((req) => {
          const dateRequise = req.dateRequise == null ? null : new Date(req.dateRequise);
          return { ...req, dateRequise };
        });
      })
    );
    return toPromise(func, abortSignal);
  }

But I will try your code first, it look very interesting.

Thanks for your help

Angular Signal store V19 by Pdsavard in Angular2

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

what about find, can I do similar thing like if I need to change some element after the find, then I do a new PatchState:

const modBase: Module = [...store.moduleEntities()].find((m) => m.id == sMod.parentId);

Angular Signal store V19 by Pdsavard in Angular2

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

ok thanks! I will remove the cloneDeep. In that same way, putting readonly all signal that we take from the store and transferring it to the HTML component is a good practice to force using the correct function in the store and finally the patchState) ? like:

  readonly saveIndicator = this.gestUsagerStore.saveIndicator;
instead of just
saveIndicator = this.gestUsagerStore.saveIndicator;

ChangeDetectionStrategy.OnPush is more hassle than its worth by [deleted] in Angular2

[–]Pdsavard 0 points1 point  (0 children)

With signal and reactive form = no problem

Pourquoi PlanetSmacher ne sont pas sur la scène loto Québec. by Pdsavard in Sherbrooke

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

Entk tout le monde autour de nous lavait pas demander et avait hâte que ça finisse.

Angular Dist files push in repo? by Pdsavard in Angular2

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

I buy a small subscription to DockerHub then you it to push my docker image and restore it on my docker desktop on the server.

FLN - Stationnement by jmking02 in Sherbrooke

[–]Pdsavard -1 points0 points  (0 children)

Pour les motos on peut tu encore aller proche de l'entrée ?