init
This commit is contained in:
6
app/javascript/channels/consumer.js
Normal file
6
app/javascript/channels/consumer.js
Normal file
@ -0,0 +1,6 @@
|
||||
// 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()
|
5
app/javascript/channels/index.js
Normal file
5
app/javascript/channels/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
// 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)
|
5
app/javascript/packs/active_admin.js
Normal file
5
app/javascript/packs/active_admin.js
Normal file
@ -0,0 +1,5 @@
|
||||
// Load Active Admin's styles into Webpacker,
|
||||
// see `active_admin.scss` for customization.
|
||||
import "../stylesheets/active_admin";
|
||||
|
||||
import "@activeadmin/activeadmin";
|
2
app/javascript/packs/active_admin/print.scss
Normal file
2
app/javascript/packs/active_admin/print.scss
Normal file
@ -0,0 +1,2 @@
|
||||
/* Active Admin Print Stylesheet */
|
||||
@import "~@activeadmin/activeadmin/src/scss/print";
|
17
app/javascript/packs/application.js
Normal file
17
app/javascript/packs/application.js
Normal file
@ -0,0 +1,17 @@
|
||||
// This file is automatically compiled by Webpack, along with any other files
|
||||
// present in this directory. You're encouraged to place your actual application logic in
|
||||
// a relevant structure within app/javascript and only use these pack files to reference
|
||||
// that code so it'll be compiled.
|
||||
|
||||
require("@rails/ujs").start()
|
||||
require("turbolinks").start()
|
||||
require("@rails/activestorage").start()
|
||||
require("channels")
|
||||
|
||||
|
||||
// Uncomment to copy all static images under ../images to the output folder and reference
|
||||
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
||||
// or the `imagePath` JavaScript helper below.
|
||||
//
|
||||
// const images = require.context('../images', true)
|
||||
// const imagePath = (name) => images(name, true)
|
17
app/javascript/stylesheets/active_admin.scss
Normal file
17
app/javascript/stylesheets/active_admin.scss
Normal file
@ -0,0 +1,17 @@
|
||||
// Sass variable overrides must be declared before loading up Active Admin's styles.
|
||||
//
|
||||
// To view the variables that Active Admin provides, take a look at
|
||||
// `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the
|
||||
// Active Admin source.
|
||||
//
|
||||
// For example, to change the sidebar width:
|
||||
// $sidebar-width: 242px;
|
||||
|
||||
// Active Admin's got SASS!
|
||||
@import "~@activeadmin/activeadmin/src/scss/mixins";
|
||||
@import "~@activeadmin/activeadmin/src/scss/base";
|
||||
|
||||
// Overriding any non-variable Sass must be done after the fact.
|
||||
// For example, to change the default status-tag color:
|
||||
//
|
||||
// .status_tag { background: #6090DB; }
|
Reference in New Issue
Block a user