Compare commits

...
686 Commits
Author SHA1 Message Date
Don Walizer 9ccaa12ac9 Add ability to specify ID for skill reporting event 2023-12-15 13:35:08 -05:00
Dima May 594d61503d Merge pull request #233 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-js/axios-1.6.0
Bump axios from 0.27.2 to 1.6.0 in /skills-client-js
2023-12-14 08:09:56 -05:00
Don Walizer e11f7ec67f Modify version 2023-12-13 12:41:41 -05:00
Don Walizer f2f6104e7c Update axios, axios-mock-adapter, add ignore pattern 2023-12-13 10:10:36 -05:00
Don Walizer 53bd0136a5 Merge pull request #230 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-integration/skills-int-client-js/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-integration/skills-int-client-js
2023-12-08 15:21:40 -05:00
Don Walizer 6fbc73c259 Merge pull request #232 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-integration/skills-int-client-react18/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-integration/skills-int-client-react18
2023-12-08 15:16:51 -05:00
Don Walizer 67c5d77730 Merge pull request #231 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-integration/skills-int-client-react17/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-integration/skills-int-client-react17
2023-12-08 15:16:21 -05:00
Don Walizer a1d17002fc Merge pull request #229 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-integration/skills-int-client-vue/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-integration/skills-int-client-vue
2023-12-08 15:16:15 -05:00
Don Walizer f236d29053 Merge pull request #228 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-vue/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-vue
2023-12-08 15:15:45 -05:00
Don Walizer 752aff86e6 Merge pull request #227 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-integration/skills-int-client-react/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-integration/skills-int-client-react
2023-12-08 15:15:31 -05:00
Don Walizer 109f1a900f Merge pull request #226 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-react/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-react
2023-12-08 15:15:24 -05:00
Don Walizer 7c6a7293f7 Merge pull request #225 from NationalSecurityAgency/dependabot/npm_and_yarn/skills-client-integration/skills-int-client-ng/axios-1.6.0
Bump axios from 0.23.0 to 1.6.0 in /skills-client-integration/skills-int-client-ng
2023-12-08 15:15:04 -05:00
Dima May 8a9c9ffe56 Merge pull request #234 from NationalSecurityAgency/update-spring
Update spring
2023-12-08 14:56:59 -05:00
Don Walizer 2678017cde Update reference to PropertiesLauncher 2023-11-30 10:49:27 -05:00
Don Walizer a8b1ce9593 Upgrade to Spring Boot 3.2.0, adjust licenses 2023-11-30 10:36:58 -05:00
dependabot[bot] 39f8779394 Bump axios from 0.27.2 to 1.6.0 in /skills-client-js
Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.27.2...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-11 05:50:05 +00:00
dependabot[bot] 67a9d5fe90 Bump axios in /skills-client-integration/skills-int-client-react18
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:38:30 +00:00
dependabot[bot] b4efd29492 Bump axios in /skills-client-integration/skills-int-client-react17
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:32:15 +00:00
dependabot[bot] abcb97d564 Bump axios in /skills-client-integration/skills-int-client-js
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:29:00 +00:00
dependabot[bot] fc3af550de Bump axios in /skills-client-integration/skills-int-client-vue
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:29:00 +00:00
dependabot[bot] bcb42fc81d Bump axios from 0.23.0 to 1.6.0 in /skills-client-vue
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:28:51 +00:00
dependabot[bot] 4b05314e3b Bump axios in /skills-client-integration/skills-int-client-react
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:28:51 +00:00
dependabot[bot] 712dcbcde8 Bump axios from 0.23.0 to 1.6.0 in /skills-client-react
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:28:50 +00:00
dependabot[bot] e0f5c18b61 Bump axios in /skills-client-integration/skills-int-client-ng
Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.23.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-11-10 21:28:50 +00:00
Dima May b4cd851b0d Merge pull request #224 from NationalSecurityAgency/t#223/deprecate-libraries
T#223/deprecate libraries
2023-10-27 12:59:00 -04:00
Don Walizer e2738f48e0 #223 Remove deprecated tests 2023-10-18 13:55:41 -04:00
Don Walizer 3e569f461d #223 Remove non-native libraries from build 2023-10-18 13:23:16 -04:00
Ryan Mayo d5975ce4ce Merge pull request #222 from NationalSecurityAgency/t#220/remove_cupress_cloud
T#220/remove cupress cloud
2023-09-19 16:42:52 -04:00
EVOFORGE\dimay 4622afab09 #220: fixing nightly CIs 2023-09-19 15:55:55 -04:00
EVOFORGE\dimay 9888f5168d #220: fixing nightly CIs 2023-09-19 15:45:38 -04:00
Don Walizer c866aabab8 Merge pull request #221 from NationalSecurityAgency/t#220/remove_cupress_cloud
T#220/remove cupress cloud
2023-09-18 13:48:04 -04:00
EVOFORGE\dimay e45c87ca43 #220: fixing download 2023-09-18 13:16:21 -04:00
EVOFORGE\dimay 68111db2f5 #220: fixing download skills-service script 2023-09-18 12:32:27 -04:00
EVOFORGE\dimay 78a17e4171 #220: adding npm link step back 2023-09-18 11:31:22 -04:00
EVOFORGE\dimay 54ed00f701 #220: download latest skills-service release instead of building the jar; removed npm link step 2023-09-18 11:17:52 -04:00
EVOFORGE\dimay abb9b195ef #220: fixed header checks 2023-09-18 11:03:03 -04:00
EVOFORGE\dimay bc0694c9a2 #220: removing usage of spring cloud 2023-09-18 10:27:52 -04:00
EVOFORGE\dimay 31e1bafeb9 increased maven heap space for CI runs that build skills-service 2023-08-11 06:26:25 -04:00
rmmayo 7f922d1b58 fixed typo 2023-08-02 13:23:31 -04:00
rmmayo 4521549eb2 allows the secrets to be passed in via file instead of using command line or env variables 2023-07-27 13:23:03 -04:00
rmmayo 63aa1c1631 allows the secrets to be passed in via file instead of using command line or env variables 2023-07-27 13:16:23 -04:00
rmmayo 64fb8abf5a upgrade to latest springboot (v3.1.1) 2023-07-05 11:14:31 -04:00
Dima May 1790088cd0 Merge pull request #215 from NationalSecurityAgency/t#214/upgrade-angular
T#214/upgrade angular
2023-06-27 14:11:52 -04:00
Don Walizer b39fc1c4d3 #214 Adjust package.json versioning 2023-06-21 13:40:25 -04:00
Don Walizer 28b0a845f8 #214 Remove script, remove commented out code 2023-06-21 13:13:58 -04:00
Don Walizer 77300ee065 #214 Remove script from workflow script 2023-06-21 11:38:31 -04:00
Don Walizer 2f703c3ad4 #214 Modify install process 2023-06-21 11:21:56 -04:00
Don Walizer 768bab4a48 #214 Make some script changes 2023-06-14 14:40:48 -04:00
Don Walizer 740b7213c9 #214 Test with a separate script for angular projects 2023-06-09 10:00:53 -04:00
Don Walizer cb3720fdb1 #214 Increase version to 3.6.0 2023-06-08 11:48:44 -04:00
Don Walizer 773ace12b5 #214 Upgrade to Angular 14 2023-06-08 09:53:40 -04:00
Dima May 58a553afb2 Merge pull request #211 from NationalSecurityAgency/t#210/ci_failures
T#210/ci failures
2023-05-09 14:27:34 -04:00
rmmayo 2bf35c08af #210 - upgrading typescript version for skills-client-ng 2023-05-09 09:26:54 -04:00
rmmayo 3739560564 #210 - increase mvn heap size 2023-05-09 08:53:52 -04:00
rmmayo 26ba60cd64 use SSLContexts.createSystemDefault() for SSLContext 2023-03-17 16:17:44 -04:00
Dima May 9922f4557c Merge pull request #208 from NationalSecurityAgency/t#205/ci_failures
T#205/ci failures
2023-03-14 21:54:12 -04:00
rmmayo 0fb897a6b4 #205 - 3.5.0 needs to use JDK 11 also. All future version will use the default configured JDK (19 as of now), unless otherwise specified in the skills.versionProps.altJavaHomeEnv prop for that version(s) 2023-03-14 18:08:19 -04:00
rmmayo ba3212014a #205 - add 0BSD license for react 17 and react18 2023-03-14 17:06:52 -04:00
rmmayo ac5971b56f #205 - add 0BSD license for react 17 and react18 2023-03-14 14:12:32 -04:00
rmmayo 46a567e464 #205 - add 0BSD license for react 17 and react18 2023-03-14 14:12:19 -04:00
rmmayo 2f394bb429 #205 - updated patch files to use postgres for older versions 2023-03-14 12:36:03 -04:00
rmmayo 0600e60ee8 #205 - updated patch files to use postgres for older versions 2023-03-14 10:30:56 -04:00
rmmayo b6f87077d8 #205 - fixed duplicate entres in pom.xml files. Need to pass the existing ENV in addition to the new ENV var 2023-03-13 18:44:28 -04:00
rmmayo 26c547e1d9 #205 - rolling back "temporarily revert jdk setup" changes 2023-03-13 12:35:15 -04:00
rmmayo 37f04a01dd #205 - temporarily revert jdk setup 2023-03-13 12:18:18 -04:00
rmmayo 3a449716cd #205 - temporarily revert jdk setup 2023-03-13 12:10:45 -04:00
rmmayo e6d4870b8e #205 - temporarily revert jdk setup 2023-03-13 12:07:27 -04:00
rmmayo cfe7bde356 #205 - temporarily revert jdk setup 2023-03-13 11:55:01 -04:00
rmmayo 3ef80b042a #205 - temporarily revert jdk setup 2023-03-13 11:38:55 -04:00
rmmayo 4ee343a34e #205 - temporarily revert jdk setup 2023-03-13 11:24:49 -04:00
rmmayo c98a11b0dd #205 - add npm logs to result artifacts 2023-03-13 07:44:37 -04:00
rmmayo 6b3e3f2ac8 #205 - pass JAVA_HOME to the process 2023-03-13 07:14:14 -04:00
rmmayo 76d661f0bc #205 - pass JAVA_HOME to the process 2023-03-13 06:59:02 -04:00
rmmayo 303c6745e1 #205 - pass JAVA_HOME to the process 2023-03-12 21:59:54 -04:00
rmmayo 68e4ef032b #205 - pass JAVA_HOME to the process 2023-03-12 21:38:03 -04:00
rmmayo 9c3f9c7560 #205 - pass JAVA_HOME to the process 2023-03-12 21:10:31 -04:00
rmmayo b086acfc24 #205 - pass JAVA_HOME to the process 2023-03-12 20:19:53 -04:00
rmmayo 2485580b6c #205 - export JAVA_HOME 2023-03-12 19:58:52 -04:00
rmmayo d5770a9265 #205 - fix property name 2023-03-12 19:28:41 -04:00
rmmayo 413b9cd866 #205 - accidentally removed node setup 2023-03-12 18:52:42 -04:00
rmmayo a7dd33bbed #205 - added back commented out code 2023-03-11 18:44:51 -05:00
rmmayo e92abd6e95 #205 - don't skip client-display 2023-03-11 18:43:55 -05:00
rmmayo 6ea48bf8b6 #205 - remove private, fix main class 2023-03-11 18:41:42 -05:00
rmmayo e197764af3 #205 - conver to string 2023-03-10 18:01:52 -05:00
rmmayo cad546df90 #205 - skipping client-display temporarily 2023-03-10 17:53:22 -05:00
rmmayo ca13cfebb9 #205 - trying to work around error: enoent ENOENT: no such file or directory, lstat '/home/runner/work/skills-client/skills-client/skills-service/client-display/target/lib' 2023-03-10 17:44:41 -05:00
rmmayo 5c903c4eed #205 - try zulu jdk 2023-03-10 16:50:16 -05:00
rmmayo 72ac5eb86d #205 - skip building skills-service temporarily 2023-03-10 16:48:15 -05:00
rmmayo 258b0625d4 #205 - attempt using alternative JAVA_HOME per version if configured 2023-03-10 15:21:25 -05:00
rmmayo 3bad415dd6 - updating user-info-service to use latest version w/ springboot 3 2023-03-10 09:58:58 -05:00
rmmayo ae2ac64cf5 - testing out multi jdk setup 2023-03-10 09:28:57 -05:00
rmmayo a82d3033bf - testing out multi jdk setup 2023-03-10 09:26:16 -05:00
Ryan Mayo b6e0c33f8e Merge pull request #207 from NationalSecurityAgency/t#205/ci_failures
#205 - increase wait time to account for JwtTimestampValidator.DEFAUL…
2023-03-09 15:37:29 -05:00
rmmayo 59e17efac6 #205 - increase wait time to account for JwtTimestampValidator.DEFAULT_MAX_CLOCK_SKEW (60 seconds) 2023-03-09 12:34:08 -05:00
Dima May 8fcc80ad7b Merge pull request #206 from NationalSecurityAgency/t#205/ci_failures
T#205/ci failures
2023-03-08 09:47:08 -05:00
rmmayo ededef0757 #205 - change database props to use postgres 2023-03-06 10:46:03 -05:00
rmmayo 6cc340184f #205 - need to run postgres 2023-03-06 09:46:58 -05:00
rmmayo ee19257234 #205 - need to run postgres 2023-03-06 09:28:09 -05:00
rmmayo 03295fff6b #205 - remove -v option from wait-port call 2023-03-04 17:56:39 -05:00
rmmayo 793a6f2a97 #205 - change database props to use postgres 2023-03-04 14:32:57 -05:00
rmmayo c2d81a82a2 #205 - upgrade to groovy 4.0.7 2023-03-03 14:59:11 -05:00
rmmayo 603e86d87b #2002 - upgrade to latest springboot 3 and jdk 19 2023-03-03 14:33:59 -05:00
rmmayo 8211a8d8e6 #2002 - upgrade to latest springboot 3 and jdk 19 2023-03-03 14:33:46 -05:00
rmmayo 0ea6ccd6f2 #205 - upgrade to jdk 19 2023-03-03 13:37:43 -05:00
rmmayo 43e6f12b6a #1954 - use different port for hydra postgres 2023-02-20 16:06:20 -05:00
rmmayo 2c741eac92 #1954 - use different port for hydra postgres 2023-02-20 16:02:00 -05:00
rmmayo dc6ef05bb2 #1954 - use different port for hydra postgres 2023-02-20 15:56:59 -05:00
rmmayo f8775c3c6b #1954 - use different port for hydra postgres 2023-02-20 15:53:34 -05:00
rmmayo aebb2311c9 #1954 - use different port for hydra postgres 2023-02-20 15:49:59 -05:00
rmmayo 01e4fe78eb #1954 - use different port for hydra postgres 2023-02-20 15:45:16 -05:00
Dima May 9a73384d61 Merge pull request #202 from evenstensberg/master
fix(imports): correct import ordering and remove unused code
2023-01-17 08:53:46 -05:00
Even Stensberg fbf391628f fix(imports): correct import ordering and remove dead code 2023-01-14 15:14:50 +01:00
Dima May 78fbfaa07c Merge pull request #199 from NationalSecurityAgency/t#198/failing_ci
T#198/failing ci
2022-12-19 13:07:57 -05:00
rmmayo 79263e3dd1 #198 - added 0BSD to onlyAllow list 2022-12-19 09:06:14 -05:00
rmmayo 117540d768 #198 - added 0BSD to onlyAllow list 2022-12-19 08:36:53 -05:00
Ryan Mayo eed5f8166b Merge pull request #197 from NationalSecurityAgency/dependabot/maven/skills-client-integration/skills-int-e2e-test/org.apache.commons-commons-text-1.10.0
Bump commons-text from 1.9 to 1.10.0 in /skills-client-integration/skills-int-e2e-test
2022-11-09 11:54:43 -05:00
Ryan Mayo 96d6575959 Merge pull request #193 from NationalSecurityAgency/dependabot/maven/skills-client-integration/skills-int-e2e-test/org.codehaus.groovy-groovy-2.5.14
Bump groovy from 2.5.13 to 2.5.14 in /skills-client-integration/skills-int-e2e-test
2022-11-09 11:54:31 -05:00
dependabot[bot] 4555d67463 Bump commons-text in /skills-client-integration/skills-int-e2e-test
Bumps commons-text from 1.9 to 1.10.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-text
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-11-09 16:48:12 +00:00
Ryan Mayo de96156a18 Merge pull request #196 from NationalSecurityAgency/t#195/upgrade_springboot
#195 - upgrade spring boot
2022-11-09 11:45:52 -05:00
rmmayo cc188e092f #195 - upgrade spring boot 2022-11-09 09:20:17 -05:00
Ryan Mayo afedea47c2 Merge pull request #194 from NationalSecurityAgency/t#191/upgrade_spring_boot
#191 - upgrade spring boot
2022-10-12 15:34:35 -04:00
rmmayo 5c2206bbe6 #191 - upgrade spring boot 2022-10-12 15:20:28 -04:00
dependabot[bot] 70a17c87f0 Bump groovy in /skills-client-integration/skills-int-e2e-test
Bumps [groovy](https://github.com/apache/groovy) from 2.5.13 to 2.5.14.
- [Release notes](https://github.com/apache/groovy/releases)
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.codehaus.groovy:groovy
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-11 16:21:41 +00:00
Dima May 6dd0f5870d Merge pull request #192 from NationalSecurityAgency/t#191/upgrade_spring_boot
#191 - upgrade spring boot
2022-10-11 12:21:21 -04:00
rmmayo 1058baff54 #191 - upgrade spring boot 2022-10-10 13:54:04 -04:00
rmmayo d568f2ac6b #191 - upgrade spring boot 2022-10-10 13:40:39 -04:00
rmmayo b38de3a31d creating_release_version_3.5.0 2022-09-27 07:03:15 -04:00
EVOFORGE\dimay 17c3038bcc #188: props updates 2022-09-26 19:48:59 -04:00
rmmayo 13264dc2b8 #188 - set scrollTopOffset to 134 2022-09-26 16:57:39 -04:00
rmmayo 8c3a762ab9 #188 - set scrollTopOffset to 156 2022-09-26 16:53:45 -04:00
Ryan Mayo b4f841ff0d Merge pull request #190 from NationalSecurityAgency/t#188/do-scroll-event
T#188/do scroll event
2022-09-26 14:16:18 -04:00
EVOFORGE\dimay 7d6a0d55a1 #188: fixed an issue where top of the iframe is not in the viewable area 2022-09-26 14:14:21 -04:00
Dima May a577262c80 Merge pull request #189 from NationalSecurityAgency/t#187/uprgade_libs
#187 - Upgraded axios and sockjs-client dependencies
2022-09-26 13:29:49 -04:00
EVOFORGE\dimay b6cd4a22f2 #188: fixed an issue where top of the iframe is not in the viewable area 2022-09-26 13:16:40 -04:00
EVOFORGE\dimay b8ea4df736 #188: inroduced do-scroll event to respond to a scroll event from the iframe's child code 2022-09-26 12:32:46 -04:00
rmmayo 7b2fb60c98 #187 - Upgraded axios and sockjs-client dependencies 2022-09-26 11:56:59 -04:00
Dima May a86011369b Merge pull request #186 from NationalSecurityAgency/t#183/dependabot_alerts
T#183/dependabot alerts
2022-09-23 13:04:59 -04:00
rmmayo b1f21f3f0d #183 - removing internationalization/localization 2022-09-23 09:13:32 -04:00
rmmayo 3c067b63e9 #183 - removing internationalization/localization 2022-09-23 08:14:26 -04:00
rmmayo d634045115 #183 - address Dependabot alerts 2022-09-22 17:52:21 -04:00
rmmayo c7cf667693 #183 - address Dependabot alerts 2022-09-22 17:44:11 -04:00
Ryan Mayo 59d265e29f Merge pull request #185 from NationalSecurityAgency/t#184/pass_options_to_child
T#184/pass options to child
2022-09-22 16:46:48 -04:00
EVOFORGE\dimay 9e250296ba #183: removed localize as it was failing licence dependency check 2022-09-22 15:00:49 -04:00
rmmayo 1807838179 #183 - address Dependabot alerts 2022-09-22 13:38:10 -04:00
rmmayo 18aea74e4d #183 - address Dependabot alerts 2022-09-22 12:37:33 -04:00
rmmayo e5008d4b7b #183 - address Dependabot alerts 2022-09-22 12:25:29 -04:00
rmmayo 925f20e8b8 #183 - address Dependabot alerts 2022-09-22 12:15:38 -04:00
EVOFORGE\dimay d523848ae8 #184: fixed tests 2022-09-22 11:21:32 -04:00
EVOFORGE\dimay 417b3370d2 #184: passed down options to the child iframe and removed options' validation 2022-09-22 09:33:43 -04:00
rmmayo 80ffb33439 #183 - address Dependabot alerts 2022-09-21 15:08:27 -04:00
Dima May 5bb2e96c52 Merge pull request #180 from NationalSecurityAgency/t#179/remove_history_lib
#179 - remove history library dependency
2022-09-20 19:54:20 -04:00
Dima May ba8ae49ed8 Merge pull request #182 from NationalSecurityAgency/t#181/failing_client_backwards_compat_ci
T#181/failing client backwards compat ci
2022-09-20 19:51:53 -04:00
rmmayo 6b882d8fb0 #181 - limit the number of skills-service version tested during client-libs backwards compatibility CI testing. 2022-09-20 12:19:19 -04:00
rmmayo 35bbbcd42c #181 - limit the number of skills-service version tested during client-libs backwards compatibility CI testing. 2022-09-20 11:44:11 -04:00
rmmayo 175e309412 #181 - limit the number of skills-service version tested during client-libs backwards compatibility CI testing. 2022-09-20 10:45:17 -04:00
rmmayo eba7c6e156 #175 - setting initial version for skills-int-client-react18 to 3.4.2 2022-09-20 08:05:26 -04:00
rmmayo 14565ca0c4 #179 - remove history library dependency 2022-09-19 15:43:30 -04:00
Dima May 82f916abae Merge pull request #178 from NationalSecurityAgency/t#177/destroy_race_condition
#177 - handle race condition where the client calls the `SkillsDispla…
2022-09-15 15:14:02 -04:00
rmmayo ee27a3613f #177 - handle race condition where the client calls the SkillsDisplayJS.destroy() method before the PostMate.handshake() is invoked 2022-09-15 13:55:06 -04:00
Dima May 7246fb9385 Merge pull request #176 from NationalSecurityAgency/t#175/react18-int-app
T#175/react18 int app
2022-09-13 14:55:05 -04:00
rmmayo f34c597fa1 #175 - adding links for react 17 and 18 integration test apps 2022-09-13 07:01:39 -04:00
rmmayo 766c34a0c0 #175 - change them method used to listen for the websocket connection message 2022-09-12 18:58:07 -04:00
rmmayo 13431c6092 #175 - adding skills-int-client-react18 - WIP 2022-08-29 15:46:26 -04:00
rmmayo 5e0a5c5b93 #175 - adding skills-int-client-react18 - WIP 2022-08-29 14:03:24 -04:00
rmmayo eab8a4b428 #175 - reload after initial visit 2022-08-29 12:28:04 -04:00
rmmayo e91adb64a7 #175 - aupdated history dependency to 5.3.0, added test on build back 2022-08-29 11:37:46 -04:00
rmmayo a425a85c35 #175 - adding skills-int-client-react18 - WIP 2022-08-29 10:53:40 -04:00
rmmayo db9c0a5b79 #175 - trying different rendering methods 2022-08-23 11:31:00 -04:00
rmmayo 3c6867d3d5 #175 - remove reload after visiting page to troubleshoot initial page loading issue 2022-08-23 08:38:53 -04:00
rmmayo e66066ec84 #175 - reload after visiting page to troubleshoot initial page loading issue 2022-08-23 07:02:21 -04:00
rmmayo 8419a5326f #175 - reload after visiting page to troubleshoot initial page loading issue 2022-08-22 16:28:08 -04:00
rmmayo 5e21f0e9b4 #175 - remove test from build script temporarily 2022-08-22 15:09:09 -04:00
rmmayo 9b81e6f9a2 #175 - removed .only 2022-08-22 14:25:38 -04:00
rmmayo b895d17065 #175 - adding skills-int-client-react18 - WIP 2022-08-22 14:05:27 -04:00
Dima May 5345e59e30 Merge pull request #174 from NationalSecurityAgency/t#173/failing_ci
T#173/failing ci
2022-08-12 11:41:11 -04:00
rmmayo c36d9f7aae #173 - fix failing dashboard backwards compatibility tests after renaming title of the RankDetails page in the skills-display component (skills-service#1194) 2022-08-11 12:23:05 -04:00
rmmayo 5a4c0c9019 #173 - fix failing dashboard backwards compatibility tests after renaming title of the RankDetails page in the skills-display component (skills-service#1194) 2022-08-11 10:21:19 -04:00
rmmayo 75011312f4 #173 - fix failing dashboard backwards compatibility tests after renaming title of the RankDetails page in the skills-display component (skills-service#1194) 2022-08-11 09:01:18 -04:00
rmmayo 606f9aad1a #173 - fix failing client backwards compatibility tests after renaming title of the RankDetails page in the skills-display component (skills-service#1194) 2022-08-10 16:30:54 -04:00
Dima May 7e6102dca3 Merge pull request #170 from NationalSecurityAgency/t#169/ci_failure
T#169/ci failure
2022-01-10 09:20:15 -05:00
Dima May 47f0f58f5d Merge pull request #168 from NationalSecurityAgency/t#167/CVE-2021-45105
#167 upgrade log4j to 2.17.0 in response to CVE-2021-45105
2022-01-10 09:15:37 -05:00
rmmayo 3dac672ba3 #169 - explicitly specify highlight.js dependency and version to prevent version changing on transitive dependency of ngx-highlightjs 2022-01-08 12:52:34 -05:00
rmmayo 8ef383ac9f #169 - explicitly specify highlight.js dependency and version to prevent version changing on transitive dependency of ngx-highlightjs 2022-01-08 11:56:58 -05:00
rmmayo 744c022711 #169 - show node version 2022-01-08 10:36:05 -05:00
mosefer 3f53069e3b #167 upgrade log4j to 2.17.0 in response to CVE-2021-45105 2021-12-19 14:49:40 -05:00
Chris Moses 9d00b0196b Merge pull request #166 from NationalSecurityAgency/t#165/log4j_upgrade
#165: log4j upgrade
2021-12-14 10:57:44 -05:00
EVOFORGE\dimay 352e7d5c76 #165: log4j upgrade 2021-12-14 10:20:00 -05:00
rmmayo 6ea600aaf2 creating_release_version_3.4.1 2021-12-02 09:43:12 -05:00
rmmayo 18e8dc4e98 #133 - adding --force option for link now that we are getting unresolved peer dependencies for react related to changes in #158 I believe 2021-12-02 07:38:14 -05:00
rmmayo bf289d98dd #133 - adding --force option for link now that we are getting unresolved peer dependencies for react related to changes in #158 I believe 2021-12-01 14:46:15 -05:00
Dima May 22046c5d42 Merge pull request #163 from NationalSecurityAgency/t#162/reconnect_ws_invalid_token
T#162/reconnect ws invalid token
2021-11-24 11:16:17 -05:00
rmmayo 9cff37008d #162 - changed workflow to run on daily schedule instead of push/pull_request 2021-11-23 15:46:23 -05:00
rmmayo c631b60c26 #162 - added a badge for the expired token tests 2021-11-23 15:02:08 -05:00
rmmayo aed37a7882 #162 - added cypress tests and CI workflow that validates proper behavior when a skills proxy token has expired 2021-11-23 14:48:46 -05:00
rmmayo c23baf54c5 #162 - start the RetryChecker afterConfigure so that if there are any errors stored in local storage they will be retried after reload w/o having to wait for another skill to be reported. 2021-11-23 11:53:48 -05:00
rmmayo 3dc2c001fc #162 - capture when the websocket connection errors, and if the message indicates a invalid_token, then attempt deactivate the connection and then reconnect 2021-11-23 06:54:12 -05:00
mosefer d0b55b8152 backwards compat tests should not try to inject invalid depoendency into skills-client-int package.json 2021-11-08 09:12:52 -05:00
mosefer ef8300b94d creating_release_version_3.4.0 2021-11-03 18:39:02 -04:00
mosefer 66ef35e83f #160 set initialVersion for skills-int-client-react17 in NpmProjBuilder 2021-11-02 10:16:39 -04:00
Dima May 4992b35f10 Merge pull request #159 from NationalSecurityAgency/t#158/support_react_v17
T#158/support react v17
2021-11-01 15:28:21 -04:00
mosefer 1ff576d583 #158 add force:true to select and submit interactions in integration test 2021-10-27 15:13:46 -04:00
mosefer 816971184a #158 updated lint rules due to updated react-scripts version 2021-10-26 15:07:46 -04:00
mosefer 7dd7a0f4fb #158 change homepage for react17 test, upgrade react-scripts version to craco compatible version 2021-10-26 14:51:08 -04:00
mosefer f10cd880f1 #158 use craco to force int-client apps to load the react version specified in their pom as opposed to the skills-client-react devDependency version pulled in via npm link 2021-10-26 13:27:40 -04:00
mosefer 317103654c #158 lint fix 2021-10-25 12:14:31 -04:00
mosefer b1d0784f81 #158 remove symlinking react module to all projects, fix ts bug in skills-int-client-ng 2021-10-25 11:26:57 -04:00
mosefer 57a78b25b4 #158 make sure to actually add the new int project to git 2021-10-21 14:35:35 -04:00
mosefer 1abf6850d1 #158 support react v17 in the skills-react-client, update axios versions as per dependabot notice, update axios-auth-refresh version, update dependencies in skills-client-js to latest patch versions, add react v17 integration app and tests 2021-10-21 14:25:39 -04:00
Dima May b20c94aa2f Merge pull request #157 from NationalSecurityAgency/t#156/add_BSD-2-Clause
#156 - adding BSD-2-Clause to allowable licenses
2021-09-22 16:32:26 -04:00
rmmayo 8ec08545f7 #156 - adding BSD-2-Clause to allowable licenses 2021-09-21 11:24:50 -04:00
rmmayo 965b264db4 #156 - added BSD-2-Clause to the onlyAllow clause of the licenseDepCheck script 2021-09-21 10:13:21 -04:00
Dima May ac8187d800 Merge pull request #154 from NationalSecurityAgency/t#152/retry_queue_auth_failures
#152 - use the same retryQueue for auth errors as non-auth errors
2021-09-13 11:08:50 -04:00
Dima May fea209f199 Merge pull request #155 from NationalSecurityAgency/t#153/upgrade_ws_libs
T#153/upgrade ws libs
2021-09-13 11:05:56 -04:00
rmmayo 04fad73b74 #153 - force change detection on globalEventResult 2021-09-01 08:32:25 -04:00
rmmayo 4b78e9f4a5 #153
- replaced webstomp-client with @stomp/stompjs client
 - upgraded sockjs to latest version.
2021-08-31 12:45:04 -04:00
rmmayo 65e6b007ca #152 - use the same retryQueue for auth errors as non-auth errors 2021-08-30 13:35:03 -04:00
rmmayo ee35ce9540 creating_release_version_3.3.1 2021-07-13 09:08:10 -04:00
Dima May 7639042010 Merge pull request #151 from NationalSecurityAgency/t#150/navigate
#150 - added ability to programatically "navigate" skills-display to …
2021-07-12 22:38:09 -04:00
rmmayo 61a6c3c24f #150 - removed console.log 2021-07-12 18:44:08 -04:00
rmmayo 6598bcb28d #150 - added ability to programatically "navigate" skills-display to specific route 2021-07-12 18:16:14 -04:00
Dima May 537ccdeb5d Merge pull request #147 from NationalSecurityAgency/t#146/fixed_versions
#146 - use fixed versions in package.json dependencies
2021-07-02 16:29:36 -04:00
Dima May 05b6e51f88 Merge pull request #149 from NationalSecurityAgency/t#148/remove_distro_mgmt
#148 - removed no longer used distributionManagement section from pom…
2021-07-02 16:28:20 -04:00
rmmayo 7d3f375c1a #148 - removed no longer used distributionManagement section from pom.xml 2021-07-02 08:45:46 -04:00
rmmayo 1452bdd9be #146 - use fixed versions in package.json dependencies 2021-06-29 18:05:38 -04:00
rmmayo ca3de11171 creating_release_version_3.3.0 2021-06-25 16:27:22 -04:00
Dima May cd997f6d5b Merge pull request #145 from NationalSecurityAgency/t#144/default_wo_conf
#144 - use proper default for maxRetryAttempts when it's value is und…
2021-06-25 09:47:23 -04:00
rmmayo 54a54a5b00 #144 - use proper default for maxRetryAttempts when it's value is undefined 2021-06-25 08:07:42 -04:00
Dima May c2f4df8afb Merge pull request #143 from NationalSecurityAgency/t#140/maxRetryAttempt
#140 - do not retry failures after reaching configurable maxRetryAtte…
2021-06-23 10:03:29 -04:00
rmmayo 4e4334a424 #140 - do not retry failures after reaching configurable maxRetryAttempt threshold 2021-06-23 07:04:09 -04:00
Dima May 615a8db2d1 Merge pull request #142 from NationalSecurityAgency/t#139/no_retry_unknown_skillid_2
T#139/no retry unknown skillid 2
2021-06-22 15:31:06 -04:00
rmmayo 3ba071ac00 #139 - troubleshooting CI error, passes locally 2021-06-22 14:34:06 -04:00
rmmayo 1dcc6bd29e #139 - troubleshooting CI error, passes locally 2021-06-22 13:52:28 -04:00
rmmayo 386c634a3f #139 - troubleshooting CI error, passes locally 2021-06-22 12:32:52 -04:00
rmmayo f25bfb6252 #139 - troubleshooting CI error, passes locally 2021-06-22 12:04:38 -04:00
rmmayo 1bb162bbd3 #139 - troubleshooting CI error, passes locally 2021-06-22 11:45:36 -04:00
rmmayo 7e37d927ec #139 - troubleshooting CI error, passes locally 2021-06-22 10:07:29 -04:00
rmmayo 9a488b0bc3 #139 - troubleshooting CI error, passes locally 2021-06-22 09:45:35 -04:00
rmmayo f2ca470d3f #139 - troubleshooting CI error, passes locally 2021-06-22 09:11:19 -04:00
rmmayo 2ab9b7086c #139 - troubleshooting CI error, passes locally 2021-06-22 08:47:38 -04:00
rmmayo 7b76ff01af #139 - troubleshooting CI error, passes locally 2021-06-22 08:26:31 -04:00
rmmayo 8e4e2e4948 #139 - troubleshooting CI error, passes locally 2021-06-22 08:05:44 -04:00
rmmayo 634e82d24e #139 - troubleshooting CI error, passes locally 2021-06-22 07:04:36 -04:00
rmmayo 5544723938 #139 - troubleshooting CI error, passes locally 2021-06-22 07:03:40 -04:00
rmmayo 72144d7734 #139 - troubleshooting CI error, passes locally 2021-06-22 06:29:01 -04:00
rmmayo 8af1f62bd6 #139 - troubleshooting CI error, passes locally 2021-06-21 16:45:03 -04:00
rmmayo 10c24e9bd7 #139 - troubleshooting CI error, passes locally 2021-06-21 16:44:35 -04:00
rmmayo 38b0b502c3 #139 - troubleshooting CI error, passes locally 2021-06-21 16:21:54 -04:00
rmmayo 563f9977b0 #139 - troubleshooting CI error, passes locally 2021-06-21 16:19:07 -04:00
rmmayo b78d329faa #139 - troubleshooting CI error, passes locally 2021-06-21 16:10:13 -04:00
rmmayo a777500389 #139 - troubleshooting CI error, passes locally 2021-06-21 16:02:43 -04:00
rmmayo c57c9d695f #139 - troubleshooting CI error, passes locally 2021-06-21 15:46:16 -04:00
Dima May d866ce27db Merge pull request #138 from NationalSecurityAgency/t#137/rename_route_changed
#137 - renamed skills-display-route-changed event to route-changed in…
2021-06-16 08:15:26 -04:00
Dima May edb1c05d27 Merge pull request #136 from NationalSecurityAgency/t#135/default_internal_back_false
#135 - default internalBackButton option to false in the skills-displ…
2021-06-15 16:18:45 -04:00
rmmayo 3d9e8c2571 #137 - renamed skills-display-route-changed event to route-changed in skills-client-vue 2021-06-15 13:37:36 -04:00
rmmayo 843145e436 #135 - default internalBackButton option to false in the skills-display component 2021-06-15 09:59:20 -04:00
Chris Moses 8a4fededb3 Merge pull request #134 from NationalSecurityAgency/t#133/skills-int-client-ng_runtime-error
T#133/skills int client ng runtime error
2021-06-07 09:01:28 -04:00
rmmayo 5325af1973 #133 - properly load highlight.js 2021-06-04 15:42:57 -04:00
rmmayo ed1238795c #133 - adding --force option for angular module (need to figure out a way around version mismatches when upgrading angular and using npm version >= 7.x) 2021-06-04 15:08:31 -04:00
rmmayo 410a5fc740 #133 - adding --force option for angular module (need to figure out a way around version mismatches when upgrading angular and using npm version >= 7.x) 2021-06-04 14:56:36 -04:00
rmmayo b72d51c9ac #133 - adding --force option for angular module (need to figure out a way around version mismatches when upgrading angular and using npm version >= 7.x) 2021-06-04 14:50:09 -04:00
rmmayo 1979f74084 #133 - adding --force option for angular module (need to figure out a way around version mismatches when upgrading angular and using npm version >= 7.x) 2021-06-04 14:38:31 -04:00
rmmayo 76f1481557 #133 - adding --force option for angular module (need to figure out a way around version mismatches when upgrading angular and using npm version >= 7.x) 2021-06-04 14:25:46 -04:00
rmmayo af274ee955 #133 - adding --force option for angular module (need to figure out a way around version mismatches when upgrading angular and using npm version >= 7.x) 2021-06-04 14:01:00 -04:00
rmmayo e8e63fb4ef #133 - adding --force option for angular module (need to figure out a way around version mismatches when upgrading angular and using npm version >= 7.x) 2021-06-04 12:48:23 -04:00
rmmayo 95a25b8f32 #133 - reverting skills-client-ng and skills-int-client-ng dependency changes 2021-06-04 12:46:33 -04:00
Dima May ba8194f6f9 Merge pull request #132 from NationalSecurityAgency/t#131/backwards_compat
#131 - set version of ngx-highlightjs to 4.1.3
2021-06-01 12:33:04 -04:00
rmmayo 40a6980846 #131 - set version of ngx-highlightjs to 4.1.3 2021-06-01 11:21:35 -04:00
Dima May 44cd320c20 Merge pull request #130 from NationalSecurityAgency/t#129/null_params_check
#129 - check for null params
2021-06-01 10:03:09 -04:00
rmmayo 4e1eed3858 #129 - check for null params 2021-06-01 08:36:34 -04:00
Dima May 8173a7d564 Merge pull request #128
T#127/back button
2021-05-28 10:43:23 -04:00
rmmayo 4dd5e215b0 #127 - added cypress tests. initial page load will not have skillsDisplayPath param set, so when not present use '/' 2021-05-28 07:27:19 -04:00
rmmayo 775cbff377 #127 - initial page is now loaded by skills-display on creation 2021-05-27 13:11:58 -04:00
rmmayo d58e9032a1 #127 - fixing broken jest tests 2021-05-25 18:08:32 -04:00
rmmayo 6c38e8f881 #127 - update the history manually now in the parent frame to attempt to get different browsers to behave consistently. (disabled history updates in the skills-display's vue-router settings) 2021-05-25 16:15:31 -04:00
rmmayo a67e38fa84 #125 - updating skills-int-client-ng and skills-client-ng deps to make peer dependencies happy 2021-05-17 13:53:53 -04:00
rmmayo c23212f924 #125 - updating skills-int-client-vue deps to make peer dependencies happy 2021-05-17 13:23:09 -04:00
Chris Moses 605356e400 Merge pull request #126 from NationalSecurityAgency/t#125/vue_and_reat_deps
#125 - changed  "axios-auth-refresh" version from "3.0.0" to "3.1.0" …
2021-05-17 12:22:16 -04:00
rmmayo 2ad5fe410a #125 - changed "axios-auth-refresh" version from "3.0.0" to "3.1.0" and removed "rollup-plugin-uglify" dependency 2021-05-17 11:45:43 -04:00
Dima May f729048742 Merge pull request #124 from NationalSecurityAgency/t#123/ng_deps
#123 - changed  "zone.js" version from "0.11.1" to "0.10.3"
2021-05-17 09:51:07 -04:00
rmmayo d27c5b28e2 #123 - changed "zone.js" version from "0.11.1" to "0.10.3" 2021-05-17 09:44:18 -04:00
Dima May 570e7ddfa9 Merge pull request #122 from NationalSecurityAgency/t#121/notify_when_route_changed
#121 - notify client when skills-display route has changed
2021-05-17 07:25:00 -04:00
rmmayo 831c1c4209 #121 - notify client when skills-display route has changed 2021-05-14 14:34:42 -04:00
Dima May eb23dc48d6 Merge pull request #120 from NationalSecurityAgency/t#119/backwards_compat
#119 - revert patch changes made in #111 now that the skills-display …
2021-05-12 15:55:01 -04:00
rmmayo 70372c52f9 #119 - revert patch changes made in #111 now that the skills-display default it to use the internal back button 2021-05-12 14:53:40 -04:00
Dima May e9f045a32a Merge pull request #117 from NationalSecurityAgency/t#115/upgrade_lodash
#115 - upgrading lodash
2021-05-12 11:14:32 -04:00
Dima May 8954aba225 Merge pull request #114 from NationalSecurityAgency/t#111/browser_back_button
T#111/browser back button
2021-05-11 08:55:47 -04:00
rmmayo 208af5c2ba #115 - upgrading lodash 2021-05-11 08:32:00 -04:00
Dima May 36612b526e Merge pull request #113 from NationalSecurityAgency/t#112/retry
T#112/retry
2021-05-10 14:21:20 -04:00
rmmayo ca330f78ab #111 - added cypress tests for reload/linking 2021-05-10 13:44:56 -04:00
rmmayo 4803c5181e #111 - added verbose option when apply patch 2021-05-10 11:11:03 -04:00
rmmayo 3d2184ea4e #111 - added verbose option when apply patch 2021-05-10 10:28:52 -04:00
rmmayo 9be1962510 #111 - set the proper route on the child iframe when reloading/linking 2021-05-10 09:40:15 -04:00
rmmayo 23704d3171 #111 - update patch files for backwards compat tests 2021-05-07 13:02:01 -04:00
rmmayo b214a14669 #111 - update patch files for backwards compat tests 2021-05-06 18:01:52 -04:00
rmmayo a8f28f596b #111 - update patch files for backwards compat tests 2021-05-06 16:36:14 -04:00
rmmayo f93426c6ac #111 - fixing native browser back button support in client-display. 2021-05-06 13:17:24 -04:00
rmmayo 0905b5b2b9 #112 - change default max retry queue size from 100 to 1000 2021-04-29 15:52:17 -04:00
rmmayo 692d02cb5f #112 - add property in SkillEventRequest that indicate when a reported skill is being retried and log it. Updated unit tests 2021-04-27 13:49:28 -04:00
rmmayo 58be278dd9 #112 - add to retry queue when xhr.status is 0. from https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status: "Before the request completes, the value of status is 0. Browsers also report a status of 0 in case of XMLHttpRequest errors" 2021-04-27 10:54:17 -04:00
rmmayo 1ee43ef218 #112 - adding retry logic for failed skill reporting 2021-04-26 17:01:48 -04:00
Ryan Mayo 63af6a8bff Merge pull request #110 from evenstensberg/master
fix: linting, license dates, and import statements in react
2021-04-23 13:08:31 -04:00
Even Stensberg fc4bf72202 chore: use destructuring 2021-04-23 18:25:31 +02:00
EVOFORGE\dimay 085cf72470 creating_release_version_3.2.0 2021-04-13 07:17:17 -04:00
Dima May e770f59643 Merge pull request #109 from NationalSecurityAgency/ticket#108/proxy_user_display_config
#108 make ProxyShowSkills component configurable so that it functions…
2021-04-06 08:38:52 -04:00
mosefer 4394a28fb8 #108 make ProxyShowSkills component configurable so that it functions outside of e2e spec 2021-04-05 12:10:23 -04:00
Dima May 51bdfb4ead Merge pull request #106 from NationalSecurityAgency/t#91/single_init
T#91/single init
2021-03-30 15:03:34 -04:00
rmmayo e12308b801 #91 - moved mock responses into their own variable 2021-03-30 14:29:34 -04:00
rmmayo 18b1ba3a58 #91 - add multiple calls to SkillsConfiguration.configure() to verify only called once and no harm is done. 2021-03-30 14:23:04 -04:00
rmmayo 3fd50e096a #91 - after further discussion, to stay backwards compatible, we decided to set intialized=false but still call afterConfigure without rejection 2021-03-26 07:36:04 -04:00
rmmayo 51643e043e #91 - render example integration apps outside of SkillsConfiguration.afterConfigure() callback for error condition tests to display properly 2021-03-26 07:26:12 -04:00
rmmayo 41ad8f9214 #91 - redner example integration apps outside of SkillsConfiguration.afterConfigure() callback for error condition tests to display properly 2021-03-26 07:26:11 -04:00
rmmayo b94dec07fe #91 - added missing semicolon. configure runtimeHelpers in rollup.config.js 2021-03-26 07:26:11 -04:00
rmmayo 4219fcdc97 #91 - prevent SkillsConfiguration from attemping to initalized after successful initialization 2021-03-26 07:26:11 -04:00
Dima May e00e41651c Merge pull request #107 from NationalSecurityAgency/t#105/console_errors
#105 - log skill reporting errors to the console
2021-03-25 12:51:32 -04:00
rmmayo 5236d4a386 #105 - log skill reporting errors to the console 2021-03-24 17:00:42 -04:00
Dima May 525adddfbf Merge pull request #104 from NationalSecurityAgency/t#102/ci_failures
T#102/ci failures
2021-03-19 15:06:46 -04:00
rmmayo 01cfcf68af #102 - reverting temporary enabling of workflow on push 2021-03-19 14:27:29 -04:00
rmmayo da68860c7c #102 - updated validation of no background set for non-themed specs to take into account version after css changed in skills-service/#414 2021-03-19 09:48:31 -04:00
rmmayo c7da2e3759 #102 - temporarily enable workflow on push 2021-03-19 09:10:13 -04:00
rmmayo 473aeaa902 #102 - updated validation of no background set for non-themed specs to take into account version after css changed in skills-service/#414 2021-03-19 09:09:58 -04:00
Dima May 58c919b6f9 Merge pull request #101
#100 - updated validation of no background set for non-themed specs t…
2021-03-18 15:21:26 -04:00
rmmayo fda0db88bf #100 - updated validation of no background set for non-themed specs to take into account version after css changed in skills-service/#414 2021-03-18 13:06:52 -04:00
rmmayo 07cdfb7421 #90 - enable workflow to be triggered manually 2021-03-18 09:04:50 -04:00
rmmayo a2d8a61ae9 #97 - reverting temporary enabling of workflow on push 2021-03-15 17:51:39 -04:00
Ryan Mayo 6bed3b43a2 Merge pull request #98 from NationalSecurityAgency/t#97/backwards_compat
T#97/backwards compat
2021-03-15 17:00:16 -04:00
rmmayo 61f60feb39 #97 - temporarily enable workflow on push 2021-03-15 15:51:27 -04:00
rmmayo c02439d325 #97 - updated cypress tests to be look for the proper HTTP error codes for missing skills for the version being tested (see skills-service/#271) 2021-03-15 15:49:15 -04:00
rmmayo 88cb2f4b21 #97 - updated .patch files to be look for the updated HTTP error codes for missing skills (see skills-service/#271) 2021-03-15 15:06:23 -04:00
rmmayo bdeb251c25 #97 - updated .patch files to be look for the updated HTTP error codes for missing skills (see skills-service/#271) 2021-03-15 14:49:29 -04:00
Dima May 0a04cf2d69 Merge pull request #94 from NationalSecurityAgency/t#89/default_redirect
#89 - add flag to SkillsConfiguration to indicate if when using oauth…
2021-03-02 07:25:23 -05:00
Dima May 45334d0c04 Merge pull request #96 from NationalSecurityAgency/t#95/cypress_failures
#95 - corrected HTTP error code to be 404 (vs 400) due to changes in …
2021-03-02 07:23:55 -05:00
rmmayo df6735fa76 #95 - corrected HTTP error code to be 404 (vs 400) due to changes in skills-service #272 2021-03-01 07:38:36 -05:00
rmmayo 8ac4afe087 #89 - add flag to SkillsConfiguration to indicate if when using oauth, the logic should auto redirect to the oauth authenticator when the token is unable to be retrieved due to HTTTP 401. Default value is false 2021-02-26 07:17:09 -05:00
Dima May 9c4a47fa8f Merge pull request #93 from NationalSecurityAgency/t#92/node_version
T#92/node version
2021-02-12 12:28:34 -05:00
rmmayo 5d365d695b #92 - reverting temporarily trigger backwards compat 2021-02-12 10:07:25 -05:00
rmmayo 5ac40b6339 #92 - temporarily trigger backwards compat on push 2021-02-12 09:05:27 -05:00
rmmayo 181b4096af #92 - change node version to 14.15.0 for backwards compat tests 2021-02-12 09:01:16 -05:00
rmmayo e888279fe5 #90 - add workflow_dispatch for manually triggering workflow 2021-02-08 15:05:55 -05:00
rmmayo 80d70d1532 #90 - add workflow_dispatch for manually triggering workflow 2021-02-08 15:03:53 -05:00
rmmayo 2eb4ef60a4 #90 - add workflow_dispatch for manually triggering workflow 2021-02-08 15:02:38 -05:00
rmmayo 3de3035185 #90 - changed cypress version to 6.2.0 in the patch file 2021-02-08 14:51:20 -05:00
rmmayo 2cc86d7b78 #90 - changed cypress version to 6.2.0 in the patch file 2021-02-08 14:45:43 -05:00
Dima May 71f443e840 Merge pull request #87
T#85/intercept
2021-01-04 11:53:02 -05:00
rmmayo 4abed70e49 #85 - reverted back to scheduled run 2020-12-31 13:16:00 -05:00
rmmayo 8491bfddae #85 - adding patches to fix backwards compatibility runs 2020-12-31 13:11:08 -05:00
rmmayo ce83b210dd #85 - adding patches to fix backwards compatibility runs 2020-12-31 12:24:32 -05:00
rmmayo 1ec8a224a8 #85 - adding patches to fix backwards compatibility runs 2020-12-31 11:43:36 -05:00
rmmayo df92e366b6 #85 - testing changes with backwards compatibility runs 2020-12-31 10:25:37 -05:00
rmmayo 8c5c76f1f0 #85 - testing changes with backwards compatibility runs 2020-12-31 08:10:52 -05:00
rmmayo 6e36163712 #85 - migrate cy.route() and cy.server() to cy.intercept() 2020-12-30 16:14:00 -05:00
rmmayo 6af5c1a932 #85 - migrate cy.route() and cy.server() with cy.intercept() 2020-12-30 16:12:42 -05:00
rmmayo d23be82cc3 creating_release_version_3.1.1 2020-12-29 16:58:39 -05:00
EVOFORGE\dimay acc79c5a32 #86: proper use fo request config 2020-12-29 15:49:29 -05:00
EVOFORGE\dimay ffe82fa6c9 #86: upgrade axios 2020-12-29 15:05:03 -05:00
Ryan Mayo f75c524bde Merge pull request #84 from NationalSecurityAgency/t#83/cypress_upgrade
T#83/cypress upgrade
2020-12-23 13:02:15 -05:00
rmmayo 50c62955eb #83 - revert oauth ci back to schedule 2020-12-23 13:01:43 -05:00
Dima May 503ecca40a Merge pull request #82
#81 - replace double quote constant string w/ single quotes
2020-12-23 12:45:25 -05:00
rmmayo 5267886606 #83 - added data-cy label to title for more consistent testing 2020-12-23 10:38:18 -05:00
rmmayo cbe9c40be5 #83 - upgrade cypress to latest version 2020-12-23 08:02:30 -05:00
rmmayo bd7ed55e73 #81 - replace double quote constant string w/ single quotes 2020-12-18 09:29:20 -05:00
rmmayo adbc0cff51 creating_release_version_3.1.0 2020-12-17 13:19:10 -05:00
rmmayo 5bb46a9e0d #226 - try to reduce memory footprint of hydra containers 2020-12-15 09:45:15 -05:00
Dima May aad60b5dbd Merge pull request #79
T#78/clean service url
2020-12-10 16:30:38 -05:00
rmmayo d10f2db7cd #80 - added missing 'tag' option to CliBuilder 2020-12-08 11:27:52 -05:00
rmmayo 7c8369b22a #78 - remove trailing slash and also and leading/trailing whitespace 2020-12-08 07:55:21 -05:00
rmmayo d6fe21d835 #78 - remove trailing slash and also and leading/trailing whitespace 2020-12-07 16:01:37 -05:00
Dima May 67581e228e Merge pull request #77
T#76/GitHub ci
2020-11-17 11:38:05 -05:00
rmmayo 10bdc7cb5b #76 - reverted back to schedule 2020-11-17 10:20:41 -05:00
rmmayo 04234ed81e #76 - stCarolas/setup-maven@v3 is using deprecated 'add-path' command. we may not need to use it, testing w/o it. 2020-11-17 09:10:51 -05:00
rmmayo c07ed1bbe0 #73 - Updated ProcessRunner to properly parse quoted arguments 2020-11-13 10:43:03 -05:00
rmmayo 9f277d2106 #73 - use github.workflow instead of github.job for the cypress tag 2020-11-13 07:43:49 -05:00
rmmayo 4813586eee #73 - use github.job instead of github.action for the cypress tag 2020-11-13 07:09:40 -05:00
Dima May f2a94d01d1 Merge pull request #75
T#73/cypress tags
2020-11-12 12:09:49 -05:00
rmmayo 8e3da5badd #73 - tag cypress runs with workflow action name (and version for backwards compat testing) 2020-11-12 11:44:07 -05:00
rmmayo 9489e1f000 #73 - tag cypress runs with workflow action name (and version for backwards compat testing) 2020-11-12 11:19:58 -05:00
Dima May d303ac1833 Merge pull request #74
#72 updated 2-0-1.patch and added 3-0-0.patch and 3-0-1.patch to incl…
2020-11-12 10:54:01 -05:00
rmmayo fccc44cafc #72 updated 2-0-1.patch and added 3-0-0.patch and 3-0-1.patch to includes cypress dashboard props in cypress.json 2020-11-12 10:09:19 -05:00
rmmayo d6130c3eef #71 - added legal/IP contribution documents 2020-11-10 14:41:55 -05:00
rmmayo d82385e5b9 #65 - try setting retires using env var for backwards compat tests 2020-11-10 07:51:16 -05:00
rmmayo 71365b32f5 #68 - change nodeVersion version back to v12.6.0 2020-11-09 14:17:32 -05:00
rmmayo 172c1b8324 #68 - force cleaning of node_modules in skills-int-client-react 2020-11-09 13:05:29 -05:00
rmmayo 729247898b #65 - record cypress backwards compatibility tests in cypress dashboard 2020-11-09 11:37:54 -05:00
Dima May 408370b0d7 Merge pull request #70
T#65/backwards compat dashboard
2020-11-07 15:41:37 -05:00
rmmayo 22ae2248f3 #65 - changing backwards compatibility workflows back to running on schedule vs. push/pull_request 2020-11-06 14:02:07 -05:00
rmmayo b0e49963a7 #65 - record cypress backwards compatibility tests in cypress dashboard 2020-11-06 13:15:26 -05:00
rmmayo 562fd1c5aa #65 - record cypress backwards compatibility tests in cypress dashboard 2020-11-06 12:50:31 -05:00
rmmayo 32198eff6e #65 - record cypress backwards compatibility tests in cypress dashboard 2020-11-06 12:35:47 -05:00
rmmayo ebf4599020 #68 - force cleaning of node_modules in skills-int-client-react 2020-11-06 08:11:19 -05:00
rmmayo 17dd46c50e #68 - change nodeVersion version back to v12.6.0 2020-11-05 14:28:06 -05:00
rmmayo b161e24a74 #68 - change frontend-maven-plugin version back to 1.6 2020-11-05 13:53:01 -05:00
rmmayo 608779cc9f #68 - increased node version to 14.15.0 and frontend-maven-plugin version to 10.0.2 2020-11-05 12:36:48 -05:00
rmmayo ccc8b968c3 #64 - change oauth test to run on schedule 2020-10-30 15:12:03 -04:00
Dima May ebf4aecc33 Merge pull request #67 from NationalSecurityAgency/T#64/oauth_workflow
#64 - break out OAuth CI tests into a separate workflow with it's own…
2020-10-30 14:11:14 -04:00
rmmayo 3f6bf5a9ec #66 - fix paths for 'upload result artifacts'. 2020-10-30 10:43:25 -04:00
rmmayo 2a54fcebdb #64 - break out OAuth CI tests into a separate workflow with it's own badge 2020-10-30 10:38:24 -04:00
rmmayo 8a6d7decc3 #66 - revert temporary run on push and fail on purpose 2020-10-30 10:17:51 -04:00
rmmayo 0f8d7ee427 #66 - fix paths for 'upload result artifacts'. (temporarily run on push and fail on purpose) 2020-10-30 09:37:05 -04:00
rmmayo fc21c2ccf2 #66 - fix paths for 'upload result artifacts'. (temporarily run on push and fail on purpose) 2020-10-30 09:36:17 -04:00
rmmayo 8394f5dd8f #66 - fix paths for 'upload result artifacts'. (temporarily run on push and fail on purpose) 2020-10-30 08:53:53 -04:00
Dima May bc87dca6f0 Merge pull request #59 from NationalSecurityAgency/ticket#46/upgrade_maven_dependencies
#46 upgraded maven deps to latest stable versions
2020-10-29 15:28:03 -04:00
rmmayo 5f936d0e66 #57 - pass the serviceUrl vs/ the SkillsConfiguration object to configureLogging() method 2020-10-28 14:33:42 -04:00
rmmayo 06d19f52f5 #61 - revert temporarily allowing oauth tests to run on push 2020-10-27 15:19:52 -04:00
rmmayo e8cd72ee7d #42 - upload log files as well as cypress artifacts 2020-10-27 09:24:53 -04:00
rmmayo b4f79c547e #61 - Fixed client logging messages to help troubleshoot scheduled failing oauth tests. 2020-10-27 08:51:19 -04:00
rmmayo 4216a9dfac #61 - temporarily allow oauth tests to run on push 2020-10-26 11:35:53 -04:00
rmmayo ddd1ca8254 #61 - Added client logging messages to help troubleshoot scheduled failing oauth tests. 2020-10-26 11:32:26 -04:00
Ryan Mayo 700a4cd81d Merge pull request #63 from NationalSecurityAgency/T#61/oauth_provider
#49 - changed 'Proxy Skills Display' test to use 'wrapIframe' method …
2020-10-20 07:15:39 -04:00
rmmayo 07af430261 #49 - changed 'Proxy Skills Display' test to use 'wrapIframe' method of validating iframe data which prevents race condition 2020-10-20 06:58:24 -04:00
EVOFORGE\dimay 440628895f Merge branch 'master' into T#61/oauth_provider
# Conflicts:
#	.github/workflows/build-and-test.yml
2020-10-19 13:26:53 -04:00
rmmayo 88974877d1 #57 - run cypress OAuth test on schedule, non-oauth on push/pull-request 2020-10-19 12:51:38 -04:00
rmmayo 27d54fefe3 #57 - run cypress OAuth test on schedule, non-oauth on push/pull-request 2020-10-19 12:15:33 -04:00
rmmayo a4026377c1 #61 - Allow clients to configure oauth provider id vs. url when using oauth 2020-10-19 11:57:43 -04:00
rmmayo 71af4d80b3 #57 - broke out oauth properties into separate file 2020-10-16 10:04:40 -04:00
mosefer 4801b5fdaf #46 upgrading spring boot version, adding prop-types for int-client-react, updating open source licenses 2020-10-16 07:21:58 -04:00
mosefer 4239c79325 #46 upgraded maven deps to latest stable versions 2020-10-16 07:20:23 -04:00
Ryan Mayo 315a519d38 Merge pull request #60 from NationalSecurityAgency/T#57_OAuth
T#57 o auth
2020-10-15 15:16:18 -04:00
rmmayo fccf514c95 #57 - add support for pull request branches 2020-10-15 14:29:10 -04:00
Dima May 206a1fd066 Merge pull request #58
#45 npm dependency upgrades - WIP
2020-10-15 13:14:34 -04:00
rmmayo 2c55b6b986 #57 - add support for 3rd party oauth - WIP 2020-10-15 12:36:17 -04:00
rmmayo 414cbafa3d #57 - troubleshooting failing CI tests 2020-10-15 11:34:27 -04:00
rmmayo 2ef2ea9739 #57 - troubleshooting failing CI tests 2020-10-15 11:04:04 -04:00
rmmayo bca43b417b #57 - troubleshooting failing CI tests 2020-10-15 09:38:43 -04:00
rmmayo 935e077586 #57 - troubleshooting failing CI tests 2020-10-15 09:26:50 -04:00
rmmayo 1b4686def4 #57 - run cypress tests for OAuth only, will uncomment after merge (scheduled runs only occur on master) 2020-10-15 08:41:32 -04:00
rmmayo 9e335df094 #57 - troubleshooting failing CI tests 2020-10-15 08:20:33 -04:00
rmmayo fa8a124029 #57 - troubleshooting failing CI tests 2020-10-15 08:09:53 -04:00
rmmayo aa8df4c537 #57 - add hydra support 2020-10-15 07:47:21 -04:00
rmmayo 4350468ce2 #57 - add support for 3rd party oauth - WIP 2020-10-14 14:50:18 -04:00
rmmayo a2f5a6054b #57 - add support for 3rd party oauth - WIP 2020-10-14 14:49:09 -04:00
rmmayo e5b6d53ab6 #57 - add support for 3rd party oauth - WIP 2020-10-14 14:22:31 -04:00
mosefer dcfd901c67 #45 npm dependency upgrades - WIP 2020-10-14 13:35:57 -04:00
rmmayo 40643309d7 #57 - add hydra support 2020-10-13 16:45:44 -04:00
rmmayo b02fd18f9b #57 - add hydra support 2020-10-13 15:34:20 -04:00
rmmayo a27f164a85 #57 - add hydra support 2020-10-13 14:05:45 -04:00
rmmayo 4ef1cf8e38 #57 - add hydra support 2020-10-13 13:57:10 -04:00
rmmayo 41b731f521 #57 - add hydra support 2020-10-13 13:50:54 -04:00
rmmayo 7bfa9caeeb #57 - add hydra support 2020-10-13 13:36:47 -04:00
rmmayo 46339148ec #57 - test conditional 2020-10-13 13:30:19 -04:00
rmmayo c6eb9d2115 #57 - add support for 3rd party oauth - WIP 2020-10-13 13:27:03 -04:00
rmmayo 8047b20afd #57 - test conditional 2020-10-12 13:35:47 -04:00
rmmayo 749d971976 #57 - add hydra support 2020-10-12 13:32:49 -04:00
rmmayo b417db357b #57 - test conditional 2020-10-12 12:47:42 -04:00
rmmayo 7a82c93962 #57 - add support for 3rd party oauth - WIP 2020-10-12 12:25:39 -04:00
rmmayo c63f127bff #57 - add hydra support 2020-10-12 12:23:58 -04:00
rmmayo 6981b1fda8 #57 - add hydra support 2020-10-12 12:21:40 -04:00
rmmayo 37a73243d4 #57 - add hydra support 2020-10-12 12:05:28 -04:00
rmmayo 3c72df1408 #57 - add hydra support 2020-10-12 12:03:51 -04:00
rmmayo 8c6cb5da9a #57 - add hydra support 2020-10-12 12:02:03 -04:00
rmmayo e6c792fc9a #57 - add hydra support 2020-10-12 11:59:22 -04:00
rmmayo 801e6985f5 #57 - test conditional 2020-10-12 11:50:35 -04:00
rmmayo 25698e9c61 #57 - test conditional 2020-10-12 11:09:59 -04:00
rmmayo 7f9b836d41 #57 - test conditional 2020-10-12 10:55:17 -04:00
rmmayo 2434fe4867 #57 - test conditional 2020-10-12 10:52:03 -04:00
rmmayo 4e9f2ec71b #57 - test conditional 2020-10-12 10:48:43 -04:00
rmmayo 65b476d360 #57 - test conditional 2020-10-12 10:46:47 -04:00
rmmayo 648fbc8a5a #57 - test conditional 2020-10-12 10:43:51 -04:00
rmmayo 7224558d5a #57 - test conditional 2020-10-12 10:41:13 -04:00
rmmayo 41a0fa689c #57 - test conditional 2020-10-12 10:40:13 -04:00
rmmayo 72ea56b413 #57 - add support for 3rd party oauth - WIP 2020-10-12 10:30:22 -04:00
rmmayo d2ca900a7d #57 - testing env to get event type 2020-10-12 10:28:18 -04:00
rmmayo 53b0e43a0e #57 - add support for 3rd party oauth - WIP 2020-10-07 08:18:12 -04:00
rmmayo 3dd6951125 #57 - removed dead code and added/removed comments left over from skills-client #29 2020-10-07 08:17:56 -04:00
rmmayo 7eb4522484 #57 - add support for 3rd party oauth - WIP 2020-10-05 14:20:29 -04:00
rmmayo 64c8299890 #57 - add support for 3rd party oauth - WIP 2020-10-02 12:33:18 -04:00
rmmayo 2a9bd4d4a0 #10 - test periodically failing w/ no error message. Adding std out to output to see if there is anything there that will help show to problem. 2020-09-30 07:38:00 -04:00
Ryan Mayo 73208c49ac Merge pull request #56
#55: Cypress tests retries
2020-09-25 15:57:57 -04:00
Ryan Mayo 7a323266ea Merge branch 'master' into t#55/cypress-retries 2020-09-25 15:56:18 -04:00
Ryan Mayo c5bf18c27c Merge pull request #54
#53: Record cypress test in dashboard
2020-09-25 15:49:34 -04:00
EVOFORGE\dimay fd20a3e646 #55: Cypress tests retries 2020-09-25 15:20:52 -04:00
EVOFORGE\dimay 11c8570258 #53: Record cypress test in dashboard 2020-09-25 13:01:53 -04:00
mosefer bf6c00202e creating_release_version_3.0.1 2020-09-23 08:21:53 -04:00
Dima May f13c2b9cdb Merge pull request #52
#51 remove vuejs extended link
2020-09-23 07:16:11 -04:00
mosefer 5b9591f514 #51 remove vuejs extended link 2020-09-22 14:35:45 -04:00
Dima May a5eef411da Merge pull request #50
#49 check for a pre-existing authorization header on axios and remove…
2020-09-21 13:50:58 -04:00
mosefer 8d870e5d20 #49 identified breaking changes that caused this issue. Don't set common headers on axios instance in SkillsLevelJS component 2020-09-21 12:31:18 -04:00
mosefer dc4fa92b46 #49 check for a pre-existing authorization header on axios and remove if it doesn't match last loaded auth token 2020-09-20 10:32:58 -04:00
rmmayo 19630f1669 #44 - patch branch return type is String (boolean was casting the branch name to the boolean value true, causing the command to be 'git checkout true') 2020-09-17 08:10:25 -04:00
rmmayo 462d5b4ec1 #44 - revert back to scheduled trigger 2020-09-16 16:26:51 -04:00
Dima May 7c25415a44 Merge pull request #48
T#44 skills client logging
2020-09-16 16:02:38 -04:00
rmmayo 95d708e49a #44 - fixed log messages showing objects to use their toString() method. Wrapping ui client config properties within "clientLib" struct to be even more explicit. 2020-09-16 12:37:19 -04:00
rmmayo 901dc1db89 #44 - prefixing all client log statements with 'SkillsClient::'. Wrapping ui client config properties within "clientLib" struct to be even more explicit. 2020-09-16 11:25:19 -04:00
rmmayo a88768cddd #44 - fixed artifacts in client backwards compat tests. separate out ClientLoggingController output to separate file for "backend:start:ci:background" 2020-09-15 11:58:51 -04:00
rmmayo 2d5b711598 #44 - adding javascript logging to skills-client libraries - WIP 2020-09-15 11:55:47 -04:00
rmmayo bb666f78e7 #44 - fixed artifacts in client backwards compat tests. separate out ClientLoggingController output to separate file for "backend:start:ci:background" 2020-09-15 09:37:32 -04:00
rmmayo f0a4ac26de #44 - temporarily trigger client lib backward compatibility tests on push 2020-09-15 09:17:52 -04:00
rmmayo e4c98cc171 #44 - upgraded cypress, added some skills logging to cypress tests. fixed artifacts in client backwards compat tests. 2020-09-15 08:52:44 -04:00
rmmayo 5e0fe8f6d2 #44 - adding javascript logging to skills-client libraries - WIP 2020-09-14 13:56:41 -04:00
rmmayo 92b5db01e9 #44 - upgraded cypress 2020-09-14 13:55:53 -04:00
rmmayo 45addc1ed9 #44 - adding javascript logging to skills-client libraries - WIP 2020-09-14 13:55:22 -04:00
rmmayo 954c3dc186 #44 - adding javascript logging to skills-client libraries - WIP 2020-09-10 18:36:45 -04:00
rmmayo 503bf6ad3d #42 - revert back to schedule 2020-09-08 09:04:47 -04:00
rmmayo 35777a9109 #42 - kick off on push temporarily 2020-09-08 08:28:39 -04:00
Dima May 2616186cbc Merge pull request #47
T#42/backwards compat
2020-09-08 08:15:11 -04:00
Dima May 0e3bf20819 Merge pull request #43 from NationalSecurityAgency/t#28/improve_error_msg
T#28/improve error msg
2020-09-04 09:46:53 -04:00
rmmayo d7991757c7 #28: verify console message in unit test 2020-09-04 09:14:49 -04:00
rmmayo 6522b64521 #42 - revert back to schedule 2020-09-03 17:05:01 -04:00
rmmayo a4cbd64af6 #42 - only apply patch if one is found 2020-09-03 16:32:51 -04:00
rmmayo bc91a27c4c #42 - kick off on push to test branch 2020-09-03 16:14:08 -04:00
rmmayo e58a7a62d7 #42 - reset any unstaged local changes created by applying a patch 2020-09-03 16:12:00 -04:00
rmmayo 54dfa885b8 #28: updated cypress tests to reflect new error message 2020-09-03 15:45:05 -04:00
rmmayo 5a64bdee10 #28: added console message with suggestions to verify the service is up and the certificate is trusted when using https. Also included the URL within the error message. 2020-09-03 15:09:58 -04:00
EVOFORGE\dimay 8f8fb20721 fixing angular docs for 3.0.0 release 2020-09-02 16:23:22 -04:00
EVOFORGE\dimay 994dee91d1 fixing versions for 3.0.0 release 2020-09-02 15:36:47 -04:00
EVOFORGE\dimay 43faa70fbe #38: account for angular's directory structure 2020-09-02 15:17:17 -04:00
EVOFORGE\dimay 00ee82e4bc creating_release_version_3.0.0 2020-09-02 14:02:55 -04:00
Ryan Mayo f5eb81bf97 Merge pull request #40
T#38/release
2020-09-02 13:36:56 -04:00
EVOFORGE\dimay 7fce3729b4 #38: missing headers 2020-09-02 10:40:57 -04:00
EVOFORGE\dimay a29bc5d8b8 #38: Updated release scripts 2020-09-01 15:17:57 -04:00
Ryan Mayo ef3fa55039 Merge pull request #35 from NationalSecurityAgency/t#34/errors-impr
#34: improve errors handling; enhance errors' messages
2020-08-31 10:52:59 -04:00
rmmayo 116924e210 #34 - fixed typo 2020-08-31 10:23:48 -04:00
Ryan Mayo d90819e9e6 Merge pull request #32
#16: included src
2020-08-31 09:40:11 -04:00
mosefer d7da3699a8 Merge pull request #33 from NationalSecurityAgency/t#31/enhance-docs
#31: Enhanced libs README and package.json
2020-08-30 08:28:38 -04:00
EVOFORGE\dimay ed54d749c0 #34: improve errors handling; enhance errors' messages 2020-08-28 15:32:06 -04:00
EVOFORGE\dimay d77aff784f #31: Fixed repo url 2020-08-28 14:04:21 -04:00
Dima May 640d772374 Merge pull request #30
#29 update resttemplate config
2020-08-28 13:54:22 -04:00
mosefer 5e5278abbd #29 changing rest template configuration 2020-08-28 13:11:50 -04:00
mosefer bc0214335c #29 rolling back some of the changes due to CI build failure 2020-08-28 12:33:59 -04:00
EVOFORGE\dimay 7f2c4f0e77 #31: Enhanced libs README and package.json 2020-08-28 11:04:24 -04:00
EVOFORGE\dimay 172428306e #16: included src 2020-08-28 09:22:17 -04:00
mosefer 888c4ba40d #29 fix header 2020-08-28 09:07:57 -04:00
mosefer 4a202e3c0f #29 update resttemplate config 2020-08-28 08:48:34 -04:00
mosefer d79f2be4b7 Merge pull request #25 from TheFoxAtWork/master
Security Vuln Fix
2020-08-26 11:21:06 -04:00
Emily Fox 61e3a5dc01 Merge pull request #6 from TheFoxAtWork/snyk-upgrade-90d20f63c31785ae3938614162384517
[Snyk] Upgrade vue-router from 3.1.3 to 3.3.4
2020-08-26 10:38:11 -04:00
Emily Fox 498105f35e Merge branch 'master' into snyk-upgrade-90d20f63c31785ae3938614162384517 2020-08-26 10:37:40 -04:00
Emily Fox 402dac7735 Merge pull request #7 from TheFoxAtWork/snyk-upgrade-a2d3a7570abbe2cf06ce626edfb1ffdf
[Snyk] Upgrade vuex from 3.1.1 to 3.5.1
2020-08-26 10:36:11 -04:00
Emily Fox 4693ad38ee Merge branch 'master' into snyk-upgrade-a2d3a7570abbe2cf06ce626edfb1ffdf 2020-08-26 10:35:38 -04:00
Emily Fox 0e53be33ab Merge pull request #5 from TheFoxAtWork/snyk-upgrade-f71c2eb216cb8950a68cb2aee3ceb661
[Snyk] Upgrade bootstrap-vue from 2.0.2 to 2.16.0
2020-08-26 10:34:27 -04:00
Emily Fox 366b71b53e Merge branch 'master' into snyk-upgrade-f71c2eb216cb8950a68cb2aee3ceb661 2020-08-26 10:34:07 -04:00
Emily Fox c8239e870e Merge pull request #4 from TheFoxAtWork/snyk-upgrade-12cc7d2f5cf24c0373477b61d4aacd38
[Snyk] Upgrade axios from 0.19.0 to 0.19.2
2020-08-26 10:25:42 -04:00
Emily Fox 87ec455304 Merge pull request #3 from TheFoxAtWork/snyk-upgrade-13f9d329379deaf4bb71b725e9cd9dd8
[Snyk] Upgrade commons-io:commons-io from 2.5 to 2.7
2020-08-26 10:21:32 -04:00
Emily Fox 760627c0d1 Revert "fix: skills-client-integration/skills-int-client-vue/package.json & skills-client-integration/skills-int-client-vue/.snyk to reduce vulnerabilities"
This reverts commit cd9d5699bc.
2020-08-24 07:39:05 -04:00
snyk-bot aa7675615d fix: upgrade vuex from 3.1.1 to 3.5.1
Snyk has created this PR to upgrade vuex from 3.1.1 to 3.5.1.

See this package in npm:
https://www.npmjs.com/package/vuex

See this project in Snyk:
https://app.snyk.io/org/thefoxatwork/project/f14f7afc-5da6-46c2-9648-1ba6ffed65db?utm_source=github&utm_medium=upgrade-pr
2020-08-20 01:44:59 +00:00
snyk-bot 1bf7262ecf fix: upgrade vue-router from 3.1.3 to 3.3.4
Snyk has created this PR to upgrade vue-router from 3.1.3 to 3.3.4.

See this package in npm:
https://www.npmjs.com/package/vue-router

See this project in Snyk:
https://app.snyk.io/org/thefoxatwork/project/f14f7afc-5da6-46c2-9648-1ba6ffed65db?utm_source=github&utm_medium=upgrade-pr
2020-08-20 01:44:54 +00:00
snyk-bot 77a0bfaede fix: upgrade bootstrap-vue from 2.0.2 to 2.16.0
Snyk has created this PR to upgrade bootstrap-vue from 2.0.2 to 2.16.0.

See this package in npm:
https://www.npmjs.com/package/bootstrap-vue

See this project in Snyk:
https://app.snyk.io/org/thefoxatwork/project/f14f7afc-5da6-46c2-9648-1ba6ffed65db?utm_source=github&utm_medium=upgrade-pr
2020-08-20 01:44:48 +00:00
snyk-bot 3c853a868d fix: upgrade axios from 0.19.0 to 0.19.2
Snyk has created this PR to upgrade axios from 0.19.0 to 0.19.2.

See this package in npm:
https://www.npmjs.com/package/axios

See this project in Snyk:
https://app.snyk.io/org/thefoxatwork/project/0bcddd93-969b-46e5-9f0a-5199e210a335?utm_source=github&utm_medium=upgrade-pr
2020-08-19 23:24:21 +00:00
snyk-bot 0a29201e69 fix: upgrade commons-io:commons-io from 2.5 to 2.7
Snyk has created this PR to upgrade commons-io:commons-io from 2.5 to 2.7.

See this package in Maven Repository:
https://mvnrepository.com/artifact/commons-io/commons-io/

See this project in Snyk:
https://app.snyk.io/org/thefoxatwork/project/6d828a40-c542-4256-9708-4aa22f39f3fc?utm_source=github&utm_medium=upgrade-pr
2020-08-19 22:20:42 +00:00
Emily Fox 48eec8b891 Merge pull request #2 from TheFoxAtWork/snyk-fix-b354df797c899628ffa69efd6506d10d
[Snyk] Security upgrade lodash from 4.17.19 to 4.17.20
2020-08-19 14:36:25 -04:00
snyk-bot 9bfd6feeaa fix: skills-client-vue/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-LODASH-590103
2020-08-19 18:35:46 +00:00
Emily Fox 7e3516f87d Merge pull request #1 from TheFoxAtWork/snyk-fix-0a74b90121a7b86cd79e28fdee985d39
[Snyk] Fix for 1 vulnerabilities
2020-08-19 14:28:11 -04:00
snyk-bot cd9d5699bc fix: skills-client-integration/skills-int-client-vue/package.json & skills-client-integration/skills-int-client-vue/.snyk to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch:
- https://snyk.io/vuln/SNYK-JS-LODASH-567746
2020-08-19 18:27:02 +00:00
mosefer 96316c5116 #24 remove gitlab ci file 2020-08-19 13:39:09 -04:00
mosefer 739c77abba #24 stop maven from spewing artifact download messages to the log during npm link setup 2020-08-19 13:23:36 -04:00
rmmayo 276a0554e4 #23 - added status code to error message 2020-08-17 07:57:33 -04:00
Ryan Mayo 5e275af84d Merge pull request #22
Ticket#17/client lib backwards compat
2020-08-13 11:19:19 -04:00
EVOFORGE\dimay 6605552ca3 #17: CI to test backward compatibility for client libs 2020-08-12 13:19:12 -04:00
EVOFORGE\dimay 4be5b7a929 #17: CI to test backward compatibility for client libs 2020-08-12 11:32:15 -04:00
EVOFORGE\dimay df9032bd8e #17: CI to test backward compatibility for client libs 2020-08-12 10:30:14 -04:00
EVOFORGE\dimay f884390b60 #17: CI to test backward compatibility for client libs 2020-08-12 09:32:32 -04:00
EVOFORGE\dimay 274444d5a2 #17: missing header 2020-08-12 08:17:59 -04:00
EVOFORGE\dimay 0a9583b6aa #17: removed unused min version checks 2020-08-12 07:56:39 -04:00
EVOFORGE\dimay a85cf583ed #17: CI to test backward compatibility for client libs 2020-08-12 07:51:47 -04:00
EVOFORGE\dimay b421c2dbe7 #17: CI to test backward compatibility for client libs 2020-08-12 06:58:43 -04:00
EVOFORGE\dimay 45aed98551 #17: CI to test backward compatibility for client libs 2020-08-11 06:51:17 -04:00
EVOFORGE\dimay a0150cc7e4 #17: CI to test backward compatibility for client libs 2020-08-10 15:53:58 -04:00
EVOFORGE\dimay c4175b7677 #17: CI to test backward compatibility for client libs 2020-08-10 15:15:23 -04:00
EVOFORGE\dimay 5902263f6d #17: CI to test backward compatibility for client libs 2020-08-10 15:13:59 -04:00
Dima May 73a8d91470 Merge pull request #21
#18 - remove skills-client-js dependency from skills-int-client-ng.  …
2020-08-10 13:53:42 -04:00
rmmayo 51b78a323d #18 - remove skills-client-js dependency from skills-int-client-ng. add link in skills-client-ng distribution 2020-08-10 11:12:50 -04:00
rmmayo 52e5503457 #20 - added initialVersion property to NpmProj to exclude version that are newer the current version when running backwards compatibility tests 2020-08-07 13:37:04 -04:00
rmmayo cbdf33f830 #5 - fixed routing to work properly when deployed inside the skills-int-service 2020-08-07 09:47:02 -04:00
mosefer 727f42e3d4 Merge pull request #19 from NationalSecurityAgency/rmmayo/#12_angular_e2e_tests
Rmmayo/#12 angular e2e tests
2020-08-06 08:23:00 -04:00
rmmayo 1382389645 #12 - removing temporary debugging and commented out tests 2020-08-05 12:35:42 -04:00
rmmayo 00fe64c25e #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-05 12:16:57 -04:00
rmmayo 86f8ffad15 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-05 12:06:59 -04:00
rmmayo 5baf30f70b #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-05 11:44:08 -04:00
rmmayo a95637bf24 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-05 10:19:49 -04:00
rmmayo 35fd4bf568 #12 - temporary commenting out non-angular tests to troubleshoot failing CI on github but not locally 2020-08-05 08:54:12 -04:00
rmmayo f778f54c81 #12 - temporary logging to troubleshoot failing CI on github but not locally 2020-08-05 08:44:21 -04:00
rmmayo 9dfb1167ec #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-05 07:56:33 -04:00
rmmayo 1b7c71b454 #5 - added skills-client-ng to the skills-int-service app 2020-08-05 07:20:45 -04:00
rmmayo a10a4fefd8 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-05 07:17:50 -04:00
rmmayo 0e15f35b7e #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-04 07:39:44 -04:00
rmmayo a1a52ae508 #5 - added skills-client-ng to the skills-int-service app 2020-08-03 14:34:02 -04:00
rmmayo 3051a22948 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-03 14:33:42 -04:00
rmmayo df52f38112 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-03 14:28:13 -04:00
rmmayo b6312a1883 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-03 14:12:26 -04:00
rmmayo fd08a3f723 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-03 13:43:55 -04:00
rmmayo 50ef8289a0 #12 - added cypress tests and updating SetupNpmLinks to support angular app/lib - WIP 2020-08-03 12:04:50 -04:00
mosefer ed9ec13b66 Merge pull request #13 from NationalSecurityAgency/rmmayo/#5_angular-support
#5 - added skills-client-ng for angular support and skill-int-client-ng for integration testing
2020-07-31 14:10:31 -04:00
rmmayo b82eb7263b #5 - removed "^" from @types/js-beautify version 2020-07-31 13:52:59 -04:00
rmmayo a7eca8af25 #5 - added license checker and license headers 2020-07-31 13:16:08 -04:00
rmmayo 796558e258 #5 - added license checker and license headers 2020-07-31 13:16:08 -04:00
rmmayo 8ac373e3ee #5 - removed "deep imports" warnings 2020-07-31 13:16:08 -04:00
rmmayo a615712771 #5 - removed ^ from ngx-highlights version 2020-07-31 13:16:08 -04:00
rmmayo ea2651acb7 #5 - added skills-client-ng to the skills-int-service app 2020-07-31 13:16:08 -04:00
rmmayo 7b85a318bf #5 - added skills-client-ng to the skills-int-service app 2020-07-31 13:16:08 -04:00
rmmayo 0eb4b13087 #5 - set version of skills-client-ng and skills-int-client-ng to 2.0.1 2020-07-31 13:16:08 -04:00
rmmayo ad3c46d13a #5 - added skills-client-ng for angular support and skill-int-client-ng for integration testing 2020-07-31 13:16:08 -04:00
Dima May b9aae080a8 Merge pull request #16
#8 allow construction of SkillDisplayJS without specifying parameters
2020-07-31 09:15:29 -04:00
EVOFORGE\dimay b6ddd9b40f #10: skills-service backward compat tests 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 083e3b0c68 #10: backward compat tests 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay c2bc724628 #10: backward compat tests 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay db8d65becc #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 6610125f6c #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 7c31928729 #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay db483ecf72 #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay c2270ab04c #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay bffabe6b89 #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay fa760371be #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay cd8735b545 #10: backward compat tests - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 27a76d2198 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay fe3a5668ee 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay bf42da3746 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 0306844531 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 4b0c88a2ea 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay ea9a0799d4 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 350014abaa 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
EVOFORGE\dimay 7dbb778ce9 10: develop backwards compatibility tests for skills-service - WIP 2020-07-31 08:13:14 -04:00
mosefer d24997bec3 #8 allow construction of SkillDisplayJS without specifying parameters 2020-07-31 08:03:40 -04:00
Dima May 2825512b1e Merge pull request #11
Ticket#9/standardize eslint rules
2020-07-30 12:20:19 -04:00
mosefer 4388a94ad7 #9 previous commit broke the SkillsLevel component 2020-07-29 13:11:31 -04:00
mosefer f60c6cc81c #9 standardize eslint rules across client libraries, fix eslint violations 2020-07-29 11:32:45 -04:00
EVOFORGE\dimay d626680e28 added utility to transform sample dataset 2020-07-28 15:26:19 -04:00
EVOFORGE\dimay f0ac30b758 added utility to transform sample dataset 2020-07-28 14:50:44 -04:00
EVOFORGE\dimay ca269abffc added utility to transform sample dataset 2020-07-28 14:31:53 -04:00
EVOFORGE\dimay 1ee8a8fabf added utility to transform sample dataset 2020-07-28 14:31:53 -04:00
Dima May 070f79695f Merge pull request #4 from NationalSecurityAgency/rmmayo/#3_upgrade-lodash
#3 - upgraded lodash version due to security vulnerability.
2020-07-21 06:28:50 -04:00
EVOFORGE\dimay 6d8127ab18 #3: CI - fixing building skills-service jar logic 2020-07-20 11:44:07 -04:00
rmmayo bf9575c198 #3 - upgraded lodash version due to security vulnerability. 2020-07-20 11:26:37 -04:00
EVOFORGE\dimay b2b39a5fd7 #1: CI - WIP 2020-07-14 09:50:46 -04:00
EVOFORGE\dimay a68f7e500a #1: CI - WIP 2020-07-13 10:10:35 -04:00
EVOFORGE\dimay a060de5a41 #1: CI - WIP 2020-07-13 06:43:28 -04:00
EVOFORGE\dimay 9a0bc4907d #1: CI - WIP 2020-07-13 06:42:13 -04:00
EVOFORGE\dimay 6e1c7db16f #1: CI - WIP 2020-07-12 08:47:06 -04:00
EVOFORGE\dimay 4f6879cbf0 #1: CI - WIP 2020-07-12 08:15:39 -04:00
EVOFORGE\dimay af994d45ac #1: CI - WIP 2020-07-09 16:10:35 -04:00
EVOFORGE\dimay 7d2915d131 #1: CI - WIP 2020-07-09 15:55:36 -04:00
Dima May b0c88099a0 Update README.md 2020-07-09 15:48:18 -04:00
Dima May 14dc08ecc1 Update README.md 2020-07-09 15:44:46 -04:00
EVOFORGE\dimay badccd2348 #1: CI - WIP 2020-07-09 15:43:53 -04:00
EVOFORGE\dimay 131d26292c #1: CI - WIP 2020-07-09 15:33:53 -04:00
EVOFORGE\dimay 1b24e46150 #10: fixed integration tests; resolved race condition when loading native js level component; made sure auth token is set for native js level component 2020-07-09 14:02:43 -04:00
EVOFORGE\dimay 33972d4cee Merge branch 'rmmayo/#10_js_level_component' 2020-07-08 20:38:13 -04:00
EVOFORGE\dimay bf23980b5f Merge branch 'rmmayo/#10_js_level_component' of github.com:NationalSecurityAgency/skills-client into rmmayo/#10_js_level_component
# Conflicts:
#	skills-client-integration/skills-int-client-js/app/index.html
#	skills-client-react/src/component/SkillsLevel.js
#	skills-client-vue/src/component/SkillsLevel.vue
#	skills-client-vue/src/component/__tests__/SkillsLevel.test.js
#	skills-client-vue/src/index.js
2020-07-08 20:38:01 -04:00
EVOFORGE\dimay 004b4d0d35 Merge branch 'rmmayo/#10_js_level_component' 2020-07-08 20:05:54 -04:00
rmmayo 899ce192b8 #10 - changed versionLaterThan to 2.0.0 for 'level component should be reactive' 2020-07-08 20:05:03 -04:00
Ryan Mayo 7d44ba12d5 #10 - added pure js implementation of the Level component. Changed vue and react components to use the pure JS implementation. 2020-07-08 20:05:03 -04:00
EVOFORGE\dimay 8cd3436764 #1: CI - WIP 2020-07-08 15:51:14 -04:00
EVOFORGE\dimay 56822e5e11 #1: CI - WIP 2020-07-08 15:18:30 -04:00
EVOFORGE\dimay 7fdf0b92b3 #1: CI - WIP 2020-07-08 14:18:29 -04:00
EVOFORGE\dimay 5261c7ce38 #1: CI - WIP 2020-07-08 11:41:07 -04:00
EVOFORGE\dimay d97b7b94e0 #1: CI - WIP 2020-07-08 11:18:38 -04:00
EVOFORGE\dimay adce26b50d #1: CI - WIP 2020-07-08 10:50:11 -04:00
EVOFORGE\dimay 8fbfd85905 #1: CI - WIP 2020-07-08 10:33:52 -04:00
EVOFORGE\dimay 054a9d4a5b #1: CI - WIP 2020-07-08 10:29:43 -04:00
EVOFORGE\dimay 8ad947a2d4 #1: CI - WIP 2020-07-08 10:24:33 -04:00
EVOFORGE\dimay 9b9ed45962 #1: CI - WIP 2020-07-08 10:20:39 -04:00
EVOFORGE\dimay c38d31ad6e #1: CI - WIP 2020-07-08 10:17:35 -04:00
EVOFORGE\dimay 76c542e03e #1: CI - WIP 2020-07-08 10:02:43 -04:00
EVOFORGE\dimay a295afc1fb #1: resolving issues of renamed to @skilltree namespace 2020-07-08 08:38:12 -04:00
EVOFORGE\dimay 6fd71b52ca #1: resolving issues of renamed to @skilltree namespace 2020-07-08 06:39:59 -04:00
EVOFORGE\dimay 3cba0dc491 #1: resolving issues of renamed to @skilltree namespace 2020-07-07 16:22:05 -04:00
EVOFORGE\dimay f5b7964cd8 #1: publish public repos 2020-07-07 16:12:16 -04:00
EVOFORGE\dimay 19a94f1f33 Merge branch 'dimay-2.0.0' into dimay/#1-ciTest
# Conflicts:
#	skills-client-integration/license-add/license-add-config.json
#	skills-client-integration/skills-int-client-vue/src/components/Navigation.vue
#	skills-client-integration/skills-int-e2e-test/package.json
2020-07-07 16:11:10 -04:00
EVOFORGE\dimay e5e2c6cb29 #1: CI - revert npm links changes 2020-07-07 16:01:48 -04:00
EVOFORGE\dimay ddbdba0759 #1: CI - renamed to @skilltree; creating tag for version 2.0.1 2020-07-07 15:54:28 -04:00
rmmayo 69210353ec #10 - changed versionLaterThan to 2.0.0 for 'level component should be reactive' 2020-07-07 14:10:58 -04:00
EVOFORGE\dimay a5e40401a0 #1: CI - wip - npm links 2020-07-06 21:08:14 -04:00
EVOFORGE\dimay 1774625364 #1: CI - wip - npm links 2020-07-06 20:48:03 -04:00
Ryan Mayo d21c491541 #10 - added pure js implementation of the Level component. Changed vue and react components to use the pure JS implementation. 2020-07-06 13:08:21 -04:00
EVOFORGE\dimay 44d48475d5 #1: ci workflow - WIP - do not run install before setting up npm links 2020-07-06 12:43:03 -04:00
EVOFORGE\dimay 16ebdc6ef4 #1: ci workflow - WIP - temporarily removed call-stack-profiler dependency 2020-07-06 12:36:24 -04:00
EVOFORGE\dimay 162358118e #1: ci workflow - WIP 2020-07-06 07:16:32 -04:00
EVOFORGE\dimay fa14c1a8f2 #1: ci workflow - WIP 2020-07-02 14:08:12 -04:00
EVOFORGE\dimay 356a4f57f2 #1: ci workflow - WIP 2020-07-02 14:04:29 -04:00
EVOFORGE\dimay de9c7ad839 #1: ci workflow - WIP 2020-07-02 14:02:49 -04:00
EVOFORGE\dimay 646f0614eb #1: ci workflow - WIP 2020-07-02 14:01:00 -04:00
EVOFORGE\dimay 6c1758134b #1: ci workflow - WIP 2020-07-02 13:45:22 -04:00
EVOFORGE\dimay 46be215a48 #1: update location of skills-service project 2020-07-02 10:35:42 -04:00
EVOFORGE\dimay 7fa615de05 #11: update the name of skill-service project 2020-07-01 07:15:13 -04:00
EVOFORGE\dimay 7bed2afa4d #11: update the name of skill-service project 2020-07-01 06:52:36 -04:00
EVOFORGE\dimay 11a1aceb89 #11: update the name of skill-service project 2020-07-01 06:38:02 -04:00
Ryan Mayo 8b79f57666 Merge branch 'dimay/#9-improveDev' 2020-06-26 09:41:27 -04:00
Ryan Mayo 9c9814b017 #9 - changed title to indicate if pruning or not 2020-06-26 09:31:22 -04:00
EVOFORGE\dimay bdd9ae7b66 #9: Improvements to the development process of client libraries 2020-06-26 07:35:26 -04:00
EVOFORGE\dimay 9c98fe6dcb #8: Simplify commands to run services in order to perform cypress.io testing 2020-06-25 11:10:32 -04:00
EVOFORGE\dimay 826d9111f2 #8: Simplify commands to run services in order to perform cypress.io testing 2020-06-25 10:44:40 -04:00
Ryan Mayo f6cbb50992 #505 :
- Made changes to the client-diplay routing code to always keep track of previous route instead of requiring explicit configuration.
- Added CI end-to-end test for using the back button after navigating 2 layers deep in the client display
2020-06-23 15:07:47 -04:00
Ryan Mayo a986ca1a5d Merge branch 'rmmayo/#505_client_display_back_button' 2020-04-08 11:59:35 -04:00
Ryan Mayo ac6c432ad6 #11 - default to reload components after navigating away and then coming back 2020-04-08 11:11:28 -04:00
Ryan Mayo e726184417 #11 - default to reload components after navigating away and then coming back 2020-04-08 10:14:24 -04:00
Ryan Mayo 40feb0acab #505 - integration test for back button when when returning from an external page 2020-04-08 08:54:46 -04:00
Ryan Mayo 31064b9735 #505 - changed back button in client display to navigate to passed in component (defaults to Home). Started to add support for integration testing in vue integration app. 2020-04-06 12:15:37 -04:00
Ryan Mayo a4c8f21692 Merge branch 'rmmayo/#6_missing_arg' 2020-04-01 08:50:24 -04:00
Ryan Mayo 07f384f8fa #6 - add targetOrigin argument to postMessage call. Using the current window's location origin as this message is intended for cypress testing only. 2020-04-01 08:22:19 -04:00
Ryan Mayo e75f3f4b4d #2 - refactored vistHomePage into support/commands.js 2020-03-24 10:00:37 -04:00
298 changed files with 15167 additions and 3357 deletions

No files matched your search

@@ -0,0 +1,134 @@
# This is a basic workflow to help you get started with Actions
name: Continuous Integration expired token tests
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
services:
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: skillsPassword
POSTGRES_DB: skills
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- uses: actions/setup-java@v1
with:
java-version: '19' # The JDK version to make available on the path.
- name: Print Versions
run: |
mvn --version
java -version
npm -version
node --version
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# - name: build skill-service
# run: ./.github/workflows/scripts/getSkillsService.sh
- name: download skill-service
run: |
mkdir skills-service
cd skills-service
curl -s https://api.github.com/repos/NationalSecurityAgency/skills-service/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
ls ./
cd ..
- name: setup npm links
run: ./.github/workflows/scripts/setupNpmLinks.sh
- name: build integration test apps
run: |
cd ./skills-client-integration
mvn --batch-mode clean install
cd ../
- name: start services for cypress tests
run: |
cd skills-client-integration/skills-int-e2e-test
npm install
npm run cyServices:start:skills-service:ci:expired-token
npm run cyServices:start:integration-apps
cd ../../
# - name: Run Cypress tests
# uses: cypress-io/github-action@v2
# with:
# working-directory: skills-client-integration/skills-int-e2e-test
# record: true
# parallel: false
# group: 'skills-client expired token tests'
# tag: "${{ github.workflow }}"
# spec: cypress/integration/timeout.specs.js
# env: 'timeout=true'
# env:
# # pass the Dashboard record key as an environment variable
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # pass GitHub token to allow accurately detecting a build vs a re-run build
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Cypress tests
run: |
cd skills-client-integration/skills-int-e2e-test
npm run cy:run:timeout
cd ../../
- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: result artifacts
path: |
./skills-service/*.jar
./skills-client-integration/skills-int-service/target/*.jar
./skills-client-integration/skills-int-e2e-test/target/logs/*.out
./skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
./skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
./skills-client-integration/skills-int-e2e-test/logs
./skills-client-integration/skills-int-e2e-test/cypress/videos
./skills-client-integration/skills-int-e2e-test/cypress/screenshots
./skills-client-integration/skills-int-e2e-test/cypress/snapshots/**/**/__diff_output__/*.png
./skills-client-integration/skills-int-e2e-test/cypress/snapshots/**/__diff_output__/*.png
+169
View File
@@ -0,0 +1,169 @@
# This is a basic workflow to help you get started with Actions
name: Continuous Integration with OAuth
on:
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
#on:
# push:
# paths-ignore:
# - 'README.md'
# - .github/workflows/skills-service-backward-compat.yml
# - .github/workflows/client-libs-backward-compat.yml
# pull_request:
# paths-ignore:
# - 'README.md'
# - .github/workflows/skills-service-backward-compat.yml
# - .github/workflows/client-libs-backward-compat.yml
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
services:
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: skillsPassword
POSTGRES_DB: skills
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- uses: actions/setup-java@v1
with:
java-version: '19' # The JDK version to make available on the path.
- name: Print Versions
run: |
mvn --version
java -version
npm -version
node --version
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: download skill-service
run: |
mkdir skills-service
cd skills-service
curl -s https://api.github.com/repos/NationalSecurityAgency/skills-service/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
ls ./
cd ..
- name: setup npm links
run: ./.github/workflows/scripts/setupNpmLinks.sh
- name: build integration test apps
run: |
cd ./skills-client-integration
mvn --batch-mode clean install
cd ../
- name: run hyrda oauth service
run: ./.github/workflows/scripts/runHydra.sh
- name: Check running containers
run: docker ps -a
- name: Caputre Hydra Oauth Service logs
run: |
mkdir -p ./skills-client-integration/skills-int-e2e-test/target/logs
docker logs hydra > ./skills-client-integration/skills-int-e2e-test/target/logs/hydra.out &
docker container logs -f hydra_consent > ./skills-client-integration/skills-int-e2e-test/target/logs/hydra_consent.out &
docker container logs -f hydra_postgres > ./skills-client-integration/skills-int-e2e-test/target/logs/hydra_postgres.out &
- name: Register hydra client
run: |
cd skills-client-integration/skills-int-e2e-test/hydra
docker-compose -f quickstart.yml exec -T hydra \
hydra clients create \
--endpoint http://localhost:4445/ \
--id skilltree-test \
--secret client-secret \
--grant-types authorization_code,refresh_token \
--response-types code \
--scope openid \
--callbacks http://localhost:8080/login/oauth2/code/hydra
- name: start services for OAuth cypress tests
run: |
cd skills-client-integration/skills-int-e2e-test
npm install
npm run cyServices:start:skills-service:ci:oauth
npm run cyServices:start:integration-apps:oauth
cd ../../
# - name: Run Cypress tests using OAuth
# uses: cypress-io/github-action@v2
# with:
# working-directory: skills-client-integration/skills-int-e2e-test
# record: true
# parallel: false
# group: 'skills-client oauth tests'
# tag: "${{ github.workflow }}"
# env: 'authMode=oauth'
# env:
# # pass the Dashboard record key as an environment variable
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # pass GitHub token to allow accurately detecting a build vs a re-run build
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Cypress tests
run: |
cd skills-client-integration/skills-int-e2e-test
npm run cy:run:oauth
cd ../../
- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: result artifacts
path: |
./skills-service/*.jar
./skills-client-integration/skills-int-service/target/*.jar
./skills-client-integration/skills-int-e2e-test/target/logs/*.out
./skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
./skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
./skills-client-integration/skills-int-e2e-test/logs
./skills-client-integration/skills-int-e2e-test/cypress/videos
./skills-client-integration/skills-int-e2e-test/cypress/screenshots
./skills-client-integration/skills-int-e2e-test/cypress/snapshots/**/**/__diff_output__/*.png
./skills-client-integration/skills-int-e2e-test/cypress/snapshots/**/__diff_output__/*.png
+128
View File
@@ -0,0 +1,128 @@
# This is a basic workflow to help you get started with Actions
name: Continuous Integration
on:
push:
paths-ignore:
- 'README.md'
- .github/workflows/skills-service-backward-compat.yml
- .github/workflows/client-libs-backward-compat.yml
pull_request:
paths-ignore:
- 'README.md'
- .github/workflows/skills-service-backward-compat.yml
- .github/workflows/client-libs-backward-compat.yml
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
services:
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: skillsPassword
POSTGRES_DB: skills
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- uses: actions/setup-java@v1
with:
java-version: '19' # The JDK version to make available on the path.
- name: Print Versions
run: |
mvn --version
java -version
npm -version
node --version
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: download skill-service
run: |
mkdir skills-service
cd skills-service
curl -s https://api.github.com/repos/NationalSecurityAgency/skills-service/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
ls ./
cd ..
- name: setup npm links
run: ./.github/workflows/scripts/setupNpmLinks.sh
- name: build integration test apps
env:
MAVEN_OPTS: -Xmx2048m
run: |
cd ./skills-client-integration
mvn --batch-mode clean install
cd ../
- name: start services for cypress tests
run: |
cd skills-client-integration/skills-int-e2e-test
npm install
npm run cyServices:start:skills-service:ci
npm run cyServices:start:integration-apps
cd ../../
- name: Run Cypress tests
run: |
cd skills-client-integration/skills-int-e2e-test
npm run cy:run
cd ../../
- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: result artifacts
path: |
./skills-service/*.jar
./skills-client-integration/skills-int-service/target/*.jar
./skills-client-integration/skills-int-e2e-test/target/logs/*.out
./skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
./skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
./skills-client-integration/skills-int-e2e-test/logs
./skills-client-integration/skills-int-e2e-test/cypress/videos
./skills-client-integration/skills-int-e2e-test/cypress/screenshots
./skills-client-integration/skills-int-e2e-test/cypress/snapshots/**/**/__diff_output__/*.png
./skills-client-integration/skills-int-e2e-test/cypress/snapshots/**/__diff_output__/*.png
@@ -0,0 +1,114 @@
# This is a basic workflow to help you get started with Actions
name: Client Libs Backward Compatibility
#on:
# push:
# paths-ignore:
# - 'README.md'
# pull_request:
# paths-ignore:
# - 'README.md'
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-client-libs-backward-compat:
# The type of runner that the job will run on
runs-on: ubuntu-latest
services:
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: skillsPassword
POSTGRES_DB: skills
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- uses: actions/setup-java@v1
with:
java-version: '19' # The JDK version to make available on the path.
- name: Print Versions
run: |
mvn --version
java -version
npm -version
node --version
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Download Releases to Test
run: |
mkdir -p skills-service-versions
cd skills-service-versions
curl -s https://api.github.com/repos/NationalSecurityAgency/skills-service/releases | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
ls ./
cd ../
- name: setup npm links
run: ./.github/workflows/scripts/setupNpmLinks.sh
- name: build integration test apps
run: |
cd ./skills-client-integration
mvn --batch-mode clean install
cd ../
- name: run backwards compat tests
run: |
cd skills-client-integration/skills-int-e2e-test
mvn --batch-mode clean package
export NO_COLOR=1
export CYPRESS_RECORD_KEY=${{ secrets.CYPRESS_RECORD_KEY }}
java -cp target/skills-int-e2e-test-*.jar -Dloader.main=skills.TestClientLibsBackwardsCompat org.springframework.boot.loader.launch.PropertiesLauncher -record -tag "${{ github.workflow }}" --minVersion "1.9.0"
cd ../../
- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: result artifacts
path: |
./skills-client-integration/skills-int-e2e-test/target/logs/*
./skills-client-integration/skills-int-e2e-test/target/skills-client/skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
./skills-client-integration/skills-int-e2e-test/target/skills-client/skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
./skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
./skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
+66
View File
@@ -0,0 +1,66 @@
# Copyright 2020 SkillTree
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env bash
echo "------- START: Build skills-service jar -------"
# exit if a command returns non-zero exit code
set -e
#set -o pipefail
BRANCH_NAME=$(git branch | grep \*)
myGitBranch=${BRANCH_NAME:2}
echo "My Git Branch: [${myGitBranch}]"
if [[ "$myGitBranch" == *"HEAD detached at pull"* ]]; then
echo 'We are on a pull-request branch'
pullNumber=$(echo "$myGitBranch" | gawk -F'/' '{print $2}' | cat)
echo "Looking for branch associated with PR#${pullNumber}"
myGitBranch=$(curl -s https://api.github.com/repos/NationalSecurityAgency/skills-client/pulls/"${pullNumber}" | jq -r '.head.ref')
echo "Found new Git Branch: [${myGitBranch}]"
echo "Checkout skill-service code and build it."
git clone https://github.com/NationalSecurityAgency/skills-service.git
cd ./skills-service/
echo "Default branch to consider [${myGitBranch}]"
matchingBranch=`git branch -a | grep "remotes/origin/${myGitBranch}" | gawk -F'remotes/origin/' '{print $2}' | cat`
echo "Matching branch to consider [${matchingBranch}]"
if [[ "$myGitBranch" == *\.X ]] || [[ "$myGitBranch" == "master" ]] || [[ -z "$matchingBranch" ]]
then
echo 'Did not find a matching branch. Downloading latest skills-service release'
mkdir skills-service
cd skills-service
curl -s https://api.github.com/repos/NationalSecurityAgency/skills-service/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
ls ./
cd ..
else
switchToBranch=$matchingBranch
echo "Found matching branch [${switchToBranch}]"
echo "Checking out [${switchToBranch}]"
git checkout ${switchToBranch} --
echo "git status:"
git status
export MAVEN_OPTS="-Xmx2048m"
mvn --batch-mode package -DskipTests
jar=$(ls ./service/target/*.jar)
mv $jar ./
cd ../
fi
fi
echo "------- DONE: Build skills-service jar -------"
@@ -21,12 +21,13 @@ cd skills-client-integration/skills-int-e2e-test
npm install
# start services and wait
npm run backend:start:ci &
npm run integration:start &
npm run backend:waitToStart
npm run integration:waitToStart
npm run cyServices:start:skills-service:ci
npm run cyServices:start:integration-apps
# run tests
npm run cy:run
npm run cyServices:kill
cd ../../
echo "------- DONE: Run Cypress Tests -------"
+39
View File
@@ -0,0 +1,39 @@
#!/bin/bash
# exit if a command returns non-zero exit code
set -e
set -o pipefail
DB=${DB:-postgres}
TRACING=${TRACING:-false}
PROMETHEUS=${PROMETHEUS:-false}
echo "PWD: "
echo $(pwd)
cd ./skills-client-integration/skills-int-e2e-test/hydra
DC="docker-compose -f quickstart.yml"
if [[ $DB == "mysql" ]]; then
DC+=" -f quickstart-mysql.yml"
fi
if [[ $DB == "postgres" ]]; then
DC+=" -f quickstart-postgres.yml"
fi
if [[ $TRACING == true ]]; then
DC+=" -f quickstart-tracing.yml"
fi
if [[ $PROMETHEUS == true ]]; then
DC+=" -f quickstart-prometheus.yml"
fi
DC+=" up --build -d"
$DC
declare -r HOST="localhost:4445/clients"
wait-for-url() {
echo "Waiting for hydra service $1 ..."
timeout -s TERM 45 bash -c \
'while [[ "$(curl -X GET -s -o /dev/null -w ''%{http_code}'' ${0})" != "200" ]];\
do echo "Waiting for ${0}" && sleep 2;\
done' ${1}
echo "OK!"
}
wait-for-url http://${HOST}
@@ -18,10 +18,10 @@ set -o pipefail
echo "------- START: Setup npm links -------"
cd skills-client-integration/skills-int-e2e-test
mvn --batch-mode clean package
mvn --batch-mode clean package -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
ls -la target/skills-int-e2e-test-*.jar
du -sh target/*
java --version
java -cp target/skills-int-e2e-test-*.jar -Dloader.main=skills.SetupNpmLinks org.springframework.boot.loader.PropertiesLauncher
java -cp target/skills-int-e2e-test-*.jar -Dloader.main=skills.SetupNpmLinks org.springframework.boot.loader.launch.PropertiesLauncher
cd ../../
echo "------- DONE: Setup npm links -------"
@@ -0,0 +1,110 @@
# This is a basic workflow to help you get started with Actions
name: Skills-service Backward Compatibility
#on:
# push:
# paths-ignore:
# - 'README.md'
# pull_request:
# paths-ignore:
# - 'README.md'
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-skill-service-backward-compat:
# The type of runner that the job will run on
runs-on: ubuntu-latest
services:
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: skillsPassword
POSTGRES_DB: skills
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: |
11
19
- name: Print Versions
run: |
mvn --version
java -version
npm -version
node --version
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# - name: build skill-service
# run: ./.github/workflows/scripts/getSkillsService.sh
- name: download skill-service
run: |
mkdir skills-service
cd skills-service
curl -s https://api.github.com/repos/NationalSecurityAgency/skills-service/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
ls ./
cd ..
- name: run backwards compat tests
run: |
cd skills-client-integration/skills-int-e2e-test
mvn --batch-mode clean package
export NO_COLOR=1
java -jar target/skills-int-e2e-test-*.jar
cd ../../
- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: result artifacts
path: |
./skills-client-integration/skills-int-e2e-test/target/logs/*
./skills-client-integration/skills-int-e2e-test/target/skills-client/skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
./skills-client-integration/skills-int-e2e-test/target/skills-client/skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
./skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
./skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
/home/runner/.npm/_logs/*
+9
View File
@@ -6,3 +6,12 @@
.history
/target/
/skills-client-integration/skills-int-e2e-test/logs/
/skills-client-integration/skills-int-e2e-test/cypress/videos/
/skills-client-integration/skills-int-e2e-test/nohup.out
/skills-client-vue/package-lock.json
/skills-client-react/package-lock.json
/skills-client-js/package-lock.json
/skills-client-ng/package-lock.json
/skills-client-ng/dist/
/skills-client-ng/projects/skilltree/skills-client-ng/src/version.js
-82
View File
@@ -1,82 +0,0 @@
stages:
- build
- testCypress
- pushToNexus
- deploy
build:
image: maven:3.6.0-jdk-11
stage: build
before_script:
- ./skills-client-integration/ci/setupNode.sh
- ./skills-client-integration/ci/setupRepos.sh
script:
- ./skills-client-integration/ci/getSkillsService.sh
- ./skills-client-integration/ci/setupNpmLinks.sh
- cd ./skills-client-integration
- mvn --batch-mode clean install
- cd ../
artifacts:
paths:
- ./skills-client-integration/skills-int-service/target/*.jar
- ./skills-client-integration/skills-int-service/target/*.log
- ./skills-client-integration/skills-int-e2e-test/target/*.jar
- ./skills-client-integration/skills-int-e2e-test/target/*.log
- ./skills-client-integration/target/*.log
- ./skills-service/*.jar
testCypress:
image: olehsrh/cypress:1
stage: testCypress
before_script:
- ./skills-client-integration/ci/setupRepos.sh
script:
- ./skills-client-integration/ci/runCypressTests.sh
artifacts:
when: always
paths:
- ./skills-client-integration/skills-int-e2e-test/cypress/videos/*.mp4
- ./skills-client-integration/skills-int-e2e-test/cypress/screenshots/**/*.png
expire_in: 1 day
pushToNexus:
image: maven:3.6.0-jdk-11
stage: pushToNexus
before_script:
- ./skills-client-integration/ci/setupRepos.sh
script:
- cd skills-client-integration/skills-int-service
- jar=$(ls ./target/skills-int-service-*.jar)
- echo $jar
- mvn --batch-mode deploy:deploy-file -DpomFile=./pom.xml -Dfile=${jar} -Durl=http://${NEXUS_SERVER}/repository/maven-snapshots/ -DrepositoryId=nexus-snapshots
artifacts:
paths:
- skills-client-integration/skills-int-service/target/skills-int-service-*.jar
only:
refs:
- branches
variables:
- $BRANCH_TO_DEPLOY_SKILLS_CLIENT == $CI_COMMIT_REF_NAME
deploy:
image: alpine:latest
stage: deploy
before_script:
- apk --update --no-cache add sshpass openssh git
script:
- git clone https://${GITLAB_DEPLOY_USERNAME}:${GITLAB_DEPLOY_PASSWORD}@gitlab.evoforge.org/skills/skills-deploy.git
- TIMESTAMP=`date +%s`
- TMP_DIR="skills-int-service_${TIMESTAMP}"
- DEST_PATH="/home/${CI_USERNAME}/$TMP_DIR"
- sshpass -p $CI_PASSWORD ssh -o StrictHostKeyChecking=no -o PreferredAuthentications=password -o PubkeyAuthentication=no $CI_USERNAME@$CI_IP "rm -rf /home/${CI_USERNAME}/skills-int-service_* && mkdir -p ${DEST_PATH}"
- cp skills-client-integration/skills-int-service/target/skills-int-service-*.jar skills-int-service.jar
- sshpass -p $CI_PASSWORD scp -r skills-deploy ${CI_USERNAME}@${CI_IP}:${DEST_PATH}
- sshpass -p $CI_PASSWORD scp -r skills-int-service.jar ${CI_USERNAME}@${CI_IP}:${DEST_PATH}/skills-deploy/skills-client-integration/
- sshpass -p $CI_PASSWORD ssh -o StrictHostKeyChecking=no -o PreferredAuthentications=password -o PubkeyAuthentication=no $CI_USERNAME@$CI_IP "cd ${DEST_PATH}/skills-deploy/skills-client-integration && ./runDeploy.sh"
only:
refs:
- branches
variables:
- $BRANCH_TO_DEPLOY_SKILLS_CLIENT == $CI_COMMIT_REF_NAME
+12
View File
@@ -0,0 +1,12 @@
## Legal
Consistent with Section D.6. of the GitHub Terms of Service as of 2019, and Section 5. of the Apache License, Version 2.0, the project maintainer for this project accepts contributions using the inbound=outbound model.
When you submit a pull request to this repository (inbound), you are agreeing to license your contribution under the same terms as specified in [LICENSE] (outbound).
This is an open source project.
Contributions you make to this public U.S. Government ("USG") repository are completely voluntary.
When you submit an issue, bug report, question, enhancement, pull request, etc., you are offering your contribution without expectation of payment, you expressly waive any future pay claims against the USG related to your contribution, and you acknowledge that this does not create an obligation on the part of the USG of any kind.
Furthermore, your contributing to this project does not create an employer-employee relationship between the United States ("U.S.") Government and the contributor.
[LICENSE]: LICENSE.txt
+13
View File
@@ -0,0 +1,13 @@
# Disclaimer of Warranty
This Work is provided "AS IS."
Any express or implied warranties, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed.
In no event shall the United States Government be liable for any direct, indirect, incidental, special, exemplary or consequential damages (including, but not limited to, procurement of substitute goods or services, loss of use, data or profits, or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this Work, even if advised of the possibility of such damage.
The User of this Work agrees to hold harmless and indemnify the United States Government, its agents and employees from every claim or liability (whether in tort or in contract), including attorney's fees, court costs, and expenses, arising in direct consequence of Recipient's use of the item, including, but not limited to, claims or liabilities made for injury to or death of personnel of User or third parties, damage to or destruction of property of User or third parties, and infringement or other violations of intellectual property or technical data rights.
# Disclaimer of Endorsement
Nothing in this Work is intended to constitute an endorsement, explicit or implied, by the United States Government of any particular manufacturer's product or service.
Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise, in this Work does not constitute an endorsement, recommendation, or favoring by the United States Government and shall not be used for advertising or product endorsement purposes.
+19
View File
@@ -0,0 +1,19 @@
## Licensing Intent
The intent is that this software and documentation ("Project") should be treated
as if it is licensed under the license associated with the Project ("License")
in the LICENSE file. However, because we are part of the United States (U.S.)
Federal Government, it is not that simple.
The portions of this Project written by U.S. Federal Government employees within
the scope of their federal employment are ineligible for copyright protection in
the U.S.; this is generally understood to mean that these portions of the
Project are placed in the public domain.
In countries where copyright protection is available (which does not include the
U.S.), contributions made by U.S. Federal Government employees are released
under the License. Merged contributions from private contributors are released
under the License.
The SkillTree software is released under the Apache License, Version 2.0
("Apache 2.0").
+23
View File
@@ -0,0 +1,23 @@
# SkillTree Client Libraries
SkillTree is an innovative approach to implementing application training. SkillTree skills-client project is an assembly of
client libraries that facilitate rapid integration with the SkillTree service.
To learn about the SkillTree platform please visit our [Official Documentation](https://code.nsa.gov/skills-docs/).
These pages provide in-depth guidance on the installation, usage and contribution.
## Workflow Status
[![CI Badge](https://github.com/NationalSecurityAgency/skills-client/workflows/Continuous%20Integration/badge.svg)](https://github.com/NationalSecurityAgency/skills-client/actions?query=workflow%3A%22Continuous+Integration%22)
[![Run integration tests using OAuth](https://github.com/NationalSecurityAgency/skills-client/workflows/Continuous%20Integration%20with%20OAuth/badge.svg)](https://github.com/NationalSecurityAgency/skills-client/actions?query=workflow%3A%22Continuous+Integration+with+OAuth%22)
[![Run integration tests for expired tokens](https://github.com/NationalSecurityAgency/skills-client/workflows/Continuous%20Integration%20expired%20token%20tests/badge.svg)](https://github.com/NationalSecurityAgency/skills-client/actions?query=workflow%3A%22Continuous+Integration+expired+token+tests%22)
[![Skills-service Backward Compatibility](https://github.com/NationalSecurityAgency/skills-client/workflows/Skills-service%20Backward%20Compatibility/badge.svg)](https://github.com/NationalSecurityAgency/skills-client/actions?query=workflow%3A%22Skills-service+Backward+Compatibility%22)
[![Client Libs Backward Compatibility](https://github.com/NationalSecurityAgency/skills-client/workflows/Client%20Libs%20Backward%20Compatibility/badge.svg)](https://github.com/NationalSecurityAgency/skills-client/actions?query=workflow%3A%22Client+Libs+Backward+Compatibility%22)
-2
View File
@@ -1,2 +0,0 @@
# skills-client
+1
View File
@@ -7,6 +7,7 @@ target
skills-example-service/src/main/resources/public/native
skills-example-service/src/main/resources/public/vuejs
skills-example-service/src/main/resources/public/react
skills-example-service/src/main/resources/public/angular
.DS_Store
node_modules
@@ -1,58 +0,0 @@
# Copyright 2020 SkillTree
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env bash
echo "------- START: Build skills-service jar -------"
# exit if a command returns non-zero exit code
set -e
#set -o pipefail
apt-get install -y gawk
myGitBranch=${CI_COMMIT_REF_NAME}
echo "My Git Branch: [${myGitBranch}]"
echo "Checkout skill-service code and build it."
git clone https://${DEPLOY_TOKEN_SKILLS_SERVICE}:${DEPLOY_TOKEN_SKILLS_SERVICE_PASS}@gitlab.evoforge.org/skills/skills-service.git
cd ./skills-service/
switchToBranch=$BRANCH_TO_DEPLOY_SKILLS_SERVICE
echo "Default branch to consider [${switchToBranch}]"
matchingBranch=`git branch -a | grep "remotes/origin/${myGitBranch}" | gawk -F'remotes/origin/' '{print $2}' | cat`
echo "Matching branch to consider [${matchingBranch}]"
if [[ "$myGitBranch" == *\.X ]] || [[ "$myGitBranch" == "master" ]] || [[ -z "$matchingBranch" ]]
then
echo "Building skill-service from configured [${switchToBranch}] branch"
else
switchToBranch=$matchingBranch
echo "Found matching branch [${switchToBranch}]"
fi
if [[ -z "$switchToBranch" ]]
then
exit -1
fi
echo "Checking out [${switchToBranch}]"
git checkout ${switchToBranch} --
echo "git status:"
git status
mvn --batch-mode package -DskipTests
jar=$(ls ./backend/target/*.jar)
mv $jar ./
cd ../
echo "------- DONE: Build skills-service jar -------"
@@ -1,24 +0,0 @@
# Copyright 2020 SkillTree
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env bash
# exit if a command returns non-zero exit code
set -e
set -o pipefail
echo "------- START: Setup Repos -------"
echo "@skills:registry=http://$NEXUS_SERVER/repository/skills-registry/" > ~/.npmrc
cat ~/.npmrc
mkdir -p ~/.m2
cat ./skills-client-integration/skills-int-e2e-test/serverConfigs/settings.xml | sed s/NEXUS_SERVER/$NEXUS_SERVER/ | sed s/NEXUS_PASS/$NEXUS_PASS/ > ~/.m2/settings.xml
cat ~/.m2/settings.xml
echo "------- DONE: Setup Repos -------"
@@ -2,7 +2,8 @@
"ignore": [ ".git", "coverage", ".*/**", ".*", "*.iml", "babel.config.js",
"rollup.config.js", "app/assets/**", "target/**", "pom.xml",
"build/**", "**/robots.txt", "**.svg", "vue.config.js",
"cypress/videos/**", "**/*.jar", "**.xml", "src/license/*.properties"
"cypress/videos/**", "**/*.jar", "**.xml", "src/license/*.properties",
"nohup.out", "logs/*", "**.patch", "**.yml"
],
"license": "../license-add/LICENSE-HEADER.txt",
"licenseFormats": {
+5 -24
View File
@@ -7,13 +7,13 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<version>3.2.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>skills</groupId>
<artifactId>skills-client-integration</artifactId>
<packaging>pom</packaging>
<version>2.0.0-SNAPSHOT</version>
<version>3.5.0-SNAPSHOT</version>
<licenses>
<license>
@@ -25,34 +25,15 @@
<modules>
<module>skills-int-client-js</module>
<module>skills-int-client-vue</module>
<module>skills-int-client-react</module>
<module>skills-int-service</module>
<module>skills-int-e2e-test</module>
</modules>
<properties>
<!--suppress UnresolvedMavenProperty -->
<nexusServer>${nexus.url}</nexusServer>
<node.version>v11.6.0</node.version>
<frontend-maven-plugin.version>1.10.3</frontend-maven-plugin.version>
<node.version>v14.15.0</node.version>
<java.version>19</java.version>
</properties>
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>Release Repository</name>
<uniqueVersion>false</uniqueVersion>
<url>
${nexusServer}/repository/maven-releases/
</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>Snapshot Repository</name>
<uniqueVersion>true</uniqueVersion>
<url>
${nexusServer}/repository/maven-snapshots/
</url>
</snapshotRepository>
</distributionManagement>
</project>
@@ -27,15 +27,19 @@ limitations under the License.
<script type="text/javascript" src="./assets/js/js-beautify/js/lib/beautify.js"></script>
<script type="text/javascript" src="./assets/js/bootstrap/dist/js/bootstrap.bundle.js"></script>
<script type="text/javascript" src="assets/js/@skills/skills-client-js/dist/skills-client-js.umd.min.js"></script>
<script type="text/javascript" src="assets/js/@skilltree/skills-client-js/dist/skills-client-js.umd.min.js"></script>
<script type="text/javascript">
const params = new URLSearchParams(window.location.search);
const isSummaryOnly = params.get('isSummaryOnly') ? JSON.parse(params.get('isSummaryOnly')) : false;
const internalBackButton = params.get('internalBackButton') ? JSON.parse(params.get('internalBackButton')) : false;
let clientDisplay = null;
const options = {
autoScrollStrategy: 'top-of-page',
isSummaryOnly,
internalBackButton,
};
const themes = {
default: {
@@ -85,6 +89,16 @@ limitations under the License.
window.location.search = params;
};
const navigate = () => {
clientDisplay.navigate('/subjects/subj0');
}
const setInternalBackButton = () => {
const params = new URLSearchParams(window.location.search);
params.set('internalBackButton', !options.internalBackButton);
window.location.search = params;
}
const getTheme = () => {
const params = new URLSearchParams(window.location.search);
let themeName = params.get('themeName') ? params.get('themeName') : 'Bright (default)';
@@ -98,6 +112,9 @@ limitations under the License.
return version;
};
const handleRouteChanged = (newPath) => {
document.querySelector('#skillsDisplayPath').innerHTML = `Skills Display Path: [${newPath}]`;
};
axios.get("/api/config")
.then((result) => {
SkillsClient.SkillsConfiguration.configure(result.data);
@@ -116,10 +133,11 @@ limitations under the License.
defaultThemeElement.classList.add('active');
}
const clientDisplay = new SkillsClient.SkillsDisplayJS({
clientDisplay = new SkillsClient.SkillsDisplayJS({
options,
version: getVersion(),
theme: theme.theme,
handleRouteChanged: handleRouteChanged,
});
clientDisplay.attachTo(document.querySelector('#skills-client-display'));
};
@@ -143,10 +161,10 @@ limitations under the License.
<ul class="navbar-nav flex-row mr-auto">
<li class="nav-item pr-3">
<a class="nav-link" href="index.html">Report Skill Events</a>
<a class="nav-link" href="index.html" data-cy="reportSkillsLink">Report Skill Events</a>
</li>
<li class="nav-item active pr-3">
<a class="nav-link" href="javascript:void(0)">User Display</a>
<a class="nav-link" href="javascript:void(0)" data-cy="userDisplayLink">User Display</a>
</li>
</ul>
</nav>
@@ -169,7 +187,17 @@ limitations under the License.
<input type="checkbox" class="custom-control-input" id="displayTypeControl" onclick="setDisplayType()" checked>
<label class="custom-control-label" for="displayTypeControl">Summary Only</label>
</div>
<div class="d-inline custom-control custom-checkbox mx-2">
<input type="checkbox" class="custom-control-input" id="internalBackButtonControl" onclick="setInternalBackButton()" checked>
<label class="custom-control-label" for="internalBackButtonControl">Internal Back Button</label>
</div>
<button class="btn btn-outline-primary" type="button" data-cy="navigateButton" onclick="navigate()">
Navigate
</button>
</div>
<div>
<span id="skillsDisplayPath" data-cy="skillsDisplayPath"></span>
</div>
<div
style="min-height: 860px">
@@ -192,4 +220,5 @@ limitations under the License.
<script type="text/javascript">
document.getElementById("displayTypeControl").checked = isSummaryOnly;
document.getElementById("internalBackButtonControl").checked = internalBackButton;
</script>
@@ -0,0 +1,91 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Skills Examples - Native Javascript</title>
<link rel="stylesheet" type="text/css" href="./assets/app.css"/>
<link rel="stylesheet" type="text/css" href="./assets/js/bootstrap/dist/css/bootstrap.css">
<script type="text/javascript" src="./assets/js/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="./assets/js/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="./assets/js/js-beautify/js/lib/beautify.js"></script>
<script type="text/javascript" src="./assets/js/bootstrap/dist/js/bootstrap.bundle.js"></script>
<script type="text/javascript" src="assets/js/@skilltree/skills-client-js/dist/skills-client-js.umd.min.js"></script>
<script type="text/javascript">
axios.get("/api/config")
.then((result) => {
SkillsClient.SkillsConfiguration.configure(result.data);
});
SkillsClient.SkillsConfiguration.afterConfigure().then(() => {
const initializeSkillsDisplay = () => {
const clientDisplay = new SkillsClient.SkillsDisplayJS();
clientDisplay.attachTo(document.querySelector('#skills-client-display'));
};
if (document.readyState === "complete"
|| document.readyState === "loaded"
|| document.readyState === "interactive") {
initializeSkillsDisplay();
} else {
document.addEventListener("DOMContentLoaded", initializeSkillsDisplay);
}
});
</script>
</head>
<body>
<div id="app">
<div>
<div>
<nav class="navbar navbar-dark bg-info">
<a href="#" class="navbar-brand">Native Javascript Integration Examples</a>
<ul class="navbar-nav flex-row mr-auto">
<li class="nav-item pr-3">
<a class="nav-link" href="index.html" data-cy="reportSkillsLink">Report Skill Events</a>
</li>
<li class="nav-item active pr-3">
<a class="nav-link" href="javascript:void(0)" data-cy="userDisplayLink">User Display</a>
</li>
</ul>
</nav>
</div>
<div class="container-fluid mt-3">
<div class="container">
<div
style="min-height: 860px">
<div id="skills-client-display" />
</div>
</div>
</div>
<footer class="text-muted bg-light py-5">
<div class="container">
<p>Native Javascript Examples Guide</p>
<p></p>
</div>
</footer>
</div>
</div>
</body>
</html>
@@ -26,14 +26,18 @@ limitations under the License.
<script type="text/javascript" src="./assets/js/js-beautify/js/lib/beautify.js"></script>
<script type="module">
import { SkillsReporter, SkillsConfiguration } from './assets/js/@skills/skills-client-js/dist/skills-client-js.esm.min.js'
import { SkillsReporter, SkillsConfiguration, SkillsLevelJS, Logger } from './assets/js/@skilltree/skills-client-js/dist/skills-client-js.esm.min.js'
axios.get("/api/config")
.then((result) => {
SkillsConfiguration.configure(result.data);
});
SkillsReporter.addSuccessHandler((result) => {
SkillsReporter.addSuccessHandler((result) => {
document.querySelector('#global-event-result-container-js').innerHTML = JSON.stringify(result, null, 2);
});
SkillsReporter.addErrorHandler((result) => {
document.querySelector('#global-event-result-container-js').innerHTML = JSON.stringify(result, null, 2);
});
@@ -41,15 +45,30 @@ limitations under the License.
SkillsReporter.reportSkill(skillId)
.then((response) => {
document.querySelector('#report-result-container').innerHTML = JSON.stringify(response, null, 2);
});
}).catch((err) => {
document.querySelector('#report-result-container').innerHTML = JSON.stringify(err, null, 2);
});
};
document.querySelector('#exampleDirectiveClickEvent').addEventListener('click', () => { reportSkill('IronMan'); });
document.querySelector('#exampleDirectiveClickEvent').addEventListener('click', () => {
var skillId = document.getElementById('skillId').value;
reportSkill(skillId);
});
const toggleAllEvents = () => {
const notifyIfSkillNotApplied = document.querySelector('#all-events-check').checked
SkillsReporter.configure( { notifyIfSkillNotApplied });
}
document.querySelector('#all-events-check').addEventListener('click', toggleAllEvents);
toggleAllEvents();
SkillsConfiguration.afterConfigure()
.then(() => {
if (window.Cypress) {
window.skillsLogger = Logger;
}
const skillLevel = new SkillsLevelJS();
skillLevel.attachTo('#skillLevel')
});
</script>
</head>
@@ -63,12 +82,15 @@ limitations under the License.
<ul class="navbar-nav flex-row mr-auto">
<li class="nav-item active pr-3">
<a class="nav-link" href="javascript:void(0)">Report Skill Events</a>
<a class="nav-link" href="javascript:void(0)" data-cy="reportSkillsLink">Report Skill Events</a>
</li>
<li class="nav-item pr-3">
<a class="nav-link" href="clientDisplay.html">User Display</a>
<a class="nav-link" href="clientDisplay.html" data-cy="userDisplayLink">User Display</a>
</li>
</ul>
<button type="button" class="btn btn-primary">
<span id="skillLevel"/>
</button>
</nav>
</div>
@@ -77,13 +99,13 @@ limitations under the License.
<h2>Report Skills Examples</h2>
<div class="text-primary">Global Event Result:</div>
<div>
Include Skills Not Applied: <input type="checkbox" id="all-events-check">
Include Skills Not Applied: <input type="checkbox" id="all-events-check" checked>
</div>
<div id="globalEventResultDiv" class="border rounded p-3 mb-5 bg-light">
<pre id="global-event-result-container-js" data-cy="globalEventResult"></pre>
</div>
<div>
<h5 class="text-info"><strong>Skills Directive - Click Event</strong></h5>
<h5 class="text-info"><strong>Report Any Skill</strong></h5>
<div class="card card-body bg-light">
<pre class="m-0 sample-code">
<code class="javascript">SkillsReporter.reportSkill(this.skill)
@@ -93,11 +115,18 @@ limitations under the License.
</div>
<div class="card card-body mt-3">
<div class="text-primary">Skill Id:</div>
<div class="code-example">
<input class="form-control" id="skillId" type="text" value="IronMan" />
</div>
<div>
<div id="exampleDirectiveClickEvent">
<button
class="btn btn-outline-primary">
Report Skill
</button>
<button
data-cy="exampleDirectiveClickEventButton"
class="btn btn-outline-primary">
Report Skill
</button>
</div>
</div>
<hr>
<div class="text-primary">Result:</div>
@@ -1,12 +1,12 @@
{
"name": "skills-int-client-js",
"version": "2.0.0",
"version": "3.5.0",
"license": "Apache-2.0",
"description": "SkillTree Client Lib Integration Tests - Native JS",
"main": "index.js",
"scripts": {
"postinstall": "node copyDeps.js",
"serve": "npx live-server --no-browser --port=8092 --open=app --cors --proxy=/api:http://localhost:8090/api --proxy=/native:http://localhost:8092/app --proxy=/assets:http://localhost:8092/app/assets",
"serve": "npm install && npx live-server --no-browser --port=8092 --open=app --cors --proxy=/api:http://localhost:8090/api --proxy=/native:http://localhost:8092/app --proxy=/assets:http://localhost:8092/app/assets",
"test": "npm run test",
"licenseDepCheck": "license-checker --production --onlyAllow='MIT;ISC;Apache-2.0' --summary",
"licenseHeaderCheck": "license-check-and-add check -f '../license-add/license-add-config.json'",
@@ -16,16 +16,16 @@
},
"author": "SkillTree Team",
"dependencies": {
"@skills/skills-client-js": "2.0.0",
"axios": "^0.19.0",
"bootstrap": "4.3.1",
"jquery": "^3.4.1",
"js-beautify": "1.10.2"
"@skilltree/skills-client-js": "3.5.0",
"axios": "1.6.0",
"bootstrap": "4.5.2",
"jquery": "3.5.1",
"js-beautify": "1.13.0"
},
"devDependencies": {
"fs-extra": "^8.1.0",
"license-check-and-add": "^3.0.4",
"license-checker": "^25.0.1",
"fs-extra": "8.1.0",
"license-check-and-add": "3.0.4",
"license-checker": "25.0.1",
"live-server": "1.2.1"
}
}
@@ -7,7 +7,7 @@
<parent>
<groupId>skills</groupId>
<artifactId>skills-client-integration</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>3.5.0-SNAPSHOT</version>
</parent>
<artifactId>skills-int-client-js</artifactId>
@@ -21,7 +21,7 @@
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.6</version>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<installDirectory>target</installDirectory>
</configuration>
@@ -0,0 +1,18 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support
# You can see what browsers were selected by your queries by running:
# npx browserslist
last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.ts]
quote_type = single
[*.md]
max_line_length = off
trim_trailing_whitespace = false
@@ -0,0 +1,49 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out
# dependencies
/node_modules
# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
# System Files
.DS_Store
Thumbs.db
package-lock.json
projects/skilltree/skills-client-ng/src/version.js
@@ -0,0 +1 @@
package-lock=false
@@ -0,0 +1,42 @@
<!---
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# SkillsIntClientNg
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.2.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
@@ -0,0 +1,129 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"skills-int-client-ng": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": [
"axios",
"highlight.js",
"lodash/debounce",
"js-beautify"
],
"preserveSymlinks": true,
"outputPath": "dist/skills-int-client-ng",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css",
"./node_modules/bootstrap/dist/css/bootstrap.css",
"./node_modules/highlight.js/styles/github.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.min.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "skills-int-client-ng:build"
},
"configurations": {
"production": {
"browserTarget": "skills-int-client-ng:build:production"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "skills-int-client-ng:serve"
},
"configurations": {
"production": {
"devServerTarget": "skills-int-client-ng:serve:production"
}
}
}
}
}},
"defaultProject": "skills-int-client-ng"
}
@@ -0,0 +1,51 @@
/*
* Copyright 2020 SkillTree
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
capabilities: {
browserName: 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.json')
});
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY
}
}));
}
};
@@ -0,0 +1,38 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('skills-int-client-ng app is running!');
});
afterEach(async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(jasmine.objectContaining({
level: logging.Level.SEVERE,
} as logging.Entry));
});
});
@@ -0,0 +1,26 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { browser, by, element } from 'protractor';
export class AppPage {
navigateTo(): Promise<unknown> {
return browser.get(browser.baseUrl) as Promise<unknown>;
}
getTitleText(): Promise<string> {
return element(by.css('app-root .content span')).getText() as Promise<string>;
}
}
@@ -0,0 +1,14 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es2018",
"types": [
"jasmine",
"jasminewd2",
"node"
]
}
}
@@ -0,0 +1,47 @@
/*
* Copyright 2020 SkillTree
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/skills-int-client-ng'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
@@ -0,0 +1,13 @@
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,23 @@
{
"ignore": [ ".git", "coverage", ".*/**", ".*", "*.iml", "tsconfig.*", "skills.d.ts", "angular.json", "pom.xml"],
"license": "license-add/LICENSE-HEADER.txt",
"licenseFormats": {
"js": {
"prepend": "/*",
"append": " */",
"eachLine": {
"prepend": " * "
}
},
"dotfile": {
"eachLine": {
"prepend": "# "
}
},
"md": {
"prepend": "<!---",
"append": " -->"
}
},
"trailingWhitespace": "TRIM"
}
@@ -0,0 +1,29 @@
/*
* Copyright 2020 SkillTree
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = {
packages: {
'@skilltree/skills-client-ng': {
ignorableDeepImportMatchers: [
/lodash\//
]
},
'ngx-highlightjs': {
ignorableDeepImportMatchers: [
/highlight/
]
},
}
};
@@ -0,0 +1,67 @@
{
"name": "skills-int-client-ng",
"version": "3.6.0",
"license": "Apache-2.0",
"description": "SkillTree Client Lib - Angular",
"author": "SkillTree Team",
"scripts": {
"licenseDepCheck2": "license-checker --production --onlyAllow='MIT;ISC;Apache-2.0;0BSD' --summary",
"licenseDepCheck": "license-checker --production --onlyAllow='MIT;ISC;BSD-3-Clause;Apache-2.0;0BSD;CC-BY-4.0' --summary",
"licenseHeaderCheck": "license-check-and-add check -f '../license-add/license-add-config.json'",
"licenseHeaderAdd": "license-check-and-add add -f ../license-add/license-add-config.json",
"licenseCheck": "npm run licenseHeaderCheck && npm run licenseDepCheck ",
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"serve": "npm run start",
"build": "npm run licenseCheck && ng build --configuration production --deploy-url=/angular/",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"dependencies": {
"@angular/animations": "14.3.0",
"@angular/common": "14.3.0",
"@angular/compiler": "14.3.0",
"@angular/core": "14.3.0",
"@angular/forms": "14.3.0",
"@angular/platform-browser": "14.3.0",
"@angular/platform-browser-dynamic": "14.3.0",
"@angular/router": "14.3.0",
"@ng-bootstrap/ng-bootstrap": "13.0.0",
"@popperjs/core": "2.11.8",
"@skilltree/skills-client-ng": "3.6.0",
"@types/js-beautify": "1.11.0",
"axios": "1.6.0",
"bootstrap": "4.5.3",
"highlight.js": "11.3.1",
"jquery": "3.5.1",
"js-beautify": "1.13.0",
"ngx-highlightjs": "4.1.2",
"popper.js": "^1.16.1",
"rxjs": "6.6.3",
"tslib": "2.0.3",
"zone.js": "0.12.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "14.2.11",
"@angular/cli": "14.2.11",
"@angular/compiler-cli": "14.3.0",
"@types/jasmine": "3.6.0",
"@types/jasminewd2": "2.0.8",
"@types/node": "14.11.8",
"codelyzer": "6.0.1",
"jasmine-core": "3.6.0",
"jasmine-spec-reporter": "6.0.0",
"karma": "6.4.1",
"karma-chrome-launcher": "3.1.0",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.5.4",
"license-check-and-add": "3.0.4",
"license-checker": "25.0.1",
"protractor": "7.0.0",
"ts-node": "9.0.0",
"tslint": "6.1.3",
"typescript": "4.6.2"
}
}
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>skills</groupId>
<artifactId>skills-client-integration</artifactId>
<version>3.5.0-SNAPSHOT</version>
</parent>
<artifactId>skills-int-client-ng</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<installDirectory>target</installDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
<!--TODO: uncomment when we have at least 1 unit test-->
<!--<execution>-->
<!--<id>npm run test</id>-->
<!--<goals>-->
<!--<goal>npm</goal>-->
<!--</goals>-->
<!--<phase>test</phase>-->
<!--<configuration>-->
<!--<arguments>run unit</arguments>-->
<!--</configuration>-->
<!--</execution>-->
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,7 @@
{
"/api":
{
"target": "http://localhost:8090",
"secure": false
}
}
@@ -0,0 +1,39 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ReportSkillsComponent } from './components/report-skills/report-skills.component';
import { SkillsDisplayComponent } from './components/skills-display/skills-display.component';
const routes: Routes = [{
path: '',
redirectTo: 'reportSkills',
pathMatch: 'full'
}, {
path: 'angular/reportSkills',
component: ReportSkillsComponent
}, {
path: 'angular/showSkills',
component: SkillsDisplayComponent
}
];
@NgModule({
imports: [RouterModule.forRoot(routes, { anchorScrolling: 'enabled'})],
exports: [RouterModule]
})
export class AppRoutingModule { }
@@ -13,12 +13,3 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package skills.backwardsCompat
import groovy.transform.ToString
@ToString(includeNames = true)
class TestDeps {
String projName
List<Deps> runWithDeps
}
@@ -0,0 +1,21 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div>
<app-navigation></app-navigation>
<div class="container-fluid mt-3">
<router-outlet></router-outlet>
</div>
</div>
@@ -0,0 +1,50 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title 'skills-int-client-ng'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('skills-int-client-ng');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement;
expect(compiled.querySelector('.content span').textContent).toContain('skills-int-client-ng app is running!');
});
});
@@ -0,0 +1,25 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'skills-int-client-ng';
}
@@ -0,0 +1,72 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { HighlightModule, HIGHLIGHT_OPTIONS } from 'ngx-highlightjs';
import { SkillsLevelModule, SkillsDisplayModule, SkilltreeModule } from '@skilltree/skills-client-ng'
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { NavigationComponent } from './components/navigation/navigation.component';
import { CodeExampleLayoutComponent } from './components/report-skills/code-example/code-example-layout.component';
import { ButtonCodeExampleComponent } from './components/report-skills/code-example/button-code-example.component';
import { InputCodeExampleComponent } from './components/report-skills/code-example/input-code-example.component';
import { AnySkillCodeExampleComponent } from './components/report-skills/code-example/anyskill-code-example.component';
import { ExampleService } from './components/report-skills/code-example/example.service';
import { ReportSkillsComponent } from './components/report-skills/report-skills.component';
import { SkillsDisplayComponent } from './components/skills-display/skills-display.component';
import { PlaceholderDirective } from './directives/placeholder.directive';
@NgModule({
declarations: [
AppComponent,
ReportSkillsComponent,
NavigationComponent,
SkillsDisplayComponent,
CodeExampleLayoutComponent,
ButtonCodeExampleComponent,
AnySkillCodeExampleComponent,
InputCodeExampleComponent,
PlaceholderDirective
],
imports: [
BrowserModule,
AppRoutingModule,
NgbModule,
FormsModule,
HighlightModule,
SkillsLevelModule,
SkilltreeModule,
SkillsDisplayModule,
RouterModule.forRoot([
{ path: '', component: ReportSkillsComponent },
])
],
providers: [
ExampleService,
{
provide: HIGHLIGHT_OPTIONS,
useValue: {
fullLibraryLoader: () => import('highlight.js'),
}
}
],
bootstrap: [AppComponent]
})
export class AppModule { }
@@ -13,13 +13,3 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package skills.backwardsCompat
import groovy.transform.ToString
@ToString(includeNames = true)
class Deps {
String uuid = UUID.randomUUID().toString()
List<Dep> deps
String projName
}
@@ -0,0 +1,35 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div>
<div>
<nav class="navbar navbar-dark bg-info">
<a href="/angular/reportSkills" class="navbar-brand">Angular Integration Examples</a>
<ul class="navbar-nav flex-row mr-auto">
<li [routerLinkActive]="['active']" class="nav-item active pr-3">
<a class="nav-link" routerLink="/angular/reportSkills">Report Skill Events</a>
</li>
<li [routerLinkActive]="['active']" class="nav-item pr-3">
<a class="nav-link" routerLink="/angular/showSkills">User Display</a>
</li>
</ul>
<button type="button" class="btn btn-primary">
<span id="skillLevel"></span>
<skills-level></skills-level>
</button>
</nav>
</div>
</div>
@@ -0,0 +1,40 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NavigationComponent } from './navigation.component';
describe('NavigationComponent', () => {
let component: NavigationComponent;
let fixture: ComponentFixture<NavigationComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ NavigationComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NavigationComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,32 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-navigation',
templateUrl: './navigation.component.html',
styleUrls: ['./navigation.component.css']
})
export class NavigationComponent implements OnInit {
constructor(public route: ActivatedRoute) {
}
ngOnInit(): void {
}
}
@@ -0,0 +1,15 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@@ -0,0 +1,22 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div data-cy="anySkillDropDown" ngbDropdown class="d-inline-block mx-2">
<button data-cy="anySkillDropDownButton" class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>{{skillId}}</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button data-cy="anySkillDropDownItemButton" ngbDropdownItem *ngFor="let selectedSkill of available" (click)="setSelectedSkill(selectedSkill)">{{selectedSkill}}</button>
</div>
</div>
<button class="btn btn-outline-primary" [disabled]="!hasSelectedSkill()" (click)="reportSkill()">Report Skill</button>
@@ -0,0 +1,73 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import axios from 'axios';
import { Example } from './example';
import { SkillsReporter } from '@skilltree/skills-client-ng';
@Component({
selector: 'app-anyskill-code-example',
templateUrl: './anyskill-code-example.component.html',
styleUrls: ['./anyskill-code-example.component.css']
})
export class AnySkillCodeExampleComponent implements OnInit {
@Input() example: Example
placeholder: string = 'Select a skill id';
skillId: string;
available: string[] = [''];
@Output() skillReportSuccess = new EventEmitter<string>();
constructor() {
}
ngOnInit(): void {
this.skillId = this.placeholder;
axios.get("/api/skills")
.then((result) => {
this.available = result.data as string[];
});
}
hasSelectedSkill() {
return this.skillId && this.skillId !== this.placeholder;
}
setSelectedSkill(selectedSkill: string) {
this.skillId = selectedSkill;
}
reportSkill() {
SkillsReporter.reportSkill(this.skillId)
.then((res) => {
this.skillReportSuccess.emit(res);
})
.catch((res) => {
this.skillReportSuccess.emit(res);
});
}
getSampleCode() {
let sampleCode = `SkillsReporter.reportSkill(this.skill)
.then((res) => {
this.reportResult = res;
});`;
sampleCode = 'SkillsReporter.reportSkill(this.skill)\n .then((res) => {\n this.reportResult = res;\n \});';
return sampleCode;
}
}
@@ -0,0 +1,15 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@@ -0,0 +1,16 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<button class="btn btn-outline-primary" [skilltree]="skillId" (skills-report-success)="onReporterResponse($event)" (skills-report-error)="onReporterResponse($event)" >Report Skill</button>
@@ -0,0 +1,50 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { Example } from './example';
@Component({
selector: 'app-button-code-example',
templateUrl: './button-code-example.component.html',
styleUrls: ['./button-code-example.component.css']
})
export class ButtonCodeExampleComponent implements OnInit {
@Input() example: Example
skillId: string
@Output() skillReportSuccess = new EventEmitter<string>();
constructor() {
}
ngOnInit(): void {
this.skillId = this.example.skillId;
}
onReporterResponse(event) {
this.skillReportSuccess.emit(event.detail)
}
getSampleCode() {
let sampleCode = `<button \n [skilltree]="\'${this.example.skillId}\'" \n (skills-report-success)="onReporterResponse($event)"`;
if (this.example.handleError) {
sampleCode += '\n (skills-report-error)="onReporterError($event)"';
}
sampleCode += '>\n Report Skill\n</button>'
return sampleCode
}
}
@@ -0,0 +1,15 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@@ -0,0 +1,33 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div>
<h5 class="text-info"><strong>{{ title }}</strong></h5>
<div class="card card-body bg-light">
<pre><code [highlight]="sampleCode" [languages]="['html', 'javascript']"></code></pre>
</div>
<div class="card card-body mt-3" [id]="formatId(title)">
<div id="exampleDirectiveClickEvent">
<div class="code-example">
<ng-template appPlaceholder></ng-template>
</div>
</div>
<hr>
<div class="text-primary">Result:</div>
<div class="border rounded p-3 bg-light">
<pre>{{ reportResult }}</pre>
</div>
</div>
</div>
@@ -0,0 +1,63 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Component, OnInit, AfterViewInit, Input, ViewChild, ComponentFactoryResolver } from '@angular/core';
import { PlaceholderDirective } from 'src/app/directives/placeholder.directive';
import { Example } from './example';
@Component({
selector: 'app-code-example-layout',
templateUrl: './code-example-layout.component.html',
styleUrls: ['./code-example-layout.component.css']
})
export class CodeExampleLayoutComponent implements OnInit, AfterViewInit {
@ViewChild(PlaceholderDirective) codeExampleHost: PlaceholderDirective;
@Input() example: Example;
skillId: string;
title: string;
sampleCode: string;
reportResult: string = "";
constructor(private componentFactoryResolver: ComponentFactoryResolver) {
}
formatId(title: string) {
return title.replace(/ /gi,'').replace(/-/g,'');
}
ngOnInit(): void {
this.skillId = this.example.skillId;
this.title = this.example.title;
}
ngAfterViewInit(): void {
setTimeout(() => {
this.viewLoaded();
});
}
viewLoaded() {
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(this.example.component);
const viewContainerRef = this.codeExampleHost.viewContainerRef;
viewContainerRef.clear();
const componentRef = viewContainerRef.createComponent(componentFactory);
componentRef.instance.example = this.example;
this.sampleCode = componentRef.instance.getSampleCode();
componentRef.instance.skillReportSuccess.subscribe(val => this.reportResult = JSON.stringify(val, null, ' '));
}
}
@@ -0,0 +1,57 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Injectable } from '@angular/core';
import { Example } from './example'
import { ButtonCodeExampleComponent } from './button-code-example.component';
import { InputCodeExampleComponent } from './input-code-example.component';
import { AnySkillCodeExampleComponent } from './anyskill-code-example.component';
@Injectable()
export class ExampleService {
getExamples() {
return [
new Example(
ButtonCodeExampleComponent,
'Skills Directive - Click Event',
'IronMan',
),
new Example(
InputCodeExampleComponent,
'Skills Directive - Input Event',
'Thor',
),
new Example(
ButtonCodeExampleComponent,
'Skills Directive - Error with Button',
'DoesNotExist',
true
),
new Example(
InputCodeExampleComponent,
'Skills Directive - Error with Input',
'DoesNotExist',
true
),
new Example(
AnySkillCodeExampleComponent,
'Pure JS - Report Any Skill',
'',
true
)
];
}
}
@@ -0,0 +1,25 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Type } from "@angular/core";
export class Example {
constructor(
public component: Type<any>,
public title: string,
public skillId: string,
// public sampleCode: string,
public handleError: boolean = false) { }
}
@@ -0,0 +1,15 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@@ -0,0 +1,16 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<input class="form-control" type="text" [skilltree]="skillId" (skills-report-success)="onReporterResponse($event)" (skills-report-error)="onReporterResponse($event)"/>
@@ -0,0 +1,50 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { Example } from './example';
@Component({
selector: 'app-input-code-example',
templateUrl: './input-code-example.component.html',
styleUrls: ['./input-code-example.component.css']
})
export class InputCodeExampleComponent implements OnInit {
@Input() example: Example
skillId: string
@Output() skillReportSuccess = new EventEmitter<string>();
constructor() {
}
ngOnInit(): void {
this.skillId = this.example.skillId;
}
onReporterResponse(event) {
this.skillReportSuccess.emit(event.detail)
}
getSampleCode() {
let sampleCode = `<input \n type="text" \n [skilltree]="\'${this.example.skillId}\'" \n (skills-report-success)="onReporterResponse($event)"`;
if (this.example.handleError) {
sampleCode += '\n (skills-report-error)="onReporterError($event)"';
}
sampleCode += ' />'
return sampleCode;
}
}
@@ -0,0 +1,15 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@@ -0,0 +1,35 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<h2>Report Skills Examples</h2>
<div class="text-primary">Global Event Result:</div>
<div id="globalEventResultDiv" class="border rounded p-3 bg-light">
<pre data-cy="globalEventResult">{{ globalEventResult }}</pre>
</div>
<div class="mt-5 mb-5" *ngFor="let example of examples">
<ng-template #examplesTarget></ng-template>
</div>
</div>
<footer class="text-muted bg-light py-5">
<div class="container">
<p class="float-right">
<a href="angular/reportSkills#">Back to top</a>
</p>
<p>Angular Examples Guide</p>
</div>
</footer>
@@ -0,0 +1,40 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ReportSkillsComponent } from './report-skills.component';
describe('ReportSkillsComponent', () => {
let component: ReportSkillsComponent;
let fixture: ComponentFixture<ReportSkillsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ReportSkillsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ReportSkillsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,87 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {
Component,
OnInit,
AfterViewInit,
OnDestroy,
ComponentFactoryResolver,
ViewChildren,
ViewContainerRef,
QueryList,
ChangeDetectorRef
} from '@angular/core';
import { Example } from './code-example/example'
import { ExampleService } from './code-example/example.service';
import { CodeExampleLayoutComponent } from './code-example/code-example-layout.component'
import { SkillsReporter } from '@skilltree/skills-client-ng';
@Component({
selector: 'app-report-skills',
templateUrl: './report-skills.component.html',
styleUrls: ['./report-skills.component.css']
})
export class ReportSkillsComponent implements OnInit, AfterViewInit, OnDestroy {
globalEventResult: string = ''
examples: Example[]
private loadedComponents = [];
@ViewChildren('examplesTarget', { read: ViewContainerRef }) exampleTargets: QueryList<ViewContainerRef>;
constructor(private exampleService: ExampleService, private componentFactoryResolver: ComponentFactoryResolver, private ref: ChangeDetectorRef) { }
ngOnInit() {
SkillsReporter.addSuccessHandler(result => {
this.globalEventResult = JSON.stringify(result, null, ' ')
// force change detection
this.ref.detectChanges();
});
}
ngAfterViewInit(): void {
setTimeout(() => {
this.viewLoaded();
});
}
ngOnDestroy(): void {
this.loadedComponents.forEach(component => component.destroy());
}
async viewLoaded() {
this.exampleTargets.changes.subscribe(() => {
this.loadExampleComponents();
});
await this.loadExamples();
}
async loadExamples() {
this.examples = this.exampleService.getExamples();
}
private loadExampleComponents() {
this.exampleTargets.toArray().forEach((viewContainerRef, i) => {
let example = this.examples[i];
let componentFactory = this.componentFactoryResolver.resolveComponentFactory(CodeExampleLayoutComponent);
let componentRef = viewContainerRef.createComponent(componentFactory);
componentRef.instance.example = example;
componentRef.changeDetectorRef.detectChanges();
this.loadedComponents.push(componentRef);
});
}
}
@@ -0,0 +1,15 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@@ -0,0 +1,65 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<div class="d-flex align-items-center mb-3">
<div ngbDropdown class="d-inline-block">
<button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>Change Theme</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button ngbDropdownItem *ngFor="let themeItem of themes"
(click)="setIsThemeUrlParam(themeItem)">{{themeItem.name}}</button>
</div>
</div>
<div class="custom-control custom-switch d-inline-block ml-3 border-right pr-2">
<input type="checkbox" class="custom-control-input" id="customSwitch1" (click)="setIsSummaryOnlyUrlParam()"
[checked]="displayOptions.isSummaryOnly">
<label class="custom-control-label" for="customSwitch1">Summary Only</label>
</div>
<div class="custom-control custom-switch d-inline-block ml-3 border-right pr-2">
<input type="checkbox" class="custom-control-input" id="customSwitch2" (click)="setInternalBackButtonUrlParam()"
[checked]="displayOptions.internalBackButton">
<label class="custom-control-label" for="customSwitch2">Internal Back Button</label>
</div>
<button class="btn btn-outline-primary" id="navButton" data-cy="navigateButton" (click)="navigate()">Navigate</button>
<a href="javascript:void(0)" class="ml-2" (click)="scrollTo('sample-code')">Show Source</a>
</div>
<div>
<span id="skillsDisplayPath" data-cy="skillsDisplayPath">Skills Display Path: [{{ skillsDisplayRoutePath }}]</span>
</div>
<div class="border rounded">
<skills-display #skillsDisplay *ngIf="selectedTheme" [options]="displayOptions" [version]="version" [theme]="selectedTheme.theme" [handleRouteChanged]="skillsDisplayRouteChanged">
</skills-display>
</div>
<div [hidden]="!showSampleCode" id="sample-code" class="row">
<div class="col-12">
<div class="mb-5 mt-5 card bg-light">
<h5 class=" card-header text-info">
<strong>Sample Code</strong>
</h5>
<div class="card-body py-0">
<pre><code [highlight]="getSampleCode()" [languages]="['html', 'javascript']"></code></pre>
</div>
</div>
</div>
</div>
</div>
@@ -0,0 +1,40 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SkillsDisplayComponent } from './skills-display.component';
describe('SkillsDisplayComponent', () => {
let component: SkillsDisplayComponent;
let fixture: ComponentFixture<SkillsDisplayComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SkillsDisplayComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SkillsDisplayComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,120 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { themes } from './themes'
import { ViewportScroller } from '@angular/common';
import { js_beautify } from 'js-beautify'
@Component({
selector: 'app-skills-display',
templateUrl: './skills-display.component.html',
styleUrls: ['./skills-display.component.css']
})
export class SkillsDisplayComponent implements OnInit {
@ViewChild('skillsDisplay')
skillsDisplay: any;
displayOptions: any;
version: number;
selectedTheme: any;
themes: Array<any> = themes;
showSampleCode: boolean = false;
skillsDisplayRoutePath: string = '/';
constructor(private route: ActivatedRoute, private router: Router, private viewportScroller: ViewportScroller) { }
ngOnInit(): void {
this.route.queryParams.subscribe(params => {
this.version = params['skillsVersion'] ? JSON.parse(params['skillsVersion']) : 1000;
this.displayOptions = {
autoScrollStrategy: 'top-of-page',
isSummaryOnly: params['isSummaryOnly'] ? JSON.parse(params['isSummaryOnly']) : false,
internalBackButton: params['internalBackButton'] ? JSON.parse(params['internalBackButton']) : false,
};
this.selectedTheme = params['themeName'] ? this.findTheme(params['themeName']) : this.themes[0];
});
}
navigate() {
this.skillsDisplay.navigate('/subjects/subj0')
}
findTheme(name: string) {
return this.themes.find((item) => item.name === name);
}
skillsDisplayRouteChanged = (newPath: string) => {
this.skillsDisplayRoutePath = newPath;
}
refreshPage() {
setTimeout(() => {
document.location.reload();
}, 250);
}
setIsThemeUrlParam(theme) {
this.router.navigate(['angular/showSkills'], { queryParams: { themeName: theme.name }, queryParamsHandling: 'merge' });
this.refreshPage();
}
setIsSummaryOnlyUrlParam() {
this.displayOptions.isSummaryOnly = !this.displayOptions.isSummaryOnly;
this.router.navigate(['angular/showSkills'], { queryParams: { isSummaryOnly: this.displayOptions.isSummaryOnly }, queryParamsHandling: 'merge' });
this.refreshPage();
}
setInternalBackButtonUrlParam() {
this.displayOptions.internalBackButton = !this.displayOptions.internalBackButton;
this.router.navigate(['angular/showSkills'], { queryParams: { internalBackButton: this.displayOptions.internalBackButton }, queryParamsHandling: 'merge' });
this.refreshPage();
}
scrollTo(elementId: string) {
this.showSampleCode = true;
setTimeout(() => {
this.viewportScroller.scrollToAnchor(elementId);
}, 250);
}
getSampleCode() {
let sampleCode = `
<template>
<skills-level /> <!-- You can display the user's current Level using the SkillsLevel component -->
<skills-display :theme="selectedTheme" ${(this.displayOptions.isSummaryOnly || this.displayOptions.internalBackButton) ? ':options="displayOptions"' : ''}/>
</template>
<script>
${js_beautify(`
import { SkillsDisplay, SkillsLevel } from '@skilltree/skills-client-vue';
export default {
components: {
SkillsDisplay,
},
data() {
return {${this.displayOptions.isSummaryOnly ? '\ndisplayOptions: { isSummaryOnly: true, },' : ''}
selectedTheme: ${JSON.stringify(this.selectedTheme, null, ' ')}
};
},
};
`)}
</script>
`;
return sampleCode;
}
}
@@ -0,0 +1,65 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
* Copyright 2020 SkillTree
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const themes : Array<any> = [
{
name: 'Bright (default)',
theme: {
backgroundColor: '#f7f7f7',
},
},
{
name: 'Dark Blue',
theme: {
backgroundColor: '#626d7d',
pageTitleTextColor: 'white',
textSecondaryColor: 'white',
textPrimaryColor: 'white',
stars: {
unearnedColor: '#787886',
earnedColor: 'gold',
},
progressIndicators: {
beforeTodayColor: '#3e4d44',
earnedTodayColor: '#667da4',
completeColor: '#59ad52',
incompleteColor: '#cdcdcd',
},
charts: {
axisLabelColor: 'white',
},
tiles: {
backgroundColor:'#152E4d',
watermarkIconColor: '#a6c5f7',
},
graphLegendBorderColor: '1px solid grey',
},
}
];
@@ -0,0 +1,23 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { PlaceholderDirective } from './placeholder.directive';
describe('PlaceholderDirective', () => {
it('should create an instance', () => {
const directive = new PlaceholderDirective();
expect(directive).toBeTruthy();
});
});
@@ -0,0 +1,25 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Directive, ViewContainerRef } from '@angular/core';
@Directive({
selector: '[appPlaceholder]'
})
export class PlaceholderDirective {
constructor(public viewContainerRef: ViewContainerRef) { }
}
@@ -0,0 +1,15 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@@ -0,0 +1,18 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export const environment = {
production: true
};
@@ -0,0 +1,31 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

@@ -0,0 +1,28 @@
<!--
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkillsIntClientNg</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
</body>
</html>
@@ -0,0 +1,37 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import axios from 'axios';
import { SkillsConfiguration, Logger } from '@skilltree/skills-client-ng'
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
axios.get("/api/config")
.then((result) => {
SkillsConfiguration.configure(result.data);
})
.then(() => {
if ((<any> window).Cypress) {
(<any> window).skillsLogger = Logger;
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
})
@@ -0,0 +1,82 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/***************************************************************************************************
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
*/
// import '@angular/localize/init';
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
*
* Learn more in https://angular.io/guide/browser-support
*/
/***************************************************************************************************
* BROWSER POLYFILLS
*/
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
* because those flags need to be set before `zone.js` being loaded, and webpack
* will put import in the top of bundle, so user need to create a separate file
* in this directory (for example: zone-flags.ts), and put the following flags
* into that file, and then add the following code before importing zone.js.
* import './zone-flags';
*
* The flags allowed in zone-flags.ts are listed here.
*
* The following flags will work for all browsers.
*
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
*
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
* with the following flag, it will bypass `zone.js` patch for IE/Edge
*
* (window as any).__Zone_enable_cross_context_check = true;
*
*/
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
@@ -0,0 +1,16 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* You can add global styles to this file, and also import other style files */
@@ -0,0 +1,40 @@
/*
Copyright 2020 SkillTree
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
@@ -0,0 +1,15 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": [ "node"]
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
@@ -0,0 +1,20 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"module": "es2020",
"lib": [
"es2018",
"dom"
]
}
}
@@ -0,0 +1,20 @@
/*
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
It is not intended to be used to perform a compilation.
To learn more about this file see: https://angular.io/config/solution-tsconfig.
*/
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
},
{
"path": "./e2e/tsconfig.json"
}
]
}
@@ -0,0 +1,18 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": [
"jasmine"
]
},
"files": [
"src/test.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
}
@@ -0,0 +1,152 @@
{
"extends": "tslint:recommended",
"rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false,
"arrow-return-shorthand": true,
"curly": true,
"deprecation": {
"severity": "warning"
},
"component-class-suffix": true,
"contextual-lifecycle": true,
"directive-class-suffix": true,
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"kebab-case"
],
"eofline": true,
"import-blacklist": [
true,
"rxjs/Rx"
],
"import-spacing": true,
"indent": {
"options": [
"spaces"
]
},
"max-classes-per-file": false,
"max-line-length": [
true,
140
],
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-empty": false,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-non-null-assertion": true,
"no-redundant-jsdoc": true,
"no-switch-case-fall-through": true,
"no-var-requires": false,
"object-literal-key-quotes": [
true,
"as-needed"
],
"quotemark": [
true,
"single"
],
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"typedef": [
true,
"call-signature"
],
"typedef-whitespace": {
"options": [
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
]
},
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-pascal-case"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
},
"no-conflicting-lifecycle": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-inputs-metadata-property": true,
"no-output-native": true,
"no-output-on-prefix": true,
"no-output-rename": true,
"no-outputs-metadata-property": true,
"template-banana-in-box": true,
"template-no-negated-async": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true
},
"rulesDirectory": [
"codelyzer"
]
}
@@ -0,0 +1,25 @@
/*
* Copyright 2020 SkillTree
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const path = require('path');
module.exports = {
webpack: {
alias: {
'react': path.resolve('./node_modules/react'),
'react-dom': path.resolve('./node_modules/react-dom'),
},
},
};
@@ -1,32 +1,36 @@
{
"name": "skills-int-client-react",
"version": "2.0.0",
"version": "3.5.0",
"license": "Apache-2.0",
"description": "SkillTree Client Lib Integration Tests - React",
"homepage": "/react/",
"dependencies": {
"@skills/skills-client-react": "2.0.0",
"axios": "0.19.0",
"bootstrap": "4.3.1",
"core-js": "3.2.1",
"highlightjs": "9.12.0",
"js-beautify": "1.10.2",
"react": "16.11.0",
"react-bootstrap": "1.0.0-beta.14",
"react-dom": "16.11.0",
"@skilltree/skills-client-react": "3.5.0",
"axios": "1.6.0",
"bootstrap": "4.5.3",
"core-js": "3.6.5",
"highlightjs": "9.16.2",
"js-beautify": "1.13.0",
"prop-types": "15.7.2",
"react": "16.13.1",
"react-bootstrap": "1.3.0",
"react-dom": "16.13.1",
"react-highlight": "0.12.0",
"react-router": "5.1.2",
"react-router-dom": "5.1.2"
"react-router": "5.2.0",
"react-router-dom": "5.2.0"
},
"scripts": {
"start": "PORT=8083 react-scripts start",
"serve": "PORT=8083 craco start",
"buildDepsAndServe": "cd ../../skills-client-js/ && npm run build && cd ../skills-client-react/ && npm run build && cd ../skills-client-integration/skills-int-client-react/ && npm run serve",
"licenseDepCheck": "license-checker --production --onlyAllow='MIT;ISC;BSD-3;BSD-2-Clause;Apache-2.0' --summary",
"licenseHeaderCheck": "license-check-and-add check -f '../license-add/license-add-config.json'",
"licenseHeaderAdd": "license-check-and-add add -f ../license-add/license-add-config.json",
"licenseCheck": "npm run licenseHeaderCheck && npm run licenseDepCheck ",
"build": "npm run licenseCheck && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"clean": "find node_modules/ -maxdepth 1 ! -name \"@skilltree\" ! -name node_modules -exec rm -rf {} \\;",
"reinstall": "npm run clean && npm install",
"build": "npm run licenseCheck && craco build",
"test": "craco test",
"eject": "craco eject"
},
"eslintConfig": {
"extends": "react-app"
@@ -44,8 +48,9 @@
]
},
"devDependencies": {
"license-check-and-add": "^3.0.4",
"license-checker": "^25.0.1",
"react-scripts": "3.2.0"
"license-check-and-add": "3.0.4",
"license-checker": "25.0.1",
"react-scripts": "4.0.3",
"@craco/craco": "6.4.0"
}
}
@@ -7,7 +7,7 @@
<parent>
<groupId>skills</groupId>
<artifactId>skills-client-integration</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>3.5.0-SNAPSHOT</version>
</parent>
<artifactId>skills-int-client-react</artifactId>
@@ -21,7 +21,7 @@
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.6</version>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<installDirectory>target</installDirectory>
</configuration>
@@ -32,7 +32,7 @@
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
<nodeVersion>v12.6.0</nodeVersion>
</configuration>
</execution>
<execution>
@@ -20,14 +20,19 @@ import './index.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { SkillsConfiguration } from '@skills/skills-client-react';
import { SkillsConfiguration, Logger } from '@skilltree/skills-client-react';
axios.get("/api/config")
.then((result) => {
SkillsConfiguration.configure(result.data);
})
.then(() => {
ReactDOM.render(<App />, document.getElementById('root'));
SkillsConfiguration.afterConfigure().then(() => {
if (window.Cypress) {
window.skillsLogger = Logger;
}
ReactDOM.render(<App />, document.getElementById('root'));
})
});
// If you want your app to work offline and load faster, you can change
@@ -17,7 +17,7 @@ import React from "react";
import Navbar from 'react-bootstrap/Navbar';
import Nav from "react-bootstrap/Nav";
import Button from "react-bootstrap/Button"
import { SkillsLevel } from '@skills/skills-client-react';
import { SkillsLevel } from '@skilltree/skills-client-react';
import {
NavLink
@@ -40,7 +40,7 @@ const Navigation = () => {
<Navbar.Collapse id="nav-collapse" is-nav="true">
<Nav>
<NavLink activeClassName="router-link-active" className="nav-link" to="/">Report Skill Events</NavLink>
<NavLink activeClassName="router-link-active" className="nav-link" to="/showSkills">User Display</NavLink>
<NavLink activeClassName="router-link-active" className="nav-link" to="/showSkills?isSummaryOnly=false&internalBackButton=false&themeName=Bright%20(default)&skillsVersion=">User Display</NavLink>
</Nav>
</Navbar.Collapse>
<Button variant="primary">
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import React from 'react';
import { SkillsReporter } from '@skills/skills-client-react';
import { SkillsReporter } from '@skilltree/skills-client-react';
import axios from 'axios';
const beautify = require('js-beautify').js;
@@ -30,7 +30,7 @@ const SampleCode = ({options, selectedTheme}) => {
`,{indent_size: 4, indent_level: 2, end_with_newline: false, "html.format.contentUnformatted": "", "html.format.unformatted": ""});
const js = beautify(`
import { SkillsDisplay } from '@skills/skills-client-react';
import { SkillsDisplay } from '@skilltree/skills-client-react';
const selectedThemeObj = ${JSON.stringify(selectedTheme)};
const MyComponent = () => {
return (
@@ -16,7 +16,7 @@
import React from 'react';
import SkillsDisplayThemeFactory from './ThemeFactory.js';
import SampleCode from './SampleCode';
import { SkillsDisplay } from '@skills/skills-client-react';
import { SkillsDisplay } from '@skilltree/skills-client-react';
import DropdownButton from "react-bootstrap/DropdownButton";
import Dropdown from 'react-bootstrap/Dropdown';
import Button from 'react-bootstrap/Button';
@@ -32,6 +32,10 @@ const findTheme = (name) => {
const scrollToRef = (ref) => window.scrollTo(0, ref.current.offsetTop);
const handleRouteChanged = (newPath) => {
document.querySelector('#skillsDisplayPath').innerHTML = `Skills Display Path: [${newPath}]`;
};
function usePrevious(value){
const ref = React.useRef();
React.useEffect(() => {
@@ -63,6 +67,15 @@ const ShowSkill = () => {
}
return false;
});
const [internalBackButton, setInternalBackButton] = React.useState(() => {
const urlInternalBackButton = getUrlParam('internalBackButton');
if ( urlInternalBackButton ) {
return JSON.parse(urlInternalBackButton)
}
return false;
});
const [skillsVersion] = React.useState(() => {
const skillsVersion = getUrlParam("skillsVersion");
if(skillsVersion) {
@@ -71,9 +84,10 @@ const ShowSkill = () => {
return '';
});
const [options, setOptions] = React.useState({ isSummaryOnly: isSummaryOnly, autoScrollStrategy: 'top-offset', scrollTopOffset: 110 });
const [options, setOptions] = React.useState({ isSummaryOnly: isSummaryOnly, internalBackButton: internalBackButton, autoScrollStrategy: 'top-offset', scrollTopOffset: 134 });
const previousIsSummaryOnly = usePrevious(isSummaryOnly);
const previousInternalBackButton = usePrevious(internalBackButton);
const previousSelectedTheme = usePrevious(selectedTheme);
const previousSkillsVersion = usePrevious(skillsVersion);
@@ -84,18 +98,23 @@ const ShowSkill = () => {
params+=`${key}=${paramsObj[key]}&`;
});
params = params.replace(/&$/,'');
history.push({pathname:history.location.pathname, search: params});
history.replace({pathname:history.location.pathname, search: params});
};
if (isSummaryOnly !== previousIsSummaryOnly || selectedTheme !== previousSelectedTheme) {
saveUrlParam({'isSummaryOnly': isSummaryOnly, 'themeName': selectedTheme.name, 'skillsVersion': skillsVersion});
if (isSummaryOnly !== previousIsSummaryOnly || internalBackButton !== previousInternalBackButton || selectedTheme !== previousSelectedTheme) {
saveUrlParam({'isSummaryOnly': isSummaryOnly, 'internalBackButton': internalBackButton, 'themeName': selectedTheme.name, 'skillsVersion': skillsVersion});
}
}, [isSummaryOnly, selectedTheme, skillsVersion, previousIsSummaryOnly, previousSelectedTheme, previousSkillsVersion, history]);
}, [isSummaryOnly, internalBackButton, selectedTheme, skillsVersion, previousIsSummaryOnly, previousInternalBackButton, previousSelectedTheme, previousSkillsVersion, history]);
const sampleCodeRef = React.createRef();
const skillsDisplayRef = React.createRef();
const executeScroll = () => scrollToRef(sampleCodeRef);
const navigate = () => {
skillsDisplayRef.current.navigate('/subjects/subj0');
};
const style = {
paddingTop: '55px'
};
@@ -121,12 +140,22 @@ const ShowSkill = () => {
</DropdownButton>
<Button variant={isSummaryOnly ? 'primary' : 'outline-primary'}
onClick={() => { setIsSummaryOnly(!isSummaryOnly);
setOptions({isSummaryOnly:!isSummaryOnly,autoScrollStrategy: 'top-offset', scrollTopOffset: 110}) }}>Summary Only</Button>
setOptions({isSummaryOnly:!isSummaryOnly,internalBackButton:internalBackButton,autoScrollStrategy: 'top-offset', scrollTopOffset: 134}) }}>Summary Only</Button>
<Button variant={internalBackButton ? 'primary' : 'outline-primary'}
onClick={() => { setInternalBackButton(!internalBackButton);
setOptions({isSummaryOnly:isSummaryOnly,internalBackButton:!internalBackButton,autoScrollStrategy: 'top-offset', scrollTopOffset: 134}) }}>Internal Back Button</Button>
<Button variant={internalBackButton ? 'primary' : 'outline-primary'}
onClick={navigate} data-cy="navigateButton">Navigate</Button>
<Button variant="link" onClick={executeScroll}>Show Source</Button>
</div>
<div>
<span id="skillsDisplayPath" data-cy="skillsDisplayPath"></span>
</div>
<div className="border rounded">
<SkillsDisplay options={options} theme={selectedTheme.theme} version={skillsVersion}/>
<SkillsDisplay ref={skillsDisplayRef} options={options} theme={selectedTheme.theme} version={skillsVersion} handleRouteChanged={handleRouteChanged}/>
</div>
<div ref={sampleCodeRef}>
Loaded 100 of 298 files, more files were not shown because too many files have changed in this diff. Show more