mirror of
https://github.com/danbee/my-images
synced 2025-03-04 08:49:05 +00:00
Kinda turns out we need rails-ujs to sign out...
This commit is contained in:
parent
f29e10ddbf
commit
6607095de8
@ -7,9 +7,12 @@
|
|||||||
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
|
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
|
||||||
// layout file, like app/views/layouts/application.html.erb
|
// layout file, like app/views/layouts/application.html.erb
|
||||||
|
|
||||||
|
import Rails from "rails-ujs";
|
||||||
import { Application } from "stimulus";
|
import { Application } from "stimulus";
|
||||||
import { definitionsFromContext } from "stimulus/webpack-helpers";
|
import { definitionsFromContext } from "stimulus/webpack-helpers";
|
||||||
|
|
||||||
|
Rails.start();
|
||||||
|
|
||||||
const application = Application.start();
|
const application = Application.start();
|
||||||
const context = require.context("controllers", true, /.js$/);
|
const context = require.context("controllers", true, /.js$/);
|
||||||
application.load(definitionsFromContext(context));
|
application.load(definitionsFromContext(context));
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rails/webpacker": "3.5",
|
"@rails/webpacker": "3.5",
|
||||||
"axios": "^0.18.0",
|
"axios": "^0.18.0",
|
||||||
|
"rails-ujs": "^5.2.1",
|
||||||
"stimulus": "^1.1.0"
|
"stimulus": "^1.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -4563,6 +4563,10 @@ querystringify@^2.0.0:
|
|||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.0.0.tgz#fa3ed6e68eb15159457c89b37bc6472833195755"
|
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.0.0.tgz#fa3ed6e68eb15159457c89b37bc6472833195755"
|
||||||
|
|
||||||
|
rails-ujs@^5.2.1:
|
||||||
|
version "5.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/rails-ujs/-/rails-ujs-5.2.1.tgz#2869c6d54fdfefac3aaa257f4efe211d8f5a7169"
|
||||||
|
|
||||||
randomatic@^3.0.0:
|
randomatic@^3.0.0:
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116"
|
resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user