This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { request } from 'urllib'; | |
import * as https from 'https'; | |
import * as http from 'http'; | |
const httpsAgent = new https.Agent({ keepAlive: true }); | |
const agent = new http.Agent({ keepAlive: true }); | |
export class OTRestAPI { | |
user: string; | |
pass: string; | |
csurl: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { request } from 'urllib'; | |
export class OTRestAPI { | |
user: string; | |
pass: string; | |
csurl: string; | |
otdsurl: string; | |
ticket: string | null = null; | |
constructor(user: string, pass: string, csurl: string, otdsurl: string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('DOMContentLoaded', () => { | |
try { | |
main(); | |
} catch (error) { | |
console.error(error); | |
} | |
}); | |
async function main() { | |
// Constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(function () { | |
var logger = { | |
mode: 'DEBUG', | |
appname:'Driver Lane Logger', | |
loglevel: 1, | |
config: function(mode, appname){ | |
this.mode = mode; | |
this.appname = appname; | |
this.loglevel = this.logLevelNumber(this.mode) || 10; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Node.js | |
# Build a general Node.js project with npm. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | |
trigger: | |
- master | |
pool: | |
vmImage: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const assert = require('yeoman-assert'); | |
const helpers = require('yeoman-test'); | |
const os = require('os'); | |
describe('csui-extension generator', function () { | |
this.timeout(0); | |
let options = { | |
skipInstall: true, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chalk = require('chalk'); | |
const esprima = require('esprima'); | |
const escodegen = require('escodegen'); | |
const superb = require('superb'); | |
const yosay = require('yosay'); | |
const _ = require('../shared/lodash-complete'); | |
const Generator = require('yeoman-generator'); | |
-_.extend(Generator.prototype, require('yeoman-generator/lib/actions/install')); | |
const promptDefaults = { | |
"widgetDirectory": "hello", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chalk = require('chalk'); | |
const superb = require('superb'); | |
const yosay = require('yosay'); | |
const _ = require('../shared/lodash-complete'); | |
const Generator = require('yeoman-generator'); | |
-_.extend(Generator.prototype, require('yeoman-generator/lib/actions/install')); | |
const promptDefaults = { | |
"projectName": "driverlane", | |
"projectDescription": "driverlane e2e test module", | |
"modulePrefix": "drive" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Node.js | |
# Build a general Node.js project with npm. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | |
trigger: | |
- master | |
pool: | |
vmImage: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"answers": { | |
"widgetDirectory": "hello", | |
"widgetClassPrefix": "Hello", | |
"widgetCssClass": "-hello", | |
"widgetTitle":"Hello", | |
"widgetDescription":"Simple Widget for the widgets", | |
"widgetBundle":"drive-all" | |
}, | |
"options": { |
NewerOlder