mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
switched to ECMAScript modules
This commit is contained in:
parent
2f6dc13f76
commit
f22a1dfd5e
@ -3,11 +3,7 @@
|
||||
<title>LWS Example</title>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="style/main.css">
|
||||
<script type="text/javascript" src="js/connection.js"></script>
|
||||
<script type="text/javascript" src="js/connection_view.js"></script>
|
||||
<script type="text/javascript" src="js/filesystem.js"></script>
|
||||
<script type="text/javascript" src="js/filesystem_handler.js"></script>
|
||||
<script type="text/javascript" src="js/startup.js"></script>
|
||||
<script type="module" src="js/startup.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -9,7 +9,8 @@ module.exports = {
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"accessor-pairs": "error",
|
||||
|
@ -1,6 +1,4 @@
|
||||
/* exported Connection */
|
||||
|
||||
class Connection {
|
||||
export class Connection {
|
||||
|
||||
constructor() {
|
||||
this.ws = null;
|
||||
|
@ -1,6 +1,4 @@
|
||||
/* exported ConnectionView */
|
||||
|
||||
class ConnectionView {
|
||||
export class ConnectionView {
|
||||
constructor(connection) {
|
||||
this.connection = connection;
|
||||
this.connection.onclose = () => { this.onConnectionClosed(); };
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* exported FileSystem */
|
||||
/* eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }] */
|
||||
|
||||
class FileSystem {
|
||||
export class FileSystem {
|
||||
static get GOOD() { return 0; }
|
||||
static get BAD() { return 1; }
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* exported FileSystemHandler */
|
||||
/* eslint no-console: "off" */
|
||||
|
||||
class FileSystemHandler {
|
||||
export class FileSystemHandler {
|
||||
|
||||
constructor(filesystem, connection) {
|
||||
this._fs = filesystem;
|
||||
|
@ -1,4 +1,8 @@
|
||||
/* global Connection, ConnectionView, FileSystem, FileSystemHandler */
|
||||
import { Connection } from "./connection.js";
|
||||
import { ConnectionView } from "./connection_view.js";
|
||||
import { FileSystem } from "./filesystem.js";
|
||||
import { FileSystemHandler } from "./filesystem_handler.js";
|
||||
|
||||
|
||||
function mode(value) {
|
||||
return parseInt(value, 8);
|
||||
|
Loading…
Reference in New Issue
Block a user