Skip to content

Commit

Permalink
feat: update frontend to lates angular version (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Aliaksei Maiseyeu <[email protected]>
  • Loading branch information
kharkevich and Aliaksei Maiseyeu authored Feb 17, 2025
1 parent e706e86 commit 9202d31
Show file tree
Hide file tree
Showing 46 changed files with 4,361 additions and 4,539 deletions.
5 changes: 3 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -174,6 +174,7 @@
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
Expand All @@ -185,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright Copyright 2024 EPAM Systems, Inc.
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The following tools should be installed for local development:
* Python

```shell
git clone https://github.com/data-platform-hq/mlflow-oidc-auth
git clone https://github.com/mlflow-oidc/mlflow-oidc-auth
cd mlflow-oidc-auth
./scripts/run-dev-server.sh
```
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The following tools should be installed for local development:
* Python

```shell
git clone https://github.com/data-platform-hq/mlflow-oidc-auth
git clone https://github.com/mlflow-oidc/mlflow-oidc-auth
cd mlflow-oidc-auth
./scripts/run-dev-server.sh
```
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script>
window.$docsify = {
name: 'mlflow-oidc-auth',
repo: 'https://github.com/data-platform-hq/mlflow-oidc-auth',
repo: 'https://github.com/mlflow-oidc/mlflow-oidc-auth',
loadSidebar: true,
loadNavbar: true,
};
Expand Down
2 changes: 1 addition & 1 deletion mlflow_oidc_auth/responses/client_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def make_forbidden_response() -> Response:

def make_basic_auth_response() -> Response:
response = make_response(
"You are not authenticated. Please see documentation for details" "https://github.com/data-platform-hq/mlflow-oidc-auth"
"You are not authenticated. Please see documentation for details" "https://github.com/mlflow-oidc/mlflow-oidc-auth"
)
response.status_code = 401
response.headers["WWW-Authenticate"] = 'Basic realm="mlflow"'
Expand Down
4 changes: 2 additions & 2 deletions mlflow_oidc_auth/templates/_footer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<footer class="footer">
<div class="footer-right">
<p>&copy; 2024 Data Platform HQ Authors</p>
<p>&copy; 2025 OIDC Plugin for MLflow</p>
</div>
<div class="footer-right">
<a href="http://github.com/data-platform-hq/" ><i class="fab fa-github"></i> Follow us on GitHub</a>
<a href="https://github.com/mlflow-oidc/" ><i class="fab fa-github"></i> Follow us on GitHub</a>
</div>
</footer>
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ email = "[email protected]"
file = "LICENSE"

[project.urls]
homepage = "https://github.com/data-platform-hq/mlflow-oidc-auth"
issues = "https://github.com/data-platform-hq/mlflow-oidc-auth/issues"
documentation = "https://github.com/data-platform-hq/mlflow-oidc-auth/tree/main/docs/"
repository = "https://github.com/data-platform-hq/mlflow-oidc-auth"
homepage = "https://github.com/mlflow-oidc/mlflow-oidc-auth"
issues = "https://github.com/mlflow-oidc/mlflow-oidc-auth/issues"
documentation = "https://github.com/mlflow-oidc/mlflow-oidc-auth/tree/main/docs/"
repository = "https://github.com/mlflow-oidc/mlflow-oidc-auth"

[project.entry-points."mlflow.app"]
oidc-auth = "mlflow_oidc_auth.app:app"
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.projectKey=data-platform-hq_mlflow-oidc-auth
sonar.organization=data-platform-hq
sonar.projectKey=mlflow-oidc_mlflow-oidc-auth
sonar.organization=mlflow-oidc

sonar.python.version=3.11
sonar.python.coverage.reportPaths=coverage.xml
Expand Down
23 changes: 18 additions & 5 deletions web-ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@
},
"configurations": {
"production": {
"buildOptimizer": true,
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
},
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": false,
"namedChunks": true,
"budgets": [
{
"type": "initial",
Expand All @@ -43,8 +56,8 @@
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
"maximumWarning": "12kb",
"maximumError": "15kb"
}
],
"fileReplacements": [
Expand All @@ -70,18 +83,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "mlflow-oidc-auth-front:build:production"
"buildTarget": "mlflow-oidc-auth-front:build:production"
},
"development": {
"browserTarget": "mlflow-oidc-auth-front:build:development"
"buildTarget": "mlflow-oidc-auth-front:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "mlflow-oidc-auth-front:build"
"buildTarget": "mlflow-oidc-auth-front:build"
}
},
"test": {
Expand Down
44 changes: 0 additions & 44 deletions web-ui/karma.conf.js

This file was deleted.

47 changes: 22 additions & 25 deletions web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,34 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^14.2.0",
"@angular/cdk": "^13.0.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
"@angular/core": "^14.2.0",
"@angular/forms": "^14.2.0",
"@angular/localize": "^14.2.0",
"@angular/material": "^13.0.0",
"@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.2.0",
"@ng-bootstrap/ng-bootstrap": "^13.0.0",
"@angular/animations": "^19.0.6",
"@angular/cdk": "^19.0.5",
"@angular/common": "^19.0.6",
"@angular/compiler": "^19.0.6",
"@angular/core": "^19.0.6",
"@angular/forms": "^19.0.6",
"@angular/localize": "^19.0.6",
"@angular/material": "^19.0.5",
"@angular/platform-browser": "^19.0.6",
"@angular/platform-browser-dynamic": "^19.0.6",
"@angular/router": "^19.0.6",
"@ng-bootstrap/ng-bootstrap": "^18.0.0",
"@popperjs/core": "^2.10.2",
"bootstrap": "^5.2.0",
"bootstrap": "^5.3.3",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"xng-breadcrumb": "^8.0.2",
"zone.js": "~0.11.4"
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.13",
"@angular/cli": "~14.2.13",
"@angular/compiler-cli": "^14.2.0",
"@angular-devkit/build-angular": "^19.0.7",
"vite": "^5.0.0",
"@angular/cli": "~19.0.7",
"@angular/compiler-cli": "^19.0.6",
"@types/jasmine": "~4.0.0",
"jasmine-core": "~4.3.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"@types/node": "^18.0.0",
"rimraf": "^5.0.5",
"typescript": "~4.7.2"
}
"typescript": "5.6.3"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
9 changes: 6 additions & 3 deletions web-ui/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ import { RoutePath } from './core/configs/core';
const routes: Routes = [
{ path: RoutePath.Home,
loadChildren: () => import('./features/home-page/home-page.module').then(m => m.HomePageModule),
data: { breadcrumb: 'Home' }
data: {
breadcrumb: {
skip: true,
},
},
},
{
path: RoutePath.Manage,
loadChildren: () => import('./features/admin-page/admin-page.module').then(m => m.AdminPageModule),
data: { breadcrumb: 'Manage' },
},
{ path: '**', pathMatch: 'full', redirectTo: RoutePath.Home },
{ path: '**', redirectTo: RoutePath.Home },
];

@NgModule({
Expand Down
3 changes: 2 additions & 1 deletion web-ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { CurrentUserModel } from './shared/interfaces/user-data.interface';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
styleUrls: ['./app.component.scss'],
standalone: false
})
export class AppComponent implements OnInit {
loading = false;
Expand Down
6 changes: 3 additions & 3 deletions web-ui/src/app/core/configs/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export enum PermissionEnum {
}

export enum PermissionTypeEnum {
USER = 'USER',
GROUP = 'GROUP',
FALLBACK = 'FALLBACK',
USER = 'user',
GROUP = 'group',
FALLBACK = 'fallback',
}

export const PERMISSIONS = [
Expand Down
Loading

0 comments on commit 9202d31

Please sign in to comment.