Browse Source

Use iframe for data file

HEAD
Yang Luo 2 years ago
parent
commit
000496d023
2 changed files with 5 additions and 1 deletions
  1. +2
    -0
      web/src/Conf.js
  2. +3
    -1
      web/src/FileTree.js

+ 2
- 0
web/src/Conf.js View File

@@ -12,3 +12,5 @@ export const DefaultWordsetName = "word";
export const ForceLanguage = "";
export const DefaultLanguage = "en";
export const AppUrl = ""

+ 3
- 1
web/src/FileTree.js View File

@@ -547,8 +547,10 @@ class FileTree extends React.Component {
const url = `${store.domain}/${path}`;

if (this.isDataFile(filename)) {
const appName = "ecg_1";
return (
<DataChart filename={filename} url={url} height={this.getEditorHeightCss()} />
<iframe src={`${Conf.AppUrl}${appName}`} width={"100%"} height={"600px"} />
// <DataChart filename={filename} url={url} height={this.getEditorHeightCss()} />
)
} else if (this.isExtForDocViewer(ext)) {
// https://github.com/Alcumus/react-doc-viewer


Loading…
Cancel
Save