Added site to this repo and Gitlab to build it
This commit is contained in:
parent
8dafa6fa8f
commit
c474b18232
50 changed files with 1812 additions and 1 deletions
17
_site/assets/js/controllers/keybindings_controller.js
Normal file
17
_site/assets/js/controllers/keybindings_controller.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
export class KeybindingsController extends Controller {
|
||||
static targets = [
|
||||
"showBindingNames",
|
||||
"keyBindingTable"
|
||||
];
|
||||
|
||||
bindingNamesChanged() {
|
||||
let showBindingNames = this.showBindingNamesTarget;
|
||||
if (showBindingNames.checked) {
|
||||
this.keyBindingTableTarget.classList.add("show-binding-names");
|
||||
} else {
|
||||
this.keyBindingTableTarget.classList.remove("show-binding-names");
|
||||
}
|
||||
}
|
||||
}
|
||||
5
_site/assets/js/index.js
Normal file
5
_site/assets/js/index.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { Application } from "@hotwired/stimulus";
|
||||
import { KeybindingsController } from "./controllers/keybindings_controller";
|
||||
|
||||
const application = Application.start();
|
||||
application.register("keybindings", KeybindingsController);
|
||||
Loading…
Add table
Add a link
Reference in a new issue