* Create Onboard component
* Create check access resource endpoint and add cn diagnostic access
* Define a local storage item to persist that user has been notified once
* Define user state getters
* Remove discover context and reuse teleport context
* Export top bar styling
* Sync top nav and user context fetching between Main and Discover
Co-authored-by: Jeff Pihach <hatched@users.noreply.github.com>
* notarize.js: Use app bundle ID from packager settings
The previous version used to always take build.appId as the app bundle ID.
This commit makes it so that if we overwrite the bundle ID by suppling
target-specific settings, notarize.js will pick up those changes.
* Add macOS category for Teleport Connect
* Remove custom entitlements
electron-builder adds some default ones if not specified and they're just
enough for us. On top of that, by letting electron-builder handle that
we make sure that they'll stay up to date in case they ever need to be
updated due to changes in Electron or Chromium. See [1] for an example.
[1] https://www.electronjs.org/blog/electron-6-0#electron-helper-rendererapp-electron-helper-gpuapp-and-electron-helper-pluginapp
* Refactor getTshBinaryPath and getBinDir into single function
One depended on the other and they both used different logic which was
different for packaged vs non-packaged app. Now they're encapsulated within
a single function that returns both paths.
* Move electron-builder config to a js file
* Remove unused `publish` key from electron-builder config
* Refactor and re-use Main component styling (layout and user menu dropdown)
* Add OpenBox icon
* Remove focus attribute on user menu button that leaves it focused
after clicking on item
* Remove disabling of discover feature and change icon based on design
* Update e-ref
* Renew web session after updating user traits
* Replace timeout with countdown timer for DownloadScript
* Create Finished Component
* Update TestConnection design and output
Calling `electron-builder install-app-deps` during `yarn
build-and-package-term` is unnecessary as `electron-builder build`
already does that.
The only time where you'd need to run `electron-builder
install-app-deps` is when you just cloned the repo and would like to run
the dev version of the app without building the prod version.
* request target root validation
* added some example comments and moved conditional
* more commens and removing unneeded userDatapath
* removed casing details and added logging to webhandler
* combined protocol handler functions and unneeded imports
* handled nits
* fixed merge conflict and lint
If '0' is provided as the default and the initial call to create a gateway
fails, the user will be presented with an input that says 0. 0 is an invalid
value though that this input will not accept.
An empty string, on the other hand, is a perfectly valid value (the input
doesn't have the `required` attribute). In that scenario, the backend will
default the value to '0' and pick a random port.
* Refactor `DocumentGateway`
* Update protobuf files
* Do not hide port input on reconnect
* Update port of gateway connection when doc gets updated
Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>