0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 06:48:11 +00:00

remove ssr only files

This commit is contained in:
Víctor Losada Hernández
2026-02-01 17:47:37 +01:00
parent 3e76046868
commit 9dc2752ac3
4 changed files with 0 additions and 36 deletions

View File

@@ -1,12 +0,0 @@
import React from 'react'
import { hydrateRoot } from 'react-dom/client';
import Admin from './admin.jsx';
import './admin/admin.less'
window.start_app = (props) => {
hydrateRoot(
document.getElementById('reactRoot'),
<Admin {...props} />
)
}

View File

@@ -1,16 +0,0 @@
import React from "react";
import { hydrateRoot } from "react-dom/client";
import Homebrew from "./homebrew/homebrew.jsx";
// CSS MUST be imported here
import "./homebrew/homebrew.less"; // or wherever your CSS lives
// Polyfill `global` in the browser
if (typeof global === 'undefined') {
window.global = window;
}
console.log("entry-client-homebrew");
const props = window.__SSR_PROPS__ || {};
console.log("props: ", props);
hydrateRoot(document.getElementById("reactRoot"), <Homebrew {...props} />);

View File

@@ -1,4 +0,0 @@
import { renderToString } from 'react-dom/server';
import Admin from './admin/admin.jsx';
export default (props) => renderToString(<Admin {...props} />);

View File

@@ -1,4 +0,0 @@
import { renderToString } from 'react-dom/server';
import Homebrew from './homebrew/homebrew.jsx';
export default (props) => renderToString(<Homebrew {...props} />);