@wizishop/wizi-block 19.0.0-beta.2 → 19.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # WiziBlock In Style
2
+
3
+ ## To use WiziBlock, you have to :
4
+
5
+ ```
6
+ npm install @wizishop/wizi-block
7
+ ```
8
+
9
+ ## To create a main structure :
10
+
11
+ > Create the service in **projects/wizi-block/src/lib/services/structures** taking example on another module
12
+
13
+ > Add the service in \*\*projects/wizi-block/src/lib/dtos/configs/structures/structures-list.dto.ts
14
+
15
+ > Add the line in **projects/wizi-block/src/lib/dtos/configs/translations/translations.dto.ts**
16
+
17
+ ###### That's all folks
18
+
19
+ ## To create a secondary block :
20
+
21
+ > Create the service in **projects/wizi-block/src/lib/services/blocks** taking example on another module
22
+
23
+ > Add the service in **projects/wizi-block/src/lib/dtos/configs/blocks/blocks-list.dto.ts**
24
+
25
+ > Add the line in **projects/wizi-block/src/lib/dtos/configs/translations/translations.dto.ts**
26
+
27
+ > Create a component in **projects/wizi-block/src/lib/structures/** respecting name
28
+
29
+ > Register the component in **structures.module.ts**
30
+
31
+ > Add the component in **projects/wizi-block/src/components/blocks/blocks.component.html**
32
+
33
+ ###### That's all folks
34
+
35
+ ## Asking for image
36
+
37
+ > In your component, you can use the MediaService to **askImage()** and subscribe for the response to get a MediaDto with id and url