Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
run: |
target_dir="deploy-folder$path"
mkdir -p "$target_dir"
find "$target_dir" -mindepth 1 -not -name '.git' -not -name 'test' -not -name 'development' -exec rm -rf {} +
find "$target_dir" -mindepth 1 -maxdepth 1 -exec rm -rf {} +

- name: Copy New Files to Deploy Folder
env:
Expand Down
29 changes: 0 additions & 29 deletions src/app/app.component.spec.ts

This file was deleted.

3 changes: 3 additions & 0 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DevSettingsComponent } from './pages/dev-settings/dev-settings.componen
import { ClosetComponent } from './pages/closet/closet.component';
import { OnworkPageComponent } from './pages/onwork-page/onwork-page.component';
import { P404Component } from './pages/p404/p404.component';
import { developmentGuard, testingGuard } from './guards/guard.guard';

export const routes: Routes = [
{path: "game", component: GameComponent, pathMatch: "full"},
Expand All @@ -16,5 +17,7 @@ export const routes: Routes = [
{path: "onWork", component: OnworkPageComponent, pathMatch: "full"},
{path: "p404", component: P404Component, pathMatch: "full"},
{path: "", redirectTo: "game", pathMatch: "full"},
{path: "development", component: GameComponent, canActivate: [developmentGuard]},
{path: "test", component: GameComponent, canActivate: [testingGuard]},
{path: "**", redirectTo: "p404"}
];
23 changes: 0 additions & 23 deletions src/app/components/navbar/navbar.component.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/components/text-container/text-container.component.spec.ts

This file was deleted.

11 changes: 11 additions & 0 deletions src/app/guards/guard.guard.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { CanActivateFn } from '@angular/router';

export const developmentGuard: CanActivateFn = (route, state) => {
window.location.href = "/CheemsBonkGame/development";
return false;
};

export const testingGuard: CanActivateFn = (route, state) => {
window.location.href = "/CheemsBonkGame/test";
return false;
};
23 changes: 0 additions & 23 deletions src/app/pages/closet/closet.component.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/pages/dev-settings/dev-settings.component.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/pages/game/game.component.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/pages/menu/menu.component.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/pages/onwork-page/onwork-page.component.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/pages/p404/p404.component.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/pages/settings/settings.component.spec.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/services/tools.service.spec.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/services/translations.service.spec.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="icon" type="image/x-icon" href="img/favicon.ico">
<link rel="manifest" href="manifest.webmanifest">
</head>
<body>
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>
Expand Down
Loading