Skip to content

Commit 6ae9d2b

Browse files
committed
frontend: remove leaderboard component
1 parent 226a15c commit 6ae9d2b

File tree

70 files changed

+5
-3032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+5
-3032
lines changed

frontend/Makefile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,12 @@ build-webnode: ## Build the frontend with webnode configuration
4242
cp dist/frontend/browser/assets/environments/webnode.js \
4343
dist/frontend/browser/assets/environments/env.js
4444

45-
.PHONY: build-leaderboard
46-
build-leaderboard: build-production ## Build the frontend with leaderboard configuration
47-
cp dist/frontend/browser/assets/environments/leaderboard.js \
48-
dist/frontend/browser/assets/environments/env.js
49-
5045
.PHONY: build-staging
5146
build-staging: ## Build the frontend with staging configuration
5247
npx ng build --configuration production
5348
cp dist/frontend/browser/assets/environments/staging.js \
5449
dist/frontend/browser/assets/environments/env.js
5550

56-
.PHONY: build-leaderboard-sentry
57-
build-leaderboard-sentry: ## Build the frontend with leaderboard configuration and Sentry sourcemaps
58-
npx ng build --configuration production
59-
cp dist/frontend/browser/assets/environments/leaderboard.js \
60-
dist/frontend/browser/assets/environments/env.js
61-
$(MAKE) sentry-sourcemaps
62-
6351
.PHONY: check-prettify
6452
check-prettify: ## Check if files are formatted with Prettier
6553
npx prettier --check 'src/**/*.{ts,js,html,scss,css,json}'
@@ -77,14 +65,6 @@ copy-env: ## Copy webnode.js to env.js
7765
deploy: prebuild build-production-sentry copy-env ## Deploy the application
7866
firebase deploy
7967

80-
.PHONY: deploy-leaderboard
81-
deploy-leaderboard: prebuild build-leaderboard ## Deploy the leaderboard application
82-
firebase deploy
83-
84-
.PHONY: deploy-leaderboard-sentry
85-
deploy-leaderboard-sentry: prebuild build-leaderboard-sentry ## Deploy the leaderboard application with Sentry sourcemaps
86-
firebase deploy
87-
8868
.PHONY: install-deps
8969
install-deps: ## Install npm dependencies (alias)
9070
npm install

frontend/docker/startup.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,13 @@ build_frontend() {
3232
# Uses Angular webnode-local configuration and webnode.js runtime
3333
make build-webnode
3434
;;
35-
"leaderboard")
36-
# Uses Angular production configuration and leaderboard.js runtime
37-
make build-leaderboard
38-
;;
3935
"staging")
4036
# Uses Angular production configuration with staging.js runtime
4137
make build-staging
4238
;;
4339
*)
4440
echo "Error: Unknown environment '$environment'"
45-
echo "Available environments: local, fuzzing, production, webnode, leaderboard, staging"
41+
echo "Available environments: local, fuzzing, production, webnode, staging"
4642
exit 1
4743
;;
4844
esac
@@ -58,7 +54,7 @@ build_frontend() {
5854
# Validate that MINA_FRONTEND_ENVIRONMENT is set
5955
if [ -z "$MINA_FRONTEND_ENVIRONMENT" ]; then
6056
echo "Error: MINA_FRONTEND_ENVIRONMENT environment variable is required."
61-
echo "Available environments: local, fuzzing, production, webnode, leaderboard, staging"
57+
echo "Available environments: local, fuzzing, production, webnode, staging"
6258
echo "Example: docker run -e MINA_FRONTEND_ENVIRONMENT=webnode mina-frontend"
6359
exit 1
6460
fi

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"check-prettify": "make check-prettify",
1313
"copy-env": "make copy-env",
1414
"deploy": "make deploy",
15-
"deploy:leaderboard": "make deploy-leaderboard",
1615
"install:deps": "make install-deps",
1716
"prebuild": "make prebuild",
1817
"prettify": "make prettify",

frontend/public/environments/leaderboard.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

frontend/src/app/app.component.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import { ToolbarComponent } from '@app/layout/toolbar/toolbar.component';
2828
import { SubmenuTabsComponent } from '@app/layout/submenu-tabs/submenu-tabs.component';
2929
import { WebNodeLandingPageComponent } from '@app/layout/web-node-landing-page/web-node-landing-page.component';
3030
import { MenuTabsComponent } from '@app/layout/menu-tabs/menu-tabs.component';
31-
import { LeaderboardModule } from '@leaderboard/leaderboard.module';
3231

3332
declare var AOS: any;
3433

@@ -53,7 +52,6 @@ declare var AOS: any;
5352
MenuTabsComponent,
5453
// Modules
5554
OpenminaEagerSharedModule,
56-
LeaderboardModule,
5755
],
5856
})
5957
export class AppComponent extends StoreDispatcher implements OnInit {
@@ -74,15 +72,8 @@ export class AppComponent extends StoreDispatcher implements OnInit {
7472
route.url.startsWith(`/${Routes.LOADING_WEB_NODE}`),
7573
),
7674
);
77-
readonly showLeaderboardPage$: Observable<boolean> = this.select$(
78-
getMergedRoute,
79-
).pipe(
80-
filter(Boolean),
81-
map((route: MergedRoute) => route.url.startsWith(`/${Routes.LEADERBOARD}`)),
82-
);
8375
subMenusLength: number = 0;
8476
hideToolbar: boolean = CONFIG.hideToolbar;
85-
showLeaderboard: boolean = CONFIG.showLeaderboard;
8677
loaded: boolean;
8778
isDesktop: boolean = isDesktop();
8879

@@ -121,7 +112,7 @@ export class AppComponent extends StoreDispatcher implements OnInit {
121112
take(1),
122113
);
123114

124-
if (CONFIG.showLeaderboard && CONFIG.showWebNodeLandingPage) {
115+
if (CONFIG.showWebNodeLandingPage) {
125116
/* frontend with some landing page */
126117
this.select(
127118
getMergedRoute,
@@ -133,7 +124,7 @@ export class AppComponent extends StoreDispatcher implements OnInit {
133124
),
134125
take(1),
135126
);
136-
} else if (!CONFIG.showLeaderboard && !CONFIG.showWebNodeLandingPage) {
127+
} else {
137128
/* normal frontend (no landing pages) */
138129
this.initAppFunctionalities();
139130
}

frontend/src/app/app.routing.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,7 @@ export function generateRoutes(): Routes {
9898
canActivate: [landingPageGuard],
9999
},
100100
];
101-
if (CONFIG.showLeaderboard) {
102-
routes.push({
103-
path: '',
104-
loadChildren: () =>
105-
import('@leaderboard/leaderboard.module').then(
106-
m => m.LeaderboardModule,
107-
),
108-
});
109-
} else if (CONFIG.showWebNodeLandingPage) {
101+
if (CONFIG.showWebNodeLandingPage) {
110102
routes.push({
111103
path: '',
112104
component: WebNodeLandingPageComponent,

frontend/src/app/app.setup.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ import { benchmarksReducer } from '@benchmarks/benchmarks.reducer';
4444
import { fuzzingReducer } from '@fuzzing/fuzzing.reducer';
4545
import { FuzzingState } from '@fuzzing/fuzzing.state';
4646
import { FuzzingAction } from '@fuzzing/fuzzing.actions';
47-
import { LeaderboardState } from '@leaderboard/leaderboard.state';
48-
import { leaderboardReducer } from '@leaderboard/leaderboard.reducer';
4947

5048
export interface MinaState {
5149
[APP_KEY]: AppState;
@@ -61,7 +59,6 @@ export interface MinaState {
6159
snarks: SnarksState;
6260
benchmarks: BenchmarksState;
6361
fuzzing: FuzzingState;
64-
leaderboard: LeaderboardState;
6562
}
6663

6764
type MinaAction = ErrorPreviewAction &
@@ -87,7 +84,6 @@ export const reducers: ActionReducerMap<MinaState, MinaAction> = {
8784
snarks: snarksReducer,
8885
benchmarks: benchmarksReducer,
8986
fuzzing: fuzzingReducer,
90-
leaderboard: leaderboardReducer,
9187
};
9288

9389
export const metaReducers: MetaReducer<MinaState, MinaAction>[] = [];

frontend/src/app/features/leaderboard/leaderboard-apply/leaderboard-apply.component.html

Lines changed: 0 additions & 5 deletions
This file was deleted.

frontend/src/app/features/leaderboard/leaderboard-apply/leaderboard-apply.component.scss

Lines changed: 0 additions & 30 deletions
This file was deleted.

frontend/src/app/features/leaderboard/leaderboard-apply/leaderboard-apply.component.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)