@elice/material-runbox-legacy 1.240401.0 → 1.240508.0-globalization.1
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 +10 -11
- package/cjs/components/material-runbox-legacy/MaterialRunboxLegacyContent.js +24 -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 +10 -12
- package/es/components/material-runbox-legacy/MaterialRunboxLegacyContent.js +22 -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,12 @@ const MaterialRunboxLegacy = ({
|
|
|
26
28
|
size: "small"
|
|
27
29
|
}));
|
|
28
30
|
}
|
|
29
|
-
return React.createElement(MaterialRunboxLegacy_styled.StyledMaterialRunboxLegacy, {
|
|
31
|
+
return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialRunboxLegacy_styled.StyledMaterialRunboxLegacy, {
|
|
30
32
|
key: materialRunboxId
|
|
31
|
-
}, React.createElement(
|
|
32
|
-
locale: locale,
|
|
33
|
-
defaultLocale: "en",
|
|
34
|
-
messages: locale in locales ? locales[locale] : locales.en
|
|
35
|
-
}, React.createElement(MaterialRunboxLegacyRunnerRoomWrapper.default, {
|
|
33
|
+
}, React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialRunboxLegacyRunnerRoomWrapper.default, {
|
|
36
34
|
materialRunboxId: materialRunboxId
|
|
37
|
-
})));
|
|
35
|
+
}))));
|
|
38
36
|
};
|
|
37
|
+
var MaterialRunboxLegacy$1 = new intl.IntlComponentBuilder(MaterialRunboxLegacy).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
39
38
|
|
|
40
|
-
exports.default = MaterialRunboxLegacy;
|
|
39
|
+
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,7 @@ const MaterialRunboxLegacyContent = ({
|
|
|
27
27
|
isRunboxJoinError,
|
|
28
28
|
reconnect
|
|
29
29
|
}) => {
|
|
30
|
-
const intl =
|
|
30
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
31
31
|
const [runboxStats, setRunboxStats] = React.useState(null);
|
|
32
32
|
const [isRunboxUrlLoaded, setRunboxUrlLoaded] = React.useState(false);
|
|
33
33
|
const isRunboxUrlLoadedPrev = reactUse.usePrevious(isRunboxUrlLoaded);
|
|
@@ -51,7 +51,7 @@ const MaterialRunboxLegacyContent = ({
|
|
|
51
51
|
}
|
|
52
52
|
try {
|
|
53
53
|
await navigator.clipboard.writeText(runboxUrl);
|
|
54
|
-
blocks.Notification.success(intl.formatMessage({
|
|
54
|
+
blocks.Notification.success(intl$1.formatMessage({
|
|
55
55
|
id: 'runboxLegacy.share.success'
|
|
56
56
|
}));
|
|
57
57
|
} catch (e) {
|
|
@@ -95,28 +95,28 @@ const MaterialRunboxLegacyContent = ({
|
|
|
95
95
|
const renderRunboxStatusMessage = () => {
|
|
96
96
|
switch (runboxStatus) {
|
|
97
97
|
case exports.MaterialRunboxLegacyStatus.Idle:
|
|
98
|
-
return
|
|
99
|
-
id:
|
|
98
|
+
return intl$1.formatMessage({
|
|
99
|
+
id: 'runboxLegacy.status.idle'
|
|
100
100
|
});
|
|
101
101
|
case exports.MaterialRunboxLegacyStatus.Connecting:
|
|
102
|
-
return
|
|
103
|
-
id:
|
|
102
|
+
return intl$1.formatMessage({
|
|
103
|
+
id: 'runboxLegacy.status.connecting'
|
|
104
104
|
});
|
|
105
105
|
case exports.MaterialRunboxLegacyStatus.Loading:
|
|
106
|
-
return
|
|
107
|
-
id:
|
|
106
|
+
return intl$1.formatMessage({
|
|
107
|
+
id: 'runboxLegacy.status.loading'
|
|
108
108
|
});
|
|
109
109
|
case exports.MaterialRunboxLegacyStatus.Done:
|
|
110
|
-
return
|
|
111
|
-
id:
|
|
110
|
+
return intl$1.formatMessage({
|
|
111
|
+
id: 'runboxLegacy.status.done'
|
|
112
112
|
});
|
|
113
113
|
case exports.MaterialRunboxLegacyStatus.Disconnected:
|
|
114
|
-
return
|
|
115
|
-
id:
|
|
114
|
+
return intl$1.formatMessage({
|
|
115
|
+
id: 'runboxLegacy.status.disconnected'
|
|
116
116
|
});
|
|
117
117
|
case exports.MaterialRunboxLegacyStatus.Terminated:
|
|
118
|
-
return
|
|
119
|
-
id:
|
|
118
|
+
return intl$1.formatMessage({
|
|
119
|
+
id: 'runboxLegacy.status.terminated'
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
};
|
|
@@ -208,7 +208,7 @@ const MaterialRunboxLegacyContent = ({
|
|
|
208
208
|
}), React.createElement(blocks.Hspace, {
|
|
209
209
|
width: 0.5
|
|
210
210
|
}), React.createElement(blocks.Tooltip, {
|
|
211
|
-
title: isRunboxPreparing ? intl.formatMessage({
|
|
211
|
+
title: isRunboxPreparing ? intl$1.formatMessage({
|
|
212
212
|
id: 'runboxLegacy.reloadButton.tooltip'
|
|
213
213
|
}) : undefined
|
|
214
214
|
}, React.createElement("span", null, React.createElement(blocks.IconButton, {
|
|
@@ -231,8 +231,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
231
231
|
preWrap: true,
|
|
232
232
|
lineHeight: 1.5,
|
|
233
233
|
textAlign: "center"
|
|
234
|
-
},
|
|
235
|
-
id:
|
|
234
|
+
}, intl$1.formatMessage({
|
|
235
|
+
id: 'runboxLegacy.overlay.message.terminated'
|
|
236
236
|
})))));
|
|
237
237
|
}
|
|
238
238
|
if (runboxStatus === exports.MaterialRunboxLegacyStatus.Error) {
|
|
@@ -241,8 +241,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
241
241
|
preWrap: true,
|
|
242
242
|
lineHeight: 1.5,
|
|
243
243
|
textAlign: "center"
|
|
244
|
-
},
|
|
245
|
-
id:
|
|
244
|
+
}, intl$1.formatMessage({
|
|
245
|
+
id: 'runboxLegacy.overlay.message.error'
|
|
246
246
|
})))));
|
|
247
247
|
}
|
|
248
248
|
return React.createElement(MaterialRunboxLegacyContent_styled.RunboxBody, null, React.createElement(MaterialRunboxLegacyContent_styled.RunboxBodyOverlay, {
|
|
@@ -254,10 +254,10 @@ const MaterialRunboxLegacyContent = ({
|
|
|
254
254
|
preWrap: true,
|
|
255
255
|
lineHeight: 1.5,
|
|
256
256
|
textAlign: "center"
|
|
257
|
-
}, runboxStatus === exports.MaterialRunboxLegacyStatus.Disconnected ?
|
|
258
|
-
id:
|
|
259
|
-
}) :
|
|
260
|
-
id:
|
|
257
|
+
}, runboxStatus === exports.MaterialRunboxLegacyStatus.Disconnected ? intl$1.formatMessage({
|
|
258
|
+
id: 'runboxLegacy.overlay.message.disconnected'
|
|
259
|
+
}) : intl$1.formatMessage({
|
|
260
|
+
id: 'runboxLegacy.overlay.message.connecting'
|
|
261
261
|
})))), runboxUrl ? React.createElement(MaterialRunboxLegacyContent_styled.RunboxBodyIframe, {
|
|
262
262
|
src: runboxUrl + '/?folder=/mnt/elice/workspace',
|
|
263
263
|
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,12 @@ const MaterialRunboxLegacy = ({
|
|
|
23
24
|
size: "small"
|
|
24
25
|
}));
|
|
25
26
|
}
|
|
26
|
-
return React.createElement(StyledMaterialRunboxLegacy, {
|
|
27
|
+
return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(StyledMaterialRunboxLegacy, {
|
|
27
28
|
key: materialRunboxId
|
|
28
|
-
}, React.createElement(
|
|
29
|
-
locale: locale,
|
|
30
|
-
defaultLocale: "en",
|
|
31
|
-
messages: locale in locales ? locales[locale] : en
|
|
32
|
-
}, React.createElement(MaterialRunboxLegacyRunnerRoomWrapper, {
|
|
29
|
+
}, React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialRunboxLegacyRunnerRoomWrapper, {
|
|
33
30
|
materialRunboxId: materialRunboxId
|
|
34
|
-
})));
|
|
31
|
+
}))));
|
|
35
32
|
};
|
|
33
|
+
var MaterialRunboxLegacy$1 = new IntlComponentBuilder(MaterialRunboxLegacy).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
|
|
36
34
|
|
|
37
|
-
export { MaterialRunboxLegacy as default };
|
|
35
|
+
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,7 @@ const MaterialRunboxLegacyContent = ({
|
|
|
23
23
|
isRunboxJoinError,
|
|
24
24
|
reconnect
|
|
25
25
|
}) => {
|
|
26
|
-
const intl =
|
|
26
|
+
const intl = useRawEliceIntl();
|
|
27
27
|
const [runboxStats, setRunboxStats] = React.useState(null);
|
|
28
28
|
const [isRunboxUrlLoaded, setRunboxUrlLoaded] = React.useState(false);
|
|
29
29
|
const isRunboxUrlLoadedPrev = usePrevious(isRunboxUrlLoaded);
|
|
@@ -91,28 +91,28 @@ const MaterialRunboxLegacyContent = ({
|
|
|
91
91
|
const renderRunboxStatusMessage = () => {
|
|
92
92
|
switch (runboxStatus) {
|
|
93
93
|
case MaterialRunboxLegacyStatus.Idle:
|
|
94
|
-
return
|
|
95
|
-
id:
|
|
94
|
+
return intl.formatMessage({
|
|
95
|
+
id: 'runboxLegacy.status.idle'
|
|
96
96
|
});
|
|
97
97
|
case MaterialRunboxLegacyStatus.Connecting:
|
|
98
|
-
return
|
|
99
|
-
id:
|
|
98
|
+
return intl.formatMessage({
|
|
99
|
+
id: 'runboxLegacy.status.connecting'
|
|
100
100
|
});
|
|
101
101
|
case MaterialRunboxLegacyStatus.Loading:
|
|
102
|
-
return
|
|
103
|
-
id:
|
|
102
|
+
return intl.formatMessage({
|
|
103
|
+
id: 'runboxLegacy.status.loading'
|
|
104
104
|
});
|
|
105
105
|
case MaterialRunboxLegacyStatus.Done:
|
|
106
|
-
return
|
|
107
|
-
id:
|
|
106
|
+
return intl.formatMessage({
|
|
107
|
+
id: 'runboxLegacy.status.done'
|
|
108
108
|
});
|
|
109
109
|
case MaterialRunboxLegacyStatus.Disconnected:
|
|
110
|
-
return
|
|
111
|
-
id:
|
|
110
|
+
return intl.formatMessage({
|
|
111
|
+
id: 'runboxLegacy.status.disconnected'
|
|
112
112
|
});
|
|
113
113
|
case MaterialRunboxLegacyStatus.Terminated:
|
|
114
|
-
return
|
|
115
|
-
id:
|
|
114
|
+
return intl.formatMessage({
|
|
115
|
+
id: 'runboxLegacy.status.terminated'
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
};
|
|
@@ -227,8 +227,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
227
227
|
preWrap: true,
|
|
228
228
|
lineHeight: 1.5,
|
|
229
229
|
textAlign: "center"
|
|
230
|
-
},
|
|
231
|
-
id:
|
|
230
|
+
}, intl.formatMessage({
|
|
231
|
+
id: 'runboxLegacy.overlay.message.terminated'
|
|
232
232
|
})))));
|
|
233
233
|
}
|
|
234
234
|
if (runboxStatus === MaterialRunboxLegacyStatus.Error) {
|
|
@@ -237,8 +237,8 @@ const MaterialRunboxLegacyContent = ({
|
|
|
237
237
|
preWrap: true,
|
|
238
238
|
lineHeight: 1.5,
|
|
239
239
|
textAlign: "center"
|
|
240
|
-
},
|
|
241
|
-
id:
|
|
240
|
+
}, intl.formatMessage({
|
|
241
|
+
id: 'runboxLegacy.overlay.message.error'
|
|
242
242
|
})))));
|
|
243
243
|
}
|
|
244
244
|
return React.createElement(RunboxBody, null, React.createElement(RunboxBodyOverlay, {
|
|
@@ -250,10 +250,10 @@ const MaterialRunboxLegacyContent = ({
|
|
|
250
250
|
preWrap: true,
|
|
251
251
|
lineHeight: 1.5,
|
|
252
252
|
textAlign: "center"
|
|
253
|
-
}, runboxStatus === MaterialRunboxLegacyStatus.Disconnected ?
|
|
254
|
-
id:
|
|
255
|
-
}) :
|
|
256
|
-
id:
|
|
253
|
+
}, runboxStatus === MaterialRunboxLegacyStatus.Disconnected ? intl.formatMessage({
|
|
254
|
+
id: 'runboxLegacy.overlay.message.disconnected'
|
|
255
|
+
}) : intl.formatMessage({
|
|
256
|
+
id: 'runboxLegacy.overlay.message.connecting'
|
|
257
257
|
})))), runboxUrl ? React.createElement(RunboxBodyIframe, {
|
|
258
258
|
src: runboxUrl + '/?folder=/mnt/elice/workspace',
|
|
259
259
|
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.1",
|
|
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.9",
|
|
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.1",
|
|
55
|
+
"@elice/material-shared-utils": "1.240508.0-globalization.1",
|
|
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": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
|
|
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 };
|