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.20.1 app/frontend/entry.ts
decidim-comments-0.20.0 app/frontend/entry.ts
decidim-comments-0.19.1 app/frontend/entry.ts
decidim-comments-0.18.1 app/frontend/entry.ts
decidim-comments-0.19.0 app/frontend/entry.ts
decidim-comments-0.17.2 app/frontend/entry.ts
decidim-comments-0.18.0 app/frontend/entry.ts
decidim-comments-0.17.1 app/frontend/entry.ts
decidim-comments-0.16.1 app/frontend/entry.ts
decidim-comments-0.17.0 app/frontend/entry.ts
decidim-comments-0.16.0 app/frontend/entry.ts
decidim-comments-0.15.2 app/frontend/entry.ts
decidim-comments-0.15.1 app/frontend/entry.ts
decidim-comments-0.15.0 app/frontend/entry.ts
decidim-comments-0.14.4 app/frontend/entry.ts
decidim-comments-0.14.3 app/frontend/entry.ts
decidim-comments-0.14.2 app/frontend/entry.ts
decidim-comments-0.14.1 app/frontend/entry.ts
decidim-comments-0.13.1 app/frontend/entry.ts
decidim-comments-0.12.2 app/frontend/entry.ts