Skip to content

Commit 43257da

Browse files
committed
tset
1 parent bbfc708 commit 43257da

File tree

5 files changed

+302
-0
lines changed

5 files changed

+302
-0
lines changed

.replit

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
2+
hidden = [".config", "package-lock.json"]
3+
run = "npm run start"
4+
5+
[[hints]]
6+
regex = "Error \\[ERR_REQUIRE_ESM\\]"
7+
message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)"
8+
9+
[nix]
10+
channel = "stable-22_11"
11+
12+
[env]
13+
XDG_CONFIG_HOME = "/home/runner/.config"
14+
PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin"
15+
npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
16+
17+
[gitHubImport]
18+
requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]
19+
20+
[packager]
21+
language = "nodejs"
22+
23+
[packager.features]
24+
packageSearch = true
25+
guessImports = true
26+
enabledForHosting = false
27+
28+
[unitTest]
29+
language = "nodejs"
30+
31+
[debugger]
32+
support = true
33+
34+
[debugger.interactive]
35+
transport = "localhost:0"
36+
startCommand = [ "dap-node" ]
37+
38+
[debugger.interactive.initializeMessage]
39+
command = "initialize"
40+
type = "request"
41+
42+
[debugger.interactive.initializeMessage.arguments]
43+
clientID = "replit"
44+
clientName = "replit.com"
45+
columnsStartAt1 = true
46+
linesStartAt1 = true
47+
locale = "en-us"
48+
pathFormat = "path"
49+
supportsInvalidatedEvent = true
50+
supportsProgressReporting = true
51+
supportsRunInTerminalRequest = true
52+
supportsVariablePaging = true
53+
supportsVariableType = true
54+
55+
[debugger.interactive.launchMessage]
56+
command = "launch"
57+
type = "request"
58+
59+
[debugger.interactive.launchMessage.arguments]
60+
args = []
61+
console = "externalTerminal"
62+
cwd = "."
63+
environment = []
64+
pauseForSourceMap = false
65+
program = "./index.js"
66+
request = "launch"
67+
sourceMaps = true
68+
stopOnEntry = false
69+
type = "pwa-node"
70+
71+
[languages]
72+
73+
[languages.javascript]
74+
pattern = "**/{*.js,*.jsx,*.ts,*.tsx}"
75+
76+
[languages.javascript.languageServer]
77+
start = "typescript-language-server --stdio"

package-lock.json

+155
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "nodejs",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"dependencies": {
13+
"@types/node": "^18.0.6",
14+
"node-fetch": "^3.2.6"
15+
}
16+
}

replit.nix

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{ pkgs }: {
2+
deps = [
3+
pkgs.nodejs-18_x
4+
pkgs.nodePackages.typescript-language-server
5+
pkgs.yarn
6+
pkgs.replitPackages.jest
7+
];
8+
}

web/index.html

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<meta name="og:title" content="Terminal">
9+
<meta name="og:description" content="web terminal that allows easy access to knowledge and experiments. A utility for any developer or computer enthusiast. New things are added all the time. do not miss!">
10+
<link rel="stylesheet" href="index.css">
11+
<script src="/socket.io/socket.io.js"></script>
12+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
13+
<title>Terminal</title>
14+
</head>
15+
<body>
16+
<div id="container">
17+
<div id="header">
18+
<h3>Command Line</h3>
19+
</div>
20+
<pre><output id="output"></output></pre>
21+
<br>
22+
<div id="prompt">
23+
<div id="name">@$></div>
24+
<input id="cmdline" type="text" autocomplete="off">
25+
</div>
26+
</div>
27+
<div id="context-menu">
28+
<div id="menu-copy" class="item"><i class="material-icons">content_copy</i> Copy</div>
29+
<div id="menu-playback" class="item" disabled><i class="material-icons">play_arrow</i> Playback</div>
30+
<div class="item" disabled><i class="material-icons">translate</i> Translate</div>
31+
</div>
32+
33+
<script src="index.js" type="module"></script>
34+
35+
</script>
36+
37+
<script src="https://www.google.com/recaptcha/enterprise.js?render=6LetyFEkAAAAAPTnXPqOk4BmfZwpNUAMHUJ4ZesL"></script>
38+
<script>
39+
grecaptcha.enterprise.ready(function() {
40+
grecaptcha.enterprise.execute('6LetyFEkAAAAAPTnXPqOk4BmfZwpNUAMHUJ4ZesL', {action: 'login'}).then(function(token) {
41+
42+
});
43+
});
44+
</script>
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)