-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ESM code into app/javascript/alchemy_admin
Follows Rails conventions and removes potential conflicts.
- Loading branch information
Showing
25 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
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,34 @@ | ||
import translate from "./alchemy_admin/i18n" | ||
import translationData from "./alchemy_admin/translations" | ||
import NodeTree from "./alchemy_admin/node_tree" | ||
import fileEditors from "./alchemy_admin/file_editors" | ||
import IngredientAnchorLink from "./alchemy_admin/ingredient_anchor_link" | ||
import pictureEditors from "./alchemy_admin/picture_editors" | ||
import ImageLoader from "./alchemy_admin/image_loader" | ||
import ImageCropper from "./alchemy_admin/image_cropper" | ||
import Datepicker from "./alchemy_admin/datepicker" | ||
import Sitemap from "./alchemy_admin/sitemap" | ||
import Tinymce from "./alchemy_admin/tinymce" | ||
import PagePublicationFields from "./alchemy_admin/page_publication_fields.js" | ||
|
||
// Global Alchemy object | ||
if (typeof window.Alchemy === "undefined") { | ||
window.Alchemy = {} | ||
} | ||
|
||
// Enhance the global Alchemy object with imported features | ||
Object.assign(Alchemy, { | ||
// Global utility method for translating a given string | ||
t: translate, | ||
translations: Object.assign(Alchemy.translations || {}, translationData), | ||
NodeTree, | ||
fileEditors, | ||
pictureEditors, | ||
ImageLoader: ImageLoader.init, | ||
ImageCropper, | ||
IngredientAnchorLink, | ||
Datepicker, | ||
Sitemap, | ||
Tinymce, | ||
PagePublicationFields | ||
}) |
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.
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.