diff --git a/.eslintrc.json b/.eslintrc.json index 211ec82..6b09e85 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -35,22 +35,22 @@ "@angular-eslint/eslint-plugin" ], "rules": { - // "@typescript-eslint/indent": [ - // "error", - // 2, - // { - // "SwitchCase": 1, - // "CallExpression": { - // "arguments": "first" - // }, - // "FunctionExpression": { - // "parameters": "first" - // }, - // "FunctionDeclaration": { - // "parameters": "first" - // } - // } - // ], + "@typescript-eslint/indent": [ + "error", + 4, + { + "SwitchCase": 1, + "CallExpression": { + "arguments": "first" + }, + "FunctionExpression": { + "parameters": "first" + }, + "FunctionDeclaration": { + "parameters": "first" + } + } + ], "@typescript-eslint/no-empty-function": 0, "@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/no-var-requires": 0, diff --git a/e2e/common-setup.ts b/e2e/common-setup.ts index ac5c2f0..4817ea1 100644 --- a/e2e/common-setup.ts +++ b/e2e/common-setup.ts @@ -3,36 +3,36 @@ const electronPath = require('electron'); // Require Electron from the binaries const path = require('path'); export default function setup(): void { - beforeEach(async function () { - this.app = new Application({ - // Your electron path can be any binary - // i.e for OSX an example path could be '/Applications/MyApp.app/Contents/MacOS/MyApp' - // But for the sake of the example we fetch it from our node_modules. - path: electronPath, + beforeEach(async function () { + this.app = new Application({ + // Your electron path can be any binary + // i.e for OSX an example path could be '/Applications/MyApp.app/Contents/MacOS/MyApp' + // But for the sake of the example we fetch it from our node_modules. + path: electronPath, - // Assuming you have the following directory structure + // Assuming you have the following directory structure - // |__ my project - // |__ ... - // |__ main.js - // |__ package.json - // |__ index.html - // |__ ... - // |__ test - // |__ spec.js <- You are here! ~ Well you should be. + // |__ my project + // |__ ... + // |__ main.js + // |__ package.json + // |__ index.html + // |__ ... + // |__ test + // |__ spec.js <- You are here! ~ Well you should be. - // The following line tells spectron to look and use the main.js file - // and the package.json located 1 level above. - args: [path.join(__dirname, '..')], - webdriverOptions: {} - }); + // The following line tells spectron to look and use the main.js file + // and the package.json located 1 level above. + args: [path.join(__dirname, '..')], + webdriverOptions: {} + }); - await this.app.start(); - }); + await this.app.start(); + }); - afterEach(async function () { - if (this.app && this.app.isRunning()) { - await this.app.stop(); - } - }); + afterEach(async function () { + if (this.app && this.app.isRunning()) { + await this.app.stop(); + } + }); } diff --git a/e2e/main.e2e.ts b/e2e/main.e2e.ts index 1e011be..f57e117 100644 --- a/e2e/main.e2e.ts +++ b/e2e/main.e2e.ts @@ -5,23 +5,23 @@ import commonSetup from './common-setup'; describe('msfs-community-downloader App', function () { - commonSetup.apply(this); + commonSetup.apply(this); - let client: SpectronClient; + let client: SpectronClient; - beforeEach(function() { - client = this.app.client; - }); + beforeEach(function () { + client = this.app.client; + }); - it('creates initial windows', async function () { - const count = await client.getWindowCount(); - expect(count).to.equal(1); - }); + it('creates initial windows', async function () { + const count = await client.getWindowCount(); + expect(count).to.equal(1); + }); - it('should display message saying App works !', async function () { - const elem = await client.$('app-home h1'); - const text = await elem.getText(); - expect(text).to.equal('App works !'); - }); + it('should display message saying App works !', async function () { + const elem = await client.$('app-home h1'); + const text = await elem.getText(); + expect(text).to.equal('App works !'); + }); }); diff --git a/package.json b/package.json index fa1511a..2dbfa10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "msfs-community-downloader", - "version": "0.5.0", + "version": "0.6.0", "description": "MSFS addin downloader client", "homepage": "https://github.com/nicolasconstant/msfs-community-downloader", "author": { diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 6e9f39e..c85310c 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -6,23 +6,23 @@ import { HomeRoutingModule } from './home/home-routing.module'; import { SettingsRoutingModule } from './settings/settings-routing.module'; const routes: Routes = [ - { - path: '', - redirectTo: 'home', - pathMatch: 'full' - }, - { - path: '**', - component: PageNotFoundComponent - } + { + path: '', + redirectTo: 'home', + pathMatch: 'full' + }, + { + path: '**', + component: PageNotFoundComponent + } ]; @NgModule({ - imports: [ - RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }), - HomeRoutingModule, - SettingsRoutingModule - ], - exports: [RouterModule] + imports: [ + RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }), + HomeRoutingModule, + SettingsRoutingModule + ], + exports: [RouterModule] }) export class AppRoutingModule { } diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index c33578e..cf8dc69 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -5,17 +5,17 @@ import { TranslateModule } from '@ngx-translate/core'; import { ElectronService } from './core/services'; describe('AppComponent', () => { - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [AppComponent], - providers: [ElectronService], - imports: [RouterTestingModule, TranslateModule.forRoot()] - }).compileComponents(); - })); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [AppComponent], + providers: [ElectronService], + imports: [RouterTestingModule, TranslateModule.forRoot()] + }).compileComponents(); + })); - it('should create the app', waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app).toBeTruthy(); - })); + it('should create the app', waitForAsync(() => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app).toBeTruthy(); + })); }); diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 5e967d4..5338115 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -25,32 +25,32 @@ import { ImportModule } from './import/import.module'; // AoT requires an exported function for factories export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader { - return new TranslateHttpLoader(http, './assets/i18n/', '.json'); + return new TranslateHttpLoader(http, './assets/i18n/', '.json'); } @NgModule({ - declarations: [AppComponent], - imports: [ - BrowserModule, - FormsModule, - HttpClientModule, - CoreModule, - SharedModule, - HomeModule, - ImportModule, - SettingsModule, - AppRoutingModule, - FontAwesomeModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: HttpLoaderFactory, - deps: [HttpClient] - } - }) - ], - providers: [], - bootstrap: [AppComponent] + declarations: [AppComponent], + imports: [ + BrowserModule, + FormsModule, + HttpClientModule, + CoreModule, + SharedModule, + HomeModule, + ImportModule, + SettingsModule, + AppRoutingModule, + FontAwesomeModule, + TranslateModule.forRoot({ + loader: { + provide: TranslateLoader, + useFactory: HttpLoaderFactory, + deps: [HttpClient] + } + }) + ], + providers: [], + bootstrap: [AppComponent] }) -export class AppModule { +export class AppModule { } diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index 5425ef7..8c50001 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -2,9 +2,9 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; @NgModule({ - declarations: [], - imports: [ - CommonModule - ] + declarations: [], + imports: [ + CommonModule + ] }) export class CoreModule { } diff --git a/src/app/core/guards/communityfolder.guard.spec.ts b/src/app/core/guards/communityfolder.guard.spec.ts index d3069a7..4f8e1d8 100644 --- a/src/app/core/guards/communityfolder.guard.spec.ts +++ b/src/app/core/guards/communityfolder.guard.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { CommunityfolderGuard } from './communityfolder.guard'; describe('CommunityfolderGuard', () => { - let guard: CommunityfolderGuard; + let guard: CommunityfolderGuard; - beforeEach(() => { - TestBed.configureTestingModule({}); - guard = TestBed.inject(CommunityfolderGuard); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + guard = TestBed.inject(CommunityfolderGuard); + }); - it('should be created', () => { - expect(guard).toBeTruthy(); - }); + it('should be created', () => { + expect(guard).toBeTruthy(); + }); }); diff --git a/src/app/core/services/domain.service.spec.ts b/src/app/core/services/domain.service.spec.ts index c6cf582..19f455e 100644 --- a/src/app/core/services/domain.service.spec.ts +++ b/src/app/core/services/domain.service.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { DomainService } from './domain.service'; describe('DomainService', () => { - let service: DomainService; + let service: DomainService; - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(DomainService); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(DomainService); + }); - it('should be created', () => { - expect(service).toBeTruthy(); - }); + it('should be created', () => { + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/core/services/downloader.service.spec.ts b/src/app/core/services/downloader.service.spec.ts index 4f6f19a..2cbb56b 100644 --- a/src/app/core/services/downloader.service.spec.ts +++ b/src/app/core/services/downloader.service.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { DownloaderService } from './downloader.service'; describe('DownloaderService', () => { - let service: DownloaderService; + let service: DownloaderService; - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(DownloaderService); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(DownloaderService); + }); - it('should be created', () => { - expect(service).toBeTruthy(); - }); + it('should be created', () => { + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/core/services/electron/electron.service.spec.ts b/src/app/core/services/electron/electron.service.spec.ts index 38fe2f0..6e95b0a 100644 --- a/src/app/core/services/electron/electron.service.spec.ts +++ b/src/app/core/services/electron/electron.service.spec.ts @@ -3,10 +3,10 @@ import { TestBed } from '@angular/core/testing'; import { ElectronService } from './electron.service'; describe('ElectronService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + beforeEach(() => TestBed.configureTestingModule({})); - it('should be created', () => { - const service: ElectronService = TestBed.get(ElectronService); - expect(service).toBeTruthy(); - }); + it('should be created', () => { + const service: ElectronService = TestBed.get(ElectronService); + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/core/services/electron/electron.service.ts b/src/app/core/services/electron/electron.service.ts index b6aac0d..3d96a68 100644 --- a/src/app/core/services/electron/electron.service.ts +++ b/src/app/core/services/electron/electron.service.ts @@ -8,30 +8,30 @@ import * as childProcess from 'child_process'; import * as fs from 'fs'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class ElectronService { - ipcRenderer: typeof ipcRenderer; - webFrame: typeof webFrame; - remote: typeof remote; - childProcess: typeof childProcess; - fs: typeof fs; + ipcRenderer: typeof ipcRenderer; + webFrame: typeof webFrame; + remote: typeof remote; + childProcess: typeof childProcess; + fs: typeof fs; - get isElectron(): boolean { - return !!(window && window.process && window.process.type); - } + get isElectron(): boolean { + return !!(window && window.process && window.process.type); + } - constructor() { - // Conditional imports - if (this.isElectron) { - this.ipcRenderer = window.require('electron').ipcRenderer; - this.webFrame = window.require('electron').webFrame; + constructor() { + // Conditional imports + if (this.isElectron) { + this.ipcRenderer = window.require('electron').ipcRenderer; + this.webFrame = window.require('electron').webFrame; - // If you want to use remote object in renderer process, please set enableRemoteModule to true in main.ts - this.remote = window.require('@electron/remote'); + // If you want to use remote object in renderer process, please set enableRemoteModule to true in main.ts + this.remote = window.require('@electron/remote'); - this.childProcess = window.require('child_process'); - this.fs = window.require('fs'); + this.childProcess = window.require('child_process'); + this.fs = window.require('fs'); + } } - } } diff --git a/src/app/core/services/extractor.service.spec.ts b/src/app/core/services/extractor.service.spec.ts index d39f28e..db5ae6d 100644 --- a/src/app/core/services/extractor.service.spec.ts +++ b/src/app/core/services/extractor.service.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { ExtractorService } from './extractor.service'; describe('ExtractorService', () => { - let service: ExtractorService; + let service: ExtractorService; - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(ExtractorService); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(ExtractorService); + }); - it('should be created', () => { - expect(service).toBeTruthy(); - }); + it('should be created', () => { + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/core/services/filesystem.service.spec.ts b/src/app/core/services/filesystem.service.spec.ts index 78d7517..3a11e76 100644 --- a/src/app/core/services/filesystem.service.spec.ts +++ b/src/app/core/services/filesystem.service.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { FilesystemService } from './filesystem.service'; describe('FilesystemService', () => { - let service: FilesystemService; + let service: FilesystemService; - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(FilesystemService); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(FilesystemService); + }); - it('should be created', () => { - expect(service).toBeTruthy(); - }); + it('should be created', () => { + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/core/services/github.service.spec.ts b/src/app/core/services/github.service.spec.ts index 6297f22..fbcbbef 100644 --- a/src/app/core/services/github.service.spec.ts +++ b/src/app/core/services/github.service.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { GithubService } from './github.service'; describe('GithubService', () => { - let service: GithubService; + let service: GithubService; - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(GithubService); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(GithubService); + }); - it('should be created', () => { - expect(service).toBeTruthy(); - }); + it('should be created', () => { + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/core/services/packages.service.spec.ts b/src/app/core/services/packages.service.spec.ts index 26ea404..64a792e 100644 --- a/src/app/core/services/packages.service.spec.ts +++ b/src/app/core/services/packages.service.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { PackagesService } from './packages.service'; describe('PackagesService', () => { - let service: PackagesService; + let service: PackagesService; - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(PackagesService); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(PackagesService); + }); - it('should be created', () => { - expect(service).toBeTruthy(); - }); + it('should be created', () => { + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/core/services/settings.service.spec.ts b/src/app/core/services/settings.service.spec.ts index 359cb6b..5be914c 100644 --- a/src/app/core/services/settings.service.spec.ts +++ b/src/app/core/services/settings.service.spec.ts @@ -3,14 +3,14 @@ import { TestBed } from '@angular/core/testing'; import { SettingsService } from './settings.service'; describe('SettingsService', () => { - let service: SettingsService; + let service: SettingsService; - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(SettingsService); - }); + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(SettingsService); + }); - it('should be created', () => { - expect(service).toBeTruthy(); - }); + it('should be created', () => { + expect(service).toBeTruthy(); + }); }); diff --git a/src/app/home/home.component.spec.ts b/src/app/home/home.component.spec.ts index 0a326e6..807de32 100644 --- a/src/app/home/home.component.spec.ts +++ b/src/app/home/home.component.spec.ts @@ -5,30 +5,30 @@ import { RouterTestingModule } from '@angular/router/testing'; import { HomeComponent } from './home.component'; describe('HomeComponent', () => { - let component: HomeComponent; - let fixture: ComponentFixture; + let component: HomeComponent; + let fixture: ComponentFixture; - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [HomeComponent], - imports: [TranslateModule.forRoot(), RouterTestingModule] - }).compileComponents(); - })); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [HomeComponent], + imports: [TranslateModule.forRoot(), RouterTestingModule] + }).compileComponents(); + })); - beforeEach(() => { - fixture = TestBed.createComponent(HomeComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); + beforeEach(() => { + fixture = TestBed.createComponent(HomeComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); - it('should create', () => { - expect(component).toBeTruthy(); - }); + it('should create', () => { + expect(component).toBeTruthy(); + }); - it('should render title in a h1 tag', waitForAsync(() => { - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('h1').textContent).toContain( - 'PAGES.HOME.TITLE' - ); - })); + it('should render title in a h1 tag', waitForAsync(() => { + const compiled = fixture.debugElement.nativeElement; + expect(compiled.querySelector('h1').textContent).toContain( + 'PAGES.HOME.TITLE' + ); + })); }); diff --git a/src/app/home/home.module.ts b/src/app/home/home.module.ts index 44f77eb..bf7557d 100644 --- a/src/app/home/home.module.ts +++ b/src/app/home/home.module.ts @@ -10,7 +10,7 @@ import { SharedModule } from '../shared/shared.module'; import { PackageDetailedComponent } from './package-detailed/package-detailed.component'; @NgModule({ - declarations: [HomeComponent, PackageMiniComponent, PackageDetailedComponent], - imports: [CommonModule, SharedModule, HomeRoutingModule, FontAwesomeModule] + declarations: [HomeComponent, PackageMiniComponent, PackageDetailedComponent], + imports: [CommonModule, SharedModule, HomeRoutingModule, FontAwesomeModule] }) -export class HomeModule {} +export class HomeModule { } diff --git a/src/app/home/package-detailed/package-detailed.component.html b/src/app/home/package-detailed/package-detailed.component.html index 7ecba87..65f109e 100644 --- a/src/app/home/package-detailed/package-detailed.component.html +++ b/src/app/home/package-detailed/package-detailed.component.html @@ -6,9 +6,10 @@ [routerLink]="['/create-package', package.id]"> - + diff --git a/src/app/home/package-detailed/package-detailed.component.spec.ts b/src/app/home/package-detailed/package-detailed.component.spec.ts index af98511..e3a70e9 100644 --- a/src/app/home/package-detailed/package-detailed.component.spec.ts +++ b/src/app/home/package-detailed/package-detailed.component.spec.ts @@ -3,23 +3,23 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PackageDetailedComponent } from './package-detailed.component'; describe('PackageDetailedComponent', () => { - let component: PackageDetailedComponent; - let fixture: ComponentFixture; + let component: PackageDetailedComponent; + let fixture: ComponentFixture; - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ PackageDetailedComponent ] - }) - .compileComponents(); - }); + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [PackageDetailedComponent] + }) + .compileComponents(); + }); - beforeEach(() => { - fixture = TestBed.createComponent(PackageDetailedComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); + beforeEach(() => { + fixture = TestBed.createComponent(PackageDetailedComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); - it('should create', () => { - expect(component).toBeTruthy(); - }); + it('should create', () => { + expect(component).toBeTruthy(); + }); }); diff --git a/src/app/home/package-mini/package-mini.component.spec.ts b/src/app/home/package-mini/package-mini.component.spec.ts index f9618b6..88557e6 100644 --- a/src/app/home/package-mini/package-mini.component.spec.ts +++ b/src/app/home/package-mini/package-mini.component.spec.ts @@ -3,23 +3,23 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PackageMiniComponent } from './package-mini.component'; describe('PackageMiniComponent', () => { - let component: PackageMiniComponent; - let fixture: ComponentFixture; + let component: PackageMiniComponent; + let fixture: ComponentFixture; - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ PackageMiniComponent ] - }) - .compileComponents(); - }); + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [PackageMiniComponent] + }) + .compileComponents(); + }); - beforeEach(() => { - fixture = TestBed.createComponent(PackageMiniComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); + beforeEach(() => { + fixture = TestBed.createComponent(PackageMiniComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); - it('should create', () => { - expect(component).toBeTruthy(); - }); + it('should create', () => { + expect(component).toBeTruthy(); + }); }); diff --git a/src/app/import/add-package.component.html b/src/app/import/add-package.component.html index f39eb88..0d3d2bd 100644 --- a/src/app/import/add-package.component.html +++ b/src/app/import/add-package.component.html @@ -3,12 +3,12 @@ Create a new Package - + Cancel diff --git a/src/app/import/add-package.component.spec.ts b/src/app/import/add-package.component.spec.ts index 1ff1d4b..9d1dc00 100644 --- a/src/app/import/add-package.component.spec.ts +++ b/src/app/import/add-package.component.spec.ts @@ -3,23 +3,23 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AddPackageComponent } from './add-package.component'; describe('AddPackageComponent', () => { - let component: AddPackageComponent; - let fixture: ComponentFixture; + let component: AddPackageComponent; + let fixture: ComponentFixture; - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ AddPackageComponent ] - }) - .compileComponents(); - }); + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [AddPackageComponent] + }) + .compileComponents(); + }); - beforeEach(() => { - fixture = TestBed.createComponent(AddPackageComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); + beforeEach(() => { + fixture = TestBed.createComponent(AddPackageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); - it('should create', () => { - expect(component).toBeTruthy(); - }); + it('should create', () => { + expect(component).toBeTruthy(); + }); }); diff --git a/src/app/import/add-package.component.ts b/src/app/import/add-package.component.ts index 1b868ee..0bb879f 100644 --- a/src/app/import/add-package.component.ts +++ b/src/app/import/add-package.component.ts @@ -1,15 +1,15 @@ import { Component, OnInit } from '@angular/core'; @Component({ - selector: 'app-add-package', - templateUrl: './add-package.component.html', - styleUrls: ['./add-package.component.scss'] + selector: 'app-add-package', + templateUrl: './add-package.component.html', + styleUrls: ['./add-package.component.scss'] }) export class AddPackageComponent implements OnInit { - constructor() { } + constructor() { } - ngOnInit(): void { - } + ngOnInit(): void { + } } diff --git a/src/app/import/create-package/create-package.component.html b/src/app/import/create-package/create-package.component.html index 38cbdb8..1d8c97b 100644 --- a/src/app/import/create-package/create-package.component.html +++ b/src/app/import/create-package/create-package.component.html @@ -13,7 +13,7 @@

Edit package

-

The name of the package's folder. Must be unique amongs all other packages. Usually the name of the folder inside the zip package.

+

The name of the package's folder. Must be unique among all other packages. Usually, the name of the folder inside the zip package.

@@ -43,7 +43,7 @@

Edit package

-

The name of the zip file of the package.
If it changes every version, just enter the first part that is common. For example if a package is released via a zip called "my-package-v0.5.0.zip" enter "my-package-v" in this field.
If the package isn't released via a zip, leave empty.

+

The name of the zip file of the package.
If it changes every version, just enter the first part that is common. For example, if a package is released via a zip called "my-package-v0.5.0.zip" enter "my-package-v" in this field.
If the package isn't released via a zip, leave empty.

@@ -58,12 +58,12 @@

Edit package

-

Optionnal.
If the package has a landing page, official website, etc, enter the URL here.

+

Optional.
If the package has a landing page, official website, etc, enter the URL here.

-

Optionnal.
If the version is messed up, you can clean-up for display purposes. If the version is released like "data-v0.5.0", enter "data-" to remove this part in the interface.

+

Optional.
If the version is messed up, you can clean-up for display purposes. If the version is released like "data-v0.5.0", enter "data-" to remove this part in the interface.