-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
5,295 additions
and
4,899 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
appcore/src/app/extension/download-desktop-app/download-desktop-app-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { RouterModule, Routes } from "@angular/router"; | ||
import { DownloadDesktopAppComponent } from "./download-desktop-app.component"; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: "", | ||
component: DownloadDesktopAppComponent | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class DownloadDesktopAppRoutingModule {} |
28 changes: 28 additions & 0 deletions
28
appcore/src/app/extension/download-desktop-app/download-desktop-app.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<mat-card class="centered-section"> | ||
<mat-card-title class="mat-headline"> | ||
Desktop version of Elevate is now available as public BETA 🥳 !! | ||
</mat-card-title> | ||
<mat-card-content> | ||
<div class="pad-std-bt"> | ||
<strong>The desktop app is most advanced version of Elevate. Try it !</strong> | ||
</div> | ||
<div class="pad-std-bt" > | ||
<a matTooltip="Click to view screenshots..." matTooltipPosition="above" href="https://photos.app.goo.gl/BiFVBsqNW9VpV4tr9" target="_blank"><img src="https://i.imgur.com/Tf1JXRDm.png"></a> | ||
</div> | ||
<div class="pad-std-bt"> | ||
<button mat-flat-button color="primary" (click)="onDonateClicked()"> | ||
Support the project 😊 ❤️ | ||
</button> | ||
</div> | ||
<div class="pad-std-bt"> | ||
<button (click)="onWindowsDownload()" color="primary" mat-stroked-button> | ||
Download for Windows | ||
</button> | ||
</div> | ||
<div class="pad-std-bt"> | ||
<button (click)="onMacDownload()" color="primary" mat-stroked-button> | ||
Download for macOS | ||
</button> | ||
</div> | ||
</mat-card-content> | ||
</mat-card> |
Empty file.
32 changes: 32 additions & 0 deletions
32
appcore/src/app/extension/download-desktop-app/download-desktop-app.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Component, Inject } from "@angular/core"; | ||
import { AppRoutes } from "../../shared/models/app-routes"; | ||
import { Router } from "@angular/router"; | ||
import { | ||
OPEN_RESOURCE_RESOLVER, | ||
OpenResourceResolver | ||
} from "../../shared/services/links-opener/open-resource-resolver"; | ||
import { AppPackage } from "@elevate/shared/tools/app-package"; | ||
|
||
@Component({ | ||
selector: "app-download-desktop-app", | ||
templateUrl: "./download-desktop-app.component.html", | ||
styleUrls: ["./download-desktop-app.component.scss"] | ||
}) | ||
export class DownloadDesktopAppComponent { | ||
constructor( | ||
@Inject(Router) private readonly router: Router, | ||
@Inject(OPEN_RESOURCE_RESOLVER) private readonly openResourceResolver: OpenResourceResolver | ||
) {} | ||
|
||
public onWindowsDownload(): void { | ||
this.openResourceResolver.openLink(`${AppPackage.getElevateDoc()}/Download-%26-Install/Windows/`); | ||
} | ||
|
||
public onMacDownload(): void { | ||
this.openResourceResolver.openLink(`${AppPackage.getElevateDoc()}/Download-%26-Install/macOS/`); | ||
} | ||
|
||
public onDonateClicked(): void { | ||
this.router.navigate([AppRoutes.donate]); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
appcore/src/app/extension/download-desktop-app/download-desktop-app.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { DownloadDesktopAppComponent } from "./download-desktop-app.component"; | ||
import { DownloadDesktopAppRoutingModule } from "./download-desktop-app-routing.module"; | ||
import { CoreModule } from "../../core/core.module"; | ||
|
||
@NgModule({ | ||
imports: [CoreModule, DownloadDesktopAppRoutingModule], | ||
declarations: [DownloadDesktopAppComponent] | ||
}) | ||
export class DownloadDesktopAppModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
export class AppRoutes { | ||
public static readonly dashboard: string = "dashboard"; | ||
public static readonly goals: string = "goals"; | ||
// Common | ||
public static readonly activities: string = "activities"; | ||
public static readonly activity: string = "activity"; | ||
public static readonly fitnessTrend: string = "fitnessTrend"; | ||
public static readonly yearProgressions: string = "yearProgressions"; | ||
public static readonly globalSettings: string = "globalSettings"; | ||
public static readonly athleteSettings: string = "athleteSettings"; | ||
public static readonly zonesSettings: string = "zonesSettings"; | ||
public static readonly connectors: string = "connectors"; | ||
public static readonly donate: string = "donate"; | ||
public static readonly releasesNotes: string = "releasesNotes"; | ||
public static readonly report: string = "report"; | ||
public static readonly advancedMenu: string = "advancedMenu"; | ||
public static readonly help: string = "help"; | ||
|
||
// Desktop | ||
public static readonly dashboard: string = "dashboard"; | ||
public static readonly goals: string = "goals"; | ||
public static readonly activity: string = "activity"; | ||
public static readonly connectors: string = "connectors"; | ||
|
||
// Extension | ||
public static readonly downloadDesktopApp: string = "desktopAppBeta"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.