Browse Source

Fixes with Build

production
pb 2 years ago
parent
commit
bacb1a5352
5 changed files with 5083 additions and 2160 deletions
  1. 7
    1
      cliverse.js
  2. 1528
    766
      elxr.js
  3. 3538
    1385
      i.js
  4. 4
    3
      index.js
  5. 6
    5
      package.json

+ 7
- 1
cliverse.js View File

if(!choice) return defaultchoice || choices[0]; if(!choice) return defaultchoice || choices[0];
if(choice && isNaN(+choice)) { if(choice && isNaN(+choice)) {
if(choice === 'd') return defaultchoice || choices[0]; if(choice === 'd') return defaultchoice || choices[0];
return choice;
try {
return JSON.parse(choice);
}
catch(e) {
// console.error(e)
return choice // Treat it as a string if it is not parsable
}
} }
return choices[(+choice) - 1]; return choices[(+choice) - 1];
}) })

+ 1528
- 766
elxr.js
File diff suppressed because it is too large
View File


+ 3538
- 1385
i.js
File diff suppressed because it is too large
View File


+ 4
- 3
index.js View File

, 'upstream-remote' : { label : `Enter Remote Name ( <= ${target['upstream-remote'] || 'chess'} ) : ` , 'upstream-remote' : { label : `Enter Remote Name ( <= ${target['upstream-remote'] || 'chess'} ) : `
, get choices() { , get choices() {
var reposerver = target['reposerver'] var reposerver = target['reposerver']
var remotes = []
target.reposervers.forEach(rs => {
var remotes = []
var trs = target.reposervers || []
trs.forEach(rs => {
if(rs.server === reposerver){ if(rs.server === reposerver){
remotes.push(remote) remotes.push(remote)
// PB : TODO -- Sort and display highest priority target.remotes.sort( ) // PB : TODO -- Sort and display highest priority target.remotes.sort( )
, get choices() { , get choices() {
var reposerver = target['reposerver'] // PB : TODO -- We need options to work with multiple selected reposervers at the same time.. var reposerver = target['reposerver'] // PB : TODO -- We need options to work with multiple selected reposervers at the same time..
var remotenames = [] var remotenames = []
Object.entries(target.remotes).forEach( ([rname, r]) => {
Object.entries(target.remotes || []).forEach( ([rname, r]) => {
if(r.server === reposerver && r.accessibility.find( target[ 'remote-type' ] )){ if(r.server === reposerver && r.accessibility.find( target[ 'remote-type' ] )){
remotes.push(rname) remotes.push(rname)
// PB : TODO -- Sort and display highest priority target.remotes.sort( ) // PB : TODO -- Sort and display highest priority target.remotes.sort( )

+ 6
- 5
package.json View File

"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bbhverse": "git+http://git.bbh/chess/bbhverse", "bbhverse": "git+http://git.bbh/chess/bbhverse",
"global-this": "git+http://git.bbh/chess/global-this",
"moment": "^2.27.0",
"crossfilter2": "^1.5.4",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"crossfilter2": "^1.5.4",
"glob": "^7.1.2", "glob": "^7.1.2",
"uuid": "^8.3.2",
"tree-kill": "^1.2.2"
"global-this": "git+http://git.bbh/chess/global-this",
"moment": "^2.27.0",
"rollup": "^2.77.0",
"tree-kill": "^1.2.2",
"uuid": "^8.3.2"
}, },
"bin": { "bin": {
"elxr": "bin/elxr" "elxr": "bin/elxr"

Loading…
Cancel
Save