diff --git a/i18n/ko/docusaurus-plugin-content-pages/index.tsx b/i18n/ko/docusaurus-plugin-content-pages/index.tsx index 2be54bbc59..3a92f0cd0a 100644 --- a/i18n/ko/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/ko/docusaurus-plugin-content-pages/index.tsx @@ -11,28 +11,28 @@ export default function Home(): JSX.Element { const {siteConfig} = useDocusaurusContext(); return ( - -
-
-

Welcome to the TON Blockchain documentation

-

Choose your path to start journey 🚀

+ +
+
+

Welcome to the TON Blockchain documentation

+

Choose your path to start journey 🚀

-
+
-
- {firstRow && +
+ {firstRow && firstRow.length && firstRow.map((props, idx) => ( - + ))}{" "} -
- -
-
-
- + +
+
+
+
+
); } diff --git a/src/components/button.tsx b/src/components/button.tsx index 82f4edd767..d51894cb92 100644 --- a/src/components/button.tsx +++ b/src/components/button.tsx @@ -17,16 +17,16 @@ interface IButtonProps { } const Button = (props: IButtonProps) => { - const classNames = `button button--${props.colorType} button--${props.sizeType}` + const classNames = `button button--${props.colorType} button--${props.sizeType}` - return ( - - {props.children} - - ) + return ( + + {props.children} + + ) } export default Button diff --git a/src/components/contentBlock.tsx b/src/components/contentBlock.tsx index 600ae45708..9cd081ab6a 100644 --- a/src/components/contentBlock.tsx +++ b/src/components/contentBlock.tsx @@ -4,26 +4,26 @@ import ThemedImage from "@theme/ThemedImage"; import React from "react"; function ContentBlock({title, status, description, linkUrl, imageUrl}) { - // const imgUrl = useBaseUrl(imageUrl); - return ( + // const imgUrl = useBaseUrl(imageUrl); + return ( -
- -
-
- -
-
{status}
-
{title}
-
{description}
-
- +
+ +
+
+ +
+
{status}
+
{title}
+
{description}
+ +
- ); + ); } // @ts-ignore diff --git a/src/components/player.tsx b/src/components/player.tsx index b48ee5964f..154f0abadb 100644 --- a/src/components/player.tsx +++ b/src/components/player.tsx @@ -3,16 +3,16 @@ import ReactPlayer from "react-player"; const Player = (props) => ( -
- -
+
+ +
); export default Player; diff --git a/src/pages/hacktonberfest.tsx b/src/pages/hacktonberfest.tsx index 535a0931de..4ebbc94a15 100644 --- a/src/pages/hacktonberfest.tsx +++ b/src/pages/hacktonberfest.tsx @@ -7,105 +7,105 @@ import ContentBlock from "@site/src/components/contentBlock"; import './index.module.css' const content = [ - { - title: "What is Hacktoberfest?", - status: "Everyone curious about TON", - linkUrl: "/contribute/hacktoberfest", - imageUrl: "img/ton_symbol_old.svg", - description: "Read more about the event and why it's so cool to start right now!" - }, - { - title: "Contribute to TON", - status: "Open-source Developer", - linkUrl: "/contribute/hacktoberfest/as-contributor", - imageUrl: "img/ton_symbol_old.svg", - description: "Participate in open-source and receive cool rewards from TON." - }, - { - title: "Prepare Repository", - status: "Open-source Maintainer", - linkUrl: "/contribute/hacktoberfest/as-maintainer", - imageUrl: "img/ton_symbol_old.svg", - description: "Improve your open-source project with help of active TON community." - }, + { + title: "What is Hacktoberfest?", + status: "Everyone curious about TON", + linkUrl: "/contribute/hacktoberfest", + imageUrl: "img/ton_symbol_old.svg", + description: "Read more about the event and why it's so cool to start right now!" + }, + { + title: "Contribute to TON", + status: "Open-source Developer", + linkUrl: "/contribute/hacktoberfest/as-contributor", + imageUrl: "img/ton_symbol_old.svg", + description: "Participate in open-source and receive cool rewards from TON." + }, + { + title: "Prepare Repository", + status: "Open-source Maintainer", + linkUrl: "/contribute/hacktoberfest/as-maintainer", + imageUrl: "img/ton_symbol_old.svg", + description: "Improve your open-source project with help of active TON community." + }, ]; export default function Home(): JSX.Element { - const {siteConfig} = useDocusaurusContext(); - return ( + const {siteConfig} = useDocusaurusContext(); + return ( - -
-
-

Welcome to Hack-TON-berfest 🎃

-

Choose your path to start journey:

+ +
+
+

Welcome to Hack-TON-berfest 🎃

+

Choose your path to start journey:

-
+
-
- {content && +
+ {content && content.length && content.map((props, idx) => ( - + ))}{" "} -
+
-
-
+
+
-

List of repositories to Contribute 🛠

-

Here is a list of repositories in TON Ecosystem who awaits of contributors right now:

+

List of repositories to Contribute 🛠

+

Here is a list of repositories in TON Ecosystem who awaits of contributors right now:

- + -
-
+
+
-

Want to join to this list? 🚀

-

Please, read the page for maintainers and fill the form — join as maintainer. It's easy now!

+

Want to join to this list? 🚀

+

Please, read the page for maintainers and fill the form — join as maintainer. It's easy now!

-
-
+
+
-

Claim your NFT as proof of participating 💎

-

Every participant (maintainer and contributor) to any of TON Ecosystem projects will receive Limited Hack-TON-berfest NFT:

+

Claim your NFT as proof of participating 💎

+

Every participant (maintainer and contributor) to any of TON Ecosystem projects will receive Limited Hack-TON-berfest NFT:

-
- +
-
+
-

FAQ for Contributors

+

FAQ for Contributors

-

Before asking any question in the chats, please read answers here first.

- +

Before asking any question in the chats, please read answers here first.

+ -
-
-

If you have any specific questions, feel free to ask in TON Dev Chat to get help.

+
+
+

If you have any specific questions, feel free to ask in TON Dev Chat to get help.

-
-
+
+
-
-
+
+
-
- ); + + ); } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 1563a07724..22411e30fd 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -11,28 +11,28 @@ export default function Home(): JSX.Element { const {siteConfig} = useDocusaurusContext(); return ( - -
-
-

Welcome to the TON
Blockchain documentation
Welcome to
TON Blockchain
documentation

-

Choose your path to start journey

+ +
+
+

Welcome to the TON
Blockchain documentation
Welcome to
TON Blockchain
documentation

+

Choose your path to start journey

-
+
-
- {firstRow && +
+ {firstRow && firstRow.length && firstRow.map((props, idx) => ( - + ))}{" "} -
- -
-

Tip: search everywhere with Ctrl+K hotkey

-
- + +
+

Tip: search everywhere with Ctrl+K hotkey

+
+
+
); } diff --git a/src/theme/Footer/NetworkIcon/index.tsx b/src/theme/Footer/NetworkIcon/index.tsx index 370c32d60f..1be1ab4e73 100644 --- a/src/theme/Footer/NetworkIcon/index.tsx +++ b/src/theme/Footer/NetworkIcon/index.tsx @@ -16,19 +16,19 @@ interface NetworkIconProps { export const NetworkIcon: FC = ({ type }) => { switch (type) { - case "coinmarketcap": - return ; - case "telegram": - return ; - case "github": - return ; - case "twitter": - return ; - case "mail": - return ; - case "linkedin": - return ; - default: - return null; + case "coinmarketcap": + return ; + case "telegram": + return ; + case "github": + return ; + case "twitter": + return ; + case "mail": + return ; + case "linkedin": + return ; + default: + return null; } }; diff --git a/src/theme/prism/prism-tact.js b/src/theme/prism/prism-tact.js index b5ea8f5911..58fc219881 100644 --- a/src/theme/prism/prism-tact.js +++ b/src/theme/prism/prism-tact.js @@ -1,144 +1,147 @@ (function (Prism) { - Prism.languages.tact = { - // reserved keywords - 'keyword': [ - { - pattern: /\b(?:abstract|as|const|contract(?!:)|do|else|extend|extends|fun|get|if|import|initOf|inline|let|message(?!:)|mutates|native|override|primitive|public|repeat|return|self|struct(?!:)|trait(?!:)|until|virtual|while|with)\b/, - }, - { // keyword after as - pattern: /(\bas\s+)\w+/, - lookbehind: true, - greedy: true, - }, - { // reserved function names - pattern: /\b(?:bounced|external|init|receive)\b/ - }, - ], + Prism.languages.tact = { + // reserved keywords + 'keyword': [ + { + pattern: /\b(?:abstract|as|const|contract(?!:)|do|else|extend|extends|fun|get|if|import|initOf|inline|let|message(?!:)|mutates|native|override|primitive|public|repeat|return|self|struct(?!:)|trait(?!:)|until|virtual|while|with)\b/, + }, + { // keyword after as + pattern: /(\bas\s+)\w+/, + lookbehind: true, + greedy: true, + }, + { // reserved function names + pattern: /\b(?:bounced|external|init|receive)\b/ + }, + ], - // built-in types - 'builtin': { - pattern: /\b(?:Address|Bool|Builder|Cell|Int|Slice|String|StringBuilder)\b/, - }, + // built-in types + 'builtin': { + pattern: /\b(?:Address|Bool|Builder|Cell|Int|Slice|String|StringBuilder)\b/, + }, - // SCREAMING_SNAKE_CASE for null values and names of constants - 'constant': [ - { - pattern: /\bnull\b/, - }, - { - pattern: /\b[A-Z][A-Z0-9_]*\b/, - }, - ], + // SCREAMING_SNAKE_CASE for null values and names of constants + 'constant': [ + { + pattern: /\bnull\b/, + }, + { + pattern: /\b[A-Z][A-Z0-9_]*\b/, + }, + ], - // UpperCamelCase for names of contracts, traits, structs, messages - 'class-name': { - pattern: /\b[A-Z]\w*\b/, - }, + // UpperCamelCase for names of contracts, traits, structs, messages + 'class-name': { + pattern: /\b[A-Z]\w*\b/, + }, - // mappings to FunC - 'attribute': [ - { // functions - pattern: /@name/, - inside: { - 'function': /.+/, - }, - }, - { // contract interfaces - pattern: /@interface/, - inside: { - 'function': /.+/, - } - } - ], + // mappings to FunC + 'attribute': [ + { // functions + pattern: /@name/, + inside: { + 'function': /.+/, + }, + }, + { // contract interfaces + pattern: /@interface/, + inside: { + 'function': /.+/, + } + } + ], - 'function': { - pattern: /\b\w+(?=\()/, - }, + 'function': { + pattern: /\b\w+(?=\()/, + }, - 'boolean': { - pattern: /\b(?:false|true)\b/, - }, + 'boolean': { + pattern: /\b(?:false|true)\b/, + }, - 'number': [ - { // hexadecimal, case-insensitive /i - pattern: /\b0x[0-9a-f]+\b/i, - }, - { // octal, case-insensitive /i - pattern: /\b0o[0-7]+\b/i, - }, - { // decimal integers - pattern: /\b\d+\b/, - }, - { // binary, case-insensitive /i - pattern: /\b0b[01]+\b/i, - } - ], + 'number': [ + { // hexadecimal, case-insensitive /i + pattern: /\b0x[0-9a-f](?:_?[0-9a-f])*\b/i, + }, + { // octal, case-insensitive /i + pattern: /\b0o[0-7](?:_?[0-7])*\b/i, + }, + { // binary, case-insensitive /i + pattern: /\b0b[01](?:_?[01])*\b/i, + }, + { // decimal integers, starting with 0 + pattern: /\b0\d*\b/, + }, + { // other decimal integers + pattern: /\b[1-9](?:_?\d)*\b/, + }, + ], - 'string': undefined, + 'string': undefined, - 'punctuation': { - pattern: /[{}[\]();,.:?]/, - }, + 'punctuation': { + pattern: /[{}[\]();,.:?]/, + }, - 'comment': [ - { // single-line - pattern: /(^|[^\\:])\/\/.*/, - lookbehind: true, - greedy: true, - }, - { // multi-line - pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, - lookbehind: true, - greedy: true, - } - ], + 'comment': [ + { // single-line + pattern: /(^|[^\\:])\/\/.*/, + lookbehind: true, + greedy: true, + }, + { // multi-line + pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, + lookbehind: true, + greedy: true, + } + ], - 'operator': { - 'pattern': /![!=]?|[+\-*/%=]=?|[<>]=|<>?|\|\|?|&&?/, - }, + 'operator': { + 'pattern': /![!=]?|[+\-*/%=]=?|[<>]=|<>?|\|\|?|&&?/, + }, - }; + }; - // strings, made this way to not collide with other entities - Prism.languages.insertBefore('tact', 'string', { - 'string-literal': { - pattern: /(?:(")(?:\\.|(?!\1)[^\\\r\n])*\1(?!\1))/, - greedy: true, - inside: { - 'string': { - pattern: /[\s\S]+/, - }, - }, - }, - }); + // strings, made this way to not collide with other entities + Prism.languages.insertBefore('tact', 'string', { + 'string-literal': { + pattern: /(?:(")(?:\\.|(?!\1)[^\\\r\n])*\1(?!\1))/, + greedy: true, + inside: { + 'string': { + pattern: /[\s\S]+/, + }, + }, + }, + }); - // map and bounced message generic type modifiers - Prism.languages.insertBefore('tact', 'keyword', { - 'generics': { - pattern: /(?:\b(?:bounced|map)\b<[^\\\r\n]*>)/, - greedy: true, - inside: { - 'builtin': [ - Prism.languages['tact']['builtin'], - { - pattern: /\b(?:bounced(?=<)|map(?=<))\b/ - }, - ], - 'class-name': Prism.languages['tact']['class-name'], - 'punctuation': { - pattern: /[<>(),.?]/, - }, - 'keyword': [ - { - pattern: /\bas\b/, - }, - { - pattern: /(\bas\s+)\w+/, - lookbehind: true, - greedy: true, - }, - ], - }, - }, - }); + // map and bounced message generic type modifiers + Prism.languages.insertBefore('tact', 'keyword', { + 'generics': { + pattern: /(?:\b(?:bounced|map)\b<[^\\\r\n]*>)/, + greedy: true, + inside: { + 'builtin': [ + Prism.languages['tact']['builtin'], + { + pattern: /\b(?:bounced(?=<)|map(?=<))\b/ + }, + ], + 'class-name': Prism.languages['tact']['class-name'], + 'punctuation': { + pattern: /[<>(),.?]/, + }, + 'keyword': [ + { + pattern: /\bas\b/, + }, + { + pattern: /(\bas\s+)\w+/, + lookbehind: true, + greedy: true, + }, + ], + }, + }, + }); }(Prism));