Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)
$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *| PUSHER_HOST=socket.yourdomain.com | |
| PUSHER_APP_ID=unlock | |
| PUSHER_APP_KEY=123 | |
| PUSHER_APP_SECRET=456 | |
| PUSHER_PORT=443 | |
| PUSHER_SCHEME=https |
| Prefix | Description | Notes | |
|---|---|---|---|
| ac_ | Platform Client ID | Identifier for an auth code/client id. | |
| acct_ | Account ID | Identifier for an Account object. | |
| aliacc_ | Alipay Account ID | Identifier for an Alipay account. | |
| ba_ | Bank Account ID | Identifier for a Bank Account object. | |
| btok_ | Bank Token ID | Identifier for a Bank Token object. | |
| card_ | Card ID | Identifier for a Card object. | |
| cbtxn_ | Customer Balance Transaction ID | Identifier for a Customer Balance Transaction object. | |
| ch_ | Charge ID | Identifier for a Charge object. | |
| cn_ | Credit Note ID | Identifier for a Credit Note object. |
| import {createMachine, createSchema} from 'xstate' | |
| import {assign} from '@xstate/immer' | |
| import {ToastProps} from 'components/Toast' | |
| type AddToastEvent = { | |
| type: 'ADD_TOAST' | |
| toast: ToastProps | |
| } |
| const {cancel} = actions | |
| Machine( | |
| { | |
| id: `searchBox`, | |
| initial: `idle`, | |
| context: { | |
| query: ``, | |
| results: [], | |
| }, |
| const {cancel} = actions | |
| Machine( | |
| { | |
| id: `createContract`, | |
| initial: `editing`, | |
| context: { | |
| grades: [], | |
| query: ``, | |
| services: [], |
| const CourierOnboardingVerificationsItemState = { | |
| IN_REVISION: `IN_REVISION`, | |
| PENDING: `PENDING`, | |
| VERIFIED: `VERIFIED`, | |
| } | |
| Machine( | |
| { | |
| id: `emergencyContact`, | |
| initial: `unknown`, |
| const CourierOnboardingVerificationsItemState = { | |
| IN_REVISION: `IN_REVISION`, | |
| PENDING: `PENDING`, | |
| VERIFIED: `VERIFIED`, | |
| } | |
| const CourierState = { | |
| ACTIVE: `ACTIVE`, | |
| BLOCKED: `BLOCKED`, | |
| PENDING: `PENDING`, | |
| REJECTED: `REJECTED`, |
| function buildVibrationPattern(seconds) { | |
| return new Array(seconds / 1500) | |
| .fill(null) | |
| .reduce(prev => [...prev, 0, 1000, 500], []) | |
| } | |
| const DEFAULT_WAIT_TIME = 30000 | |
| const CURRENT_ORDER_STATE = `WAITING_COURIER` | |
| const ORDER_STATE = { | |
| IN_PROGRESS: `IN_PROGRESS`, |
| Machine( | |
| { | |
| id: `order-stop-machine`, | |
| initial: `unknown`, | |
| context: { | |
| pictureUri: null, | |
| signatureUri: null, | |
| stop: null | |
| }, | |
| states: { |