Skip to content

Commit

Permalink
Remove logos for easier branding customization (#525)
Browse files Browse the repository at this point in the history
* remove l2beat branding

* fix

* use dydx meta image

* Fix brand casing in header

* Make ToS depandent on instance name

* Remove ToSController

---------

Co-authored-by: Adrian Adamiak <[email protected]>
  • Loading branch information
torztomasz and adamiak authored Oct 15, 2024
1 parent 4e67d8c commit 969c056
Show file tree
Hide file tree
Showing 19 changed files with 66 additions and 280 deletions.
6 changes: 0 additions & 6 deletions packages/backend/src/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { L2TransactionController } from './api/controllers/L2TransactionControll
import { MerkleProofController } from './api/controllers/MerkleProofController'
import { SearchController } from './api/controllers/SearchController'
import { StateUpdateController } from './api/controllers/StateUpdateController'
import { TermsOfServiceController } from './api/controllers/TermsOfServiceController'
import { TransactionController } from './api/controllers/TransactionController'
import { TransactionSubmitController } from './api/controllers/TransactionSubmitController'
import { TutorialController } from './api/controllers/TutorialController'
Expand Down Expand Up @@ -692,10 +691,6 @@ export class Application {
tutorialService
)

const termsOfServiceController = new TermsOfServiceController(
pageContextService
)

const apiServer = new ApiServer(config.port, logger, {
routers: [
createStatusRouter(statusService),
Expand All @@ -711,7 +706,6 @@ export class Application {
l2TransactionController,
escapeHatchController,
tutorialController,
termsOfServiceController,
config
),
createTransactionRouter(
Expand Down
34 changes: 0 additions & 34 deletions packages/backend/src/api/controllers/TermsOfServiceController.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/backend/src/api/routers/FrontendRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { L2TransactionController } from '../controllers/L2TransactionController'
import { MerkleProofController } from '../controllers/MerkleProofController'
import { SearchController } from '../controllers/SearchController'
import { StateUpdateController } from '../controllers/StateUpdateController'
import { TermsOfServiceController } from '../controllers/TermsOfServiceController'
import { TransactionController } from '../controllers/TransactionController'
import { TutorialController } from '../controllers/TutorialController'
import { UserController } from '../controllers/UserController'
Expand All @@ -33,7 +32,6 @@ export function createFrontendRouter(
l2TransactionController: L2TransactionController,
escapeHatchController: EscapeHatchController,
tutorialController: TutorialController,
termsOfServiceController: TermsOfServiceController,
config: Config
) {
const router = new Router()
Expand Down Expand Up @@ -507,14 +505,6 @@ export function createFrontendRouter(
)
)

router.get('/tos', async (ctx) => {
const givenUser = getGivenUser(ctx)
const result = await termsOfServiceController.getTermsOfServicePage(
givenUser
)
applyControllerResult(ctx, result)
})

if (config.starkex.tradingMode === 'perpetual') {
if (!forcedTradeOfferController) {
throw new Error(
Expand Down
129 changes: 0 additions & 129 deletions packages/backend/src/content/tos.md

This file was deleted.

Binary file modified packages/frontend/src/static/images/meta-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 969c056

Please sign in to comment.