mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Remove unused dependencies (#228)
* Remove unused package.json dependencies * Remove unused files * Remove some bootstrap js dependencies
This commit is contained in:
committed by
GitHub
parent
d8cf46c351
commit
189d5abe27
@@ -6,12 +6,9 @@
|
||||
@import 'bootstrap/scss/_type.scss';
|
||||
@import 'bootstrap/scss/_alert.scss';
|
||||
@import 'bootstrap/scss/_badge';
|
||||
@import 'bootstrap/scss/_breadcrumb';
|
||||
@import 'bootstrap/scss/_button-group';
|
||||
@import 'bootstrap/scss/_buttons';
|
||||
@import 'bootstrap/scss/_buttons.scss';
|
||||
@import 'bootstrap/scss/_card.scss';
|
||||
@import 'bootstrap/scss/_carousel.scss';
|
||||
@import 'bootstrap/scss/_close.scss';
|
||||
@import 'bootstrap/scss/_code.scss';
|
||||
@import 'bootstrap/scss/_custom-forms.scss';
|
||||
@@ -20,19 +17,11 @@
|
||||
@import 'bootstrap/scss/_grid.scss';
|
||||
@import 'bootstrap/scss/_images.scss';
|
||||
@import 'bootstrap/scss/_input-group.scss';
|
||||
@import 'bootstrap/scss/_jumbotron.scss';
|
||||
@import 'bootstrap/scss/_list-group.scss';
|
||||
@import 'bootstrap/scss/_media.scss';
|
||||
@import 'bootstrap/scss/_modal.scss';
|
||||
@import 'bootstrap/scss/_nav.scss';
|
||||
@import 'bootstrap/scss/_navbar.scss';
|
||||
@import 'bootstrap/scss/_pagination.scss';
|
||||
@import 'bootstrap/scss/_popover.scss';
|
||||
@import 'bootstrap/scss/_print.scss';
|
||||
@import 'bootstrap/scss/_progress.scss';
|
||||
@import 'bootstrap/scss/_spinners.scss';
|
||||
@import 'bootstrap/scss/_tables.scss';
|
||||
@import 'bootstrap/scss/_toasts.scss';
|
||||
@import 'bootstrap/scss/_tooltip.scss';
|
||||
@import 'bootstrap/scss/_transitions.scss';
|
||||
@import 'bootstrap/scss/_utilities.scss';
|
||||
@@ -1,4 +0,0 @@
|
||||
module ApplicationCable
|
||||
class Channel < ActionCable::Channel::Base
|
||||
end
|
||||
end
|
||||
@@ -1,4 +0,0 @@
|
||||
module ApplicationCable
|
||||
class Connection < ActionCable::Connection::Base
|
||||
end
|
||||
end
|
||||
@@ -1,19 +1,16 @@
|
||||
// Entry point for the build script in your package.json
|
||||
|
||||
// turbolinks
|
||||
require("turbolinks").start();
|
||||
require('turbolinks').start();
|
||||
|
||||
// react-rails
|
||||
var componentRequireContext = require.context("./components", true);
|
||||
var ReactRailsUJS = require("react_ujs");
|
||||
var componentRequireContext = require.context('./components', true);
|
||||
var ReactRailsUJS = require('react_ujs');
|
||||
ReactRailsUJS.useContext(componentRequireContext);
|
||||
|
||||
// bootstrap (js only)
|
||||
require('bootstrap/js/dist/alert');
|
||||
require('bootstrap/js/dist/button');
|
||||
require('bootstrap/js/dist/collapse');
|
||||
require('bootstrap/js/dist/dropdown');
|
||||
require('bootstrap/js/dist/util');
|
||||
require('bootstrap/js/dist/dropdown');
|
||||
|
||||
// i18n-js translations
|
||||
require('./translations/index.js.erb');
|
||||
@@ -1,6 +0,0 @@
|
||||
// Action Cable provides the framework to deal with WebSockets in Rails.
|
||||
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
||||
|
||||
import { createConsumer } from "@rails/actioncable"
|
||||
|
||||
export default createConsumer()
|
||||
@@ -1,5 +0,0 @@
|
||||
// Load all the channels within this directory and all subdirectories.
|
||||
// Channel files must be named *_channel.js.
|
||||
|
||||
const channels = require.context('.', true, /_channel\.js$/)
|
||||
channels.keys().forEach(channels)
|
||||
@@ -1,4 +1,6 @@
|
||||
import I18n from "i18n-js"
|
||||
|
||||
I18n.translations = <%= I18n::JS.filtered_translations.to_json %>
|
||||
I18n.locale = LOCALE
|
||||
|
||||
export default I18n
|
||||
@@ -1,7 +0,0 @@
|
||||
class ApplicationJob < ActiveJob::Base
|
||||
# Automatically retry jobs that encountered a deadlock
|
||||
# retry_on ActiveRecord::Deadlocked
|
||||
|
||||
# Most jobs are safe to ignore if the underlying records are no longer available
|
||||
# discard_on ActiveJob::DeserializationError
|
||||
end
|
||||
Reference in New Issue
Block a user