webssh2_client 2.0.0-alpha.9 → 2.0.0
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/LICENSE +21 -0
- package/README.md +3 -7
- package/client/index.d.ts +6 -0
- package/client/index.js +9 -11
- package/client/public/client.htm +1 -1
- package/client/public/webssh2.bundle.js +2 -2
- package/client/public/webssh2.css +1 -1
- package/client/public/xterm.css +1 -1
- package/index.d.ts +6 -0
- package/index.js +21 -21
- package/package.json +17 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Bill Church
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -11,17 +11,13 @@ WebSSH2 Client is an HTML5 web-based terminal emulator and SSH client component.
|
|
|
11
11
|
|
|
12
12
|
# Important Notice
|
|
13
13
|
|
|
14
|
-
This package contains only the browser-side client component of WebSSH2. It requires a compatible WebSSH2 server to function. The server component is available at [webssh2 server](https://github.com/billchurch/webssh2
|
|
15
|
-
|
|
16
|
-
# Status
|
|
17
|
-
|
|
18
|
-
This is an experimental refactor of the WebSSH2 v0.2.x client to function as a standalone component. It has been separated from the server-side code to facilitate customization and integration with different frameworks.
|
|
14
|
+
This package contains only the browser-side client component of WebSSH2. It requires a compatible WebSSH2 server to function. The server component is available at [webssh2 server](https://github.com/billchurch/webssh2). This package is intended for advanced users who want to customize or integrate the client component independently.
|
|
19
15
|
|
|
20
16
|
## Requirements
|
|
21
17
|
|
|
22
18
|
- Modern web browser with JavaScript enabled
|
|
23
|
-
- Compatible WebSSH2 server instance (
|
|
24
|
-
- Socket.IO
|
|
19
|
+
- Compatible WebSSH2 server instance (v2.0.0 or compatible)
|
|
20
|
+
- Socket.IO v4.8.1 compatibility
|
|
25
21
|
|
|
26
22
|
## Installation
|
|
27
23
|
|
package/client/index.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
// client
|
|
2
2
|
// client/index.ts
|
|
3
|
-
import path from 'path'
|
|
4
|
-
import { readFileSync } from 'fs'
|
|
5
|
-
import { fileURLToPath } from 'url'
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url)
|
|
7
|
-
const __dirname = path.dirname(__filename)
|
|
8
|
-
const packageJson = JSON.parse(
|
|
9
|
-
readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8')
|
|
10
|
-
)
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { readFileSync } from 'fs';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
const packageJson = JSON.parse(readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8'));
|
|
11
9
|
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
10
|
+
getPublicPath: () => path.join(__dirname, 'public'),
|
|
11
|
+
version: packageJson.version
|
|
12
|
+
};
|
package/client/public/client.htm
CHANGED