Skip to content

Commit aabe739

Browse files
committed
first commit
0 parents  commit aabe739

28 files changed

Lines changed: 10660 additions & 0 deletions

.babelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"ie": "11"
6+
},
7+
"useBuiltIns": "entry"
8+
}]
9+
]
10+
}

.circleci/config.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
version: 2
2+
3+
defaults: &defaults
4+
working_directory: ~/qwik-table
5+
docker:
6+
- image: circleci/node:stretch
7+
environment:
8+
GITHUB_ORG: "rileymd88"
9+
GITHUB_REPO: "qwik-table"
10+
PACKAGE_NAME: "qwik-table"
11+
12+
jobs:
13+
test:
14+
docker:
15+
- image: circleci/node:stretch-browsers
16+
steps:
17+
- checkout
18+
- run:
19+
name: Install dependencies
20+
command: npm install
21+
- run:
22+
name: BlackDuck scan
23+
command: curl -s https://blackducksoftware.github.io/hub-detect/hub-detect.sh | bash -s -- \
24+
--blackduck.url="https://qliktech.blackducksoftware.com" \
25+
--blackduck.trust.cert=true \
26+
--blackduck.username="svc-blackduck" \
27+
--blackduck.password=${svc_blackduck} \
28+
--detect.project.name="viz-bundle-qwik-table"
29+
30+
bump-version:
31+
<<: *defaults
32+
steps:
33+
- checkout
34+
- run:
35+
name: Bump version
36+
command: |
37+
sudo chmod +x scripts/bump-version.sh
38+
sudo chmod +x scripts/get-latest-version.sh
39+
scripts/bump-version.sh $GITHUB_ORG $GITHUB_REPO
40+
- persist_to_workspace:
41+
root: ~/qwik-table
42+
paths:
43+
- BUMPED_VERSION
44+
45+
build:
46+
<<: *defaults
47+
steps:
48+
- checkout
49+
- attach_workspace:
50+
at: ~/qwik-table
51+
- run:
52+
name: Install dependencies
53+
command: npm install
54+
- run:
55+
name: Build and package
56+
command: |
57+
sudo chmod +x scripts/get-bumped-version.sh
58+
export VERSION=$(scripts/get-bumped-version.sh)
59+
echo "Version: ${VERSION}"
60+
npm run build:zip
61+
sudo chmod +x scripts/verify-files.sh
62+
scripts/verify-files.sh
63+
environment:
64+
NODE_ENV: production
65+
- persist_to_workspace:
66+
root: ~/qwik-table
67+
paths:
68+
- dist
69+
- store_artifacts:
70+
path: dist
71+
destination: dist
72+
73+
deploy:
74+
<<: *defaults
75+
steps:
76+
- checkout
77+
- attach_workspace:
78+
at: ~/qwik-table
79+
- run:
80+
name: Install ghr
81+
command: |
82+
sudo chmod +x scripts/install-ghr.sh
83+
scripts/install-ghr.sh
84+
- run:
85+
name: Create GitHub Release
86+
command: |
87+
sudo chmod +x scripts/get-bumped-version.sh
88+
export VERSION=$(scripts/get-bumped-version.sh)
89+
echo "Version: ${VERSION}"
90+
sudo chmod +x scripts/create-release.sh
91+
scripts/create-release.sh $GITHUB_ORG $GITHUB_REPO $PACKAGE_NAME $VERSION
92+
93+
workflows:
94+
version: 2
95+
master_flow:
96+
jobs:
97+
- test
98+
- bump-version:
99+
requires:
100+
- test
101+
- build:
102+
requires:
103+
- bump-version
104+
- deploy:
105+
requires:
106+
- build
107+
filters:
108+
branches:
109+
only:
110+
- master

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintrc.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
module.exports = {
2+
parserOptions: {
3+
ecmaVersion: 6,
4+
ecmaFeatures: {
5+
jsx: true,
6+
modules: true
7+
},
8+
sourceType: "module"
9+
},
10+
parser: "babel-eslint",
11+
env: {
12+
browser: true,
13+
es6: true,
14+
node: true
15+
},
16+
globals: {
17+
angular: false,
18+
define: false,
19+
describe: false,
20+
document: false,
21+
expect: false,
22+
it: false,
23+
require: false
24+
},
25+
rules: {
26+
"indent": ["error", 2, { "SwitchCase": 1 }],
27+
"object-curly-spacing": ["error", "always"],
28+
"max-len": ["warn", { "code": 120, "ignoreComments": true, "ignoreTrailingComments": false }],
29+
"no-console": ["warn"],
30+
"no-mixed-operators": ["warn", {
31+
"groups": [
32+
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
33+
["&&", "||"],
34+
["in", "instanceof"]
35+
],
36+
"allowSamePrecedence": true
37+
}],
38+
"no-multi-spaces": ["error"],
39+
"no-cond-assign": ["warn"],
40+
"no-fallthrough": ["warn"],
41+
"no-undef": ["warn"],
42+
"no-unused-vars": ["warn", { "args": "none" }],
43+
"no-use-before-define": ["warn", { "functions": false, "classes": false, "variables": false }],
44+
"no-useless-escape": ["warn"],
45+
"no-useless-return": ["warn"],
46+
"no-underscore-dangle": ["warn", { "allow": ["_id"] }],
47+
"no-redeclare": ["warn"],
48+
"no-restricted-syntax": ["warn"],
49+
"operator-linebreak": ["warn", "before"],
50+
"prefer-promise-reject-errors": ["warn"],
51+
"padded-blocks": ["warn", { "blocks": "never", "switches": "never", "classes": "never" }],
52+
"semi": ["error", "always"],
53+
"valid-typeof": ["warn"],
54+
"no-eval": ["error"],
55+
"no-implied-eval": ["error"],
56+
"no-debugger": ["warn"],
57+
"no-mixed-spaces-and-tabs": ["warn"],
58+
},
59+
extends: [
60+
"eslint:recommended"
61+
]
62+
}

.gitattributes

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain
18+
19+
* text=auto
20+
.* text eol=lf
21+
*.css text eol=lf
22+
*.scss text eol=lf
23+
*.html text eol=lf
24+
*.js text eol=lf
25+
*.json text eol=lf
26+
*.md text eol=lf
27+
*.sh text eol=lf
28+
*.txt text eol=lf
29+
*.svg text eol=lf

.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# Temporary build files
21+
node_modules/
22+
dist/
23+
BUMPED_VERSION
24+
25+
# =========================
26+
# Operating System Files
27+
# =========================
28+
29+
# OSX
30+
# =========================
31+
32+
.DS_Store
33+
.AppleDouble
34+
.LSOverride
35+
36+
# Thumbnails
37+
._*
38+
39+
# Files that might appear on external disk
40+
.Spotlight-V100
41+
.Trashes
42+
43+
# Directories potentially created on remote AFP share
44+
.AppleDB
45+
.AppleDesktop
46+
Network Trash Folder
47+
Temporary Items
48+
.apdisk

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Riley MacDonald
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Qwik Table
2+
A Qlik Sense extension which automatically creates a custom report using Qlik Sense standard objects.
3+
4+
# Developing the extension
5+
If you want to do code changes to the extension follow these simple steps to get going.
6+
7+
1. Get Qlik Sense
8+
2. Clone the repository
9+
3. Run `npm install`
10+
4. Run `npm run build` - to build a dev-version to the /dist folder.
11+
12+
# Original authors
13+
[github.com/rileymd88](https://github.com/rileymd88)
14+
15+
# License
16+
Released under the [MIT License](LICENSE).

0 commit comments

Comments
 (0)