Skip to content

Commit f0d953a

Browse files
authored
chore(project): update dependencies (netless-io#1797)
* chore(project): update dependencies * chore(project): add prettier option quoteProps = consistent
1 parent 62982a1 commit f0d953a

File tree

15 files changed

+315
-460
lines changed

15 files changed

+315
-460
lines changed

.prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
trailingComma: "all",
88
bracketSpacing: true,
99
endOfLine: "auto",
10+
quoteProps: "consistent",
1011
overrides: [
1112
{
1213
files: ["*.json", "*.yaml", "*.yml"],

desktop/main-app/scripts/esbuild/plugin/dotEnvFlowPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function parseWithEnvObject(orgEnv: Record<string, string | undefined>): Record<
55
return Reflect.ownKeys(orgEnv)
66
?.map(item => {
77
const result: Record<string, any> = {};
8-
if (typeof item === "string" && orgEnv?.[item] && !item.includes('(')) {
8+
if (typeof item === "string" && orgEnv?.[item] && !item.includes("(")) {
99
result[`process.env.${item}`] = JSON.stringify(orgEnv?.[item]);
1010
}
1111
return result;

desktop/renderer-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@netless/app-monaco": "0.2.0-canary.1",
2323
"@netless/app-quill": "^0.1.1",
2424
"@netless/app-selector": "^0.0.3",
25-
"@netless/app-slide": "0.3.0-canary.13",
25+
"@netless/app-slide": "0.3.0-canary.16",
2626
"@netless/combine-player": "^1.1.6",
2727
"@netless/flat-i18n": "workspace:*",
2828
"@netless/flat-pages": "workspace:*",

packages/flat-i18n/src/flat-i18n.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ export class FlatI18n {
8181
this.i18n = i18next;
8282

8383
const resources: Resource = {
84-
en: { translation: en },
84+
"en": { translation: en },
8585
"zh-CN": { translation: zhCN },
8686
};
8787

8888
const defaultVars: Record<string, Record<string, string>> = process.env.FLAT_REGION === "US"
89-
? { en: varsUSen, "zh-CN": varsUSzhCN }
90-
: { en: varsCNen, "zh-CN": varsCNzhCN };
89+
? { "en": varsUSen, "zh-CN": varsUSzhCN }
90+
: { "en": varsCNen, "zh-CN": varsCNzhCN };
9191

9292
i18next
9393
.use(I18nextBrowserLanguageDetector)

packages/flat-pages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@netless/app-geogebra": "^0.0.6",
99
"@netless/app-iframe-bridge": "^0.0.2",
1010
"@netless/app-monaco": "0.2.0-canary.1",
11-
"@netless/app-slide": "0.3.0-canary.13",
11+
"@netless/app-slide": "0.3.0-canary.16",
1212
"@netless/combine-player": "^1.1.6",
1313
"@netless/flat-i18n": "workspace:*",
1414
"@netless/flat-server-api": "workspace:*",

packages/flat-services/src/services/text-chat/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { RoomStatus } from "@netless/flat-server-api";
33
/** From teacher to students */
44
export interface IServiceTextChatRoomCommandData {
55
"update-room-status": { roomUUID: string; status: RoomStatus };
6-
ban: { roomUUID: string; status: boolean };
7-
notice: { roomUUID: string; text: string };
6+
"ban": { roomUUID: string; status: boolean };
7+
"notice": { roomUUID: string; text: string };
88
}
99

1010
export type IServiceTextChatRoomCommandNames = keyof IServiceTextChatRoomCommandData;

packages/flat-services/src/services/text-chat/events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ export interface IServiceTextChatEventData {
1010
text: string;
1111
senderID: string;
1212
};
13-
ban: {
13+
"ban": {
1414
roomUUID: string;
1515
uuid: string;
1616
timestamp: number;
1717
status: boolean;
1818
senderID: string;
1919
};
20-
notice: {
20+
"notice": {
2121
roomUUID: string;
2222
uuid: string;
2323
timestamp: number;

packages/flat-services/src/services/video-chat/events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type { Remitter } from "remitter";
1616
export type IServiceVideoChatNetworkQualityType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1717

1818
export interface IServiceVideoChatEventData {
19-
network: {
19+
"network": {
2020
delay: number;
2121
uplink: IServiceVideoChatNetworkQualityType;
2222
downlink: IServiceVideoChatNetworkQualityType;
@@ -32,7 +32,7 @@ export interface IServiceVideoChatEventData {
3232
"err-set-camera": Error;
3333
"err-set-mic": Error;
3434
"err-low-volume": undefined;
35-
error: Error;
35+
"error": Error;
3636
}
3737

3838
export type IServiceVideoChatEventNames = keyof IServiceVideoChatEventData;

packages/flat-stores/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
},
1616
"devDependencies": {
1717
"@netless/fastboard": "1.0.0-canary.8",
18-
"@netless/window-manager": "1.0.0-canary.71",
18+
"@netless/window-manager": "1.0.0-canary.72",
1919
"mobx": "^6.6.1",
2020
"prettier": "^2.7.1",
2121
"react": "^17.0.2",
2222
"typescript": "^4.8.3",
23-
"white-web-sdk": "npm:[email protected].34"
23+
"white-web-sdk": "npm:[email protected].40"
2424
},
2525
"dependencies": {
2626
"@netless/flat-i18n": "workspace:*",

0 commit comments

Comments
 (0)