jointhis.proxy 0.3.2 → 0.3.5

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 CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- export declare const version = "0.3.2";
2
+ export declare const version = "0.3.5";
3
3
  export declare var rtun: any;
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.2`;
11
+ export const version = `0.3.5`;
12
12
  export var rtun;
13
13
  const cli = meow(`
14
14
  Usage
package/dist/main.js CHANGED
@@ -47,6 +47,9 @@ export default function Main({ view }) {
47
47
  : 'Please wait until everything is set up.')),
48
48
  React.createElement(Step, { name: "last" },
49
49
  React.createElement(Spawn, { maxOutputLines: 4, runningText: "", command: rtun, args: ['-f ./rtun.yml'], shell: true }),
50
+ service === '1' ? (React.createElement(React.Fragment, null,
51
+ React.createElement(Text, null, "Java IP: proxy.jointhis.party:[tcp remote port]"),
52
+ React.createElement(Text, null, "Bedrock IP: proxy.jointhis.party:[udp remote port]"))) : (React.createElement(Text, null, "Website: 82.38.134.1:[tcp remote port]")),
50
53
  React.createElement(Box, { marginTop: 1 },
51
54
  React.createElement(Text, { dimColor: true }, "Press enter to quit")))));
52
55
  }
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "jointhis.proxy",
3
- "version": "0.3.2",
3
+ "repository": {
4
+ "url": "https://gitlab.com/tectrixdev/jointhis.proxy"
5
+ },
6
+ "version": "0.3.5",
4
7
  "license": "MIT",
5
8
  "bin": {
6
9
  "jointhis.proxy": "dist/cli.js",
@@ -13,7 +16,7 @@
13
16
  "scripts": {
14
17
  "build": "tsc",
15
18
  "dev": "tsc --watch",
16
- "test": "prettier --check . && xo && ava"
19
+ "test": "prettier --check ."
17
20
  },
18
21
  "files": [
19
22
  "dist"
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
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function Guide(): React.JSX.Element;
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
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- authkey: string;
4
- sub: string;
5
- service?: string;
6
- port?: number;
7
- }
8
- export default function Status({ authkey, sub, service, port }: Props): React.JSX.Element;
9
- export {};
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
- }