Skip to content

Commit

Permalink
update prepair for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
BigDealCompany committed Feb 6, 2024
1 parent fbd665f commit b2d6dbb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 56 deletions.
22 changes: 6 additions & 16 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
# Verwende das offizielle Node.js-Bild als Basis
FROM node:16

# Setze das Arbeitsverzeichnis im Container
WORKDIR /app

# Kopiere die Dateien aus dem Repository in das Arbeitsverzeichnis
COPY . /app
COPY . .

# Setze Umgebungsvariable für die Build-Konfiguration
ENV CI=false
RUN npm install

# Installiere Abhängigkeiten
RUN cp .env.production .env && npm ci
RUN yarn build
RUN yarn start

# Baue die Anwendung
RUN npm run build

# Exponiere den Port, den die Anwendung verwendet (falls erforderlich)
EXPOSE 5050

# Führe die Anwendung beim Start des Containers aus
CMD ["npm", "start"]
EXPOSE 32001
CMD ["yarn", "start"]
69 changes: 32 additions & 37 deletions packages/uikit/src/widgets/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,36 +53,36 @@ const Wrapper = styled.div`
width: 100%;
`;

const StyledNav = styled.nav`
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
height: ${MENU_HEIGHT}px;
background: linear-gradient(180deg, #3b3b3b 0%, rgba(59, 59, 59, 0) 100%);
border-bottom: 1px solid ${({ theme }) => theme.colors.cardBorder};
transform: translate3d(0, 0, 0);
// const StyledNav = styled.nav`
// display: flex;
// justify-content: space-between;
// align-items: center;
// width: 100%;
// height: ${MENU_HEIGHT}px;
// background: linear-gradient(180deg, #3b3b3b 0%, rgba(59, 59, 59, 0) 100%);
// border-bottom: 1px solid ${({ theme }) => theme.colors.cardBorder};
// transform: translate3d(0, 0, 0);

padding-left: 16px;
padding-right: 16px;
`;
// padding-left: 16px;
// padding-right: 16px;
// `;

const FixedContainer = styled.div<{ showMenu: boolean; height: number }>`
position: fixed;
top: ${({ showMenu, height }) => (showMenu ? 0 : `-${height}px`)};
left: 0;
transition: top 0.2s;
height: ${({ height }) => `${height}px`};
width: 100%;
z-index: 20;
`;
// const FixedContainer = styled.div<{ showMenu: boolean; height: number }>`
// position: fixed;
// top: ${({ showMenu, height }) => (showMenu ? 0 : `-${height}px`)};
// left: 0;
// transition: top 0.2s;
// height: ${({ height }) => `${height}px`};
// width: 100%;
// z-index: 20;
// `;

const TopBannerContainer = styled.div<{ height: number }>`
height: ${({ height }) => `${height}px`};
min-height: ${({ height }) => `${height}px`};
max-height: ${({ height }) => `${height}px`};
width: 100%;
`;
// const TopBannerContainer = styled.div<{ height: number }>`
// height: ${({ height }) => `${height}px`};
// min-height: ${({ height }) => `${height}px`};
// max-height: ${({ height }) => `${height}px`};
// width: 100%;
// `;

const BodyWrapper = styled(Box)`
position: relative;
Expand All @@ -98,11 +98,8 @@ const Inner = styled.div<{ isPushed: boolean; showMenu: boolean }>`

const Menu: React.FC<NavProps> = ({
linkComponent = "a",
bnbMenu,
userMenu,
banner,
globalMenu,
SocialMenu,
isDark,
toggleTheme,
currentLang,
Expand All @@ -111,8 +108,6 @@ const Menu: React.FC<NavProps> = ({
links,
subLinks,
footerLinks,
activeItem,
activeSubItem,
langs,
buyCakeLabel,
children,
Expand Down Expand Up @@ -182,10 +177,10 @@ const Menu: React.FC<NavProps> = ({
}, [totalTopMenuHeight]);

// Find the home link if provided
const homeLink = links.find((link) => link.label === "Home");
// const homeLink = links.find((link) => link.label === "Home");

const subLinksWithoutMobile = subLinks?.filter((subLink) => !subLink.isMobileOnly);
const subLinksMobileOnly = subLinks?.filter((subLink) => subLink.isMobileOnly);
// const subLinksWithoutMobile = subLinks?.filter((subLink) => !subLink.isMobileOnly);
// const subLinksMobileOnly = subLinks?.filter((subLink) => subLink.isMobileOnly);

return (
<MenuContext.Provider value={{ linkComponent }}>
Expand Down Expand Up @@ -249,13 +244,13 @@ const Menu: React.FC<NavProps> = ({
Liquidity
</a>
<a href="/launchpad/" className={`${Style.link} nav-link`}>
🔥 Launchpad
Launchpad
</a>
<a href="/stake/" className={`${Style.link} nav-link`}>
Staking
</a>
<a href="/markets/" className={`${Style.link} nav-link`}>
🔥 Markets
Markets
</a>
<a href="https://nft.intercroneswap.com/" className={`${Style.link} nav-link`}>
NFT
Expand Down
1 change: 0 additions & 1 deletion src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import GlobalSettings from './GlobalSettings'
import { getActiveMenuItem, getActiveSubMenuItem } from './utils'
import SocialMenu from './SocialMenu'
import UserMenu from './UserMenu'
import { useIcrUsdtPrice } from 'hooks/useUSDTPrice'

const Menu = (props) => {
const { isDark, setTheme } = useTheme()
Expand Down
4 changes: 2 additions & 2 deletions src/components/markets/MarketCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ETHER, Pair, Percent, TokenAmount } from '@intercroneswap/v2-sdk'
import { useContext, useState } from 'react'
import { ThemeContext } from 'styled-components'
import { Button, Text } from '@pancakeswap/uikit'
import { useWeb3React } from '@web3-react/core'
// import { useWeb3React } from '@web3-react/core'
import { CurrencyLogo } from 'components/Logo'
import { currencyFormatter, getBscScanLink } from 'utils'
import { ArrowWrapper, ResponsiveSizedTextMedium } from 'components/earn/styleds'
Expand All @@ -25,7 +25,7 @@ export interface MarketCardProps {
export default function MarketCard({ pair, stakingAddress, liquidity }: MarketCardProps) {
const theme = useContext(ThemeContext)
// const isMobile = window.innerWidth <= MEDIA_WIDTHS.upToMedium;
const { chainId } = useWeb3React()
// const { chainId } = useWeb3React()

const dailyVolume: TokenAmount | undefined = undefined
const [showMore, setShowMore] = useState(false)
Expand Down

0 comments on commit b2d6dbb

Please sign in to comment.