]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/shortcuts.js
Updated a batch of JS components
[bookstack] / resources / js / components / shortcuts.js
index 4efa3d42b8734458d9f6bc5fa2a782dcaa58702d..a87213b2e8968070b5a0934cc3db0e6a1ef75fa0 100644 (file)
@@ -1,3 +1,5 @@
+import {Component} from "./component";
+
 function reverseMap(map) {
     const reversed = {};
     for (const [key, value] of Object.entries(map)) {
@@ -6,10 +8,8 @@ function reverseMap(map) {
     return reversed;
 }
 
-/**
- * @extends {Component}
- */
-class Shortcuts {
+
+export class Shortcuts extends Component {
 
     setup() {
         this.container = this.$el;
@@ -159,6 +159,4 @@ class Shortcuts {
 
         this.hintsShowing = false;
     }
-}
-
-export default Shortcuts;
\ No newline at end of file
+}
\ No newline at end of file