diff --git a/.github/actions/use-dependencies/action.yml b/.github/actions/use-dependencies/action.yml new file mode 100644 index 0000000..318ce7b --- /dev/null +++ b/.github/actions/use-dependencies/action.yml @@ -0,0 +1,22 @@ +name: "Use Dependencies" + +description: "Checks if the dependencies have been cached with the hash of the yarn.lock file." + +runs: + using: "composite" + steps: + - name: "๐ง Setup" + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + cache: 'yarn' + - name: "๐พ Cache dependencies" + uses: actions/cache@v3 + id: cache-dependencies + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} + - name: "๐ฆ Install" + if: steps.cache-dependencies.outputs.cache-hit != 'true' + run: yarn install --ignore-scripts + shell: bash diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a10f6db..3274d2f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,29 +1,34 @@ -name: Deploy +name: "Deploy" on: release: types: [released] # triggered on main branch releases jobs: + install: + name: "Install" + runs-on: ubuntu-latest + steps: + - name: "๐ Checkout" + uses: actions/checkout@v3 + - name: "๐ง Setup" + uses: ./.github/actions/use-dependencies + deploy: name: "Deploy" + needs: install runs-on: ubuntu-latest steps: - name: "๐ Checkout" uses: actions/checkout@v3 - name: "๐ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: yarn - - name: "๐ฆ Install" - run: yarn install --frozen-lockfile + uses: ./.github/actions/use-dependencies - name: "๐๏ธ Build" run: yarn build - name: "๐ Deploy" uses: peaceiris/actions-gh-pages@v3 with: - force_orphan: true + force_orphan: true # create empty branch if missing personal_token: ${{ secrets.WRITE_REPOS_TOKEN }} publish_branch: gh-pages publish_dir: ./build diff --git a/.github/workflows/lint_build_test.yml b/.github/workflows/lint_build_test.yml deleted file mode 100644 index c32d062..0000000 --- a/.github/workflows/lint_build_test.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Pull Request Checks - -on: - pull_request: - -jobs: - lint_build_test: - name: "Lint, Build & Test" - runs-on: ubuntu-latest - steps: - - name: "๐ Checkout" - uses: actions/checkout@v3 - - name: "๐ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - - name: "๐ฆ Install" - run: yarn install --ignore-scripts - - name: "๐ Lint" - run: yarn lint - - name: "๐๏ธ Build" - run: yarn build - - name: "๐งช Test" - run: yarn test diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml new file mode 100644 index 0000000..af8c720 --- /dev/null +++ b/.github/workflows/pull_request_checks.yml @@ -0,0 +1,58 @@ +name: "Pull Request Checks" + +on: + pull_request: + +jobs: + ## + # install + ## + + install: + name: "Install" + runs-on: ubuntu-latest + steps: + - name: "๐ Checkout" + uses: actions/checkout@v3 + - name: "๐ง Setup" + uses: ./.github/actions/use-dependencies + + ## + # lint, build documentation, build package and test + ## + + lint: + name: "Lint" + needs: install + runs-on: ubuntu-latest + steps: + - name: "๐ Checkout" + uses: actions/checkout@v3 + - name: "๐ง Setup" + uses: ./.github/actions/use-dependencies + - name: "๐ Lint" + run: yarn lint + + build: + name: "Build" + needs: install + runs-on: ubuntu-latest + steps: + - name: "๐ Checkout" + uses: actions/checkout@v3 + - name: "๐ง Setup" + uses: ./.github/actions/use-dependencies + - name: "๐๏ธ Build" + run: yarn build + + test: + name: "Test" + needs: install + runs-on: ubuntu-latest + steps: + - name: "๐ Checkout" + uses: actions/checkout@v3 + - name: "๐ง Setup" + uses: ./.github/actions/use-dependencies + - name: "๐งช Test" + run: yarn test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72a7192..6d4cb9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release +name: "Release" on: push: diff --git a/blog/authors.yml b/blog/authors.yml index c6b1ffc..023cea0 100644 --- a/blog/authors.yml +++ b/blog/authors.yml @@ -1,5 +1,5 @@ kieran: name: Kieran O'Neill - title: Current Custodian of Agora Labs + title: Builder at Agora Labs url: https://github.com/kieranroneill image_url: https://github.com/kieranroneill.png diff --git a/docusaurus.config.js b/docusaurus.config.js index 067258b..f5c67e9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -14,7 +14,14 @@ const STATIC_DIR = path.resolve(__dirname, 'static'); const STYLES_DIR = path.resolve(SOURCE_DIR, 'styles'); // links +const AGORA_LABS_LINK = 'https://agoralabs.sh'; const GITHUB_LINK = 'https://github.com/agoralabs-sh/kibisis-web-extension'; +const KIBISIS_LINK = 'https://kibis.is'; +const REPORT_A_BUG_LINK = + 'https://github.com/agoralabs-sh/kibisis-web-extension/issues/new?assignees=kieranroneill&labels=%F0%9F%90%9B+bug&projects=&template=bug_report_template.yml&title=%5BBug%5D%3A+'; +const SUGGEST_A_FEATURE_LINK = + 'https://github.com/agoralabs-sh/kibisis-web-extension/issues/new?assignees=&labels=%E2%9C%A8+feature&projects=&template=feature_request_template.yml&title=%5BFeature%5D%3A+'; +const X_LINK = 'https://x.com/kibisis_wallet'; // application const TITLE = 'Kibisis'; @@ -46,9 +53,13 @@ const config = { }, theme: { customCss: [ + require.resolve(path.resolve(STYLES_DIR, 'button.scss')), + require.resolve(path.resolve(STYLES_DIR, 'footer.scss')), require.resolve(path.resolve(STYLES_DIR, 'global.scss')), + require.resolve(path.resolve(STYLES_DIR, 'functions.scss')), require.resolve(path.resolve(STYLES_DIR, 'mixins.scss')), require.resolve(path.resolve(STYLES_DIR, 'navbar.scss')), + require.resolve(path.resolve(STYLES_DIR, 'variables.scss')), // vendor require.resolve( path.resolve( @@ -81,7 +92,7 @@ const config = { { name: 'keywords', content: - 'algorand, algosdk, blockchain, browser, chrome, cryptocurrency, firefox, opera, wallet', + 'algorand, algosdk, blockchain, browser, chrome, cryptocurrency, edge, firefox, opera, voi, wallet', }, ], navbar: { @@ -110,59 +121,75 @@ const config = { label: 'Overview', position: 'right', }, - { - label: 'Blog', - position: 'right', - to: '/blog', - }, - { - label: 'Docs', - position: 'right', - sidebarId: 'docsSidebar', - type: 'docSidebar', - }, + // { + // label: 'Blog', + // position: 'right', + // to: '/blog', + // }, + // { + // label: 'Docs', + // position: 'right', + // sidebarId: 'docsSidebar', + // type: 'docSidebar', + // }, ], title: TITLE, }, footer: { - style: 'dark', + copyright: ` +
+ `, + logo: { + alt: 'Agora Labs logo', + height: '50px', + href: AGORA_LABS_LINK, + src: '/images/developed_by_agora_labs_banner.svg', + target: '_blank', + }, links: [ { - title: 'Kibisis', + title: TITLE, items: [ { label: 'Concepts', - to: '#concepts', + to: '/#concepts', }, { label: 'Features', - to: '#features', + to: '/#features', }, { label: 'Download', - to: '#download', - }, - ], - }, - { - title: 'Learn More', - items: [ - { - label: 'Docs', - to: '/docs/intro', - }, - { - label: 'Blog', - to: '/blog', + to: '/#download', }, ], }, + // { + // title: 'Learn More', + // items: [ + // { + // label: 'Docs', + // to: '/docs/intro', + // }, + // { + // label: 'Blog', + // to: '/blog', + // }, + // ], + // }, { title: 'Social', items: [ { - label: 'Twitter', - href: 'https://twitter.com/kibisis_wallet', + label: 'X, formerly Twitter', + href: X_LINK, }, ], }, @@ -173,6 +200,14 @@ const config = { label: 'GitHub', href: GITHUB_LINK, }, + { + label: 'Report a bug', + href: REPORT_A_BUG_LINK, + }, + { + label: 'Suggest a feature', + href: SUGGEST_A_FEATURE_LINK, + }, ], }, { @@ -185,7 +220,7 @@ const config = { ], }, ], - copyright: `Developed with โค๏ธ by Agora Labs. Licensed under GPL-2.0.`, + style: 'dark', }, prism: { theme: lightCodeTheme, @@ -194,7 +229,7 @@ const config = { }), title: TITLE, trailingSlash: false, - url: 'https://kibis.is', + url: KIBISIS_LINK, }; module.exports = config; diff --git a/src/components/Carousel/Carousel.tsx b/src/components/Carousel/Carousel.tsx index c8b3eab..f05fbe7 100644 --- a/src/components/Carousel/Carousel.tsx +++ b/src/components/Carousel/Carousel.tsx @@ -84,6 +84,7 @@ const Carousel: FC- A wallet that is not just for DeFi, but also focuses on utility. -
++ A wallet that is not just for DeFi, but also focuses on utility. +
++ Image by{` `} + + Freepik + +