Overview
| Comment: | [njs] Minor change |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | njs | nodejs |
| Files: | files | file ages | folders |
| SHA3-256: |
c5b6c3d6cb1e0a9401018bb588d6ed53 |
| User & Date: | IllusionPerdu on 2018-10-15 21:00:57 |
| Original Comment: | [js] Minor change |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-10-16
| ||
| 10:16 | [njs] Add TF option Chg how to set option check-in: ee5d077740 user: IllusionPerdu tags: njs, nodejs | |
|
2018-10-15
| ||
| 21:00 | [njs] Minor change check-in: c5b6c3d6cb user: IllusionPerdu tags: njs, nodejs | |
| 20:35 | [njs] Fix some spell/typo check-in: 36bf480e0d user: IllusionPerdu tags: njs, nodejs | |
Changes
Modified gc_lang/fr/nodejs/cli/bin/gramma-cli.js from [c22a3b0bfa] to [c328932d14].
| ︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | + + + + + + + |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
https://stackoverflow.com/questions/41058569/what-is-the-difference-between-const-and-const-in-javascript
*/
const argCmd = require("../lib/minimist.js")(process.argv.slice(2));
const { performance } = require("perf_hooks");
//Initialisation des messages
const msgStart = "\x1b[31mBienvenu sur Grammalecte pour NodeJS!!!\x1b[0m\n";
const msgPrompt = "\x1b[36mGrammaJS\x1b[33m>\x1b[0m ";
const msgSuite = "\x1b[33m…\x1b[0m ";
const msgEnd = "\x1b[31m\x1b[5m\x1b[5mBye bye!\x1b[0m";
var repJson = false;
var repPerf = false;
var sBufferConsole = "";
var sCmdToExec = "";
var sText = "";
var cmdAction = {
help: {
short: "",
description: "Affiche les informations que vous lisez ;)",
execute: ""
},
|
| ︙ | |||
278 279 280 281 282 283 284 | 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | - - - + - + - + - + - + |
repText += "\n " + ascii1a + " " + ascii2 + ' "' + suggestion + '"';
}
}
}
}
}
|
| ︙ | |||
386 387 388 389 390 391 392 | 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 | - + - + + |
}
if (repJson) {
return JSON.stringify(repAction);
} else {
return repToText(repAction);
}
|
| ︙ | |||
474 475 476 477 478 479 480 | 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 | - - - + - + + - + - + - - - - + - + |
reponseRequest(oParams, aResponse);
}
}
});
server.listen(argCmd.port || 2212);
console.log("Server started on http://127.0.0.1:" + (argCmd.port || 2212) + "/");
} else if (getArg(argCmd, ["i", "interactive"])) {
|
Modified gc_lang/fr/nodejs/cli/package.json from [5d07f6ca63] to [e0a3054dc0].
| ︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | - + |
"bin": {
"gramma-cli": "bin/gramma-cli.js"
},
"engines": {
"node": ">=9.0.0"
},
"scripts": {
|
| ︙ |
Modified gc_lang/fr/nodejs/core/package.json from [f9b31c7c8a] to [fbedcd1684].
| ︙ | |||
11 12 13 14 15 16 17 | 11 12 13 14 15 16 17 18 19 20 | - + |
"license": "GPL-3.0-or-later",
"homepage": "https://www.dicollecte.org/",
"main": "api.js",
"engines": {
"node": ">=9.0.0"
},
"scripts": {
|