Commit a0e1ef1e authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Add client and server versions

parent 33f9a127
Pipeline #1634 passed with stages
in 11 minutes and 19 seconds
......@@ -4,21 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [3.0.0] - yyyy-mm-dd
## [3.0.3] - 2019-10-21
### Added
- Pour les nouvelles fonctionnalités.
- Display anis-client and anis-server versions.
- Add detail page for an object.
### Changed
- Pour les changements au sein des fonctionnalités déjà existantes.
### Deprecated
- Pour les fonctionnalités qui seront supprimées dans la prochaine publication.
### Removed
- Pour les anciennes fonctionnalités Deprecated qui viennent d’être supprimées.
- Fix ordering by diplay for options in Criteria step.
- Design ouputs selection.
### Fixed
- Pour les corrections de bugs.
### Security
- Pour encourager les utilisateurs à mettre à niveau afin d’éviter des failles de sécurité.
\ No newline at end of file
- Fix bug renderer external links.
\ No newline at end of file
3.0.0
\ No newline at end of file
3.0.3
\ No newline at end of file
......@@ -10,6 +10,9 @@
<div class="row justify-content-center mb-3">
<small>&copy; ANIS 2014 - {{ year }}</small>
</div>
<div class="row justify-content-center mb-4">
<small>Currently based on anis-client v{{ anisClientVersion }} and anis-server v{{ anisServerVersion }}. Code licensed CeCILL.</small>
</div>
<div class="row justify-content-around">
<div class="col text-center">
<a href="http://cesam.lam.fr" title="Centre de données Astrophysique de Marseille">
......
......@@ -7,6 +7,7 @@ import { LoginToken } from '../../login/store/model';
import * as loginActions from '../../login/store/login.action';
import * as loginReducer from '../../login/store/login.reducer';
import * as loginSelector from '../../login/store/login.selector';
import { VERSIONS } from '../../../settings/settings';
@Component({
selector: 'app-root',
......@@ -15,9 +16,11 @@ import * as loginSelector from '../../login/store/login.selector';
encapsulation: ViewEncapsulation.None
})
export class AppComponent implements OnInit {
public year = (new Date()).getFullYear();
public isAuthenticated: Observable<boolean>;
public loginToken: Observable<LoginToken>;
anisServerVersion: string = VERSIONS.anisServer;
anisClientVersion: string = VERSIONS.anisClient;
year = (new Date()).getFullYear();
isAuthenticated: Observable<boolean>;
loginToken: Observable<LoginToken>;
constructor(private store: Store<loginReducer.State>) {
this.isAuthenticated = store.select(loginSelector.isAuthenticated);
......@@ -28,7 +31,7 @@ export class AppComponent implements OnInit {
this.store.dispatch(new loginActions.LoginLocalStorageAction());
}
logout() {
logout(): void {
this.store.dispatch(new loginActions.LogoutAction());
}
}
export const VERSIONS = {
anisServer: '3.0.3',
anisClient: '3.0.3',
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment