-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ls/feat/add-helm-charts' of github.com:FuelLabs/fuel-ex…
…plorer into ls/feat/add-helm-charts
- Loading branch information
Showing
41 changed files
with
3,998 additions
and
3,694 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.next | ||
.vercel | ||
.turbo | ||
dist |
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,9 +1,21 @@ | ||
**/node_modules/ | ||
**/coverage/ | ||
*.js | ||
.changeset | ||
.eslintrc.js | ||
.lintstagedrc.js | ||
node_modules | ||
**/node_modules/** | ||
**/coverage/ | ||
dist | ||
**/dist/** | ||
build | ||
**/build/** | ||
CHANGELOG.md | ||
*.typegen.ts | ||
*.html | ||
.next | ||
.next/* | ||
generated | ||
**/generated/** | ||
storybook | ||
**/storybook/** | ||
.turbo | ||
pnpm-lock.yaml | ||
|
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
const { resolve } = require('path'); | ||
const { dependencies } = require('./packages/app/package.json'); | ||
|
||
const project = [ | ||
resolve(__dirname, 'tsconfig.json'), | ||
resolve(__dirname, 'packages/**/tsconfig.json'), | ||
]; | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'plugin:@fuels/typescript', | ||
'plugin:@fuels/jest', | ||
'plugin:@fuels/react', | ||
], | ||
parserOptions: { | ||
project, | ||
}, | ||
settings: { | ||
react: { | ||
version: dependencies.react, | ||
}, | ||
'import/resolver': { | ||
// TODO: add this extensions in the npm-packs | ||
[require.resolve('eslint-import-resolver-node')]: { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs'], | ||
}, | ||
[require.resolve('eslint-import-resolver-typescript')]: { | ||
alwaysTryTypes: true, | ||
project, | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
// TODO: this was added just for this pr, its already removed | ||
// inside the updated branchs | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
// TODO: add this rules in the npm-packs | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'error', | ||
{ prefer: 'type-imports', fixStyle: 'separate-type-imports' }, | ||
], | ||
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'], | ||
'no-html-link-for-pages': 'off', | ||
'react-hooks/rules-of-hooks': 'off', | ||
'react/jsx-sort-props': [ | ||
'warn', | ||
{ | ||
callbacksLast: true, | ||
shorthandFirst: true, | ||
noSortAlphabetically: true, | ||
reservedFirst: true, | ||
multiline: 'last', | ||
reservedFirst: true, | ||
}, | ||
], | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Deploy preview | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
types: [labeled, unlabeled, synchronize, closed, reopened] | ||
|
||
jobs: | ||
deploy: | ||
permissions: | ||
contents: read | ||
deployments: write | ||
pull-requests: write | ||
statuses: write | ||
name: deploy | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Add pullpreview label | ||
if: ${{ github.event.action == 'opened' || github.event.action == 'synchronize' }} | ||
uses: KeisukeYamashita/attach-labels@v1 | ||
with: | ||
labels: pullpreview | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: pullpreview/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
compose_files: .preview/docker-compose.yml | ||
env: | ||
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" | ||
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" | ||
AWS_REGION: "us-east-1" |
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,13 +1,22 @@ | ||
**/*.template | ||
.changeset | ||
.coverage_* | ||
.github | ||
CHANGELOG.md | ||
coverage | ||
**/node_modules/ | ||
**/coverage/ | ||
dist | ||
node_modules | ||
pnpm-lock.yaml | ||
**/dist/** | ||
build | ||
**/build/** | ||
CHANGELOG.md | ||
*.typegen.ts | ||
*.html | ||
.next/* | ||
generated | ||
**/generated/** | ||
storybook | ||
**/storybook/** | ||
storybook-static | ||
**/storybook-static/** | ||
.turbo | ||
pnpm-lock.yaml | ||
.next | ||
graphql.schema.json | ||
deployment |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM node:20-slim AS base | ||
|
||
# Receive envs on build time | ||
ARG IS_PREVIEW | ||
ARG GRAPHQL_API | ||
ARG FUEL_PROVIDER_URL | ||
|
||
# Expose the args to the env of the container | ||
ENV IS_PREVIEW="${IS_PREVIEW}" | ||
ENV GRAPHQL_API="${GRAPHQL_API}" | ||
ENV FUEL_PROVIDER_URL="${FUEL_PROVIDER_URL}" | ||
|
||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
|
||
RUN corepack enable | ||
|
||
COPY . /preview | ||
|
||
WORKDIR /preview | ||
|
||
RUN pnpm install --frozen-lockfile | ||
RUN pnpm build:preview | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["pnpm", "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3.9' | ||
|
||
services: | ||
fuel-explorer: | ||
platform: linux/amd64 | ||
container_name: fuel-explorer | ||
build: | ||
context: ../ | ||
dockerfile: ./.preview/Dockerfile | ||
args: | ||
IS_PREVIEW: true | ||
GRAPHQL_API: http://localhost:4444/graphql | ||
FUEL_PROVIDER_URL: http://beta-4.fuel.network/graphql | ||
ports: | ||
- '80:3000' | ||
- '4000:4444' |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const config = require('../../.eslintrc.js'); | ||
|
||
module.exports = { | ||
extends: [ | ||
'plugin:@fuels/typescript', | ||
'plugin:@fuels/jest', | ||
'plugin:@fuels/react', | ||
'plugin:@fuels/next', | ||
], | ||
rules: config.rules, | ||
}; |
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.