Sha256: 1bf7d1c641bd33ce50634ab0edc6bcc324dbfbc24058f68eb42ac938f0428676
Contents?: true
Size: 1.15 KB
Versions: 7
Compression:
Stored size: 1.15 KB
Contents
import Rails from "@rails/ujs"; import { Application } from "@hotwired/stimulus"; require("react_ujs"); import * as Components from "./components"; import EditPageController from "./controllers/EditPageController"; import MainController from "./controllers/MainController"; import LoginController from "./controllers/LoginController"; import PageOptionsController from "./controllers/PageOptionsController"; import RichText from "./features/RichText"; export function registerComponent(name, component) { window[name] = component; } export default function startPages () { Rails.start(); for (var name in Components) { registerComponent(name, Components[name]); } RichText.start(); const application = Application.start(); application.register("edit-page", EditPageController); application.register("main", MainController); application.register("login", LoginController); application.register("page-options", PageOptionsController); } export * from "./components"; export * from "./hooks"; export * from "./stores"; export * from "./lib/request.js"; export { default as copyToClipboard, copySupported } from "./lib/copyToClipboard";
Version data entries
7 entries across 7 versions & 1 rubygems