@nine-lab/nine-mu 0.1.353 → 0.1.354
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/nine-mu.js +26 -28
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/exception/ExceptionHook.js +20 -21
package/package.json
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
// ==========================================
|
|
4
|
-
// 1. 터미널 프롬프트 테마 스타일 (
|
|
4
|
+
// 1. 터미널 프롬프트 테마 스타일 (픽셀 단위 정밀 제어)
|
|
5
5
|
// ==========================================
|
|
6
6
|
export const NineExceptionStyles = {
|
|
7
7
|
container: {
|
|
8
8
|
padding: '25px',
|
|
9
9
|
margin: '20px',
|
|
10
10
|
background: '#121314', // 터미널 다크 블랙 배경
|
|
11
|
-
border: '1px solid #343A40', // 외곽
|
|
11
|
+
border: '1px solid #343A40', // 외곽 테두리
|
|
12
12
|
borderRadius: '6px',
|
|
13
13
|
fontFamily: 'Consolas, Monaco, "Courier New", monospace',
|
|
14
14
|
textAlign: 'left',
|
|
15
15
|
boxShadow: '0 4px 12px rgba(0,0,0,0.3)',
|
|
16
|
-
lineHeight: '1.2' //
|
|
16
|
+
lineHeight: '1.2' // 기본 줄높이를 고정하여 서체 왜곡 방지
|
|
17
17
|
},
|
|
18
18
|
systemError: {
|
|
19
19
|
color: '#E53E3E', // 터미널 레드 Warning
|
|
20
20
|
fontWeight: 'bold',
|
|
21
21
|
fontSize: '14px',
|
|
22
|
-
margin: '0 0
|
|
23
|
-
letterSpacing: '0.5px'
|
|
22
|
+
margin: '0 0 12px 0', // ⭐ 첫 번째 줄 아래 여백 (12px)
|
|
23
|
+
letterSpacing: '0.5px',
|
|
24
|
+
padding: '0'
|
|
24
25
|
},
|
|
25
26
|
pre: {
|
|
26
27
|
background: 'transparent',
|
|
27
28
|
color: '#F8F9FA',
|
|
28
29
|
padding: '0',
|
|
29
|
-
margin: '0 0 12px 0', //
|
|
30
|
+
margin: '0 0 12px 0', // ⭐ 브라우저 기본 마진을 지우고 정확히 하단 여백 12px 강제
|
|
30
31
|
border: 'none',
|
|
31
32
|
overflowX: 'auto',
|
|
32
33
|
whiteSpace: 'pre-wrap',
|
|
@@ -36,28 +37,26 @@ export const NineExceptionStyles = {
|
|
|
36
37
|
footer: {
|
|
37
38
|
fontSize: '14px',
|
|
38
39
|
color: '#E2E8F0',
|
|
39
|
-
margin: '0',
|
|
40
|
+
margin: '0',
|
|
41
|
+
padding: '0',
|
|
40
42
|
display: 'flex',
|
|
41
43
|
flexDirection: 'column',
|
|
42
|
-
gap: '
|
|
44
|
+
gap: '12px' // ⭐ 상태 메시지들 간의 간격도 12px로 통일
|
|
43
45
|
},
|
|
44
46
|
promptRow: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
margin: '0',
|
|
48
|
+
padding: '0',
|
|
49
|
+
display: 'block'
|
|
47
50
|
},
|
|
48
|
-
// ⭐ y 글자에 직접 바인딩할 터미널 링크 스타일
|
|
49
51
|
cliLink: {
|
|
50
|
-
background: 'transparent',
|
|
51
52
|
color: '#38A169', // 터미널 그린
|
|
52
|
-
|
|
53
|
-
padding: '0 2px',
|
|
53
|
+
padding: '0',
|
|
54
54
|
fontFamily: 'Consolas, Monaco, monospace',
|
|
55
55
|
fontSize: '14px',
|
|
56
56
|
fontWeight: 'bold',
|
|
57
57
|
cursor: 'pointer',
|
|
58
58
|
textDecoration: 'underline',
|
|
59
|
-
textUnderlineOffset: '
|
|
60
|
-
display: 'inline'
|
|
59
|
+
textUnderlineOffset: '3px'
|
|
61
60
|
}
|
|
62
61
|
};
|
|
63
62
|
|
|
@@ -155,10 +154,10 @@ export class NineExceptionHook extends React.Component {
|
|
|
155
154
|
'[SYSTEM] COMPONENT RENDER ERROR DETECTED'
|
|
156
155
|
),
|
|
157
156
|
|
|
158
|
-
// 2. 에러 내용
|
|
157
|
+
// 2. 에러 내용
|
|
159
158
|
React.createElement('pre', { style: { ...NineExceptionStyles.pre, ...customStyles.pre } }, errorMessage),
|
|
160
159
|
|
|
161
|
-
// 3. CLI 프롬프트
|
|
160
|
+
// 3. CLI 프롬프트 영역
|
|
162
161
|
React.createElement(
|
|
163
162
|
'div',
|
|
164
163
|
{ style: { ...NineExceptionStyles.footer, ...customStyles.footer } },
|
|
@@ -168,7 +167,7 @@ export class NineExceptionHook extends React.Component {
|
|
|
168
167
|
{ style: NineExceptionStyles.promptRow },
|
|
169
168
|
React.createElement('span', null, 'Send error log to Control Tower ('),
|
|
170
169
|
React.createElement(
|
|
171
|
-
'
|
|
170
|
+
'span',
|
|
172
171
|
{
|
|
173
172
|
style: { ...NineExceptionStyles.cliLink, ...customStyles.cliLink },
|
|
174
173
|
onClick: this.handleReport
|
|
@@ -180,13 +179,13 @@ export class NineExceptionHook extends React.Component {
|
|
|
180
179
|
|
|
181
180
|
this.state.reportStatus === 'sending' && React.createElement(
|
|
182
181
|
'div',
|
|
183
|
-
{ style: { color: '#ED8936' } },
|
|
182
|
+
{ style: { color: '#ED8936', margin: '0' } },
|
|
184
183
|
'>> Connecting to Control Tower... Sending payload.'
|
|
185
184
|
),
|
|
186
185
|
|
|
187
186
|
this.state.reportStatus === 'success' && React.createElement(
|
|
188
187
|
'div',
|
|
189
|
-
{ style: { display: 'flex', flexDirection: 'column', gap: '
|
|
188
|
+
{ style: { display: 'flex', flexDirection: 'column', gap: '12px', margin: '0' } },
|
|
190
189
|
React.createElement('div', { style: { color: '#38A169', fontWeight: 'bold' } }, '>> Transmit complete. Core engine initialized.'),
|
|
191
190
|
React.createElement('div', { style: { color: '#A0AEC0', fontStyle: 'italic', fontSize: '13px' } }, 'AI가 소스 코드를 재수정하는 동안 잠시만 기다려주세요...')
|
|
192
191
|
)
|