Move legacy javascript folder out of packs/
This commit is contained in:
parent
51678e5e34
commit
24f197a064
|
@ -25,7 +25,7 @@ coverage/
|
||||||
|
|
||||||
# dont push generated js translations to repository
|
# dont push generated js translations to repository
|
||||||
/app/assets/javascripts/i18n/*.js
|
/app/assets/javascripts/i18n/*.js
|
||||||
/app/javascript/packs/legacy/i18n.js
|
/app/javascript/legacy/i18n.js
|
||||||
|
|
||||||
# every fucking time, dolphin
|
# every fucking time, dolphin
|
||||||
.directory
|
.directory
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
import 'tempusdominus-bootstrap-4'
|
||||||
|
|
||||||
|
require('tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css')
|
||||||
|
|
||||||
|
import '../legacy/moderation/ban'
|
||||||
|
import '../legacy/moderation/comment'
|
||||||
|
import '../legacy/moderation/destroy'
|
||||||
|
import '../legacy/moderation/privileges'
|
||||||
|
import '../legacy/moderation/vote'
|
||||||
|
|
||||||
|
$('.datetimepicker-input').datetimepicker({})
|
|
@ -1,8 +1,8 @@
|
||||||
import 'core-js/stable'
|
import 'core-js/stable'
|
||||||
import 'regenerator-runtime/runtime'
|
import 'regenerator-runtime/runtime'
|
||||||
|
|
||||||
import './jquery'
|
import '../legacy/jquery'
|
||||||
import './bootstrap'
|
import '../legacy/bootstrap'
|
||||||
import {} from 'jquery-ujs'
|
import {} from 'jquery-ujs'
|
||||||
import 'jquery.turbolinks/src/jquery.turbolinks'
|
import 'jquery.turbolinks/src/jquery.turbolinks'
|
||||||
import 'jquery.guillotine'
|
import 'jquery.guillotine'
|
||||||
|
@ -19,21 +19,21 @@ require('jquery.guillotine/css/jquery.guillotine.css')
|
||||||
require('sweetalert/dist/sweetalert.css')
|
require('sweetalert/dist/sweetalert.css')
|
||||||
|
|
||||||
# this file is generated by Rails
|
# this file is generated by Rails
|
||||||
import I18n from './i18n'
|
import I18n from '../legacy/i18n'
|
||||||
|
|
||||||
import './answerbox'
|
import '../legacy/answerbox'
|
||||||
import './questionbox'
|
import '../legacy/questionbox'
|
||||||
import './inbox'
|
import '../legacy/inbox'
|
||||||
import './lists'
|
import '../legacy/lists'
|
||||||
import './memes'
|
import '../legacy/memes'
|
||||||
import './notifications'
|
import '../legacy/notifications'
|
||||||
import './pagination'
|
import '../legacy/pagination'
|
||||||
import './question'
|
import '../legacy/question'
|
||||||
import './settings'
|
import '../legacy/settings'
|
||||||
import './user'
|
import '../legacy/user'
|
||||||
import './report'
|
import '../legacy/report'
|
||||||
import './locale-box'
|
import '../legacy/locale-box'
|
||||||
import './util'
|
import '../legacy/util'
|
||||||
|
|
||||||
window.moment = moment
|
window.moment = moment
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
import 'tempusdominus-bootstrap-4'
|
|
||||||
|
|
||||||
require('tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css')
|
|
||||||
|
|
||||||
import './ban'
|
|
||||||
import './comment'
|
|
||||||
import './destroy'
|
|
||||||
import './privileges'
|
|
||||||
import './vote'
|
|
||||||
|
|
||||||
$('.datetimepicker-input').datetimepicker({})
|
|
|
@ -11,11 +11,11 @@
|
||||||
%link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
|
%link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
|
||||||
%title= yield(:title)
|
%title= yield(:title)
|
||||||
= stylesheet_link_tag 'application', media: 'all', data: { 'turbolinks-track': true }
|
= stylesheet_link_tag 'application', media: 'all', data: { 'turbolinks-track': true }
|
||||||
= javascript_pack_tag 'legacy/application', data: { 'turbolinks-track': true }
|
= javascript_pack_tag 'legacy', data: { 'turbolinks-track': true }
|
||||||
= javascript_pack_tag 'hello_typescript'
|
= javascript_pack_tag 'hello_typescript'
|
||||||
= stylesheet_pack_tag 'legacy/application', data: { 'turbolinks-track': true }
|
= stylesheet_pack_tag 'legacy', data: { 'turbolinks-track': true }
|
||||||
- if user_signed_in? && current_user.mod?
|
- if user_signed_in? && current_user.mod?
|
||||||
= javascript_pack_tag 'legacy/moderation/index', data: { 'turbolinks-track': true }
|
= javascript_pack_tag 'legacy-moderation', data: { 'turbolinks-track': true }
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
%body
|
%body
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
fallbacks: :default_locale
|
fallbacks: :default_locale
|
||||||
|
|
||||||
translations:
|
translations:
|
||||||
- file: 'app/javascript/packs/legacy/i18n.js'
|
- file: 'app/javascript/legacy/i18n.js'
|
||||||
only: ['*.frontend.*', '*.views.actions.*']
|
only: ['*.frontend.*', '*.views.actions.*']
|
||||||
prefix: "import I18n from 'i18n-js'\n"
|
prefix: "import I18n from 'i18n-js'\n"
|
||||||
suffix: "\nexport default I18n"
|
suffix: "\nexport default I18n"
|
||||||
|
|
Loading…
Reference in New Issue