|
|
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
import React from 'react';
|
|
|
import ReactDOM from 'react-dom';
|
|
|
import Gallery from 'react-grid-gallery';
|
|
|
+import LinearProgress from '@material-ui/core/LinearProgress';
|
|
|
|
|
|
class imageList extends React.Component {
|
|
|
constructor(props) {
|
|
|
@@ -18,7 +19,8 @@ class imageList extends React.Component {
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
- fetch("/system/ajgi/interface?script=/Photo/backend/listFile.js", {
|
|
|
+ //fetch("/system/ajgi/interface?script=/Photo/backend/listFile.js", {
|
|
|
+ fetch("https://google.com", {
|
|
|
method: 'post',
|
|
|
headers: {
|
|
|
'Accept': 'application/json',
|
|
|
@@ -52,11 +54,15 @@ class imageList extends React.Component {
|
|
|
|
|
|
render() {
|
|
|
const { isLoaded, items } = this.state;
|
|
|
- return ( < Gallery images = { this.state.images }
|
|
|
- enableLightbox = { true }
|
|
|
- enableImageSelection = { false }
|
|
|
- />
|
|
|
- );
|
|
|
+ if (!isLoaded) {
|
|
|
+ return <div><LinearProgress /></div>;
|
|
|
+ } else {
|
|
|
+ return ( < Gallery images = { this.state.images }
|
|
|
+ enableLightbox = { true }
|
|
|
+ enableImageSelection = { false }
|
|
|
+ />
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|