summaryrefslogtreecommitdiff
path: root/app/ui.js
Commit message (Collapse)AuthorAgeFilesLines
* Handle translation loading in translation classPierre Ossman2023-05-101-15/+3
| | | | | Let's try to keep as much as possible of the translation handling in a single place for clarity.
* Special case English translation fallbackPierre Ossman2023-04-051-1/+1
| | | | | | | | We should not be listing this in LINGUAS as that gives the impression that English has en explicit translation. Instead, it is a special case that the code needs to be explicitly aware of. This reverts 9a06058 in favour of a more robust fix.
* Added english to list of supported languagesMathis Marcotte2023-03-271-1/+1
|
* Restrict forced panning to known bad platformsPierre Ossman2022-12-271-4/+17
| | | | | | Let's not punish systems that implement overlay scrollbars in a functional way. The only current example is Firefox on Windows 11 and on Linux.
* Export clipping state externallyPierre Ossman2022-12-271-1/+5
| | | | | So that UI can reflect if it is currently possible to drag the viewport or not.
* Remove outer div from noVNC_connect_buttonSamuel Mannehed2022-12-151-2/+1
| | | | | | | | | | | Instead of having an outer "box", we can use an outline on the button itself to create this "platform". Since the outline isn't part of the size of the element, it will appear wider than before, when compared to the logo. To counteract that we remove the left and right padding from the logo to make the entire noVNC_connect_dlg more narrow. We also had to slightly adjust the :active style since we don't want the entire "platform" to move when the button is clicked.
* Get rid of noVNC_touch in favor for @media queriesSamuel Mannehed2022-12-141-1/+0
| | | | | | | | | | | This commit removes our dependency on the class "noVNC_touch" which was set by Javascript. Instead, we can use the CSS media query "any-pointer: coarse", which means that any pointing device that isn't accurate is available. In practice this seems to basically be equal to that a touch screen is available. This change lets us simplify the selectors in many cases as well, which is a nice bonus.
* Make connect button a regular <button>Samuel Mannehed2022-12-141-1/+2
| | | | | | | | | | It is a button, let the HTML element reflect that. And instead of having the outer div being clickable, lets only make the inner one work like a button. Because of that, this commit renames the outer div to "connect_box" instead of "connect_button". Note that we remove the disabled :hover-effect for touch on this button. It doesn't make much difference since this button is one of a kind.
* Only show the control bar hint once per "move"Samuel Mannehed2022-10-241-1/+11
| | | | | | | | | | | | After the user has "followed" the hint by dragging the handle to the other side, the control bar will switch to that side. Once this has happened, we will now hide the hint until the user starts over by dragging the handle again. This change was added to make the hint feel more like a "hint" and less like a permanent GUI element. It isn't as persistent and intrusive now. Note that we don't want the act of hiding the hint to result in a transition animation here.
* Merge branch 'italian' of https://github.com/M2Rbiz/noVNCPierre Ossman2022-09-141-1/+1
|\
| * Add italian translationFabio Fantoni2022-09-081-1/+1
| |
* | Remove unnecessary clipboard clear buttonSamuel Mannehed2022-09-091-7/+0
|/ | | | | | This button fills no real purpose. It's easy to mark everything and delete with either "Ctrl + A -> Delete" or, on touch devices, "long press -> mark everything -> Delete".
* Allow continued reconnect triesJames Kinsman2022-08-081-1/+3
| | | Currently novnc will only retry once (assuming the server is unavailable) and then stop (as the detail from is unclean, usually "failed to connect"). Minor change will continue to reconnect every reconnect_delay seconds until either reconnected or user intervention cancels the attempt.
* Add warnings about insecure contextPierre Ossman2022-05-121-0/+8
| | | | | | Most (all?) new APIs will require a "secure context", which generally means served over TLS. We can expect crashes because of missing functions if this requirement isn't fulfilled, so try to warn the user.
* Make sure server verification dialog is closedPierre Ossman2022-03-101-0/+2
| | | | | It should be closed at this point just like all other dialogs and panels.
* Added support for RSA-AES Unencrypted Security Typepdlan2022-03-081-0/+36
|
* feat: add French localization stringsJose (Ito) Matsuda2021-05-061-1/+1
|
* Add Portuguese (Brazil) translationLiddack2021-03-161-1/+1
|
* Remove many small, obsolete, old browser hacksPierre Ossman2020-12-071-5/+0
| | | | These are for browsers no longer supported anyway.
* Use Fetch API for getting JSON dataPierre Ossman2020-12-041-2/+14
| | | | | We no longer need to support Internet Explorer so we can use a more proper API here.
* Add touch gestures for mouse emulationPierre Ossman2020-06-121-31/+0
| | | | | | | | Add several single and multitouch gestures to simulate various mouse actions that would otherwise be impossible to perform. This replaces the old system where you could select which mouse button a single touch would generate.
* Standardize on camelCase in AppSamuel Mannehed2020-05-311-28/+28
|
* Standardize on camelCase in LoggingSamuel Mannehed2020-05-311-1/+1
|
* Consistently close dialogs on connect/disconnectPierre Ossman2020-05-051-3/+3
| | | | | | | | This was done a bit arbitrarily before which could easily miss things, end up in the wrong state and not trigger animations correctly. This reverts commit c12e5b2b544aff6f662c7f61f82ce40d132e14df and fixes things in a different way.
* Add ability to set compression levelSamuel Mannehed2020-05-011-0/+17
| | | | Fixes github issue #1382.
* Fix indentation for focus checkSamuel Mannehed2020-05-011-1/+1
|
* Don't fade the control bar if it has focusSamuel Mannehed2020-05-011-0/+7
| | | | Fixes github issue #1369
* Fix focus problem after closing the toolbarAlex Tanskanen2020-03-121-0/+1
| | | | | | | Closing the toolbar would make the focus remain on the toolbar and not in the session. The only way to switch focus was to click in the session. This commit will automatically switch back focus to the session after closing the toolbar.
* Add UI for quality settingPierre Ossman2020-02-281-0/+17
|
* Hide clipboard side bar button when view only modeNiko Lehto2020-02-241-0/+4
| | | | | The clipboard side bar button serves no purpose if user uses 'View Only' mode, this commit hides this button in those instances.
* Correcting path to package.json for running at a path other than root.Alvin Townsend2020-01-311-1/+1
|
* Properly detect scrollbar gutterSamuel Mannehed2020-01-021-3/+4
| | | | | | | | As a rule, instead of hard-coding a behavior on specific platforms we should do dynamic detection. This commit moves away from always hiding scrollbars on Android and iOS and instead detects the rendered width of scrollbars in the browser.
* Avoid using Array.includes()Pierre Ossman2019-12-231-2/+2
| | | | | Internet Explorer doesn't have this method. Use the safer indexOf() instead.
* Expand password dialog to work for usernames tooChris Koying Browet2019-12-051-13/+32
| | | | | Some VNC authentication schemes use usernames, our UI should support these.
* Simplify logic for status hierarchySamuel Mannehed2019-11-251-10/+5
| | | | Removes unnecessary variable
* Ensure warning status timeouts are honoredSamuel Mannehed2019-11-251-2/+2
| | | | | | | | | | | | | | | When showing a new status popup we want to set a timer for how long to show it. In cases where we show many statuses in a fast succession we need to remove any running timeouts when showing a new one. There are exceptions when new statuses won't be shown, and thats if a more severe status is already showing, i.e and error or a warning. Warnings can still have timeouts. There was a bug that occured when we tried to show a normal status while a warning was showing. The bug caused the warning status timeout to be removed even if the normal status was never shown. We should only remove running timeouts if we're actually going to show a new status.
* Keep the virtual keyboard after using extra keysSamuel Mannehed2019-10-311-3/+13
| | | | | | If using the extra keys always gives focus to the screen then an on-screen keyboard would be closed. When using on-screen keyboards we instead want to give focus to our virtual keyboard input element.
* Move focus to the screen when using extra keysSamuel Mannehed2019-10-281-8/+21
| | | | | | | | | A regression from 2afda54 and friends was that you couldn't use the extra keys and then directly use the keyboard, you would have to click in the session first. This commit restores the correct behavior and also adds a visual queue to the fact that the screen got the focus by fading the controlbar.
* Add missing scancode for sendTabSamuel Mannehed2019-10-281-1/+1
|
* Never show drag icon if clipping is disabledPierre Ossman2019-10-141-16/+2
| | | | | | | | | Toggling the enabled state is a remnant from an earlier version of the code where we could determine if the the session is actually clipped, and not just that the setting is enabled. Right now we only change things based on the setting, so let's completely hide the button when clipping is disabled.
* Update copyright to 2019 for modified filesSamuel Mannehed2019-09-301-1/+1
|
* Restore page name after disconnectNiko Lehto2019-09-041-1/+5
|
* Deprecate showDotCursor option for RFB constructorPierre Ossman2019-08-231-1/+1
| | | | | | It is not relevant for the connection stage so it should not have been a constructor argument to begin with. Ship with a warning for a release before we remove it.
* Add missing parentheses for arrow func argSamuel Mannehed2019-07-231-1/+1
| | | | | Our lint tests expect this when an arrow functino has a body with curly braces.
* Add version number to UIJuanjo Diaz2019-07-231-0/+11
|
* Add Japanese translationnnn15902019-06-121-1/+1
|
* Revert "Fullscreen from iframe (#1236)" (#1247)Samuel Mannehed2019-05-251-59/+20
| | | This reverts commit 19cdc15aa314760446866a1bcc2db99a80479683.
* Fullscreen from iframe (#1236)Ján Jockusch2019-05-131-20/+59
| | | | | | | | | | | | | | * First attempt to make the fullscreen button work inside an iframe. * Cleaner distinction between document element and document. * Scoping corrections. Auto-detect correct iframe. * Added comments to the relevant sections. * IE issue fixed. * Same source issue solved. fullscreenToggle now checks if it is permitted to inspect other iframes.
* Merge pull request #1204 from juanjoDiaz/small_improvementsSamuel Mannehed2019-03-041-26/+17
|\ | | | | Small improvements
| * Remove callbacks from UI in favour of promisesJuanjo Diaz2019-02-271-26/+17
| |