Sha256: 8c87f5050bd4339688dbf55e057b23447baa193249fa88aa606aecfa5ffb47fb

Contents?: true

Size: 1.91 KB

Versions: 3

Compression:

Stored size: 1.91 KB

Contents

<script type="importmap" data-turbo-track="reload">
  <%=
    # This ended up being the best solution to not drag in the importmap from the host app when we're editing the site
    JSON.pretty_generate({
      imports: {
        # Main loader
        "application_panda_cms": asset_path("panda/cms/application_panda_cms.js"),
        # Vendored
        "@hotwired/turbo": asset_path("panda/cms/@hotwired--turbo.js"),
        "@hotwired/stimulus": asset_path("panda/cms/@hotwired--stimulus.js"),
        "@hotwired/stimulus-loading": asset_path("stimulus-loading.js"),
        "@editorjs/editorjs": asset_path("panda/cms/@editorjs--editorjs.js"),
        "tailwindcss-stimulus-components": asset_path("panda/cms/tailwindcss-stimulus-components.js"),
        # Our page editor
        "panda/cms/editor/plain_text_editor": asset_path("panda/cms/editor/plain_text_editor.js"),
        "panda/cms/editor/resource_loader": asset_path("panda/cms/editor/resource_loader.js"),
        "panda/cms/editor/editor_js_initializer": asset_path("panda/cms/editor/editor_js_initializer.js"),
        "panda/cms/editor/editor_js_config": asset_path("panda/cms/editor/editor_js_config.js"),
        "panda/cms/editor/css_extractor": asset_path("panda/cms/editor/css_extractor.js"),
        # Our controllers
        "panda/cms/controllers/dashboard_controller": asset_path("panda/cms/controllers/dashboard_controller.js"),
        "panda/cms/controllers/slug_controller": asset_path("panda/cms/controllers/slug_controller.js"),
        "panda/cms/controllers/editor_form_controller": asset_path("panda/cms/controllers/editor_form_controller.js"),
        "panda/cms/controllers/editor_iframe_controller": asset_path("panda/cms/controllers/editor_iframe_controller.js"),
        # Main controller loader
        "controllers": asset_path("panda/cms/controllers/index.js"),
      }
    }).html_safe
  %>
</script>
<script type="module">
  import "application_panda_cms"
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 app/views/panda/cms/shared/_importmap.html.erb
panda-cms-0.7.2 app/views/panda/cms/shared/_importmap.html.erb
panda-cms-0.7.0 app/views/panda/cms/shared/_importmap.html.erb