Skip to content

Commit ea0c8d8

Browse files
committed
Invent an About page.
1 parent 93b9b46 commit ea0c8d8

File tree

7 files changed

+55
-0
lines changed

7 files changed

+55
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class='container'>
2+
<p>
3+
{{ 'about.attribution.text' | translate }}
4+
<a href='https://wiki.lyrasis.org/display/DSPACE/Home'>DSpace</a>.
5+
</p>
6+
</div>

src/app/about/about-page.component.scss

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Component } from '@angular/core';
2+
import { TranslateModule } from '@ngx-translate/core';
3+
4+
@Component({
5+
selector: 'ds-base-about',
6+
styleUrls: ['about-page.component.scss'],
7+
templateUrl: 'about-page.component.html',
8+
standalone: true,
9+
imports: [TranslateModule],
10+
})
11+
export class AboutComponent{
12+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { Component } from '@angular/core';
2+
3+
import { ThemedComponent } from '../shared/theme-support/themed.component';
4+
import { AboutComponent } from './about-page.component';
5+
6+
/**
7+
* Themed wrapper for AboutComponent
8+
*/
9+
@Component({
10+
selector: 'ds-about',
11+
styleUrls: [],
12+
templateUrl: '../shared/theme-support/themed.component.html',
13+
standalone: true,
14+
imports: [
15+
AboutComponent,
16+
],
17+
})
18+
export class ThemedAboutComponent extends ThemedComponent<AboutComponent> {
19+
protected getComponentName(): string {
20+
return 'AboutComponent';
21+
}
22+
23+
protected importThemedComponent(themeName: string): Promise<any> {
24+
return import(`../../themes/${themeName}/app/about/about-page.component`);
25+
}
26+
27+
protected importUnthemedComponent(): Promise<any> {
28+
return import('./about-page.component');
29+
}
30+
}

src/app/app-routes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { ServerCheckGuard } from '@dspace/core/server-check/server-check.guard';
2727
import { ACCESS_CONTROL_MODULE_PATH } from './access-control/access-control-routing-paths';
2828
import { NOTIFICATIONS_MODULE_PATH } from './admin/admin-routing-paths';
2929
import {
30+
ABOUT_PATH,
3031
ADMIN_MODULE_PATH,
3132
FORGOT_PASSWORD_PATH,
3233
HEALTH_PAGE_PATH,
@@ -36,6 +37,7 @@ import {
3637
WORKFLOW_ITEM_MODULE_PATH,
3738
} from './app-routing-paths';
3839
import { notAuthenticatedGuard } from './core/auth/not-authenticated.guard';
40+
import { ThemedAboutComponent } from 'src/app/about/themed-about-page.component';
3941
import { ThemedForbiddenComponent } from './forbidden/themed-forbidden.component';
4042
import { homePageResolver } from './home-page/home-page.resolver';
4143
import { provideSuggestionNotificationsState } from './notifications/provide-suggestion-notifications-state';
@@ -48,6 +50,7 @@ import { provideSubmissionState } from './submission/provide-submission-state';
4850
import { SUGGESTION_MODULE_PATH } from './suggestions-page/suggestions-page-routing-paths';
4951

5052
export const APP_ROUTES: Route[] = [
53+
{ path: ABOUT_PATH, component: ThemedAboutComponent },
5154
{ path: INTERNAL_SERVER_ERROR, component: ThemedPageInternalServerErrorComponent },
5255
{ path: ERROR_PAGE, component: ThemedPageErrorComponent },
5356
{

src/app/app-routing-paths.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export const COAR_NOTIFY_SUPPORT = 'coar-notify-support';
22

3+
export const ABOUT_PATH = 'about';
4+
35
export const ADMIN_MODULE_PATH = 'admin';
46

57
export function getAdminModuleRoute() {

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7213,4 +7213,6 @@
72137213
"item.preview.organization.address.addressLocality": "City",
72147214

72157215
"item.preview.organization.alternateName": "Alternative name",
7216+
7217+
"about.attribution.text": "This repository is built with",
72167218
}

0 commit comments

Comments
 (0)