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 request = require('request'); | |
const qsocks = require('qsocks'); | |
const fs = require('fs'); | |
// Qlik Sense App ids | |
const appIds = ['efdf4130-7b89-45f6-8639-179666f3e35c', | |
'87c2d436-b9b0-4414-8fa1-f5289627b34e', | |
'b0d3a00d-798b-4e34-8e7c-ab06caa54567', | |
'69a8c183-8bc7-4aa4-8ad1-192dbf4d60f8', | |
'1158e903-446f-4092-bed1-beb748a209b3', |
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 qsocks = require('qsocks'); | |
qsocks.Connect({ | |
host: 'branch.qlik.com', | |
prefix: 'anon', | |
isSecure: true | |
}) | |
.then(function(global) { | |
return global.openDoc('3f3a866b-238f-4d1a-8aeb-81e97756af7a') | |
}) |
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
var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 ); | |
var config = { | |
host: window.location.hostname, | |
prefix: prefix, | |
port: window.location.port, | |
isSecure: window.location.protocol === "https:" | |
}; | |
require.config( { | |
baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port: "") + config.prefix + "resources" | |
} ); |
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(['qlik', 'qvangular'], function (qlik, qv) { | |
return { | |
initialProperties: { | |
version: 1, | |
qHyperCubeDef: { | |
qSuppressZero: true, | |
qSuppressMissing: true, | |
qInitialDataFetch: [{qTop: 0, qLeft: 0, qWidth: 2, qHeight: 200}] | |
} | |
}, |
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
/** | |
* Connects to the QRS API (REST based) using certificates. | |
* See this article for more information about connecting to QRS https://help.qlik.com/sense/2.0/en-us/developer/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Connect-API.htm | |
* | |
*/ | |
var https = require('https'); | |
var fs = require('fs'); | |
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
var qsocks = require('qsocks') | |
var serializeApp = require('serializeapp') | |
var fs = require('fs-extra') | |
var Promise = require('promise') | |
function create(docname) { | |
qsocks.Connect({appname: docname}) | |
.then(function(global) { | |
return global.openDoc(docname) | |
}) |
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
/* Workbench */ | |
Qv.InitWorkBench({ | |
View: 'FirstVersion', | |
Host: null, | |
Anonymous: true, | |
BodyOnLoadFunctionNames: ['init'], | |
InitialSelections: ['LB137,Moderaterna'] | |
}); |
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
document.addEventListener('click', function(e) { | |
(function recurse(scope) { | |
if(!scope.model) return recurse(scope.$parent); | |
scope.model.getProperties().then(properties => { | |
delete properties['qInfo']; | |
delete properties['qMetaDef']; | |
window.qliksenseobject = JSON.stringify(properties, null, 4); | |
console.log( JSON.stringify(properties, null, 4) ) | |
}) | |
})(angular.element(e.target).scope()); |
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
var request = require('request'); | |
var Promise = require("es6-promise").Promise | |
var fs = require('fs'); | |
var certs = require('./certs'); | |
module.exports = function() { | |
var r = request.defaults({ | |
rejectUnauthorized: false, | |
key: certs.key, |
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
{ | |
"name": "apptofiles", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Tests?\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", |
NewerOlder