hackmate-cli 1.0.10 → 1.0.12

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.
Files changed (98) hide show
  1. package/dist/features/profile/components/index.d.ts.map +1 -1
  2. package/dist/features/profile/components/index.js.map +1 -1
  3. package/dist/features/profile/components/profile-edit-v3.screen.d.ts.map +1 -1
  4. package/dist/features/profile/components/profile-edit-v3.screen.js +54 -18
  5. package/dist/features/profile/components/profile-edit-v3.screen.js.map +1 -1
  6. package/package.json +1 -1
  7. package/dist/commands/admin/admin.logic.d.ts +0 -12
  8. package/dist/commands/admin/admin.logic.d.ts.map +0 -1
  9. package/dist/commands/admin/admin.logic.js +0 -41
  10. package/dist/commands/admin/admin.logic.js.map +0 -1
  11. package/dist/commands/admin/admin.screen.d.ts +0 -10
  12. package/dist/commands/admin/admin.screen.d.ts.map +0 -1
  13. package/dist/commands/admin/admin.screen.js +0 -19
  14. package/dist/commands/admin/admin.screen.js.map +0 -1
  15. package/dist/commands/admin/index.d.ts +0 -8
  16. package/dist/commands/admin/index.d.ts.map +0 -1
  17. package/dist/commands/admin/index.js +0 -8
  18. package/dist/commands/admin/index.js.map +0 -1
  19. package/dist/commands/chat/ChatList.d.ts +0 -2
  20. package/dist/commands/chat/ChatList.d.ts.map +0 -1
  21. package/dist/commands/chat/ChatList.js +0 -63
  22. package/dist/commands/chat/ChatList.js.map +0 -1
  23. package/dist/commands/chat/chat.logic.d.ts +0 -15
  24. package/dist/commands/chat/chat.logic.d.ts.map +0 -1
  25. package/dist/commands/chat/chat.logic.js +0 -139
  26. package/dist/commands/chat/chat.logic.js.map +0 -1
  27. package/dist/commands/chat/chat.screen.d.ts +0 -12
  28. package/dist/commands/chat/chat.screen.d.ts.map +0 -1
  29. package/dist/commands/chat/chat.screen.js +0 -12
  30. package/dist/commands/chat/chat.screen.js.map +0 -1
  31. package/dist/commands/chat/index.d.ts +0 -8
  32. package/dist/commands/chat/index.d.ts.map +0 -1
  33. package/dist/commands/chat/index.js +0 -9
  34. package/dist/commands/chat/index.js.map +0 -1
  35. package/dist/commands/group/group.logic.d.ts +0 -26
  36. package/dist/commands/group/group.logic.d.ts.map +0 -1
  37. package/dist/commands/group/group.logic.js +0 -73
  38. package/dist/commands/group/group.logic.js.map +0 -1
  39. package/dist/commands/group/group.screen.d.ts +0 -19
  40. package/dist/commands/group/group.screen.d.ts.map +0 -1
  41. package/dist/commands/group/group.screen.js +0 -22
  42. package/dist/commands/group/group.screen.js.map +0 -1
  43. package/dist/commands/group/index.d.ts +0 -9
  44. package/dist/commands/group/index.d.ts.map +0 -1
  45. package/dist/commands/group/index.js +0 -8
  46. package/dist/commands/group/index.js.map +0 -1
  47. package/dist/commands/network/index.d.ts +0 -8
  48. package/dist/commands/network/index.d.ts.map +0 -1
  49. package/dist/commands/network/index.js +0 -8
  50. package/dist/commands/network/index.js.map +0 -1
  51. package/dist/commands/network/network.logic.d.ts +0 -12
  52. package/dist/commands/network/network.logic.d.ts.map +0 -1
  53. package/dist/commands/network/network.logic.js +0 -69
  54. package/dist/commands/network/network.logic.js.map +0 -1
  55. package/dist/commands/network/network.screen.d.ts +0 -10
  56. package/dist/commands/network/network.screen.d.ts.map +0 -1
  57. package/dist/commands/network/network.screen.js +0 -17
  58. package/dist/commands/network/network.screen.js.map +0 -1
  59. package/dist/commands/notification/index.d.ts +0 -7
  60. package/dist/commands/notification/index.d.ts.map +0 -1
  61. package/dist/commands/notification/index.js +0 -8
  62. package/dist/commands/notification/index.js.map +0 -1
  63. package/dist/commands/notification/notification.logic.d.ts +0 -11
  64. package/dist/commands/notification/notification.logic.d.ts.map +0 -1
  65. package/dist/commands/notification/notification.logic.js +0 -33
  66. package/dist/commands/notification/notification.logic.js.map +0 -1
  67. package/dist/commands/notification/notification.screen.d.ts +0 -10
  68. package/dist/commands/notification/notification.screen.d.ts.map +0 -1
  69. package/dist/commands/notification/notification.screen.js +0 -13
  70. package/dist/commands/notification/notification.screen.js.map +0 -1
  71. package/dist/commands/profile/index.d.ts +0 -6
  72. package/dist/commands/profile/index.d.ts.map +0 -1
  73. package/dist/commands/profile/index.js +0 -14
  74. package/dist/commands/profile/index.js.map +0 -1
  75. package/dist/commands/profile/profile-edit.screen.d.ts +0 -12
  76. package/dist/commands/profile/profile-edit.screen.d.ts.map +0 -1
  77. package/dist/commands/profile/profile-edit.screen.js +0 -66
  78. package/dist/commands/profile/profile-edit.screen.js.map +0 -1
  79. package/dist/commands/profile/profile-view.screen.d.ts +0 -10
  80. package/dist/commands/profile/profile-view.screen.d.ts.map +0 -1
  81. package/dist/commands/profile/profile-view.screen.js +0 -12
  82. package/dist/commands/profile/profile-view.screen.js.map +0 -1
  83. package/dist/commands/profile/profile.logic.d.ts +0 -42
  84. package/dist/commands/profile/profile.logic.d.ts.map +0 -1
  85. package/dist/commands/profile/profile.logic.js +0 -74
  86. package/dist/commands/profile/profile.logic.js.map +0 -1
  87. package/dist/commands/project/index.d.ts +0 -9
  88. package/dist/commands/project/index.d.ts.map +0 -1
  89. package/dist/commands/project/index.js +0 -8
  90. package/dist/commands/project/index.js.map +0 -1
  91. package/dist/commands/project/project.logic.d.ts +0 -29
  92. package/dist/commands/project/project.logic.d.ts.map +0 -1
  93. package/dist/commands/project/project.logic.js +0 -92
  94. package/dist/commands/project/project.logic.js.map +0 -1
  95. package/dist/commands/project/project.screen.d.ts +0 -22
  96. package/dist/commands/project/project.screen.d.ts.map +0 -1
  97. package/dist/commands/project/project.screen.js +0 -27
  98. package/dist/commands/project/project.screen.js.map +0 -1
@@ -1,12 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { Box, Text, useInput } from 'ink';
3
- import TextInput from 'ink-text-input';
4
- export const ChatScreen = ({ messages, input, setInput, status, handleSend, exit }) => {
5
- useInput((input, key) => {
6
- if (key.escape) {
7
- exit();
8
- }
9
- });
10
- return (_jsxs(Box, { flexDirection: "column", padding: 1, height: 20, borderStyle: "round", borderColor: "cyan", children: [_jsxs(Text, { bold: true, color: "yellow", children: ["Status: ", status] }), _jsx(Box, { flexDirection: "column", flexGrow: 1, justifyContent: "flex-end", children: messages.slice(-10).map((m, i) => (_jsxs(Text, { children: [_jsxs(Text, { bold: true, color: m.senderId === 'me' ? 'green' : 'blue', children: [m.username || (m.senderId === 'me' ? 'Me' : 'Them'), ":"] }), " ", m.content] }, i))) }), _jsxs(Box, { borderStyle: "single", marginTop: 1, children: [_jsxs(Text, { children: [" ", '>', " "] }), _jsx(TextInput, { value: input, onChange: setInput, onSubmit: handleSend })] }), _jsx(Text, { color: "gray", children: "ESC to exit" })] }));
11
- };
12
- //# sourceMappingURL=chat.screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.screen.js","sourceRoot":"","sources":["../../../src/commands/chat/chat.screen.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAWvC,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EAClD,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,MAAM,EACN,UAAU,EACV,IAAI,EACP,EAAE,EAAE;IACD,QAAQ,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACpB,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACb,IAAI,EAAE,CAAC;QACX,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,aACtF,MAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,QAAQ,yBAAU,MAAM,IAAQ,EACjD,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAC,UAAU,YAC7D,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,MAAC,IAAI,eACD,MAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,aACnD,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SACjD,OAAE,CAAC,CAAC,OAAO,KAHX,CAAC,CAIL,CACV,CAAC,GACA,EACN,MAAC,GAAG,IAAC,WAAW,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,aAClC,MAAC,IAAI,oBAAG,GAAG,SAAS,EACpB,KAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,GAAI,IACnE,EACN,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,4BAAmB,IACnC,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface ChatProps {
3
- targetUsername?: string;
4
- groupName?: string;
5
- }
6
- export declare const Chat: React.FC<ChatProps>;
7
- export * from './ChatList.js';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,SAAS;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAGpC,CAAC;AAEF,cAAc,eAAe,CAAC"}
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useChatLogic } from './chat.logic.js';
3
- import { ChatScreen } from './chat.screen.js';
4
- export const Chat = (props) => {
5
- const logic = useChatLogic(props);
6
- return _jsx(ChatScreen, { ...logic });
7
- };
8
- export * from './ChatList.js';
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/chat/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAO9C,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,KAAK,EAAE,EAAE;IAC/C,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,KAAC,UAAU,OAAK,KAAK,GAAI,CAAC;AACrC,CAAC,CAAC;AAEF,cAAc,eAAe,CAAC"}
@@ -1,26 +0,0 @@
1
- interface UseGroupLogicProps {
2
- action?: 'list' | 'create' | 'view' | 'join' | 'accept';
3
- id?: string;
4
- extraArg?: string;
5
- }
6
- export declare const useGroupLogic: ({ action, id, extraArg }: UseGroupLogicProps) => {
7
- action: "list" | "view" | "accept" | "create" | "join";
8
- data: any;
9
- error: string | null;
10
- loading: boolean;
11
- createStep: number;
12
- setCreateStep: import("react").Dispatch<import("react").SetStateAction<number>>;
13
- formData: {
14
- name: string;
15
- description: string;
16
- isPrivate: boolean;
17
- };
18
- setFormData: import("react").Dispatch<import("react").SetStateAction<{
19
- name: string;
20
- description: string;
21
- isPrivate: boolean;
22
- }>>;
23
- handleCreateSubmit: () => Promise<void>;
24
- };
25
- export {};
26
- //# sourceMappingURL=group.logic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.logic.d.ts","sourceRoot":"","sources":["../../../src/commands/group/group.logic.ts"],"names":[],"mappings":"AAKA,UAAU,kBAAkB;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,GAAI,0BAAmC,kBAAkB;;;;;;;;;;;;;;;;;;CA+DlF,CAAC"}
@@ -1,73 +0,0 @@
1
- import { useState, useEffect } from 'react';
2
- import { useApp } from 'ink';
3
- import api from '../../api.js';
4
- import { useAuth } from '../../context/index.js';
5
- export const useGroupLogic = ({ action = 'list', id, extraArg }) => {
6
- const { exit } = useApp();
7
- const { isAuthenticated } = useAuth();
8
- const [data, setData] = useState(null);
9
- const [error, setError] = useState(null);
10
- const [loading, setLoading] = useState(true);
11
- const [createStep, setCreateStep] = useState(0);
12
- const [formData, setFormData] = useState({ name: '', description: '', isPrivate: false });
13
- useEffect(() => {
14
- const run = async () => {
15
- if (!isAuthenticated)
16
- return;
17
- try {
18
- if (action === 'list') {
19
- const res = await api.get('/groups');
20
- setData(res.data);
21
- setLoading(false);
22
- }
23
- else if (action === 'view' && id) {
24
- const res = await api.get(`/groups/${id}`);
25
- setData(res.data);
26
- setLoading(false);
27
- }
28
- else if (action === 'join' && id) {
29
- await api.post(`/groups/${id}/join`);
30
- setData({ message: 'Request sent/Joined' });
31
- setLoading(false);
32
- }
33
- else if (action === 'accept' && id && extraArg) {
34
- await api.post(`/groups/${id}/accept`, { userId: extraArg });
35
- setData({ message: 'User accepted' });
36
- setLoading(false);
37
- }
38
- if (action === 'create')
39
- setLoading(false);
40
- }
41
- catch (err) {
42
- setError(err.response?.data?.message || err.message || 'Error');
43
- setLoading(false);
44
- }
45
- };
46
- run();
47
- }, [action, id, extraArg, isAuthenticated]);
48
- const handleCreateSubmit = async () => {
49
- setLoading(true);
50
- try {
51
- await api.post('/groups', formData);
52
- setData({ message: 'Group created!' });
53
- }
54
- catch (err) {
55
- setError(err.response?.data?.message || 'Failed to create');
56
- }
57
- finally {
58
- setLoading(false);
59
- }
60
- };
61
- return {
62
- action,
63
- data,
64
- error,
65
- loading,
66
- createStep,
67
- setCreateStep,
68
- formData,
69
- setFormData,
70
- handleCreateSubmit
71
- };
72
- };
73
- //# sourceMappingURL=group.logic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.logic.js","sourceRoot":"","sources":["../../../src/commands/group/group.logic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAQjD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;IACtC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAM,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAChD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;IAE1F,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;YACnB,IAA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IAAI,OAAO,CAAC,CAAC;gBAChE,UAAU,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC;QACL,CAAC,CAAC;QACF,GAAG,EAAE,CAAC;IACV,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;IAE5C,MAAM,kBAAkB,GAAG,KAAK,IAAI,EAAE;QAClC,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,IAAI,CAAC;YACD,MAAM,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YACpC,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAChB,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC;QAChE,CAAC;gBAAS,CAAC;YACP,UAAU,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,MAAM;QACN,IAAI;QACJ,KAAK;QACL,OAAO;QACP,UAAU;QACV,aAAa;QACb,QAAQ;QACR,WAAW;QACX,kBAAkB;KACrB,CAAC;AACN,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- interface GroupScreenProps {
3
- action: string;
4
- data: any;
5
- error: string | null;
6
- loading: boolean;
7
- createStep: number;
8
- setCreateStep: (step: number) => void;
9
- formData: {
10
- name: string;
11
- description: string;
12
- isPrivate: boolean;
13
- };
14
- setFormData: (data: any) => void;
15
- handleCreateSubmit: () => void;
16
- }
17
- export declare const GroupScreen: React.FC<GroupScreenProps>;
18
- export {};
19
- //# sourceMappingURL=group.screen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.screen.d.ts","sourceRoot":"","sources":["../../../src/commands/group/group.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,gBAAgB;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IACpE,WAAW,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqFlD,CAAC"}
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text, Box } from 'ink';
3
- import TextInput from 'ink-text-input';
4
- export const GroupScreen = ({ action, data, error, loading, createStep, setCreateStep, formData, setFormData, handleCreateSubmit }) => {
5
- if (loading)
6
- return _jsx(Text, { children: "Loading..." });
7
- if (error)
8
- return _jsxs(Text, { color: "red", children: ["Error: ", error] });
9
- if (action === 'list') {
10
- return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "green", children: [_jsx(Text, { bold: true, children: "Groups" }), Array.isArray(data) && data.length === 0 && _jsx(Text, { italic: true, color: "gray", children: "No groups found." }), Array.isArray(data) && data.map((g) => (_jsxs(Box, { flexDirection: "column", marginY: 1, children: [_jsxs(Text, { bold: true, color: "cyan", children: [g.name, " ", _jsxs(Text, { color: "gray", children: ["(", g.isPrivate ? 'Private' : 'Public', ")"] })] }), _jsx(Text, { children: g.description }), _jsxs(Text, { color: "gray", children: ["ID: ", g._id] })] }, g._id)))] }));
11
- }
12
- if (action === 'view') {
13
- return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "cyan", children: [_jsx(Text, { bold: true, color: "green", children: data.name }), _jsx(Text, { italic: true, children: data.description }), _jsx(Box, { marginY: 1, children: _jsxs(Text, { bold: true, children: ["Members (", data.members.length, ")"] }) }), data.members.slice(0, 5).map((m) => (_jsxs(Text, { children: ["\u2022 ", m.userId.username, " [", m.role, "]"] }, m.userId._id))), data.joinRequests?.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "Pending Requests:" }), data.joinRequests.map((r) => (_jsxs(Text, { children: ["\u2022 ", r.userId.username, " (ID: ", r.userId._id, ")"] }, r.userId._id)))] }))] }));
14
- }
15
- if (action === 'create') {
16
- if (data?.message)
17
- return _jsxs(Text, { color: "green", children: ["\u2705 ", data.message] });
18
- return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Text, { bold: true, children: "Create Group" }), createStep === 0 && (_jsxs(Box, { children: [_jsx(Text, { children: "Name: " }), _jsx(TextInput, { value: formData.name, onChange: v => setFormData({ ...formData, name: v }), onSubmit: () => setCreateStep(1) })] })), createStep === 1 && (_jsxs(Box, { children: [_jsx(Text, { children: "Description: " }), _jsx(TextInput, { value: formData.description, onChange: v => setFormData({ ...formData, description: v }), onSubmit: () => setCreateStep(2) })] })), createStep === 2 && (_jsxs(Box, { children: [_jsx(Text, { children: "Is Private (y/n): " }), _jsx(TextInput, { value: formData.isPrivate ? 'y' : 'n', onChange: v => setFormData({ ...formData, isPrivate: v === 'y' }), onSubmit: handleCreateSubmit })] }))] }));
19
- }
20
- return _jsxs(Text, { color: "green", children: ["\u2705 ", data?.message] });
21
- };
22
- //# sourceMappingURL=group.screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.screen.js","sourceRoot":"","sources":["../../../src/commands/group/group.screen.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AACh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AAO,MAAC,IAAI,IAAC,KAAK,EAAC,OAAO,wBAAI,IAAI,EAAE,OAAO,IAAQ,CAAC;AACxD,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface GroupProps {
3
- action?: 'list' | 'create' | 'view' | 'join' | 'accept';
4
- id?: string;
5
- extraArg?: string;
6
- }
7
- export declare const Group: React.FC<GroupProps>;
8
- export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/group/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,UAAU;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAGtC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useGroupLogic } from './group.logic.js';
3
- import { GroupScreen } from './group.screen.js';
4
- export const Group = (props) => {
5
- const logic = useGroupLogic(props);
6
- return _jsx(GroupScreen, { ...logic });
7
- };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/group/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQhD,MAAM,CAAC,MAAM,KAAK,GAAyB,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACnC,OAAO,KAAC,WAAW,OAAK,KAAK,GAAI,CAAC;AACtC,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface NetworkProps {
3
- action?: 'list' | 'requests' | 'add' | 'accept' | 'block';
4
- target?: string;
5
- }
6
- export declare const Network: React.FC<NetworkProps>;
7
- export {};
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/network/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,YAAY;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAG1C,CAAC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useNetworkLogic } from './network.logic.js';
3
- import { NetworkScreen } from './network.screen.js';
4
- export const Network = (props) => {
5
- const logic = useNetworkLogic(props);
6
- return _jsx(NetworkScreen, { ...logic });
7
- };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/network/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO,KAAC,aAAa,OAAK,KAAK,GAAI,CAAC;AACxC,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- interface UseNetworkLogicProps {
2
- action?: 'list' | 'requests' | 'add' | 'accept' | 'block';
3
- target?: string;
4
- }
5
- export declare const useNetworkLogic: ({ action, target }: UseNetworkLogicProps) => {
6
- action: "list" | "requests" | "add" | "accept" | "block";
7
- data: any;
8
- error: string | null;
9
- loading: boolean;
10
- };
11
- export {};
12
- //# sourceMappingURL=network.logic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.logic.d.ts","sourceRoot":"","sources":["../../../src/commands/network/network.logic.ts"],"names":[],"mappings":"AAKA,UAAU,oBAAoB;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,GAAI,oBAA6B,oBAAoB;;;;;CA2DhF,CAAC"}
@@ -1,69 +0,0 @@
1
- import { useState, useEffect } from 'react';
2
- import { useApp } from 'ink';
3
- import api from '../../api.js';
4
- import { useAuth } from '../../context/index.js';
5
- export const useNetworkLogic = ({ action = 'list', target }) => {
6
- const { exit } = useApp();
7
- const { isAuthenticated } = useAuth();
8
- const [data, setData] = useState(null);
9
- const [error, setError] = useState(null);
10
- const [loading, setLoading] = useState(true);
11
- useEffect(() => {
12
- const run = async () => {
13
- if (!isAuthenticated)
14
- return;
15
- try {
16
- if (action === 'list') {
17
- const res = await api.get('/network/friends');
18
- setData(res.data);
19
- }
20
- else if (action === 'requests') {
21
- const res = await api.get('/network/requests');
22
- setData(res.data);
23
- }
24
- else if (action === 'add' && target) {
25
- const userRes = await api.get(`/profile/${target}`);
26
- const targetId = userRes.data.user.id;
27
- await api.post('/network/request', { targetUserId: targetId });
28
- setData({ message: `Friend request sent to ${target}` });
29
- }
30
- else if (action === 'accept' && target) {
31
- const reqRes = await api.get('/network/requests');
32
- const request = reqRes.data.find((r) => r.senderId.username === target);
33
- if (!request)
34
- throw new Error(`No pending request from ${target}`);
35
- await api.post('/network/accept', { requestId: request._id });
36
- setData({ message: `Accepted request from ${target}` });
37
- }
38
- else if (action === 'block' && target) {
39
- const userRes = await api.get(`/profile/${target}`);
40
- const targetId = userRes.data.user.id;
41
- await api.post('/network/block', { targetUserId: targetId });
42
- setData({ message: `Blocked ${target}` });
43
- }
44
- }
45
- catch (err) {
46
- setError(err.response?.data?.message || err.message || 'Operation failed');
47
- }
48
- finally {
49
- setLoading(false);
50
- }
51
- };
52
- if (action !== 'add' && action !== 'accept' && action !== 'block') {
53
- run();
54
- }
55
- else if (target) {
56
- run();
57
- }
58
- else {
59
- setLoading(false);
60
- }
61
- }, [action, target, isAuthenticated]);
62
- return {
63
- action,
64
- data,
65
- error,
66
- loading
67
- };
68
- };
69
- //# sourceMappingURL=network.logic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.logic.js","sourceRoot":"","sources":["../../../src/commands/network/network.logic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAOjD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAwB,EAAE,EAAE;IACjF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;IACtC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAM,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;YACnB,IAAI,CAAC,eAAe;gBAAE,OAAO;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
3
- action: string;
4
- data: any;
5
- error: string | null;
6
- loading: boolean;
7
- }
8
- export declare const NetworkScreen: React.FC<NetworkScreenProps>;
9
- export {};
10
- //# sourceMappingURL=network.screen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.screen.d.ts","sourceRoot":"","sources":["../../../src/commands/network/network.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoCtD,CAAC"}
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text, Box } from 'ink';
3
- export const NetworkScreen = ({ action, data, error, loading }) => {
4
- if (loading)
5
- return _jsx(Text, { children: "Loading network..." });
6
- if (error)
7
- return _jsxs(Text, { color: "red", children: ["Error: ", error] });
8
- if (action === 'list') {
9
- return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "blue", children: [_jsxs(Text, { bold: true, children: ["My Friends (", data?.length || 0, ")"] }), data?.length === 0 && _jsx(Text, { italic: true, color: "gray", children: "No friends yet. Use 'hackmate network add' to connect!" }), Array.isArray(data) && data.map((f) => (_jsxs(Text, { children: ["\u2022 ", f.username, " (", f.email, ")"] }, f._id)))] }));
10
- }
11
- if (action === 'requests') {
12
- return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "yellow", children: [_jsxs(Text, { bold: true, children: ["Pending Requests (", data?.length || 0, ")"] }), data?.length === 0 && _jsx(Text, { italic: true, color: "gray", children: "No pending requests." }), Array.isArray(data) && data.map((r) => (_jsxs(Text, { children: ["\u2022 From: ", _jsx(Text, { bold: true, color: "yellow", children: r.senderId.username }), " (at ", new Date(r.createdAt).toLocaleDateString(), ")"] }, r._id)))] }));
13
- }
14
- // Success message for actions
15
- return (_jsx(Box, { padding: 1, children: _jsxs(Text, { color: "green", children: ["\u2705 ", data?.message] }) }));
16
- };
17
- //# sourceMappingURL=network.screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.screen.js","sourceRoot":"","sources":["../../../src/commands/network/network.screen.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAShC,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,IAAI,OAAO;QAAE,OAAO,KAAC,IAAI,qCAA0B,CAAC;IACpD,IAAI,KAAK;QAAE,OAAO,MAAC,IAAI,IAAC,KAAK,EAAC,KAAK,wBAAS,KAAK,IAAQ,CAAC;IAE1D,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO,CACH,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,EAAE,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,aAC1E,MAAC,IAAI,IAAC,IAAI,mCAAc,IAAI,EAAE,MAAM,IAAI,CAAC,SAAS,EACjD,IAAI,EAAE,MAAM,KAAK,CAAC,IAAI,KAAC,IAAI,IAAC,MAAM,QAAC,KAAK,EAAC,MAAM,uEAA8D,EAC7G,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CACzC,MAAC,IAAI,0BAAgB,CAAC,CAAC,QAAQ,QAAI,CAAC,CAAC,KAAK,UAA/B,CAAC,CAAC,GAAG,CAAmC,CACtD,CAAC,IACA,CACT,CAAC;IACN,CAAC;IAED,IAAI,MAAM,KAAK,UAAU,EAAE,CAAC;QACxB,OAAO,CACH,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,EAAE,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,QAAQ,aAC5E,MAAC,IAAI,IAAC,IAAI,yCAAoB,IAAI,EAAE,MAAM,IAAI,CAAC,SAAS,EACvD,IAAI,EAAE,MAAM,KAAK,CAAC,IAAI,KAAC,IAAI,IAAC,MAAM,QAAC,KAAK,EAAC,MAAM,qCAA4B,EAC3E,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CACzC,MAAC,IAAI,gCACO,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,QAAQ,YAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,GAAQ,WAAM,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,EAAE,UADvG,CAAC,CAAC,GAAG,CAET,CACV,CAAC,IACA,CACT,CAAC;IACN,CAAC;IAED,8BAA8B;IAC9B,OAAO,CACH,KAAC,GAAG,IAAC,OAAO,EAAE,CAAC,YACX,MAAC,IAAI,IAAC,KAAK,EAAC,OAAO,wBAAI,IAAI,EAAE,OAAO,IAAQ,GAC1C,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface NotificationProps {
3
- action?: 'list';
4
- }
5
- export declare const Notification: React.FC<NotificationProps>;
6
- export {};
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,iBAAiB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAGpD,CAAC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useNotificationLogic } from './notification.logic.js';
3
- import { NotificationScreen } from './notification.screen.js';
4
- export const Notification = (props) => {
5
- const logic = useNotificationLogic(props);
6
- return _jsx(NotificationScreen, { ...logic });
7
- };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/notification/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAM9D,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,KAAK,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAC1C,OAAO,KAAC,kBAAkB,OAAK,KAAK,GAAI,CAAC;AAC7C,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- interface UseNotificationLogicProps {
2
- action?: 'list';
3
- }
4
- export declare const useNotificationLogic: ({ action }: UseNotificationLogicProps) => {
5
- action: "list";
6
- data: any;
7
- error: string | null;
8
- loading: boolean;
9
- };
10
- export {};
11
- //# sourceMappingURL=notification.logic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.logic.d.ts","sourceRoot":"","sources":["../../../src/commands/notification/notification.logic.ts"],"names":[],"mappings":"AAIA,UAAU,yBAAyB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,oBAAoB,GAAI,YAAqB,yBAAyB;;;;;CA4BlF,CAAC"}
@@ -1,33 +0,0 @@
1
- import { useState, useEffect } from 'react';
2
- import { useApp } from 'ink';
3
- import api from '../../api.js';
4
- export const useNotificationLogic = ({ action = 'list' }) => {
5
- const { exit } = useApp();
6
- const [data, setData] = useState(null);
7
- const [error, setError] = useState(null);
8
- const [loading, setLoading] = useState(true);
9
- useEffect(() => {
10
- const run = async () => {
11
- try {
12
- if (action === 'list') {
13
- const res = await api.get('/notifications');
14
- setData(res.data);
15
- }
16
- }
17
- catch (err) {
18
- setError(err.response?.data?.message || err.message || 'Error');
19
- }
20
- finally {
21
- setLoading(false);
22
- }
23
- };
24
- run();
25
- }, [action]);
26
- return {
27
- action,
28
- data,
29
- error,
30
- loading
31
- };
32
- };
33
- //# sourceMappingURL=notification.logic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.logic.js","sourceRoot":"","sources":["../../../src/commands/notification/notification.logic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,GAAG,MAAM,cAAc,CAAC;AAM/B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAA6B,EAAE,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC;IAC1B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAM,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;YACnB,IAAI,CAAC;gBACD,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;oBACpB,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;oBAC5C,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC;YACL,CAAC;YAAC,OAAO,GAAQ,EAAE,CAAC;gBAChB,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,IAAI,GAAG,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;YACpE,CAAC;oBAAS,CAAC;gBACP,UAAU,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC;QACL,CAAC,CAAC;QACF,GAAG,EAAE,CAAC;IACV,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO;QACH,MAAM;QACN,IAAI;QACJ,KAAK;QACL,OAAO;KACV,CAAC;AACN,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface NotificationScreenProps {
3
- action: string;
4
- data: any;
5
- error: string | null;
6
- loading: boolean;
7
- }
8
- export declare const NotificationScreen: React.FC<NotificationScreenProps>;
9
- export {};
10
- //# sourceMappingURL=notification.screen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.screen.d.ts","sourceRoot":"","sources":["../../../src/commands/notification/notification.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,uBAAuB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAsBhE,CAAC"}
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text, Box } from 'ink';
3
- export const NotificationScreen = ({ action, data, error, loading }) => {
4
- if (loading)
5
- return _jsx(Text, { children: "Loading..." });
6
- if (error)
7
- return _jsxs(Text, { color: "red", children: ["Error: ", error] });
8
- if (action === 'list') {
9
- return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "yellow", children: [_jsx(Text, { bold: true, children: "\uD83D\uDD14 Notifications" }), Array.isArray(data) && data.length === 0 && _jsx(Text, { italic: true, color: "gray", children: "No notifications." }), Array.isArray(data) && data.map((n) => (_jsxs(Box, { flexDirection: "column", marginY: 1, children: [_jsxs(Text, { bold: !n.read, color: n.read ? 'gray' : 'white', children: [n.read ? '' : '• ', " ", n.content] }), _jsx(Text, { color: "gray", italic: true, children: new Date(n.createdAt).toLocaleString() })] }, n._id)))] }));
10
- }
11
- return _jsx(Text, { children: "Notification System" });
12
- };
13
- //# sourceMappingURL=notification.screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.screen.js","sourceRoot":"","sources":["../../../src/commands/notification/notification.screen.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAShC,MAAM,CAAC,MAAM,kBAAkB,GAAsC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACtG,IAAI,OAAO;QAAE,OAAO,KAAC,IAAI,6BAAkB,CAAC;IAC5C,IAAI,KAAK;QAAE,OAAO,MAAC,IAAI,IAAC,KAAK,EAAC,KAAK,wBAAS,KAAK,IAAQ,CAAC;IAE1D,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO,CACH,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,EAAE,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,QAAQ,aAC5E,KAAC,IAAI,IAAC,IAAI,iDAAwB,EACjC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,KAAC,IAAI,IAAC,MAAM,QAAC,KAAK,EAAC,MAAM,kCAAyB,EAC9F,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CACzC,MAAC,GAAG,IAAa,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,aAC9C,MAAC,IAAI,IAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,aAChD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,OAAG,CAAC,CAAC,OAAO,IAC5B,EACP,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,kBAAE,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,GAAQ,KAJnE,CAAC,CAAC,GAAG,CAKT,CACT,CAAC,IACA,CACT,CAAC;IACN,CAAC;IAED,OAAO,KAAC,IAAI,sCAA2B,CAAC;AAC5C,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const ProfileView: React.FC<{
3
- username?: string;
4
- }>;
5
- export declare const ProfileEdit: () => import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAIvD,CAAC;AAEF,eAAO,MAAM,WAAW,+CAGvB,CAAC"}
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useProfileViewLogic, useProfileEditLogic } from './profile.logic.js';
3
- import { ProfileViewScreen } from './profile-view.screen.js';
4
- import { ProfileEditScreen } from './profile-edit.screen.js';
5
- export const ProfileView = ({ username }) => {
6
- // Logic needs to be updated to accept username too, but let's pass it for now
7
- const logic = useProfileViewLogic(username);
8
- return _jsx(ProfileViewScreen, { ...logic });
9
- };
10
- export const ProfileEdit = () => {
11
- const logic = useProfileEditLogic();
12
- return _jsx(ProfileEditScreen, { ...logic });
13
- };
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/profile/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,WAAW,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzE,8EAA8E;IAC9E,MAAM,KAAK,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO,KAAC,iBAAiB,OAAK,KAAK,GAAI,CAAC;AAC5C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC5B,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,OAAO,KAAC,iBAAiB,OAAK,KAAK,GAAI,CAAC;AAC5C,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- interface ProfileEditScreenProps {
3
- step: number;
4
- setStep: (step: number) => void;
5
- profile: any;
6
- setProfile: (profile: any) => void;
7
- loading: boolean;
8
- handleSubmit: () => void;
9
- }
10
- export declare const ProfileEditScreen: React.FC<ProfileEditScreenProps>;
11
- export {};
12
- //# sourceMappingURL=profile-edit.screen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile-edit.screen.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile-edit.screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,sBAAsB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AASD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAuI9D,CAAC"}