Skip to content

Commit fee94b3

Browse files
authored
Merge pull request #2 from doubleSlashde/develop
Develop to main
2 parents 213b9ac + feb3645 commit fee94b3

File tree

16 files changed

+935
-0
lines changed

16 files changed

+935
-0
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
push:
9+
branches: [ "main" ]
10+
pull_request:
11+
branches: [ "main" ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
env:
23+
version: 1.1.${{ github.run_number }}
24+
patchVersion: ${{ github.run_number }}
25+
# Steps represent a sequence of tasks that will be executed as part of the job
26+
steps:
27+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+
- uses: actions/checkout@v3
29+
30+
- uses: actions/setup-java@v3
31+
with:
32+
distribution: 'corretto' # See 'Supported distributions' for available options
33+
java-version: '11'
34+
35+
# could also use gradle wrapper task https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
36+
- name: Build extension
37+
run: |
38+
chmod +x gradlew
39+
./gradlew clean build -PBUILD_NUMBER=${{ env.patchVersion }} -PBUILD_SOURCEBRANCH=$GITHUB_REF_NAME -PBUILD_SOURCEVERSION=$GITHUB_SHA -PPACKAGE_VERSION=${{ env.version }}
40+
41+
- name: Archive production artifacts
42+
uses: actions/upload-artifact@v3
43+
with:
44+
name: InfotableInspectorWidget-v${{ env.version }}
45+
path: build/distributions/*.zip
46+
retention-days: 1

.gitignore

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/gradle,visualstudiocode,eclipse,intellij
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,visualstudiocode,eclipse,intellij
3+
4+
### Eclipse ###
5+
.metadata
6+
bin/
7+
tmp/
8+
*.tmp
9+
*.bak
10+
*.swp
11+
*~.nib
12+
local.properties
13+
.settings/
14+
.loadpath
15+
.recommenders
16+
17+
# External tool builders
18+
.externalToolBuilders/
19+
20+
# Locally stored "Eclipse launch configurations"
21+
*.launch
22+
23+
# PyDev specific (Python IDE for Eclipse)
24+
*.pydevproject
25+
26+
# CDT-specific (C/C++ Development Tooling)
27+
.cproject
28+
29+
# CDT- autotools
30+
.autotools
31+
32+
# Java annotation processor (APT)
33+
.factorypath
34+
35+
# PDT-specific (PHP Development Tools)
36+
.buildpath
37+
38+
# sbteclipse plugin
39+
.target
40+
41+
# Tern plugin
42+
.tern-project
43+
44+
# TeXlipse plugin
45+
.texlipse
46+
47+
# STS (Spring Tool Suite)
48+
.springBeans
49+
50+
# Code Recommenders
51+
.recommenders/
52+
53+
# Annotation Processing
54+
.apt_generated/
55+
.apt_generated_test/
56+
57+
# Scala IDE specific (Scala & Java development for Eclipse)
58+
.cache-main
59+
.scala_dependencies
60+
.worksheet
61+
62+
# Uncomment this line if you wish to ignore the project description file.
63+
# Typically, this file would be tracked if it contains build/dependency configurations:
64+
#.project
65+
66+
### Eclipse Patch ###
67+
# Spring Boot Tooling
68+
.sts4-cache/
69+
70+
### Intellij ###
71+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
72+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
73+
74+
# User-specific stuff
75+
.idea/**/workspace.xml
76+
.idea/**/tasks.xml
77+
.idea/**/usage.statistics.xml
78+
.idea/**/dictionaries
79+
.idea/**/shelf
80+
81+
# AWS User-specific
82+
.idea/**/aws.xml
83+
84+
# Generated files
85+
.idea/**/contentModel.xml
86+
87+
# Sensitive or high-churn files
88+
.idea/**/dataSources/
89+
.idea/**/dataSources.ids
90+
.idea/**/dataSources.local.xml
91+
.idea/**/sqlDataSources.xml
92+
.idea/**/dynamic.xml
93+
.idea/**/uiDesigner.xml
94+
.idea/**/dbnavigator.xml
95+
96+
# Gradle
97+
.idea/**/gradle.xml
98+
.idea/**/libraries
99+
100+
# Gradle and Maven with auto-import
101+
# When using Gradle or Maven with auto-import, you should exclude module files,
102+
# since they will be recreated, and may cause churn. Uncomment if using
103+
# auto-import.
104+
# .idea/artifacts
105+
# .idea/compiler.xml
106+
# .idea/jarRepositories.xml
107+
# .idea/modules.xml
108+
# .idea/*.iml
109+
# .idea/modules
110+
# *.iml
111+
# *.ipr
112+
113+
# CMake
114+
cmake-build-*/
115+
116+
# Mongo Explorer plugin
117+
.idea/**/mongoSettings.xml
118+
119+
# File-based project format
120+
*.iws
121+
122+
# IntelliJ
123+
out/
124+
125+
# mpeltonen/sbt-idea plugin
126+
.idea_modules/
127+
128+
# JIRA plugin
129+
atlassian-ide-plugin.xml
130+
131+
# Cursive Clojure plugin
132+
.idea/replstate.xml
133+
134+
# SonarLint plugin
135+
.idea/sonarlint/
136+
137+
# Crashlytics plugin (for Android Studio and IntelliJ)
138+
com_crashlytics_export_strings.xml
139+
crashlytics.properties
140+
crashlytics-build.properties
141+
fabric.properties
142+
143+
# Editor-based Rest Client
144+
.idea/httpRequests
145+
146+
# Android studio 3.1+ serialized cache file
147+
.idea/caches/build_file_checksums.ser
148+
149+
### Intellij Patch ###
150+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
151+
152+
# *.iml
153+
# modules.xml
154+
# .idea/misc.xml
155+
# *.ipr
156+
157+
# Sonarlint plugin
158+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
159+
.idea/**/sonarlint/
160+
161+
# SonarQube Plugin
162+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
163+
.idea/**/sonarIssues.xml
164+
165+
# Markdown Navigator plugin
166+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
167+
.idea/**/markdown-navigator.xml
168+
.idea/**/markdown-navigator-enh.xml
169+
.idea/**/markdown-navigator/
170+
171+
# Cache file creation bug
172+
# See https://youtrack.jetbrains.com/issue/JBR-2257
173+
.idea/$CACHE_FILE$
174+
175+
# CodeStream plugin
176+
# https://plugins.jetbrains.com/plugin/12206-codestream
177+
.idea/codestream.xml
178+
179+
# Azure Toolkit for IntelliJ plugin
180+
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
181+
.idea/**/azureSettings.xml
182+
183+
### VisualStudioCode ###
184+
.vscode/*
185+
!.vscode/settings.json
186+
!.vscode/tasks.json
187+
!.vscode/launch.json
188+
!.vscode/extensions.json
189+
!.vscode/*.code-snippets
190+
191+
# Local History for Visual Studio Code
192+
.history/
193+
194+
# Built Visual Studio Code Extensions
195+
*.vsix
196+
197+
### VisualStudioCode Patch ###
198+
# Ignore all local history of files
199+
.history
200+
.ionide
201+
202+
# Support for Project snippet scope
203+
.vscode/*.code-snippets
204+
205+
# Ignore code-workspaces
206+
*.code-workspace
207+
208+
### Gradle ###
209+
.gradle
210+
**/build/
211+
!src/**/build/
212+
213+
# Ignore Gradle GUI config
214+
gradle-app.setting
215+
216+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
217+
!gradle-wrapper.jar
218+
219+
# Avoid ignore Gradle wrappper properties
220+
!gradle-wrapper.properties
221+
222+
# Cache of project
223+
.gradletasknamecache
224+
225+
# Eclipse Gradle plugin generated files
226+
# Eclipse Core
227+
.project
228+
# JDT-specific (Eclipse Java Development Tools)
229+
.classpath
230+
231+
### Gradle Patch ###
232+
# Java heap dump
233+
*.hprof
234+
235+
# End of https://www.toptal.com/developers/gitignore/api/gradle,visualstudiocode,eclipse,intellij

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
11
# InfotableInspectorWidgetTWX
2+
23
ThingWorx widget can bind to a InfoTable and provides useful information which would need service calls to the backend otherwise.
4+
5+
Features:
6+
* Row Count
7+
* Is Empty
8+
* Has Rows
9+
* Select All Rows
10+
* Clear Selected Rows
11+
12+
## Configuration
13+
### Designtime
14+
- Properties
15+
![Alt text](/readme/properties.png?raw=true "Bindable Properties")
16+
- Mashup Builder
17+
![Alt text](/readme/ide.png?raw=true "Mashup Builder")
18+
19+
### Runtime
20+
- invisible
21+
22+
## Build
23+
24+
Execute `gradlew clean build`.
25+
26+
Optional build parameters:
27+
* BUILD_NUMBER
28+
* BUILD_SOURCEBRANCH
29+
* BUILD_SOURCEVERSION
30+
* PACKAGE_VERSION
31+
32+
e.g. `gradlew clean build -PBUILD_NUMBER=123 -PBUILD_SOURCEBRANCH=123 -PBUILD_SOURCEVERSION=123 -PPACKAGE_VERSION=1.0.123`

0 commit comments

Comments
 (0)