How to use cabal-client - 3 common examples

To help you get started, we’ve selected a few cabal-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fenwick67 / cabal-clone / lib / ui / index.js View on Github external
switchToCabal(plaintextKey){
			/**  @type {CabalClient} */
			var cabalClient = this.cabalClient

			this.loading = true;
			var key = plaintextKey ? CabalClient.scrubKey(plaintextKey) : null

			if (!key){
				cabalClient.createCabal().then(cabalDetails=>{
					if (this.cabalKeys.indexOf(cabalDetails.key) == -1){
						this.cabalKeys.push(cabalDetails.key)
					}
					cabalClient.focusCabal(cabalDetails.key)
					this.activeCabal = details
					this.loading=false
					details.on('update', this.uiUpdate) // TODO don't duplicate these listeners
				})
			} else {
				var details = null
				var spent = false
				if (this.cabalKeys.indexOf(plaintextKey) == -1){
					this.cabalKeys.push(plaintextKey)
github fenwick67 / cabal-clone / lib / ui / index.js View on Github external
removeCabal(plaintextKey){
			this.cabalClient.removeCabal(CabalClient.scrubKey(plaintextKey))
			this.cabalKeys.splice(this.cabalKeys.indexOf(plaintextKey),1)
		},
		setChannel(channelName){
github fenwick67 / cabal-clone / lib / ui / components / cabal-select.js View on Github external
key:function(){
      return Client.scrubKey(this.plaintextKey)
    }
  }

cabal-client

helper module for cabal clients

GPL-3.0
Latest version published 9 months ago

Package Health Score

59 / 100
Full package analysis

Popular cabal-client functions

Similar packages