mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
no message
This commit is contained in:
parent
3a337940d1
commit
cb4b9a361f
@ -205,7 +205,7 @@ export default {
|
||||
handler() {
|
||||
this.$store.dispatch("websocketConnection");
|
||||
//
|
||||
if (this.$isEEUiApp) {
|
||||
if (this.$isEEUIApp) {
|
||||
this.umengAliasTimer && clearTimeout(this.umengAliasTimer)
|
||||
if (this.userId > 0) {
|
||||
// 给 APP 发送初始化消息
|
||||
@ -373,7 +373,7 @@ export default {
|
||||
},
|
||||
|
||||
onRouterViewMounted() {
|
||||
document.documentElement.setAttribute("data-platform", $A.isElectron ? "desktop" : $A.isEEUiApp ? "app" : "web")
|
||||
document.documentElement.setAttribute("data-platform", $A.isElectron ? "desktop" : $A.isEEUIApp ? "app" : "web")
|
||||
},
|
||||
|
||||
/**
|
||||
@ -596,7 +596,7 @@ export default {
|
||||
},
|
||||
|
||||
eeuiEvents() {
|
||||
if (!this.$isEEUiApp) {
|
||||
if (!this.$isEEUIApp) {
|
||||
return;
|
||||
}
|
||||
// APP进入前台
|
||||
|
||||
14
resources/assets/js/app.js
vendored
14
resources/assets/js/app.js
vendored
@ -1,6 +1,6 @@
|
||||
const isElectron = !!(window && window.process && window.process.type && window.electron);
|
||||
const isEEUiApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
||||
const isSoftware = isElectron || isEEUiApp;
|
||||
const isEEUIApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
||||
const isSoftware = isElectron || isEEUIApp;
|
||||
|
||||
import {languageName, switchLanguage as $L} from "./language";
|
||||
|
||||
@ -184,7 +184,7 @@ Vue.prototype.copyText = function (obj) {
|
||||
error: "复制失败"
|
||||
}
|
||||
}
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
$A.eeuiAppCopyText(obj.text)
|
||||
obj.success && $A.messageSuccess(obj.success)
|
||||
return
|
||||
@ -203,7 +203,7 @@ $A.Electron = null;
|
||||
$A.Platform = "web";
|
||||
$A.isMainElectron = false;
|
||||
$A.isSubElectron = false;
|
||||
$A.isEEUiApp = isEEUiApp;
|
||||
$A.isEEUIApp = isEEUIApp;
|
||||
$A.isElectron = isElectron;
|
||||
$A.isSoftware = isSoftware;
|
||||
$A.openLog = false;
|
||||
@ -212,7 +212,7 @@ if (isElectron) {
|
||||
$A.Platform = /macintosh|mac os x/i.test(navigator.userAgent) ? "mac" : "win";
|
||||
$A.isMainElectron = /\s+MainTaskWindow\//.test(window.navigator.userAgent);
|
||||
$A.isSubElectron = /\s+SubTaskWindow\//.test(window.navigator.userAgent);
|
||||
} else if (isEEUiApp) {
|
||||
} else if (isEEUIApp) {
|
||||
$A.Platform = /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) ? "ios" : "android";
|
||||
}
|
||||
|
||||
@ -283,7 +283,7 @@ Vue.prototype.$Electron = $A.Electron;
|
||||
Vue.prototype.$Platform = $A.Platform;
|
||||
Vue.prototype.$isMainElectron = $A.isMainElectron;
|
||||
Vue.prototype.$isSubElectron = $A.isSubElectron;
|
||||
Vue.prototype.$isEEUiApp = $A.isEEUiApp;
|
||||
Vue.prototype.$isEEUIApp = $A.isEEUIApp;
|
||||
Vue.prototype.$isSoftware = $A.isSoftware;
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
@ -317,7 +317,7 @@ const $init = async () => {
|
||||
}
|
||||
|
||||
const $preload = async () => {
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
const requireTime = new Date().getTime();
|
||||
while (typeof requireModuleJs !== "function") {
|
||||
await new Promise(resolve => setTimeout(resolve, 200));
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
:placement="placement"
|
||||
:effect="tooltipTheme"
|
||||
:delay="delay"
|
||||
:disabled="$isEEUiApp || windowTouch || !showTooltip || disabled"
|
||||
:disabled="$isEEUIApp || windowTouch || !showTooltip || disabled"
|
||||
:max-width="tooltipMaxWidth"
|
||||
transfer>
|
||||
<span ref="content" @mouseenter="handleTooltipIn" class="common-auto-tip" @click="onClick">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<ETooltip v-if="visible" :disabled="$isEEUiApp || windowTouch || content == ''" :content="content">
|
||||
<ETooltip v-if="visible" :disabled="$isEEUIApp || windowTouch || content == ''" :content="content">
|
||||
<svg v-if="type === 'svg'" viewBox="25 25 50 50" class="common-loading">
|
||||
<circle cx="50" cy="50" r="20" fill="none" stroke-width="5" stroke-miterlimit="10" class="common-path"></circle>
|
||||
</svg>
|
||||
|
||||
@ -124,7 +124,7 @@ export default {
|
||||
|
||||
systemInfo: window.systemInfo,
|
||||
|
||||
isEEUiApp: $A.isEEUiApp,
|
||||
isEEUIApp: $A.isEEUIApp,
|
||||
isElectron: $A.isElectron,
|
||||
isMainElectron: $A.isMainElectron,
|
||||
isSubElectron: $A.isSubElectron,
|
||||
|
||||
@ -175,7 +175,7 @@ export default {
|
||||
},
|
||||
|
||||
appAndroidEvents() {
|
||||
if (this.$isEEUiApp && $A.isAndroid()) {
|
||||
if (this.$isEEUIApp && $A.isAndroid()) {
|
||||
$A.eeuiAppSetPageBackPressed({
|
||||
pageName: 'firstPage',
|
||||
}, _ => {
|
||||
|
||||
@ -32,7 +32,7 @@ export default {
|
||||
},
|
||||
previewImageList(l) {
|
||||
if (l.length > 0) {
|
||||
if ($A.isEEUiApp || $A.isElectron) {
|
||||
if ($A.isEEUIApp || $A.isElectron) {
|
||||
let position = Math.min(Math.max(this.$store.state.previewImageIndex, 0), this.$store.state.previewImageList.length - 1)
|
||||
let paths = l.map(item => {
|
||||
if ($A.isJson(item)) {
|
||||
@ -74,7 +74,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
videoPreview(path) {
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
$A.eeuiAppSendMessage({
|
||||
language: $A.eeuiAppConvertLanguage(),
|
||||
action: 'videoPreview',
|
||||
@ -89,7 +89,7 @@ export default {
|
||||
}
|
||||
},
|
||||
imagePreview(index, paths) {
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
$A.eeuiAppSendMessage({
|
||||
language: $A.eeuiAppConvertLanguage(),
|
||||
action: 'picturePreview',
|
||||
|
||||
@ -18,7 +18,7 @@ const convertLocalResourcePath = (() => {
|
||||
if (initialized) return
|
||||
|
||||
// 设置应用前缀URL
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
appPreUrl = $A.eeuiAppRewriteUrl('../public/')
|
||||
if ($A.isAndroid()) {
|
||||
appPreUrl = appPreUrl.replace(/^file:\/\/assets\//, 'file:///android_asset/')
|
||||
|
||||
@ -97,11 +97,11 @@ export default {
|
||||
},
|
||||
|
||||
showDown() {
|
||||
return !this.$isEEUiApp && !this.windowTouch && ['login', 'index', 'manage-dashboard'].includes(this.routeName)
|
||||
return !this.$isEEUIApp && !this.windowTouch && ['login', 'index', 'manage-dashboard'].includes(this.routeName)
|
||||
},
|
||||
|
||||
showPrivacy() {
|
||||
return $A.isDooServer() && this.$isEEUiApp && ['login'].includes(this.routeName)
|
||||
return $A.isDooServer() && this.$isEEUIApp && ['login'].includes(this.routeName)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
v-if="item.hidden !== true"
|
||||
placement="top"
|
||||
:key="key"
|
||||
:disabled="$isEEUiApp || windowTouch || !item.title"
|
||||
:disabled="$isEEUIApp || windowTouch || !item.title"
|
||||
:content="item.title"
|
||||
:enterable="false"
|
||||
:open-delay="600">
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<ETooltip
|
||||
:open-delay="openDelay"
|
||||
:disabled="$isEEUiApp || windowTouch || tooltipDisabled || isBot"
|
||||
:disabled="$isEEUIApp || windowTouch || tooltipDisabled || isBot"
|
||||
:placement="tooltipPlacement">
|
||||
<div v-if="user" slot="content" class="common-avatar-transfer">
|
||||
<slot/>
|
||||
|
||||
2
resources/assets/js/functions/common.js
vendored
2
resources/assets/js/functions/common.js
vendored
@ -724,7 +724,7 @@ const timezone = require("dayjs/plugin/timezone");
|
||||
* @returns {string}
|
||||
*/
|
||||
reloadUrl() {
|
||||
if ($A.isEEUiApp && $A.isAndroid()) {
|
||||
if ($A.isEEUIApp && $A.isAndroid()) {
|
||||
let url = window.location.href;
|
||||
let key = '_='
|
||||
let reg = new RegExp(key + '\\d+');
|
||||
|
||||
2
resources/assets/js/functions/web.js
vendored
2
resources/assets/js/functions/web.js
vendored
@ -1156,7 +1156,7 @@ import {convertLocalResourcePath} from "../components/Replace/utils";
|
||||
|
||||
autoDarkMode() {
|
||||
let darkScheme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
darkScheme = $A.eeuiAppGetThemeName() === "dark"
|
||||
}
|
||||
if (darkScheme) {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<div class="login-box">
|
||||
<div class="login-mode-switch">
|
||||
<div class="login-mode-switch-box">
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch" :content="$L(loginMode=='qrcode' ? '帐号登录' : '扫码登录')" placement="left">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch" :content="$L(loginMode=='qrcode' ? '帐号登录' : '扫码登录')" placement="left">
|
||||
<span class="login-mode-switch-icon" @click="switchLoginMode">
|
||||
<svg v-if="loginMode=='qrcode'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-icon="PcOutlined"><path d="M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z" fill="currentColor"></path></svg>
|
||||
<svg v-else viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-icon="QrOutlined"><path d="M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z" fill="currentColor"></path><path d="M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z" fill="currentColor"></path></svg>
|
||||
@ -205,7 +205,7 @@ export default {
|
||||
},
|
||||
|
||||
async mounted() {
|
||||
this.privacyShow = !!this.$isEEUiApp && (await $A.IDBString("cachePrivacyShow")) !== "no";
|
||||
this.privacyShow = !!this.$isEEUIApp && (await $A.IDBString("cachePrivacyShow")) !== "no";
|
||||
this.email = await $A.IDBString("cacheLoginEmail") || ''
|
||||
//
|
||||
if (this.$isSoftware) {
|
||||
|
||||
@ -1065,7 +1065,7 @@ export default {
|
||||
},
|
||||
|
||||
addDialogMsg(data) {
|
||||
if (!this.natificationReady && !this.$isEEUiApp) {
|
||||
if (!this.natificationReady && !this.$isEEUIApp) {
|
||||
return; // 通知未准备好不通知
|
||||
}
|
||||
if (this.windowActive && data.dialog_id === $A.last(this.dialogIns)?.dialog_id) {
|
||||
@ -1089,7 +1089,7 @@ export default {
|
||||
const notificationFuncB = (title, userimg) => {
|
||||
if (this.__notificationId === id) {
|
||||
this.__notificationId = null
|
||||
if (this.$isEEUiApp) {
|
||||
if (this.$isEEUIApp) {
|
||||
emitter.emit('openMobileNotification', {
|
||||
userid: userid,
|
||||
title,
|
||||
|
||||
@ -386,7 +386,7 @@ export default {
|
||||
{ value: "vote", label: "群投票", sort: 100 },
|
||||
{ value: "addProject", label: "创建项目", sort: 110 },
|
||||
{ value: "addTask", label: "添加任务", sort: 120 },
|
||||
{ value: "scan", label: "扫一扫", sort: 130, show: $A.isEEUiApp },
|
||||
{ value: "scan", label: "扫一扫", sort: 130, show: $A.isEEUIApp },
|
||||
{ value: "setting", label: "设置", sort: 140 },
|
||||
{ value: "appstore", label: "应用商店", sort: 999 },
|
||||
];
|
||||
|
||||
@ -56,24 +56,24 @@
|
||||
:visibleArrow="false"
|
||||
placement="top"
|
||||
popperClass="chat-input-emoji-popover">
|
||||
<ETooltip slot="reference" ref="emojiTip" :disabled="$isEEUiApp || windowTouch || showEmoji" placement="top" :enterable="false" :content="$L('表情')">
|
||||
<ETooltip slot="reference" ref="emojiTip" :disabled="$isEEUIApp || windowTouch || showEmoji" placement="top" :enterable="false" :content="$L('表情')">
|
||||
<i class="taskfont"></i>
|
||||
</ETooltip>
|
||||
<ChatEmoji v-if="showEmoji" @on-select="onSelectEmoji" :searchKey="emojiQuickKey"/>
|
||||
</EPopover>
|
||||
<ETooltip v-else ref="emojiTip" :disabled="$isEEUiApp || windowTouch || showEmoji" placement="top" :enterable="false" :content="$L('表情')">
|
||||
<ETooltip v-else ref="emojiTip" :disabled="$isEEUIApp || windowTouch || showEmoji" placement="top" :enterable="false" :content="$L('表情')">
|
||||
<i class="taskfont" @click="showEmoji=!showEmoji"></i>
|
||||
</ETooltip>
|
||||
</li>
|
||||
|
||||
<!-- @ # -->
|
||||
<li>
|
||||
<ETooltip placement="top" :disabled="$isEEUiApp || windowTouch" :enterable="false" :content="$L('选择成员')">
|
||||
<ETooltip placement="top" :disabled="$isEEUIApp || windowTouch" :enterable="false" :content="$L('选择成员')">
|
||||
<i class="taskfont" @click="onToolbar('user')"></i>
|
||||
</ETooltip>
|
||||
</li>
|
||||
<li>
|
||||
<ETooltip placement="top" :disabled="$isEEUiApp || windowTouch" :enterable="false" :content="$L('选择任务')">
|
||||
<ETooltip placement="top" :disabled="$isEEUIApp || windowTouch" :enterable="false" :content="$L('选择任务')">
|
||||
<i class="taskfont" @click="onToolbar('task')"></i>
|
||||
</ETooltip>
|
||||
</li>
|
||||
@ -86,7 +86,7 @@
|
||||
:visibleArrow="false"
|
||||
placement="top"
|
||||
popperClass="chat-input-more-popover">
|
||||
<ETooltip slot="reference" ref="moreTip" :disabled="$isEEUiApp || windowTouch || showMore" placement="top" :enterable="false" :content="$L('展开')">
|
||||
<ETooltip slot="reference" ref="moreTip" :disabled="$isEEUIApp || windowTouch || showMore" placement="top" :enterable="false" :content="$L('展开')">
|
||||
<i class="taskfont"></i>
|
||||
</ETooltip>
|
||||
<template v-if="!isAiBot">
|
||||
@ -150,7 +150,7 @@
|
||||
trigger="manual"
|
||||
placement="top"
|
||||
popperClass="chat-input-more-popover">
|
||||
<ETooltip slot="reference" ref="sendTip" placement="top" :disabled="$isEEUiApp || windowTouch || showMenu" :enterable="false" :content="$L(sendContent)">
|
||||
<ETooltip slot="reference" ref="sendTip" placement="top" :disabled="$isEEUIApp || windowTouch || showMenu" :enterable="false" :content="$L(sendContent)">
|
||||
<div v-if="loading">
|
||||
<div class="chat-load">
|
||||
<Loading/>
|
||||
@ -515,7 +515,7 @@ export default {
|
||||
}
|
||||
}, 1000)
|
||||
//
|
||||
if (this.$isEEUiApp) {
|
||||
if (this.$isEEUIApp) {
|
||||
window.__onPermissionRequest = (type, result) => {
|
||||
if (type === 'recordAudio' && result === false) {
|
||||
// Android 录音权限被拒绝了
|
||||
@ -563,7 +563,7 @@ export default {
|
||||
...mapGetters(['getDialogDraft', 'getDialogQuote']),
|
||||
|
||||
isEnterSend({cacheKeyboard}) {
|
||||
if (this.$isEEUiApp) {
|
||||
if (this.$isEEUIApp) {
|
||||
return cacheKeyboard.send_button_app === 'enter';
|
||||
} else {
|
||||
return cacheKeyboard.send_button_desktop === 'enter';
|
||||
@ -578,7 +578,7 @@ export default {
|
||||
},
|
||||
|
||||
canCall() {
|
||||
return this.dialogData.type === 'user' && !this.dialogData.bot && this.$isEEUiApp
|
||||
return this.dialogData.type === 'user' && !this.dialogData.bot && this.$isEEUIApp
|
||||
},
|
||||
|
||||
canAnon() {
|
||||
@ -937,7 +937,7 @@ export default {
|
||||
readOnly: false,
|
||||
placeholder: this.placeholder,
|
||||
modules: {
|
||||
toolbar: this.$isEEUiApp || this.windowTouch ? false : this.toolbar,
|
||||
toolbar: this.$isEEUIApp || this.windowTouch ? false : this.toolbar,
|
||||
keyboard: this.simpleMode ? {} : {
|
||||
bindings: {
|
||||
'short enter': {
|
||||
@ -1089,7 +1089,7 @@ export default {
|
||||
|
||||
// Set enterkeyhint
|
||||
this.$nextTick(_ => {
|
||||
if (this.$isEEUiApp && this.cacheKeyboard.send_button_app === 'enter') {
|
||||
if (this.$isEEUIApp && this.cacheKeyboard.send_button_app === 'enter') {
|
||||
this.quill.root.setAttribute('enterkeyhint', 'send')
|
||||
}
|
||||
})
|
||||
|
||||
@ -3856,7 +3856,7 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
},
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
} else if (this.$isEEUIApp) {
|
||||
this.$store.dispatch('openAppChildPage', {
|
||||
pageType: 'app',
|
||||
pageTitle: title,
|
||||
@ -4420,7 +4420,7 @@ export default {
|
||||
|
||||
autoScrollInto() {
|
||||
return this.location === "modal"
|
||||
&& this.$isEEUiApp
|
||||
&& this.$isEEUIApp
|
||||
&& this.windowPortrait
|
||||
&& this.$refs.input?.isFocus
|
||||
},
|
||||
|
||||
@ -55,14 +55,14 @@
|
||||
</Dropdown>
|
||||
<template v-if="!file.only_view">
|
||||
<div class="header-icons">
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch" :content="$L('文件链接')">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch" :content="$L('文件链接')">
|
||||
<div class="header-icon" @click="handleClick('link')"><i class="taskfont"></i></div>
|
||||
</ETooltip>
|
||||
<EPopover v-model="historyShow" trigger="click">
|
||||
<div class="file-content-history">
|
||||
<FileHistory :value="historyShow" :file="file" @on-restore="onRestoreHistory"/>
|
||||
</div>
|
||||
<ETooltip slot="reference" ref="historyTip" :disabled="$isEEUiApp || windowTouch || historyShow" :content="$L('历史版本')">
|
||||
<ETooltip slot="reference" ref="historyTip" :disabled="$isEEUIApp || windowTouch || historyShow" :content="$L('历史版本')">
|
||||
<div class="header-icon"><i class="taskfont"></i></div>
|
||||
</ETooltip>
|
||||
</EPopover>
|
||||
|
||||
@ -194,7 +194,7 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
},
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
} else if (this.$isEEUIApp) {
|
||||
this.$store.dispatch('openAppChildPage', {
|
||||
pageType: 'app',
|
||||
pageTitle: title,
|
||||
|
||||
@ -298,7 +298,7 @@ export default {
|
||||
async onOpen(isDirect = false) {
|
||||
// 判断是否在会议中
|
||||
let isMeeting = false;
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
isMeeting = this.appMeetingShow;
|
||||
} else if ($A.Electron) {
|
||||
const meetingWindow = await $A.Electron.sendAsync("getChildWindow", 'meeting-window')
|
||||
@ -349,7 +349,7 @@ export default {
|
||||
delete data.name;
|
||||
delete data.msgs;
|
||||
// App 直接使用新窗口打开会议
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
loader(true);
|
||||
this.loadNum = 0
|
||||
this.loadTimer && clearInterval(this.loadTimer)
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div :id="id" class="player">
|
||||
<div class="player-bg" :style="playerStyle"></div>
|
||||
</div>
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch || !username">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch || !username">
|
||||
<div slot="content">
|
||||
{{username}}
|
||||
</div>
|
||||
|
||||
@ -229,7 +229,7 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
},
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
} else if (this.$isEEUIApp) {
|
||||
this.$store.dispatch('openAppChildPage', {
|
||||
pageType: 'app',
|
||||
pageTitle: this.$L(title),
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
</li>
|
||||
<template v-if="!(windowWidth <= 980 || projectData.cacheParameter.chat) && projectUser.length > 0" v-for="item in projectUser">
|
||||
<li v-if="item.userid === -1" class="more">
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch" :content="$L('共' + (projectData.project_user.length) + '个成员')">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch" :content="$L('共' + (projectData.project_user.length) + '个成员')">
|
||||
<Icon type="ios-more"/>
|
||||
</ETooltip>
|
||||
</li>
|
||||
@ -31,7 +31,7 @@
|
||||
</ul>
|
||||
</li>
|
||||
<li class="project-icon" @click="addTaskOpen(0)">
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch" :content="$L('添加任务')">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch" :content="$L('添加任务')">
|
||||
<Icon class="menu-icon" type="md-add" />
|
||||
</ETooltip>
|
||||
</li>
|
||||
@ -104,7 +104,7 @@
|
||||
<Draggable
|
||||
:list="columnList"
|
||||
:animation="150"
|
||||
:disabled="sortDisabled || $isEEUiApp || windowTouch"
|
||||
:disabled="sortDisabled || $isEEUIApp || windowTouch"
|
||||
class="column-list"
|
||||
tag="ul"
|
||||
draggable=".column-item"
|
||||
@ -167,7 +167,7 @@
|
||||
<Draggable
|
||||
:list="column.tasks"
|
||||
:animation="150"
|
||||
:disabled="sortDisabled || $isEEUiApp || windowTouch"
|
||||
:disabled="sortDisabled || $isEEUIApp || windowTouch"
|
||||
class="task-list"
|
||||
draggable=".task-draggable"
|
||||
filter=".complete"
|
||||
@ -213,7 +213,7 @@
|
||||
<ETooltip
|
||||
v-if="item.end_at"
|
||||
:class="['task-time', item.today ? 'today' : '', item.overdue ? 'overdue' : '']"
|
||||
:disabled="$isEEUiApp || windowTouch"
|
||||
:disabled="$isEEUIApp || windowTouch"
|
||||
:open-delay="600"
|
||||
:content="item.end_at">
|
||||
<div v-if="!item.complete_at"><i class="taskfont"></i>{{ expiresFormat(item.end_at) }}</div>
|
||||
|
||||
@ -67,7 +67,7 @@
|
||||
<Draggable
|
||||
:list="data.project_flow_item"
|
||||
:animation="150"
|
||||
:disabled="$isEEUiApp || windowTouch"
|
||||
:disabled="$isEEUIApp || windowTouch"
|
||||
class="taskflow-config-table-list-wrapper"
|
||||
tag="div"
|
||||
draggable=".column-border"
|
||||
|
||||
@ -12,13 +12,13 @@
|
||||
<Radio label="daily" :disabled="id > 0 && reportData.type =='weekly'">{{ $L("日报") }}</Radio>
|
||||
</RadioGroup>
|
||||
<ButtonGroup v-if="id === 0" class="report-buttongroup">
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch" :content="prevCycleText" placement="bottom">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch" :content="prevCycleText" placement="bottom">
|
||||
<Button type="primary" @click="prevCycle">
|
||||
<Icon type="ios-arrow-back" />
|
||||
</Button>
|
||||
</ETooltip>
|
||||
<div class="report-buttongroup-vertical"></div>
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch || reportData.offset >= 0" :content="nextCycleText" placement="bottom">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch || reportData.offset >= 0" :content="nextCycleText" placement="bottom">
|
||||
<Button type="primary" @click="nextCycle" :disabled="reportData.offset >= 0">
|
||||
<Icon type="ios-arrow-forward" />
|
||||
</Button>
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
<Button @click="advanced=!advanced">{{$L('高级选项')}}</Button>
|
||||
<ul class="advanced-priority">
|
||||
<li v-for="(item, key) in taskPriority" :key="key">
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch" :content="taskPriorityContent(item)">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch" :content="taskPriorityContent(item)">
|
||||
<i
|
||||
class="taskfont"
|
||||
:style="{color:item.color}"
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<div v-if="parentId == 0" class="priority">
|
||||
<ul>
|
||||
<li v-for="(item, key) in taskPriority" :key="key">
|
||||
<ETooltip v-if="active" :disabled="$isEEUiApp || windowTouch" :content="taskPriorityContent(item)">
|
||||
<ETooltip v-if="active" :disabled="$isEEUIApp || windowTouch" :content="taskPriorityContent(item)">
|
||||
<i
|
||||
class="taskfont"
|
||||
:style="{color:item.color}"
|
||||
@ -57,7 +57,7 @@
|
||||
<div class="priority">
|
||||
<ul>
|
||||
<li v-for="(item, key) in taskPriority" :key="key">
|
||||
<ETooltip v-if="active" :disabled="$isEEUiApp || windowTouch" :content="taskPriorityContent(item)">
|
||||
<ETooltip v-if="active" :disabled="$isEEUIApp || windowTouch" :content="taskPriorityContent(item)">
|
||||
<i
|
||||
class="taskfont"
|
||||
:style="{color:item.color}"
|
||||
|
||||
@ -181,7 +181,7 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
},
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
} else if (this.$isEEUIApp) {
|
||||
this.$store.dispatch('openAppChildPage', {
|
||||
pageType: 'app',
|
||||
pageTitle: title,
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
<p v-if="taskDetail.id"><span>{{taskDetail.id}}</span></p>
|
||||
</div>
|
||||
<div class="function">
|
||||
<ETooltip v-if="$Electron" :disabled="$isEEUiApp || windowTouch" :content="$L('独立窗口显示')">
|
||||
<ETooltip v-if="$Electron" :disabled="$isEEUIApp || windowTouch" :content="$L('独立窗口显示')">
|
||||
<i class="taskfont open" @click="openNewWin"></i>
|
||||
</ETooltip>
|
||||
<div class="menu">
|
||||
@ -266,7 +266,7 @@
|
||||
</div>
|
||||
<ul class="item-content loop">
|
||||
<li>
|
||||
<ETooltip :disabled="$isEEUiApp || windowTouch || !taskDetail.loop_at" :content="`${$L('下个周期')}: ${taskDetail.loop_at}`" placement="right">
|
||||
<ETooltip :disabled="$isEEUIApp || windowTouch || !taskDetail.loop_at" :content="`${$L('下个周期')}: ${taskDetail.loop_at}`" placement="right">
|
||||
<span ref="loopText" @click="onLoop">{{$L(loopLabel(taskDetail.loop))}}</span>
|
||||
</ETooltip>
|
||||
</li>
|
||||
@ -1861,7 +1861,7 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
},
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
} else if (this.$isEEUIApp) {
|
||||
this.$store.dispatch('openAppChildPage', {
|
||||
pageType: 'app',
|
||||
pageTitle: `${file.name} (${$A.bytesToSize(file.size)})`,
|
||||
@ -2104,7 +2104,7 @@ export default {
|
||||
},
|
||||
|
||||
autoScrollInto() {
|
||||
return this.$isEEUiApp
|
||||
return this.$isEEUIApp
|
||||
&& this.windowPortrait
|
||||
&& this.$refs.chatInput?.isFocus
|
||||
},
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
<ETooltip
|
||||
v-if="!item.complete_at && item.end_at"
|
||||
:class="['task-time', item.today ? 'today' : '', item.overdue ? 'overdue' : '']"
|
||||
:disabled="$isEEUiApp || windowTouch"
|
||||
:disabled="$isEEUIApp || windowTouch"
|
||||
:open-delay="600"
|
||||
:content="item.end_at">
|
||||
<div @click="openTask(item)">{{expiresFormat(item.end_at)}}</div>
|
||||
|
||||
@ -90,7 +90,7 @@
|
||||
<i class="taskfont"></i>
|
||||
<em>{{item.sub_complete}}/{{item.sub_num}}</em>
|
||||
</div>
|
||||
<ETooltip v-if="item.end_at" :disabled="$isEEUiApp || windowTouch" :content="item.end_at" placement="right">
|
||||
<ETooltip v-if="item.end_at" :disabled="$isEEUIApp || windowTouch" :content="item.end_at" placement="right">
|
||||
<div :class="['item-icon', item.today ? 'today' : '', item.overdue ? 'overdue' : '']">
|
||||
<i class="taskfont"></i>
|
||||
<em>{{expiresFormat(item.end_at)}}</em>
|
||||
|
||||
@ -1113,7 +1113,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
// 客户端打开独立窗口
|
||||
if (this.$Electron || this.$isEEUiApp) {
|
||||
if (this.$Electron || this.$isEEUIApp) {
|
||||
this.openFileSingle(item);
|
||||
return;
|
||||
}
|
||||
@ -1138,7 +1138,7 @@ export default {
|
||||
height: Math.min(window.screen.availHeight, 900),
|
||||
},
|
||||
});
|
||||
} else if (this.$isEEUiApp) {
|
||||
} else if (this.$isEEUIApp) {
|
||||
this.$store.dispatch('openAppChildPage', {
|
||||
pageType: 'app',
|
||||
pageTitle: $A.getFileName(item),
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="$isEEUiApp && !appNotificationPermission" class="messenger-notify-permission" @click="onOpenAppSetting">
|
||||
<div v-if="$isEEUIApp && !appNotificationPermission" class="messenger-notify-permission" @click="onOpenAppSetting">
|
||||
{{$L('未开启通知权限')}}<i class="taskfont"></i>
|
||||
</div>
|
||||
<Scrollbar
|
||||
@ -358,7 +358,7 @@ export default {
|
||||
//
|
||||
this.$nextTick(_ => this.activeNum++)
|
||||
//
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
$A.eeuiAppSendMessage({action: 'getNotificationPermission'});
|
||||
}
|
||||
},
|
||||
|
||||
@ -128,7 +128,7 @@ export default {
|
||||
* 唤醒APP
|
||||
*/
|
||||
wakeApp() {
|
||||
if (!$A.Electron && !$A.isEEUiApp && navigator.userAgent.indexOf("MicroMessenger") === -1) {
|
||||
if (!$A.Electron && !$A.isEEUIApp && navigator.userAgent.indexOf("MicroMessenger") === -1) {
|
||||
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
||||
try {
|
||||
if (/Android/i.test(navigator.userAgent)) {
|
||||
|
||||
@ -86,7 +86,7 @@
|
||||
<Radio label="close">{{$L('关闭')}}</Radio>
|
||||
</RadioGroup>
|
||||
<div class="form-tip">{{$L('任务完成后自动归档。')}}</div>
|
||||
<ETooltip v-if="formDatum.auto_archived=='open'" placement="right" :disabled="$isEEUiApp || windowTouch">
|
||||
<ETooltip v-if="formDatum.auto_archived=='open'" placement="right" :disabled="$isEEUIApp || windowTouch">
|
||||
<div class="setting-auto-day">
|
||||
<Input v-model="formDatum.archived_day" type="number">
|
||||
<span slot="append">{{$L('天')}}</span>
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<transition :name="$isEEUiApp ? 'mobile-dialog' : 'none'">
|
||||
<transition :name="$isEEUIApp ? 'mobile-dialog' : 'none'">
|
||||
<div v-if="showContent" class="setting-content">
|
||||
<MobileNavTitle :title="settingTitleName"/>
|
||||
<div class="setting-content-title">{{titleNameRoute}}</div>
|
||||
@ -62,7 +62,7 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
if (this.$isEEUiApp) {
|
||||
if (this.$isEEUIApp) {
|
||||
this.clientVersion = `${window.systemInfo.version} (${$A.eeuiAppLocalVersion()})`
|
||||
}
|
||||
},
|
||||
@ -87,11 +87,11 @@ export default {
|
||||
{path: 'theme', name: '主题设置'},
|
||||
]
|
||||
|
||||
if (this.$Electron || this.$isEEUiApp) {
|
||||
if (this.$Electron || this.$isEEUIApp) {
|
||||
menu.push({path: 'keyboard', name: '键盘设置', desc: ' (Beta)'})
|
||||
}
|
||||
|
||||
if ($A.isDooServer() && this.$isEEUiApp) {
|
||||
if ($A.isDooServer() && this.$isEEUIApp) {
|
||||
menu.push(...[
|
||||
{path: 'privacy', name: '隐私政策', divided: true},
|
||||
{path: 'delete', name: '删除帐号'},
|
||||
@ -198,7 +198,7 @@ export default {
|
||||
|
||||
openPrivacy() {
|
||||
const url = $A.apiUrl('privacy')
|
||||
if (this.$isEEUiApp) {
|
||||
if (this.$isEEUIApp) {
|
||||
this.$store.dispatch('openAppChildPage', {
|
||||
pageType: 'app',
|
||||
pageTitle: ' ',
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
</div>
|
||||
</FormItem>
|
||||
</template>
|
||||
<FormItem v-if="$isEEUiApp" :label="$L('发送按钮')">
|
||||
<FormItem v-if="$isEEUIApp" :label="$L('发送按钮')">
|
||||
<RadioGroup v-model="formData.send_button_app">
|
||||
<Radio label="button">{{$L('开启')}}</Radio>
|
||||
<Radio label="enter">{{$L('关闭')}}</Radio>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<PageTitle :title="pageName"/>
|
||||
<Loading v-if="loadIng > 0"/>
|
||||
<template v-else-if="fileInfo">
|
||||
<FilePreview v-if="isPreview" :code="code" :file="fileInfo" :historyId="historyId" :headerShow="!$isEEUiApp"/>
|
||||
<FilePreview v-if="isPreview" :code="code" :file="fileInfo" :historyId="historyId" :headerShow="!$isEEUIApp"/>
|
||||
<FileContent v-else v-model="fileShow" :file="fileInfo"/>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@ -35,7 +35,7 @@ export default {
|
||||
return {
|
||||
loadIng: 0,
|
||||
info: null,
|
||||
showHeader: !$A.isEEUiApp,
|
||||
showHeader: !$A.isEEUIApp,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
8
resources/assets/js/store/actions.js
vendored
8
resources/assets/js/store/actions.js
vendored
@ -479,7 +479,7 @@ export default {
|
||||
}, () => {
|
||||
// 失败
|
||||
});
|
||||
} else if ($A.isEEUiApp) {
|
||||
} else if ($A.isEEUIApp) {
|
||||
$A.eeuiAppOpenWeb(url);
|
||||
} else {
|
||||
window.open(url)
|
||||
@ -553,7 +553,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
if (!$A.dark.utils.supportMode()) {
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
$A.modalWarning("仅Android设置支持主题功能");
|
||||
} else {
|
||||
$A.modalWarning("仅客户端或Chrome浏览器支持主题功能");
|
||||
@ -593,7 +593,7 @@ export default {
|
||||
state.themeName = $A.dark.isDarkEnabled() ? 'dark' : 'light'
|
||||
window.localStorage.setItem("__system:themeConf__", state.themeConf)
|
||||
//
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
$A.eeuiAppSendMessage({
|
||||
action: 'updateTheme',
|
||||
themeName: state.themeName,
|
||||
@ -734,7 +734,7 @@ export default {
|
||||
state.userId = userInfo.userid;
|
||||
state.userToken = userInfo.token;
|
||||
state.userIsAdmin = $A.inArray('admin', userInfo.identity);
|
||||
if ($A.isSubElectron || ($A.isEEUiApp && !state.isFirstPage)) {
|
||||
if ($A.isSubElectron || ($A.isEEUIApp && !state.isFirstPage)) {
|
||||
// 子窗口(Electron)、不是第一个页面(App) 不保存
|
||||
} else {
|
||||
await $A.IDBSet("userInfo", state.userInfo);
|
||||
|
||||
4
resources/assets/js/utils/index.js
vendored
4
resources/assets/js/utils/index.js
vendored
@ -54,11 +54,11 @@ function __callData(key, requestData, state) {
|
||||
} else {
|
||||
deleted_id = []
|
||||
}
|
||||
if ($A.isEEUiApp) {
|
||||
if ($A.isEEUIApp) {
|
||||
hasUpdate = state.isFirstPage
|
||||
}
|
||||
if (hasUpdate) {
|
||||
if ($A.isSubElectron || ($A.isEEUiApp && !state.isFirstPage)) {
|
||||
if ($A.isSubElectron || ($A.isEEUIApp && !state.isFirstPage)) {
|
||||
// 子窗口(Electron)、不是第一个页面(App) 不保存
|
||||
} else {
|
||||
await $A.IDBSet("callAt", state.callAt)
|
||||
|
||||
@ -78,8 +78,8 @@
|
||||
document.body.classList.add("dark");
|
||||
}
|
||||
//
|
||||
const isEEUiApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
||||
if (isEEUiApp) {
|
||||
const isEEUIApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
||||
if (isEEUIApp) {
|
||||
document.querySelector(".link").addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
window.top.postMessage({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user