@elice/material-runbox-legacy 1.240401.0 → 1.240508.0-globalization.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/cjs/components/material-runbox-legacy/MaterialRunboxLegacy.d.ts +3 -2
- package/cjs/components/material-runbox-legacy/MaterialRunboxLegacy.js +17 -10
- package/cjs/components/material-runbox-legacy/MaterialRunboxLegacyContent.js +26 -24
- package/cjs/components/material-runbox-legacy/locales/en.json.js +7 -0
- package/cjs/components/material-runbox-legacy/locales/index.d.ts +3 -0
- package/cjs/components/material-runbox-legacy/locales/ko.json.js +7 -0
- package/cjs/components/material-runbox-legacy/locales/th.json.js +7 -0
- package/es/components/material-runbox-legacy/MaterialRunboxLegacy.d.ts +3 -2
- package/es/components/material-runbox-legacy/MaterialRunboxLegacy.js +17 -11
- package/es/components/material-runbox-legacy/MaterialRunboxLegacyContent.js +24 -22
- package/es/components/material-runbox-legacy/locales/en.json.js +3 -0
- package/es/components/material-runbox-legacy/locales/index.d.ts +3 -0
- package/es/components/material-runbox-legacy/locales/ko.json.js +3 -0
- package/es/components/material-runbox-legacy/locales/th.json.js +3 -0
- package/package.json +6 -6
- package/cjs/components/material-runbox-legacy/locales.d.ts +0 -15
- package/cjs/components/material-runbox-legacy/locales.js +0 -33
- package/es/components/material-runbox-legacy/locales.d.ts +0 -15
- package/es/components/material-runbox-legacy/locales.js +0 -30
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { WithIntlComponentBuilderProps } from '@elice/intl';
|
|
2
3
|
export interface MaterialRunboxLegacyProps {
|
|
3
4
|
materialRunboxId: number;
|
|
4
5
|
locale?: string;
|
|
5
6
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<MaterialRunboxLegacyProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
8
|
+
export default _default;
|
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var apiClient = require('@elice/api-client');
|
|
8
7
|
var blocks = require('@elice/blocks');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var materialSharedUtils = require('@elice/material-shared-utils');
|
|
10
|
-
var
|
|
10
|
+
var en = require('./locales/en.json.js');
|
|
11
|
+
var ko = require('./locales/ko.json.js');
|
|
12
|
+
var th = require('./locales/th.json.js');
|
|
11
13
|
var MaterialRunboxLegacyRunnerRoomWrapper = require('./MaterialRunboxLegacyRunnerRoomWrapper.js');
|
|
12
14
|
var MaterialRunboxLegacy_styled = require('./MaterialRunboxLegacy.styled.js');
|
|
13
15
|
|
|
14
16
|
const MaterialRunboxLegacy = ({
|
|
15
17
|
materialRunboxId,
|
|
16
|
-
|
|
18
|
+
__intl
|
|
17
19
|
}) => {
|
|
18
20
|
const isReady = materialSharedUtils.useMaterialConfigApiClientUpdate(apiClient.config.init);
|
|
19
21
|
if (!isReady) {
|
|
@@ -26,15 +28,20 @@ const MaterialRunboxLegacy = ({
|
|
|
26
28
|
size: "small"
|
|
27
29
|
}));
|
|
28
30
|
}
|
|
29
|
-
return React.createElement(
|
|
31
|
+
return React.createElement(intl.RawEliceIntlProvider, {
|
|
32
|
+
value: {
|
|
33
|
+
intl: __intl
|
|
34
|
+
}
|
|
35
|
+
}, React.createElement(MaterialRunboxLegacy_styled.StyledMaterialRunboxLegacy, {
|
|
30
36
|
key: materialRunboxId
|
|
31
|
-
}, React.createElement(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
}, React.createElement(intl.RawEliceIntlProvider, {
|
|
38
|
+
value: {
|
|
39
|
+
intl: __intl
|
|
40
|
+
}
|
|
35
41
|
}, React.createElement(MaterialRunboxLegacyRunnerRoomWrapper.default, {
|
|
36
42
|
materialRunboxId: materialRunboxId
|
|
37
|
-
})));
|
|
43
|
+
}))));
|
|
38
44
|
};
|
|
45
|
+
var MaterialRunboxLegacy$1 = new intl.IntlComponentBuilder(MaterialRunboxLegacy).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
39
46
|
|
|
40
|
-
exports.default = MaterialRunboxLegacy;
|
|
47
|
+
exports.default = MaterialRunboxLegacy$1;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var reactUse = require('react-use');
|
|
8
7
|
var blocks = require('@elice/blocks');
|
|
9
8
|
var icons = require('@elice/icons');
|
|
9
|
+
var intl = require('@elice/intl');
|
|
10
10
|
var websocket = require('./websocket.js');
|
|
11
11
|
var MaterialRunboxLegacyContent_styled = require('./MaterialRunboxLegacyContent.styled.js');
|
|
12
12
|
|
|
@@ -27,7 +27,9 @@ const MaterialRunboxLegacyContent = ({
|
|
|
27
27
|
isRunboxJoinError,
|
|
28
28
|
reconnect
|
|
29
29
|
}) => {
|
|
30
|
-
const
|
|
30
|
+
const {
|
|
31
|
+
intl: intl$1
|
|
32
|
+
} = intl.useRawEliceIntl();
|
|
31
33
|
const [runboxStats, setRunboxStats] = React.useState(null);
|
|
32
34
|
const [isRunboxUrlLoaded, setRunboxUrlLoaded] = React.useState(false);
|
|
33
35
|
const isRunboxUrlLoadedPrev = reactUse.usePrevious(isRunboxUrlLoaded);
|
|
@@ -51,7 +53,7 @@ const MaterialRunboxLegacyContent = ({
|
|
|
51
53
|
}
|
|
52
54
|
try {
|
|
53
55
|
await navigator.clipboard.writeText(runboxUrl);
|
|
54
|
-
blocks.Notification.success(intl.formatMessage({
|
|
56
|
+
blocks.Notification.success(intl$1.formatMessage({
|
|
55
57
|
id: 'runboxLegacy.share.success'
|
|
56
58
|
}));
|
|
57
59
|
} catch (e) {
|
|
@@ -95,28 +97,28 @@ const MaterialRunboxLegacyContent = ({
|
|
|
95
97
|
const renderRunboxStatusMessage = () => {
|
|
96
98
|
switch (runboxStatus) {
|
|
97
99
|
case exports.MaterialRunboxLegacyStatus.Idle:
|
|
98
|
-
return
|
|
99
|
-
id:
|
|
100
|
+
return intl$1.formatMessage({
|
|
101
|
+
id: 'runboxLegacy.status.idle'
|
|
100
102
|
});
|
|
101
103
|
case exports.MaterialRunboxLegacyStatus.Connecting:
|
|
102
|
-
return
|
|
103
|
-
id:
|
|
104
|
+
return intl$1.formatMessage({
|
|
105
|
+
id: 'runboxLegacy.status.connecting'
|
|
104
106
|
});
|
|
105
107
|
case exports.MaterialRunboxLegacyStatus.Loading:
|
|
106
|
-
return
|
|
107
|
-
id:
|
|
108
|
+
return intl$1.formatMessage({
|
|
109
|
+
id: 'runboxLegacy.status.loading'
|
|
108
110
|
});
|
|
109
111
|
case exports.MaterialRunboxLegacyStatus.Done:
|
|
110
|
-
return
|
|
111
|
-
id:
|
|
112
|
+
return intl$1.formatMessage({
|
|
113
|
+
id: 'runboxLegacy.status.done'
|
|
112
114
|
});
|
|
113
115
|
case exports.MaterialRunboxLegacyStatus.Disconnected:
|
|
114
|
-
return
|
|
115
|
-
id:
|
|
116
|
+
return intl$1.formatMessage({
|
|
117
|
+
id: 'runboxLegacy.status.disconnected'
|
|
116
118
|
});
|
|
117
119
|
case exports.MaterialRunboxLegacyStatus.Terminated:
|
|
118
|
-
return
|
|
119
|
-
id:
|
|
120
|
+
return intl$1.formatMessage({
|
|
121
|
+
id: 'runboxLegacy.status.terminated'
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
124
|
};
|
|
@@ -208,7 +210,7 @@ const MaterialRunboxLegacyContent = ({
|
|
|
208
210
|
}), React.createElement(blocks.Hspace, {
|
|
209
211
|
width: 0.5
|
|
210
212
|
}), React.createElement(blocks.Tooltip, {
|
|
211
|
-
title: isRunboxPreparing ? intl.formatMessage({
|
|
213
|
+
title: isRunboxPreparing ? intl$1.formatMessage({
|
|
212
214
|
id: 'runboxLegacy.reloadButton.tooltip'
|
|
213
215
|
}) : undefined
|
|
214
216
|
}, React.createElement("span", null, React.createElement(blocks.IconButton, {
|
|
@@ -231,8 +233,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
231
233
|
preWrap: true,
|
|
232
234
|
lineHeight: 1.5,
|
|
233
235
|
textAlign: "center"
|
|
234
|
-
},
|
|
235
|
-
id:
|
|
236
|
+
}, intl$1.formatMessage({
|
|
237
|
+
id: 'runboxLegacy.overlay.message.terminated'
|
|
236
238
|
})))));
|
|
237
239
|
}
|
|
238
240
|
if (runboxStatus === exports.MaterialRunboxLegacyStatus.Error) {
|
|
@@ -241,8 +243,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
241
243
|
preWrap: true,
|
|
242
244
|
lineHeight: 1.5,
|
|
243
245
|
textAlign: "center"
|
|
244
|
-
},
|
|
245
|
-
id:
|
|
246
|
+
}, intl$1.formatMessage({
|
|
247
|
+
id: 'runboxLegacy.overlay.message.error'
|
|
246
248
|
})))));
|
|
247
249
|
}
|
|
248
250
|
return React.createElement(MaterialRunboxLegacyContent_styled.RunboxBody, null, React.createElement(MaterialRunboxLegacyContent_styled.RunboxBodyOverlay, {
|
|
@@ -254,10 +256,10 @@ const MaterialRunboxLegacyContent = ({
|
|
|
254
256
|
preWrap: true,
|
|
255
257
|
lineHeight: 1.5,
|
|
256
258
|
textAlign: "center"
|
|
257
|
-
}, runboxStatus === exports.MaterialRunboxLegacyStatus.Disconnected ?
|
|
258
|
-
id:
|
|
259
|
-
}) :
|
|
260
|
-
id:
|
|
259
|
+
}, runboxStatus === exports.MaterialRunboxLegacyStatus.Disconnected ? intl$1.formatMessage({
|
|
260
|
+
id: 'runboxLegacy.overlay.message.disconnected'
|
|
261
|
+
}) : intl$1.formatMessage({
|
|
262
|
+
id: 'runboxLegacy.overlay.message.connecting'
|
|
261
263
|
})))), runboxUrl ? React.createElement(MaterialRunboxLegacyContent_styled.RunboxBodyIframe, {
|
|
262
264
|
src: runboxUrl + '/?folder=/mnt/elice/workspace',
|
|
263
265
|
title: "material-runbox-legacy",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageEn = {"runboxLegacy.status.idle":"Prepare notebook","runboxLegacy.status.connecting":"Connecting notebook","runboxLegacy.status.loading":"Loading notebook","runboxLegacy.status.done":"Connected","runboxLegacy.status.disconnected":"Disconnected","runboxLegacy.status.terminated":"Terminated","runboxLegacy.reloadButton.tooltip":"Reconnecting","runboxLegacy.overlay.message.terminated":"The connection has been terminated.\nTo reconnect, click the refresh button at the top.","runboxLegacy.overlay.message.error":"An error occurred connecting to the notebook server.\nClose all open notebook windows, please try again in a few minutes.","runboxLegacy.overlay.message.disconnected":"Reconnection is being attempted.\nIf the connection is delayed, check the network environment.","runboxLegacy.overlay.message.connecting":"Connecting.\nThis may take up to 5 minutes.","runboxLegacy.share.success":"Copied share URL to clipboard."};
|
|
6
|
+
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageKo = {"runboxLegacy.status.idle":"준비 중...","runboxLegacy.status.connecting":"페이지 연결 중...","runboxLegacy.status.loading":"페이지 로드 중...","runboxLegacy.status.done":"연결됨","runboxLegacy.status.disconnected":"연결 끊김","runboxLegacy.status.terminated":"종료됨","runboxLegacy.reloadButton.tooltip":"재연결 중","runboxLegacy.overlay.message.terminated":"연결이 종료되었습니다.\n다시 연결하시려면 상단의 새로고침 버튼을 눌려주세요.","runboxLegacy.overlay.message.error":"노트북 서버에 연결 중 오류가 발생했습니다.\n열려 있는 모든 노트북 창을 닫고, 몇 분 뒤에 다시 시도해 주십시오.","runboxLegacy.overlay.message.disconnected":"재연결 시도 중 입니다.\n연결이 지연될 시에는 네트워크 환경을 확인해주세요.","runboxLegacy.overlay.message.connecting":"연결 중 입니다.\n최대 5분까지 소요될 수 있습니다.","runboxLegacy.share.success":"공유 URL이 클립보드에 복사되었습니다."};
|
|
6
|
+
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageTh = {"runboxLegacy.status.idle":"กำลังเตรียมอยู่...","runboxLegacy.status.connecting":"การเชื่อมต่อหน้าเว็บ...","runboxLegacy.status.loading":"กำลังโหลดหน้า...","runboxLegacy.status.done":"เชื่อมต่อแล้ว","runboxLegacy.status.disconnected":"การตัดการเชื่อมต่อ","runboxLegacy.status.terminated":"สิ้นสุด","runboxLegacy.reloadButton.tooltip":"การเชื่อมต่ออีกครั้ง","runboxLegacy.overlay.message.terminated":"การเชื่อมต่อถูกตัดแล้ว\nกรุณากดปุ่มรีเฟรชด้านบนเพื่อเชื่อมต่ออีกครั้ง.","runboxLegacy.overlay.message.error":"โปรดปิดหน้าต่างโน้ตบุ๊คทั้งหมดและลองเชื่อมต่ออีกครั้งในไม่กี่นาทีหลังจากนั้น.","runboxLegacy.overlay.message.disconnected":"พยายามเชื่อมต่ออีกครั้ง\nหากมีความล่าช้าในการเชื่อมต่อ กรุณาตรวจสอบสภาพแวดล้อมของเครือข่าย.","runboxLegacy.overlay.message.connecting":"กำลังเชื่อมต่อ\nอาจใช้เวลาได้สูงสุด 5 นาที","runboxLegacy.share.success":"URL ถูกคัดลอกลงในคลิปบอร์ดแล้วครับ."};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { WithIntlComponentBuilderProps } from '@elice/intl';
|
|
2
3
|
export interface MaterialRunboxLegacyProps {
|
|
3
4
|
materialRunboxId: number;
|
|
4
5
|
locale?: string;
|
|
5
6
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<MaterialRunboxLegacyProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
8
|
+
export default _default;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IntlProvider } from 'react-intl';
|
|
3
2
|
import { config } from '@elice/api-client';
|
|
4
3
|
import { Flex, Spinner } from '@elice/blocks';
|
|
4
|
+
import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
|
|
5
5
|
import { useMaterialConfigApiClientUpdate } from '@elice/material-shared-utils';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import messageEn from './locales/en.json.js';
|
|
7
|
+
import messageKo from './locales/ko.json.js';
|
|
8
|
+
import messageTh from './locales/th.json.js';
|
|
8
9
|
import MaterialRunboxLegacyRunnerRoomWrapper from './MaterialRunboxLegacyRunnerRoomWrapper.js';
|
|
9
10
|
import { StyledMaterialRunboxLegacy } from './MaterialRunboxLegacy.styled.js';
|
|
10
11
|
|
|
11
12
|
const MaterialRunboxLegacy = ({
|
|
12
13
|
materialRunboxId,
|
|
13
|
-
|
|
14
|
+
__intl
|
|
14
15
|
}) => {
|
|
15
16
|
const isReady = useMaterialConfigApiClientUpdate(config.init);
|
|
16
17
|
if (!isReady) {
|
|
@@ -23,15 +24,20 @@ const MaterialRunboxLegacy = ({
|
|
|
23
24
|
size: "small"
|
|
24
25
|
}));
|
|
25
26
|
}
|
|
26
|
-
return React.createElement(
|
|
27
|
+
return React.createElement(RawEliceIntlProvider, {
|
|
28
|
+
value: {
|
|
29
|
+
intl: __intl
|
|
30
|
+
}
|
|
31
|
+
}, React.createElement(StyledMaterialRunboxLegacy, {
|
|
27
32
|
key: materialRunboxId
|
|
28
|
-
}, React.createElement(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
}, React.createElement(RawEliceIntlProvider, {
|
|
34
|
+
value: {
|
|
35
|
+
intl: __intl
|
|
36
|
+
}
|
|
32
37
|
}, React.createElement(MaterialRunboxLegacyRunnerRoomWrapper, {
|
|
33
38
|
materialRunboxId: materialRunboxId
|
|
34
|
-
})));
|
|
39
|
+
}))));
|
|
35
40
|
};
|
|
41
|
+
var MaterialRunboxLegacy$1 = new IntlComponentBuilder(MaterialRunboxLegacy).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
36
42
|
|
|
37
|
-
export { MaterialRunboxLegacy as default };
|
|
43
|
+
export { MaterialRunboxLegacy$1 as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl, FormattedMessage } from 'react-intl';
|
|
3
2
|
import { usePrevious } from 'react-use';
|
|
4
3
|
import { Vspace, LaptopOrLarger, Flex, Text, AntProgress, Hspace, IconButton, Tooltip, Box, Spinner, Notification } from '@elice/blocks';
|
|
5
4
|
import { eilShare, eilReset } from '@elice/icons';
|
|
5
|
+
import { useRawEliceIntl } from '@elice/intl';
|
|
6
6
|
import { WSMaterialRunboxLegacyStdio } from './websocket.js';
|
|
7
7
|
import { RunboxHeader, RunboxStatusLight, RunboxBody, RunboxBodyOverlay, RunboxBodyIframe } from './MaterialRunboxLegacyContent.styled.js';
|
|
8
8
|
|
|
@@ -23,7 +23,9 @@ const MaterialRunboxLegacyContent = ({
|
|
|
23
23
|
isRunboxJoinError,
|
|
24
24
|
reconnect
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
26
|
+
const {
|
|
27
|
+
intl
|
|
28
|
+
} = useRawEliceIntl();
|
|
27
29
|
const [runboxStats, setRunboxStats] = React.useState(null);
|
|
28
30
|
const [isRunboxUrlLoaded, setRunboxUrlLoaded] = React.useState(false);
|
|
29
31
|
const isRunboxUrlLoadedPrev = usePrevious(isRunboxUrlLoaded);
|
|
@@ -91,28 +93,28 @@ const MaterialRunboxLegacyContent = ({
|
|
|
91
93
|
const renderRunboxStatusMessage = () => {
|
|
92
94
|
switch (runboxStatus) {
|
|
93
95
|
case MaterialRunboxLegacyStatus.Idle:
|
|
94
|
-
return
|
|
95
|
-
id:
|
|
96
|
+
return intl.formatMessage({
|
|
97
|
+
id: 'runboxLegacy.status.idle'
|
|
96
98
|
});
|
|
97
99
|
case MaterialRunboxLegacyStatus.Connecting:
|
|
98
|
-
return
|
|
99
|
-
id:
|
|
100
|
+
return intl.formatMessage({
|
|
101
|
+
id: 'runboxLegacy.status.connecting'
|
|
100
102
|
});
|
|
101
103
|
case MaterialRunboxLegacyStatus.Loading:
|
|
102
|
-
return
|
|
103
|
-
id:
|
|
104
|
+
return intl.formatMessage({
|
|
105
|
+
id: 'runboxLegacy.status.loading'
|
|
104
106
|
});
|
|
105
107
|
case MaterialRunboxLegacyStatus.Done:
|
|
106
|
-
return
|
|
107
|
-
id:
|
|
108
|
+
return intl.formatMessage({
|
|
109
|
+
id: 'runboxLegacy.status.done'
|
|
108
110
|
});
|
|
109
111
|
case MaterialRunboxLegacyStatus.Disconnected:
|
|
110
|
-
return
|
|
111
|
-
id:
|
|
112
|
+
return intl.formatMessage({
|
|
113
|
+
id: 'runboxLegacy.status.disconnected'
|
|
112
114
|
});
|
|
113
115
|
case MaterialRunboxLegacyStatus.Terminated:
|
|
114
|
-
return
|
|
115
|
-
id:
|
|
116
|
+
return intl.formatMessage({
|
|
117
|
+
id: 'runboxLegacy.status.terminated'
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
120
|
};
|
|
@@ -227,8 +229,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
227
229
|
preWrap: true,
|
|
228
230
|
lineHeight: 1.5,
|
|
229
231
|
textAlign: "center"
|
|
230
|
-
},
|
|
231
|
-
id:
|
|
232
|
+
}, intl.formatMessage({
|
|
233
|
+
id: 'runboxLegacy.overlay.message.terminated'
|
|
232
234
|
})))));
|
|
233
235
|
}
|
|
234
236
|
if (runboxStatus === MaterialRunboxLegacyStatus.Error) {
|
|
@@ -237,8 +239,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
237
239
|
preWrap: true,
|
|
238
240
|
lineHeight: 1.5,
|
|
239
241
|
textAlign: "center"
|
|
240
|
-
},
|
|
241
|
-
id:
|
|
242
|
+
}, intl.formatMessage({
|
|
243
|
+
id: 'runboxLegacy.overlay.message.error'
|
|
242
244
|
})))));
|
|
243
245
|
}
|
|
244
246
|
return React.createElement(RunboxBody, null, React.createElement(RunboxBodyOverlay, {
|
|
@@ -250,10 +252,10 @@ const MaterialRunboxLegacyContent = ({
|
|
|
250
252
|
preWrap: true,
|
|
251
253
|
lineHeight: 1.5,
|
|
252
254
|
textAlign: "center"
|
|
253
|
-
}, runboxStatus === MaterialRunboxLegacyStatus.Disconnected ?
|
|
254
|
-
id:
|
|
255
|
-
}) :
|
|
256
|
-
id:
|
|
255
|
+
}, runboxStatus === MaterialRunboxLegacyStatus.Disconnected ? intl.formatMessage({
|
|
256
|
+
id: 'runboxLegacy.overlay.message.disconnected'
|
|
257
|
+
}) : intl.formatMessage({
|
|
258
|
+
id: 'runboxLegacy.overlay.message.connecting'
|
|
257
259
|
})))), runboxUrl ? React.createElement(RunboxBodyIframe, {
|
|
258
260
|
src: runboxUrl + '/?folder=/mnt/elice/workspace',
|
|
259
261
|
title: "material-runbox-legacy",
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var messageEn = {"runboxLegacy.status.idle":"Prepare notebook","runboxLegacy.status.connecting":"Connecting notebook","runboxLegacy.status.loading":"Loading notebook","runboxLegacy.status.done":"Connected","runboxLegacy.status.disconnected":"Disconnected","runboxLegacy.status.terminated":"Terminated","runboxLegacy.reloadButton.tooltip":"Reconnecting","runboxLegacy.overlay.message.terminated":"The connection has been terminated.\nTo reconnect, click the refresh button at the top.","runboxLegacy.overlay.message.error":"An error occurred connecting to the notebook server.\nClose all open notebook windows, please try again in a few minutes.","runboxLegacy.overlay.message.disconnected":"Reconnection is being attempted.\nIf the connection is delayed, check the network environment.","runboxLegacy.overlay.message.connecting":"Connecting.\nThis may take up to 5 minutes.","runboxLegacy.share.success":"Copied share URL to clipboard."};
|
|
2
|
+
|
|
3
|
+
export { messageEn as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var messageKo = {"runboxLegacy.status.idle":"준비 중...","runboxLegacy.status.connecting":"페이지 연결 중...","runboxLegacy.status.loading":"페이지 로드 중...","runboxLegacy.status.done":"연결됨","runboxLegacy.status.disconnected":"연결 끊김","runboxLegacy.status.terminated":"종료됨","runboxLegacy.reloadButton.tooltip":"재연결 중","runboxLegacy.overlay.message.terminated":"연결이 종료되었습니다.\n다시 연결하시려면 상단의 새로고침 버튼을 눌려주세요.","runboxLegacy.overlay.message.error":"노트북 서버에 연결 중 오류가 발생했습니다.\n열려 있는 모든 노트북 창을 닫고, 몇 분 뒤에 다시 시도해 주십시오.","runboxLegacy.overlay.message.disconnected":"재연결 시도 중 입니다.\n연결이 지연될 시에는 네트워크 환경을 확인해주세요.","runboxLegacy.overlay.message.connecting":"연결 중 입니다.\n최대 5분까지 소요될 수 있습니다.","runboxLegacy.share.success":"공유 URL이 클립보드에 복사되었습니다."};
|
|
2
|
+
|
|
3
|
+
export { messageKo as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var messageTh = {"runboxLegacy.status.idle":"กำลังเตรียมอยู่...","runboxLegacy.status.connecting":"การเชื่อมต่อหน้าเว็บ...","runboxLegacy.status.loading":"กำลังโหลดหน้า...","runboxLegacy.status.done":"เชื่อมต่อแล้ว","runboxLegacy.status.disconnected":"การตัดการเชื่อมต่อ","runboxLegacy.status.terminated":"สิ้นสุด","runboxLegacy.reloadButton.tooltip":"การเชื่อมต่ออีกครั้ง","runboxLegacy.overlay.message.terminated":"การเชื่อมต่อถูกตัดแล้ว\nกรุณากดปุ่มรีเฟรชด้านบนเพื่อเชื่อมต่ออีกครั้ง.","runboxLegacy.overlay.message.error":"โปรดปิดหน้าต่างโน้ตบุ๊คทั้งหมดและลองเชื่อมต่ออีกครั้งในไม่กี่นาทีหลังจากนั้น.","runboxLegacy.overlay.message.disconnected":"พยายามเชื่อมต่ออีกครั้ง\nหากมีความล่าช้าในการเชื่อมต่อ กรุณาตรวจสอบสภาพแวดล้อมของเครือข่าย.","runboxLegacy.overlay.message.connecting":"กำลังเชื่อมต่อ\nอาจใช้เวลาได้สูงสุด 5 นาที","runboxLegacy.share.success":"URL ถูกคัดลอกลงในคลิปบอร์ดแล้วครับ."};
|
|
2
|
+
|
|
3
|
+
export { messageTh as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-runbox-legacy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.240508.0-globalization.0",
|
|
4
4
|
"description": "User view and editing components of Elice material runbox legacy",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@elice/blocks": "^1",
|
|
30
30
|
"@elice/design-tokens": "^1",
|
|
31
31
|
"@elice/icons": "^1",
|
|
32
|
+
"@elice/intl": "*",
|
|
32
33
|
"@elice/markdown": "^1",
|
|
33
34
|
"@elice/material-shared-types": "*",
|
|
34
35
|
"@elice/material-shared-utils": "*",
|
|
35
36
|
"@elice/types": "^1",
|
|
36
37
|
"@elice/websocket": "^1",
|
|
37
38
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
38
|
-
"react-intl": "^5.0.0",
|
|
39
39
|
"react-use": "^17.0.0",
|
|
40
40
|
"styled-components": "^5.2.0"
|
|
41
41
|
},
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"@elice/design-tokens": "^1.220803.0",
|
|
50
50
|
"@elice/icons": "^1.230814.0",
|
|
51
51
|
"@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
|
|
52
|
+
"@elice/intl": "0.240425.0-alpha.7",
|
|
52
53
|
"@elice/markdown": "^1.220815.0",
|
|
53
|
-
"@elice/material-shared-types": "1.
|
|
54
|
-
"@elice/material-shared-utils": "1.
|
|
54
|
+
"@elice/material-shared-types": "1.240508.0-globalization.0",
|
|
55
|
+
"@elice/material-shared-utils": "1.240508.0-globalization.0",
|
|
55
56
|
"@elice/types": "^1.240208.0",
|
|
56
57
|
"@elice/websocket": "^1.220815.0",
|
|
57
58
|
"@types/classnames": "^2.3.1",
|
|
58
59
|
"@types/react": "~17.0.9",
|
|
59
60
|
"@types/styled-components": "^5.1.21",
|
|
60
61
|
"react": "^17.0.2",
|
|
61
|
-
"react-intl": "^5.20.10",
|
|
62
62
|
"react-use": "^17.2.4",
|
|
63
63
|
"styled-components": "^5.3.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e64474c7cab0b6cb852ba08a2076c88e732eec03"
|
|
66
66
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const en: {
|
|
2
|
-
'runboxLegacy.status.idle': string;
|
|
3
|
-
'runboxLegacy.status.connecting': string;
|
|
4
|
-
'runboxLegacy.status.loading': string;
|
|
5
|
-
'runboxLegacy.status.done': string;
|
|
6
|
-
'runboxLegacy.status.disconnected': string;
|
|
7
|
-
'runboxLegacy.status.terminated': string;
|
|
8
|
-
'runboxLegacy.reloadButton.tooltip': string;
|
|
9
|
-
'runboxLegacy.overlay.message.terminated': string;
|
|
10
|
-
'runboxLegacy.overlay.message.error': string;
|
|
11
|
-
'runboxLegacy.overlay.message.disconnected': string;
|
|
12
|
-
'runboxLegacy.overlay.message.connecting': string;
|
|
13
|
-
'runboxLegacy.share.success': string;
|
|
14
|
-
};
|
|
15
|
-
export declare const ko: typeof en;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const en = {
|
|
4
|
-
'runboxLegacy.status.idle': 'Prepare notebook',
|
|
5
|
-
'runboxLegacy.status.connecting': 'Connecting notebook',
|
|
6
|
-
'runboxLegacy.status.loading': 'Loading notebook',
|
|
7
|
-
'runboxLegacy.status.done': 'Connected',
|
|
8
|
-
'runboxLegacy.status.disconnected': 'Disconnected',
|
|
9
|
-
'runboxLegacy.status.terminated': 'Terminated',
|
|
10
|
-
'runboxLegacy.reloadButton.tooltip': 'Reconnecting',
|
|
11
|
-
'runboxLegacy.overlay.message.terminated': 'The connection has been terminated.\nTo reconnect, click the refresh button at the top.',
|
|
12
|
-
'runboxLegacy.overlay.message.error': 'An error occurred connecting to the notebook server.\nClose all open notebook windows, please try again in a few minutes.',
|
|
13
|
-
'runboxLegacy.overlay.message.disconnected': 'Reconnection is being attempted.\nIf the connection is delayed, check the network environment.',
|
|
14
|
-
'runboxLegacy.overlay.message.connecting': 'Connecting.\nThis may take up to 5 minutes.',
|
|
15
|
-
'runboxLegacy.share.success': 'Copied share URL to clipboard.'
|
|
16
|
-
};
|
|
17
|
-
const ko = {
|
|
18
|
-
'runboxLegacy.status.idle': '준비 중...',
|
|
19
|
-
'runboxLegacy.status.connecting': '페이지 연결 중...',
|
|
20
|
-
'runboxLegacy.status.loading': '페이지 로드 중...',
|
|
21
|
-
'runboxLegacy.status.done': '연결됨',
|
|
22
|
-
'runboxLegacy.status.disconnected': '연결 끊김',
|
|
23
|
-
'runboxLegacy.status.terminated': '종료됨',
|
|
24
|
-
'runboxLegacy.reloadButton.tooltip': '재연결 중',
|
|
25
|
-
'runboxLegacy.overlay.message.terminated': '연결이 종료되었습니다.\n다시 연결하시려면 상단의 새로고침 버튼을 눌려주세요.',
|
|
26
|
-
'runboxLegacy.overlay.message.error': '노트북 서버에 연결 중 오류가 발생했습니다.\n열려 있는 모든 노트북 창을 닫고, 몇 분 뒤에 다시 시도해 주십시오.',
|
|
27
|
-
'runboxLegacy.overlay.message.disconnected': '재연결 시도 중 입니다.\n연결이 지연될 시에는 네트워크 환경을 확인해주세요.',
|
|
28
|
-
'runboxLegacy.overlay.message.connecting': '연결 중 입니다.\n최대 5분까지 소요될 수 있습니다.',
|
|
29
|
-
'runboxLegacy.share.success': '공유 URL이 클립보드에 복사되었습니다.'
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
exports.en = en;
|
|
33
|
-
exports.ko = ko;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const en: {
|
|
2
|
-
'runboxLegacy.status.idle': string;
|
|
3
|
-
'runboxLegacy.status.connecting': string;
|
|
4
|
-
'runboxLegacy.status.loading': string;
|
|
5
|
-
'runboxLegacy.status.done': string;
|
|
6
|
-
'runboxLegacy.status.disconnected': string;
|
|
7
|
-
'runboxLegacy.status.terminated': string;
|
|
8
|
-
'runboxLegacy.reloadButton.tooltip': string;
|
|
9
|
-
'runboxLegacy.overlay.message.terminated': string;
|
|
10
|
-
'runboxLegacy.overlay.message.error': string;
|
|
11
|
-
'runboxLegacy.overlay.message.disconnected': string;
|
|
12
|
-
'runboxLegacy.overlay.message.connecting': string;
|
|
13
|
-
'runboxLegacy.share.success': string;
|
|
14
|
-
};
|
|
15
|
-
export declare const ko: typeof en;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
'runboxLegacy.status.idle': 'Prepare notebook',
|
|
3
|
-
'runboxLegacy.status.connecting': 'Connecting notebook',
|
|
4
|
-
'runboxLegacy.status.loading': 'Loading notebook',
|
|
5
|
-
'runboxLegacy.status.done': 'Connected',
|
|
6
|
-
'runboxLegacy.status.disconnected': 'Disconnected',
|
|
7
|
-
'runboxLegacy.status.terminated': 'Terminated',
|
|
8
|
-
'runboxLegacy.reloadButton.tooltip': 'Reconnecting',
|
|
9
|
-
'runboxLegacy.overlay.message.terminated': 'The connection has been terminated.\nTo reconnect, click the refresh button at the top.',
|
|
10
|
-
'runboxLegacy.overlay.message.error': 'An error occurred connecting to the notebook server.\nClose all open notebook windows, please try again in a few minutes.',
|
|
11
|
-
'runboxLegacy.overlay.message.disconnected': 'Reconnection is being attempted.\nIf the connection is delayed, check the network environment.',
|
|
12
|
-
'runboxLegacy.overlay.message.connecting': 'Connecting.\nThis may take up to 5 minutes.',
|
|
13
|
-
'runboxLegacy.share.success': 'Copied share URL to clipboard.'
|
|
14
|
-
};
|
|
15
|
-
const ko = {
|
|
16
|
-
'runboxLegacy.status.idle': '준비 중...',
|
|
17
|
-
'runboxLegacy.status.connecting': '페이지 연결 중...',
|
|
18
|
-
'runboxLegacy.status.loading': '페이지 로드 중...',
|
|
19
|
-
'runboxLegacy.status.done': '연결됨',
|
|
20
|
-
'runboxLegacy.status.disconnected': '연결 끊김',
|
|
21
|
-
'runboxLegacy.status.terminated': '종료됨',
|
|
22
|
-
'runboxLegacy.reloadButton.tooltip': '재연결 중',
|
|
23
|
-
'runboxLegacy.overlay.message.terminated': '연결이 종료되었습니다.\n다시 연결하시려면 상단의 새로고침 버튼을 눌려주세요.',
|
|
24
|
-
'runboxLegacy.overlay.message.error': '노트북 서버에 연결 중 오류가 발생했습니다.\n열려 있는 모든 노트북 창을 닫고, 몇 분 뒤에 다시 시도해 주십시오.',
|
|
25
|
-
'runboxLegacy.overlay.message.disconnected': '재연결 시도 중 입니다.\n연결이 지연될 시에는 네트워크 환경을 확인해주세요.',
|
|
26
|
-
'runboxLegacy.overlay.message.connecting': '연결 중 입니다.\n최대 5분까지 소요될 수 있습니다.',
|
|
27
|
-
'runboxLegacy.share.success': '공유 URL이 클립보드에 복사되었습니다.'
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export { en, ko };
|