-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate assets to ESM-based structure
- Loading branch information
Showing
58 changed files
with
1,230 additions
and
177 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-494 Bytes
app/assets/stylesheets/rails_admin/aristo/images/progress_bar.gif
Binary file not shown.
Binary file removed
BIN
-1.32 KB
app/assets/stylesheets/rails_admin/aristo/images/slider_handles.png
Binary file not shown.
Binary file removed
BIN
-3.61 KB
app/assets/stylesheets/rails_admin/aristo/images/ui-icons_222222_256x240.png
Binary file not shown.
Binary file removed
BIN
-3.61 KB
app/assets/stylesheets/rails_admin/aristo/images/ui-icons_454545_256x240.png
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import 'rails_admin/src/base' | ||
import 'rails_admin/src/rails_admin/base' | ||
import '../stylesheets/rails_admin.scss' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@import "~rails_admin/src/styles/base.scss"; | ||
@import "~rails_admin/src/rails_admin/styles/base.scss"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Rails from '@rails/ujs' | ||
import jQuery from 'jquery' | ||
import moment from 'moment' | ||
import './vendor/jquery.pjax' | ||
import './vendor/jquery_nested_form' | ||
import 'bootstrap' | ||
import 'moment/min/locales.js' | ||
import 'eonasdan-bootstrap-datetimepicker' | ||
|
||
import './filter-box' | ||
import './filtering-multiselect' | ||
import './filtering-select' | ||
import './nested-form-hooks' | ||
import './remote-form' | ||
import './sidescroll' | ||
import './ui' | ||
import './widgets' | ||
|
||
Rails.start(); | ||
window.$ = window.jQuery = jQuery; | ||
window.moment = moment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import moment from 'moment' | ||
|
||
export default { | ||
locale: null, | ||
translations: null, | ||
init(locale, translations) { | ||
this.locale = locale; | ||
this.translations = translations; | ||
moment.locale(this.locale); | ||
if (typeof this.translations === "string") { | ||
this.translations = JSON.parse(this.translations); | ||
} | ||
}, | ||
t(key) { | ||
var humanize; | ||
humanize = key.charAt(0).toUpperCase() + key.replace(/_/g, " ").slice(1); | ||
return this.translations[key] || humanize; | ||
} | ||
}; |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 2 additions & 0 deletions
2
...ripts/rails_admin/ra.nested-form-hooks.js → src/rails_admin/nested-form-hooks.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.