Sha256: cc4996e6fff9896ff5eecc1787df8116b0995b6d7cf4c9ae8d3f80087fe38d61

Contents?: true

Size: 562 Bytes

Versions: 56

Compression:

Stored size: 562 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

56 entries across 56 versions & 2 rubygems

Version Path
decidim-comments-0.9.3 app/frontend/entry.ts
decidim-comments-0.9.2 app/frontend/entry.ts
decidim-comments-0.9.1 app/frontend/entry.ts
decidim-comments-0.9.0 app/frontend/entry.ts
decidim-comments-0.8.4 app/frontend/entry.ts
decidim-comments-0.8.3 app/frontend/entry.ts
decidim-comments-0.8.2 app/frontend/entry.ts
decidim-comments-0.8.1 app/frontend/entry.ts
decidim-comments-0.8.0 app/frontend/entry.ts
decidim-comments-0.7.4 app/frontend/entry.ts
decidim-comments-0.7.3 app/frontend/entry.ts
decidim-comments-0.7.2 app/frontend/entry.ts
decidim-comments-0.7.1 app/frontend/entry.ts
decidim-comments-0.7.0 app/frontend/entry.ts
decidim-comments-0.6.8 app/frontend/entry.ts
decidim-0.6.8 decidim-comments/app/frontend/entry.ts
decidim-comments-0.6.7 app/frontend/entry.ts
decidim-0.6.7 decidim-comments/app/frontend/entry.ts
decidim-comments-0.6.6 app/frontend/entry.ts
decidim-0.6.6 decidim-comments/app/frontend/entry.ts