Skip to content

Commit 31aad92

Browse files
committed
Initial commit: copy 'gui' from tenk repo
0 parents  commit 31aad92

File tree

122 files changed

+28846
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+28846
-0
lines changed

.env

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Values defined here will be available in your app using `process.env` when you
2+
# run locally with `npm run start`
3+
#
4+
# More info: https://create-react-app.dev/docs/adding-custom-environment-variables/
5+
REACT_APP_NEAR_ENV=testnet
6+
REACT_APP_RPC_URL=https://rpc.testnet.near.org
7+
REACT_APP_WALLET_URL=https://wallet.testnet.near.org
8+
REACT_APP_HELPER_URL=https://helper.testnet.near.org
9+
REACT_APP_EXPLORER_URL=https://explorer.testnet.near.org
10+
REACT_APP_CONTRACT_NAME=guest-book.testnet
11+
REACT_APP_LOCALSTORAGE_PREFIX=guest-book

.env.production

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Values defined here will override those in `.env` when you use `npm run build`
2+
# See https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used
3+
#
4+
# This file is commented-out for now, since even the "production"
5+
# version of your app will probably run on NEAR's testnet at first
6+
7+
# REACT_APP_NEAR_ENV=mainnet
8+
# REACT_APP_RPC_URL=https://rpc.mainnet.near.org
9+
# REACT_APP_WALLET_URL=https://wallet.near.org
10+
# REACT_APP_HELPER_URL=https://helper.near.org
11+
# REACT_APP_EXPLORER_URL=https://explorer.near.org
12+
# REACT_APP_CONTRACT_NAME=guest-book.near
13+
# REACT_APP_LOCALSTORAGE_PREFIX=guest-book

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/near/contracts/tenk/**/*

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package-lock.json linguist-generated=true -diff
2+
gui/package-lock.json linguist-generated=true -diff
3+
contracts/tenk/dist/**/* linguist-generated=true -diff
4+
contracts/tenk/ts/**/* linguist-generated=true -diff
5+
contracts/tenk/index.wit linguist-generated=true -diff

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow builds the docs and deploys them to GitHub Pages on every commit to the master branch
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Deploy
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
runs-on: macos-12
13+
steps:
14+
- name: Checkout 🛎️
15+
uses: actions/checkout@v3
16+
with:
17+
persist-credentials: false
18+
- name: Install and Build
19+
run: |
20+
npm ci
21+
npm run build
22+
- name: Deploy 🚀
23+
uses: JamesIves/[email protected]
24+
with:
25+
branch: gh-pages # The branch the action should deploy to.
26+
folder: build # The folder the action should deploy.

.github/workflows/preview.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# .github/workflows/preview.yml
2+
name: PR Preview
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- closed
11+
12+
concurrency: preview-${{ github.ref }}
13+
14+
jobs:
15+
deploy-preview:
16+
runs-on: macos-12
17+
steps:
18+
- name: Checkout 🛎️
19+
uses: actions/checkout@v3
20+
with:
21+
persist-credentials: false
22+
- name: Install and Build
23+
run: |
24+
npm ci
25+
npm run build
26+
- name: Deploy preview
27+
uses: rossjrw/pr-preview-action@v1
28+
with:
29+
source-dir: ./build

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `npm run start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `npm run test`
18+
19+
Launches the test runner in the interactive watch mode.\
20+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
22+
### `npm run build`
23+
24+
Builds the app for production to the `build` folder.\
25+
It correctly bundles React in production mode and optimizes the build for the best performance.
26+
27+
The build is minified and the filenames include the hashes.\
28+
Your app is ready to be deployed!
29+
30+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31+
32+
### `npm run eject`
33+
34+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35+
36+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37+
38+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39+
40+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41+
42+
## Learn More
43+
44+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).

0 commit comments

Comments
 (0)