Update parcel 2

This commit is contained in:
Jimmy 2022-01-11 02:52:48 +00:00
parent 617c44d40e
commit 18c6a97ae7
6 changed files with 11883 additions and 4060 deletions

4
.gitignore vendored
View File

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

View File

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

15910
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -18,9 +18,6 @@
<input type="text" name="send" value=""> <input type="text" name="send" value="">
</form> </form>
<console-component></console-component> <script type="module" src="main.js"></script>
<script src="main.js"></script>
<script src="console.js"></script>
</body> </body>
</html> </html>

View File

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