11 | {value} 12 |
13 | ); 14 | }; 15 | 16 | TextBox.propTypes = { 17 | className: PropTypes.string.isRequired, 18 | value: PropTypes.string.isRequired, 19 | }; 20 | 21 | export default React.memo(TextBox); 22 | -------------------------------------------------------------------------------- /cli/rest/provider/routes.go: -------------------------------------------------------------------------------- 1 | package provider 2 | 3 | import ( 4 | "net/http" 5 | 6 | "github.com/gorilla/mux" 7 | 8 | "github.com/sentinel-official/desktop-client/cli/context" 9 | ) 10 | 11 | func RegisterRoutes(r *mux.Router, ctx *context.Context) { 12 | r.Name("GetProvider"). 13 | Methods(http.MethodGet).Path("/providers/{address}"). 14 | HandlerFunc(HandlerGetProvider(ctx)) 15 | r.Name("GetProviders"). 16 | Methods(http.MethodGet).Path("/providers"). 17 | HandlerFunc(HandlerGetProviders(ctx)) 18 | } 19 | -------------------------------------------------------------------------------- /cli/rest/plan/routes.go: -------------------------------------------------------------------------------- 1 | package plan 2 | 3 | import ( 4 | "net/http" 5 | 6 | "github.com/gorilla/mux" 7 | 8 | "github.com/sentinel-official/desktop-client/cli/context" 9 | ) 10 | 11 | func RegisterRoutes(r *mux.Router, ctx *context.Context) { 12 | r.Name("GetPlan"). 13 | Methods(http.MethodGet).Path("/plans/{id}"). 14 | HandlerFunc(HandlerGetPlan(ctx)) 15 | r.Name("GetPlansForProvider"). 16 | Methods(http.MethodGet).Path("/providers/{address}/plans"). 17 | HandlerFunc(HandlerGetPlansForProvider(ctx)) 18 | } 19 | -------------------------------------------------------------------------------- /cli/rest/service/routes.go: -------------------------------------------------------------------------------- 1 | package service 2 | 3 | import ( 4 | "net/http" 5 | 6 | "github.com/gorilla/mux" 7 | 8 | "github.com/sentinel-official/desktop-client/cli/context" 9 | ) 10 | 11 | func RegisterRoutes(r *mux.Router, ctx *context.Context) { 12 | r.Name("ServiceDisconnect"). 13 | Methods(http.MethodPost).Path("/service/disconnect"). 14 | HandlerFunc(HandlerDisconnect(ctx)) 15 | r.Name("ServiceStatus"). 16 | Methods(http.MethodGet).Path("/service/status"). 17 | HandlerFunc(HandlerStatus(ctx)) 18 | } 19 | -------------------------------------------------------------------------------- /src/constants/common.js: -------------------------------------------------------------------------------- 1 | import globals from './globals'; 2 | 3 | export const managerBaseURL = () => { 4 | return `${globals.listenURL}/api/v1`; 5 | }; 6 | 7 | export const emptyFunc = () => ({}); 8 | 9 | export const COIN_DENOM = 'UDVPN'.toLowerCase(); 10 | export const COIN_DISPLAY_DENOM = 'DVPN'.toUpperCase(); 11 | export const COIN_DECIMALS = 6; 12 | 13 | export const numberInputInvalidKeys = ['-', '+', 'e']; 14 | export const numberInputInvalidKeyCodes = [69, 187, 189]; 15 | 16 | export const HTTPSURLRegex = /https?/; 17 | -------------------------------------------------------------------------------- /src/assets/Success.svg: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: push 3 | jobs: 4 | build: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v2 8 | 9 | - name: Cache dependencies 10 | uses: actions/cache@v2 11 | with: 12 | path: '**/node_modules' 13 | key: ${{ runner.os }}-dependencies-${{ hashFiles('**/yarn.lock') }} 14 | 15 | - name: Install dependencies 16 | run: yarn install 17 | 18 | - name: Run ESLint 19 | run: ./node_modules/eslint/bin/eslint.js . 20 | -------------------------------------------------------------------------------- /src/containers/Wallet/Proposals/Row/ButtonYes.js: -------------------------------------------------------------------------------- 1 | import Button from '../../../../components/Button'; 2 | import React from 'react'; 3 | 4 | const ButtonYes = () => { 5 | const onClick = () => { 6 | 7 | }; 8 | 9 | return ( 10 | 18 | ); 19 | }; 20 | 21 | export default ButtonYes; 22 | -------------------------------------------------------------------------------- /src/containers/Wallet/Receive/Address.js: -------------------------------------------------------------------------------- 1 | import * as PropTypes from 'prop-types'; 2 | import React from 'react'; 3 | import TextBox from '../../../components/TextBox'; 4 | 5 | const Address = ({ 6 | value, 7 | }) => { 8 | return ( 9 |