You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/documentation-v6/src/stories/internet-header/getting-started.stories.mdx
+51-33Lines changed: 51 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,14 @@ The header for client-facing applications.
17
17
18
18
## Installation
19
19
20
-
### Angular, Vue JS, React (or any other bundler setup)
20
+
### Choosing between lazy-loaded or bare component version
21
+
22
+
Internet-header package provide two versions:
23
+
24
+
* Lazy-loaded (default): it allows better performance by dynamically load the component when used, so it reduces bundle size, startup time and first paint.
25
+
* Bare component: if you already manage the lazy-loading or don't need it for any reason, you can use the component without any overhead.
26
+
27
+
### Angular, Vue.js, React (or any other bundler setup)
21
28
22
29
All the popular frameworks come with some form of bundler. This makes it easy to use npm packages like the Internet Header as you can import, bundle and deliver the header with your own code.
23
30
@@ -27,13 +34,6 @@ When working with Angular or any other framework, the easiest installation metho
If you are not using any loader or don't want to install from npm, you can load the `internet-header` from your favourite [CDN](https://en.wikipedia.org/wiki/Content_delivery_network).<br/>
48
-
There are two options available. Make sure to replace `{version}` with the version you want to use.
63
+
If you are not using any bundler or don't want to install from npm, you can load the `internet-header` from your favourite [CDN](https://en.wikipedia.org/wiki/Content_delivery_network).<br/>
64
+
Make sure to replace `{version}` with the version you want to use or remove `@{version}` to use the latest version.
65
+
66
+
Available CDNs:
49
67
50
-
-[jsDelivr](https://www.jsdelivr.com/)
51
-
-[unpkg](https://unpkg.com/)
68
+
*[jsDelivr](https://www.jsdelivr.com/): replace `{cdnURL}` with [https://cdn.jsdelivr.net/npm/@swisspost/internet-header](https://cdn.jsdelivr.net/npm/@swisspost/internet-header).
69
+
*[unpkg](https://unpkg.com/): replace `{cdnURL}` with [https://unpkg.com/@swisspost/internet-header](https://unpkg.com/@swisspost/internet-header).
Not every Online Service has configurations for all environments. For example, "TOPOS" only has `int02` configured and cannot use `int01` as value for environment. If you are not sure what's configured for your project, please reach out to the post-portal team as well.
@@ -103,4 +121,4 @@ For settings on the header itself, see the examples provided in the left menu ba
103
121
104
122
## Help
105
123
106
-
If you noticed a bug or need assistance with migrating to the new Internet Header, please post your enquiry at the [Design System Github Discussions](https://github.com/swisspost/design-system/discussions/categories/q-a).
124
+
If you noticed a bug or need assistance with migrating to the new Internet Header, please post your enquiry at the [Design System GitHub Discussions](https://github.com/swisspost/design-system/discussions/categories/q-a).
### Angular, Vue JS, React (or any other bundler setup)
23
+
### Choosing between lazy-loaded or bare component version
24
+
25
+
Internet-header package provide two versions:
26
+
27
+
* Lazy-loaded (default): it allows better performance by dynamically load the component when used, so it reduces bundle size, startup time and first paint.
28
+
* Bare component: if you already manage the lazy-loading or don't need it for any reason, you can use the component without any overhead.
29
+
30
+
### Angular, Vue.js, React (or any other bundler setup)
22
31
23
32
All the popular frameworks come with some form of bundler.
24
33
This makes it easy to use npm packages like the Internet Header as you can import,
@@ -30,13 +39,6 @@ When working with Angular or any other framework, the easiest installation metho
Make sure to replace `{version}` with the version you want to use.
68
+
If you are not using any bundler or don't want to install from npm, you can load the `internet-header` from your favourite [CDN](https://en.wikipedia.org/wiki/Content_delivery_network).<br/>
69
+
Make sure to replace `{version}` with the version you want to use or remove `@{version}` to use the latest version.
70
+
71
+
Available CDNs:
55
72
56
-
-[jsDelivr](https://www.jsdelivr.com/)
57
-
-[unpkg](https://unpkg.com/)
73
+
*[jsDelivr](https://www.jsdelivr.com/): replace `{cdnURL}` with [https://cdn.jsdelivr.net/npm/@swisspost/internet-header](https://cdn.jsdelivr.net/npm/@swisspost/internet-header).
74
+
*[unpkg](https://unpkg.com/): replace `{cdnURL}` with [https://unpkg.com/@swisspost/internet-header](https://unpkg.com/@swisspost/internet-header).
>Contact Post Portal Team <post-iconname="1001"className="fs-large"/></a>
117
+
>Contact Post Portal Team <post-iconname="1001"className="fs-large"/></a>
103
118
104
119
Not every Online Service has configurations for all environments.
105
120
For example, "TOPOS" only has `int02` configured and cannot use `int01` as value for environment.
@@ -109,5 +124,4 @@ For settings on the header itself, see the examples provided in the left menu ba
109
124
110
125
## Help
111
126
112
-
If you noticed a bug or need assistance with migrating to the new Internet Header,
113
-
please post your enquiry at the [Design System GitHub Discussions](https://github.com/swisspost/design-system/discussions/categories/q-a).
127
+
If you noticed a bug or need assistance with migrating to the new Internet Header, please post your enquiry at the [Design System GitHub Discussions](https://github.com/swisspost/design-system/discussions/categories/q-a).
0 commit comments