Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* global require */
import { Application } from 'stimulus';
import { definitionsFromContext } from 'stimulus/webpack-helpers';
const application = Application.start();
const context = require.context('controllers/entry', true, /.js$/);
const sharedContext = require.context('controllers/shared', true, /.js$/);
application.load(definitionsFromContext(context));
application.load(definitionsFromContext(sharedContext));
if (navigator.serviceWorker) {
navigator.serviceWorker.register('/service_worker.js', {
scope: '/',
updateViaCache: 'none'
});
}
/* global require */
import { Application } from 'stimulus';
import { definitionsFromContext } from 'stimulus/webpack-helpers';
import Rails from '@rails/ujs';
import Turbolinks from 'turbolinks';
const application = Application.start();
const context = require.context('controllers/admin', true, /.js$/);
const sharedContext = require.context('controllers/shared', true, /.js$/);
application.load(definitionsFromContext(context));
application.load(definitionsFromContext(sharedContext));
Rails.start();
Turbolinks.start();
import { Application } from "stimulus"
import { definitionsFromContext } from "stimulus/webpack-helpers"
require("shared/error-logger")
const application = Application.start()
const context = require.context("controllers", true, /.js$/)
application.load(definitionsFromContext(context))
require("shared/react-app")
import * as Turbo from '@hotwired/turbo';
import ujs from '@rails/ujs';
import { Application } from 'stimulus';
import { definitionsFromContext } from 'stimulus/webpack-helpers';
const application = Application.start();
const context = (require as any).context('./db/controllers', true, /\.ts$/);
application.load(definitionsFromContext(context));
ujs.start();
Turbo.start();
import { Application } from 'stimulus';
import { definitionsFromContext } from 'stimulus/webpack-helpers';
const application = Application.start();
const context = require.context('.', true, /\.js$/);
application.load(definitionsFromContext(context));
dayjs.locale(annConfig.viewer.locale);
Cookies.set('ann_time_zone', getTimeZone(), {
domain: `.${annConfig.domain}`,
secure: annConfig.rails.env === 'production',
});
axios.defaults.headers.common['X-CSRF-Token'] = document
.querySelector('meta[name="csrf-token"]')
?.getAttribute('content');
});
const application = Application.start();
const context = (require as any).context('./v6/controllers', true, /\.ts$/);
application.load(definitionsFromContext(context));
ujs.start();
Turbo.start();
import { Application } from "stimulus"
import { definitionsFromContext } from "stimulus/webpack-helpers"
const application = Application.start()
const context = require.context("./controllers", true, /\.jsx?$/)
application.load(definitionsFromContext(context))
import { definitionsFromContext } from 'stimulus/webpack-helpers';
import App from '../javascripts/app';
import Player from '../javascripts/player';
import 'core-js/stable';
import 'regenerator-runtime/runtime';
require.context('../images', true);
RailsUjs.start();
Turbolinks.start();
const application = Application.start();
const controllers = require.context('../javascripts/controllers', true, /\.js$/);
application.load(definitionsFromContext(controllers));
window.App = App;
window.App.player = new Player();
import { Application } from "stimulus"
import { Devise } from "@kaspernj/api-maker"
import { definitionsFromContext } from "stimulus/webpack-helpers"
Devise.addUserScope("User")
require("shared/error-logger")
const application = Application.start()
const context = require.context("controllers", true, /.js$/)
application.load(definitionsFromContext(context))
require("shared/react-app")
import { Application } from "stimulus";
import { definitionsFromContext } from "stimulus/webpack-helpers";
const application = Application.start()
const context = require.context("controllers", true, /_controller\.js$/)
application.load(definitionsFromContext(context))