legal-notes 1.0.31 → 1.0.34
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/index.compiled.html +21 -37
- package/index.html +24 -16
- package/package.json +7 -7
- package/readme.md +172 -3
package/index.compiled.html
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
<h2>
|
|
2
|
-
Disclaimer
|
|
3
|
-
<!--deDE:Haftungsausschluss-->
|
|
4
|
-
<!--frFR:Désistement-->
|
|
5
|
-
</h2>
|
|
1
|
+
<h2>Disclaimer<!--deDE:Haftungsausschluss--><!--frFR:Désistement--></h2>
|
|
6
2
|
<h3>
|
|
7
3
|
Liability for content
|
|
8
4
|
<!--deDE:Haftung für Inhalte-->
|
|
@@ -38,7 +34,6 @@ The content of our pages has been prepared with the utmost care. However, we can
|
|
|
38
34
|
violation concrète. Dès que nous aurons connaissance de telles
|
|
39
35
|
violations, nous supprimerons immédiatement les contenus concernés.
|
|
40
36
|
-->
|
|
41
|
-
</p>
|
|
42
37
|
<h3>
|
|
43
38
|
Liability for links
|
|
44
39
|
<!--deDE:Haftung für Links-->
|
|
@@ -70,12 +65,7 @@ Our website contains links to external third-party websites whose content is bey
|
|
|
70
65
|
violation de la loi. Dès que nous aurons connaissance de violations,
|
|
71
66
|
nous supprimerons immédiatement les liens concernés.
|
|
72
67
|
-->
|
|
73
|
-
|
|
74
|
-
<h3>
|
|
75
|
-
Copyright
|
|
76
|
-
<!--deDE:Urheberrecht-->
|
|
77
|
-
<!--frFR:Droit d'auteur-->
|
|
78
|
-
</h3>
|
|
68
|
+
<h3>Copyright<!--deDE:Urheberrecht--><!--frFR:Droit d'auteur--></h3>
|
|
79
69
|
<p>
|
|
80
70
|
Content and works on these pages created by the site operators are subject to German copyright law. Reproduction, adaptation, distribution and any use beyond the scope of copyright law require the written consent of the respective author or creator. Downloads and copies of this site are permitted for private, non-commercial use only. Where content on this site was not created by the operator, third-party copyrights are respected. In particular, third-party content is identified as such. If you become aware of a copyright infringement, please notify us. Upon becoming aware of any legal violations, we will remove the relevant content immediately.
|
|
81
71
|
<!--deDE:
|
|
@@ -105,7 +95,6 @@ Content and works on these pages created by the site operators are subject to Ge
|
|
|
105
95
|
d'auteur, veuillez nous en informer. Dès que nous aurons connaissance
|
|
106
96
|
de violations, nous supprimerons immédiatement les contenus concernés.
|
|
107
97
|
-->
|
|
108
|
-
</p>
|
|
109
98
|
<h3>
|
|
110
99
|
Privacy Policy
|
|
111
100
|
<!--deDE:Datenschutz-->
|
|
@@ -147,7 +136,6 @@ You can generally use our website without providing personal data. Where persona
|
|
|
147
136
|
cas d'envoi non sollicité d'informations publicitaires, notamment par
|
|
148
137
|
e-mails indésirables.
|
|
149
138
|
-->
|
|
150
|
-
</p>
|
|
151
139
|
<h3>
|
|
152
140
|
Content Delivery Network (Cloudflare)
|
|
153
141
|
<!--deDE:Content Delivery Network (Cloudflare)-->
|
|
@@ -178,29 +166,25 @@ We use Cloudflare (Cloudflare, Inc., 101 Townsend St., San Francisco, CA 94107,
|
|
|
178
166
|
types de l'UE. Cloudflare est certifié dans le cadre du cadre de
|
|
179
167
|
protection des données UE-États-Unis.
|
|
180
168
|
-->
|
|
181
|
-
</p>
|
|
182
169
|
<h3>
|
|
183
|
-
Privacy Statement for
|
|
184
|
-
<!--deDE:
|
|
170
|
+
Privacy Statement for a possible use of Google Analytics
|
|
171
|
+
<!--deDE:
|
|
172
|
+
Datenschutzerklärung für eine mögliche Nutzung von Google Analytics
|
|
173
|
+
-->
|
|
185
174
|
<!--frFR:
|
|
186
|
-
Déclaration de confidentialité
|
|
175
|
+
Déclaration de confidentialité pour une éventuelle utilisation de
|
|
176
|
+
Google Analytics
|
|
187
177
|
-->
|
|
188
178
|
</h3>
|
|
189
179
|
<p>
|
|
190
|
-
This website
|
|
191
|
-
<a
|
|
192
|
-
|
|
193
|
-
href="http://tools.google.com/dlpage/gaoptout?hl=de"
|
|
194
|
-
rel=noopener
|
|
195
|
-
target=_blank>
|
|
196
|
-
Google browser add-on
|
|
197
|
-
</a>
|
|
198
|
-
.
|
|
180
|
+
This website may use Google Analytics 4, a web analytics service provided by Google Ireland Limited ("Google", Gordon House, Barrow Street, Dublin 4, Ireland). If it is used, data is processed solely on the basis of your express consent (Art. 6(1)(a) GDPR). Google Analytics uses cookies that enable analysis of how you use the website. Information generated by these cookies about your use of this website is transmitted to and stored on a Google server; transfer of data to third countries (such as the United States) cannot be ruled out. IP anonymization is enabled by default on this website, so Google truncates your IP address within a member state of the European Union or another state party to the Agreement on the European Economic Area before transmission. You may withdraw your consent at any time with effect for the future through the cookie settings (our consent tool), or prevent data collection by using the official
|
|
181
|
+
<a href="http://tools.google.com/dlpage/gaoptout?hl=de"rel=noopener target=_blank>Google browser add-on</a>.
|
|
199
182
|
<!--deDE:
|
|
200
|
-
Diese Website
|
|
201
|
-
Google Ireland Limited ("Google", Gordon House,
|
|
202
|
-
4, Irland).
|
|
203
|
-
|
|
183
|
+
Diese Website kann Google Analytics 4 benutzen, einen
|
|
184
|
+
Webanalysedienst der Google Ireland Limited ("Google", Gordon House,
|
|
185
|
+
Barrow Street, Dublin 4, Irland). Sofern er genutzt wird, erfolgt die
|
|
186
|
+
Datenverarbeitung ausschließlich auf Grundlage Ihrer ausdrücklichen
|
|
187
|
+
Einwilligung (Art. 6 Abs. 1 lit. a DSGVO). Google
|
|
204
188
|
Analytics verwendet sog. "Cookies", die eine Analyse der Benutzung der
|
|
205
189
|
Website durch Sie ermöglichen. Die durch den Cookie erzeugten
|
|
206
190
|
Informationen über Ihre Benutzung dieser Website werden an einen
|
|
@@ -216,10 +200,10 @@ Google browser add-on
|
|
|
216
200
|
verhindern.
|
|
217
201
|
-->
|
|
218
202
|
<!--frFR:
|
|
219
|
-
Ce site
|
|
220
|
-
par Google Ireland Limited (« Google », Gordon House, Barrow
|
|
221
|
-
Dublin 4, Irlande).
|
|
222
|
-
sur votre consentement explicite (art. 6, paragraphe 1, point a) du
|
|
203
|
+
Ce site peut utiliser Google Analytics 4, un service d'analyse Web
|
|
204
|
+
fourni par Google Ireland Limited (« Google », Gordon House, Barrow
|
|
205
|
+
Street, Dublin 4, Irlande). S'il est utilisé, le traitement des
|
|
206
|
+
données repose exclusivement sur votre consentement explicite (art. 6, paragraphe 1, point a) du
|
|
223
207
|
RGPD). Google Analytics utilise des cookies qui permettent d'analyser
|
|
224
208
|
votre utilisation du site. Les informations générées par ces cookies
|
|
225
209
|
concernant votre utilisation du site sont transmises à un serveur de
|
|
@@ -235,9 +219,10 @@ Google browser add-on
|
|
|
235
219
|
<a href="http://tools.google.com/dlpage/gaoptout?hl=de" target="_blank"
|
|
236
220
|
rel="noopener">Google pour navigateur</a>.
|
|
237
221
|
-->
|
|
238
|
-
</p>
|
|
239
222
|
<h3>
|
|
240
223
|
Copyright Statement
|
|
224
|
+
<!--deDE:Urheberrechtshinweis-->
|
|
225
|
+
<!--frFR:Déclaration de droits d'auteur-->
|
|
241
226
|
</h3>
|
|
242
227
|
<p>
|
|
243
228
|
Unless noted otherwise, all artwork on this website is protected property of the website author. Any use for commercial purpose, reproduction and publication requires the author's written permission. Commercial work created in cooperation or bound by contract with third parties are specifically marked. Respective copyrights apply.
|
|
@@ -259,4 +244,3 @@ Unless noted otherwise, all artwork on this website is protected property of the
|
|
|
259
244
|
le cadre d'un contrat sont spécifiquement signalés. Les droits
|
|
260
245
|
d'auteur correspondants s'appliquent.
|
|
261
246
|
-->
|
|
262
|
-
</p>
|
package/index.html
CHANGED
|
@@ -218,17 +218,20 @@
|
|
|
218
218
|
</p>
|
|
219
219
|
|
|
220
220
|
<h3>
|
|
221
|
-
Privacy Statement for
|
|
222
|
-
<!--deDE:
|
|
221
|
+
Privacy Statement for a possible use of Google Analytics
|
|
222
|
+
<!--deDE:
|
|
223
|
+
Datenschutzerklärung für eine mögliche Nutzung von Google Analytics
|
|
224
|
+
-->
|
|
223
225
|
<!--frFR:
|
|
224
|
-
Déclaration de confidentialité
|
|
226
|
+
Déclaration de confidentialité pour une éventuelle utilisation de
|
|
227
|
+
Google Analytics
|
|
225
228
|
-->
|
|
226
229
|
</h3>
|
|
227
230
|
<p>
|
|
228
|
-
This website
|
|
229
|
-
Google Ireland Limited ("Google", Gordon House, Barrow Street, Dublin
|
|
230
|
-
Ireland).
|
|
231
|
-
(Art. 6(1)(a) GDPR). Google Analytics uses cookies that enable analysis of
|
|
231
|
+
This website may use Google Analytics 4, a web analytics service provided
|
|
232
|
+
by Google Ireland Limited ("Google", Gordon House, Barrow Street, Dublin
|
|
233
|
+
4, Ireland). If it is used, data is processed solely on the basis of your
|
|
234
|
+
express consent (Art. 6(1)(a) GDPR). Google Analytics uses cookies that enable analysis of
|
|
232
235
|
how you use the website. Information generated by these cookies about
|
|
233
236
|
your use of this website is transmitted to and stored on a Google server;
|
|
234
237
|
transfer of data to third countries (such as the United States) cannot be
|
|
@@ -241,10 +244,11 @@
|
|
|
241
244
|
<a href="http://tools.google.com/dlpage/gaoptout?hl=de" target="_blank"
|
|
242
245
|
rel="noopener">Google browser add-on</a>.
|
|
243
246
|
<!--deDE:
|
|
244
|
-
Diese Website
|
|
245
|
-
Google Ireland Limited ("Google", Gordon House,
|
|
246
|
-
4, Irland).
|
|
247
|
-
|
|
247
|
+
Diese Website kann Google Analytics 4 benutzen, einen
|
|
248
|
+
Webanalysedienst der Google Ireland Limited ("Google", Gordon House,
|
|
249
|
+
Barrow Street, Dublin 4, Irland). Sofern er genutzt wird, erfolgt die
|
|
250
|
+
Datenverarbeitung ausschließlich auf Grundlage Ihrer ausdrücklichen
|
|
251
|
+
Einwilligung (Art. 6 Abs. 1 lit. a DSGVO). Google
|
|
248
252
|
Analytics verwendet sog. "Cookies", die eine Analyse der Benutzung der
|
|
249
253
|
Website durch Sie ermöglichen. Die durch den Cookie erzeugten
|
|
250
254
|
Informationen über Ihre Benutzung dieser Website werden an einen
|
|
@@ -260,10 +264,10 @@
|
|
|
260
264
|
verhindern.
|
|
261
265
|
-->
|
|
262
266
|
<!--frFR:
|
|
263
|
-
Ce site
|
|
264
|
-
par Google Ireland Limited (« Google », Gordon House, Barrow
|
|
265
|
-
Dublin 4, Irlande).
|
|
266
|
-
sur votre consentement explicite (art. 6, paragraphe 1, point a) du
|
|
267
|
+
Ce site peut utiliser Google Analytics 4, un service d'analyse Web
|
|
268
|
+
fourni par Google Ireland Limited (« Google », Gordon House, Barrow
|
|
269
|
+
Street, Dublin 4, Irlande). S'il est utilisé, le traitement des
|
|
270
|
+
données repose exclusivement sur votre consentement explicite (art. 6, paragraphe 1, point a) du
|
|
267
271
|
RGPD). Google Analytics utilise des cookies qui permettent d'analyser
|
|
268
272
|
votre utilisation du site. Les informations générées par ces cookies
|
|
269
273
|
concernant votre utilisation du site sont transmises à un serveur de
|
|
@@ -281,7 +285,11 @@
|
|
|
281
285
|
-->
|
|
282
286
|
</p>
|
|
283
287
|
|
|
284
|
-
<h3>
|
|
288
|
+
<h3>
|
|
289
|
+
Copyright Statement
|
|
290
|
+
<!--deDE:Urheberrechtshinweis-->
|
|
291
|
+
<!--frFR:Déclaration de droits d'auteur-->
|
|
292
|
+
</h3>
|
|
285
293
|
<p>
|
|
286
294
|
Unless noted otherwise, all artwork on this website is protected property
|
|
287
295
|
of the website author. Any use for commercial purpose, reproduction and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "legal-notes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "Legal notes for documentation-, home- and websites.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"about",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"notes",
|
|
12
12
|
"website"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://
|
|
15
|
-
"license": "CC-BY-
|
|
14
|
+
"homepage": "https://github.com/thaibault/legal-notes",
|
|
15
|
+
"license": "CC-BY-4.0",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "https://github.com/thaibault/legal-notes.git"
|
|
18
|
+
"url": "git+https://github.com/thaibault/legal-notes.git"
|
|
19
19
|
},
|
|
20
20
|
"type": "module",
|
|
21
21
|
"main": "index.compiled.html",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test": "yarn build && cat index.compiled.html"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"html-minifier": "^
|
|
33
|
-
"rimraf": "^6.1.
|
|
32
|
+
"html-minifier": "^5.2.0",
|
|
33
|
+
"rimraf": "^6.1.4"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=26",
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
"yarn": ">=4"
|
|
39
39
|
},
|
|
40
40
|
"packageManager": "yarn@4.18.1+sha512.b2e1e7524f654f2749d32b4ebcb4622473cb5bcbc485df2007e12a154e50162a4d795526768bc5f5b8f81717bfd79deb2472813d86fb5ae2eb551fa9c872b08f"
|
|
41
|
-
}
|
|
41
|
+
}
|
package/readme.md
CHANGED
|
@@ -7,9 +7,13 @@ License
|
|
|
7
7
|
-------
|
|
8
8
|
|
|
9
9
|
This library written by Torben Sickert stands under a creative commons naming
|
|
10
|
-
|
|
10
|
+
4.0 international license.
|
|
11
|
+
See https://creativecommons.org/licenses/by/4.0/deed.de
|
|
11
12
|
endregion -->
|
|
12
13
|
|
|
14
|
+
|
|
15
|
+
<!--|deDE:Projektstatus-->
|
|
16
|
+
<!--|frFR:État du projet-->
|
|
13
17
|
Project status
|
|
14
18
|
--------------
|
|
15
19
|
|
|
@@ -18,8 +22,173 @@ Project status
|
|
|
18
22
|
|
|
19
23
|
[](https://github.com/thaibault/legal-notes/actions/workflows/build-package-and-push.yaml)
|
|
20
24
|
|
|
21
|
-
<!--|deDE:
|
|
25
|
+
<!--|deDE:Einsatzmöglichkeiten-->
|
|
26
|
+
<!--|frFR:Cas d'utilisation-->
|
|
22
27
|
Use case
|
|
23
28
|
--------
|
|
24
29
|
|
|
25
|
-
|
|
30
|
+
Legal-Notes is a reusable HTML snippet holding the legal disclaimer and
|
|
31
|
+
privacy statements of all my project websites. It is maintained once and
|
|
32
|
+
embedded into each documentation page and home page, so every site always
|
|
33
|
+
shows the same up to date legal text.
|
|
34
|
+
<!--deDE:
|
|
35
|
+
Legal-Notes ist ein wiederverwendbares HTML-Snippet mit dem rechtlichen
|
|
36
|
+
Haftungsausschluss und den Datenschutzhinweisen all meiner
|
|
37
|
+
Projekt-Webseiten. Es wird an einer Stelle gepflegt und in jede
|
|
38
|
+
Dokumentations- und Homepage eingebunden, sodass jede Seite stets
|
|
39
|
+
denselben aktuellen Rechtstext zeigt.
|
|
40
|
+
-->
|
|
41
|
+
<!--frFR:
|
|
42
|
+
Legal-Notes est un extrait HTML réutilisable contenant l'avertissement
|
|
43
|
+
juridique et les déclarations de confidentialité de tous mes sites de
|
|
44
|
+
projet. Il est maintenu à un seul endroit et intégré dans chaque page de
|
|
45
|
+
documentation et page d'accueil, de sorte que chaque site affiche
|
|
46
|
+
toujours le même texte juridique à jour.
|
|
47
|
+
-->
|
|
48
|
+
|
|
49
|
+
Sections included:
|
|
50
|
+
<!--deDE:Enthaltene Abschnitte:-->
|
|
51
|
+
<!--frFR:Sections incluses:-->
|
|
52
|
+
|
|
53
|
+
- Disclaimer: liability for content and links.<!--deDE:Haftungsausschluss: Haftung für Inhalte und Links.--><!--frFR:Désistement: responsabilité quant au contenu et aux liens.-->
|
|
54
|
+
- Copyright of content and artwork.<!--deDE:Urheberrecht an Inhalten und Grafiken.--><!--frFR:Droit d'auteur sur les contenus et les illustrations.-->
|
|
55
|
+
- Privacy policy including the content delivery network (Cloudflare) and a
|
|
56
|
+
possible use of Google Analytics.<!--deDE:Datenschutzerklärung inklusive Content-Delivery-Network (Cloudflare) und einer möglichen Nutzung von Google Analytics.--><!--frFR:Politique de confidentialité, y compris le réseau de diffusion de contenu (Cloudflare) et une éventuelle utilisation de Google Analytics.-->
|
|
57
|
+
|
|
58
|
+
All texts are available in American English, German and French. The
|
|
59
|
+
translations are embedded as HTML comments and can be switched at runtime via
|
|
60
|
+
[web-internationalization](https://tsickert.com/web-internationalization).
|
|
61
|
+
<!--deDE:
|
|
62
|
+
Alle Texte liegen in amerikanischem Englisch, Deutsch und Französisch vor.
|
|
63
|
+
Die Übersetzungen sind als HTML-Kommentare eingebettet und lassen sich zur
|
|
64
|
+
Laufzeit mittels
|
|
65
|
+
[web-internationalization](https://tsickert.com/web-internationalization)
|
|
66
|
+
umschalten.
|
|
67
|
+
-->
|
|
68
|
+
<!--frFR:
|
|
69
|
+
Tous les textes sont disponibles en anglais américain, en allemand et en
|
|
70
|
+
français. Les traductions sont intégrées sous forme de commentaires HTML
|
|
71
|
+
et peuvent être changées à l'exécution grâce à
|
|
72
|
+
[web-internationalization](https://tsickert.com/web-internationalization).
|
|
73
|
+
-->
|
|
74
|
+
|
|
75
|
+
<div class="wd-table-of-contents">
|
|
76
|
+
<h2 id="content">Content<!--deDE:Inhalt--><!--frFR:Contenu--></h2>
|
|
77
|
+
<!--wd-table-of-contents-->
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
Installation
|
|
81
|
+
------------
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
yarn add --dev legal-notes
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The package ships two files:
|
|
88
|
+
<!--deDE:Das Paket liefert zwei Dateien aus:-->
|
|
89
|
+
<!--frFR:Le paquet fournit deux fichiers:-->
|
|
90
|
+
|
|
91
|
+
- "index.html": The readable source.<!--deDE:"index.html": Die lesbare Quelle.--><!--frFR:"index.html": La source lisible.-->
|
|
92
|
+
- "index.compiled.html": A minified version which keeps all translation
|
|
93
|
+
comments. This is the package entry point.<!--deDE:"index.compiled.html": Eine minimierte Version, die alle Übersetzungskommentare behält. Dies ist der Einstiegspunkt des Pakets.--><!--frFR:"index.compiled.html": Une version minifiée qui conserve tous les commentaires de traduction. C'est le point d'entrée du paquet.-->
|
|
94
|
+
|
|
95
|
+
<!--|deDE:Verwendung-->
|
|
96
|
+
<!--|frFR:Utilisation-->
|
|
97
|
+
Usage
|
|
98
|
+
-----
|
|
99
|
+
|
|
100
|
+
<!--|deDE:In EJS-Vorlagen mit weboptimizer-->
|
|
101
|
+
<!--|frFR:Dans des modèles EJS avec weboptimizer-->
|
|
102
|
+
### In EJS templates with weboptimizer
|
|
103
|
+
|
|
104
|
+
[weboptimizer](https://tsickert.com/weboptimizer) resolves package names in
|
|
105
|
+
its EJS "include" function to the package entry point. That is how
|
|
106
|
+
[web-documentation](https://tsickert.com/web-documentation) and my home page
|
|
107
|
+
embed the notes:
|
|
108
|
+
<!--deDE:
|
|
109
|
+
[weboptimizer](https://tsickert.com/weboptimizer) löst Paketnamen in
|
|
110
|
+
seiner EJS-Funktion "include" zum Einstiegspunkt des Pakets auf. So binden
|
|
111
|
+
[web-documentation](https://tsickert.com/web-documentation) und meine
|
|
112
|
+
Homepage die Hinweise ein:
|
|
113
|
+
-->
|
|
114
|
+
<!--frFR:
|
|
115
|
+
[weboptimizer](https://tsickert.com/weboptimizer) résout les noms de
|
|
116
|
+
paquets de sa fonction EJS "include" vers le point d'entrée du paquet.
|
|
117
|
+
C'est ainsi que
|
|
118
|
+
[web-documentation](https://tsickert.com/web-documentation) et ma page
|
|
119
|
+
d'accueil intègrent les mentions:
|
|
120
|
+
-->
|
|
121
|
+
|
|
122
|
+
```HTML
|
|
123
|
+
<section>
|
|
124
|
+
<h2>About this website</h2>
|
|
125
|
+
<%- await _.include('legal-notes') %>
|
|
126
|
+
</section>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
<!--|deDE:In Node.js-->
|
|
130
|
+
<!--|frFR:Dans Node.js-->
|
|
131
|
+
### In Node.js
|
|
132
|
+
|
|
133
|
+
Resolve the entry point and read it as text:
|
|
134
|
+
<!--deDE:Lösen Sie den Einstiegspunkt auf und lesen Sie ihn als Text ein:-->
|
|
135
|
+
<!--frFR:Résolvez le point d'entrée et lisez-le comme texte:-->
|
|
136
|
+
|
|
137
|
+
```JavaScript
|
|
138
|
+
import {readFile} from 'fs/promises'
|
|
139
|
+
|
|
140
|
+
const legalNotes = await readFile(
|
|
141
|
+
new URL(import.meta.resolve('legal-notes')), 'utf8'
|
|
142
|
+
)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
<!--|deDE:Im Browser-->
|
|
146
|
+
<!--|frFR:Dans le navigateur-->
|
|
147
|
+
### In the browser
|
|
148
|
+
|
|
149
|
+
Load the snippet from a CDN and insert it into your page:
|
|
150
|
+
<!--deDE:
|
|
151
|
+
Laden Sie das Snippet von einem CDN und fügen Sie es in Ihre Seite ein:
|
|
152
|
+
-->
|
|
153
|
+
<!--frFR:Chargez l'extrait depuis un CDN et insérez-le dans votre page:-->
|
|
154
|
+
|
|
155
|
+
```JavaScript
|
|
156
|
+
const response =
|
|
157
|
+
await fetch('https://unpkg.com/legal-notes@latest/index.compiled.html')
|
|
158
|
+
|
|
159
|
+
document.querySelector('.legal-notes').innerHTML = await response.text()
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
<!--|deDE:Entwicklung-->
|
|
163
|
+
<!--|frFR:Développement-->
|
|
164
|
+
Development
|
|
165
|
+
-----------
|
|
166
|
+
|
|
167
|
+
Edit "index.html" and build the minified version via
|
|
168
|
+
[html-minifier](https://www.npmjs.com/package/html-minifier):
|
|
169
|
+
<!--deDE:
|
|
170
|
+
Bearbeiten Sie "index.html" und erzeugen Sie die minimierte Version
|
|
171
|
+
mittels [html-minifier](https://www.npmjs.com/package/html-minifier):
|
|
172
|
+
-->
|
|
173
|
+
<!--frFR:
|
|
174
|
+
Modifiez "index.html" et générez la version minifiée via
|
|
175
|
+
[html-minifier](https://www.npmjs.com/package/html-minifier):
|
|
176
|
+
-->
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
yarn install
|
|
180
|
+
yarn build # Writes "index.compiled.html".
|
|
181
|
+
yarn test # Builds and prints the result.
|
|
182
|
+
yarn clear # Removes compiled files.
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
New package versions are published by manually running the "Build package
|
|
186
|
+
and push" GitHub workflow.
|
|
187
|
+
<!--deDE:
|
|
188
|
+
Neue Paketversionen werden durch manuelles Starten des GitHub-Workflows
|
|
189
|
+
"Build package and push" veröffentlicht.
|
|
190
|
+
-->
|
|
191
|
+
<!--frFR:
|
|
192
|
+
Les nouvelles versions du paquet sont publiées en lançant manuellement le
|
|
193
|
+
workflow GitHub "Build package and push".
|
|
194
|
+
-->
|