Remove JS extensions
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
||||
import "@hotwired/turbo-rails"
|
||||
import "extensions"
|
||||
import "initializers"
|
||||
import "controllers"
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
Array.prototype.toSentence = function() {
|
||||
const length = this.length
|
||||
|
||||
switch (length) {
|
||||
case 0:
|
||||
return ""
|
||||
case 1:
|
||||
return `${this[0]}.`
|
||||
case 2:
|
||||
return `${this[0]} and ${this[1]}.`
|
||||
default:
|
||||
return this.map((item, index) => {
|
||||
const isLast = index === length - 1
|
||||
return isLast ? `and ${item}.` : item
|
||||
}).join(", ")
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
import "extensions/array_extensions"
|
||||
@@ -7,5 +7,4 @@ pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
||||
|
||||
pin_all_from "app/javascript/controllers", under: "controllers"
|
||||
pin_all_from "app/javascript/helpers", under: "helpers"
|
||||
pin_all_from "app/javascript/extensions", under: "extensions"
|
||||
pin_all_from "app/javascript/initializers", under: "initializers"
|
||||
|
||||
Reference in New Issue
Block a user