NationalSecurityAgency / skills-client

SkillTree client libraries facilitating the rapid integration of a gamified tool training approach in conjunction with skills-service. Provides out of the box support for Angular, React, Vue.js, and native Javascript.
https://skilltreeplatform.dev
Apache License 2.0
83 stars 25 forks source link

Add the ability to easily disable skills-client #209

Open rmmayo opened 1 year ago

rmmayo commented 1 year ago

Add new optional enabled parameter to the configure method:

 this.SkillsClient.SkillsConfiguration.configure({
           serviceUrl: 'http://localhost:8080',
           projectId: 'your-project-id',
           authenticator: '<auth>',
           enabled: false
        });

when disabled the skills-client library should remain dormant, and not attempt auth, network communication, skill reporting, etc.

Please Note: enabled will default to true

sudo-may commented 1 month ago

PR: https://github.com/NationalSecurityAgency/skills-client/pull/254