Skip to content

Commit

Permalink
优化文件分享页面UI
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Oct 20, 2020
1 parent 5513be9 commit 3a2973d
Show file tree
Hide file tree
Showing 4 changed files with 1,269 additions and 190 deletions.
20 changes: 13 additions & 7 deletions BTPanel/static/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -8991,11 +8991,10 @@ background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIiIGhlaWdodD0iODIiIHh
line-height: 50px;
}

/* end */

.box-group .bt_checkbox_groups {
vertical-align: sub;
}
.bt_checkbox_groups {
/* 商业证书 */
.dynamic_head_box .bt_checkbox_groups {
display: inline-block;
height: 16px;
width: 16px;
Expand All @@ -9006,9 +9005,11 @@ background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIiIGhlaWdodD0iODIiIHh
text-align: center;
line-height: 20px;
margin: 0;
transition: all 200ms;
vertical-align: top;
}
.bt_checkbox_groups.active {

.dynamic_head_box .bt_checkbox_groups.active {
border: none;
position: relative;
top: 1px;
Expand All @@ -9018,10 +9019,11 @@ background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIiIGhlaWdodD0iODIiIHh
font-weight: 400;
line-height: 1;
-webkit-font-smoothing: antialiased;
background: #20a53a;
background: #5FB878;
color: #fff;
}
.bt_checkbox_groups.active:after {

.dynamic_head_box .bt_checkbox_groups.active:after {
content: "\e013";
font-size: 12px;
transform: scale(.85);
Expand All @@ -9030,4 +9032,8 @@ background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIiIGhlaWdodD0iODIiIHh
top: 2px;
}

.dynamic_head_box .box-group .bt_checkbox_groups {
vertical-align: sub;
}

/* end */
1,396 changes: 1,233 additions & 163 deletions BTPanel/templates/default/down.html

Large diffs are not rendered by default.

41 changes: 22 additions & 19 deletions class/panelSite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2727,26 +2727,29 @@ def SetDirUserINI(self,get):

def _set_ols_open_basedir(self,get):
# 设置ols
sitename = public.M('sites').where("id=?", (get.id,)).getField('name')
# sitename = path.split('/')[-1]
f = "/www/server/panel/vhost/openlitespeed/detail/{}.conf".format(sitename)
c = public.readFile(f)
if not c: return False
if f:
rep = '\nphp_admin_value\s*open_basedir.*'
result = re.search(rep, c)
s = 'on'
if not result:
s = 'off'
rep = '\n#php_admin_value\s*open_basedir.*'
try:
sitename = public.M('sites').where("id=?", (get.id,)).getField('name')
# sitename = path.split('/')[-1]
f = "/www/server/panel/vhost/openlitespeed/detail/{}.conf".format(sitename)
c = public.readFile(f)
if not c: return False
if f:
rep = '\nphp_admin_value\s*open_basedir.*'
result = re.search(rep, c)
result = result.group()
if s == 'on':
c = re.sub(rep, '\n#' + result[1:], c)
else:
result = result.replace('#', '')
c = re.sub(rep, result, c)
public.writeFile(f, c)
s = 'on'
if not result:
s = 'off'
rep = '\n#php_admin_value\s*open_basedir.*'
result = re.search(rep, c)
result = result.group()
if s == 'on':
c = re.sub(rep, '\n#' + result[1:], c)
else:
result = result.replace('#', '')
c = re.sub(rep, result, c)
public.writeFile(f, c)
except:
pass

# 读配置
def __read_config(self, path):
Expand Down
2 changes: 1 addition & 1 deletion task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# +-------------------------------------------------------------------
# | Copyright (c) 2015-2016 宝塔软件(http://bt.cn) All rights reserved.
# +-------------------------------------------------------------------
# | Author: 黄文良 <[email protected]>
# | Author: hwliang <[email protected]>
# +-------------------------------------------------------------------

#------------------------------
Expand Down

0 comments on commit 3a2973d

Please sign in to comment.