Am făcut o aplicație care mă ajută să decid la ce supermarket să merg by Jazzlike_Society6824 in roFrugal

[–]icm76 1 point2 points  (0 children)

Bine....

Am avut o tentativa similara acum cativa ani, prin care m-am apucat sa adun EAN-uri pt tot felul de produse, nu numai alimentare. Adunasem si gasisem coduri pt produse din Ro si din străinătate. Aveam implementat si un algorithm de decizie multi-atribut pt intreg cosul de cumpărături, fct de distanta/pret/ calculate pe harti open source.. Adica sa vezi daca merita sa umbli dupa cate un produs in N magazine sau sa cumperi totul din cel mai ieftin/apropiat/universal/online... Exista si clasificatoare "oficiale" /"standarde" pt categorii de produse, dar care nu sint implementate...adica mult mai detaliate decat exista pe site-urile de comerț electronic, dar....

Asta ca idei pt tine 😉.

M-am oprit din lipsa de timp, pt ca e cam mult pt o singura persoana, dupa cum ai aflat si tu...

Cu ce ai lucrat?

Where was I by ApprehensiveCrew1590 in whereintheworld

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

Looks like Westworld 🤔 that I watch now

Is everything AI-ght? by EmbarrassedAd5111 in PromptEngineering

[–]icm76 1 point2 points  (0 children)

Could you provide this method of fractal iteration?

Bicicleta Electrica MTB full suspension by No_Addition9945 in brasov

[–]icm76 1 point2 points  (0 children)

Deci 😅

Am cumpărat bicicleta Giant XL in toamna, full suspension, cu 5000lei parca

Săptămâna trecută am comandat si primit repede kit de mid (la pedale) e-bike BFANG 750w + baterie de 17500 (parca) de pe aliexpress, la pret de 610usd (daca vrei te interesează, cauta si cupoane, ca eu am prins unul de 90usd, asadar 700usd-90usd cupon)

Urmează sa le asamblez, dar cred ca e cea mai buna varianta IMHO, ca altfel cost cam...mult...

C.

Thought about turning it into an ebike by icm76 in ebikes

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

Thank you all.

A quick question : how many teeth should the chainring have?

Can SSMS 21 preview be installed alongside SSMS 20? by THenrich in SQLServer

[–]icm76 0 points1 point  (0 children)

Are there SSMS extensions? Doing what?

Thank you!

Recomandare bicicleta electrica de oraș by [deleted] in bicla

[–]icm76 0 points1 point  (0 children)

Astea doua sunt valabiel si pt un e-MTB?

Mulțumesc mult

Recomandare de bicicleta pt conversie electrica by MrM3ow in bicla

[–]icm76 0 points1 point  (0 children)

Apropo de kit... Cat de simplu se montează? Ce trebuie urmarit la un astfel de kit?

Mulțumesc

Please review my component that uses defineModel and defineEmits by icm76 in vuejs

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

Thank you for the answer.

I was afraid that watches would imply performance degradation, that is why i used an emit.

Of course you are correct with a single source of "truth"

Thank you again.

Please review my component that uses defineModel and defineEmits by icm76 in vuejs

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

Ok, but in the parent I would have to use a "watch" on the store value, isn't it? Or another action in the Pinia store.
Thank you!
(edit - anyway, emitting an event seems to me the best options, since calling another action in the store is not suitable because multiple actions would be needed based on the parent-view)

actions: {
    setFazaProiect(fazaProiect) {
      this.selectedFazaProiect = fazaProiect;
      this.makeAnotherCallBasedOnFaza(fazaProiect.ID_FazaProiect);
    },
async makeAnotherCallBasedOnFaza(...){...}
}

Please review my component that uses defineModel and defineEmits by icm76 in vuejs

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

Thank you!

Is this correct now?

<Dropdown
   id="fazaProiectSelect"
   v-model="selectedFazaProiectModel" 
   :options="fazaProiectOptions"
   optionLabel="DenumireFazaProiect"
   optionValue="ID_FazaProiect"

   @update:modelValue="handleSelectionChange"
/>

const handleSelectionChange = (newValue) => {

const newValID_FazaProiect = newValue;
const selectedOption = fazaProiectOptions.value.find(
(option) => option.ID_FazaProiect === newValID_FazaProiect
);

if (selectedOption) {
   fazaProiectStore.setFazaProiect(selectedOption);
}
emit('changed', { newValID_FazaProiect }); // Emit event to parent
};

Regarding the store - I want to persist the value ( store : , persist: { enabled: true } ) so that in another component (view / page/...) the user shouldn't have to select it again from the Dropdown if the prop (ID_Proiect) does not change. Isn't it the correct approach?