jointhis.proxy 0.3.3 → 0.3.6
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/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/package.json +64 -62
- package/dist/app.d.ts +0 -9
- package/dist/app.js +0 -18
- package/dist/guide.d.ts +0 -2
- package/dist/guide.js +0 -32
- package/dist/tunnel.d.ts +0 -9
- package/dist/tunnel.js +0 -27
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import fs from 'node:fs';
|
|
|
8
8
|
import { Spawn } from 'ink-spawn';
|
|
9
9
|
import { exec } from 'node:child_process';
|
|
10
10
|
import { clear } from 'node:console';
|
|
11
|
-
export const version = `0.3.
|
|
11
|
+
export const version = `0.3.6`;
|
|
12
12
|
export var rtun;
|
|
13
13
|
const cli = meow(`
|
|
14
14
|
Usage
|
package/package.json
CHANGED
|
@@ -1,63 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
2
|
+
"name": "jointhis.proxy",
|
|
3
|
+
"repository": {
|
|
4
|
+
"url": "https://gitlab.com/tectrixdev/jointhis.proxy"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.3.6",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"bin": {
|
|
9
|
+
"jointhis.proxy": "dist/cli.js",
|
|
10
|
+
"jointhis-proxy": "dist/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=16"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"dev": "tsc --watch",
|
|
19
|
+
"test": "prettier --check ."
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"ink": "^6.8.0",
|
|
26
|
+
"ink-select-input": "^6.2.0",
|
|
27
|
+
"ink-spawn": "^0.1.4",
|
|
28
|
+
"ink-stepper": "^0.2.1",
|
|
29
|
+
"ink-text-input": "^6.0.0",
|
|
30
|
+
"meow": "^11.0.0",
|
|
31
|
+
"react": "^19.2.4"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@sindresorhus/tsconfig": "^3.0.1",
|
|
35
|
+
"@types/react": "^19.2.14",
|
|
36
|
+
"@vdemedes/prettier-config": "^2.0.1",
|
|
37
|
+
"ava": "^5.3.1",
|
|
38
|
+
"chalk": "^5.6.2",
|
|
39
|
+
"eslint-config-xo-react": "^0.27.0",
|
|
40
|
+
"eslint-plugin-react": "^7.37.5",
|
|
41
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
42
|
+
"ink-testing-library": "^3.0.0",
|
|
43
|
+
"prettier": "^2.8.8",
|
|
44
|
+
"ts-node": "^10.9.2",
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"xo": "^0.53.1"
|
|
47
|
+
},
|
|
48
|
+
"ava": {
|
|
49
|
+
"extensions": {
|
|
50
|
+
"ts": "module",
|
|
51
|
+
"tsx": "module"
|
|
52
|
+
},
|
|
53
|
+
"nodeArguments": [
|
|
54
|
+
"--loader=ts-node/esm"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"xo": {
|
|
58
|
+
"extends": "xo-react",
|
|
59
|
+
"prettier": true,
|
|
60
|
+
"rules": {
|
|
61
|
+
"react/prop-types": "off"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"prettier": "@vdemedes/prettier-config"
|
|
65
|
+
}
|
package/dist/app.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
port: number | undefined;
|
|
4
|
-
key: string | undefined;
|
|
5
|
-
subdomain: string | undefined;
|
|
6
|
-
service: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
export default function App({ port, key, subdomain, service }: Props): React.JSX.Element;
|
|
9
|
-
export {};
|
package/dist/app.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Text } from 'ink';
|
|
3
|
-
import { Box } from 'ink';
|
|
4
|
-
export default function App({ port, key, subdomain, service }) {
|
|
5
|
-
if (port || key || subdomain || service) {
|
|
6
|
-
if (!key) {
|
|
7
|
-
return React.createElement(Text, { color: 'red' }, "Authentication missing.");
|
|
8
|
-
}
|
|
9
|
-
if (!port && !service) {
|
|
10
|
-
return React.createElement(Text, { color: 'red' }, "No service or port given.");
|
|
11
|
-
}
|
|
12
|
-
return (React.createElement(Box, { margin: 2, width: 100, flexDirection: "column", justifyContent: "center", alignItems: "center" }, "Creating record..."));
|
|
13
|
-
}
|
|
14
|
-
return (React.createElement(Box, { margin: 2, width: 50, flexDirection: "column", justifyContent: "center", alignItems: "center" },
|
|
15
|
-
React.createElement(Text, null, "Welcome to the Jointhis.proxy CLI"),
|
|
16
|
-
React.createElement(Text, null, "---------------------------------"),
|
|
17
|
-
React.createElement(Text, null, "What do you want to do next:")));
|
|
18
|
-
}
|
package/dist/guide.d.ts
DELETED
package/dist/guide.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { Text } from 'ink';
|
|
3
|
-
import { Box } from 'ink';
|
|
4
|
-
import { version } from './cli.js';
|
|
5
|
-
import SelectInput from 'ink-select-input';
|
|
6
|
-
import Main from './main.js';
|
|
7
|
-
export default function Guide() {
|
|
8
|
-
const [value, Setvalue] = useState('0');
|
|
9
|
-
const handleSelect = (item) => {
|
|
10
|
-
Setvalue(item.value);
|
|
11
|
-
};
|
|
12
|
-
const items = [
|
|
13
|
-
{
|
|
14
|
-
label: 'Create a tunnel',
|
|
15
|
-
value: '1',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: 'Create a DNS record',
|
|
19
|
-
value: '2',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: 'Manage your tunnels',
|
|
23
|
-
value: '3',
|
|
24
|
-
},
|
|
25
|
-
];
|
|
26
|
-
return (React.createElement(Box, { alignSelf: "center", paddingX: 4, paddingY: 1, margin: 0, flexDirection: "column", justifyContent: "center", alignItems: "center", borderStyle: "round" },
|
|
27
|
-
React.createElement(Text, null, "Welcome to the Jointhis.proxy CLI"),
|
|
28
|
-
React.createElement(Text, null, "---------------------------------"),
|
|
29
|
-
React.createElement(Box, { margin: 1, flexDirection: "column", justifyContent: "flex-start", alignItems: "flex-start" }, value == '0' ? (React.createElement(SelectInput, { onSelect: handleSelect, items: items })) : (React.createElement(Main, { view: value }))),
|
|
30
|
-
React.createElement(Text, null, "---------------------------------"),
|
|
31
|
-
React.createElement(Text, { dimColor: true }, `Jointhis.proxy CLI V${version}`)));
|
|
32
|
-
}
|
package/dist/tunnel.d.ts
DELETED
package/dist/tunnel.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Box, Text } from 'ink';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export default function Status({ authkey, sub, service, port }) {
|
|
4
|
-
return (React.createElement(Box, { marginBottom: -1, flexDirection: "column" },
|
|
5
|
-
React.createElement(Text, { color: "green" },
|
|
6
|
-
"Tunnel running on port",
|
|
7
|
-
' ',
|
|
8
|
-
React.createElement(Text, { bold: true },
|
|
9
|
-
22 /* placeholder */,
|
|
10
|
-
" |",
|
|
11
|
-
' ',
|
|
12
|
-
React.createElement(Text, { color: "yellow" },
|
|
13
|
-
"Ping:",
|
|
14
|
-
' ',
|
|
15
|
-
React.createElement(Text, { color: "green", bold: true }, 22 /* placeholder */)))),
|
|
16
|
-
React.createElement(Text, null,
|
|
17
|
-
"Bedrock IP: ",
|
|
18
|
-
sub,
|
|
19
|
-
".jointhis.party:",
|
|
20
|
-
2324 /* placeholder */),
|
|
21
|
-
React.createElement(Text, null,
|
|
22
|
-
"Java IP: ",
|
|
23
|
-
sub,
|
|
24
|
-
".jointhis.party"),
|
|
25
|
-
React.createElement(Box, { marginTop: 1 },
|
|
26
|
-
React.createElement(Text, { dimColor: true }, "Press enter to quit"))));
|
|
27
|
-
}
|