codecharta-visualization 1.125.0 → 1.127.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/LICENSE.md CHANGED
@@ -1,17 +1,17 @@
1
- Copyright (c) 2017, MaibornWolff GmbH
1
+ Copyright (c) 2024, MaibornWolff GmbH
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
5
5
  modification, are permitted provided that the following conditions are met:
6
6
 
7
- - Redistributions of source code must retain the above copyright notice,
8
- this list of conditions and the following disclaimer.
9
- - Redistributions in binary form must reproduce the above copyright
10
- notice, this list of conditions and the following disclaimer in the
11
- documentation and/or other materials provided with the distribution.
12
- - Neither the name of nor the names of its contributors may be used to
13
- endorse or promote products derived from this software without specific
14
- prior written permission.
7
+ - Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+ - Redistributions in binary form must reproduce the above copyright
10
+ notice, this list of conditions and the following disclaimer in the
11
+ documentation and/or other materials provided with the distribution.
12
+ - Neither the name of nor the names of its contributors may be used to
13
+ endorse or promote products derived from this software without specific
14
+ prior written permission.
15
15
 
16
16
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
17
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
package/README.md CHANGED
@@ -6,22 +6,22 @@
6
6
 
7
7
  ## Jump to Section
8
8
 
9
- - [Installation](#installation)
10
- - [Development Tasks](#tasks)
11
- - [Testing](#testing)
12
- - [JSON structure](#json-structure)
13
- - [License](LICENSE.md)
9
+ - [Installation](#installation)
10
+ - [Development Tasks](#tasks)
11
+ - [Testing](#testing)
12
+ - [JSON structure](#json-structure)
13
+ - [License](LICENSE.md)
14
14
 
15
15
  # Installation
16
16
 
17
17
  You can start with **Codecharta Visualization** on multiple ways:
18
18
 
19
- - Installation as a [npm package](#npm-package) (Recommended for users)
20
- - Run an operating system specific [standalone](#run-a-standalone)
21
- - Build it yourself from the github [repository](#build-it-yourself) (Development)
22
- - Use [docker-compose](https://maibornwolff.github.io/codecharta/docs/docker-containers/) to run this with other needed tools like a Sonar instance or analyzing tools of codecharta-analysis.
23
- - Use our [Dockerfile](#run-in-docker-container) to run the visualization in a container
24
- - Try out the [online version](https://maibornwolff.github.io/codecharta/visualization/app/index.html?file=codecharta.cc.json&file=codecharta_analysis.cc.json)
19
+ - Installation as a [npm package](#npm-package) (Recommended for users)
20
+ - Run an operating system specific [standalone](#run-a-standalone)
21
+ - Build it yourself from the github [repository](#build-it-yourself) (Development)
22
+ - Use [docker-compose](https://maibornwolff.github.io/codecharta/docs/docker-containers/) to run this with other needed tools like a Sonar instance or analyzing tools of codecharta-analysis.
23
+ - Use our [Dockerfile](#run-in-docker-container) to run the visualization in a container
24
+ - Try out the [online version](https://maibornwolff.github.io/codecharta/visualization/app/index.html?file=codecharta.cc.json&file=codecharta_analysis.cc.json)
25
25
 
26
26
  > Be aware, that if you are on Apple Silicon, you may run into problems with the standalone and build versions
27
27
 
@@ -40,8 +40,8 @@ $ codecharta-visualization
40
40
 
41
41
  ## Run a standalone
42
42
 
43
- - Download the correct standalone version for your OS from the [latest release page](https://github.com/MaibornWolff/codecharta/releases) under 'Assets'
44
- - Extract & run the application
43
+ - Download the correct standalone version for your OS from the [latest release page](https://github.com/MaibornWolff/codecharta/releases) under 'Assets'
44
+ - Extract & run the application
45
45
 
46
46
  ### MacOS
47
47
 
@@ -50,8 +50,8 @@ $ codecharta-visualization
50
50
 
51
51
  > If you are using an M1 or similar (arm64) architectures you might need to do additional steps, because the OS might flag the executable as damaged, if it is downloaded and from an unverified developer:
52
52
 
53
- - Remove the 'downloaded' attributes from the OS:
54
- `$ xattr -cr codecharta-visualization.app/`
53
+ - Remove the 'downloaded' attributes from the OS:
54
+ `$ xattr -cr codecharta-visualization.app/`
55
55
 
56
56
  ## Build it yourself
57
57
 
@@ -161,11 +161,15 @@ We assume that you already installed docker, if not, you have to do that before!
161
161
 
162
162
  To containerize the visualization, please follow the below listed steps.
163
163
 
164
- - Start the docker container: `docker run -d -p 9000:80 codecharta/codecharta-visualization`. This detaches the container and exposes port 80 on the container and port 9000 on the host.
165
- - Open `localhost:9000` in your browser and you can already use the visualization, upload `cc.json` files and play around!
164
+ - Start the docker container: `docker run -d -p 9000:80 codecharta/codecharta-visualization`. This detaches the container and exposes port 80 on the container and port 9000 on the host.
165
+ - Open `localhost:9000` in your browser and you can already use the visualization, upload `cc.json` files and play around!
166
166
 
167
167
  # JSON structure
168
168
 
169
169
  [Example Data](/visualization/app/codeCharta/assets/sample1.cc.json)
170
170
 
171
171
  [JSON Schema](/visualization/app/codeCharta/util/generatedSchema.json)
172
+
173
+ ## Code Style
174
+
175
+ Please check out the [DEV_START_GUIDE](../DEV_START_GUIDE.md).
@@ -1,23 +1,23 @@
1
1
  {
2
- "collectCoverage": true,
3
- "rootDir": "./../",
4
- "coverageDirectory": "<rootDir>/dist/coverage",
5
- "collectCoverageFrom": ["<rootDir>/app/**/*.ts", "!**/node_modules/**"],
6
- "coveragePathIgnorePatterns": ["\\.(spec|e2e|po)\\.ts$", "<rootDir>/app/puppeteer.helper.ts"],
7
- "transform": {
8
- "\\.(ts|tsx)$": [
9
- "ts-jest",
10
- {
11
- "tsconfig": "tsconfig.spec.json"
12
- }
13
- ],
14
- "^.+\\.md$": "<rootDir>/app/codeCharta/util/testUtils/markdown-transformer.js"
15
- },
16
- "transformIgnorePatterns": ["/node_modules/(?!(three|ngx-color/fesm2020))"],
17
- "roots": ["<rootDir>/app"],
18
- "testMatch": ["**/*.e2e.ts"],
19
- "moduleFileExtensions": ["js", "json", "ts", "mjs"],
20
- "moduleDirectories": ["node_modules", "<rootDir>/app"],
21
- "preset": "./conf/jestE2E-preset.js",
22
- "testTimeout": 60000
2
+ "collectCoverage": true,
3
+ "rootDir": "./../",
4
+ "coverageDirectory": "<rootDir>/dist/coverage",
5
+ "collectCoverageFrom": ["<rootDir>/app/**/*.ts", "!**/node_modules/**"],
6
+ "coveragePathIgnorePatterns": ["\\.(spec|e2e|po)\\.ts$", "<rootDir>/app/puppeteer.helper.ts"],
7
+ "transform": {
8
+ "\\.(ts|tsx)$": [
9
+ "ts-jest",
10
+ {
11
+ "tsconfig": "tsconfig.spec.json"
12
+ }
13
+ ],
14
+ "^.+\\.md$": "<rootDir>/app/codeCharta/util/testUtils/markdown-transformer.js"
15
+ },
16
+ "transformIgnorePatterns": ["/node_modules/(?!(three|ngx-color/fesm2020))"],
17
+ "roots": ["<rootDir>/app"],
18
+ "testMatch": ["**/*.e2e.ts"],
19
+ "moduleFileExtensions": ["js", "json", "ts", "mjs"],
20
+ "moduleDirectories": ["node_modules", "<rootDir>/app"],
21
+ "preset": "./conf/jestE2E-preset.js",
22
+ "testTimeout": 60000
23
23
  }
@@ -1,22 +1,22 @@
1
1
  {
2
- "collectCoverage": true,
3
- "rootDir": "./../",
4
- "coverageDirectory": "<rootDir>/dist/coverage",
5
- "collectCoverageFrom": ["<rootDir>/app/**/*.ts", "!**/node_modules/**"],
6
- "coveragePathIgnorePatterns": ["\\.(spec|e2e|po)\\.ts$", "<rootDir>/app/puppeteer.helper.ts"],
7
- "preset": "jest-preset-angular",
8
- "transform": {
9
- "\\.glsl$": "<rootDir>/mocks/fileTransformer.js"
10
- },
11
- "transformIgnorePatterns": ["/node_modules/(?!(three|ngx-color/fesm2020|.*\\.mjs$))"],
12
- "moduleNameMapper": {
13
- "\\CHANGELOG.(md)$": "<rootDir>/mocks/changelogMock.js",
14
- "^d3$": "<rootDir>/node_modules/d3/dist/d3.min.js"
15
- },
16
- "roots": ["<rootDir>/app"],
17
- "moduleFileExtensions": ["js", "json", "ts", "mjs"],
18
- "moduleDirectories": ["node_modules", "<rootDir>/app"],
19
- "setupFiles": ["<rootDir>/mocks/localStorageMock.js"],
20
- "setupFilesAfterEnv": ["<rootDir>/conf/setupJestUnit.ts", "jest-canvas-mock"],
21
- "testEnvironment": "jsdom"
2
+ "collectCoverage": true,
3
+ "rootDir": "./../",
4
+ "coverageDirectory": "<rootDir>/dist/coverage",
5
+ "collectCoverageFrom": ["<rootDir>/app/**/*.ts", "!**/node_modules/**"],
6
+ "coveragePathIgnorePatterns": ["\\.(spec|e2e|po)\\.ts$", "<rootDir>/app/puppeteer.helper.ts"],
7
+ "preset": "jest-preset-angular",
8
+ "transform": {
9
+ "\\.glsl$": "<rootDir>/mocks/fileTransformer.js"
10
+ },
11
+ "transformIgnorePatterns": ["/node_modules/(?!(three|ngx-color/fesm2020|.*\\.mjs$))"],
12
+ "moduleNameMapper": {
13
+ "\\CHANGELOG.(md)$": "<rootDir>/mocks/changelogMock.js",
14
+ "^d3$": "<rootDir>/node_modules/d3/dist/d3.min.js"
15
+ },
16
+ "roots": ["<rootDir>/app"],
17
+ "moduleFileExtensions": ["js", "json", "ts", "mjs"],
18
+ "moduleDirectories": ["node_modules", "<rootDir>/app"],
19
+ "setupFiles": ["<rootDir>/mocks/localStorageMock.js"],
20
+ "setupFilesAfterEnv": ["<rootDir>/conf/setupJestUnit.ts", "jest-canvas-mock"],
21
+ "testEnvironment": "jsdom"
22
22
  }
@@ -2,7 +2,7 @@ import "jest-preset-angular/setup-jest"
2
2
 
3
3
  const numberToLocaleString = Number.prototype.toLocaleString
4
4
  Number.prototype.toLocaleString = function (locale = "en-US") {
5
- return numberToLocaleString.call(this, locale)
5
+ return numberToLocaleString.call(this, locale)
6
6
  }
7
7
 
8
8
  window["__TEST_ENVIRONMENT__"] = true
@@ -1,14 +1,14 @@
1
1
  module.exports = config => {
2
- config.module.rules.push(
3
- {
4
- test: /\.glsl$/,
5
- use: ["webpack-glsl-loader"]
6
- },
7
- {
8
- test: /\.md$/,
9
- type: "asset/source"
10
- }
11
- )
2
+ config.module.rules.push(
3
+ {
4
+ test: /\.glsl$/,
5
+ use: ["webpack-glsl-loader"]
6
+ },
7
+ {
8
+ test: /\.md$/,
9
+ type: "asset/source"
10
+ }
11
+ )
12
12
 
13
- return config
13
+ return config
14
14
  }
@@ -599,6 +599,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
599
599
  THE SOFTWARE.
600
600
 
601
601
 
602
+ dijkstrajs
603
+ MIT
604
+ ```
605
+ Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
606
+
607
+ Copyright (C) 2008
608
+ Wyatt Baldwin <self@wyattbaldwin.com>
609
+ All rights reserved
610
+
611
+ Licensed under the MIT license.
612
+
613
+ http://www.opensource.org/licenses/mit-license.php
614
+
615
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
616
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
617
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
618
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
619
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
620
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
621
+ THE SOFTWARE.
622
+ ```
623
+
624
+
625
+ encode-utf8
626
+ MIT
627
+
602
628
  fast-deep-equal
603
629
  MIT
604
630
  MIT License
@@ -649,6 +675,30 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
649
675
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
650
676
 
651
677
 
678
+ fflate
679
+ MIT
680
+ MIT License
681
+
682
+ Copyright (c) 2023 Arjun Barrett
683
+
684
+ Permission is hereby granted, free of charge, to any person obtaining a copy
685
+ of this software and associated documentation files (the "Software"), to deal
686
+ in the Software without restriction, including without limitation the rights
687
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
688
+ copies of the Software, and to permit persons to whom the Software is
689
+ furnished to do so, subject to the following conditions:
690
+
691
+ The above copyright notice and this permission notice shall be included in all
692
+ copies or substantial portions of the Software.
693
+
694
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
695
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
696
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
697
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
698
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
699
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
700
+ SOFTWARE.
701
+
652
702
  font-awesome
653
703
  (OFL-1.1 AND MIT)
654
704
 
@@ -1147,6 +1197,20 @@ The above copyright notice and this permission notice shall be included in all c
1147
1197
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1148
1198
 
1149
1199
 
1200
+ qrcode
1201
+ MIT
1202
+ The MIT License (MIT)
1203
+
1204
+ Copyright (c) 2012 Ryan Day
1205
+
1206
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1207
+
1208
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1209
+
1210
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1211
+
1212
+
1213
+
1150
1214
  rxjs
1151
1215
  Apache-2.0
1152
1216
  Apache License
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path opacity="1" fill="#1E3050" d="M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2s14.8-12.5 14.8-22.2V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path opacity="1" fill="#1E3050" d="M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H208c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="10" viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path opacity="1" fill="#1E3050" d="M182.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L128 109.3V402.7L86.6 361.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7V109.3l41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z"/></svg>