Skip to content

Commit 733b4d1

Browse files
committed
Fix font inclusion and application type setup bug
1 parent 8ceb8a2 commit 733b4d1

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

common/src/applications.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ export function getApplicationType(typeId?: number) {
310310
})
311311
case 7:
312312
case 30:
313-
case 37:
314-
case 38:
315313
case 42:
316314
return new Application({
317315
title: 'Browser',
@@ -331,15 +329,21 @@ export function getApplicationType(typeId?: number) {
331329
appLaunchTemplate: 'smb://[host]:[port]',
332330
appCommandTemplate: windows ? '\\\\[host]:[port]' : '[host]:[port]',
333331
})
334-
case 38:
335-
return new Application({
336-
title: 'Nextcloud',
337-
use: 'Select for secure access to Nextcloud hubs, allowing for file sharing, collaboration, and communication within a secure, private cloud environment.',
338-
})
339332
case 37:
340333
return new Application({
341334
title: 'NxWitness',
342335
use: 'Use for connecting to Nx Witness Video Management Systems (VMS), suitable for security professionals managing IP camera networks.',
336+
appLaunchType: 'URL',
337+
urlForm: true,
338+
autoLaunch: true,
339+
})
340+
case 38:
341+
return new Application({
342+
title: 'Nextcloud',
343+
use: 'Select for secure access to Nextcloud hubs, allowing for file sharing, collaboration, and communication within a secure, private cloud environment.',
344+
appLaunchType: 'URL',
345+
urlForm: true,
346+
autoLaunch: true,
343347
})
344348
case 39:
345349
return new Application({

frontend/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<head>
55
<meta charset="utf-8" />
66
<link rel="icon" type="image/svg+xml" href="/r3.svg" />
7-
<link rel="stylesheet" href="index.css">
8-
<link rel="stylesheet" href="fonts.css">
9-
<link rel="stylesheet" href="error.css">
7+
<link rel="stylesheet" href="/index.css">
8+
<link rel="stylesheet" href="/fonts.css">
9+
<link rel="stylesheet" href="/error.css">
1010
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
1111
<meta name="theme-color" content="#000000" />
1212
<meta name="viewport"

frontend/public/fonts.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@
33
font-style: normal;
44
font-weight: 500;
55
font-display: swap;
6-
src: url(./fonts/RobotoMono-Medium.woff2) format('woff2'), url(./fonts/RobotoMono-Medium.woff) format('woff');
6+
src: url(/fonts/RobotoMono-Medium.woff2) format('woff2'), url(/fonts/RobotoMono-Medium.woff) format('woff');
77
}
88

99
@font-face {
1010
font-family: 'Roboto';
1111
font-style: normal;
1212
font-weight: 300;
1313
font-display: swap;
14-
src: url(./fonts/Roboto-Light.woff2) format('woff2'), url(./fonts/Roboto-Light.woff) format('woff');
14+
src: url(/fonts/Roboto-Light.woff2) format('woff2'), url(/fonts/Roboto-Light.woff) format('woff');
1515
}
1616

1717
@font-face {
1818
font-family: 'Roboto';
1919
font-style: normal;
2020
font-weight: 400;
2121
font-display: swap;
22-
src: url(./fonts/Roboto-Regular.woff2) format('woff2'), url(./fonts/Roboto-Regular.woff) format('woff');
22+
src: url(/fonts/Roboto-Regular.woff2) format('woff2'), url(/fonts/Roboto-Regular.woff) format('woff');
2323
}
2424

2525
@font-face {
2626
font-family: 'Roboto';
2727
font-style: normal;
2828
font-weight: 500;
2929
font-display: swap;
30-
src: url(./fonts/Roboto-Medium.woff2) format('woff2'), url(./fonts/Roboto-Medium.woff) format('woff');
30+
src: url(/fonts/Roboto-Medium.woff2) format('woff2'), url(/fonts/Roboto-Medium.woff) format('woff');
3131
}
3232

3333
@font-face {
3434
font-family: 'Roboto';
3535
font-style: normal;
3636
font-weight: 600;
3737
font-display: swap;
38-
src: url(./fonts/Roboto-Bold.woff2) format('woff2'), url(./fonts/Roboto-Bold.woff) format('woff');
38+
src: url(/fonts/Roboto-Bold.woff2) format('woff2'), url(/fonts/Roboto-Bold.woff) format('woff');
3939
}

0 commit comments

Comments
 (0)