From 0a308d6145d58d771f287c560d97c6b689081d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=81ukasik?= Date: Mon, 26 Oct 2026 14:34:03 +0100 Subject: [PATCH] VueJS Lekcja 2 --- .../08 - bind - color - range.html | 42 ++++++++++ .../01 - v-for.html | 46 +++++++++++ .../02 - tablice obiektów.html | 42 ++++++++++ .../03 - v-for - obiekty.html | 41 ++++++++++ .../04 - funkcje.html | 51 ++++++++++++ .../05 - map-filter-reduce.html | 77 +++++++++++++++++++ .../06 - computed.html | 45 +++++++++++ .../08 - v-bind.html | 29 +++++++ .../lekcja-2-fake/01 - fake newsy.html | 1 - .../lekcja-2-fake/02 - przykladowe dane.html | 1 - 10 files changed, 373 insertions(+), 2 deletions(-) create mode 100644 Lekcja_05/static/cwiczenia/lekcja-1-directives/08 - bind - color - range.html create mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/01 - v-for.html create mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/02 - tablice obiektów.html create mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/03 - v-for - obiekty.html create mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/04 - funkcje.html create mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/05 - map-filter-reduce.html create mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/06 - computed.html create mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/08 - v-bind.html delete mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-fake/01 - fake newsy.html delete mode 100644 Lekcja_05/static/cwiczenia/lekcja-2-fake/02 - przykladowe dane.html diff --git a/Lekcja_05/static/cwiczenia/lekcja-1-directives/08 - bind - color - range.html b/Lekcja_05/static/cwiczenia/lekcja-1-directives/08 - bind - color - range.html new file mode 100644 index 0000000..aad5476 --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-1-directives/08 - bind - color - range.html @@ -0,0 +1,42 @@ + + + + + + + Start VueJS + + + + +
+

element

+ +

Sterowanie stylami

+ +

Rozmiar czcionki: {{fontSize}}px

+ + +

Kolor tła: {{backgroundColor}}

+ + +

Kolor tekstu: {{color}}

+ +
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/01 - v-for.html b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/01 - v-for.html new file mode 100644 index 0000000..117ac45 --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/01 - v-for.html @@ -0,0 +1,46 @@ + + + + + + + Start VueJS + + + + +
+

1 - bez v-for

+ + +

2 - v-for

+ + + +
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/02 - tablice obiektów.html b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/02 - tablice obiektów.html new file mode 100644 index 0000000..84d727f --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/02 - tablice obiektów.html @@ -0,0 +1,42 @@ + + + + + + + Start VueJS + + + + +
+

ul 1 - obiekty tablicy

+ + +

ul 2 - wartości obiektów tablicy

+ + +

ul 3 - wartości obiektów tablicy z licznikiem

+ +
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/03 - v-for - obiekty.html b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/03 - v-for - obiekty.html new file mode 100644 index 0000000..fd3ab4f --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/03 - v-for - obiekty.html @@ -0,0 +1,41 @@ + + + + + + + Start VueJS + + + + +
+

ul 1 - value, key obiektu

+ + +

ul 2 - key, value, index obiektu

+ +
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/04 - funkcje.html b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/04 - funkcje.html new file mode 100644 index 0000000..0ee10d0 --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/04 - funkcje.html @@ -0,0 +1,51 @@ + + + + + + + Start VueJS + + + + +
+

tekst: {{ text }}

+

length: {{ length }}

+ +

długość tekstu: {{ getTextLength2() }}

+

długość tekstu: {{ getTextLength(text) }}

+ +

+

+
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/05 - map-filter-reduce.html b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/05 - map-filter-reduce.html new file mode 100644 index 0000000..cea15ea --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/05 - map-filter-reduce.html @@ -0,0 +1,77 @@ + + + + + + + Start VueJS + + + + +
+

Lista produktów ({{ products.length }} szt.):

+ + +

Operacje na danych

+

1. Produkty premium (Cena > 50 zł) - filter():

+ +

Łączna liczba produktów Premium: {{ getPremiumProducts().length }}

+ +

2. Lista nazw i zmodyfikowanych cen (obniżka 10%) - map()

+ + +

3. Całkowita wartość magazynu (Suma cen) - reduce():

+

Całkowity koszt wszystkich produktów: {{ suma() }} zł

+ +

4. Wartość produktów elektronicznych - filter() + reduce():

+

Suma cen produktów z kategorii "Elektronika" (Filtrowanie + Sumowanie): {{ sumaElektro() }} zł

+
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/06 - computed.html b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/06 - computed.html new file mode 100644 index 0000000..778d0b9 --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/06 - computed.html @@ -0,0 +1,45 @@ + + + + + + + Start VueJS + + + + +
+

computed w odróżnieniu od methods wykonują się tylko raz i nie używamy nawiasów podczas ich wywoływania

+

{{ getCar }}

+

{{ getYear }}

+
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/08 - v-bind.html b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/08 - v-bind.html new file mode 100644 index 0000000..ce92356 --- /dev/null +++ b/Lekcja_05/static/cwiczenia/lekcja-2-arrays-methods-computed/08 - v-bind.html @@ -0,0 +1,29 @@ + + + + + + + Start VueJS + + + + +
+ +
+ + + + + \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-fake/01 - fake newsy.html b/Lekcja_05/static/cwiczenia/lekcja-2-fake/01 - fake newsy.html deleted file mode 100644 index b713650..0000000 --- a/Lekcja_05/static/cwiczenia/lekcja-2-fake/01 - fake newsy.html +++ /dev/null @@ -1 +0,0 @@ -kierowca opla poprawnie zaparkował \ No newline at end of file diff --git a/Lekcja_05/static/cwiczenia/lekcja-2-fake/02 - przykladowe dane.html b/Lekcja_05/static/cwiczenia/lekcja-2-fake/02 - przykladowe dane.html deleted file mode 100644 index 0d0cef7..0000000 --- a/Lekcja_05/static/cwiczenia/lekcja-2-fake/02 - przykladowe dane.html +++ /dev/null @@ -1 +0,0 @@ -przykladowe dane \ No newline at end of file