- 修复Dockerfile构建问题,暂时禁用ideal-image插件 - 更新所有配置文件中的registry端口为5003 - 添加.dockerignore文件优化构建性能 - 创建docker-compose.yml文件支持本地部署 - 添加部署脚本scripts/deploy-docker.sh - 更新Gitea Actions工作流,添加Docker部署步骤 - 创建DOCKER_DEPLOYMENT.md部署文档 - 支持通过3001端口提供lingjingwanxiang web portal服务
23 lines
818 B
JavaScript
23 lines
818 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
const POPUP_CONTAINER_ID = 'pwa-popup-container';
|
|
const getContainer = () => document.getElementById(POPUP_CONTAINER_ID);
|
|
const createContainer = () => {
|
|
const container = document.createElement('div');
|
|
container.id = POPUP_CONTAINER_ID;
|
|
document.body.appendChild(container);
|
|
return container;
|
|
};
|
|
export function renderReloadPopup(props) {
|
|
const container = getContainer() ?? createContainer();
|
|
return import('@theme/PwaReloadPopup').then(({ default: ReloadPopup }) => {
|
|
ReactDOM.render(<ReloadPopup {...props}/>, container);
|
|
});
|
|
}
|