forked from qlik-oss/sn-action-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnebula.config.js
67 lines (65 loc) · 1.92 KB
/
nebula.config.js
1
2
3
4
5
6
7
8
9
10
11
12
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const path = require('path');
const { version } = require(path.resolve(__dirname, './package.json')); // eslint-disable-line
module.exports = {
serve: {
snapshots: [
{
key: 'btn',
meta: {
language: 'sv-SE',
theme: 'light',
appLayout: {},
size: { width: 800, height: 600 },
},
layout: {
qInfo: { qId: 'CNaxMh', qType: 'sn-action-button' },
qSelectionInfo: {},
actions: [],
navigation: { action: 'none', sheet: '', story: '', websiteUrl: '', sameWindow: false },
useEnabledCondition: false,
enabledCondition: 1,
showTitles: true,
title: '',
subtitle: '',
footnote: '',
showDetails: false,
style: {
label: 'My Button!',
font: {
size: 0.66,
useColorExpression: false,
color: { index: 13, color: '#65d3da' },
colorExpression: '',
style: { bold: true, italic: true, underline: true },
align: 'left',
},
background: {
useColorExpression: true,
color: { index: -1, color: null },
colorExpression: 'pink',
useImage: false,
size: 'auto',
position: 'centerCenter',
url: { qStaticContentUrl: {} },
},
border: {
useBorder: true,
radius: 0.51,
width: 0.245,
useColorExpression: false,
color: { index: -1, color: null },
colorExpression: '',
},
icon: { useIcon: true, iconType: 'image', position: 'left' },
},
visualization: 'action-button',
},
},
],
},
build: {
replacementStrings: {
'process.env.PACKAGE_VERSION': JSON.stringify(version),
},
},
};