-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/explorer-3' of https://github.com/cowprotocol/cowswap
into feat/explorer-4 # Conflicts: # apps/explorer/src/api/operator/operatorApi.ts # apps/explorer/vite.config.ts
- Loading branch information
Showing
41 changed files
with
2,664 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
167 changes: 9 additions & 158 deletions
167
apps/cowswap-frontend/src/legacy/theme/cowSwapAssets.ts
Large diffs are not rendered by default.
Oops, something went wrong.
160 changes: 160 additions & 0 deletions
160
apps/cowswap-frontend/src/legacy/theme/themeCovers/christmasCover.ts
Large diffs are not rendered by default.
Oops, something went wrong.
98 changes: 98 additions & 0 deletions
98
apps/cowswap-frontend/src/legacy/theme/themeCovers/defaultCover.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { render } from '@testing-library/react' | ||
|
||
import { BrowserRouter } from 'react-router-dom' | ||
|
||
import App from './app' | ||
|
||
describe('App', () => { | ||
it('should render successfully', () => { | ||
const { baseElement } = render( | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
) | ||
expect(baseElement).toBeTruthy() | ||
}) | ||
|
||
it('should have a greeting as the title', () => { | ||
const { getByText } = render( | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
) | ||
expect(getByText(/Welcome explorer/gi)).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import styled from 'styled-components' | ||
|
||
import NxWelcome from './nx-welcome' | ||
|
||
import { Route, Routes, Link } from 'react-router-dom' | ||
|
||
const StyledApp = styled.div` | ||
// Your style here | ||
` | ||
|
||
export function App() { | ||
return ( | ||
<StyledApp> | ||
<NxWelcome title="explorer" /> | ||
|
||
{/* START: routes */} | ||
{/* These routes and navigation have been generated for you */} | ||
{/* Feel free to move and update them to fit your needs */} | ||
<br /> | ||
<hr /> | ||
<br /> | ||
<div role="navigation"> | ||
<ul> | ||
<li> | ||
<Link to="/">Home</Link> | ||
</li> | ||
<li> | ||
<Link to="/page-2">Page 2</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
<Routes> | ||
<Route | ||
path="/" | ||
element={ | ||
<div> | ||
This is the generated root route. <Link to="/page-2">Click here for page 2.</Link> | ||
</div> | ||
} | ||
/> | ||
<Route | ||
path="/page-2" | ||
element={ | ||
<div> | ||
<Link to="/">Click here to go back to root page.</Link> | ||
</div> | ||
} | ||
/> | ||
</Routes> | ||
{/* END: routes */} | ||
</StyledApp> | ||
) | ||
} | ||
|
||
export default App |
Oops, something went wrong.