Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
cd102226
Commit
cd102226
authored
May 11, 2021
by
Kang Donghun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release_sp3_add_user' into 'release_sp3'
協業内ユーザー招待機能追加実装 See merge request
!110
parents
124722a1
a1e48b6f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
24 deletions
+54
-24
public_new/collaboration_picture.html
+15
-6
public_new/collaboration_video.html
+16
-6
public_new/collaboration_voice.html
+15
-10
public_new/js/chat-ui.js
+1
-1
public_new/js/share.js
+7
-1
No files found.
public_new/collaboration_picture.html
View file @
cd102226
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<div
class=
"collabo_nav_r"
>
<div
class=
"collabo_nav_r"
>
<div
class=
"text-right d-flex align-items-center"
>
<div
class=
"text-right d-flex align-items-center"
>
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn none"
></button>
<!-- <button type="button" name="button" class="btn exit_btn" onclick="Coview_exitCollaboration();"></button> -->
<!-- <button type="button" name="button" class="btn exit_btn" onclick="Coview_exitCollaboration();"></button> -->
</div>
</div>
</div>
</div>
...
@@ -53,6 +54,7 @@
...
@@ -53,6 +54,7 @@
<!-- ユーザー追加オーバーレイ -->
<!-- ユーザー追加オーバーレイ -->
<div
id=
"add_user_list"
></div>
<div
id=
"add_user_list"
></div>
<div
id=
"modal_add_user_confirm"
></div>
<!-- オーバーレイ メニュー -->
<!-- オーバーレイ メニュー -->
<div
id=
"collaboration_picture_overlay_menu"
></div>
<div
id=
"collaboration_picture_overlay_menu"
></div>
...
@@ -118,7 +120,6 @@
...
@@ -118,7 +120,6 @@
</footer>
</footer>
<!-- フッター -->
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
id=
"footer_collabo"
></div>
<div
id=
"loadingArea"
></div>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
...
@@ -135,7 +136,6 @@
...
@@ -135,7 +136,6 @@
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/loading.js"
></script>
<script
src=
"./js/language.js"
></script>
<script
src=
"./js/language.js"
></script>
<script
src=
"./js/language_ko.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/language_ko.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/language_ja.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/language_ja.js"
charset=
"UTF-8"
></script>
...
@@ -149,8 +149,8 @@
...
@@ -149,8 +149,8 @@
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#collaboration_picture_overlay_menu"
).
load
(
"./collaboration_picture_overlay_menu.html"
);
$
(
"#collaboration_picture_overlay_menu"
).
load
(
"./collaboration_picture_overlay_menu.html"
);
$
(
"#add_user_list"
).
load
(
"./modal_add_user_list.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
let
CHAT_SERVER_URL
=
''
;
let
CHAT_SERVER_URL
=
''
;
...
@@ -160,13 +160,20 @@
...
@@ -160,13 +160,20 @@
let
IS_MOBILE
=
true
;
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
let
IS_ONLINE
=
false
;
let
collaborationJoinFlg
=
0
;
let
collaborationJoinFlg
=
0
;
let
roomType
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
getGlobalParameter
();
roomType
=
android
.
getRoomType
();
}
else
{
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
roomType
=
CHAT_DB
.
getRoomType
();
}
if
(
roomType
==
chatRoomType
.
DM
)
{
$
(
'.add_user_btn'
).
removeClass
(
'none'
);
}
}
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
...
@@ -182,9 +189,11 @@
...
@@ -182,9 +189,11 @@
console
.
log
(
collaborationJoinFlg
);
console
.
log
(
collaborationJoinFlg
);
}
}
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
CAMERA
;
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
CAMERA
;
CHAT_SOCKET
.
connectSocket
();
if
(
collaborationJoinFlg
!=
'2'
)
{
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
CHAT_SOCKET
.
connectSocket
();
});
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
});
}
};
};
</script>
</script>
</body>
</body>
...
...
public_new/collaboration_video.html
View file @
cd102226
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<div
class=
"collabo_nav_r"
>
<div
class=
"collabo_nav_r"
>
<div
class=
"text-right d-flex align-items-center"
>
<div
class=
"text-right d-flex align-items-center"
>
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn none"
></button>
<!-- <button type="button" name="button" class="btn exit_btn" onclick="Coview_exitCollaboration();"></button> -->
<!-- <button type="button" name="button" class="btn exit_btn" onclick="Coview_exitCollaboration();"></button> -->
</div>
</div>
</div>
</div>
...
@@ -52,6 +53,7 @@
...
@@ -52,6 +53,7 @@
<!-- ユーザー追加オーバーレイ -->
<!-- ユーザー追加オーバーレイ -->
<div
id=
"add_user_list"
></div>
<div
id=
"add_user_list"
></div>
<div
id=
"modal_add_user_confirm"
></div>
<!-- オーバーレイ メニュー -->
<!-- オーバーレイ メニュー -->
<div
id=
"collaboration_video_overlay_menu"
></div>
<div
id=
"collaboration_video_overlay_menu"
></div>
...
@@ -112,7 +114,6 @@
...
@@ -112,7 +114,6 @@
</footer>
</footer>
<!-- フッター -->
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
id=
"footer_collabo"
></div>
<div
id=
"loadingArea"
></div>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
...
@@ -128,7 +129,6 @@
...
@@ -128,7 +129,6 @@
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/loading.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/language.js"
></script>
<script
src=
"./js/language.js"
></script>
<script
src=
"./js/language_ko.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/language_ko.js"
charset=
"UTF-8"
></script>
...
@@ -144,8 +144,8 @@
...
@@ -144,8 +144,8 @@
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#collaboration_video_overlay_menu"
).
load
(
"./collaboration_video_overlay_menu.html"
);
$
(
"#collaboration_video_overlay_menu"
).
load
(
"./collaboration_video_overlay_menu.html"
);
$
(
"#add_user_list"
).
load
(
"./modal_add_user_list.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
let
CHAT_SERVER_URL
=
''
;
let
CHAT_SERVER_URL
=
''
;
...
@@ -155,13 +155,20 @@
...
@@ -155,13 +155,20 @@
let
IS_MOBILE
=
true
;
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
let
IS_ONLINE
=
false
;
let
collaborationJoinFlg
=
0
;
let
collaborationJoinFlg
=
0
;
let
roomType
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
getGlobalParameter
();
roomType
=
android
.
getRoomType
();
}
else
{
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
roomType
=
CHAT_DB
.
getRoomType
();
}
if
(
roomType
==
chatRoomType
.
DM
)
{
$
(
'.add_user_btn'
).
removeClass
(
'none'
);
}
}
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
...
@@ -177,9 +184,11 @@
...
@@ -177,9 +184,11 @@
console
.
log
(
collaborationJoinFlg
);
console
.
log
(
collaborationJoinFlg
);
}
}
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
VIDEO
;
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
VIDEO
;
CHAT_SOCKET
.
connectSocket
();
if
(
collaborationJoinFlg
!=
'2'
)
{
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
CHAT_SOCKET
.
connectSocket
();
});
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
});
}
};
};
</script>
</script>
</html>
</html>
\ No newline at end of file
public_new/collaboration_voice.html
View file @
cd102226
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</div>
</div>
<div
class=
"collabo_nav_r"
>
<div
class=
"collabo_nav_r"
>
<div
class=
"text-right d-flex align-items-center"
>
<div
class=
"text-right d-flex align-items-center"
>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn"
></button>
<button
type=
"button"
name=
"button"
class=
"btn add_user_btn
none
"
></button>
<!--<button type="button" name="button" class="btn menu_btn"></button>-->
<!--<button type="button" name="button" class="btn menu_btn"></button>-->
</div>
</div>
</div>
</div>
...
@@ -52,17 +52,16 @@
...
@@ -52,17 +52,16 @@
<!-- プロフィールモーダル -->
<!-- プロフィールモーダル -->
<div
id=
"userProfileModalInCollaboration"
></div>
<div
id=
"userProfileModalInCollaboration"
></div>
<div
id=
"modal_collabo_profile2"
></div>
<div
id=
"modal_collabo_profile2"
></div>
<!-- ユーザー追加オーバーレイ -->
<div
id=
"add_user_list"
></div>
<div
id=
"add_user_list"
></div>
<div
id=
"modal_add_user_confirm"
></div>
<div
id=
"modal_add_user_confirm"
></div>
<!-- ホスト変更モーダル -->
<!-- ホスト変更モーダル -->
<div
id=
"modal_collabo_change_host"
></div>
<div
id=
"modal_collabo_change_host"
></div>
<!-- ホストリクエストモーダル -->
<!-- ホストリクエストモーダル -->
<div
id=
"modal_collabo_host_request"
></div>
<div
id=
"modal_collabo_host_request"
></div>
<!-- フッター -->
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
id=
"footer_collabo"
></div>
<div
id=
"loadingArea"
></div>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/moment.js"
></script>
<script
src=
"./js/libs/moment.js"
></script>
...
@@ -74,7 +73,6 @@
...
@@ -74,7 +73,6 @@
<script
src=
"./js/constant.js"
></script>
<script
src=
"./js/constant.js"
></script>
<script
src=
"./js/collaboration.js"
></script>
<script
src=
"./js/collaboration.js"
></script>
<script
src=
"./js/common.js"
></script>
<script
src=
"./js/common.js"
></script>
<script
src=
"./js/loading.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
...
@@ -92,7 +90,6 @@
...
@@ -92,7 +90,6 @@
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#collaboration_voice_overlay_menu"
).
load
(
"./collaboration_voice_overlay_menu.html"
);
$
(
"#collaboration_voice_overlay_menu"
).
load
(
"./collaboration_voice_overlay_menu.html"
);
$
(
"#add_user_list"
).
load
(
"./modal_add_user_list.html"
);
$
(
"#add_user_list"
).
load
(
"./modal_add_user_list.html"
);
...
@@ -103,13 +100,20 @@
...
@@ -103,13 +100,20 @@
let
IS_MOBILE
=
true
;
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
let
IS_ONLINE
=
false
;
let
collaborationJoinFlg
=
0
;
let
collaborationJoinFlg
=
0
;
let
roomType
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
getGlobalParameter
();
roomType
=
android
.
getRoomType
();
}
else
{
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
roomType
=
CHAT_DB
.
getRoomType
();
}
if
(
roomType
==
chatRoomType
.
DM
)
{
$
(
'.add_user_btn'
).
removeClass
(
'none'
);
}
}
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
...
@@ -125,10 +129,11 @@
...
@@ -125,10 +129,11 @@
console
.
log
(
collaborationJoinFlg
);
console
.
log
(
collaborationJoinFlg
);
}
}
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
AUDIO
;
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
AUDIO
;
CHAT_SOCKET
.
connectSocket
();
if
(
collaborationJoinFlg
!=
'2'
)
{
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
CHAT_SOCKET
.
connectSocket
();
});
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
});
}
};
};
</script>
</script>
</body>
</body>
...
...
public_new/js/chat-ui.js
View file @
cd102226
...
@@ -2837,7 +2837,7 @@ CHAT_UI.confirmInviteUserListInCollaboration = function() {
...
@@ -2837,7 +2837,7 @@ CHAT_UI.confirmInviteUserListInCollaboration = function() {
userIdList
.
push
(
user
.
shopMemberId
);
userIdList
.
push
(
user
.
shopMemberId
);
})
})
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
invite
Users
(
userIdList
.
join
(
','
),
true
);
android
.
invite
Collaboration
(
userIdList
.
join
(
','
),
CHAT_UTIL
.
getCollaborationType
(
globalUserInfo
.
coWorkType
)
);
}
else
{
}
else
{
webkit
.
messageHandlers
.
inviteUsers
.
postMessage
({
"userIdList"
:
userIdList
.
join
(
','
)});
webkit
.
messageHandlers
.
inviteUsers
.
postMessage
({
"userIdList"
:
userIdList
.
join
(
','
)});
}
}
...
...
public_new/js/share.js
View file @
cd102226
...
@@ -154,6 +154,8 @@ $(function() {
...
@@ -154,6 +154,8 @@ $(function() {
coview_api
.
JoinRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
coview_api
.
JoinRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
}
else
if
(
collaborationJoinFlg
==
'0'
)
{
}
else
if
(
collaborationJoinFlg
==
'0'
)
{
coview_api
.
CreateRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
coview_api
.
CreateRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
}
else
if
(
collaborationJoinFlg
==
'2'
)
{
coview_api
.
JoinRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
}
}
Coview_moveToVideoShareArea
();
Coview_moveToVideoShareArea
();
break
;
break
;
...
@@ -216,7 +218,11 @@ function Coview_moveToVideoShareArea() {
...
@@ -216,7 +218,11 @@ function Coview_moveToVideoShareArea() {
function
Coview_exitCollaboration
()
{
function
Coview_exitCollaboration
()
{
coview_api
.
LeaveRoom
();
coview_api
.
LeaveRoom
();
CHAT_UI
.
joinRoom
(
CHAT
.
globalLoginParameter
.
roomId
,
CHAT
.
globalLoginParameter
.
name
);
if
(
collaborationJoinFlg
!=
'2'
)
{
CHAT_UI
.
joinRoom
(
CHAT
.
globalLoginParameter
.
roomId
,
CHAT
.
globalLoginParameter
.
name
);
}
else
{
android
.
openCommunicationHome
();
}
}
}
function
Coview_changeHost
(
userId
)
{
function
Coview_changeHost
(
userId
)
{
...
...
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