-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tenscan] implement monorepo changes (#2064)
chore: Update Tenscan with new monorepo configuration
- Loading branch information
Showing
119 changed files
with
896 additions
and
4,025 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ export const siteMetadata = { | |
"Bridge tokens between Layer 1 and Layer 2 networks effortlessly with TEN Bridge. Ensure secure and efficient cross-chain transactions", | ||
keywords: | ||
"token bridging, cross-chain transactions, Layer 1 to Layer 2 bridge, blockchain bridge, Ten Bridge, crypto bridging, TEN network, TEN blockchain, TEN ecosystem", | ||
siteUrl: `https://${environment}-bridge.ten.xyz`, | ||
siteUrl: `https://${environment && environment + "-"}bridge.ten.xyz`, | ||
siteLogo: `/assets/images/cover.png`, | ||
siteLogoSquare: `/assets/images/cover.png`, | ||
email: "[email protected]", | ||
|
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
FROM node:18-buster as runner | ||
# Install pnpm | ||
|
||
RUN npm install -g pnpm | ||
# setup container data structure | ||
RUN mkdir -p /home/obscuro/go-obscuro/tools/tenscan/ | ||
COPY ./tools/tenscan/frontend /home/obscuro/go-obscuro/tools/tenscan/frontend | ||
|
||
WORKDIR /home/obscuro/go-obscuro/tools/tenscan/frontend | ||
COPY . /home/obscuro/go-obscuro/ | ||
|
||
WORKDIR /home/obscuro/go-obscuro/ | ||
|
||
RUN pnpm install | ||
|
||
EXPOSE 80 | ||
WORKDIR /home/obscuro/go-obscuro/tools/tenscan/frontend | ||
|
||
RUN pnpm install --filter ./tools/tenscan/frontend... | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["pnpm", "run", "start"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,7 @@ | ||
import { ErrorType } from "@/src/types/interfaces"; | ||
import Error from "./_error"; | ||
import Custom404Error from "@repo/ui/components/common/404"; | ||
|
||
export function Custom404Error({ | ||
customPageTitle, | ||
showRedirectText, | ||
redirectText, | ||
isFullWidth, | ||
message, | ||
showMessage = true, | ||
redirectLink, | ||
children, | ||
}: ErrorType) { | ||
return ( | ||
<Error | ||
heading={` ${customPageTitle || "Oops! Page"} Not Found`} | ||
statusText={`We can't seem to find the ${ | ||
customPageTitle || "page" | ||
} you're looking for.`} | ||
statusCode={404} | ||
showRedirectText={showRedirectText} | ||
redirectText={redirectText || "Home Page"} | ||
message={ | ||
message || | ||
`The ${ | ||
customPageTitle || "page" | ||
} you are looking for might have been removed, had its name changed, or is temporarily unavailable.` | ||
} | ||
isFullWidth={isFullWidth} | ||
showMessage={showMessage} | ||
redirectLink={redirectLink} | ||
> | ||
{children} | ||
</Error> | ||
); | ||
} | ||
const Custom404 = () => { | ||
return <Custom404Error />; | ||
}; | ||
|
||
export default Custom404Error; | ||
export default Custom404; |
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 |
---|---|---|
@@ -1,32 +1,7 @@ | ||
import { ErrorType } from "@/src/types/interfaces"; | ||
import Error from "./_error"; | ||
import Custom500Error from "@repo/ui/components/common/500"; | ||
|
||
function Custom500Error({ | ||
customPageTitle, | ||
message, | ||
showRedirectText, | ||
redirectText, | ||
err, | ||
redirectLink, | ||
children, | ||
}: ErrorType) { | ||
return ( | ||
<Error | ||
heading={"Oops! Something went wrong."} | ||
message={ | ||
message || | ||
"We're experiencing technical difficulties. Please try again later." | ||
} | ||
statusText={customPageTitle || `An Error occured`} | ||
statusCode={500} | ||
showRedirectText={showRedirectText || true} | ||
redirectText={redirectText || "Home Page"} | ||
err={err} | ||
redirectLink={redirectLink} | ||
> | ||
{children} | ||
</Error> | ||
); | ||
} | ||
const Custom404 = () => { | ||
return <Custom500Error />; | ||
}; | ||
|
||
export default Custom500Error; | ||
export default Custom404; |
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
Oops, something went wrong.