Browse Source

Update parcel 2

master
Jimmy 7 months ago
parent
commit
18c6a97ae7
  1. 6
      .gitignore
  2. 1
      docker-compose.yml
  3. 15646
      frontend/package-lock.json
  4. 20
      frontend/package.json
  5. 5
      frontend/src/index.html
  6. 1
      frontend/src/main.js

6
.gitignore vendored

@ -3,4 +3,8 @@ users.json @@ -3,4 +3,8 @@ users.json
.vscode/
frontend/node_modules/
frontend/.cache/
__pychache__
__pychache__
.parcel-cache/
frontend/.parcel-cache/
frontend/dist/
package-lock.json

1
docker-compose.yml

@ -2,6 +2,7 @@ version: '3.7' @@ -2,6 +2,7 @@ version: '3.7'
services:
console:
build: ./
container_name: console
image: magmise/console
volumes:

15646
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

20
frontend/package.json

@ -2,24 +2,24 @@ @@ -2,24 +2,24 @@
"name": "client",
"version": "1.0.0",
"dependencies": {
"console.js": "^2.0.1",
"parcel": "^1.12.4",
"xterm": "^4.9.0",
"xterm-addon-attach": "^0.6.0",
"xterm-addon-fit": "^0.4.0",
"xterm-addon-search": "^0.7.0"
"xterm": "latest",
"xterm-addon-attach": "latest",
"xterm-addon-fit": "latest",
"xterm-addon-search": "latest"
},
"devDependencies": {
"parcel-bundler": "latest"
"parcel": "^2.0.0"
},
"source": "src/index.html",
"scripts": {
"build": "parcel build src/index.html --out-dir ../public",
"watch": "parcel watch src/index.html --out-dir ../public"
"start": "parcel",
"build": "parcel build src/index.html --dist-dir ../public",
"watch": "parcel watch src/index.html --dist-dir ../public"
},
"browserslist": [
"last 3 and_chr versions",
"last 3 chrome versions",
"last 3 opera versions",
"last 3 opera versions",
"last 3 ios_saf versions",
"last 3 safari versions"
]

5
frontend/src/index.html

@ -17,10 +17,7 @@ @@ -17,10 +17,7 @@
<input type="submit" value="Send">
<input type="text" name="send" value="">
</form>
<console-component></console-component>
<script src="main.js"></script>
<script src="console.js"></script>
<script type="module" src="main.js"></script>
</body>
</html>

1
frontend/src/main.js

@ -2,7 +2,6 @@ import { Terminal } from 'xterm'; @@ -2,7 +2,6 @@ import { Terminal } from 'xterm';
import { AttachAddon } from 'xterm-addon-attach';
import { FitAddon } from 'xterm-addon-fit';
import { SearchAddon } from 'xterm-addon-search';
import 'console.js';
function main() {
const urlParams = new URLSearchParams(window.location.search);

Loading…
Cancel
Save