Skip to content

Commit

Permalink
deprecate strava (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
freekode authored Jan 6, 2025
1 parent 26b8bb6 commit da446b0
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 525 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 6 additions & 12 deletions ui/src/app/app.routes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Routes } from '@angular/router';
import { HomeComponent } from "app/home/home.component";
import { ConfigurationComponent } from "app/configuration/configuration.component";
import { canActivateHome } from "app/home/can-activate-home";
import { TrainingPeaksComponent } from "app/training-peaks/training-peaks.component";
import { TrainerRoadComponent } from "app/trainer-road/trainer-road.component";
import {StravaComponent} from "app/strava/strava.component";
import {Routes} from '@angular/router';
import {HomeComponent} from "app/home/home.component";
import {ConfigurationComponent} from "app/configuration/configuration.component";
import {canActivateHome} from "app/home/can-activate-home";
import {TrainingPeaksComponent} from "app/training-peaks/training-peaks.component";
import {TrainerRoadComponent} from "app/trainer-road/trainer-road.component";

export const routes: Routes = [
{
Expand All @@ -22,11 +21,6 @@ export const routes: Routes = [
component: TrainerRoadComponent,
canActivate: [canActivateHome]
},
{
path: 'strava',
component: StravaComponent,
canActivate: [canActivateHome]
},
{
path: 'config',
component: ConfigurationComponent,
Expand Down
9 changes: 0 additions & 9 deletions ui/src/app/configuration/configuration.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ <h2>TrainerRoad <a href="https://github.com/freekode/tp2intervals?tab=readme-ov-
matTooltipPosition="right"></i>
</div>

<div>
<h2>Strava</h2>

<mat-form-field class="full-width">
<mat-label>Strava Auth Cookie</mat-label>
<input matInput formControlName="strava.cookie">
</mat-form-field>
</div>

<div>
<h2>General</h2>

Expand Down
1 change: 0 additions & 1 deletion ui/src/app/configuration/configuration.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class ConfigurationComponent implements OnInit {
'training-peaks.auth-cookie': [null, [Validators.pattern('^Production_tpAuth=[a-zA-Z0-9-_]*$')]],
'trainer-road.auth-cookie': [null, [Validators.pattern('^SharedTrainerRoadAuth=.*$')]],
'trainer-road.remove-html-tags': [null, Validators.required],
'strava.cookie': [null, []],
'generic.log-level': [null, [Validators.required]],
});

Expand Down
Loading

0 comments on commit da446b0

Please sign in to comment.