From 2cd35cccd1da675f331d961c8e4d82a57dd16221 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Sun, 15 Mar 2020 22:05:00 -0400 Subject: [PATCH] Added about page --- src/app/app.component.html | 4 +++ src/app/app.component.ts | 7 +++++ src/app/app.module.ts | 4 ++- .../about-dialog/about-dialog.component.html | 23 ++++++++++++++++ .../about-dialog/about-dialog.component.scss | 3 +++ .../about-dialog.component.spec.ts | 25 ++++++++++++++++++ .../about-dialog/about-dialog.component.ts | 21 +++++++++++++++ src/assets/images/GitHub-64px.png | Bin 0 -> 2625 bytes 8 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 src/app/dialogs/about-dialog/about-dialog.component.html create mode 100644 src/app/dialogs/about-dialog/about-dialog.component.scss create mode 100644 src/app/dialogs/about-dialog/about-dialog.component.spec.ts create mode 100644 src/app/dialogs/about-dialog/about-dialog.component.ts create mode 100644 src/assets/images/GitHub-64px.png diff --git a/src/app/app.component.html b/src/app/app.component.html index 9403aeb..8291ae3 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -21,6 +21,10 @@ settings Settings + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index b5cb7b9..6f01687 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -21,6 +21,7 @@ import { Router, NavigationStart, NavigationEnd } from '@angular/router'; import { OverlayContainer } from '@angular/cdk/overlay'; import { THEMES_CONFIG } from '../themes'; import { SettingsComponent } from './settings/settings.component'; +import { AboutDialogComponent } from './dialogs/about-dialog/about-dialog.component'; @Component({ selector: 'app-root', @@ -165,5 +166,11 @@ onSetTheme(theme, old_theme) { }); } + openAboutDialog() { + const dialogRef = this.dialog.open(AboutDialogComponent, { + width: '80vw' + }); + } + } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e6b6152..a430fff 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -48,6 +48,7 @@ import { SubscriptionInfoDialogComponent } from './dialogs/subscription-info-dia import { SettingsComponent } from './settings/settings.component'; import es from '@angular/common/locales/es'; +import { AboutDialogComponent } from './dialogs/about-dialog/about-dialog.component'; registerLocaleData(es, 'es'); export function isVisible({ event, element, scrollContainer, offset }: IsVisibleProps) { @@ -68,7 +69,8 @@ export function isVisible({ event, element, scrollContainer, offset }: IsVisible SubscriptionComponent, SubscriptionFileCardComponent, SubscriptionInfoDialogComponent, - SettingsComponent + SettingsComponent, + AboutDialogComponent ], imports: [ BrowserModule, diff --git a/src/app/dialogs/about-dialog/about-dialog.component.html b/src/app/dialogs/about-dialog/about-dialog.component.html new file mode 100644 index 0000000..dde7daf --- /dev/null +++ b/src/app/dialogs/about-dialog/about-dialog.component.html @@ -0,0 +1,23 @@ +

About YoutubeDL-Material

+ + +
+

+ YoutubeDL-Material is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos. +

+

+ YoutubeDL-Material has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon below. +

+

+ Found a bug or have a suggestion? Click here to create an issue! +

+ + + +

Installed version: {{version}} - View latest update

+
+
+ + + + \ No newline at end of file diff --git a/src/app/dialogs/about-dialog/about-dialog.component.scss b/src/app/dialogs/about-dialog/about-dialog.component.scss new file mode 100644 index 0000000..b1d084c --- /dev/null +++ b/src/app/dialogs/about-dialog/about-dialog.component.scss @@ -0,0 +1,3 @@ +i { + margin-right: 1px; +} \ No newline at end of file diff --git a/src/app/dialogs/about-dialog/about-dialog.component.spec.ts b/src/app/dialogs/about-dialog/about-dialog.component.spec.ts new file mode 100644 index 0000000..7fc637d --- /dev/null +++ b/src/app/dialogs/about-dialog/about-dialog.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AboutDialogComponent } from './about-dialog.component'; + +describe('AboutDialogComponent', () => { + let component: AboutDialogComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ AboutDialogComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(AboutDialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/dialogs/about-dialog/about-dialog.component.ts b/src/app/dialogs/about-dialog/about-dialog.component.ts new file mode 100644 index 0000000..475328a --- /dev/null +++ b/src/app/dialogs/about-dialog/about-dialog.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-about-dialog', + templateUrl: './about-dialog.component.html', + styleUrls: ['./about-dialog.component.scss'] +}) +export class AboutDialogComponent implements OnInit { + + projectLink = 'https://github.com/Tzahi12345/YoutubeDL-Material'; + issuesLink = 'https://github.com/Tzahi12345/YoutubeDL-Material/issues'; + latestUpdateLink = 'https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest' + + version = 'v3.5'; + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/assets/images/GitHub-64px.png b/src/assets/images/GitHub-64px.png new file mode 100644 index 0000000000000000000000000000000000000000..182a1a3f734fc1b7d712c68b04c29bad9460d6cd GIT binary patch literal 2625 zcmaJ@dpuNWA3rl=+=}acf|9E@P=bZCA&+qg7et*|Lo`cMQ4SL!u zv;hFnqx;f=RIA70r>U;`S924)Rm*a*H%lB0$B2{JLJ07ThNB>m&SUR{f*^KuO5#1p z6#!6H+z^(S#qg(aU>=seh`~yD0u>toT-_xCHYXkugHg~ylAk{k$56lW5JxEB2QU{v0O z(J_=Dn$JgHsuL9xD;5hVI9zgaGB()}3k!GR2xKyOQG-ZyP$3*dDSRx+6H zxzS&ah4w`*P8AGpv9Q5%s{48!i53cI)dGsN^YTkva!Csa-!~y{IALumC5XsY* z;oO9fP-D5HNp6GjVXS9_c1V2u^I_zB1-k6a`@n;|eN2-wq}`FLV<<0w=RlfKU9(3Z z?Vv$*-_m{)R9A=k2=5$JrJ5 zd(x-6(zYw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