* Derive wallet status from logs * Add send/recv icons * Set status individually for send and recv * Move status logic into own function * Add LNbits, Blink, CLN, LND, phoenixd logo * Fix wallet.status.any not using Status enum * Fix WebLN being weird * Use phoenixd logo with text * Also use wallet logo on config page * Also poll logs for wallet status * Use logger.info for logs not relevant for wallet status * Remove no longer used wallet badges * Crop LND logo like other logos * Fix all wallets show 'configure' * Fix wallet status not respecting enabled * Fix wallet.def.requiresConfig undefined * Fix banner shown for WebLN * Fix attach shown when configured * Filter by context.status to determine wallet status * Fix +- shown without context * Fix missing theme support for wallet logos
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { string } from '@/lib/yup'
 | |
| 
 | |
| export const name = 'phoenixd'
 | |
| export const walletType = 'PHOENIXD'
 | |
| export const walletField = 'walletPhoenixd'
 | |
| 
 | |
| // configure wallet fields
 | |
| export const fields = [
 | |
|   {
 | |
|     name: 'url',
 | |
|     label: 'url',
 | |
|     type: 'text',
 | |
|     validate: string().url().trim()
 | |
|   },
 | |
|   {
 | |
|     name: 'primaryPassword',
 | |
|     label: 'primary password',
 | |
|     type: 'password',
 | |
|     optional: 'for sending',
 | |
|     help: 'You can find the primary password as `http-password` in your phoenixd configuration file as mentioned [here](https://phoenix.acinq.co/server/api#security).',
 | |
|     clientOnly: true,
 | |
|     requiredWithout: 'secondaryPassword',
 | |
|     validate: string().length(64).hex()
 | |
|   },
 | |
|   {
 | |
|     name: 'secondaryPassword',
 | |
|     label: 'secondary password',
 | |
|     type: 'password',
 | |
|     optional: 'for receiving',
 | |
|     help: 'You can find the secondary password as `http-password-limited-access` in your phoenixd configuration file as mentioned [here](https://phoenix.acinq.co/server/api#security).',
 | |
|     serverOnly: true,
 | |
|     requiredWithout: 'primaryPassword',
 | |
|     validate: string().length(64).hex()
 | |
|   }
 | |
| ]
 | |
| 
 | |
| // configure wallet card
 | |
| export const card = {
 | |
|   title: 'phoenixd',
 | |
|   subtitle: 'use [phoenixd](https://phoenix.acinq.co/server) for payments',
 | |
|   image: { src: '/wallets/phoenixd.png' }
 | |
| }
 |