Skip to content

Commit

Permalink
refactor: remove unused files (#11743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works authored Sep 3, 2024
1 parent 743c32c commit 5e9ddf0
Show file tree
Hide file tree
Showing 36 changed files with 10 additions and 1,764 deletions.
1 change: 0 additions & 1 deletion knip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const config: KnipConfig = {
'background/initialization/mv3-entry.ts',
'dashboard/initialization/index.ts',
'popups/initialization/index.ts',
'swap/initialization/index.ts',
'content-script/index.ts',
'web-workers/wallet.ts',
'devtools/content-script/index.ts',
Expand Down
2 changes: 0 additions & 2 deletions packages/mask/.webpack/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ export async function createConfiguration(_inputFlags: BuildFlags): Promise<webp
const entries = (baseConfig.entry = {
dashboard: withReactDevTools(join(import.meta.dirname, '../dashboard/initialization/index.ts')),
popups: withReactDevTools(join(import.meta.dirname, '../popups/initialization/index.ts')),
swap: withReactDevTools(join(import.meta.dirname, '../swap/initialization/index.ts')),
contentScript: withReactDevTools(join(import.meta.dirname, '../content-script/index.ts')),
background: normalizeEntryDescription(join(import.meta.dirname, '../background/initialization/mv2-entry.ts')),
backgroundWorker: normalizeEntryDescription(
Expand All @@ -405,7 +404,6 @@ export async function createConfiguration(_inputFlags: BuildFlags): Promise<webp
baseConfig.plugins.push(
await addHTMLEntry(['dashboard'], 'dashboard.html', TemplateType.NoLoading, flags.profiling),
await addHTMLEntry(['popups'], 'popups.html', TemplateType.Loading, flags.profiling),
await addHTMLEntry(['swap'], 'swap.html', TemplateType.NoLoading, flags.profiling),
await addHTMLEntry(['contentScript'], 'contentScript.html', TemplateType.NoLoading, flags.profiling),
await addHTMLEntry(['background'], 'background.html', TemplateType.Background, flags.profiling),
)
Expand Down

This file was deleted.

Binary file not shown.
4 changes: 0 additions & 4 deletions packages/mask/dashboard/assets/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Manage local static resource
*/
export const ABOUT_DIALOG_BACKGROUND = new URL('./images/AboutDialogBackground.png', import.meta.url).href
// A workaround for Opera file name validation
export const Welcome = new URL('./Welcome.splinecode.png', import.meta.url).href
export const PrintBackground = new URL('./images/PrintBackground.png', import.meta.url).href
Expand Down
135 changes: 0 additions & 135 deletions packages/mask/dashboard/components/FooterLine/About.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions packages/mask/dashboard/components/FooterLine/Version.tsx

This file was deleted.

119 changes: 0 additions & 119 deletions packages/mask/dashboard/components/FooterLine/index.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions packages/mask/dashboard/components/FooterLine/links.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/mask/dashboard/components/HeaderLine/index.tsx

This file was deleted.

9 changes: 8 additions & 1 deletion packages/mask/dashboard/pages/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ import { TermsGuard } from './TermsGuard.js'
import { PersonaFrame, personaRoutes } from './SetupPersona/index.js'
import { SignUpFrame, signUpRoutes } from './SignUp/index.js'
import { WalletFrame, walletRoutes } from './CreateMaskWallet/index.js'
import { Modals } from '../modals/index.js'

const routes: RouteObject[] = [
{ path: DashboardRoutes.Setup, element: <PersonaFrame />, children: personaRoutes },
{ path: DashboardRoutes.SignUp, element: <SignUpFrame />, children: signUpRoutes },
{ path: DashboardRoutes.CreateMaskWallet, element: <WalletFrame />, children: walletRoutes },
]
const root = createHashRouter([{ element: <TermsGuard />, children: routes }], {
const rootElement = (
<>
<TermsGuard />
<Modals />
</>
)
const root = createHashRouter([{ element: rootElement, children: routes }], {
future: { v7_normalizeFormMethod: true },
})

Expand Down
Loading

0 comments on commit 5e9ddf0

Please sign in to comment.