Skip to content

Commit 7a5e5c9

Browse files
feat: added per tab quicktools + fixed need of internet to open terminal
1 parent 274c9ff commit 7a5e5c9

40 files changed

Lines changed: 22703 additions & 5263 deletions

package-lock.json

Lines changed: 10469 additions & 4112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
"cordova-plugin-server": {},
3232
"cordova-plugin-ftp": {},
3333
"cordova-plugin-sdcard": {},
34-
"cordova-plugin-advanced-http": {
35-
"ANDROIDBLACKLISTSECURESOCKETPROTOCOLS": "SSLv3,TLSv1"
36-
},
3734
"cordova-plugin-websocket": {},
3835
"cordova-plugin-buildinfo": {},
3936
"cordova-plugin-browser": {},
@@ -44,7 +41,8 @@
4441
"com.foxdebug.acode.rk.exec.proot": {},
4542
"cordova-plugin-iap": {},
4643
"com.foxdebug.acode.rk.customtabs": {},
47-
"cordova-plugin-system": {}
44+
"cordova-plugin-system": {},
45+
"cordova-plugin-advanced-http": {}
4846
},
4947
"platforms": [
5048
"android"
@@ -85,7 +83,7 @@
8583
"com.foxdebug.acode.rk.plugin.plugincontext": "file:src/plugins/pluginContext",
8684
"cordova-android": "^15.0.0",
8785
"cordova-clipboard": "^1.3.0",
88-
"cordova-plugin-advanced-http": "^3.3.1",
86+
"cordova-plugin-advanced-http": "file:src/plugins/cordova-plugin-advanced-http",
8987
"cordova-plugin-browser": "file:src/plugins/browser",
9088
"cordova-plugin-buildinfo": "file:src/plugins/cordova-plugin-buildinfo",
9189
"cordova-plugin-device": "^2.1.0",

src/components/terminal/terminal.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ export default class TerminalComponent {
724724

725725
const response = await new Promise((resolve, reject) => {
726726
cordova.plugin.http.sendRequest(
727-
`http://localhost:${this.options.port}/terminals`,
727+
`http://127.0.0.1:${this.options.port}/terminals`,
728728
{
729729
method: "POST",
730730
responseType: "text",
@@ -765,7 +765,7 @@ export default class TerminalComponent {
765765

766766
this.pid = pid;
767767

768-
const wsUrl = `ws://localhost:${this.options.port}/terminals/${pid}`;
768+
const wsUrl = `ws://127.0.0.1:${this.options.port}/terminals/${pid}`;
769769

770770
await new Promise((resolve, reject) => {
771771
const websocket = new WebSocket(wsUrl);
@@ -871,7 +871,7 @@ export default class TerminalComponent {
871871
try {
872872
await new Promise((resolve, reject) => {
873873
cordova.plugin.http.sendRequest(
874-
`http://localhost:${this.options.port}/terminals/${this.pid}/resize`,
874+
`http://127.0.0.1:${this.options.port}/terminals/${this.pid}/resize`,
875875
{
876876
method: "POST",
877877
serializer: "json",
@@ -1157,7 +1157,7 @@ export default class TerminalComponent {
11571157
try {
11581158
await new Promise((resolve, reject) => {
11591159
cordova.plugin.http.sendRequest(
1160-
`http://localhost:${this.options.port}/terminals/${this.pid}/terminate`,
1160+
`http://127.0.0.1:${this.options.port}/terminals/${this.pid}/terminate`,
11611161
{
11621162
method: "POST",
11631163
data: {}, // Added empty object to satisfy the plugin's type checker

src/components/terminal/terminalDefaults.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export const DEFAULT_TERMINAL_SETTINGS = {
1616
fontLigatures: false,
1717
confirmTabClose: true,
1818
failsafeMode: false,
19+
quicktoolsItems: [
20+
0, 33, 2, 7, 1, 16, 18, 17, 19, 30, 47, 43, 44, 45, 29, 25,
21+
8, 9, 10, 11, 12, 13, 14, 15, 21, 20, 23, 24, 26, 27, 28, 31
22+
],
1923
// Touch selection settings
2024
touchSelectionTapHoldDuration: 600,
2125
touchSelectionMoveThreshold: 8,

0 commit comments

Comments
 (0)