From 12ca60d51fb09ce6bcb6a75fb8fad438d1c8770b Mon Sep 17 00:00:00 2001 From: Nikita Yutanov Date: Wed, 25 Sep 2024 00:54:15 +0300 Subject: [PATCH] remove starter --- frontend/templates/create-vara-app/README.md | 2 +- .../templates/gear-app-starter/.env.example | 4 - .../templates/gear-app-starter/.eslintrc.js | 34 --- frontend/templates/gear-app-starter/README.md | 35 --- .../gear-app-starter/config-overrides.js | 6 - .../templates/gear-app-starter/index.d.ts | 7 - .../templates/gear-app-starter/package.json | 80 ------ .../gear-app-starter/public/favicon.png | Bin 1565 -> 0 bytes .../gear-app-starter/public/index.html | 13 - .../gear-app-starter/public/sprites/icons.svg | 145 ----------- .../templates/gear-app-starter/src/App.scss | 22 -- .../templates/gear-app-starter/src/App.tsx | 25 -- .../gear-app-starter/src/assets/images/bg.svg | 20 -- .../src/assets/images/icons/burger-menu.svg | 3 - .../src/assets/images/icons/cross.svg | 4 - .../src/assets/images/icons/gear.svg | 3 - .../src/assets/images/icons/login.svg | 4 - .../src/assets/images/icons/tvara-coin.svg | 19 -- .../src/assets/images/icons/vara-coin.svg | 11 - .../src/assets/images/index.ts | 6 - .../src/assets/images/logo.svg | 15 -- .../src/assets/images/socials/discord.svg | 3 - .../src/assets/images/socials/github.svg | 3 - .../src/assets/images/socials/medium.svg | 3 - .../src/assets/images/socials/twitter.svg | 3 - .../src/assets/styles/_shared.scss | 6 - .../src/assets/styles/common.scss | 14 -- .../src/assets/styles/index.scss | 3 - .../gear-app-starter/src/components/index.ts | 4 - .../layout/footer/Footer.module.scss | 8 - .../src/components/layout/footer/Footer.tsx | 14 -- .../footer/copyright/Copyright.module.scss | 5 - .../layout/footer/copyright/Copyright.tsx | 9 - .../layout/footer/copyright/index.ts | 3 - .../src/components/layout/footer/index.ts | 3 - .../layout/footer/socials/Socials.module.scss | 7 - .../layout/footer/socials/Socials.tsx | 27 --- .../components/layout/footer/socials/index.ts | 3 - .../layout/header/Header.module.scss | 51 ---- .../src/components/layout/header/Header.tsx | 41 ---- .../account/account-button/AccountButton.tsx | 29 --- .../header/account/account-button/index.ts | 3 - .../account/accounts-modal/AccountsModal.tsx | 30 --- .../header/account/accounts-modal/index.ts | 3 - .../account/accounts/Accounts.module.scss | 5 - .../header/account/accounts/Accounts.tsx | 46 ---- .../layout/header/account/accounts/index.ts | 3 - .../src/components/layout/header/index.ts | 3 - .../components/layout/header/logo/Logo.tsx | 12 - .../components/layout/header/logo/index.ts | 3 - .../layout/header/mobile-menu/index.ts | 3 - .../header/mobile-menu/mobile-menu-dialog.tsx | 95 -------- .../mobile-menu/mobile-menu.module.scss | 170 ------------- .../layout/header/mobile-menu/mobile-menu.tsx | 22 -- .../src/components/layout/index.ts | 4 - .../loaders/api-loader/ApiLoader.module.scss | 25 -- .../loaders/api-loader/ApiLoader.tsx | 7 - .../components/loaders/api-loader/index.ts | 3 - .../src/components/loaders/index.ts | 4 - .../loaders/loader/Loader.module.scss | 33 --- .../src/components/loaders/loader/Loader.tsx | 7 - .../src/components/loaders/loader/index.ts | 3 - .../components/ui/balance/Balance.module.scss | 40 --- .../src/components/ui/balance/Balance.tsx | 59 ----- .../src/components/ui/balance/index.ts | 3 - .../src/components/ui/button/button.tsx | 89 ------- .../components/ui/button/buttons.module.scss | 209 ---------------- .../src/components/ui/button/index.ts | 2 - .../src/components/ui/dialogs.ts | 19 -- .../src/components/ui/modal/Modal.module.scss | 49 ---- .../src/components/ui/modal/Modal.tsx | 65 ----- .../components/ui/modal/dialog.module.scss | 62 ----- .../src/components/ui/modal/dialog.tsx | 120 --------- .../src/components/ui/modal/index.ts | 3 - .../src/components/ui/modal/modal.variants.ts | 39 --- .../src/components/ui/modal/modal2.tsx | 41 ---- .../ui/scroll-area/ScrollArea.module.scss | 51 ---- .../components/ui/scroll-area/ScrollArea.tsx | 41 ---- .../src/components/ui/scroll-area/index.ts | 1 - .../src/components/ui/sprite.tsx | 26 -- .../templates/gear-app-starter/src/consts.ts | 16 -- .../gear-app-starter/src/context/IPFS.tsx | 17 -- .../gear-app-starter/src/context/index.ts | 3 - .../account-available-balance/consts.ts | 6 - .../account-available-balance/hooks.ts | 69 ------ .../account-available-balance/types.ts | 14 -- .../src/features/auth/consts.ts | 10 - .../src/features/auth/hooks.ts | 45 ---- .../src/features/auth/index.ts | 1 - .../src/features/auth/types.ts | 35 --- .../src/features/auth/utils.ts | 3 - .../wallet/assets/images/icons/copy.svg | 8 - .../wallet/assets/images/icons/edit.svg | 3 - .../wallet/assets/images/icons/enkrypt.svg | 10 - .../wallet/assets/images/icons/exit.svg | 5 - .../wallet/assets/images/icons/nova.svg | 16 -- .../wallet/assets/images/icons/polkadot.svg | 12 - .../wallet/assets/images/icons/subwallet.svg | 88 ------- .../wallet/assets/images/icons/talisman.svg | 12 - .../src/features/wallet/assets/index.ts | 8 - .../src/features/wallet/components/index.ts | 3 - .../wallet/components/wallet-icon/index.ts | 3 - .../components/wallet-icon/polkadot-icon.tsx | 25 -- .../wallet/components/wallet-icon/types.ts | 11 - .../wallet/components/wallet-icon/utils.tsx | 171 ------------- .../components/wallet-icon/wallet-icon.tsx | 11 - .../wallet-item/WalletItem.module.scss | 18 -- .../components/wallet-item/WalletItem.tsx | 18 -- .../wallet/components/wallet-item/index.ts | 3 - .../wallet-modal/WalletModal.module.scss | 227 ------------------ .../components/wallet-modal/WalletModal.tsx | 213 ---------------- .../wallet/components/wallet-modal/index.ts | 2 - .../components/wallet/Wallet.module.scss | 27 --- .../wallet/components/wallet/Wallet.tsx | 49 ---- .../wallet/components/wallet/index.ts | 1 - .../src/features/wallet/consts.ts | 28 --- .../src/features/wallet/hooks.ts | 41 ---- .../src/features/wallet/index.ts | 1 - .../src/features/wallet/types.ts | 6 - .../gear-app-starter/src/global.d.ts | 12 - .../gear-app-starter/src/hocs/index.tsx | 31 --- .../gear-app-starter/src/hooks/context.ts | 6 - .../gear-app-starter/src/hooks/index.ts | 4 - .../gear-app-starter/src/hooks/useMetadata.ts | 40 --- .../templates/gear-app-starter/src/index.tsx | 12 - .../gear-app-starter/src/pages/home/Home.tsx | 7 - .../gear-app-starter/src/pages/index.tsx | 15 -- .../gear-app-starter/src/react-app-env.d.ts | 1 - .../src/styles/_breakpoints.scss | 30 --- .../gear-app-starter/src/styles/_index.scss | 3 - .../gear-app-starter/src/styles/_mixins.scss | 76 ------ .../src/styles/_variables.scss | 7 - .../gear-app-starter/src/types/index.ts | 32 --- .../gear-app-starter/src/utils/index.ts | 87 ------- .../templates/gear-app-starter/tsconfig.json | 22 -- 135 files changed, 1 insertion(+), 3723 deletions(-) delete mode 100644 frontend/templates/gear-app-starter/.env.example delete mode 100644 frontend/templates/gear-app-starter/.eslintrc.js delete mode 100644 frontend/templates/gear-app-starter/README.md delete mode 100644 frontend/templates/gear-app-starter/config-overrides.js delete mode 100644 frontend/templates/gear-app-starter/index.d.ts delete mode 100644 frontend/templates/gear-app-starter/package.json delete mode 100644 frontend/templates/gear-app-starter/public/favicon.png delete mode 100644 frontend/templates/gear-app-starter/public/index.html delete mode 100644 frontend/templates/gear-app-starter/public/sprites/icons.svg delete mode 100644 frontend/templates/gear-app-starter/src/App.scss delete mode 100644 frontend/templates/gear-app-starter/src/App.tsx delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/bg.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/icons/burger-menu.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/icons/cross.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/icons/gear.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/icons/login.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/icons/tvara-coin.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/icons/vara-coin.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/logo.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/socials/discord.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/socials/github.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/socials/medium.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/images/socials/twitter.svg delete mode 100644 frontend/templates/gear-app-starter/src/assets/styles/_shared.scss delete mode 100644 frontend/templates/gear-app-starter/src/assets/styles/common.scss delete mode 100644 frontend/templates/gear-app-starter/src/assets/styles/index.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/Footer.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/Footer.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/copyright/Copyright.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/copyright/Copyright.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/copyright/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/socials/Socials.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/socials/Socials.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/footer/socials/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/Header.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/Header.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/account/account-button/AccountButton.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/account/account-button/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/account/accounts-modal/AccountsModal.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/account/accounts-modal/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/account/accounts/Accounts.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/account/accounts/Accounts.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/account/accounts/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/logo/Logo.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/logo/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/mobile-menu/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/mobile-menu/mobile-menu-dialog.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/mobile-menu/mobile-menu.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/header/mobile-menu/mobile-menu.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/layout/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/loaders/api-loader/ApiLoader.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/loaders/api-loader/ApiLoader.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/loaders/api-loader/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/loaders/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/loaders/loader/Loader.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/loaders/loader/Loader.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/loaders/loader/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/balance/Balance.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/balance/Balance.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/balance/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/button/button.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/button/buttons.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/button/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/dialogs.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/modal/Modal.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/modal/Modal.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/modal/dialog.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/modal/dialog.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/modal/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/modal/modal.variants.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/modal/modal2.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/scroll-area/ScrollArea.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/scroll-area/ScrollArea.tsx delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/scroll-area/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/components/ui/sprite.tsx delete mode 100644 frontend/templates/gear-app-starter/src/consts.ts delete mode 100644 frontend/templates/gear-app-starter/src/context/IPFS.tsx delete mode 100644 frontend/templates/gear-app-starter/src/context/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/account-available-balance/consts.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/account-available-balance/hooks.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/account-available-balance/types.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/auth/consts.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/auth/hooks.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/auth/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/auth/types.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/auth/utils.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/copy.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/edit.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/enkrypt.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/exit.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/nova.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/polkadot.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/subwallet.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/images/icons/talisman.svg delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/assets/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-icon/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-icon/polkadot-icon.tsx delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-icon/types.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-icon/utils.tsx delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-icon/wallet-icon.tsx delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-item/WalletItem.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-item/WalletItem.tsx delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-item/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-modal/WalletModal.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-modal/WalletModal.tsx delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet-modal/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet/Wallet.module.scss delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet/Wallet.tsx delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/components/wallet/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/consts.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/hooks.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/features/wallet/types.ts delete mode 100644 frontend/templates/gear-app-starter/src/global.d.ts delete mode 100644 frontend/templates/gear-app-starter/src/hocs/index.tsx delete mode 100644 frontend/templates/gear-app-starter/src/hooks/context.ts delete mode 100644 frontend/templates/gear-app-starter/src/hooks/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/hooks/useMetadata.ts delete mode 100644 frontend/templates/gear-app-starter/src/index.tsx delete mode 100644 frontend/templates/gear-app-starter/src/pages/home/Home.tsx delete mode 100644 frontend/templates/gear-app-starter/src/pages/index.tsx delete mode 100644 frontend/templates/gear-app-starter/src/react-app-env.d.ts delete mode 100644 frontend/templates/gear-app-starter/src/styles/_breakpoints.scss delete mode 100644 frontend/templates/gear-app-starter/src/styles/_index.scss delete mode 100644 frontend/templates/gear-app-starter/src/styles/_mixins.scss delete mode 100644 frontend/templates/gear-app-starter/src/styles/_variables.scss delete mode 100644 frontend/templates/gear-app-starter/src/types/index.ts delete mode 100644 frontend/templates/gear-app-starter/src/utils/index.ts delete mode 100644 frontend/templates/gear-app-starter/tsconfig.json diff --git a/frontend/templates/create-vara-app/README.md b/frontend/templates/create-vara-app/README.md index f3a824b7d..c1470846f 100644 --- a/frontend/templates/create-vara-app/README.md +++ b/frontend/templates/create-vara-app/README.md @@ -17,6 +17,6 @@ A ready-made application template with a well-thought-out infrastructure for qui Create new project based on this template: ```sh -npx degit gear-foundation/dapps/frontend/templates/creage-gear-app dApp +npx degit gear-foundation/dapps/frontend/templates/creage-vara-app dApp cd dApp ``` diff --git a/frontend/templates/gear-app-starter/.env.example b/frontend/templates/gear-app-starter/.env.example deleted file mode 100644 index f4d511999..000000000 --- a/frontend/templates/gear-app-starter/.env.example +++ /dev/null @@ -1,4 +0,0 @@ -REACT_APP_NODE_ADDRESS=wss://node-workshop.gear.rs:443 -REACT_APP_CONTRACT_ADDRESS=0xc661c85f1efc224cd6412d06083b72a18439c3303ed972768925ec0132d55d57 -REACT_APP_IPFS_ADDRESS=http://127.0.0.1:5001 -REACT_APP_IPFS_GATEWAY_ADDRESS=https://ipfs.io/ipfs/ diff --git a/frontend/templates/gear-app-starter/.eslintrc.js b/frontend/templates/gear-app-starter/.eslintrc.js deleted file mode 100644 index 3a9fec517..000000000 --- a/frontend/templates/gear-app-starter/.eslintrc.js +++ /dev/null @@ -1,34 +0,0 @@ -module.exports = { - root: true, - env: { - browser: true, - es2021: true, - }, - extends: [ - 'plugin:react/recommended', - 'airbnb', - 'airbnb/hooks', - 'airbnb-typescript', - - // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md#when-not-to-use-it - // https://github.com/yannickcr/eslint-plugin-react/issues/3052#issuecomment-1017555974 - 'plugin:react/jsx-runtime', - - 'prettier', - ], - parser: '@typescript-eslint/parser', - parserOptions: { - project: './tsconfig.json', - }, - plugins: ['react', '@typescript-eslint'], - rules: { - 'react/require-default-props': 'off', // we don't use prop-types - '@typescript-eslint/no-unused-expressions': 'off', - 'import/prefer-default-export': 'off', // force named exports - 'import/no-default-export': 'error', - 'react/jsx-no-useless-fragment': 'off', - '@typescript-eslint/no-unused-vars': 'warn', // 'error' is not convinient in development - 'react/jsx-props-no-spreading': 'off', - 'consistent-return': 'off', // we want functions to have different return behavior - }, -}; diff --git a/frontend/templates/gear-app-starter/README.md b/frontend/templates/gear-app-starter/README.md deleted file mode 100644 index 8a2da907b..000000000 --- a/frontend/templates/gear-app-starter/README.md +++ /dev/null @@ -1,35 +0,0 @@ -

- - GEAR - -

-

- -

-
- -## Description - -React application of [_wiki link_](#) based on [Rust smart-contract](#). - -## Getting started - -### Install packages: - -```sh -yarn install -``` - -### Declare environment variables: - -Create `.env` file, `.env.example` will let you know what variables are expected. - -In order for all features to work as expected, the node and it's runtime version should be chosen based on the current `@gear-js/api` version. - -In case of issues with the application, try to switch to another network or run your own local node and specify its address in the .env file. When applicable, make sure the smart contract(s) wasm files are uploaded and running in this network accordingly. - -### Run the app: - -```sh -yarn start -``` diff --git a/frontend/templates/gear-app-starter/config-overrides.js b/frontend/templates/gear-app-starter/config-overrides.js deleted file mode 100644 index 602cf1def..000000000 --- a/frontend/templates/gear-app-starter/config-overrides.js +++ /dev/null @@ -1,6 +0,0 @@ -const webpack = require('webpack'); - -module.exports = (config) => { - config.plugins.push(new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] })); - return config; -}; diff --git a/frontend/templates/gear-app-starter/index.d.ts b/frontend/templates/gear-app-starter/index.d.ts deleted file mode 100644 index 6efbd32d2..000000000 --- a/frontend/templates/gear-app-starter/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export {}; - -declare global { - interface Window { - walletExtension: { isNovaWallet: boolean }; - } -} diff --git a/frontend/templates/gear-app-starter/package.json b/frontend/templates/gear-app-starter/package.json deleted file mode 100644 index f2a308531..000000000 --- a/frontend/templates/gear-app-starter/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "name": "gear-app", - "version": "0.1.0", - "private": true, - "dependencies": { - "@gear-js/api": "0.38.1", - "@gear-js/react-hooks": "0.12.1", - "@gear-js/ui": "0.5.21", - "@headlessui/react": "^1.7.17", - "@mantine/form": "^5.10.5", - "@polkadot/api": "11.0.2", - "@polkadot/extension-inject": "0.46.5", - "@polkadot/react-identicon": "3.6.4", - "@polkadot/types": "11.0.2", - "@polkadot/util": "12.3.2", - "@radix-ui/react-dialog": "^1.0.5", - "@radix-ui/react-scroll-area": "^1.0.5", - "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^13.5.0", - "assert": "2.1.0", - "buffer": "^6.0.3", - "class-variance-authority": "0.7.0", - "clsx": "^1.2.1", - "framer-motion": "^10.16.5", - "ipfs-http-client": "^57.0.3", - "jotai": "2.6.0", - "prettier": "^2.8.4", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-router-dom": "^6.8.2", - "react-scripts": "^5.0.1", - "react-transition-group": "^4.4.5", - "sass": "^1.58.3", - "typescript": "4.9.5", - "web-vitals": "^2.1.4" - }, - "scripts": { - "start": "react-app-rewired start", - "build": "react-app-rewired build", - "test": "react-app-rewired test", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - "chrome >= 67", - "edge >= 79", - "firefox >= 68", - "opera >= 54", - "safari >= 14" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, - "devDependencies": { - "@types/jest": "^27.5.2", - "@types/node": "18.16.19", - "@types/react": "18.2.33", - "@types/react-dom": "18.2.14", - "@typescript-eslint/eslint-plugin": "6.7.3", - "@typescript-eslint/parser": "6.7.3", - "eslint": "8.48.0", - "eslint-config-airbnb": "19.0.4", - "eslint-config-airbnb-typescript": "17.0.0", - "eslint-config-prettier": "8.8.0", - "eslint-plugin-import": "2.27.5", - "eslint-plugin-jsx-a11y": "6.7.1", - "eslint-plugin-react": "7.34.1", - "eslint-plugin-react-hooks": "4.6.0", - "react-app-rewired": "^2.2.1" - }, - "main": "index.js", - "license": "MIT" -} diff --git a/frontend/templates/gear-app-starter/public/favicon.png b/frontend/templates/gear-app-starter/public/favicon.png deleted file mode 100644 index d8449f9a938fdeff5bf88e70e1ca811b17d55312..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1565 zcmZ{hdrZ?;6vr=*DwGxk1w^K+0t2SB{q-g7gwj&9RUlAG5k#S_eMw)^*5{apF%^t} zprMkPh=_=6U=33QK?77lK*a)%D56+&@|sfwdC7j5C1WQ05KJTA+S;+0$V1VVXvITDGya^*@$NXX#eU~q77Qc_ZGZtkZ~pSEw`o|u?e zSXijn>oYPkhK7dH)6=J>rnFk^vSrKa>+6+DrKhK7O-)TvQIUg#!-^FvPMkRL@ZrOo zH*fa#_8vceeE06%6%`f9$;p>5UpARc@7}$;cJ12Z$B#dL{8(IEJTfwJ>Cz=CmDSpHb?U{77e=G;?c2BZ_V!g(RgWG$N=r)<2m}g+!eX&xW@g64#m&sj zL`O&S`TV0tkLKj$BqSt|$>hGizNo0E(b3V8l9EG*4pmlGA`pnOvNA6(FDw>IB9S^e zI$T{{@7=qXot>SZpRdtqcs$RP#SWq5dadwcuj0PD?jiIA5oA|7tuXbX?^@D#tvz{p)c-}l+|HkrMF>R@> zuDNk=-+}!O)mt%R&XZG<$88ixZev&|M|-qGPA+S+cXS726#6SoCSoXa&8O1d1*y zr*{>SojP4Fbb?M763|1(67HWXSIcDHl+_epP<8A^@l^M~dbZDb((aUB(L3sAdrTKR<{aMAb1UhkTp{Vq?&1aq=ncxzHl-f8i18yY znhGTm8YdAYxtx(F>)MM~wcIrn4UfG(%H2Wu@qPm3!y4Hw&Ov>e^3l_$qtD`plUzo> zUS-bt&RU;j7X2_tj-}uFU1GJvy{|sUb1o=icD;FS?T`)T*TnIA=MZRkbUwPUt-758 zotP#{6~hS-@B}CTPYQs@JcvjmK{OI^Egnz9<4sA1SN{q{r@khvc@F9f{pVX zv}%cNuOL+nI7)$393ha(MJX5xc0D#QfQljDAyNRI8~_n8(GUeA)9Exc9B%L4y;%7? z4F^nP)v3~_M@C>nuzcQ;C(|p1G#X1S(ksO(9gP+Rqgnu!&eh_+U_SSx(PUz|RHg$E zmEZ(Ye}WnJ1wQ{Uaq^uy**s$YWwjlQcq~97ON$FSlkze>k@L&o+ z6ey5HB|&)N_rf|~7;#$Q6C*z$26!g()cN3HxWr#jisf>EM6M9S-^VFcI)z$_lL+?6 zMQW86_wQhEVu=th6jOzP6lx%eKqQOA5JgDd85l^UtY0q?39zsN3%`$%yCV$l061Zh JtO{mw`rm>^e - - - - - - Gear *app* dApp Example - - - -
- - diff --git a/frontend/templates/gear-app-starter/public/sprites/icons.svg b/frontend/templates/gear-app-starter/public/sprites/icons.svg deleted file mode 100644 index 52935f368..000000000 --- a/frontend/templates/gear-app-starter/public/sprites/icons.svg +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/templates/gear-app-starter/src/App.scss b/frontend/templates/gear-app-starter/src/App.scss deleted file mode 100644 index 595b35a7d..000000000 --- a/frontend/templates/gear-app-starter/src/App.scss +++ /dev/null @@ -1,22 +0,0 @@ -@use 'assets/styles'; -@use '@gear-js/ui/variables' as *; - -#root { - max-width: 1200px; - min-height: 100vh; - margin: 0 auto; - padding: 0 16px; - display: flex; - flex-direction: column; - box-sizing: content-box; -} - -main { - flex: 1; - padding: 30px 0 60px; - position: relative; // for loaders -} - -body { - background: $bgColor url(assets/images/bg.svg); -} diff --git a/frontend/templates/gear-app-starter/src/App.tsx b/frontend/templates/gear-app-starter/src/App.tsx deleted file mode 100644 index c1bbf9442..000000000 --- a/frontend/templates/gear-app-starter/src/App.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { useApi, useAccount } from '@gear-js/react-hooks'; -import { Routing } from 'pages'; -import { Header, Footer, ApiLoader } from 'components'; -import { useWalletSync } from 'features/wallet/hooks'; -import { withProviders } from 'hocs'; -import 'App.scss'; - -function Component() { - const { isApiReady } = useApi(); - const { isAccountReady } = useAccount(); - - useWalletSync(); - - const isAppReady = isApiReady && isAccountReady; - - return ( - <> -
-
{isAppReady ? : }
-