Ver código fonte

Fixes with Build

pull/9/head
pb 2 anos atrás
pai
commit
bacb1a5352
5 arquivos alterados com 5083 adições e 2160 exclusões
  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 Ver arquivo

@@ -128,7 +128,13 @@ var prompt = function(choices, label, defaultchoice, selectedchoice){
if(!choice) return defaultchoice || choices[0];
if(choice && isNaN(+choice)) {
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];
})

+ 1528
- 766
elxr.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 3538
- 1385
i.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 4
- 3
index.js Ver arquivo

@@ -3698,8 +3698,9 @@ var __interactive_prompts = function( target, choices, promptsfilter ){
, 'upstream-remote' : { label : `Enter Remote Name ( <= ${target['upstream-remote'] || 'chess'} ) : `
, get choices() {
var reposerver = target['reposerver']
var remotes = []
target.reposervers.forEach(rs => {
var remotes = []
var trs = target.reposervers || []
trs.forEach(rs => {
if(rs.server === reposerver){
remotes.push(remote)
// PB : TODO -- Sort and display highest priority target.remotes.sort( )
@@ -3723,7 +3724,7 @@ var __interactive_prompts = function( target, choices, promptsfilter ){
, get choices() {
var reposerver = target['reposerver'] // PB : TODO -- We need options to work with multiple selected reposervers at the same time..
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' ] )){
remotes.push(rname)
// PB : TODO -- Sort and display highest priority target.remotes.sort( )

+ 6
- 5
package.json Ver arquivo

@@ -15,13 +15,14 @@
"license": "ISC",
"dependencies": {
"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",
"crossfilter2": "^1.5.4",
"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": {
"elxr": "bin/elxr"

Carregando…
Cancelar
Salvar