Sha256: 163f1f4fad53da4b49b3f45eeab25c96f226540bae62c6af7ba9fdbe692d2ff3

Contents?: true

Size: 738 Bytes

Versions: 9

Compression:

Stored size: 738 Bytes

Contents

import translate from "./src/i18n"
import translationData from "./src/translations"
import NodeTree from "./src/node_tree"
import fileEditors from "./src/file_editors"
import pictureEditors from "./src/picture_editors"
import ImageLoader from "./src/image_loader"
import ImageCropper from "./src/image_cropper"

// 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
})

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-6.0.0.pre.rc3 package/admin.js
alchemy_cms-6.0.0.pre.rc2 package/admin.js
alchemy_cms-6.0.0.pre.rc1 package/admin.js
alchemy_cms-6.0.0.pre.b6 package/admin.js
alchemy_cms-6.0.0.pre.b5 package/admin.js
alchemy_cms-6.0.0.pre.b4 package/admin.js
alchemy_cms-6.0.0.b3 package/admin.js
alchemy_cms-6.0.0.b2 package/admin.js
alchemy_cms-6.0.0.b1 package/admin.js