diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000..a877aaba05 --- /dev/null +++ b/.env.example @@ -0,0 +1,13 @@ +BASE_URL="" +GOOGLE_ANALYTICS_ID="" +SENTRY_AUTH_TOKEN="" +URL_PREFIX="" +PINATA_MASTER="" +PINATA_SECRET_API_KEY="" +PINATA_API_KEY="" +VUE_APP_I18N_LOCALE="" +VUE_APP_I18N_FALLBACK_LOCALE="" +VUE_APP_PERMAFROST_URL="" +VUE_APP_AR_URL="" +MATRIX="" +SUBSQUID_ENDPOINT="" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3d3219600..7fa2e46685 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,3 +29,6 @@ jobs: - name: Run Build run: pnpm generate + + - run: wc -l ./.nuxt/dist/server/client.manifest.mjs + - run: stat -c "%s" ./.nuxt/dist/server/client.manifest.mjs diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml deleted file mode 100644 index 4577922939..0000000000 --- a/.github/workflows/e2e.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: cypress - -on: - workflow_dispatch: - push: - branches: [main] - pull_request: - branches: [main] - -env: - CYPRESS_CACHE_FOLDER: '${GITHUB_WORKSPACE}/.cypress-cache' - -jobs: - prepare_e2e: - runs-on: ubuntu-latest - container: - image: cypress/included:10.10.0 - options: --user 1001 - steps: - - uses: actions/checkout@v3 - - - name: Install Dependencies - uses: ./.github/actions/pnpm-install - - - name: Install Cypress - run: pnpm cypress install - - - name: Build App - run: pnpm generate - - - name: Build App Results - uses: actions/upload-artifact@v3 - with: - name: generated-dist - path: | - dist - tests - retention-days: 1 - - e2e: - runs-on: ubuntu-latest - needs: prepare_e2e - container: - image: cypress/included:10.10.0 - options: --user 1001 - strategy: - matrix: - index: [1, 2, 3, 4, 5] # [1, ..., n] where n === parallelSize in e2e-run-tests.js - steps: - - uses: actions/checkout@v3 - - - name: Use Generated App - uses: actions/download-artifact@v3 - with: - name: generated-dist - - - name: Install Dependencies - uses: ./.github/actions/pnpm-install - - - name: Install Cypress - run: pnpm cypress install - - - name: Run Cypress - timeout-minutes: 10 - uses: Wandalen/wretry.action@v1.0.41 - with: - command: pnpm start:static & pnpm wait-on http://localhost:9090 && MATRIX=${{ matrix.index }} node tests/cypress/e2e-run-tests.js - attempt_limit: 3 - - - name: Upload Screenshots - uses: actions/upload-artifact@v3 - if: failure() - with: - path: ./cypress/screenshots/ diff --git a/.gitignore b/.gitignore index f5101eadd6..565723b491 100644 --- a/.gitignore +++ b/.gitignore @@ -91,4 +91,4 @@ sitemap.xml ## service-worker.js # cypress -cypress/screenshots/ +# cypress/screenshots/ diff --git a/ACTIVITY.md b/ACTIVITY.md index 68c994c460..264d8568c2 100644 --- a/ACTIVITY.md +++ b/ACTIVITY.md @@ -57,6 +57,15 @@ flowchart TD ![image](https://user-images.githubusercontent.com/5887929/232563299-39e84aa1-19c8-4031-9488-6813f74f65f3.png) +### Axiom - Repobeats + +![Alt](https://repobeats.axiom.co/api/embed/0fb5819705db8bf2be040d140b66f04aaf529a30.svg "Repobeats analytics image") + + +### Crowd.dev - AnalyzeMyRepo + +[Verbose version from AnalyzeMyRepo](https://analyzemyrepo.com/analyze/kodadot/nft-gallery) + ## We're constantly growing! [![Contributors Over Time](https://contributor-overtime-api.git-contributor.com/contributors-svg?chart=contributorOverTime&repo=kodadot/nft-gallery)](https://git-contributor.com?chart=contributorOverTime&repo=kodadot/nft-gallery) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2f34a0568..443f80b0d2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -177,14 +177,7 @@ For content changes, make sure that you: ### Keeping tests relevant🔬 -Since we're using [Cypress](https://www.cypress.io/) as our primary E2E tool for testing, we need to ensure that newly added features are not breaking tests we previously implemented. Tests run automatically as [GitHub action](https://github.com/features/actions) to catch bugs introduced by development. Still, it's essential to check whether the failing test broke something or whether the subject of the test changed. - -One of the main reasons tests will fail (except when bugs get introduced) is that we're using custom HTML tags to [select elements](https://docs.cypress.io/guides/references/best-practices#Selecting-Elements) within the testing suite. If your contribution touches components with these custom tags and you get failed tests, these selectors must be checked and usually adjusted. - -You can identify these kinds of problems by seeing similar-looking test reports: -`Expected to find element: [data-cy="submit"], but never found it.` - -TL;DR: If you're touching components which include HTML tags such as `data-cy="submit"`, and the tests fail, make sure the tests still use the correct selector. +We are currently in the process of installing [Playwright](https://playwright.dev/). Tests will run automatically as [GitHub actions](https://github.com/features/actions) to catch bugs introduced by development. Still, it's essential to do your part by manually testing your PR to see if you can find any errors and request a review from the @kodadot/qa-guild. **Example:** diff --git a/README.md b/README.md index 663983cb18..d06cb6b794 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # Contributing -[![Test & Build app](https://github.com/kodadot/nft-gallery/actions/workflows/build.yml/badge.svg)](https://github.com/kodadot/nft-gallery/actions/workflows/build.yml) [![cypress](https://github.com/kodadot/nft-gallery/actions/workflows/e2e.yml/badge.svg)](https://github.com/kodadot/nft-gallery/actions/workflows/e2e.yml) [![Reviewdog](https://github.com/kodadot/nft-gallery/actions/workflows/reviewdog.yml/badge.svg)](https://github.com/kodadot/nft-gallery/actions/workflows/reviewdog.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/7d14fab327c632d5f0ce/maintainability)](https://codeclimate.com/github/kodadot/nft-gallery/maintainability) +[![Test & Build app](https://github.com/kodadot/nft-gallery/actions/workflows/build.yml/badge.svg)](https://github.com/kodadot/nft-gallery/actions/workflows/build.yml) [![Reviewdog](https://github.com/kodadot/nft-gallery/actions/workflows/reviewdog.yml/badge.svg)](https://github.com/kodadot/nft-gallery/actions/workflows/reviewdog.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/7d14fab327c632d5f0ce/maintainability)](https://codeclimate.com/github/kodadot/nft-gallery/maintainability) ![image](https://user-images.githubusercontent.com/5887929/217076362-464e1293-8a2d-43ee-829f-fba17408e4c3.png) diff --git a/REWARDS.md b/REWARDS.md index 2679a71dd7..968b701ea8 100644 --- a/REWARDS.md +++ b/REWARDS.md @@ -36,9 +36,9 @@ Our typical payout structure for bounties is per label on the issue. Here is the > ⚠️ Make sure you can access your private keys and do not use one from a centralized exchange. We are not responsible for any loss of funds. -| $ | $$ | $$$ | $$$$ | $$$$$ | -| :----------------------------------------------------------: | :---------------------------------------------------: | :---------------------------------------------------------------: | :-------------------------------------------------------------: | :------------------------------------------------------------------------------------: | -| 50-100 | 150-300 | 450-600 | 700 - 1000 | 1000+ | +| $ | $$ | $$$ | $$$$ | $$$$$ | +|:--------------------------------------------------------------:|:-----------------------------------------------------:|:-----------------------------------------------------------------:|:---------------------------------------------------------------:|:--------------------------------------------------------------------------------------:| +| 1-50 | 51-150 | 151-300 | 800-1000 | 1000-1200 | | Beginner, few lines,
a lot of comments/assistance on PR | Required brain use,
smart solution, autonomous | Complex, delivered new shiny stuff,
did not break anything | Dedicated, new feature, rework older stuff, quick delivery time | You seems reliable, responsible, we can trust you, and you have alignment with project | ### Which issue to pick? diff --git a/app/router.scrollBehavior.js b/app/router.scrollBehavior.js index 00532a583f..f1ee527dbf 100644 --- a/app/router.scrollBehavior.js +++ b/app/router.scrollBehavior.js @@ -7,6 +7,7 @@ export default function (to) { 'prefix-explore-items', 'prefix-explore-collectibles', 'prefix-u-id', + 'prefix-transfer', ] if (disableScrollToTop.includes(toPath)) { diff --git a/components/Navbar.vue b/components/Navbar.vue index 39a3ef5e02..d21a430af2 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -35,6 +35,7 @@
@@ -71,6 +72,7 @@