hackmate-cli 1.0.21 → 1.0.23
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/features/profile/components/index.d.ts.map +1 -1
- package/dist/features/profile/components/index.js +22 -1
- package/dist/features/profile/components/index.js.map +1 -1
- package/dist/features/profile/components/profile-view.screen.d.ts +2 -0
- package/dist/features/profile/components/profile-view.screen.d.ts.map +1 -1
- package/dist/features/profile/components/profile-view.screen.js +4 -24
- package/dist/features/profile/components/profile-view.screen.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CA0BvD,CAAC;AAEF,eAAO,MAAM,WAAW,+CAEvB,CAAC"}
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { useInput, useApp } from 'ink';
|
|
2
4
|
import { useProfileViewLogic } from '../hooks/useProfile.js';
|
|
3
5
|
import { ProfileViewScreen } from './profile-view.screen.js';
|
|
4
6
|
import { ProfileEditV3 } from './profile-edit-v3.screen.js';
|
|
5
7
|
export const ProfileView = ({ username }) => {
|
|
8
|
+
const { exit } = useApp();
|
|
6
9
|
const logic = useProfileViewLogic(username);
|
|
7
|
-
|
|
10
|
+
const [showFullStack, setShowFullStack] = useState(false);
|
|
11
|
+
const [showFullInterests, setShowFullInterests] = useState(false);
|
|
12
|
+
useInput((input, key) => {
|
|
13
|
+
if (key.escape) {
|
|
14
|
+
exit();
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
// Use right arrow or 's' to toggle stack
|
|
18
|
+
if (key.rightArrow || input.toLowerCase() === 's') {
|
|
19
|
+
setShowFullStack(prev => !prev);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
// Use down arrow or 'i' to toggle interests
|
|
23
|
+
if (key.downArrow || input.toLowerCase() === 'i') {
|
|
24
|
+
setShowFullInterests(prev => !prev);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return _jsx(ProfileViewScreen, { ...logic, showFullStack: showFullStack, showFullInterests: showFullInterests });
|
|
8
29
|
};
|
|
9
30
|
export const ProfileEdit = () => {
|
|
10
31
|
return _jsx(ProfileEditV3, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/profile/components/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/profile/components/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC;IAC1B,MAAM,KAAK,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElE,QAAQ,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACpB,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACb,IAAI,EAAE,CAAC;YACP,OAAO;QACX,CAAC;QAED,yCAAyC;QACzC,IAAI,GAAG,CAAC,UAAU,IAAI,KAAK,CAAC,WAAW,EAAE,KAAK,GAAG,EAAE,CAAC;YAChD,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;YAChC,OAAO;QACX,CAAC;QAED,4CAA4C;QAC5C,IAAI,GAAG,CAAC,SAAS,IAAI,KAAK,CAAC,WAAW,EAAE,KAAK,GAAG,EAAE,CAAC;YAC/C,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;YACpC,OAAO;QACX,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,KAAC,iBAAiB,OAAK,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,GAAI,CAAC;AAChH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC5B,OAAO,KAAC,aAAa,KAAG,CAAC;AAC7B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-view.screen.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/profile-view.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"profile-view.screen.d.ts","sourceRoot":"","sources":["../../../../src/features/profile/components/profile-view.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,sBAAsB;IAC5B,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC;IACV,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAkI9D,CAAC"}
|
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const ProfileViewScreen = ({ profile, loading, error, user }) => {
|
|
5
|
-
const { exit } = useApp();
|
|
6
|
-
const [showFullStack, setShowFullStack] = useState(false);
|
|
7
|
-
const [showFullInterests, setShowFullInterests] = useState(false);
|
|
2
|
+
import { Text, Box } from 'ink';
|
|
3
|
+
export const ProfileViewScreen = ({ profile, loading, error, user, showFullStack, showFullInterests }) => {
|
|
8
4
|
const MAX_STACK_PREVIEW = 10;
|
|
9
|
-
useInput((input, key) => {
|
|
10
|
-
if (key.escape) {
|
|
11
|
-
exit();
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
// Toggle tech stack
|
|
15
|
-
if (input.toLowerCase() === 's' && !key.ctrl && !key.meta && !key.shift) {
|
|
16
|
-
setShowFullStack(prev => !prev);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
// Toggle interests
|
|
20
|
-
if (input.toLowerCase() === 'i' && !key.ctrl && !key.meta && !key.shift) {
|
|
21
|
-
setShowFullInterests(prev => !prev);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
5
|
if (loading)
|
|
26
6
|
return _jsx(Text, { children: "Loading profile..." });
|
|
27
7
|
if (error)
|
|
@@ -29,7 +9,7 @@ export const ProfileViewScreen = ({ profile, loading, error, user }) => {
|
|
|
29
9
|
if (!profile)
|
|
30
10
|
return _jsxs(Text, { children: ["No profile found for @", user?.username, ". Run \"hackmate profile edit\" to create one."] });
|
|
31
11
|
const locationDisplay = [profile.city, profile.country].filter(Boolean).join(', ') || profile.location || 'N/A';
|
|
32
|
-
return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "cyan", children: [_jsx(Text, { color: "gray", children: '{' }), _jsx(Box, { paddingLeft: 2, flexDirection: "column", children: _jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"user\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile?.user?.username || user?.username, "\""] }), _jsx(Text, { color: "gray", children: "," })] }) }), _jsxs(Box, { paddingLeft: 2, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"profile\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"intent\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.intent, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"bio\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "yellow", children: ["\"", profile.bio || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"personal\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"age\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsx(Text, { color: "yellow", children: profile.age || 'null' }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"gender\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.gender || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"company\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.company || 'N/A', "\""] })] })] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: '},' }) })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"stack\"" }), _jsx(Text, { color: "gray", children: ": [" })] }), profile.stack && Array.isArray(profile.stack) && profile.stack.length > 0 ? (_jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [profile.stack.slice(0, showFullStack ? profile.stack.length : MAX_STACK_PREVIEW).map((tech, idx) => (_jsxs(Text, { children: [_jsxs(Text, { color: "green", children: ["\"", tech, "\""] }), _jsx(Text, { color: "gray", children: "," })] }, `${tech}-${idx}`))), !showFullStack && profile.stack.length > MAX_STACK_PREVIEW && (_jsxs(Text, { color: "yellow", italic: true, children: ["// ... ", profile.stack.length - MAX_STACK_PREVIEW, " more (press S)"] })), showFullStack && profile.stack.length > MAX_STACK_PREVIEW && (_jsx(Text, { color: "yellow", italic: true, children: "// press S to collapse" }))] })) : (_jsx(Box, { paddingLeft: 6, children: _jsx(Text, { color: "gray", children: "// empty" }) })), _jsx(Box, { paddingLeft: 4, children: _jsxs(Text, { color: "gray", children: ["]", profile.interests && profile.interests.length > 0 ? ',' : ''] }) })] }), profile.interests && Array.isArray(profile.interests) && profile.interests.length > 0 && (_jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"interests\"" }), _jsx(Text, { color: "gray", children: ": [" })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [profile.interests.slice(0, showFullInterests ? profile.interests.length : MAX_STACK_PREVIEW).map((interest, idx) => (_jsxs(Text, { children: [_jsxs(Text, { color: "green", children: ["\"", interest, "\""] }), _jsx(Text, { color: "gray", children: "," })] }, `${interest}-${idx}`))), !showFullInterests && profile.interests.length > MAX_STACK_PREVIEW && (_jsxs(Text, { color: "yellow", italic: true, children: ["// ... ", profile.interests.length - MAX_STACK_PREVIEW, " more (press I)"] })), showFullInterests && profile.interests.length > MAX_STACK_PREVIEW && (_jsx(Text, { color: "yellow", italic: true, children: "// press I to collapse" }))] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: "]," }) })] })), _jsx(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"location\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", locationDisplay, "\""] }), _jsx(Text, { color: "gray", children: "," })] }) }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"socials\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [profile.github && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"github\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.github, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.linkedin && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"linkedin\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.linkedin, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.twitter && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"twitter\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.twitter, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.website && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"website\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.website, "\""] })] }), !profile.github && !profile.linkedin && !profile.twitter && !profile.website && (_jsx(Text, { color: "gray", children: "// empty" }))] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: '}' }) })] })] }), _jsx(Box, { paddingLeft: 2, children: _jsx(Text, { color: "gray", children: '}' }) }), _jsx(Text, { color: "gray", children: '}' }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { color: "gray", dimColor: true, children: ["// ESC to exit", (profile.stack?.length > MAX_STACK_PREVIEW || profile.interests?.length > MAX_STACK_PREVIEW) &&
|
|
33
|
-
_jsxs(Text, { children: [" \u2022 S:
|
|
12
|
+
return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "cyan", children: [_jsx(Text, { color: "gray", children: '{' }), _jsx(Box, { paddingLeft: 2, flexDirection: "column", children: _jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"user\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile?.user?.username || user?.username, "\""] }), _jsx(Text, { color: "gray", children: "," })] }) }), _jsxs(Box, { paddingLeft: 2, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "blue", children: "\"profile\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"intent\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.intent, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"bio\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "yellow", children: ["\"", profile.bio || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"personal\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"age\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsx(Text, { color: "yellow", children: profile.age || 'null' }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"gender\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.gender || 'N/A', "\""] }), _jsx(Text, { color: "gray", children: "," })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"company\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.company || 'N/A', "\""] })] })] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: '},' }) })] }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"stack\"" }), _jsx(Text, { color: "gray", children: ": [" })] }), profile.stack && Array.isArray(profile.stack) && profile.stack.length > 0 ? (_jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [profile.stack.slice(0, showFullStack ? profile.stack.length : MAX_STACK_PREVIEW).map((tech, idx) => (_jsxs(Text, { children: [_jsxs(Text, { color: "green", children: ["\"", tech, "\""] }), _jsx(Text, { color: "gray", children: "," })] }, `${tech}-${idx}`))), !showFullStack && profile.stack.length > MAX_STACK_PREVIEW && (_jsxs(Text, { color: "yellow", italic: true, children: ["// ... ", profile.stack.length - MAX_STACK_PREVIEW, " more (press \u2192/S)"] })), showFullStack && profile.stack.length > MAX_STACK_PREVIEW && (_jsx(Text, { color: "yellow", italic: true, children: "// press \u2192/S to collapse" }))] })) : (_jsx(Box, { paddingLeft: 6, children: _jsx(Text, { color: "gray", children: "// empty" }) })), _jsx(Box, { paddingLeft: 4, children: _jsxs(Text, { color: "gray", children: ["]", profile.interests && profile.interests.length > 0 ? ',' : ''] }) })] }, `stack-${showFullStack}`), profile.interests && Array.isArray(profile.interests) && profile.interests.length > 0 && (_jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"interests\"" }), _jsx(Text, { color: "gray", children: ": [" })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [profile.interests.slice(0, showFullInterests ? profile.interests.length : MAX_STACK_PREVIEW).map((interest, idx) => (_jsxs(Text, { children: [_jsxs(Text, { color: "green", children: ["\"", interest, "\""] }), _jsx(Text, { color: "gray", children: "," })] }, `${interest}-${idx}`))), !showFullInterests && profile.interests.length > MAX_STACK_PREVIEW && (_jsxs(Text, { color: "yellow", italic: true, children: ["// ... ", profile.interests.length - MAX_STACK_PREVIEW, " more (press \u2193/I)"] })), showFullInterests && profile.interests.length > MAX_STACK_PREVIEW && (_jsx(Text, { color: "yellow", italic: true, children: "// press \u2193/I to collapse" }))] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: "]," }) })] }, `interests-${showFullInterests}`)), _jsx(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: _jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"location\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", locationDisplay, "\""] }), _jsx(Text, { color: "gray", children: "," })] }) }), _jsxs(Box, { paddingLeft: 4, flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: "magenta", children: "\"socials\"" }), _jsxs(Text, { color: "gray", children: [": ", '{'] })] }), _jsxs(Box, { paddingLeft: 6, flexDirection: "column", children: [profile.github && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"github\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.github, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.linkedin && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"linkedin\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.linkedin, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.twitter && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"twitter\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.twitter, "\""] }), _jsx(Text, { color: "gray", children: "," })] }), profile.website && _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "\"website\"" }), _jsx(Text, { color: "gray", children: ":" }), " ", _jsxs(Text, { color: "green", children: ["\"", profile.website, "\""] })] }), !profile.github && !profile.linkedin && !profile.twitter && !profile.website && (_jsx(Text, { color: "gray", children: "// empty" }))] }), _jsx(Box, { paddingLeft: 4, children: _jsx(Text, { color: "gray", children: '}' }) })] })] }), _jsx(Box, { paddingLeft: 2, children: _jsx(Text, { color: "gray", children: '}' }) }), _jsx(Text, { color: "gray", children: '}' }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { color: "gray", dimColor: true, children: ["// ESC to exit", (profile.stack?.length > MAX_STACK_PREVIEW || profile.interests?.length > MAX_STACK_PREVIEW) &&
|
|
13
|
+
_jsxs(Text, { children: [" \u2022 \u2192/S: stack (", showFullStack ? 'expanded' : 'collapsed', ") \u2022 \u2193/I: interests (", showFullInterests ? 'expanded' : 'collapsed', ")"] })] }) })] }));
|
|
34
14
|
};
|
|
35
15
|
//# sourceMappingURL=profile-view.screen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-view.screen.js","sourceRoot":"","sources":["../../../../src/features/profile/components/profile-view.screen.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"profile-view.screen.js","sourceRoot":"","sources":["../../../../src/features/prof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