Skip to content

Commit

Permalink
Merge pull request #22 from Rocket-Rescue-Node/daniel-refactor-solo
Browse files Browse the repository at this point in the history
feat: refactor as app, introduce solo op flow
  • Loading branch information
dmccartney authored Dec 5, 2023
2 parents bb6c674 + d0e3aeb commit 36c3e6f
Show file tree
Hide file tree
Showing 63 changed files with 7,137 additions and 1,303 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# See https://cloud.walletconnect.com/app
VITE_WC_PROJECT_ID=

# The base URL of the Rescue API
VITE_RESCUE_API_BASE_URL=https://.../rescue/v1
14 changes: 14 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
pull_request:
jobs:
check_build:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run pretty:check
- run: npm run build
env:
VITE_WC_PROJECT_ID: "112233445566778899aabbccddeeff00"
VITE_RESCUE_API_BASE_URL: "https://example.com/rescue/v1"
50 changes: 42 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,43 @@
*~
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies

/node_modules
/.pnp
.pnp.js

# testing

/coverage

# vite

dist
dist-ssr

# production

/build

# misc

.DS_Store
*.DS_Store
**/.DS_Store
\*.pem
*.local

# debug

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files

.env
.env\*.local

# typescript

\*.tsbuildinfo
next-env.d.ts
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
strict-peer-dependencies = false
legacy-peer-deps = true
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore artifacts:
build
coverage
public/docs
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
97 changes: 0 additions & 97 deletions 404.html

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Ξther αlpha
Copyright (c) 2023

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# rescue-ui

[![Website shields.io](https://img.shields.io/website-up-down-green-red/https/rescuenode.com.svg)](https://rescuenode.com/)
[![Website shields.io](https://img.shields.io/website-up-down-green-red/https/rescuenode.com.svg)](https://rescuenode.com/)

This repository contains the source code for [Rocket Rescue Node](https://rescuenode.com), a community-run, trust-minimized, and secured fallback node for emergencies and maintenance.
This repository contains the source code for [Rocket Rescue Node](https://rescuenode.com),
a community-run, trust-minimized, and secured fallback node for emergencies and maintenance.

This web app uses [wagmi](https://wagmi.sh) + [Web3Modal](https://web3modal.com/) + [Vite](https://vitejs.dev/).

## Local Development
# Local Dev

Due to CORS policy, there's 2 options for local development:
Run `npm run dev` in your terminal, and then open [localhost:5173](http://localhost:5173) in your browser.

1. In `js/main.js` change the variable `dev` to `true`. This will bypass communicating with the server and is a good solution for changes that don't require communication with the rescue node.
1. Run your own Rescue Node locally. This requires you to run execution and consensus clients, the [rescue-proxy](https://github.com/Rocket-Rescue-Node/rescue-proxy), and the [rescue-api](https://github.com/Rocket-Rescue-Node/rescue-api).
Run `npm run pretty` to normalize style before committing.

# Publishing

Run `npm run build` in your terminal. This will create a `dist/` directory with the compiled files.
9 changes: 0 additions & 9 deletions _headers

This file was deleted.

Loading

0 comments on commit 36c3e6f

Please sign in to comment.