Skip to content

Commit

Permalink
Merge pull request #3050 from AlchemyCMS/convert-dialog-into-esm
Browse files Browse the repository at this point in the history
Convert dialog class into esm
  • Loading branch information
tvdeyen authored Sep 24, 2024
2 parents 367b5cf + 881a5f9 commit 4c20717
Show file tree
Hide file tree
Showing 16 changed files with 492 additions and 400 deletions.
4 changes: 0 additions & 4 deletions app/assets/javascripts/alchemy/admin.js

This file was deleted.

271 changes: 0 additions & 271 deletions app/assets/javascripts/alchemy/alchemy.dialog.js.coffee

This file was deleted.

54 changes: 0 additions & 54 deletions app/assets/javascripts/alchemy/alchemy.image_overlay.coffee

This file was deleted.

7 changes: 3 additions & 4 deletions app/javascript/alchemy_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ import "select2"

import Rails from "@rails/ujs"

import GUI from "alchemy_admin/gui"
import { translate } from "alchemy_admin/i18n"
import { currentDialog, closeCurrentDialog } from "alchemy_admin/dialog"
import Dirty from "alchemy_admin/dirty"
import * as FixedElements from "alchemy_admin/fixed_elements"
import { growl } from "alchemy_admin/growler"
import ImageLoader from "alchemy_admin/image_loader"
import Initializer from "alchemy_admin/initializer"
import { LinkDialog } from "alchemy_admin/link_dialog"
import pictureSelector from "alchemy_admin/picture_selector"
import pleaseWaitOverlay from "alchemy_admin/please_wait_overlay"
import Sitemap from "alchemy_admin/sitemap"
import Spinner from "alchemy_admin/spinner"
Expand All @@ -42,14 +41,14 @@ if (typeof window.Alchemy === "undefined") {

// Enhance the global Alchemy object with imported features
Object.assign(Alchemy, {
closeCurrentDialog,
currentDialog,
...Dirty,
GUI,
t: translate, // Global utility method for translating a given string
FixedElements,
growl,
ImageLoader: ImageLoader.init,
LinkDialog,
pictureSelector,
pleaseWaitOverlay,
Sitemap,
Spinner,
Expand Down
Loading

0 comments on commit 4c20717

Please sign in to comment.