Commit Graph

514 Commits

Author SHA1 Message Date
Kaleb Efflandt 36a729cb63
Add files via upload 2024-02-14 12:58:28 -06:00
Kaleb Efflandt 22628d1ccc
Update ui.js 2024-02-14 09:23:15 -06:00
Kaleb Efflandt c2b7e43cbf
Update base.css 2024-02-14 01:43:59 -06:00
Kaleb Efflandt 0a8f7d2ff7
Update base.css 2024-02-14 01:34:33 -06:00
Kaleb Efflandt 4f372c0c77
Update base.css 2024-02-14 01:29:55 -06:00
Kaleb Efflandt 3d86b68035
Update ui.js 2024-02-14 01:29:33 -06:00
Kaleb Efflandt d9e0d247c2
Update base.css 2024-02-14 01:13:54 -06:00
Kaleb Efflandt b3ba9aba1c
Update base.css 2024-02-14 01:12:22 -06:00
Kaleb Efflandt 9d2a0d9f5e
Update base.css 2024-02-14 01:05:11 -06:00
Kaleb Efflandt c966637c53
Update base.css 2024-02-14 00:41:54 -06:00
Kaleb Efflandt 1d89d93aee
Update handle.svg 2024-02-14 00:29:55 -06:00
Kaleb Efflandt 3f695c81c3
Update handle.svg 2024-02-14 00:26:09 -06:00
Kaleb Efflandt 88ca0be570
Update base.css 2024-02-14 00:25:47 -06:00
Kaleb Efflandt 27dd82dc14
Update handle.svg 2024-02-14 00:18:51 -06:00
Kaleb Efflandt d1795c47b6
Update base.css 2024-02-14 00:06:57 -06:00
Kaleb Efflandt 76975f8669
Update base.css 2024-02-13 23:30:47 -06:00
Kaleb Efflandt 1d2c6a1dae
Update base.css 2024-02-13 23:13:50 -06:00
Kaleb Efflandt 215e4b57fc
Add files via upload 2024-02-13 22:50:42 -06:00
Kaleb Efflandt 0975a3a955
Update base.css 2024-02-13 22:43:19 -06:00
Kaleb Efflandt 388142a7d9
Update connect.svg 2024-02-13 22:30:36 -06:00
Kaleb Efflandt 309616400a
Update base.css 2024-02-13 22:28:44 -06:00
Kaleb Efflandt e1be361c48
Update ui.js 2024-02-13 21:55:41 -06:00
Kaleb Efflandt cf0f51d18e
Update base.css 2024-02-13 19:07:10 -06:00
Kaleb Efflandt f29e209d75
Rename novnc-ios58.png to novnc-ios-58.png 2024-02-13 15:28:57 -06:00
Kaleb Efflandt bdcc5c971c
Delete app/images/icons/novnc-ios-58.png 2024-02-13 15:28:46 -06:00
Kaleb Efflandt 2628b346aa
Add files via upload 2024-02-13 15:27:13 -06:00
Kaleb Efflandt b774621ef1
Add files via upload 2024-02-13 15:16:16 -06:00
Kaleb Efflandt 30f240423b
Update ui.js 2024-02-13 15:15:10 -06:00
Bad d66e535fc7
Update ui.js 2024-02-13 22:42:52 +02:00
Samuel Mannehed e75938bebc Make non-HTTPS message more harsh
As browsers are placing more and more new functionality as
secure-context only, we need to prepare users for more problems. I find
it likely that we will disable non-HTTPS connections in the future.
2024-02-02 16:51:21 +01:00
Pierre Ossman 9ac632deee Handle immediate connection errors
The browser might throw an exception right away if there is something it
doesn't like with our connect attempt. E.g. using a non-TLS WebSocket
from a TLS web page.
2023-12-05 11:30:30 +01:00
Samuel Mannehed a30f609de4 Don't crash if we can't use localStorage
Our settings are not a fatal requirement, we can fall back on the
default values if they can't be accessed. A scenario where we've seen
this happen is when cookies are disabled in the browser. It seems
localStorage is disabled along with cookies in these settings.

So, lets log a message about the failure and otherwise silently
continue in this case.

Fixes issue #1577.
2023-07-13 14:35:07 +02:00
Pierre Ossman a565ae559f Merge branches 'l10n' and 'fragment' of github.com:CendioOssman/noVNC 2023-05-10 13:23:34 +02:00
Pierre Ossman 0374b4c0fc Handle translation loading in translation class
Let's try to keep as much as possible of the translation handling in a
single place for clarity.
2023-05-10 13:11:51 +02:00
Pierre Ossman 05b6d2ad67 Fix typos in query variable comment 2023-05-10 12:25:46 +02:00
Pierre Ossman 2a21bee245 Revert broken Add support for URL fragment parameters
This is a revert of the code changes in commit
f796b05e42 as it served no functional
purpose.

Fragments were already respected for setting parameters, via a different
function. Thus it is unclear what that commit tried to fix. It also
complicated things by mixing the document location with the window
location.

The comment changes are useful, though, so those are kept.
2023-05-10 12:25:46 +02:00
Pierre Ossman a4453c9a26 Special case English translation fallback
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.
2023-04-05 12:46:17 +02:00
Mathis Marcotte 9a06058f66 Added english to list of supported languages 2023-03-27 14:23:09 +00:00
Samuel Mannehed 8decca7353 Use unitless numbers for line-height values
Using <length> type values for line-height can give unexpected
inheritance behaviors. If using <length> values, the inherited
line-height on children is calculated using the font-size of the parent.
What we want is for the line-height of children to be calculated using
it's own font-size.

By instead using a unitless number, we get the behavior we want. Note
that this bug has no effects right now since no children to any of the
related elements have different font-sizes.
2023-03-23 11:06:03 +01:00
Samuel Mannehed 4558104196 Properly center the checkbox checkmark
Using a flexbox we can easily center the checkmark without using hard
coded positions.
2023-03-23 11:06:03 +01:00
Pierre Ossman 51677f5c70 Update json files for new translations 2023-01-20 13:57:20 +01:00
Samuel Mannehed 5b7d2a622e Fix positioning of checkbox checkmark
Changing the ::after element to be displayed as 'block' lets it be
positioned using relative. This means we can remove the confusing
"position: relative" from the checkbox.
2023-01-02 14:46:33 +01:00
Pierre Ossman 022fc8c374 Improve whitespace handling in translations
The HTML source will include line breaks and indentation that is only
for source formatting, and will not be displayed.
2022-12-27 15:39:11 +01:00
Pierre Ossman 5de478d6e7 Restrict forced panning to known bad platforms
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.
2022-12-27 12:50:57 +01:00
Pierre Ossman 262a90b0e0 Consistently use "first" indentation
We already enforced this for most things, so let's fix up the last few
variants as well.
2022-12-27 12:50:57 +01:00
Pierre Ossman 7f4a9eebc8 Export clipping state externally
So that UI can reflect if it is currently possible to drag the viewport
or not.
2022-12-27 12:50:57 +01:00
Samuel Mannehed 820b39c7d3 Reinstate outer div of noVNC_connect_button
There were two issues with removing the outer div of the connect button.

Firstly, rounded outlines don't work in WebKit browsers like Safari or
Epiphany (https://bugs.webkit.org/show_bug.cgi?id=20807) and this makes
the outline look completely square.

Secondly the code became too complex.

This reverts most of commit 05baf14256.
2022-12-23 13:44:58 +01:00
Samuel Mannehed 2b449b208e Get rid of WebKit's button top margin
It conflicts with our :active styling since it changes margin-top.
2022-12-23 13:44:57 +01:00
Samuel Mannehed 6e1d842850 Use an ICO file for favicons
The browsers have been choosing very poorly and have a lot of bugs when
it comes to favicons. Using an ICO makes many browsers choose better in
most cases. Most large websites use ICO files.

The icons in the ICO file needs to be ordered largest to the smallest
icon, and due to a Chrome bug we are limited to 8 icons. This
unfortunately means we couldn't fit one of the Android sizes. The 72x72
icon was removed since testing showed that it was used the least.
2022-12-23 09:05:12 +01:00
Samuel Mannehed 139f087187 Explicitly specify icon size instead of density
Instead of calculating a density that we hope results in the correct
size, we can specify what size we want. This is more robust and easier
to understand. This also allows us to simplify the Makefile quite a bit.

Note that Fedora's packaging of ImageMagick has a bug here:
https://bugzilla.redhat.com/show_bug.cgi?id=2140018
2022-12-23 09:05:12 +01:00