diff --git a/.ci/build.sh b/.ci/build.sh deleted file mode 100755 index be0f6b689..000000000 --- a/.ci/build.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -. $(dirname "$0")/env.sh - -yarn install --prefer-offline --pure-lockfile --cache-folder .yarn --modules-folder node_modules - -echo "[BUILD] Clean built files ($BUILD_DIR)" -rm -rf $BUILD_DIR -echo "[BUILD] Cleaned" - -echo "[BUILD] Building" -yarn build -echo "[BUILD] Built" - -echo "[BUILD] Copy runtime files" -mv out $BUILD_DIR -echo "[BUILD] Copied" diff --git a/.ci/ci-release.sh b/.ci/ci-release.sh deleted file mode 100755 index d40212280..000000000 --- a/.ci/ci-release.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -. $(dirname "$0")/env.sh - -echo "[CI-RELEASE] Preparing files.." -rm -rf $BUILD_DIR/.gitlab-ci.yml -mv public public-org -mv $BUILD_DIR public -echo "[CI-RELEASE] Done" diff --git a/.ci/env.sh b/.ci/env.sh deleted file mode 100755 index 2c7524d1e..000000000 --- a/.ci/env.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - - -echo "[ENV] Set build dir" -export BUILD_DIR=.build - -echo "[ENV] Set release dir" -export RELEASE_DIR=.release - -echo "[ENV] Set git data" -export GIT_BRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD) -export GIT_BUILD_BRANCH=$GIT_BRANCH-build -export GIT_COMMIT=$(git rev-parse --short HEAD) diff --git a/.ci/release.sh b/.ci/release.sh deleted file mode 100755 index d4c51c115..000000000 --- a/.ci/release.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -. $(dirname "$0")/env.sh - -echo "[RELEASE] Clean released files ($RELEASE_DIR)" -rm -rf $RELEASE_DIR -echo "[RELEASE] Cleaned" - -echo "[RELEASE] Pushing current working tree.." -(git add -A ; git commit -m "Manual build" ; git push origin $GIT_BRANCH) || (echo "Working tree clean") -echo "[RELEASE] Pushed ($GIT_BRANCH/$GIT_COMMIT).." - -. $(dirname "$0")/build.sh - -echo "[RELEASE] Syncing build files from $GIT_BUILD_BRANCH.." -rm -rf $RELEASE_DIR -mkdir $RELEASE_DIR -mv .git $RELEASE_DIR/.git -cd $RELEASE_DIR ; git branch -D $GIT_BUILD_BRANCH ; (git checkout $GIT_BUILD_BRANCH) || (git checkout -b $GIT_BUILD_BRANCH) ; git stash && git stash drop; (git pull --depth 1 origin $GIT_BUILD_BRANCH --rebase --allow-unrelated-histories) || (echo "Build files synced") ; cd .. -echo "[RELEASE] Synced" - -echo "[RELEASE] Pushing build files.." -mv $RELEASE_DIR/.git . ; rm -rf $RELEASE_DIR ; cp -r $BUILD_DIR $RELEASE_DIR ; mv .git $RELEASE_DIR/.git -cd $RELEASE_DIR ; touch .nojekyll ; git add -A ; git commit -m "Manual build $GIT_COMMIT" ; git push origin $GIT_BUILD_BRANCH ; git checkout $GIT_BRANCH ; git branch -D $GIT_BUILD_BRANCH ; cd .. -echo "[RELEASE] Pushed" - -echo "[RELEASE] Switch back to $GIT_BRANCH.." -mv $RELEASE_DIR/.git . -echo "[RELEASE] Switched" diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 4e60f6fa3..000000000 --- a/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -root = true - -[*] -end_of_line = lf -insert_final_newline = false - - -indent_style = tab -indent_size = 2 - -[*.{js,php,html,css,py,twig,less,scss,jsx,ts,tsx}] -charset = utf-8 - diff --git a/.github/workflows/deploy-to-pages.yml b/.github/workflows/deploy-to-pages.yml deleted file mode 100644 index dbd7686f0..000000000 --- a/.github/workflows/deploy-to-pages.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Deploy to Pages - -env: - ASSET_PREFIX: "/" - -on: - push: - branches: [main] - paths-ignore: - - ".gitlab-ci.yml" - - ".gitlab-ci-disabled.yml" - - "README.md" - - "COPYING" - - "docs/**" - - ".vscode/**" - - "scripts/**" - -jobs: - build-push: - name: "Build & Push" - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [lts/*] - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - - name: Install yarn - run: npm install -g yarn - - - name: Cache deps - uses: actions/cache@v3 - with: - path: | - ./node_modules - ./.yarn - ./.next/cache - key: ${{ runner.os }}-modules-${{ hashFiles('./yarn.lock') }} - - - name: Build & Push - run: | - git config --global user.name $GITHUB_ACTOR - git config --global user.email $GITHUB_ACTOR@users.noreply.github.com - export NEXT_TELEMETRY_DISABLED=1 - - ./.ci/release.sh - pwd - ls -la - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: build - path: smartcontract-ui/.build/ diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9ef699f30..000000000 --- a/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# See https://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -/node_modules -/.yarn - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Next.js -/.next -/out - -# CI -.build -.release diff --git a/.gitlab-ci-disabled.yml b/.gitlab-ci-disabled.yml deleted file mode 100644 index fc08d9315..000000000 --- a/.gitlab-ci-disabled.yml +++ /dev/null @@ -1,37 +0,0 @@ -stages: - - build - - pages - -build: - stage: build - image: node:lts - cache: - key: ${CI_COMMIT_REF_SLUG} - paths: - - ./node_modules - - ./.yarn - - ./.next/cache - artifacts: - paths: - - .build/ - expire_in: 1 day - script: - - export NEXT_TELEMETRY_DISABLED=1 - - ./.ci/build.sh - -pages: - stage: pages - image: - name: alpine:latest - entrypoint: [""] - cache: {} - artifacts: - paths: - - public - - script: - - ./.ci/ci-release.sh - - ls -la public - - only: - - main diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index f13901be0..000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "config/chainlist"] - path = config/chainlist - url = https://github.com/ethereum-lists/chains.git diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 9de225682..000000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -lts/iron diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index a172d20f1..000000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "recommendations": [ - "esbenp.prettier-vscode", - "streetsidesoftware.code-spell-checker" - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index d9990783d..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true, - "editor.tabSize": 2, - "json.format.enable": true, - "beautify.ignore": ["/config/chainlist/**"] -} diff --git a/404.html b/404.html new file mode 100644 index 000000000..5b82cd29c --- /dev/null +++ b/404.html @@ -0,0 +1,10 @@ +
-
- - Open source EVM Smart Contract Tool - -
- -- Try now: - - xtools-at.github.io/smartcontract-ui - -
-- -![SmartContract UI](./docs/img.png) - -
-