Sha256: 8ccc39c6fc8ab30c730d53bb12fc355a85f39d256e248a047dd6d4f13145fbc0

Contents?: true

Size: 561 Bytes

Versions: 30

Compression:

Stored size: 561 Bytes

Contents

import * as React from "react";
import * as ReactDOM from "react-dom";

import Comments, { CommentsApplicationProps } from "./comments/comments.component";
import loadTranslations from "./support/load_translations";

window.DecidimComments = window.DecidimComments || {};

window.DecidimComments.renderCommentsComponent = (nodeId: string, props: CommentsApplicationProps) => {
  const node = window.$(`#${nodeId}`)[0];

  ReactDOM.render(
    React.createElement(Comments, props),
    node
  );
};

// Load component locales from yaml files
loadTranslations();

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
decidim-comments-0.13.0 app/frontend/entry.ts
decidim-comments-0.12.1 app/frontend/entry.ts
decidim-comments-0.13.0.pre1 app/frontend/entry.ts
decidim-comments-0.12.0 app/frontend/entry.ts
decidim-comments-0.11.2 app/frontend/entry.ts
decidim-comments-0.12.0.pre app/frontend/entry.ts
decidim-comments-0.11.1 app/frontend/entry.ts
decidim-comments-0.11.0.pre1 app/frontend/entry.ts
decidim-comments-0.10.1 app/frontend/entry.ts
decidim-comments-0.10.0 app/frontend/entry.ts