Sha256: 0e73958a367d6860094a1118a27edf4c6bb235d974d872972a8741b632521415

Contents?: true

Size: 706 Bytes

Versions: 5

Compression:

Stored size: 706 Bytes

Contents

import Rails from "@rails/ujs";
import "react_ujs";
import { FC } from "react";

import * as Components from "./components";

import RichText from "./features/RichText";
import contentTabs from "./features/contentTabs";

export function registerComponent(name: string, component: FC) {
  window[name] = component;
}

export default function startPages() {
  Rails.start();
  for (const name in Components) {
    registerComponent(name, Components[name] as FC);
  }

  RichText.start();
  contentTabs();
}

export * from "./components";
export * from "./hooks";
export * from "./stores";

export * from "./lib/request";
export {
  default as copyToClipboard,
  copySupported
} from "./lib/copyToClipboard";

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/javascript/index.ts
pages_core-3.15.4 app/javascript/index.ts
pages_core-3.15.3 app/javascript/index.ts
pages_core-3.15.2 app/javascript/index.ts
pages_core-3.15.1 app/javascript/index.ts