Skip to content

Commit

Permalink
feat(updates): add game updates page, closes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 29, 2023
1 parent 42e669c commit 4850a97
Show file tree
Hide file tree
Showing 15 changed files with 459 additions and 56 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
*version*.md
blog-post.txt
blog-post.txt
client/src/assets/*.md
237 changes: 237 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"start": "ng serve -o --port 3699",
"setup": "ts-node scripts/setup",
"build": "ng build --configuration production",
"build:netlify": "npm run build && npm run generate:version",
"build:netlify": "npm run build && npm run generate:version && npm run build:copychangelog",
"build:copychangelog": "cpy ../CHANGELOG.md ../CHANGELOG-current.md www/assets/changelog",
"generate:version": "ts-node scripts/version",
"watch": "ng build --watch --configuration development",
"lint": "ng lint"
Expand Down Expand Up @@ -43,6 +44,7 @@
"fast-json-patch": "^3.1.1",
"ionicons": "^7.0.0",
"lodash": "^4.17.21",
"marked": "^7.0.5",
"ngx-tippy-wrapper": "^6.1.0",
"ngx-webstorage": "^12.0.0",
"rollbar": "^2.26.1",
Expand All @@ -68,6 +70,7 @@
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "5.3.0",
"@typescript-eslint/parser": "5.3.0",
"cpy-cli": "^5.0.0",
"eslint": "^7.26.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.6",
Expand Down
7 changes: 7 additions & 0 deletions client/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ const routes: Routes = [
loadChildren: () =>
import('./pages/combat/combat.module').then((m) => m.CombatPageModule),
},
{
path: 'updates',
canActivate: [AuthGuard],
data: { title: 'Game Updates' },
loadChildren: () =>
import('./pages/updates/updates.module').then((m) => m.UpdatesPageModule),
},

{
path: '**',
Expand Down
4 changes: 4 additions & 0 deletions client/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { DataGrabberInterceptor } from '@helpers/data-grabber.interceptor';
import { AuthService } from '@services/auth.service';
import { ContentService } from '@services/content.service';
import { FightService } from '@services/fight.service';
import { MetaService } from '@services/meta.service';
import { NotificationsService } from '@services/notifications.service';
import { RollbarErrorHandler, RollbarService } from '@services/rollbar.service';
import { NgxTippyModule } from 'ngx-tippy-wrapper';
Expand Down Expand Up @@ -98,6 +99,7 @@ export function getAuthToken() {
notificationService: NotificationsService,
fightService: FightService,
rollbarService: RollbarService,
metaService: MetaService,
) =>
async () => {
await assetService.init();
Expand All @@ -106,6 +108,7 @@ export function getAuthToken() {
await notificationService.init();
await fightService.init();
await rollbarService.init();
await metaService.init();
},
deps: [
AssetService,
Expand All @@ -114,6 +117,7 @@ export function getAuthToken() {
NotificationsService,
FightService,
RollbarService,
MetaService,
],
multi: true,
},
Expand Down
5 changes: 5 additions & 0 deletions client/src/app/pages/me/me.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ <h2>Bio</h2>
<ion-label>Change Settings</ion-label>
</ion-item>

<ion-item class="cursor-pointer" [routerLink]="['/updates']">
<ion-icon name="library" slot="start"></ion-icon>
<ion-label>Game Updates</ion-label>
</ion-item>

<ion-item class="cursor-pointer" (click)="authService.logout()">
<ion-icon name="log-out" slot="start"></ion-icon>
<ion-label>Logout</ion-label>
Expand Down
Loading

0 comments on commit 4850a97

Please sign in to comment.