* Revise skip link route change behaviour * remove cypress test for divergent behaviour no longer needed * fix import path * remove duplicate styles - woops * use translated string
16 lines
707 B
JavaScript
16 lines
707 B
JavaScript
import { Application } from '@hotwired/stimulus';
|
|
import { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers';
|
|
import { LocalTimeElement } from '@github/time-elements'; // eslint-disable-line no-unused-vars
|
|
import Rails from '@rails/ujs';
|
|
import 'focus-visible';
|
|
|
|
// Initialize Rails unobtrusive scripting adapter
|
|
// https://github.com/rails/rails/blob/main/actionview/app/assets/javascripts/README.md#es2015
|
|
Rails.start();
|
|
|
|
// This loads all the Stimulus controllers at the same time for the admin
|
|
// section of the application.
|
|
|
|
const application = Application.start();
|
|
const context = require.context('admin/controllers', true, /.js$/);
|
|
application.load(definitionsFromContext(context));
|