Skip to content

Commit

Permalink
DDEX admin UI (#7151)
Browse files Browse the repository at this point in the history
  • Loading branch information
michellebrier authored Jan 11, 2024
1 parent a0a5c01 commit c8bb29a
Show file tree
Hide file tree
Showing 20 changed files with 568 additions and 446 deletions.
46 changes: 15 additions & 31 deletions packages/ddex-frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,35 +1,19 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier',
'plugin:prettier/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh','prettier'],
env: { browser: true, es6: true },
extends: ['audius'],
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
'prettier/prettier': ['error', {
singleQuote: true,
semi: false,
useTabs: false,
tabWidth: 2,
trailingComma: 'es5',
printWidth: 80,
bracketSpacing: true,
arrowParens: 'always',
}],
},
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['react-spring*'],
message: 'Please use @react-spring/web instead'
}
]
}
]
}
}
8 changes: 5 additions & 3 deletions packages/ddex-frontend/src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import Layout from './Layout'
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'

import Ddex from '../pages/DDEX/DDEX'

import Layout from './Layout'

const App = () => {
return (
<Router basename="/ddex">
<Router basename='/ddex'>
<Layout>
<Routes>
<Route path="/" element={<Ddex />} />
<Route path='/' element={<Ddex />} />
</Routes>
</Layout>
</Router>
Expand Down
12 changes: 7 additions & 5 deletions packages/ddex-frontend/src/components/AppWithProviders.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { AudiusLibsProvider } from '../providers/AudiusLibsProvider'
import { AudiusSdkProvider } from '../providers/AudiusSdkProvider'
import { RemoteConfigProvider } from '../providers/RemoteConfigProvider'
import { ThemeProvider } from '../providers/ThemeProvider'
import App from './App'
import Web3 from 'web3'

import { AudiusLibsProvider } from 'providers/AudiusLibsProvider'
import { AudiusSdkProvider } from 'providers/AudiusSdkProvider'
import { RemoteConfigProvider } from 'providers/RemoteConfigProvider'
import { ThemeProvider } from 'providers/ThemeProvider'

import App from './App'

declare global {
interface Window {
Web3: any
Expand Down
4 changes: 2 additions & 2 deletions packages/ddex-frontend/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interface LayoutProps {

const Layout: React.FC<LayoutProps> = ({ children }) => {
return (
<div className="flex">
<main className="flex-grow p-4">{children}</main>
<div className='flex'>
<main className='flex-grow p-4'>{children}</main>
</div>
)
}
Expand Down
122 changes: 0 additions & 122 deletions packages/ddex-frontend/src/components/Releases.tsx

This file was deleted.

114 changes: 0 additions & 114 deletions packages/ddex-frontend/src/components/Uploads.tsx

This file was deleted.

Loading

0 comments on commit c8bb29a

Please sign in to comment.