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 controls = '<div class="hamburger-wrapper"><button class="hamburger">☰</button><button class="cross">˟</button></div>'; | |
$('.runtime-form.theme-entry').prepend(controls); | |
$( '.hamburger').click(function() { | |
$('.tab-box-tabs').slideToggle('slow', function() { | |
$('.hamburger').hide(); | |
$('.cross').show(); | |
}); | |
}); | |
$('.cross').click(function() { |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "preview", | |
"title": "K2 Workflow Api" | |
}, | |
"host": "porsche-test.onk2.com", | |
"basePath": "/Api/Workflow/Preview", | |
"schemes": [ | |
"https" |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "v1", | |
"title": "Microsoft Graph Example" | |
}, | |
"host": "graph.windows.net", | |
"schemes": [ "https"], | |
"produces": [ "application/json" ], | |
"paths": { |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "K2 and MongoDB integration", | |
"description": "Sample file", | |
"version": "0.0.1" | |
}, | |
"host": "localhost:3000", | |
"schemes": [ | |
"http" |
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 express = require('express'); | |
var path = require('path'); | |
var cookieParser = require('cookie-parser'); | |
var logger = require('morgan'); | |
var indexRouter = require('./routes/index'); | |
var usersRouter = require('./routes/users'); | |
var mongoRouter = require('./routes/mongo'); | |
var app = express(); |
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
--Create a simple table to hold data. | |
CREATE TABLE [dbo].[Sales]( | |
[OrderId] INT PRIMARY KEY, | |
[Product] NVARCHAR(50) NULL, | |
[Qty] INT NULL, | |
[GroupId] INT NULL | |
) | |
GO | |
--Create a simple data to hold User/Group relations. | |
CREATE TABLE [dbo].[GroupUsers]( |
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 panelBody = $('[name="dlblViewIdentifier"]').closest('.view').find('.panel-body'); | |
$(panelBody).css('background-image', 'url("/Runtime/Image.ashx?ImID=0000000")'); //ImageID is taken from the hidden control | |
$(panelBody).css('background-repeat', 'no-repeat'); | |
$(panelBody).css('background-size', 'auto'); |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "K2 Azure Function Demo", | |
"description": "Used to demo integration with Azure Function", | |
"version": "0.0.1" | |
}, | |
"host": "k2-rest-broker-demo.azurewebsites.net", | |
"schemes": [ "https" ], | |
"produces": [ |
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
module.exports = async function (context, req) { | |
context.log('JavaScript HTTP trigger function processed a request.'); | |
if (req.query.name || (req.body && req.body.name)) { | |
var output = req.query.name || req.body.name; | |
context.res = { | |
// status: 200, /* Defaults to 200 */ | |
body: { | |
'output': output | |
} |