Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Madara
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
Madara
Commits
2fda6487
Commit
2fda6487
authored
Oct 16, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fa5b4a85
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
33 additions
and
22 deletions
+33
-22
plugin.js
src/plugin/plugin.js
+2
-1
alifont.css
src/renderer/assets/css/alifont.css
+10
-6
iconfont.eot
src/renderer/assets/fonts/iconfont.eot
+0
-0
iconfont.svg
src/renderer/assets/fonts/iconfont.svg
+3
-0
iconfont.ttf
src/renderer/assets/fonts/iconfont.ttf
+0
-0
iconfont.woff
src/renderer/assets/fonts/iconfont.woff
+0
-0
iconfont.woff2
src/renderer/assets/fonts/iconfont.woff2
+0
-0
chatitem.vue
src/renderer/components/msssage/chatitem.vue
+2
-2
index.vue
src/renderer/components/msssage/index.vue
+8
-5
CollectionContentListItem.vue
src/renderer/components/team/CollectionContentListItem.vue
+1
-3
CollectionSearchBox.vue
src/renderer/components/team/CollectionSearchBox.vue
+1
-1
Collection.vue
src/renderer/components/tools/Collection.vue
+1
-1
msgs.js
src/store/actions/msgs.js
+5
-3
No files found.
src/plugin/plugin.js
View file @
2fda6487
...
...
@@ -9,7 +9,8 @@ export default {
return
process
.
env
.
NODE_ENV
!==
'development'
;
}
Vue
.
prototype
.
domainManager
=
function
()
{
var
domainUrl
=
"http://reborn.oytour.com"
;
//主域名
var
domainUrl
=
"http://reborn.oytour.com"
;
// 主域名
// domainUrl = "http://192.168.2.65:8025"; // 吴春
if
(
this
.
isOnline
())
{
domainUrl
=
"http://reborn.oytour.com"
;
}
...
...
src/renderer/assets/css/alifont.css
View file @
2fda6487
This diff is collapsed.
Click to expand it.
src/renderer/assets/fonts/iconfont.eot
View file @
2fda6487
No preview for this file type
src/renderer/assets/fonts/iconfont.svg
View file @
2fda6487
...
...
@@ -32,6 +32,9 @@ Created by iconfont
<glyph
glyph-name=
"wenjianjia"
unicode=
""
d=
"M853.068468-19.604244 153.175123-19.604244c-53.357232 0-89.143273 42.561351-89.143273 95.91756L64.03185 692.440861c0 53.358255 35.786041 97.621365 89.143273 97.621365l258.389932 0c12.882402 0 24.102954-8.819876 27.128871-21.348214l28.628014-118.248148 385.745505 0c53.357232 0 104.383372-44.264133 104.383372-97.622388l0-476.531184C957.45184 22.957107 906.424676-19.604244 853.068468-19.604244zM153.175123 734.2245c-22.575158 0-33.3035-19.221784-33.3035-41.783639l0-616.127546c0-22.575158 10.728342-40.078811 33.3035-40.078811l699.892321 0c22.560832 0 48.544623 17.503653 48.544623 40.078811L901.612067 552.844499c0 22.561855-25.984814 41.783639-48.544623 41.783639L445.347462 594.628138c-12.882402 0-24.101931 8.820899-27.128871 21.348214l-28.628014 118.248148L153.175123 734.2245zM800.595372 78.113311 656.677589 78.113311c-7.715729 0-13.959943 6.244214-13.959943 13.959943s6.244214 13.959943 13.959943 13.959943l143.918807 0c13.81054 0 31.219026 1.500167 31.219026 32.064276l0 50.842968c0 7.715729 6.244214 13.959943 13.959943 13.959943 7.702426 0 13.959943-6.244214 13.959943-13.959943l0-50.842968C859.733261 97.744417 834.772776 78.113311 800.595372 78.113311zM839.25895 239.051747c-3.62762 0-7.254218 1.540076-9.911744 4.048199-2.508123 2.659573-4.049223 6.285147-4.049223 9.911744 0 3.6399 1.541099 7.266497 4.049223 9.911744 5.316076 5.16565 14.518668 5.16565 19.835767 0 2.5071-2.645247 4.033873-6.271844 4.033873-9.911744 0-3.626597-1.526773-7.252171-4.033873-9.911744C846.523401 240.591823 842.897827 239.051747 839.25895 239.051747zM880.032586 706.305637 531.040147 706.305637c-15.417131 0-27.918863 12.500709-27.918863 27.919886s12.501732 27.919886 27.918863 27.919886l348.992439 0c15.417131 0 27.918863-12.500709 27.918863-27.919886S895.45074 706.305637 880.032586 706.305637z"
horiz-adv-x=
"1024"
/>
<glyph
glyph-name=
"iconset0117"
unicode=
""
d=
"M810.666667 840.533333 392.533333 840.533333l-42.666667 0-85.333333 0c-46.933333 0-85.333333-38.4-85.333333-85.333333l0-42.666667L166.4 712.533333c-12.8 0-21.333333-8.533333-21.333333-21.333333 0-12.8 8.533333-21.333333 21.333333-21.333333l21.333333 0 0-85.333333L166.4 584.533333c-12.8 0-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333 21.333333-21.333333l21.333333 0 0-85.333333L166.4 456.533333c-12.8 0-21.333333-8.533333-21.333333-21.333333 0-12.8 8.533333-21.333333 21.333333-21.333333l21.333333 0 0-85.333333L166.4 328.533333c-12.8 0-21.333333-8.533333-21.333333-21.333333 0-12.8 8.533333-21.333333 21.333333-21.333333l21.333333 0 0-85.333333L166.4 200.533333c-12.8 0-21.333333-8.533333-21.333333-21.333333 0-12.8 8.533333-21.333333 21.333333-21.333333l21.333333 0 0-85.333333L166.4 72.533333c-12.8 0-21.333333-8.533333-21.333333-21.333333 0-12.8 8.533333-21.333333 21.333333-21.333333l21.333333 0 0-42.666667c0-46.933333 38.4-85.333333 85.333333-85.333333l85.333333 0 42.666667 0L810.666667-98.133333c46.933333 0 85.333333 38.4 85.333333 85.333333L896 759.466667C891.733333 806.4 857.6 840.533333 810.666667 840.533333zM354.133333-34.133333l-85.333333 0c-21.333333 0-42.666667 17.066667-42.666667 42.666667l0 42.666667 21.333333 0c12.8 0 21.333333 8.533333 21.333333 21.333333 0 12.8-8.533333 21.333333-21.333333 21.333333L226.133333 93.866667l0 85.333333 21.333333 0c12.8 0 21.333333 8.533333 21.333333 21.333333 0 12.8-8.533333 21.333333-21.333333 21.333333L226.133333 221.866667l0 85.333333 21.333333 0c12.8 0 21.333333 8.533333 21.333333 21.333333 0 12.8-8.533333 21.333333-21.333333 21.333333L226.133333 349.866667l0 85.333333 21.333333 0c12.8 0 21.333333 8.533333 21.333333 21.333333 0 12.8-8.533333 21.333333-21.333333 21.333333L226.133333 477.866667l0 85.333333 21.333333 0c12.8 0 21.333333 8.533333 21.333333 21.333333S260.266667 593.066667 247.466667 593.066667L226.133333 593.066667l0 85.333333 21.333333 0c12.8 0 21.333333 8.533333 21.333333 21.333333 0 12.8-8.533333 21.333333-21.333333 21.333333L226.133333 721.066667l0 42.666667c0 21.333333 17.066667 42.666667 42.666667 42.666667l85.333333 0L354.133333-34.133333zM853.333333 8.533333c0-21.333333-17.066667-42.666667-42.666667-42.666667L392.533333-34.133333 392.533333 802.133333 810.666667 802.133333c21.333333 0 42.666667-17.066667 42.666667-42.666667L853.333333 8.533333z"
horiz-adv-x=
"1024"
/>
<glyph
glyph-name=
"3lishi"
unicode=
""
d=
"M512 832c-247.41888 0-448-200.580096-448-448 0-247.433216 200.58112-448 448-448 247.43424 0 448 200.56576 448 448C960 631.419904 759.43424 832 512 832zM512-8.875008c-216.152064 0-392.000512 176.722944-392.000512 392.875008s175.848448 392.000512 392.000512 392.000512c216.153088 0 392.000512-175.847424 392.000512-392.000512S728.153088-8.875008 512-8.875008zM540.000256 395.362304 540.000256 664.000512c0 15.463424-12.536832 28.000256-28.000256 28.000256s-28.000256-12.536832-28.000256-28.000256l0-280.000512c0-7.56736 3.008512-14.42816 7.885824-19.467264 0.644096-0.805888 1.335296-1.586176 2.080768-2.331648l138.592256-138.592256c10.938368-10.9312 28.669952-10.9312 39.60832 0 10.937344 10.930176 10.937344 28.662784 0 39.600128L540.000256 395.362304z"
horiz-adv-x=
"1024"
/>
...
...
src/renderer/assets/fonts/iconfont.ttf
View file @
2fda6487
No preview for this file type
src/renderer/assets/fonts/iconfont.woff
View file @
2fda6487
No preview for this file type
src/renderer/assets/fonts/iconfont.woff2
View file @
2fda6487
No preview for this file type
src/renderer/components/msssage/chatitem.vue
View file @
2fda6487
...
...
@@ -348,7 +348,7 @@ export default {
if
(
msg
.
type
===
'text'
)
{
if
(
/.*
[\u
4e00-
\u
9fa5
]
+.*$/
.
test
(
msg
.
showText
))
{
sendMsg
.
CollectionType
=
3
}
else
if
(
msg
.
showText
.
match
(
new
RegExp
(
reg
,
'i'
))
){
}
else
if
(
msg
.
showText
.
indexOf
(
'http'
)
!==
-
1
){
sendMsg
.
CollectionType
=
1
}
else
{
sendMsg
.
CollectionType
=
3
...
...
@@ -361,7 +361,7 @@ export default {
sendMsg
.
CollectionType
=
4
sendMsg
.
PicURL
=
msg
.
fileLink
}
sendMsg
.
Content
=
msg
.
showT
ext
sendMsg
.
Content
=
msg
.
t
ext
sendMsg
.
FromUser
=
msg
.
fromNick
this
.
apipost
(
"user_post_SetCollection"
,
sendMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
...
...
src/renderer/components/msssage/index.vue
View file @
2fda6487
...
...
@@ -112,9 +112,9 @@
<div
class=
"msgbase"
>
<div
class=
"last"
>
<span
class=
"at-me"
v-if=
"session.atId"
>
[有人@我]
</span>
<te
n
plate
v-if=
"session.isMute && session.unread>0 && !session.historiMsg"
>
<te
m
plate
v-if=
"session.isMute && session.unread>0 && !session.historiMsg"
>
<span>
[
{{
session
.
unread
}}
]
</span>
</te
n
plate>
</
te
m
plate
>
<span
v-if=
"!session.historiMsg"
>
{{session.lastMsgShow}}
</span>
<span
v-if=
"session.historiMsg && currentSession.id !== session.id"
style=
"color: red"
>
[草稿]
</span>
{{session.historiMsg}}
</div>
...
...
@@ -159,9 +159,9 @@
<div
class=
"msgbase"
>
<div
class=
"last"
>
<span
class=
"at-me"
v-if=
"session.atId"
>
[有人@我]
</span>
<te
n
plate
v-if=
"session.isMute && session.unread>0 && !session.historiMsg"
>
<te
m
plate
v-if=
"session.isMute && session.unread>0 && !session.historiMsg"
>
<span>
[
{{
session
.
unread
}}
]
</span>
</te
n
plate>
</
te
m
plate
>
<span
v-if=
"!session.historiMsg"
>
{{session.lastMsgShow}}
</span>
<span
v-if=
"session.historiMsg && currentSession.id !== session.id"
style=
"color: red"
>
[草稿]
</span>
{{session.historiMsg}}
</div>
...
...
@@ -545,6 +545,7 @@ export default {
sessionlist
()
{
let
unreadList
=
[];
let
historicList
=
window
.
localStorage
.
historicList
?
JSON
.
parse
(
window
.
localStorage
.
historicList
)
:
[];
// console.log("this.$store.state.sessionlist", this.$store.state.sessionlist)
let
sessionlist
=
this
.
$store
.
state
.
sessionlist
.
filter
(
item
=>
{
if
(
item
.
to
===
"684cb79fe92f46877777"
){
return
;
//过滤推送消息
...
...
@@ -573,6 +574,9 @@ export default {
item
.
avatar
=
userInfo
.
avatar
;
}
}
else
if
(
item
.
scene
===
"team"
)
{
if
(
item
.
unread
>
0
)
{
console
.
log
(
item
.
unread
)
}
let
teamInfo
=
null
;
teamInfo
=
this
.
$store
.
state
.
teamlist
.
find
(
team
=>
{
return
team
.
teamId
===
item
.
to
;
...
...
@@ -642,7 +646,6 @@ export default {
)
{
item
.
lastMsgShow
=
util
.
generateTeamSysmMsg
(
lastMsg
);
}
else
if
(
util
.
mapMsgType
(
lastMsg
))
{
console
.
log
(
item
)
item
.
lastMsgShow
=
`[
${
util
.
mapMsgType
(
lastMsg
)}
]`
;
}
else
{
item
.
lastMsgShow
=
""
;
...
...
src/renderer/components/team/CollectionContentListItem.vue
View file @
2fda6487
...
...
@@ -85,7 +85,7 @@ export default {
canvas
.
height
=
video
.
videoHeight
*
scale
;
//设置canvas的高度为视频的高度
canvas
.
getContext
(
'2d'
).
drawImage
(
video
,
0
,
0
,
canvas
.
width
,
canvas
.
height
);
//绘制图像
_this
.
imgUrl
=
canvas
.
toDataURL
(
"image/png"
);
//将绘制的图像用img显示出来
},
5
00
)
},
10
00
)
}
else
{
this
.
imgUrl
=
this
.
item
.
PicURL
}
...
...
@@ -104,7 +104,6 @@ export default {
event
.
preventDefault
();
let
data
=
this
.
item
let
file
=
JSON
.
parse
(
this
.
item
.
FromContent
)
console
.
log
(
"file"
,
file
,
data
.
PicURL
,
data
.
Content
)
let
crt
=
this
;
this
.
$electron
.
remote
.
dialog
.
showSaveDialog
(
{
...
...
@@ -115,7 +114,6 @@ export default {
filters
:
[{
name
:
"麦子助手文件"
,
extensions
:
[
file
.
file
.
ext
]
}]
},
function
(
res
)
{
console
.
log
(
res
)
if
(
res
)
{
crt
.
beginDownload
(
res
);
}
...
...
src/renderer/components/team/CollectionSearchBox.vue
View file @
2fda6487
...
...
@@ -5,7 +5,7 @@
<span
class=
"seach__item__icon"
>
<i
class=
"iconfont iconsearch"
></i>
</span>
<input
type=
"text"
placeholder=
"搜
2
索"
class=
"seach__item__input"
>
<input
type=
"text"
placeholder=
"搜索"
class=
"seach__item__input"
>
</div>
</div>
<ul
class=
"type-box"
>
...
...
src/renderer/components/tools/Collection.vue
View file @
2fda6487
...
...
@@ -40,7 +40,7 @@ export default {
{
id
:
3
,
name
:
'笔记'
,
icon
:
'icon
wenjian
'
icon
:
'icon
iconset0117
'
}
],
dataList
:
[],
...
...
src/store/actions/msgs.js
View file @
2fda6487
...
...
@@ -462,13 +462,13 @@ function sendMsgReceiptDone(error, obj) {
export
function
getHistoryMsgs
({
state
,
commit
},
obj
)
{
const
nim
=
state
.
nim
if
(
nim
)
{
let
{
scene
,
to
}
=
obj
let
{
scene
,
to
,
pageDatas
}
=
obj
let
options
=
{
scene
,
to
,
reverse
:
false
,
asc
:
true
,
limit
:
config
.
localMsglimit
||
20
,
limit
:
pageDatas
||
config
.
localMsglimit
||
20
,
done
:
function
getHistoryMsgsDone
(
error
,
obj
)
{
if
(
obj
.
msgs
)
{
if
(
obj
.
msgs
.
length
===
0
)
{
...
...
@@ -477,7 +477,9 @@ export function getHistoryMsgs({ state, commit }, obj) {
let
msgs
=
obj
.
msgs
.
map
(
msg
=>
{
return
formatMsg
(
msg
)
})
console
.
log
(
msgs
)
if
(
pageDatas
)
{
console
.
log
(
msgs
)
}
commit
(
'updateCurrSessionMsgs'
,
{
type
:
'concat'
,
msgs
:
msgs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment