mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-22 00:10:28 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
4cd47a5c77
@ -342,19 +342,15 @@ class Base
|
|||||||
{
|
{
|
||||||
if (strtolower($charset) == 'utf-8') {
|
if (strtolower($charset) == 'utf-8') {
|
||||||
if (Base::getStrlen($string) <= $length) return $string;
|
if (Base::getStrlen($string) <= $length) return $string;
|
||||||
$strcut = str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $string);
|
$strcut = Base::utf8Substr($string, $length, $start);
|
||||||
$strcut = Base::utf8Substr($strcut, $length, $start);
|
|
||||||
$strcut = str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $strcut);
|
|
||||||
return $strcut . $dot;
|
return $strcut . $dot;
|
||||||
} else {
|
} else {
|
||||||
$length = $length * 2;
|
$length = $length * 2;
|
||||||
if (strlen($string) <= $length) return $string;
|
if (strlen($string) <= $length) return $string;
|
||||||
$string = str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $string);
|
|
||||||
$strcut = '';
|
$strcut = '';
|
||||||
for ($i = 0; $i < $length; $i++) {
|
for ($i = 0; $i < $length; $i++) {
|
||||||
$strcut .= ord($string[$i]) > 127 ? $string[$i] . $string[++$i] : $string[$i];
|
$strcut .= ord($string[$i]) > 127 ? $string[$i] . $string[++$i] : $string[$i];
|
||||||
}
|
}
|
||||||
$strcut = str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $strcut);
|
|
||||||
}
|
}
|
||||||
return $strcut . $dot;
|
return $strcut . $dot;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div class="teditor-wrapper">
|
<div class="teditor-wrapper">
|
||||||
<div class="teditor-box" :class="[!inline && spinShow ? 'teditor-loadstyle' : 'teditor-loadedstyle']">
|
<div class="teditor-box" :class="[!inline && spinShow ? 'teditor-loadstyle' : 'teditor-loadedstyle']">
|
||||||
<template v-if="inline">
|
<template v-if="inline">
|
||||||
<div ref="myTextarea" :id="id" v-html="content"></div>
|
<div ref="myTextarea" :id="id" v-html="spinShow ? '' : content"></div>
|
||||||
<Icon v-if="spinShow" type="ios-loading" :size="18" class="icon-loading icon-inline"></Icon>
|
<Icon v-if="spinShow" type="ios-loading" :size="18" class="icon-loading icon-inline"></Icon>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|||||||
4
resources/assets/js/functions/web.js
vendored
4
resources/assets/js/functions/web.js
vendored
@ -157,8 +157,10 @@
|
|||||||
let time = Math.round(this.Date(date).getTime() / 1000) - nowTime;
|
let time = Math.round(this.Date(date).getTime() / 1000) - nowTime;
|
||||||
if (time < 86400 * 7 && time > 0 ) {
|
if (time < 86400 * 7 && time > 0 ) {
|
||||||
return this.formatSeconds(time);
|
return this.formatSeconds(time);
|
||||||
} else if (time <= 0) {
|
} else if (time < 0) {
|
||||||
return '-' + this.formatSeconds(time * -1);
|
return '-' + this.formatSeconds(time * -1);
|
||||||
|
} else if (time == 0) {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return this.formatTime(date)
|
return this.formatTime(date)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
<i class="taskfont"></i>
|
<i class="taskfont"></i>
|
||||||
</div>
|
</div>
|
||||||
<Dropdown-menu slot="list" class="login-setting-menu">
|
<Dropdown-menu slot="list" class="login-setting-menu">
|
||||||
<Dropdown placement="right-start" @on-click="setTheme">
|
<Dropdown placement="right" @on-click="setTheme">
|
||||||
<DropdownItem>
|
<DropdownItem>
|
||||||
<div class="login-setting-item">
|
<div class="login-setting-item">
|
||||||
{{$L('主题皮肤')}}
|
{{$L('主题皮肤')}}
|
||||||
@ -48,7 +48,7 @@
|
|||||||
<Dropdown-item v-for="(item, key) in themeList" :key="key" :name="item.value" :selected="themeMode === item.value">{{$L(item.name)}}</Dropdown-item>
|
<Dropdown-item v-for="(item, key) in themeList" :key="key" :name="item.value" :selected="themeMode === item.value">{{$L(item.name)}}</Dropdown-item>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
<Dropdown placement="right-start" @on-click="setLanguage">
|
<Dropdown placement="right" @on-click="setLanguage">
|
||||||
<DropdownItem divided>
|
<DropdownItem divided>
|
||||||
<div class="login-setting-item">
|
<div class="login-setting-item">
|
||||||
{{currentLanguage}}
|
{{currentLanguage}}
|
||||||
|
|||||||
@ -77,6 +77,13 @@
|
|||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
pre {
|
||||||
|
padding: 14px;
|
||||||
|
margin: 7px 0;
|
||||||
|
overflow: auto;
|
||||||
|
background: #f5f2f0;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
&[data-mce-placeholder]:not(.mce-visualblocks)::before {
|
&[data-mce-placeholder]:not(.mce-visualblocks)::before {
|
||||||
color: #bbbbbb;
|
color: #bbbbbb;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -163,6 +163,13 @@
|
|||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
pre {
|
||||||
|
padding: 14px;
|
||||||
|
margin: 7px 0;
|
||||||
|
overflow: auto;
|
||||||
|
background: #f5f2f0;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
&[data-mce-placeholder]:not(.mce-visualblocks)::before {
|
&[data-mce-placeholder]:not(.mce-visualblocks)::before {
|
||||||
color: #bbbbbb;
|
color: #bbbbbb;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,8 +51,6 @@
|
|||||||
&:last-child {
|
&:last-child {
|
||||||
background-color: #98de6e;
|
background-color: #98de6e;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
cursor: default;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
}
|
||||||
.block-title {
|
.block-title {
|
||||||
color: rgba(255, 255, 255, 0.6);
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user