web-documentation 1.0.20 → 1.0.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-documentation",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Declarative multilanguage documentation website generator",
5
5
  "keywords": [
6
6
  "documentation",
@@ -50,21 +50,21 @@
50
50
  "watch": "weboptimizer build --watch"
51
51
  },
52
52
  "devDependencies": {
53
- "@aws-sdk/client-s3": "^3.1053.0",
53
+ "@aws-sdk/client-s3": "^3.1063.0",
54
54
  "@babel/eslint-parser": "^7.29.7",
55
55
  "@babel/runtime": "^7.29.7",
56
56
  "@eslint/js": "^10.0.1",
57
57
  "@stylistic/eslint-plugin": "^5.10.0",
58
- "@types/archiver": "^7.0.0",
58
+ "@types/archiver": "^8.0.0",
59
59
  "@types/ejs": "^3.1.5",
60
60
  "@types/html-minifier": "^4.0.6",
61
61
  "@types/jsdom": "^28.0.3",
62
62
  "@types/marked": "^6.0.0",
63
- "@types/node": "^25.9.1",
63
+ "@types/node": "^25.9.2",
64
64
  "@types/unzipper": "^0.10.11",
65
65
  "@types/webpack-env": "^1.18.8",
66
- "@typescript-eslint/eslint-plugin": "^8.59.4",
67
- "@typescript-eslint/parser": "^8.59.4",
66
+ "@typescript-eslint/eslint-plugin": "^8.60.1",
67
+ "@typescript-eslint/parser": "^8.60.1",
68
68
  "@webcomponents/webcomponentsjs": "^2.8.0",
69
69
  "archiver": "^8.0.0",
70
70
  "bootstrap-icons": "^1.13.1",
@@ -73,16 +73,16 @@
73
73
  "cssnano": "^8.0.1",
74
74
  "default-gateway": "^7.2.2",
75
75
  "errorreporter": "^1.0.340",
76
- "eslint": "^10.4.0",
76
+ "eslint": "^10.4.1",
77
77
  "eslint-config-google": "^0.14.0",
78
- "eslint-plugin-jsdoc": "^63.0.0",
79
- "favicons": "^7.2.0",
78
+ "eslint-plugin-jsdoc": "^63.0.2",
79
+ "favicons": "^7.3.0",
80
80
  "favicons-webpack-plugin": "^6.0.1",
81
81
  "highlight.js": "^11.11.1",
82
82
  "jest": "30.4.2",
83
83
  "jsdoc": "^4.0.5",
84
84
  "legal-notes": "^1.0.29",
85
- "marked": "^18.0.4",
85
+ "marked": "^18.0.5",
86
86
  "marked-gfm-heading-id": "^4.1.4",
87
87
  "marked-highlight": "^2.2.4",
88
88
  "marked-xhtml": "^1.0.15",
@@ -99,16 +99,16 @@
99
99
  "postcss-url": "^10.1.4",
100
100
  "prop-types": "^15.8.1",
101
101
  "style-loader": "^4.0.0",
102
- "stylelint": "^17.12.0",
102
+ "stylelint": "^17.13.0",
103
103
  "stylelint-config-standard": "^40.0.0",
104
- "typescript-eslint": "^8.59.4",
104
+ "typescript-eslint": "^8.60.1",
105
105
  "ua-parser-js": "^2.0.10",
106
106
  "unzipper": "^0.12.3",
107
- "web-component-wrapper": "^0.0.592",
108
- "web-internationalization": "^2.0.34",
107
+ "web-component-wrapper": "^0.0.593",
108
+ "web-internationalization": "^2.0.36",
109
109
  "weboptimizer": "^3.0.24",
110
110
  "webpack-dev-server": "^5.2.4",
111
- "website-utilities": "^1.0.438"
111
+ "website-utilities": "^1.0.439"
112
112
  },
113
113
  "engines": {
114
114
  "node": ">=24",
package/source/deploy.ts CHANGED
@@ -17,7 +17,7 @@
17
17
  endregion
18
18
  */
19
19
  // region imports
20
- import archiver from 'archiver'
20
+ import {ZipArchive} from 'archiver'
21
21
  import {execSync, ExecSyncOptionsWithStringEncoding} from 'child_process'
22
22
  import {
23
23
  camelCaseToDelimited,
@@ -61,7 +61,7 @@ interface SCOPE_TYPE extends Mapping<unknown> {
61
61
  version: string
62
62
  }
63
63
  // endregion
64
- const log = new Logger({name: 'web-documentation.deploy'})
64
+ const log = new Logger({name: 'web-documentation.deploy', level: 'debug'})
65
65
  // region globals
66
66
  /// region locations
67
67
  const DOCUMENTATION_BUILD_PATH = resolve('./build/')
@@ -393,7 +393,7 @@ const createDistributionBundle = async (): Promise<null | string> => {
393
393
  return result
394
394
  }
395
395
 
396
- const archive = archiver('zip', {zlib: {level: 9}})
396
+ const archive = new ZipArchive({zlib: {level: 9}})
397
397
  archive.pipe(createWriteStream(distributionBundleFilePath))
398
398
 
399
399
  const promise = new Promise<void>((
@@ -32,17 +32,32 @@ Project status
32
32
  Use case
33
33
  --------
34
34
 
35
- The main goal of This plugin is providing an generic interface logic like
36
- controller for calling instance methods or getting property values of an object
37
- orientated designed plugin. A set of reusable logic elements for building gui
38
- components is integrated as well.
39
- <!--deDE:
40
- Hauptziel dieses Plugins ist es einen generischen Weg zu bieten indem
41
- Objekt Orientierte Plugins verfasst werden können, ohne dabei gegen
42
- jQuery's Vorgaben an Plugins zu verstoßen.
43
- Desweiteren werden einige wiederverwendbare Logikbausteine zum Bau
44
- verschiedener GUI-Komponenten mitgeliefert.
45
- -->
35
+ You need utilities for:<!--deDE:Sie benötigen Hilfsfunktionen für:-->
36
+
37
+ - Primitive types
38
+ - Arrays
39
+ - Functions
40
+ - Numbers
41
+ - Objects
42
+ - Strings
43
+ - Date and time
44
+ - Mutual exclusion
45
+ - Lock management
46
+ - Semaphore management
47
+ - Backend
48
+ - CLIs
49
+ - Filesystem
50
+ - Processes
51
+ - Frontend
52
+ - Cookies
53
+ - DOM
54
+ - Data-Transfer
55
+ - JSON-based Expressions
56
+ - Logging
57
+ - Scopes
58
+ - Testing
59
+ - Typescript
60
+ - URLs
46
61
 
47
62
  <!--Place for automatic generated table of contents.-->
48
63
  <div class="doc-toc" style="display:none">
@@ -50,82 +65,26 @@ components is integrated as well.
50
65
  <h2 id="content">Content</h2>
51
66
  </div>
52
67
 
53
- <!--|deDE:Merkmale-->
54
- Features
55
- --------
56
-
57
- <ul>
58
- <li>
59
- Mutual exclusion support through locking management
60
- <!--deDE:Wechselseitiger Ausschluss durch Lock-Management-->
61
- </li>
62
- <li>
63
- Cross browser logging with different log levels
64
- <!--deDE:
65
- Browserübergreifender Log-Mechanismen mit diversen Log-Levels
66
- -->
67
- </li>
68
- <li>
69
- Extending native JavaScript types like strings, arrays or functions
70
- <!--deDE:
71
- Erweiterung der Standard-JavaScript-Typen wie Strings, Arrays und
72
- Funktionen
73
- -->
74
- </li>
75
- <li>
76
- A set of helper functions to parse option objects
77
- <!--deDE:Hilfsfunktionen um Options-Objekte intelligent zu parsen-->
78
- </li>
79
- <li>
80
- Extended dom tree handling.<!--deDE:Erweitertes DOM-Baum-Management-->
81
- </li>
82
- <li>
83
- Plugin scoped event handling.
84
- <!--deDE:Plugineigene Namensräume für Events.-->
85
- </li>
86
- <li>
87
- Generic none-redundant plugin pattern for JavaScript and CoffeeScript
88
- <!--deDE:Generischer Plugin-Muster für JavaScript und CoffeeScript-->
89
- </li>
90
- </ul>
91
-
92
68
  <!--|deDE:Installation-->
93
69
  Installation
94
70
  ------------
95
71
 
96
- ```bash
97
- >>> curl \
98
- https://raw.githubusercontent.com/thaibault/archinstall/main/archinstall.sh >archinstall.sh && \
99
- chmod +x archinstall.sh
100
- ```
101
-
102
- ### Executable code example
103
-
104
- <!--showExample-->
105
-
106
- ```HTML
107
- <label>
108
- Name:
109
- <input type="text" placeholder="Max Musterman" />
110
- </label>
111
- ```
112
-
113
72
  <!--|deDE:Klassische Dom-Integration-->
114
73
  ### Classical dom injection
115
74
 
116
- You can simply download the compiled version as zip file here and inject it
117
- after needed dependencies:
75
+ You can install via package manager, simply download the compiled version as
76
+ zip file here and inject or request via cdn in HTML:
118
77
  <!--deDE:
119
- Du kannst einfach das Plugin als Zip-Archiv herunterladen und per
120
- Script-Tag in deine Webseite integrieren:
78
+ Sie können das Paket über den Paketmanager installieren oder einfach die
79
+ kompilierte Version als ZIP-Datei hier herunterladen und in HTML einbinden
80
+ oder über ein CDN abrufen:
121
81
  -->
122
82
 
83
+ ```bash
84
+ npm install clientnode
85
+ ```
86
+
123
87
  ```HTML
124
- <script
125
- src="https://code.jquery.com/jquery-3.6.0.min.js"
126
- integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
127
- crossorigin="anonymous"
128
- ></script>
129
88
  <!--Inject downloaded file:
130
89
  <script src="index.js"></script>
131
90
  -->
@@ -144,112 +103,9 @@ want.
144
103
  Dadurch können verschiedene Module-Bundler genutzt werden.
145
104
  -->
146
105
 
147
- <!--|deDE:Paket-Management und Modul-Komposition-->
148
- ### Package managed and module bundled
149
-
150
- If you are using npm as package manager you can simply add this tool to your
151
- **package.json** as dependency:
152
- <!--deDE:
153
- Nutzt du npm als Paket-Manager, dann solltest du einfach deine
154
- <strong>package.json</strong> erweitern:
155
- -->
156
-
157
- ```JSON
158
- ...
159
- "dependencies": {
160
- ...
161
- "clientnode": "latest",
162
- ...
163
- },
164
- ...
165
- ```
166
-
167
- After updating your packages you can simply depend on this script and let
168
- a module bundler do the hard stuff or access it via an exported variable name
169
- in given context.
170
- <!--deDE:
171
- Nach einem Update deiner Pakete kannst du dieses Plugin einfach in deine
172
- JavaScript-Module importieren oder die exportierte Variable im gegebenen
173
- Context referenzieren.
174
- -->
175
-
176
- ```JavaScript
177
- ...
178
- import Tools from 'clientnode'
179
- clas Plugin extends Tools...
180
- Tools({logging: true}).log('test') // shows "test" in console
181
- // or
182
- import {$} from 'clientnode'
183
- $.Tools().isEquivalentDom('<div>', '<script>') // false
184
- // or
185
- {makeArray} = require('clientnode').default
186
- makeArray(2) // [2]
187
- // or
188
- $ = require('clientnode').$
189
- $.Tools().isEquivalentDom('<div>', '<script>') // false
190
- ...
191
- ```
192
-
193
- <!--|deDE:Plugin-Vorlage-->
194
- Plugin pattern
195
- --------------
196
-
197
- Use as extension for object orientated, node and browser compatible (optionally
198
- jQuery) plugin using inheritance and dom node as return value reference. This
199
- plugin pattern gives their instance back if no dom node is provided. Direct
200
- initializing the plugin without providing a dom node is also provided.
201
- Note: if you want to use it as jQuery (or another or even custom) plugin you
202
- have to provide "$" globally before loading this module.
203
- <!--deDE:
204
- Einsatz von "$.Tools" um Objekt orientierte, node und Browser kompatible
205
- (optional jQuery) Plugins zu implementieren, indem von "$.Tools" geerbt
206
- wird und der durch jQuery erweiterte DOM-Knoten als return-Wert
207
- referenziert wird. Sollte kein DOM-Knoten an die $-Funktion übergeben
208
- worden sein, gibt dieser Pattern seine Instanz zurück.
209
- Beachte: Wenn das Modul als jQuery (oder anderem potentiell eigenen) Plugin
210
- einer bereits bestehenden Instanz hinzugefügt werden soll muss dieses unter
211
- "$" global verfügbar sein bevor das Modul geladen wird.
212
- -->
213
-
214
- ```JavaScript
215
- 'use strict'
216
- import {$} from 'clientnode'
217
- /**
218
- * This plugin holds all needed methods to extend input fields to select
219
- * numbers very smart.
220
- * @extends clientnode:Tools
221
- * @property static:_name - Defines this class name to allow retrieving them
222
- * after name mangling.
223
- * @property _options - Options extended by the options given to the
224
- * initializer method.
225
- */
226
- export default class Example extends $.Tools.class {
227
- static _name = 'Example';
228
- /* eslint-disable jsdoc/require-description-complete-sentence */
229
- /**
230
- * Initializes the plugin. Later needed dom nodes are grabbed.
231
- * @param options - An options object.
232
- * @returns Returns $'s extended current dom node.
233
- */
234
- initialize(options = {}) {
235
- /* eslint-enable jsdoc/require-description-complete-sentence */
236
- this._options = {/*Default options here*/}
237
- super.initialize(options)
238
- return this.$domNode
239
- }
240
- }
241
- $.fn.Example = function() {
242
- return $.Tools().controller(Example, arguments, this)
243
- }
244
- ```
245
-
246
- Initialisation with given dom node and without:
247
- <!--deDE:Aufruf mit und ohne übergebenen DOM-Knoten:-->
248
-
249
- ```JavaScript
250
- const $domNode = $('#domNode').Example({firstOption: 'value'});
251
- const exampleInstance = $.Example({firstOption: 'value'});
252
- ```
106
+ <!--|deDE:Nutzung-->
107
+ Usage
108
+ -----
253
109
 
254
110
  Function call from previous generated instance via dom node or instance
255
111
  reference:
@@ -259,8 +115,5 @@ reference:
259
115
  -->
260
116
 
261
117
  ```JavaScript
262
- const returnValue = $('#domNode').Example('method', 'anArgument')
263
- const returnValue = $('#domNode').Example().method('anArgument')
264
- const exampleInstance = $.Example({firstOption: 'value'})
265
- const returnValue = exampleInstance.method('anArgument')
118
+ console.log('TEST')
266
119
  ```