Sha256: a863a2f09cab881b5a7ffa89708cde8904f862e354fa888c04099b20f0439df5

Contents?: true

Size: 609 Bytes

Versions: 9

Compression:

Stored size: 609 Bytes

Contents

import translate from "./src/i18n"
import translationData from "./src/translations"
import NodeTree from "./src/node_tree"
import Sitemap from "./src/sitemap"
import PagePublicationFields from "./src/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,
  Sitemap,
  PagePublicationFields
})

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 package/admin.js
alchemy_cms-5.3.7 package/admin.js
alchemy_cms-5.3.6 package/admin.js
alchemy_cms-5.3.5 package/admin.js
alchemy_cms-5.3.4 package/admin.js
alchemy_cms-5.3.3 package/admin.js
alchemy_cms-5.3.2 package/admin.js
alchemy_cms-5.3.1 package/admin.js
alchemy_cms-5.3.0 package/admin.js