Update DAVx5 in AuthToken.vue
1. It's named DAVx5 (only very old clients have DAVdroid in the User-Agent) 2. Use passive matching (?:droid|x5) because otherwise, "x5" is recognized and shown as operating system 3. Also include the version postfix which contains information like "-beta2", which is important for the user Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
This commit is contained in:
parent
7cdc7adf59
commit
bcd1546f77
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -109,8 +109,8 @@ const userAgentMap = {
|
||||||
androidClient: /^Mozilla\/5\.0 \(Android\) ownCloud-android.*$/,
|
androidClient: /^Mozilla\/5\.0 \(Android\) ownCloud-android.*$/,
|
||||||
iosTalkClient: /^Mozilla\/5\.0 \(iOS\) Nextcloud-Talk.*$/,
|
iosTalkClient: /^Mozilla\/5\.0 \(iOS\) Nextcloud-Talk.*$/,
|
||||||
androidTalkClient: /^Mozilla\/5\.0 \(Android\) Nextcloud-Talk.*$/,
|
androidTalkClient: /^Mozilla\/5\.0 \(Android\) Nextcloud-Talk.*$/,
|
||||||
// DAVdroid/1.2 (2016/07/03; dav4android; okhttp3) Android/6.0.1
|
// DAVx5/3.3.8-beta2-gplay (2021/01/02; dav4jvm; okhttp/4.9.0) Android/10
|
||||||
davDroid: /DAV(droid|x5)\/([0-9.]+)/,
|
davx5: /DAV(?:droid|x5)\/([^ ]+)/,
|
||||||
// Mozilla/5.0 (U; Linux; Maemo; Jolla; Sailfish; like Android 4.3) AppleWebKit/538.1 (KHTML, like Gecko) WebPirate/2.0 like Mobile Safari/538.1 (compatible)
|
// Mozilla/5.0 (U; Linux; Maemo; Jolla; Sailfish; like Android 4.3) AppleWebKit/538.1 (KHTML, like Gecko) WebPirate/2.0 like Mobile Safari/538.1 (compatible)
|
||||||
webPirate: /(Sailfish).*WebPirate\/(\d+)/,
|
webPirate: /(Sailfish).*WebPirate\/(\d+)/,
|
||||||
// Mozilla/5.0 (Maemo; Linux; U; Jolla; Sailfish; Mobile; rv:31.0) Gecko/31.0 Firefox/31.0 SailfishBrowser/1.0
|
// Mozilla/5.0 (Maemo; Linux; U; Jolla; Sailfish; Mobile; rv:31.0) Gecko/31.0 Firefox/31.0 SailfishBrowser/1.0
|
||||||
|
@ -129,7 +129,7 @@ const nameMap = {
|
||||||
androidClient: t('setting', 'Nextcloud Android app'),
|
androidClient: t('setting', 'Nextcloud Android app'),
|
||||||
iosTalkClient: t('setting', 'Nextcloud Talk for iOS'),
|
iosTalkClient: t('setting', 'Nextcloud Talk for iOS'),
|
||||||
androidTalkClient: t('setting', 'Nextcloud Talk for Android'),
|
androidTalkClient: t('setting', 'Nextcloud Talk for Android'),
|
||||||
davDroid: 'DAVdroid',
|
davx5: 'DAVx5',
|
||||||
webPirate: 'WebPirate',
|
webPirate: 'WebPirate',
|
||||||
sailfishBrowser: 'SailfishBrowser',
|
sailfishBrowser: 'SailfishBrowser',
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ const iconMap = {
|
||||||
androidClient: 'icon-phone',
|
androidClient: 'icon-phone',
|
||||||
iosTalkClient: 'icon-phone',
|
iosTalkClient: 'icon-phone',
|
||||||
androidTalkClient: 'icon-phone',
|
androidTalkClient: 'icon-phone',
|
||||||
davDroid: 'icon-phone',
|
davx5: 'icon-phone',
|
||||||
webPirate: 'icon-link',
|
webPirate: 'icon-link',
|
||||||
sailfishBrowser: 'icon-link',
|
sailfishBrowser: 'icon-link',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue