-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
128 lines (123 loc) · 6.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title id="head-title">eftp</title>
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag -->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<!-- load css -->
<link rel="stylesheet" type="text/css" href="static/css/demo.css" />
<link rel="stylesheet" type="text/css" href="static/css/light.css" id="theme-css" />
<!-- <link rel="stylesheet" type="text/css" href="static/css/dark.css" id="theme-css" /> -->
<link rel="stylesheet" type="text/css" href="static/css/site.css" />
<link rel="stylesheet" type="text/css" href="static/css/index.css" />
<!-- load js -->
<!-- <script src="static/js/jquery-3.5.0.min.js"></script> -->
<!-- <script src="static/js/vue.min.js"></script> -->
</head>
<body id="drag_area">
<!-- <h1>Demo</h1> -->
<div class="sidebar-l">
<div id="tab-bar" class="tab-bar"></div>
<div class="tab-bar">
<div onclick="to_login()" class="txt-center">+</div>
<div onclick="show_space()" class="bottom txt-center">剩余空间</div>
</div>
</div>
<div class="container" id="container">
<div id="title-bar">
<div id="path" class="path" ondblclick="maxWindow()"></div>
</div>
<div class="tool-bar">
<button onclick="ls_back()"><label class="label-icon">←</label><label>返回</label></button>
<button onclick="ls_up()"><label class="label-icon">↑</label><label>向上</label></button>
<button onclick="ls_home()"><label class="label-icon">~</label><label>主目录</label></button>
<button onclick="refresh()"><label class="label-icon">↺</label><label>刷新</label></button>
<button onclick="showfavouritesMenu()"><label class="label-icon">☆</label><label>收藏</label></button>
<button onclick="showHiddenFile()" id="btn-show-hidden"><label class="label-icon">•</label><label>隐藏</label></button>
<button onclick="show_folder_dialog(true)"><label class="label-icon">+/</label><label>新建文件夹</label></button>
<button onclick="show_backstageMenu()" id="btn_bs"><label class="label-icon">⇅</label><label>后台任务</label></button>
<!-- <button onclick="upload_folder()"><label class="label-icon">⇧/</label><label>上传目录</label></button> -->
<button onclick="upload()"><label class="label-icon">⇧</label><label>上传文件</label></button>
<!-- <button onclick="show('video_dialog',true)"><label class="label-icon">↺</label><label>视频</label></button> -->
<div style="float: right;margin-right: 5px;">
<button onclick="clean_infos()"><label class="label-icon">×</label><label>清屏</label></button>
<button onclick="showSidebar()" id="siderbar-hide-btn" style="color: var(--blue-2);"><label class="label-icon">≡</label><label>日志</label></button>
</div>
<!-- <button onclick="ctrl_c()">X</button> -->
</div>
<div class="main" oncontextmenu="showDirMenu()" onclick="hideMenu()">
<table>
<tbody id="file_list">
</tbody>
</table>
</div>
<!-- <div class="siderbar-r-btn show-btn" onclick="showSidebar()" id="siderbar-hide-btn"> </div> -->
<div class="sidebar-r" id="sidebar" style="display: block;">
<div id="infos">
</div>
</div>
</div>
<div class="foot-bar">
</div>
<div class="dialog" id="new_folder_dialog">
<p class="dialog-title">新建文件夹</p>
<input type="text" id="dir_name" onkeydown="keydown_mkdir()">
<button onclick="mkdir()" class="btn-half-danger">确定</button>
<button onclick="show_folder_dialog(false)" class="btn-half">取消</button>
</div>
<div class="dialog" id="rename_dialog">
<p class="dialog-title">重命名</p>
<input type="text" id="file_rename" onkeydown="rename_file()">
<button onclick="rename_file()" class="btn-half-danger">确定</button>
<button onclick="show_folder_dialog(false)" class="btn-half">取消</button>
</div>
<div class="dialog" id="space_dialog">
<p class="dialog-title">剩余空间</p>
<div style="height:280px;display:block;overflow-y:auto;overflow-x:hidden;margin-bottom: 10px;">
<table>
<tbody id="left_space"></tbody>
</table>
</div>
<button onclick="show('space_dialog',false)" class="btn btn-danger">确定</button>
</div>
<div class="drag_box" id="drag_box">
<label onclick="showDargBox(false)">
<img src="static/img/svg/icon-close.svg">
</label>
<h1>请把文件拖放于此</h1>
<img class="bg-img" src="static/img/svg/icon-collect.svg">
</div>
<div class="menu" id="favouritesMenu" style="display: none;">
<label class="triangle-up-box">
<label class="triangle-up"></label>
</label>
<div id="favourites" class="menu-body">
</div>
</div>
<div class="menu" id="backstageMenu" style="display: none;">
<label class="triangle-up-box">
<label class="triangle-up"></label>
</label>
<div id="bs_list" class="menu-body">
</div>
</div>
<div class="dialog" id="video_dialog" style="overflow: hidden;">
<p class="dialog-title">
播放器
<span class="right" onclick="show('video_dialog',false)"><img src="static/img/svg/icon-close.svg"></span>
</p>
<video style="width: 100%;" controls id="video"></video>
</div>
<!-- js -->
<script src="static/js/demo.js"></script>
<script src="static/js/common.js"></script>
<script src="static/js/sha1.js"></script>
<script src="static/js/dialog.js"></script>
<script src="static/js/buf.js"></script>
<script src="static/js/conf.js"></script>
<script src="static/js/index.js"></script>
<script src="static/js/menu.js"></script>
<script src="static/js/drag.js"></script>
</body>
</html>