From e72e4a0501325c3bd3beed00bc016eeabd01d426 Mon Sep 17 00:00:00 2001 From: Yeon Hwang Date: Mon, 30 Jan 2023 12:44:54 +0900 Subject: [PATCH 1/4] refactor: update packages --- package-lock.json | 128 +++++++++++++++++++++++----------------------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8f4c4c8..1e2df44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -96,9 +96,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.20.10", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.10.tgz", - "integrity": "sha512-sEnuDPpOJR/fcafHMjpcpGN5M2jbUGUHwmuWKM/YdPzeEDJg8bgmbcWQFUfE32MQjti1koACvoPVsDe8Uq+idg==", + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.14.tgz", + "integrity": "sha512-0YpKHD6ImkWMEINCyDAD0HLLUH/lPCefG8ld9it8DJB2wnApraKuhgYTvTY1z7UFIfBTGy5LwncZ+5HWWGbhFw==", "dev": true, "engines": { "node": ">=6.9.0" @@ -135,9 +135,9 @@ } }, "node_modules/@babel/generator": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.7.tgz", - "integrity": "sha512-7wqMOJq8doJMZmP4ApXTzLxSr7+oO2jroJURrVEp6XShrQUObV8Tq/D0NCcoYg2uHqUrjzO0zwBjoYzelxK+sw==", + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", + "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", "dev": true, "dependencies": { "@babel/types": "^7.20.7", @@ -485,13 +485,13 @@ } }, "node_modules/@babel/helpers": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.7.tgz", - "integrity": "sha512-PBPjs5BppzsGaxHQCDKnZ6Gd9s6xl8bBCluz3vEInLGRJmnZan4F6BYCeqtyXqkk4W5IlPmjK4JlOuZkpJ3xZA==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.13.tgz", + "integrity": "sha512-nzJ0DWCL3gB5RCXbUO3KIMMsBY2Eqbx8mBpKGE/02PgyRQFcPQLbkQ1vyy596mZLaP+dAfD+R4ckASzNVmW3jg==", "dev": true, "dependencies": { "@babel/template": "^7.20.7", - "@babel/traverse": "^7.20.7", + "@babel/traverse": "^7.20.13", "@babel/types": "^7.20.7" }, "engines": { @@ -513,9 +513,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.7.tgz", - "integrity": "sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.13.tgz", + "integrity": "sha512-gFDLKMfpiXCsjt4za2JA9oTMn70CeseCehb11kRZgvd7+F67Hih3OHOK24cRrWECJ/ljfPGac6ygXAs/C8kIvw==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -1045,9 +1045,9 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.11.tgz", - "integrity": "sha512-tA4N427a7fjf1P0/2I4ScsHGc5jcHPbb30xMbaTke2gxDuWpUfXDuX1FEymJwKk4tuGUvGcejAR6HdZVqmmPyw==", + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.14.tgz", + "integrity": "sha512-sMPepQtsOs5fM1bwNvuJJHvaCfOEQfmc01FGw0ELlTpTJj5Ql/zuNRRldYhAPys4ghXdBIQJbRVYi44/7QflQQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.20.2" @@ -1610,9 +1610,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.7.tgz", - "integrity": "sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.13.tgz", + "integrity": "sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==", "dev": true, "dependencies": { "regenerator-runtime": "^0.13.11" @@ -1636,9 +1636,9 @@ } }, "node_modules/@babel/traverse": { - "version": "7.20.12", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz", - "integrity": "sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.13.tgz", + "integrity": "sha512-kMJXfF0T6DIS9E8cgdLCSAL+cuCK+YEZHWiLK0SXpTo8YRj5lpJu3CDNKiIBCne4m9hhTIqUg6SYTAI39tAiVQ==", "dev": true, "dependencies": { "@babel/code-frame": "^7.18.6", @@ -1647,7 +1647,7 @@ "@babel/helper-function-name": "^7.19.0", "@babel/helper-hoist-variables": "^7.18.6", "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.7", + "@babel/parser": "^7.20.13", "@babel/types": "^7.20.7", "debug": "^4.1.0", "globals": "^11.1.0" @@ -1671,19 +1671,19 @@ } }, "node_modules/@csstools/selector-specificity": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.0.2.tgz", - "integrity": "sha512-IkpVW/ehM1hWKln4fCA3NzJU8KwD+kIOvPZA4cqxoJHtE21CCzjyp+Kxbu0i5I4tBNOlXPL9mjwnWlL0VEG4Fg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.1.1.tgz", + "integrity": "sha512-jwx+WCqszn53YHOfvFMJJRd/B2GqkCBt+1MJSG6o5/s8+ytHMvDZXsJgUEWLk12UnLd7HYKac4BYU5i/Ron1Cw==", "dev": true, "engines": { - "node": "^12 || ^14 || >=16" + "node": "^14 || ^16 || >=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/csstools" }, "peerDependencies": { - "postcss": "^8.2", + "postcss": "^8.4", "postcss-selector-parser": "^6.0.10" } }, @@ -1711,9 +1711,9 @@ } }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -1973,9 +1973,9 @@ } }, "node_modules/acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2136,9 +2136,9 @@ } }, "node_modules/auto-changelog/node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "version": "2.6.8", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.8.tgz", + "integrity": "sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg==", "dev": true, "dependencies": { "whatwg-url": "^5.0.0" @@ -2525,9 +2525,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001442", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001442.tgz", - "integrity": "sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow==", + "version": "1.0.30001449", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001449.tgz", + "integrity": "sha512-CPB+UL9XMT/Av+pJxCKGhdx+yg1hzplvFJQlJ2n68PyQGMz9L/E2zCyLdOL8uasbouTUgnPl+y0tccI/se+BEw==", "dev": true, "funding": [ { @@ -2685,9 +2685,9 @@ "dev": true }, "node_modules/core-js-compat": { - "version": "3.27.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.27.1.tgz", - "integrity": "sha512-Dg91JFeCDA17FKnneN7oCMz4BkQ4TcffkgHP4OWwp9yx3pi7ubqMDXXSacfNak1PQqjc95skyt+YBLHQJnkJwA==", + "version": "3.27.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.27.2.tgz", + "integrity": "sha512-welaYuF7ZtbYKGrIy7y3eb40d37rG1FvzEOfe7hSLd2iD6duMDqUhRfSvCGyC46HhR6Y8JXXdZ2lnRUMkPBpvg==", "dev": true, "dependencies": { "browserslist": "^4.21.4" @@ -2755,9 +2755,9 @@ } }, "node_modules/data-uri-to-buffer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz", - "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", "dev": true, "engines": { "node": ">= 12" @@ -3116,9 +3116,9 @@ } }, "node_modules/eslint": { - "version": "8.31.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz", - "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==", + "version": "8.33.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.33.0.tgz", + "integrity": "sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==", "dev": true, "dependencies": { "@eslint/eslintrc": "^1.4.1", @@ -3294,9 +3294,9 @@ } }, "node_modules/eslint/node_modules/globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -4162,9 +4162,9 @@ } }, "node_modules/http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "dev": true }, "node_modules/http2-wrapper": { @@ -4488,9 +4488,9 @@ "dev": true }, "node_modules/js-sdsl": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", - "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", + "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", "dev": true, "funding": { "type": "opencollective", @@ -5428,9 +5428,9 @@ } }, "node_modules/postcss": { - "version": "8.4.20", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.20.tgz", - "integrity": "sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==", + "version": "8.4.21", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", + "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", "dev": true, "funding": [ { @@ -5654,9 +5654,9 @@ } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "dev": true, "engines": { "node": ">=6" From 8fef3c60c0f781c6eb158e03951fa842718a16db Mon Sep 17 00:00:00 2001 From: Yeon Hwang Date: Mon, 30 Jan 2023 13:29:21 +0900 Subject: [PATCH 2/4] feat: production --- config/_default/config.toml | 2 +- config/_default/params.toml | 2 +- layouts/index.headers | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 50c08d2..4213483 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -1,4 +1,4 @@ -baseurl = "https://docs-starfleit.netlify.app/" +baseurl = "https://docs.starfleit.io/" canonifyURLs = false disableAliases = true disableHugoGeneratorInject = true diff --git a/config/_default/params.toml b/config/_default/params.toml index a8fb2d0..e036cf0 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -12,7 +12,7 @@ description = "Technical documentation for the STARFLEIT DEX" ## Open Graph images = ["STARFLEIT-opengraph-image.jpg"] ogLocale = "en_US" -domainTLD = "docs-starfleit.netlify.app" +domainTLD = "docs.starfleit.io" titleHome = "STARLEIT Docs" ## Twitter Cards diff --git a/layouts/index.headers b/layouts/index.headers index 900784e..980a8e7 100644 --- a/layouts/index.headers +++ b/layouts/index.headers @@ -2,7 +2,8 @@ Strict-Transport-Security: max-age=31536000; includeSubDomains; preload X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block -Content-Security-Policy: default-src 'self'; frame-ancestors https://jamstackthemes.dev; manifest-src 'self' https://*.netlify.app; connect-src 'self' https://*.netlify.app; font-src 'self' https://*.netlify.app; img-src 'self' https://*.netlify.app data: https://i.giphy.com; script-src 'self' https://*.netlify.app 'unsafe-inline'; style-src 'self' https://*.netlify.app 'unsafe-inline'; frame-src 'self' https://app.netlify.com X-Frame-Options: SAMEORIGIN + Content-Security-Policy: default-src 'self'; frame-ancestors https://jamstackthemes.dev; manifest-src 'self' https://*.netlify.app https://docs.starfleit.io; connect-src 'self' https://*.netlify.app https://docs.starfleit.io; font-src 'self' https://*.netlify.app https://docs.starfleit.io; img-src 'self' https://*.netlify.app https://docs.starfleit.io data: https://i.giphy.com; script-src 'self' https://*.netlify.app https://docs.starfleit.io 'unsafe-inline'; style-src 'self' https://*.netlify.app https://docs.starfleit.io 'unsafe-inline'; frame-src 'self' https://app.netlify.com https://docs.starfleit.io + X-Frame-Options: SAMEORIGIN Referrer-Policy: strict-origin Feature-Policy: geolocation 'self' Cache-Control: public, max-age=31536000 From 3187474eeb0469431e3f41b5b0f5e8fb5d5130d2 Mon Sep 17 00:00:00 2001 From: Yeon Hwang Date: Mon, 30 Jan 2023 15:19:01 +0900 Subject: [PATCH 3/4] refactor: clean-up contents and themes --- assets/js/highlight.js | 36 +++++++++ assets/scss/common/_variables.scss | 75 +++++++++++++++++-- content/en/docs/{howto => how-to}/_index.md | 0 .../{howto => how-to}/create-your-own-pair.md | 10 +-- .../frequently-used-messages.md | 0 .../mint-your-cw20-token.md} | 21 +++--- content/en/docs/{howto => how-to}/query.md | 4 +- content/en/docs/{howto => how-to}/swap.md | 2 +- content/en/docs/introduction/about.md | 13 ++-- 9 files changed, 130 insertions(+), 31 deletions(-) rename content/en/docs/{howto => how-to}/_index.md (100%) rename content/en/docs/{howto => how-to}/create-your-own-pair.md (90%) rename content/en/docs/{howto => how-to}/frequently-used-messages.md (100%) rename content/en/docs/{howto/token.md => how-to/mint-your-cw20-token.md} (93%) rename content/en/docs/{howto => how-to}/query.md (99%) rename content/en/docs/{howto => how-to}/swap.md (98%) diff --git a/assets/js/highlight.js b/assets/js/highlight.js index 3f1ce61..9f40129 100644 --- a/assets/js/highlight.js +++ b/assets/js/highlight.js @@ -26,6 +26,42 @@ hljs.registerLanguage('go', go); hljs.registerLanguage('rust', rust); hljs.registerLanguage('typescript', typescript); hljs.registerLanguage('protobuf', protobuf); +hljs.registerLanguage('url', function() { + return { + case_insensitive: true, + contains: [ + hljs.HASH_COMMENT_MODE, + { + className: "code", // (protocol: http) color #397300 + begin: /(https?|ftp|file)(?=(:\/\/))/, + }, + { + className: "meta hljs-emphasis", // (hostname: api.someservice.io) color #1f7199 italic + begin: /(?<=((https?|ftp|file):\/\/))[^@:\/\?\n\r]+/, + }, + { + className: "comment", // (authority: @www.example.com) color #697070 + begin: /(?<=((https?|ftp|file):\/\/[^:\/@\n\r]+)@)[^:\/\n\r]+/, + }, + { + className: "tag hljs-emphasis", // (port: 8000) color #444a italic + begin: /(?<=((https?|ftp|file):\/\/[^:\/\n\r]+):)[0-9]+/, + }, + { + className: "symbol", // (pathname: path1/path2/dothis) color #ab5656 + begin: /(?<=((https?|ftp|file):\/\/[^\/\n\r]+)\/)[^?\n\r]+/, + }, + { + className: "literal", // (attribute) color #695 + begin: /(?<=[?&])[^=?&\n\r]+/, + }, + { + className: "meta", // (value) color #1f7199 + begin: /(?<=\=)[^=?&\n\r]+/, + } + ], + } +}); document.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('pre code:not(.language-mermaid)').forEach((block) => { diff --git a/assets/scss/common/_variables.scss b/assets/scss/common/_variables.scss index 2bb9a4d..6b07dc3 100644 --- a/assets/scss/common/_variables.scss +++ b/assets/scss/common/_variables.scss @@ -33,9 +33,11 @@ $color-btn-text: $white; // STARFLEIT $starfleit: #642EFF; -$starfleit-primary: #00ffd1; -$starfleit-haze: #d4ceff; -$starfleit-lighten: lighten($starfleit, 5%); +$starfleit-primary: #80FFE8; +$starfleit-haze: lighten($starfleit, 30%); +$starfleit-lighten: lighten($starfleit, 10%); +$starfleit-darken: darken($starfleit, 20%); +$starfleit-primary-lighten: lighten($starfleit-primary, 20%); $primary: $starfleit-primary; // Options @@ -228,30 +230,59 @@ body .docs-sidebar { border-right: 1px solid $starfleit-lighten; } +body pre code { + scrollbar-width: thin; + scrollbar-color: $starfleit-primary transparent; +} + +body pre code:hover { + scrollbar-width: thin; + scrollbar-color: $starfleit-primary transparent; +} + +body pre code::-webkit-scrollbar-thumb { + background: $starfleit-primary; + border-radius: 30px; +} + +body pre code::-webkit-scrollbar-thumb:hover { + background: $starfleit-primary; + border-radius: 30px; +} + body .docs-links, body .docs-toc { scrollbar-width: thin; - scrollbar-color: $starfleit; + scrollbar-color: $starfleit-primary transparent; +} + +body .docs-links:hover, +body .docs-toc:hover { + scrollbar-width: thin; + scrollbar-color: $starfleit-primary transparent; } body .docs-links::-webkit-scrollbar-track, body .docs-toc::-webkit-scrollbar-track { - background: $starfleit; + background: transparent; } body .docs-links::-webkit-scrollbar-thumb, body .docs-toc::-webkit-scrollbar-thumb { - background: $starfleit; + background: $starfleit-primary; + border-radius: 30px; } body .docs-links:hover::-webkit-scrollbar-thumb, body .docs-toc:hover::-webkit-scrollbar-thumb { background: $starfleit-primary; + border-radius: 30px; } body .docs-links::-webkit-scrollbar-thumb:hover, body .docs-toc::-webkit-scrollbar-thumb:hover { background: $starfleit-primary; + border-radius: 30px; } body .form-control.is-search { @@ -261,6 +292,7 @@ body .form-control.is-search { body .card { background: $starfleit; color: $starfleit-primary; + border-color: $starfleit-lighten; } body code { @@ -286,9 +318,38 @@ body .text-muted { } body .btn-toggle:before { - content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280, 255, 209, 0.75%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e"); + content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2380FFE8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e"); } body .alert-doks { background-color: $starfleit-haze; } + +body .alert-doks a { + color: $starfleit; +} + +body .alert-doks a:hover { + color: $starfleit-darken; +} + + +body .alert-info { + background-color: $starfleit-primary-lighten; +} + +body .alert-info a { + color: $starfleit; +} + +body .alert-info a:hover { + color: $starfleit-darken; +} + +body .alert-warning a { + color: $starfleit; +} + +body .alert-warning a:hover { + color: $starfleit-darken; +} diff --git a/content/en/docs/howto/_index.md b/content/en/docs/how-to/_index.md similarity index 100% rename from content/en/docs/howto/_index.md rename to content/en/docs/how-to/_index.md diff --git a/content/en/docs/howto/create-your-own-pair.md b/content/en/docs/how-to/create-your-own-pair.md similarity index 90% rename from content/en/docs/howto/create-your-own-pair.md rename to content/en/docs/how-to/create-your-own-pair.md index 59a00ee..ba2d08c 100644 --- a/content/en/docs/howto/create-your-own-pair.md +++ b/content/en/docs/how-to/create-your-own-pair.md @@ -3,7 +3,11 @@ title: Create Your Own Pair weight: 30 --- -PLEASE CHECK [HERE](#important) for additional action on Fetch.ai +{{< alert context="warning" >}} +**Important** + +If you want to register a brand-new Fetch.ai native or IBC token that are not listed yet, please find STARFLEIT team on [#STARFLEIT channel on Fetch.ai Discord](https://bit.ly/3ra5uMI) (for metadata) +{{< /alert >}} ## Instantiation by Contract Address @@ -40,10 +44,6 @@ This is a JSON constructor of pair contract. Then, you may execute the contract with the organized JSON above. -## IMPORTANT - -- If you want to register a brand-new Fetch.ai native or IBC token that are not listed yet, please find STARFLEIT team on [#STARFLEIT channel on Fetch.ai Discord](https://bit.ly/3ra5uMI) (for metadata) - ## Provide initial liquidity STARFLEIT pair contract knows the swap rate by the both of the remained assets on the pool. But if you have just created your own pair but no liquidity provided, The contract cannot calculate the rate and all swap & swap simulation raise fail. So, STARFLEIT UI does not list the pair unless the initial liquidity is provided. So, if you want finalize the listing, you should provide the initial liquidity and it should be done on CLI. diff --git a/content/en/docs/howto/frequently-used-messages.md b/content/en/docs/how-to/frequently-used-messages.md similarity index 100% rename from content/en/docs/howto/frequently-used-messages.md rename to content/en/docs/how-to/frequently-used-messages.md diff --git a/content/en/docs/howto/token.md b/content/en/docs/how-to/mint-your-cw20-token.md similarity index 93% rename from content/en/docs/howto/token.md rename to content/en/docs/how-to/mint-your-cw20-token.md index bd85e7a..3304b13 100644 --- a/content/en/docs/howto/token.md +++ b/content/en/docs/how-to/mint-your-cw20-token.md @@ -8,17 +8,16 @@ weight: 20 This token contract is implemented under the CW20 standard and it fully supports STARFLEIT feature. Except for any function of your token itself contains more than an asset, we recommend minting your own token by **instantiating this binary**, rather than developing your own. ---- -> **NOTE** -> -> We strongly encourage you to create by the pre-stored binary.\ -> There are some advantages below: -> -> * These token, pair contract codes are well audited and continuously maintained. Don't have to audit for yours additionally. -> * STARFLEIT only lists Token factory-created pairs. -> * You don't have to migrate your contract whenever there is any major upgrade of Fetch.ai network. STARFLEIT will help you to migrate so that you don't have to take any action. -> ---- +{{< alert context="info" >}} +**Note** + +We strongly encourage you to create by the pre-stored binary.\ +There are some advantages below: + +* These token, pair contract codes are well audited and continuously maintained. Don't have to audit for yours additionally. +* STARFLEIT only lists Token factory-created pairs. +* You don't have to migrate your contract whenever there is any major upgrade of Fetch.ai network. STARFLEIT will help you to migrate so that you don't have to take any action. +{{< /alert >}} ## How to Mint diff --git a/content/en/docs/howto/query.md b/content/en/docs/how-to/query.md similarity index 99% rename from content/en/docs/howto/query.md rename to content/en/docs/how-to/query.md index 695e664..d1d1eb0 100644 --- a/content/en/docs/howto/query.md +++ b/content/en/docs/how-to/query.md @@ -20,13 +20,13 @@ fetchd query wasm contract-state smart fetch1kmag3937lrl6dtsv29mlfsedzngl9egv5c3 - RESTFul API -```URL +```url /cosmwasm/wasm/v1/contract//smart/ ``` ex) -```URL +```url https://rest-dorado.fetch.ai/cosmwasm/wasm/v1/contract/fetch1xjn7ljgkzn8agscr8g6xnnhn3azu3kfkuga8uqufr36sc75f8s0sxyhnyq/smart/eyJwYWlycyI6e319 ``` diff --git a/content/en/docs/howto/swap.md b/content/en/docs/how-to/swap.md similarity index 98% rename from content/en/docs/howto/swap.md rename to content/en/docs/how-to/swap.md index a629911..f37b80a 100644 --- a/content/en/docs/howto/swap.md +++ b/content/en/docs/how-to/swap.md @@ -27,7 +27,7 @@ fetchd tx wasm execute - `handle-msg`: The method and parameters of the execution, which will be explained following lines - `coins`: Transaction execution fee -To learn more about the general rules for `handle-msg`, please refer to this [link]({{< relref "/docs/howto/query" >}}). +To learn more about the general rules for `handle-msg`, please refer to this [link]({{< relref "/docs/how-to/query" >}}). ```json { diff --git a/content/en/docs/introduction/about.md b/content/en/docs/introduction/about.md index 63c72e5..38c4b24 100644 --- a/content/en/docs/introduction/about.md +++ b/content/en/docs/introduction/about.md @@ -24,10 +24,13 @@ A **liquidity provider** adds equal value of two assets to their corresponding S **STARFLEIT Web Application** is the official web front-end interface for swapping Fetch.ai native tokens and CW20 tokens. The web application is located [here](https://app.starfleit.io). A wallet is required to interact with STARFLEIT Web Application. -> For web, -> -> - [Fetch.ai network wallet](https://chrome.google.com/webstore/detail/fetchai-network-wallet/ellkdbaphhldpeajbepobaecooaoafpg?hl=en-GB) -> -> And will be more + +{{< alert >}} +For web, + +- [Fetch.ai network wallet](https://chrome.google.com/webstore/detail/fetchai-network-wallet/ellkdbaphhldpeajbepobaecooaoafpg?hl=en-GB) + +And will be more +{{< /alert >}} Before executing a swap in the web application, your connected wallet must have source tokens and transaction fee. Once you generate a transaction in the proper format, it will prompt you to sign the transaction by entering your password. From d6d45d4953db2ec105903eaea39bb8604204779d Mon Sep 17 00:00:00 2001 From: Yeon Hwang Date: Mon, 30 Jan 2023 12:46:51 +0900 Subject: [PATCH 4/4] WIP: message box color --- content/en/docs/introduction/about.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/content/en/docs/introduction/about.md b/content/en/docs/introduction/about.md index 38c4b24..9602957 100644 --- a/content/en/docs/introduction/about.md +++ b/content/en/docs/introduction/about.md @@ -6,6 +6,30 @@ weight: 10 STARFLEIT is a [Uniswap](https://uniswap.org/)-inspired automated market-maker (AMM) protocol implemented with smart contracts on the Fetch.ai blockchain. This enables a decentralized on-chain exchange for the various assets involved in Fetch.ai ecosystem. *** +{{< alert >}} +**Normal** + +STARFLEIT is ... +{{< /alert >}} + +{{< alert context="info" >}} +**Info** + +STARFLEIT is ... +{{< /alert >}} + +{{< alert context="warning" >}} +**Warning** + +STARFLEIT is ... +{{< /alert >}} + +{{< alert context="danger" >}} +**Danger** + +STARFLEIT is ... +{{< /alert >}} + ## Participants Users can participate in STARFLEIT as traders, liquidity providers, or both.