Sha256: d80594a7cffc1fb638d0776f5a6514120874ee5d9efb1846abd2a2d11c6d1dfd

Contents?: true

Size: 1.64 KB

Versions: 12

Compression:

Stored size: 1.64 KB

Contents

import "@ungap/custom-elements"
import "@hotwired/turbo-rails"

import Rails from "@rails/ujs"

import GUI from "alchemy_admin/gui"
import { translate } from "alchemy_admin/i18n"
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 ImageCropper from "alchemy_admin/image_cropper"
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"
import PagePublicationFields from "alchemy_admin/page_publication_fields"
import { reloadPreview } from "alchemy_admin/components/preview_window"
import {
  openConfirmDialog,
  confirmToDeleteDialog
} from "alchemy_admin/confirm_dialog"

// Web Components
import "alchemy_admin/components"

// Shoelace Setup
import "alchemy_admin/shoelace_theme"

// Global Alchemy object
if (typeof window.Alchemy === "undefined") {
  window.Alchemy = {}
}

// Enhance the global Alchemy object with imported features
Object.assign(Alchemy, {
  ...Dirty,
  GUI,
  t: translate, // Global utility method for translating a given string
  FixedElements,
  growl,
  ImageLoader: ImageLoader.init,
  ImageCropper,
  LinkDialog,
  pictureSelector,
  pleaseWaitOverlay,
  Sitemap,
  Spinner,
  PagePublicationFields,
  reloadPreview,
  openConfirmDialog,
  confirmToDeleteDialog
})

Rails.start()

$(document).on("turbo:load", Initializer)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/javascript/alchemy_admin.js
alchemy_cms-7.3.3 app/javascript/alchemy_admin.js
alchemy_cms-7.3.2 app/javascript/alchemy_admin.js
alchemy_cms-7.2.7 app/javascript/alchemy_admin.js
alchemy_cms-7.3.1 app/javascript/alchemy_admin.js
alchemy_cms-7.3.0 app/javascript/alchemy_admin.js
alchemy_cms-7.2.6 app/javascript/alchemy_admin.js
alchemy_cms-7.2.5 app/javascript/alchemy_admin.js
alchemy_cms-7.2.4 app/javascript/alchemy_admin.js
alchemy_cms-7.2.3 app/javascript/alchemy_admin.js
alchemy_cms-7.2.2 app/javascript/alchemy_admin.js
alchemy_cms-7.2.1 app/javascript/alchemy_admin.js