Skip to content

Commit

Permalink
refactor(front): remove XP systems stuff from frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 committed Jan 6, 2024
1 parent 63c24dd commit f656ac8
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 345 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { MapQueueComponent } from './map-queue/map-queue.component';
import { AdminComponent } from './admin.component';
import { ReportQueueComponent } from './report-queue/report-queue.component';
import { UtilitiesComponent } from './utilities/utilities.component';
import { XPSystemComponent } from './xp-system/xp-system.component';
import { RoleGuard } from '../../../guards/role.guard';
import { Role } from '@momentum/constants';

Expand All @@ -29,7 +28,6 @@ import { Role } from '@momentum/constants';
component: ReportQueueComponent
},
{ path: 'utilities', component: UtilitiesComponent },
{ path: 'xp-systems', component: XPSystemComponent },
{ path: '**', component: NotFoundDashboardComponent }
]
}
Expand Down
4 changes: 1 addition & 3 deletions apps/frontend/src/app/pages/dashboard/admin/admin.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ReportQueueComponent } from './report-queue/report-queue.component';
import { QueuedReportComponent } from './report-queue/queued-report/queued-report.component';
import { UpdateReportDialogComponent } from './report-queue/update-report-dialog/update-report-dialog.component';
import { UtilitiesComponent } from './utilities/utilities.component';
import { XPSystemComponent } from './xp-system/xp-system.component';

@NgModule({
imports: [SharedModule, AdminRoutingModule],
Expand All @@ -19,8 +18,7 @@ import { XPSystemComponent } from './xp-system/xp-system.component';
ReportQueueComponent,
QueuedReportComponent,
UpdateReportDialogComponent,
UtilitiesComponent,
XPSystemComponent
UtilitiesComponent
],
providers: []
})
Expand Down

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

12 changes: 1 addition & 11 deletions libs/frontend/data/src/lib/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import {
Report,
UpdateMap,
UpdateReport,
UpdateXpSystems,
User,
XpSystems
User
} from '@momentum/constants';
import { PagedResponse } from '@momentum/constants';
import { HttpService } from './http.service';
Expand Down Expand Up @@ -48,14 +46,6 @@ export class AdminService {
return EMPTY;
}

getXPSystems(): Observable<XpSystems> {
return this.http.get<XpSystems>('admin/xpsys');
}

updateXPSystems(body: UpdateXpSystems): Observable<void> {
return this.http.put('admin/xpsys', { body });
}

createUser(alias: string): Observable<User> {
return this.http.post<User>('admin/users', { body: { alias } });
}
Expand Down

0 comments on commit f656ac8

Please sign in to comment.