mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
improve (loading): on demand loading of another dependency: exif
This commit is contained in:
parent
ad1f2358e7
commit
b29231d42b
1 changed files with 12 additions and 2 deletions
|
|
@ -3,13 +3,23 @@ import path from 'path';
|
|||
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
|
||||
|
||||
import { MenuBar } from './menubar';
|
||||
import { Icon, NgIf, Loader, EventEmitter, EventReceiver } from '../../components/';
|
||||
import { Bundle, Icon, NgIf, Loader, EventEmitter, EventReceiver } from '../../components/';
|
||||
import { alert } from '../../helpers/';
|
||||
import { Pager } from './pager';
|
||||
import { SmallExif, LargeExif } from './image_exif';
|
||||
import './imageviewer.scss';
|
||||
import './pager.scss';
|
||||
|
||||
const SmallExif = (props) => (
|
||||
<Bundle loader={import(/* webpackChunkName: "exif" */"./image_exif")} symbol="SmallExif">
|
||||
{(Comp) => <Comp {...props}/>}
|
||||
</Bundle>
|
||||
);
|
||||
const LargeExif = (props) => (
|
||||
<Bundle loader={import(/* webpackChunkName: "exif" */"./image_exif")} symbol="LargeExif">
|
||||
{(Comp) => <Comp {...props}/>}
|
||||
</Bundle>
|
||||
);
|
||||
|
||||
|
||||
@EventReceiver
|
||||
@EventEmitter
|
||||
|
|
|
|||
Loading…
Reference in a new issue