File tree Expand file tree Collapse file tree 3 files changed +627
-11
lines changed
Expand file tree Collapse file tree 3 files changed +627
-11
lines changed Original file line number Diff line number Diff line change 1- // import "@hotwired/turbo-rails";
2- // import "chartkick/chart.js";
3- // import "vanilla-nested";
4- // import PetiteVue from "petite-vue";
5- // import Quagga from "@ericblade/quagga2";
6- // import Rails from "@rails/ujs";
1+ import "@hotwired/turbo-rails" ;
2+ import "chartkick/chart.js" ;
3+ import "vanilla-nested" ;
4+ import * as PetiteVue from "petite-vue" ;
5+ import Quagga from "@ericblade/quagga2" ;
6+ import Rails from "@rails/ujs" ;
77
88// Start petite-vue on page and frame load
9- // document.addEventListener("turbo:load", () => PetiteVue.createApp().mount());
10- // document.addEventListener("turbo:frame-load", () => PetiteVue.createApp().mount());
9+ document . addEventListener ( "turbo:load" , ( ) => PetiteVue . createApp ( ) . mount ( ) ) ;
10+ document . addEventListener ( "turbo:frame-load" , ( ) => PetiteVue . createApp ( ) . mount ( ) ) ;
1111
1212// Globally mount Quagga
13- // window.Quagga = Quagga;
13+ window . Quagga = Quagga ;
1414
15- // Rails.start();
15+ Rails . start ( ) ;
1616
1717// Register a service worker
1818import "./pwa" ;
@@ -25,4 +25,4 @@ import "./utils/scanner";
2525import "./utils/submit" ;
2626
2727// Script that only runs for koelkast user
28- // import "./mqtt.js "
28+ import "./mqtt"
You can’t perform that action at this time.
0 commit comments