vzcode 0.68.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
|
|
21
21
|
rel="stylesheet"
|
|
22
22
|
/>
|
|
23
|
-
<script type="module" crossorigin src="/assets/index-
|
|
23
|
+
<script type="module" crossorigin src="/assets/index-Bfl2hCW9.js"></script>
|
|
24
24
|
<link rel="stylesheet" crossorigin href="/assets/index-DOd2vdTJ.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vzcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"description": "Multiplayer code editor system",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"react": "^18.2.0",
|
|
106
106
|
"react-bootstrap": "^2.10.1",
|
|
107
107
|
"react-dom": "^18.2.0",
|
|
108
|
-
"react-router-dom": "^6.22.
|
|
108
|
+
"react-router-dom": "^6.22.1",
|
|
109
109
|
"sharedb": "^4.1.2",
|
|
110
110
|
"sharedb-client-browser": "^4.4.0",
|
|
111
111
|
"vizhub-ui": "^3.19.0",
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
"@vitejs/plugin-react": "^4.2.1",
|
|
118
118
|
"concurrently": "^8.2.2",
|
|
119
119
|
"prettier": "^3.2.5",
|
|
120
|
-
"sass": "^1.
|
|
120
|
+
"sass": "^1.71.0",
|
|
121
121
|
"typescript": "^5.3.3",
|
|
122
122
|
"vite": "^5.1.3",
|
|
123
|
-
"vitest": "^1.
|
|
123
|
+
"vitest": "^1.3.0"
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -25,19 +25,21 @@
|
|
|
25
25
|
max-width: 500px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
/* Style the completion tooltip container */
|
|
29
29
|
.cm-tooltip.cm-tooltip-autocomplete {
|
|
30
30
|
border: 1px solid #888;
|
|
31
|
-
background-color: #
|
|
31
|
+
background-color: #1f2022;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* Style the individual completion items */
|
|
35
35
|
.cm-tooltip-autocomplete .cm-completionLabel {
|
|
36
|
-
color: #
|
|
36
|
+
color: #bdc7dc;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* Style the selected completion item */
|
|
40
|
-
.cm-tooltip-autocomplete
|
|
40
|
+
.cm-tooltip-autocomplete
|
|
41
|
+
.cm-completionLabel
|
|
42
|
+
.cm-completion-active {
|
|
41
43
|
background-color: #0077cc;
|
|
42
44
|
color: white;
|
|
43
45
|
}
|
|
@@ -8,8 +8,6 @@ import {
|
|
|
8
8
|
LinterResponse,
|
|
9
9
|
} from './requestTypes';
|
|
10
10
|
|
|
11
|
-
let isFileSystemInitialized = false;
|
|
12
|
-
|
|
13
11
|
let env: tsvfs.VirtualTypeScriptEnvironment = null;
|
|
14
12
|
|
|
15
13
|
const debug = false;
|
|
@@ -234,6 +232,14 @@ onmessage = async ({ data }) => {
|
|
|
234
232
|
// "Cannot find module 'd3' or its corresponding type declarations."
|
|
235
233
|
const LINT_ERROR_CODE_IMPORT = 2307;
|
|
236
234
|
|
|
235
|
+
// This code is for errors like:
|
|
236
|
+
// "Variable 'mic' implicitly has type 'any' in some locations where its type cannot be determined."
|
|
237
|
+
const LINT_ERROR_CODE_ANY_TYPE = 7034;
|
|
238
|
+
|
|
239
|
+
// "Element implicitly has an 'any' type because expression
|
|
240
|
+
// of type '"test"' can't be used to index type '{}'."
|
|
241
|
+
const LINT_ERROR_CODE_ANY_TYPE_KEYS = 7053;
|
|
242
|
+
|
|
237
243
|
if (debug) {
|
|
238
244
|
console.log(tsErrors);
|
|
239
245
|
}
|
|
@@ -241,7 +247,9 @@ onmessage = async ({ data }) => {
|
|
|
241
247
|
(error: { code: number }) =>
|
|
242
248
|
error.code !== LINT_ERROR_CODE_ANY &&
|
|
243
249
|
error.code !== LINT_ERROR_CODE_IMPORT &&
|
|
244
|
-
error.code !== LINT_ERROR_CODE_ANY_PARAM
|
|
250
|
+
error.code !== LINT_ERROR_CODE_ANY_PARAM &&
|
|
251
|
+
error.code !== LINT_ERROR_CODE_ANY_TYPE &&
|
|
252
|
+
error.code !== LINT_ERROR_CODE_ANY_TYPE_KEYS,
|
|
245
253
|
);
|
|
246
254
|
}
|
|
247
255
|
tsErrors = convertToCodeMirrorDiagnostic(tsErrors);
|