Skip to content

Commit

Permalink
project: update license headers
Browse files Browse the repository at this point in the history
* Updates project name in license text.
* Updates the year in license text.
* Standardizes the display of headers.
* Organizes imports in all files.
* Closes #160.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Apr 15, 2020
1 parent 4bd6f55 commit edfe21f
Show file tree
Hide file tree
Showing 140 changed files with 781 additions and 766 deletions.
17 changes: 16 additions & 1 deletion projects/ng-core-tester/src/app/app-config.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/*
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { TestBed } from '@angular/core/testing';

import { AppConfigService } from './app-config.service';

describe('AppConfigService', () => {
Expand Down
32 changes: 15 additions & 17 deletions projects/ng-core-tester/src/app/app-config.service.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Injectable } from '@angular/core';
import { CoreConfigService } from '@rero/ng-core';

import { environment } from '../environments/environment';

@Injectable({
Expand Down
5 changes: 2 additions & 3 deletions projects/ng-core-tester/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand All @@ -25,7 +25,6 @@ import { DetailComponent } from './record/document/detail/detail.component';
import { DocumentComponent } from './record/document/document.component';
import { RouteService } from './routes/route.service';


const adminModeCanNot = (): Observable<ActionStatus> => {
return of({
can: false,
Expand Down
4 changes: 2 additions & 2 deletions projects/ng-core-tester/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Invenio angular core
Copyright (C) 2019 RERO
RERO angular core
Copyright (C) 2020 RERO

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
Expand Down
16 changes: 0 additions & 16 deletions projects/ng-core-tester/src/app/app.component.scss

This file was deleted.

38 changes: 18 additions & 20 deletions projects/ng-core-tester/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Component, OnInit } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { CoreConfigService, TitleMetaService, RecordService, RecordEvent } from '@rero/ng-core';
import { ToastrService } from 'ngx-toastr';
import { CoreConfigService, RecordEvent, RecordService, TitleMetaService } from '@rero/ng-core';
import { BsLocaleService } from 'ngx-bootstrap';

import { ToastrService } from 'ngx-toastr';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
templateUrl: './app.component.html'
})
export class AppComponent implements OnInit {
lang: string = document.documentElement.lang;
Expand Down
23 changes: 10 additions & 13 deletions projects/ng-core-tester/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand All @@ -14,24 +14,21 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';

import { TranslateModule, TranslateLoader as BaseTranslateLoader } from '@ngx-translate/core';
import { RecordModule, TranslateLoader } from '@rero/ng-core';
import { CoreConfigService } from '@rero/ng-core';

import { TranslateLoader as BaseTranslateLoader, TranslateModule } from '@ngx-translate/core';
import { CoreConfigService, RecordModule, TranslateLoader } from '@rero/ng-core';
import { BsLocaleService, CollapseModule, TypeaheadModule } from 'ngx-bootstrap';
import { defineLocale } from 'ngx-bootstrap/chronos';
import { deLocale, enGbLocale, frLocale, itLocale } from 'ngx-bootstrap/locale';
import { AppConfigService } from './app-config.service';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { DocumentComponent } from './record/document/document.component';
import { HomeComponent } from './home/home.component';
import { DetailComponent } from './record/document/detail/detail.component';
import { AppConfigService } from './app-config.service';
import { CollapseModule, TypeaheadModule, BsLocaleService } from 'ngx-bootstrap';
import { defineLocale } from 'ngx-bootstrap/chronos';
import { enGbLocale, frLocale, deLocale, itLocale } from 'ngx-bootstrap/locale';
import { DocumentComponent } from './record/document/document.component';
import { SearchBarComponent } from './search-bar/search-bar.component';

@NgModule({
Expand Down
16 changes: 16 additions & 0 deletions projects/ng-core-tester/src/app/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!--
 RERO angular core
 Copyright (C) 2020 RERO

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
 the Free Software Foundation, version 3 of the License.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Affero General Public License for more details.

 You should have received a copy of the GNU Affero General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<h4>Search component</h4>
<div class="card">
<div class="card-body">
Expand Down
31 changes: 15 additions & 16 deletions projects/ng-core-tester/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Component } from '@angular/core';
import { ApiService, DialogService, RecordSearchService, TranslateLanguageService } from '@rero/ng-core';
import { ToastrService } from 'ngx-toastr';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import { NgModule } from '@angular/core';
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { CommonModule } from '@angular/common';

import { NgModule } from '@angular/core';
import { RecordModule } from '@rero/ng-core';

@NgModule({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Invenio angular core
Copyright (C) 2019 RERO
RERO angular core
Copyright (C) 2020 RERO

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand All @@ -15,10 +15,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';

import { TitleMetaService } from '@rero/ng-core';
import { DetailRecord } from '@rero/ng-core/lib/record/detail/view/detail-record';
import { Observable } from 'rxjs';

@Component({
selector: 'app-detail',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Invenio angular core
Copyright (C) 2019 RERO
RERO angular core
Copyright (C) 2020 RERO

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Invenio angular core
* Copyright (C) 2019 RERO
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand All @@ -14,7 +14,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Component, OnInit, Input } from '@angular/core';
import { Component, Input, OnInit } from '@angular/core';
import { ResultItem, TitleMetaService } from '@rero/ng-core';

@Component({
Expand Down
14 changes: 7 additions & 7 deletions projects/ng-core-tester/src/app/routes/documents-route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*
* Invenio angular core
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -15,18 +15,18 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { FormlyFieldConfig } from '@ngx-formly/core';
import {
ActionStatus,
RouteInterface,
DetailComponent as RecordDetailComponent,
EditorComponent,
RecordSearchComponent,
EditorComponent
RouteInterface,
} from '@rero/ng-core';
import { DocumentComponent } from '../record/document/document.component';
import { DetailComponent } from '../record/document/detail/detail.component';
import { Observable, of } from 'rxjs';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { JSONSchema7 } from 'json-schema';
import { Observable, of } from 'rxjs';
import { DetailComponent } from '../record/document/detail/detail.component';
import { DocumentComponent } from '../record/document/document.component';

export class DocumentsRoute implements RouteInterface {

Expand Down
2 changes: 1 addition & 1 deletion projects/ng-core-tester/src/app/routes/route.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Invenio angular core
* RERO angular core
* Copyright (C) 2020 RERO
*
* This program is free software: you can redistribute it and/or modify
Expand Down
Loading

0 comments on commit edfe21f

Please sign in to comment.