Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
cfec727
Replace outdated dependency with the correct one for code coverage
ocket8888 Jan 13, 2022
d6e6d60
Update Angular to version 13.1.3
ocket8888 Jan 13, 2022
afd4962
Remove now-unused directive for dialogs
ocket8888 Jan 13, 2022
058e10c
Simplify customvalidity directive
ocket8888 Jan 13, 2022
de143b5
Increase test coverage
ocket8888 Jan 14, 2022
1e02968
Add API module and companion testing module
ocket8888 Jan 19, 2022
a4cb389
Move the server service to the API module
ocket8888 Jan 20, 2022
3c72a2e
Fix table rendering broken due to context menu issues
ocket8888 Jan 20, 2022
9d090fa
Move the CDN service to the API module
ocket8888 Jan 20, 2022
26ba5fd
Move the Cache Group service to the API module
ocket8888 Jan 20, 2022
2b9c673
Move the Delivery Service service to the API module
ocket8888 Jan 20, 2022
f11f5ab
Move the Type service to the API module
ocket8888 Jan 20, 2022
12ac684
Move Profile service to the API module
ocket8888 Jan 20, 2022
b350362
Move Invalidation Job service to the API module
ocket8888 Jan 20, 2022
b9cc9a4
Move User service to the API module
ocket8888 Jan 20, 2022
3536e35
Move Physical Location service to the API module
ocket8888 Jan 20, 2022
3e3b10d
Upgrade to TypeScript 4.5
ocket8888 Jan 20, 2022
eeff7f9
Enforce consistent import group ordering
ocket8888 Jan 20, 2022
afaa8f4
Add code-coverage scripts
ocket8888 Jan 20, 2022
961fef9
Omit API code and associated testing mock services from code coverage…
ocket8888 Jan 20, 2022
6d35023
Remove unused and untested utility function
ocket8888 Jan 20, 2022
977ebf8
Add typedoc documentation generation
ocket8888 Jan 20, 2022
cdd1aff
Expand test coverage of customvalidity directive (to 100%)
ocket8888 Jan 20, 2022
8c39d7e
Expand test coverage of tp-header component (to 100%)
ocket8888 Jan 20, 2022
9e37b87
Expand test coverage of SSH Cell-Renderer component (to 100%)
ocket8888 Jan 21, 2022
f07f06f
Use a type-aware linting rule for disallowing duplicate imports
ocket8888 Jan 21, 2022
2764641
Expand test coverage of the Generic Table component
ocket8888 Jan 21, 2022
7fcebe6
Expand test coverage of the Current User service
ocket8888 Jan 21, 2022
03d4903
(Slightly) Expand test coverage of Line Chart directive
ocket8888 Jan 21, 2022
561e97d
Expand test coverage of the Reset Password Dialog component (to 100%)
ocket8888 Jan 21, 2022
1187028
Expand test coverage of the Login component (to 100%)
ocket8888 Jan 21, 2022
cc7a0c3
Expand test coverage of the Authenticated Guard service (to 100%)
ocket8888 Jan 21, 2022
8617c0f
Expand test coverage of the Update Status component
ocket8888 Jan 21, 2022
8645cdf
Expand test coverage of the Servers Table component
ocket8888 Jan 21, 2022
48997ac
Expand test coverage of the Server Details component
ocket8888 Jan 24, 2022
d84aadd
Expand test coverage of the New Delivery Service component
ocket8888 Jan 24, 2022
dcf9831
Switch DS and Job creation methods to return what they created
ocket8888 Jan 27, 2022
c62cf09
Expand test coverage of the New Invalidation Job Dialog component
ocket8888 Jan 27, 2022
c870267
Expand test coverage of the Invalidation Jobs component
ocket8888 Jan 27, 2022
ab59099
Expand test coverage of the App Component (to 100%)
ocket8888 Jan 27, 2022
e541fd3
Expand test coverage of the Current User component (to 100%)
ocket8888 Jan 27, 2022
4c37015
Expand test coverage of the DS Card component
ocket8888 Jan 27, 2022
9ed60ed
Expand test coverage of the Delivery Service component
ocket8888 Jan 28, 2022
74780ce
Expand Dashboard component test coverage
ocket8888 Jan 28, 2022
437ac4e
Expand test coverage of the Cache Groups Table component
ocket8888 Jan 28, 2022
b609293
npm audit fix
ocket8888 Jan 28, 2022
4e7a015
Upgrade Angular to version 13.2.0
ocket8888 Jan 28, 2022
0afda1b
Disable warning for imports that should be type-only
ocket8888 Jan 28, 2022
58034c1
Replace typedoc with compodoc
ocket8888 Jan 28, 2022
ff4d856
Fix missing license headers
ocket8888 Jan 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 80 additions & 3 deletions experimental/traffic-portal/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
"allowWithDecorator": true
}
],
"@typescript-eslint/no-duplicate-imports": ["error"],
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-inferrable-types": [
Expand Down Expand Up @@ -200,6 +201,8 @@
"error"
],
"@typescript-eslint/typedef": "off",
"jsdoc/no-types": "error",
"jsdoc/require-description": "error",
"jsdoc/require-jsdoc": [
"error",
{
Expand All @@ -217,7 +220,8 @@
},
"checkConstructors": false,
"checkGetters": true,
"checkSetters": true
"checkSetters": true,
"enableFixer": false
}
],
"@typescript-eslint/unbound-method": "error",
Expand All @@ -232,14 +236,68 @@
"1tbs"
],
"class-methods-use-this": "off",
"import/order": "error",
"import/export": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-cycle": [
"error",
{
"ignoreExternal": true
}
],
"import/no-self-import": "error",
"import/no-useless-path-segments": [
"error",
{
"commonjs": true,
"noUselessIndex": true
}
],
"import/order": [
"error",
{
"alphabetize": {"order": "asc"},
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling"
],
"pathGroups": [
{
"group": "builtin",
"pattern": "zone.js/**/*",
"position": "before"
},
{
"group": "external",
"pattern": "(@(angular|fortawesome)|chart.js|rxjs)*/**/*",
"position": "before"
},
{
"group": "internal",
"pattern": "src/**/*"
}
],
"pathGroupsExcludedImportTypes": [
"zone.js/**/*",
"@angular*/**/*",
"@fortawesome*/**/*",
"chart.js",
"rxjs"
],
"newlines-between": "always",
"warnOnUnassignedImports": true
}
],
"linebreak-style": [
"error",
"unix"
],
"no-bitwise": "off",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-duplicate-imports": "off",
"no-else-return": "error",
"no-empty": "error",
"no-extra-bind": "error",
Expand All @@ -249,8 +307,27 @@
"capIsConstructor": false
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}
],
"no-new-func": "error",
"no-redeclare": "off",
"no-restricted-imports": [
"error",
{
"patterns": [
{
"message": "Going up more than one directory for an import is overly complex; use an import path that starts with 'src/' instead",
"group": ["../../*"]
}
]
}
],
"no-return-await": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
Expand Down
1 change: 1 addition & 0 deletions experimental/traffic-portal/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"codeCoverageExclude": ["src/app/api/**/*"],
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
Expand Down
32 changes: 32 additions & 0 deletions experimental/traffic-portal/documentation.styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

@import "./reset.css";
@import "./bootstrap.min.css";
@import "./bootstrap-card.css";
@import "./prism.css";
@import "./ionicons.min.css";
@import "./compodoc.css";
@import "./tablesort.css";

.img-responsive[data-type="custom-logo"] {
max-height: 150px;
display: block;
margin: auto;
}
7 changes: 4 additions & 3 deletions experimental/traffic-portal/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ module.exports = function (config) {
require("karma-jasmine"),
require("karma-chrome-launcher"),
require("karma-jasmine-html-reporter"),
require("karma-coverage-istanbul-reporter"),
require("karma-coverage"),
require("@angular-devkit/build-angular/plugins/karma")
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
coverageReporter: {
dir: require("path").join(__dirname, "./coverage/traffic-portal"),
reports: ["html", "lcovonly", "text-summary"],
reports: [{type: "html"}, {type: "text-summary"}],
subdir: ".",
fixWebpackSourcePaths: true
},
reporters: ["progress", "kjhtml"],
Expand Down
Loading