|
|
|
@ -1,131 +1,96 @@
|
|
|
|
|
{extend name="header_public" /}
|
|
|
|
|
{block name="title"}{$fileData.orign_name} - {$options.siteName}{/block}
|
|
|
|
|
{block name="content"}
|
|
|
|
|
<link rel="stylesheet" href="/static/css/share.css" />
|
|
|
|
|
<link rel="stylesheet" href="/static/css/photoswipe.css">
|
|
|
|
|
<link rel="stylesheet" href="/static/css/default-skin/default-skin.css">
|
|
|
|
|
<script src="/static/js/jquery.color.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body data-ma-header="teal">
|
|
|
|
|
<div class="modal fade" id="previewModal" role="dialog">
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" onclick="audioPause()" data-dismiss="modal">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
<span class="sr-only ng-binding">关闭</span>
|
|
|
|
|
</button>
|
|
|
|
|
<h4 class="modal-title">视频预览</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="text-center previewContent">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
|
<!-- Background of PhotoSwipe.
|
|
|
|
|
It's a separate element, as animating opacity is faster than rgba(). -->
|
|
|
|
|
<div class="pswp__bg"></div>
|
|
|
|
|
<!-- Slides wrapper with overflow:hidden. -->
|
|
|
|
|
<div class="pswp__scroll-wrap">
|
|
|
|
|
<!-- Container that holds slides. PhotoSwipe keeps only 3 slides in DOM to save memory. -->
|
|
|
|
|
<div class="pswp__container">
|
|
|
|
|
<!-- don't modify these 3 pswp__item elements, data is added later on -->
|
|
|
|
|
<div class="pswp__item"></div>
|
|
|
|
|
<div class="pswp__item"></div>
|
|
|
|
|
<div class="pswp__item"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
|
|
|
|
|
<div class="pswp__ui pswp__ui--hidden">
|
|
|
|
|
<div class="pswp__top-bar">
|
|
|
|
|
<!-- Controls are self-explanatory. Order can be changed. -->
|
|
|
|
|
<div class="pswp__counter"></div>
|
|
|
|
|
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
|
|
|
|
|
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
|
|
|
|
|
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
|
|
|
|
|
<!-- Preloader demo https://codepen.io/dimsemenov/pen/yyBWoR -->
|
|
|
|
|
<!-- element will get class pswp__preloader--active when preloader is running -->
|
|
|
|
|
<div class="pswp__preloader">
|
|
|
|
|
<div class="pswp__preloader__icn">
|
|
|
|
|
<div class="pswp__preloader__cut">
|
|
|
|
|
<div class="pswp__preloader__donut"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
|
|
|
|
|
<div class="pswp__share-tooltip"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
|
|
|
|
|
</button>
|
|
|
|
|
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
|
|
|
|
|
</button>
|
|
|
|
|
<div class="pswp__caption">
|
|
|
|
|
<div class="pswp__caption__center"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<nav class="navbar navbar-inverse" >
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div class="container" >
|
|
|
|
|
{include file="navbar_public" /}
|
|
|
|
|
<div class="header-panel shadow-z-2">
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container main" >
|
|
|
|
|
<div class="col-md-3"></div>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="jumbotron" >
|
|
|
|
|
<div class="card_top">
|
|
|
|
|
<div class="row top-color">
|
|
|
|
|
<div class="card-top-row">
|
|
|
|
|
<div class="file-sign col-xs-2">
|
|
|
|
|
<i class="fa fa-file-image-o" aria-hidden="true"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="file_title col-xs-10">
|
|
|
|
|
<div class="file_title_inside str_wrap">
|
|
|
|
|
{$fileData.orign_name|htmlspecialchars=ENT_NOQUOTES}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="file_info"><span id="size"></span> <span><i class="fa fa-cloud-download" aria-hidden="true"></i> <span id="down_num"></span></span> <span><i class="fa fa-eye" aria-hidden="true"></i> <span id="view_num"></span></span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-middle">
|
|
|
|
|
<button class="btn btn-info btn-fab" id="previewButton"><i class="material-icons fa fa-eye"></i><div class="ripple-container"></div></button>
|
|
|
|
|
<button class="btn btn-primary btn-fab" id="download"><i class="material-icons fa fa-download"></i><div class="ripple-container"></div></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card_botom">
|
|
|
|
|
<div class="row bottom-width">
|
|
|
|
|
<div class="avatar ">
|
|
|
|
|
<img src="/Member/Avatar/{$userInfo.id}/s" class="img-circle animated rotateIn">
|
|
|
|
|
<div class="nick">
|
|
|
|
|
<span class="nickname"><a class="notWave" href="/Profile/{$userInfo.id}">{$userInfo.user_nick}</a></span>
|
|
|
|
|
<br>
|
|
|
|
|
<span class="share_time">分享于<span id="share_time"></span></span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div></div>
|
|
|
|
|
<div class="col-md-3"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
<script src="/static/js/jquery.liMarquee.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh-cn">
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
<!--
|
|
|
|
|
manifest.json provides metadata used when your web app is added to the
|
|
|
|
|
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
|
|
|
-->
|
|
|
|
|
<link rel="manifest" href="/manifest.json">
|
|
|
|
|
<!--
|
|
|
|
|
Notice the use of %PUBLIC_URL% in the tags above.
|
|
|
|
|
It will be replaced with the URL of the `public` folder during the build.
|
|
|
|
|
Only files inside the `public` folder can be referenced from the HTML.
|
|
|
|
|
|
|
|
|
|
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
|
|
|
work correctly both with client-side routing and a non-root public URL.
|
|
|
|
|
Learn how to configure a non-root public URL by running `npm run build`.
|
|
|
|
|
-->
|
|
|
|
|
<title>{$fileData.orign_name} - {$options.siteName}</title>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
colorTheme = {
|
|
|
|
|
"palette": {
|
|
|
|
|
"common": {
|
|
|
|
|
"black": "#000",
|
|
|
|
|
"white": "#fff"
|
|
|
|
|
},
|
|
|
|
|
"background": {
|
|
|
|
|
"paper": "#fff",
|
|
|
|
|
"default": "#fafafa"
|
|
|
|
|
},
|
|
|
|
|
"primary": {
|
|
|
|
|
"light": "#7986cb",
|
|
|
|
|
"main": "#3f51b5",
|
|
|
|
|
"dark": "#303f9f",
|
|
|
|
|
"contrastText": "#fff"
|
|
|
|
|
},
|
|
|
|
|
"secondary": {
|
|
|
|
|
"light": "#ff4081",
|
|
|
|
|
"main": "#f50057",
|
|
|
|
|
"dark": "#c51162",
|
|
|
|
|
"contrastText": "#fff"
|
|
|
|
|
},
|
|
|
|
|
"error": {
|
|
|
|
|
"light": "#e57373",
|
|
|
|
|
"main": "#f44336",
|
|
|
|
|
"dark": "#d32f2f",
|
|
|
|
|
"contrastText": "#fff"
|
|
|
|
|
},
|
|
|
|
|
"text": {
|
|
|
|
|
"primary": "rgba(0, 0, 0, 0.87)",
|
|
|
|
|
"secondary": "rgba(0, 0, 0, 0.54)",
|
|
|
|
|
"disabled": "rgba(0, 0, 0, 0.38)",
|
|
|
|
|
"hint": "rgba(0, 0, 0, 0.38)"
|
|
|
|
|
},
|
|
|
|
|
"explorer": {
|
|
|
|
|
"filename": "#474849",
|
|
|
|
|
"icon": "#8f8f8f",
|
|
|
|
|
"bgSelected": "#D5DAF0",
|
|
|
|
|
"emptyIcon": "#e8e8e8",
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
isHomePage = false;
|
|
|
|
|
isSharePage = true;
|
|
|
|
|
pageId="fileShare";
|
|
|
|
|
apiURL = {
|
|
|
|
|
imgThumb: "/Share/Thumb/{$shareData.share_key}",
|
|
|
|
|
preview: "/Share/Preview/{$shareData.share_key}",
|
|
|
|
|
download: "/Share/Download/{$shareData.share_key}",
|
|
|
|
|
docPreiview: '/Share/DocPreview/{$shareData.share_key}',
|
|
|
|
|
listFile:'/Share/ListFile/{$shareData.share_key}'
|
|
|
|
|
};
|
|
|
|
|
userInfo = {
|
|
|
|
|
uid: {$userData.uid},
|
|
|
|
|
nick: "{$userData.userNick}",
|
|
|
|
|
email: "{$userData.userMail}",
|
|
|
|
|
group: "{$userData.groupData.group_name}",
|
|
|
|
|
groupId: {$userData.groupData.id},
|
|
|
|
|
groupColor: "{$userData.groupData.color}",
|
|
|
|
|
};
|
|
|
|
|
siteInfo = {
|
|
|
|
|
mainTitle: "{$fileData.orign_name}",
|
|
|
|
|
};
|
|
|
|
|
path = "{$path}";
|
|
|
|
|
uploadConfig = {
|
|
|
|
|
allowSource: false,
|
|
|
|
|
allowShare: false,
|
|
|
|
|
allowRemoteDownload: "0",
|
|
|
|
|
allowTorrentDownload: "0",
|
|
|
|
|
};
|
|
|
|
|
shareInfo={
|
|
|
|
|
fileSize : "{$fileData.size}",
|
|
|
|
|
shareDate : "{$shareData.share_time}",
|
|
|
|
@ -142,7 +107,33 @@
|
|
|
|
|
allowPreview:{$allowPreview},
|
|
|
|
|
{/eq}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<script src="/static/js/share_single.js"> </script>
|
|
|
|
|
{$options.js_code}
|
|
|
|
|
{/block}
|
|
|
|
|
mediaType = {},
|
|
|
|
|
isMobile = window.innerWidth < 600;
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<noscript>
|
|
|
|
|
You need to enable JavaScript to run this app.
|
|
|
|
|
</noscript>
|
|
|
|
|
<div id="root"></div>
|
|
|
|
|
<!--
|
|
|
|
|
This HTML file is a template.
|
|
|
|
|
If you open it directly in the browser, you will see an empty page.
|
|
|
|
|
|
|
|
|
|
You can add webfonts, meta tags, or analytics to this file.
|
|
|
|
|
The build step will place the bundled scripts into the <body> tag.
|
|
|
|
|
|
|
|
|
|
To begin the development, run `npm start` or `yarn start`.
|
|
|
|
|
To create a production bundle, use `npm run build` or `yarn build`.
|
|
|
|
|
-->
|
|
|
|
|
</body>
|
|
|
|
|
<script src="http://192.168.123.19:3000/static/js/runtime~fileShare.bundle.js"></script>
|
|
|
|
|
<script src="http://192.168.123.19:3000/static/js/0.chunk.js"></script>
|
|
|
|
|
<script src="http://192.168.123.19:3000/static/js/3.chunk.js"></script>
|
|
|
|
|
<script src="http://192.168.123.19:3000/static/js/4.chunk.js"></script>
|
|
|
|
|
<script src="http://192.168.123.19:3000/static/js/1.chunk.js"></script>
|
|
|
|
|
<script src="http://192.168.123.19:3000/static/js/fileShare.chunk.js"></script>
|
|
|
|
|
|
|
|
|
|
</html>
|