Skip to content

Commit

Permalink
Merge branch 'main' into feature/change-base-href-and-other-paths-for-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomas-orcid authored Oct 30, 2023
2 parents ec68cf8 + 1180d39 commit b15a89c
Show file tree
Hide file tree
Showing 65 changed files with 7,191 additions and 946 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/angular-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Prettier & Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_call:
workflow_dispatch:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: "ui/package-lock.json"
- name: Install dependencies
working-directory: ui
run: npm ci
- name: Run formatter
working-directory: ui
run: npm run format:cli
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Angular Unit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_call:
workflow_dispatch:
jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion gateway/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<link rel="stylesheet" href="content/css/quill.snow.css">
<link rel="stylesheet" href="content/css/quill.core.css">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

<!-- jhipster-needle-add-resources-to-root - JHipster will add new resources here -->
</head>
Expand Down
41 changes: 41 additions & 0 deletions ui/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
]
}
},
{
"files": ["*.html"],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
]
}
28 changes: 12 additions & 16 deletions ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets",
"src/content/images"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets", "src/content/images"],
"styles": ["src/content/scss/global.scss"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -96,20 +90,22 @@
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/content/scss/global.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
}
}
}
},
"cli": {
"analytics": false
"analytics": false,
"schematicCollections": ["@angular-eslint/schematics"]
}
}
24 changes: 12 additions & 12 deletions ui/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
basePath: "",
frameworks: ["jasmine", "@angular-devkit/build-angular"],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
require("karma-jasmine"),
require("karma-chrome-launcher"),
require("karma-jasmine-html-reporter"),
require("karma-coverage"),
require("@angular-devkit/build-angular/plugins/karma"),
],
client: {
jasmine: {
Expand All @@ -19,10 +19,10 @@ module.exports = function (config) {
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
suppressAll: true, // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/ui'),
Expand All @@ -32,13 +32,13 @@ module.exports = function (config) {
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
reporters: ["progress", "kjhtml"],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
browsers: ["ChromeHeadless"],
singleRun: true,
restartOnFileChange: true
restartOnFileChange: true,
});
};
Loading

0 comments on commit b15a89c

Please sign in to comment.