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
bc275966
Commit
bc275966
authored
Apr 12, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release_sp3' into 'feature/abcomm_sp3_archive'
# Conflicts: # public_new/archive_detail.html
parents
1943f996
3af4cef7
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
58 additions
and
30 deletions
+58
-30
public_new/archive.html
+1
-1
public_new/chat.html
+1
-1
public_new/chat_add_user.html
+3
-3
public_new/chat_make_room.html
+2
-2
public_new/chat_room.html
+2
-0
public_new/css/common.css
+1
-1
public_new/js/chat-add-user.js
+5
-0
public_new/js/chat-ui.js
+15
-7
public_new/js/chat.js
+7
-7
public_new/js/chatMakeRoom.js
+6
-0
public_new/js/constant.js
+1
-0
public_new/js/language_ja.js
+1
-1
public_new/template/template_make_room_group_user_list.html
+3
-3
public_new/template/template_make_room_user_list.html
+2
-2
public_new/template/template_my_message.html
+4
-1
public_new/template/template_user_message.html
+4
-1
No files found.
public_new/archive.html
View file @
bc275966
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<script>
<script>
window
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
window
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
CHAT_
DB
.
getArchiveList
();
CHAT_
UI
.
refreshArchiveScreen
();
});
});
</script>
</script>
</head>
</head>
...
...
public_new/chat.html
View file @
bc275966
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</div>
</div>
<!-- タブ -->
<!-- タブ -->
<div
class=
"content tabs"
>
<div
class=
"content tabs"
>
<input
id=
"tabGroup"
type=
"radio"
name=
"tab_item"
checked
>
<input
id=
"tabGroup"
type=
"radio"
name=
"tab_item"
>
<label
class=
"tab_item"
for=
"tabGroup"
>
グループ
</label>
<label
class=
"tab_item"
for=
"tabGroup"
>
グループ
</label>
<input
id=
"tabDM"
type=
"radio"
name=
"tab_item"
>
<input
id=
"tabDM"
type=
"radio"
name=
"tab_item"
>
<label
class=
"tab_item"
for=
"tabDM"
>
DM
</label>
<label
class=
"tab_item"
for=
"tabDM"
>
DM
</label>
...
...
public_new/chat_add_user.html
View file @
bc275966
...
@@ -24,13 +24,13 @@
...
@@ -24,13 +24,13 @@
<div
class=
"col-4 pr-0"
>
<div
class=
"col-4 pr-0"
>
<div
class=
"nav-item"
>
<div
class=
"nav-item"
>
<div
class=
"nav_prev"
>
<div
class=
"nav_prev"
>
<a
href=
"chat_room.html"
><span>
ルーム
</span></a>
<a
href=
"chat_room.html"
><span
style=
"font-size: 13px;"
>
ルーム
</span></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-4 p-0"
>
<div
class=
"col-4 p-0"
>
<div
class=
"nav-item p-0"
>
<div
class=
"nav-item p-0"
>
<h1
class=
"nav-ttl"
id=
"
title"
style=
"font-size: 13px;"
>
ユーザ
招待
</h1>
<h1
class=
"nav-ttl"
id=
"
addUserTitle"
>
ユーザー
招待
</h1>
</div>
</div>
</div>
</div>
<div
class=
"col-4 pl-0"
>
<div
class=
"col-4 pl-0"
>
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
</div>
</div>
</div>
</div>
<div
class=
"chat_make_room"
>
<div
class=
"chat_make_room"
>
<ul
class=
"overlay_src_msg"
>
<ul
class=
"overlay_src_msg"
style=
"padding-inline-start: 20px;"
>
</ul>
</ul>
</div>
</div>
<!-- ルーム解説ボタン -->
<!-- ルーム解説ボタン -->
...
...
public_new/chat_make_room.html
View file @
bc275966
...
@@ -24,13 +24,13 @@
...
@@ -24,13 +24,13 @@
<div
class=
"col-4 pr-0"
>
<div
class=
"col-4 pr-0"
>
<div
class=
"nav-item"
>
<div
class=
"nav-item"
>
<div
class=
"nav_prev"
>
<div
class=
"nav_prev"
>
<a
href=
"chat.html"
><span>
チャット
</span></a>
<a
href=
"chat.html"
><span
style=
"font-size: 13px;"
>
チャット
</span></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-4 p-0"
>
<div
class=
"col-4 p-0"
>
<div
class=
"nav-item p-0"
>
<div
class=
"nav-item p-0"
>
<h1
class=
"nav-ttl"
id=
"
title"
style=
"font-size: 13px;
"
>
ルーム開設
</h1>
<h1
class=
"nav-ttl"
id=
"
makeRoomTitle
"
>
ルーム開設
</h1>
</div>
</div>
</div>
</div>
<div
class=
"col-4 pl-0"
>
<div
class=
"col-4 pl-0"
>
...
...
public_new/chat_room.html
View file @
bc275966
...
@@ -178,9 +178,11 @@
...
@@ -178,9 +178,11 @@
$
(
"#pictureModal"
).
load
(
"./modal_chat_picture.html"
);
$
(
"#pictureModal"
).
load
(
"./modal_chat_picture.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
getGlobalParameter
();
android
.
saveSelectedUserList
(
""
);
}
else
{
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
...
...
public_new/css/common.css
View file @
bc275966
...
@@ -6,7 +6,7 @@ body {
...
@@ -6,7 +6,7 @@ body {
font-family
:
"Noto Sans JP"
,
sans-serif
;
font-family
:
"Noto Sans JP"
,
sans-serif
;
margin
:
0
auto
;
margin
:
0
auto
;
color
:
#323743
;
color
:
#323743
;
margin-bottom
:
6
0px
;
margin-bottom
:
7
0px
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
}
}
a
:hover
{
a
:hover
{
...
...
public_new/js/chat-add-user.js
View file @
bc275966
$
(
function
()
{
$
(
function
()
{
// メンバー検索
// メンバー検索
$
(
'#chat_add_user .search_form input[type="search"]'
).
click
(
function
(
e
){
//画面タイトル設定
let
contactListTitle
=
getLocalizedString
(
"userSearch"
);
$
(
'#addUserTitle'
).
text
(
contactListTitle
);
})
$
(
'#chat_add_user .search_form input[type="search"]'
).
keyup
(
function
(
e
){
$
(
'#chat_add_user .search_form input[type="search"]'
).
keyup
(
function
(
e
){
if
(
e
.
key
==
"Enter"
||
e
.
KeyCode
==
13
)
{
if
(
e
.
key
==
"Enter"
||
e
.
KeyCode
==
13
)
{
...
...
public_new/js/chat-ui.js
View file @
bc275966
...
@@ -1014,8 +1014,17 @@ CHAT_UI.refreshContactScreen = function() {
...
@@ -1014,8 +1014,17 @@ CHAT_UI.refreshContactScreen = function() {
}
}
CHAT_UI
.
refreshRoomList
=
function
(
roomType
)
{
CHAT_UI
.
refreshRoomList
=
function
(
roomType
)
{
var
beforeRoomType
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
beforeRoomType
=
android
.
getBeforeRoomType
();
}
if
(
beforeRoomType
!=
null
)
{
roomType
=
beforeRoomType
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
clearBeforeRoomType
();
}
}
CHAT_UI
.
showLoadingIndicator
();
CHAT_UI
.
showLoadingIndicator
();
console
.
log
(
'START'
);
if
(
roomType
==
chatRoomType
.
DM
)
{
if
(
roomType
==
chatRoomType
.
DM
)
{
$
(
'#tabDM'
).
prop
(
'checked'
,
true
);
$
(
'#tabDM'
).
prop
(
'checked'
,
true
);
}
else
{
}
else
{
...
@@ -1231,6 +1240,7 @@ CHAT_UI.loadMessages = function(roomId, roomName) {
...
@@ -1231,6 +1240,7 @@ CHAT_UI.loadMessages = function(roomId, roomName) {
profileImage
:
message
.
profileUrl
,
profileImage
:
message
.
profileUrl
,
createdAtDay
:
messageTime
.
createdAtDay
,
createdAtDay
:
messageTime
.
createdAtDay
,
createdAtTime
:
messageTime
.
createdAtTime
,
createdAtTime
:
messageTime
.
createdAtTime
,
unreadCount
:
message
.
unreadCount
,
isToday
:
isToday
isToday
:
isToday
});
});
html
=
message
.
message
.
includes
(
'attachedImages'
)
||
message
.
message
.
includes
(
'attachedVideos'
)
?
CHAT_UTIL
.
htmlDecode
(
html
)
:
html
;
html
=
message
.
message
.
includes
(
'attachedImages'
)
||
message
.
message
.
includes
(
'attachedVideos'
)
?
CHAT_UTIL
.
htmlDecode
(
html
)
:
html
;
...
@@ -1390,7 +1400,7 @@ CHAT_UI.refreshAllGroupSearch = function(paramGroupId) {
...
@@ -1390,7 +1400,7 @@ CHAT_UI.refreshAllGroupSearch = function(paramGroupId) {
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
updateGroupInfo
(
groupId
);
android
.
updateGroupInfo
(
groupId
);
}
else
{
}
else
{
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
(
{
groupId
}
);
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
(
groupId
);
}
}
}
}
...
@@ -1898,15 +1908,13 @@ CHAT_UI.checkForMakeChat = function(checkMemberId) {
...
@@ -1898,15 +1908,13 @@ CHAT_UI.checkForMakeChat = function(checkMemberId) {
CHAT
.
globalSelectedUserList
=
CHAT
.
globalSelectedUserList
.
filter
(
function
(
shopMemberId
)
{
CHAT
.
globalSelectedUserList
=
CHAT
.
globalSelectedUserList
.
filter
(
function
(
shopMemberId
)
{
return
checkMemberId
!=
shopMemberId
;
return
checkMemberId
!=
shopMemberId
;
});
});
$
(
'.checkbox'
+
checkMemberId
).
prop
(
"checked"
,
false
).
trigger
(
"change"
);
}
else
{
}
else
{
// add
// add
CHAT
.
globalSelectedUserList
.
push
(
checkMemberId
);
CHAT
.
globalSelectedUserList
.
push
(
checkMemberId
);
$
(
'.checkbox'
+
checkMemberId
).
prop
(
"checked"
,
true
).
trigger
(
"change"
);
}
}
if
(
$
(
'.checkbox'
+
checkMemberId
).
prop
(
'checked'
)){
$
(
'.checkbox'
+
checkMemberId
).
removeAttr
(
'checked'
);
}
else
{
$
(
'.checkbox'
+
checkMemberId
).
attr
(
'checked'
,
true
);
}
let
cnt
=
CHAT
.
globalSelectedUserList
.
length
;
let
cnt
=
CHAT
.
globalSelectedUserList
.
length
;
if
(
CHAT
.
globalSelectedUserList
.
length
>
0
)
{
if
(
CHAT
.
globalSelectedUserList
.
length
>
0
)
{
$
(
'.select_member_num'
).
text
(
cnt
);
$
(
'.select_member_num'
).
text
(
cnt
);
...
...
public_new/js/chat.js
View file @
bc275966
...
@@ -336,14 +336,14 @@ $(function() {
...
@@ -336,14 +336,14 @@ $(function() {
$
(
'#chatTitle'
).
text
(
roomListTitle
);
$
(
'#chatTitle'
).
text
(
roomListTitle
);
});
});
$
(
'#chat_add_user .search_form .cancel'
).
click
(
function
(){
$
(
'#chat_add_user .search_form .cancel'
).
click
(
function
()
{
CHAT
.
globalSelectedUserList
.
forEach
(
function
(
userId
)
{
let
roomListTitle
=
getLocalizedString
(
"inviteUsersSubtitle"
);
if
(
$
(
'.checkbox'
+
userId
).
prop
(
'checked'
))
{
$
(
'#addUserTitle'
).
text
(
roomListTitle
);
$
(
'.checkbox'
+
checkMemberId
).
attr
(
'checked'
,
true
);
}
else
{
$
(
'.checkbox'
+
checkMemberId
).
removeAttr
(
'checked'
);
}
});
});
$
(
'#chatMakeRoom .search_form .cancel'
).
click
(
function
()
{
let
roomListTitle
=
getLocalizedString
(
"createRoomTitle"
);
$
(
'#makeRoomTitle'
).
text
(
roomListTitle
);
});
});
// チャットメンバー検索
// チャットメンバー検索
...
...
public_new/js/chatMakeRoom.js
View file @
bc275966
$
(
function
()
{
$
(
function
()
{
// メンバー検索
// メンバー検索
$
(
'#chatMakeRoom .search_form input[type="search"]'
).
click
(
function
(
e
)
{
let
contactListTitle
=
getLocalizedString
(
"userSearch"
);
$
(
'#makeRoomTitle'
).
text
(
contactListTitle
);
});
$
(
'#chatMakeRoom .search_form input[type="search"]'
).
keyup
(
function
(
e
)
{
$
(
'#chatMakeRoom .search_form input[type="search"]'
).
keyup
(
function
(
e
)
{
//画面タイトル設定
var
keyword
=
$
(
'#chatMakeRoom .search_form input[type="search"]'
).
val
();
var
keyword
=
$
(
'#chatMakeRoom .search_form input[type="search"]'
).
val
();
if
(
e
.
KeyCode
==
13
||
e
.
key
==
"Enter"
)
{
if
(
e
.
KeyCode
==
13
||
e
.
key
==
"Enter"
)
{
if
(
keyword
!=
''
&&
keyword
.
length
!=
0
)
{
if
(
keyword
!=
''
&&
keyword
.
length
!=
0
)
{
...
...
public_new/js/constant.js
View file @
bc275966
...
@@ -37,3 +37,4 @@ const nameCardAreaId = {
...
@@ -37,3 +37,4 @@ const nameCardAreaId = {
}
}
const
messageSeperator
=
"<::split>"
;
const
messageSeperator
=
"<::split>"
;
const
dataMessageScheme
=
"::NOT_MESSAGE"
;
public_new/js/language_ja.js
View file @
bc275966
...
@@ -10,7 +10,7 @@ $.lang.ja = {
...
@@ -10,7 +10,7 @@ $.lang.ja = {
"inviteUsersTitle"
:
"メンバー追加"
,
"inviteUsersTitle"
:
"メンバー追加"
,
"createRoomTitle"
:
"ルーム開設"
,
"createRoomTitle"
:
"ルーム開設"
,
"createRoomSubtitle"
:
"ルーム名"
,
"createRoomSubtitle"
:
"ルーム名"
,
"inviteUsersSubtitle"
:
"ユーザ招待"
,
"inviteUsersSubtitle"
:
"ユーザ
ー
招待"
,
"roomListEmptyString"
:
"入場できるルームがありません。"
,
"roomListEmptyString"
:
"入場できるルームがありません。"
,
"left"
:
"%@ 様が退場しました。"
,
"left"
:
"%@ 様が退場しました。"
,
"join"
:
"%@ 様が入場しました。"
,
"join"
:
"%@ 様が入場しました。"
,
...
...
public_new/template/template_make_room_group_user_list.html
View file @
bc275966
<div
class=
"category"
><div
class=
"category_name"
><span>
{{groupName}}
</span></div></div>
<div
class=
"category"
onclick=
"CHAT_UI.toggleCategory(this);"
><div
class=
"category_name"
><span>
{{groupName}}
</span></div></div>
<ul
class=
"p-0 chat_make_room_list"
>
<ul
class=
"p-0 chat_make_room_list"
>
{{#groupUserList}}
{{#groupUserList}}
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
onclick=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
>
<div
class=
"chat_item_l_chk"
>
<div
class=
"chat_item_l_chk"
>
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label>
<label>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
hange
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
lick
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<span
class=
"checkbox-parts"
></span>
<span
class=
"checkbox-parts"
></span>
</label>
</label>
</div>
</div>
...
...
public_new/template/template_make_room_user_list.html
View file @
bc275966
<ul
class=
"p-0 chat_make_room_list"
>
<ul
class=
"p-0 chat_make_room_list"
>
{{#userList}}
{{#userList}}
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center w-100"
onclick=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
>
<div
class=
"chat_item_l_chk"
>
<div
class=
"chat_item_l_chk"
>
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label>
<label>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
hange
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<input
type=
"checkbox"
id=
"checkbox{{shopMemberId}}"
name=
"checkbox[]"
class=
"checkbox-input checkbox{{shopMemberId}}"
onc
lick
=
"CHAT_UI.checkForMakeChat({{shopMemberId}});"
{{
checked
}}
>
<span
class=
"checkbox-parts"
></span>
<span
class=
"checkbox-parts"
></span>
</label>
</label>
</div>
</div>
...
...
public_new/template/template_my_message.html
View file @
bc275966
...
@@ -6,5 +6,7 @@
...
@@ -6,5 +6,7 @@
{{^isToday}}
{{^isToday}}
<div
class=
"date d-flex flex-column"
><span>
{{createdAtDay}}
</span><span>
{{createdAtTime}}
</span></div>
<div
class=
"date d-flex flex-column"
><span>
{{createdAtDay}}
</span><span>
{{createdAtTime}}
</span></div>
{{/isToday}}
{{/isToday}}
<div
class=
"read d-flex align-items-end"
><span></span></div>
{{#unreadCount}}
<div
class=
"unread d-flex align-items-end"
><span>
{{unreadCount}}
</span></div>
{{/unreadCount}}
</div>
</div>
\ No newline at end of file
public_new/template/template_user_message.html
View file @
bc275966
...
@@ -14,5 +14,7 @@
...
@@ -14,5 +14,7 @@
{{^isToday}}
{{^isToday}}
<div
class=
"date d-flex flex-column"
><span>
{{createdAtDay}}
</span><span>
{{createdAtTime}}
</span></div>
<div
class=
"date d-flex flex-column"
><span>
{{createdAtDay}}
</span><span>
{{createdAtTime}}
</span></div>
{{/isToday}}
{{/isToday}}
<div
class=
"read d-flex align-items-end"
><span></span></div>
{{#unreadCount}}
<div
class=
"unread d-flex align-items-end"
><span>
{{unreadCount}}
</span></div>
{{/unreadCount}}
</div>
</div>
\ No newline at end of file
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