dogok banned for cause merge conflict
This commit is contained in:
commit
c8b7b3e00a
15
.editorconfig
Normal file
15
.editorconfig
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
# why
|
||||
[*.{html,css}]
|
||||
indent_style = space
|
||||
|
||||
# WHY
|
||||
[*.css]
|
||||
indent_size = 2
|
||||
|
|
@ -152,7 +152,7 @@ background: none;
|
|||
}
|
||||
|
||||
.osk-main.simple-keyboard .hg-row:first-child {
|
||||
margin-bottom: 8.51px;
|
||||
margin-bottom: 8.51px; /* wtf? */
|
||||
}
|
||||
|
||||
.osk-arrows.simple-keyboard {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html prefix="og: https://ogp.me/ns#">
|
||||
<html prefix="og: https://ogp.me/ns#" data-bs-theme="dark">
|
||||
<head>
|
||||
<title>CollabVM</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
|
@ -17,19 +17,19 @@
|
|||
<meta property="og:site_name" content="Computernewb"/>
|
||||
<meta property="og:image" content="https://computernewb.com/collab-vm/desktop.png"/>
|
||||
</head>
|
||||
<body class="bg-dark">
|
||||
<body>
|
||||
<div class="modal fade" id="qemuMonitorModal" tabindex="-1" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content bg-dark text-light">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">QEMU Monitor</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<textarea id="qemuMonitorOutput" readonly="" class="form-control bg-dark text-light"></textarea>
|
||||
<textarea id="qemuMonitorOutput" readonly="" class="form-control"></textarea>
|
||||
<div class="input-group">
|
||||
<input type="text" id="qemuMonitorInput" class="form-control bg-dark text-light" placeholder="Command"/>
|
||||
<button class="btn btn-outline-secondary btn-primary text-light" type="button" id="qemuMonitorSendBtn">Send</button>
|
||||
<input type="text" id="qemuMonitorInput" class="form-control" placeholder="Command"/>
|
||||
<button class="btn btn-outline-secondary btn-primary" type="button" id="qemuMonitorSendBtn">Send</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
</div>
|
||||
<div class="modal fade" id="welcomeModal" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false" aria-labelledby="welcomeModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content bg-dark text-light">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1>Welcome to CollabVM</h1>
|
||||
</div>
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
</div>
|
||||
<div class="modal fade" id="loginModal" tabindex="-1" aria-labelledby="loginModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-md">
|
||||
<div class="modal-content bg-dark text-light">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Login</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
|
|
@ -86,8 +86,8 @@
|
|||
</div>
|
||||
<div class="input-group">
|
||||
<input type="hidden" name="username" id="adminInputVMID"/>
|
||||
<span class="input-group-text bg-dark text-light">Password</span>
|
||||
<input id="adminPassword" type="password" class="form-control bg-dark text-light" placeholder="Password" name="password"/>
|
||||
<span class="input-group-text">Password</span>
|
||||
<input id="adminPassword" type="password" class="form-control" placeholder="Password" name="password"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -167,7 +167,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<nav class="navbar navbar-expand-lg">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#"><span id="siteNameText"></span></a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
|
@ -216,8 +216,8 @@
|
|||
</div>
|
||||
<div class="container-fluid" id="vmview">
|
||||
<div id="vmDisplay"></div>
|
||||
<p id="turnstatus" class="text-light"></p>
|
||||
<div id="voteResetPanel" class="bg-dark text-light" style="display:none;">
|
||||
<p id="turnstatus"></p>
|
||||
<div id="voteResetPanel" style="display:none;">
|
||||
<span id="voteResetHeaderText"></span><br/>
|
||||
<button class="btn btn-success" id="voteYesBtn"><i class="fa-solid fa-check"></i> <span id="voteYesBtnText"></span><span class="badge bg-secondary" id="voteYesLabel"></span></button> <button class="btn btn-danger" id="voteNoBtn"><i class="fa-solid fa-ban"></i> <span id="voteNoBtnText"></span><span class="badge bg-secondary" id="voteNoLabel"></span></button><br/>
|
||||
<span id="voteTimeText"></span>
|
||||
|
|
@ -259,9 +259,9 @@
|
|||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="table-responsive username-table">
|
||||
<table class="table table-hover table-dark table-borderless">
|
||||
<table class="table table-hover table-borderless">
|
||||
<thead>
|
||||
<th><i class="fa-solid fa-user"></i> <span id="usersOnlineText"></span> (<span id="onlineusercount"></span>)</th>
|
||||
<th class="bg-body-tertiary"><i class="fa-solid fa-user"></i> <span id="usersOnlineText"></span> (<span id="onlineusercount"></span>)</th>
|
||||
</thead>
|
||||
<tbody id="userlist"></tbody>
|
||||
</table>
|
||||
|
|
@ -269,20 +269,20 @@
|
|||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="table-responsive chat-table" id="chatListDiv">
|
||||
<table class="table table-hover table-dark table-borderless">
|
||||
<table class="table table-hover table-borderless">
|
||||
<tbody id="chatList">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text bg-dark username-unregistered" id="username">Username</span>
|
||||
<input type="text" class="form-control bg-dark text-light" id="chat-input"/>
|
||||
<div class="input-group-text bg-dark text-light" id="xssCheckboxContainer">
|
||||
<span class="input-group-text username-unregistered" id="username">Username</span>
|
||||
<input type="text" class="form-control" id="chat-input"/>
|
||||
<div class="input-group-text" id="xssCheckboxContainer">
|
||||
<input class="form-check-input" type="checkbox" value="" id="xssCheckbox"/>
|
||||
<label class="form-check-label" for="xssCheckbox">XSS</label>
|
||||
</div>
|
||||
<button class="btn btn-primary text-light" type="button" id="sendChatBtn"><i class="fa-solid fa-paper-plane"></i></button>
|
||||
<button class="btn btn-primary" type="button" id="sendChatBtn"><i class="fa-solid fa-paper-plane"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
// TODO: `Object` has a toString(), but we should probably gate that off
|
||||
/// Interface for things that can be turned into strings
|
||||
export interface ToStringable {
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ type LanguagesJson = {
|
|||
|
||||
// The default language (set if a invalid language not in the languages array is set, or no language is set)
|
||||
defaultLanguage: string;
|
||||
}
|
||||
};
|
||||
|
||||
// ID for fallback language
|
||||
const fallbackId = '!!fallback';
|
||||
|
|
@ -89,7 +89,7 @@ const fallbackId = '!!fallback';
|
|||
const fallbackLanguage: Language = {
|
||||
languageName: 'Fallback',
|
||||
translatedLanguageName: 'Fallback',
|
||||
flag: "no",
|
||||
flag: 'no',
|
||||
author: 'Computernewb',
|
||||
|
||||
stringKeys: {
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ async function openVM(vm: VM): Promise<void> {
|
|||
throw new Error('Failed to connect to node');
|
||||
}
|
||||
// Set the title
|
||||
document.title = Format("{0} - {1}", vm.id, TheI18n.GetString(I18nStringKey.kGeneric_CollabVM));
|
||||
document.title = Format('{0} - {1}', vm.id, TheI18n.GetString(I18nStringKey.kGeneric_CollabVM));
|
||||
// Append canvas
|
||||
elements.vmDisplay.appendChild(VM!.canvas);
|
||||
// Switch to the VM view
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Format } from '../format';
|
||||
|
||||
test('a string without any format specifiers in it is unaltered', () => {
|
||||
expect(Format("Hello World")).toBe("Hello World");
|
||||
expect(Format('Hello World')).toBe('Hello World');
|
||||
});
|
||||
|
||||
test('formatting a string works', () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user