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
e265b0d0
Commit
e265b0d0
authored
Mar 22, 2021
by
Takatoshi Miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
アーカイブ詳細 新デザイン適用
parent
5bd8f0ba
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
78 additions
and
217 deletions
+78
-217
public/css/chat.css
+1
-116
public/images/capture.png
+0
-0
public/index.html
+32
-28
public/js/chat-ui.js
+27
-40
public/js/language_en.js
+6
-11
public/js/language_ja.js
+6
-11
public/js/language_ko.js
+6
-11
No files found.
public/css/chat.css
View file @
e265b0d0
...
@@ -1274,84 +1274,7 @@ input:checked + .tab_class + .content_class {
...
@@ -1274,84 +1274,7 @@ input:checked + .tab_class + .content_class {
/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* Archive STYLE */
/* Archive STYLE */
/* --------------------------------------------------- */
/* --------------------------------------------------- */
/**************************** archive list *************************/
.inbox_archive
{
width
:
100%
;
}
#archive_list
{
margin
:
0
;
padding
:
5px
5px
5px
;
overflow-y
:
scroll
;
white-space
:
nowrap
;
-webkit-overflow-scrolling
:
touch
;
height
:
calc
(
100vh
-
200px
);
}
.archive_data
{
overflow-y
:
scroll
;
clear
:
both
;
}
.archive_img
{
float
:
left
;
padding
:
10px
;
width
:
20%
;
}
.archive_img
img
{
height
:
80px
;
}
.archive_ib
{
float
:
left
;
padding
:
15px
;
width
:
80%
;
line-height
:
1.8
;
}
.archive_date_font
{
font
:
1rem
!important
;
color
:
#464646
;
}
.archive_date
{
display
:
inline-flex
;
max-width
:
100%
;
}
.archive_file_name
{
overflow-x
:
hidden
;
}
.type_image
{
text-align
:
center
;
background-color
:
seagreen
;
color
:
white
;
}
.type_movie
{
text-align
:
center
;
background-color
:
blue
;
color
:
white
;
}
.type_sound
{
text-align
:
center
;
background-color
:
orange
;
color
:
white
;
}
.type_document
{
/* 今回のリリースに文書とその他は含めないため非表示 */
display
:
none
;
}
.type_other
{
/* 今回のリリースに文書とその他は含めないため非表示 */
display
:
none
;
}
.player
{
.player
{
background-color
:
black
;
background-color
:
black
;
text-align
:
center
;
text-align
:
center
;
...
@@ -1367,44 +1290,6 @@ input:checked + .tab_class + .content_class {
...
@@ -1367,44 +1290,6 @@ input:checked + .tab_class + .content_class {
width
:
100%
;
width
:
100%
;
}
}
.archive_info
{
overflow-y
:
auto
;
white-space
:
nowrap
;
-webkit-overflow-scrolling
:
touch
;
height
:
calc
(
50vh
-
50px
);
}
.fileName
,
.insertDate
,
.chatRoomName
,
.saveUser
,
.joinUser
{
padding
:
10px
;
padding-left
:
10px
;
display
:
inline
;
}
.save_user_list
,
.join_user_list
{
overflow-x
:
auto
;
white-space
:
nowrap
;
-webkit-overflow-scrolling
:
touch
;
}
.archive_user
{
display
:
inline-block
;
width
:
100px
;
margin
:
10px
;
}
.archive_user
img
{
border-radius
:
50%
;
width
:
100px
;
height
:
100px
;
object-fit
:
cover
;
}
.archive_user
p
{
text-align
:
center
;
overflow
:
hidden
;
}
/**************************** archive *************************/
.archive_list
ul
{
.archive_list
ul
{
padding
:
0
;
padding
:
0
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
...
...
public/images/capture.png
0 → 100644
View file @
e265b0d0
2.74 KB
public/index.html
View file @
e265b0d0
...
@@ -783,37 +783,41 @@
...
@@ -783,37 +783,41 @@
<script
id=
"archive-detail-template"
type=
"text/template"
>
<script
id=
"archive-detail-template"
type=
"text/template"
>
<
div
id
=
"archive_player"
class
=
"player"
>
<
div
id
=
"archive_player"
class
=
"player"
>
<
/div
>
<
/div
>
<
ul
class
=
"archive_info"
>
<
div
class
=
"archive_detail_desc"
>
<
li
class
=
"fileName"
>
<
div
class
=
"archive_detail_fl_nm item"
>
<
h5
>
{{
fileNameTitle
}}
<
/h5
>
<
h2
class
=
"ttl"
id
=
"archiveFileName"
>
FileName
<
/h2
>
<
p
class
=
"text-truncate"
>
{{
fileName
}}
<
/p
>
<
span
>
{{
fileName
}}
<
/span
>
<
/li
>
<
/div
>
<
li
class
=
"insertDate"
>
<
div
class
=
"archive_detail_sv_date item"
>
<
h5
>
{{
saveDateTitle
}}
<
/h5
>
<
h2
class
=
"ttl"
id
=
"archiveInsertDate"
>
InsertDate
<
/h2
>
<
p
class
=
"text-truncate"
>
{{
insertDate
}}
<
/p
>
<
span
>
{{
insertDate
}}
<
/span
>
<
/li
>
<
/div
>
<
li
class
=
"chatRoomName"
>
<
div
class
=
"archive_detail_room_nm item"
>
<
h5
>
{{
roomNameTitle
}}
<
/h5
>
<
h2
class
=
"ttl"
id
=
"archiveRoomName"
>
ChatRoomName
<
/h2
>
<
p
class
=
"text-truncate"
>
{{
chatRoomName
}}
<
span
>
{{
chatRoomName
}}
<
/span
>
<
input
type
=
"button"
value
=
">"
id
=
"joinChatRoom"
>
<
/div
>
<
/p
>
<
div
class
=
"archive_detail_sv_user item"
>
<
/li
>
<
h2
class
=
"ttl"
id
=
"archiveSaveUser"
>
SaveUser
<
/h2
>
<
li
class
=
"saveUser"
>
<
div
class
=
"d-flex flex-row"
>
<
h5
>
{{
saveUserTitle
}}
<
/h5
>
<
div
class
=
"d-flex flex-column"
>
<
ul
class
=
"save_user_list"
id
=
"save_user"
>
<
img
src
=
"{{profileImage}}"
alt
=
"プロフィール画像"
>
<
/ul
>
<
span
>
{{
userName
}}
<
/span
>
<
/li
>
<
/div
>
<
li
class
=
"joinUser"
>
<
/div
>
<
h5
>
{{
attendUserTitle
}}
<
/h5
>
<
/div
>
<
ul
class
=
"join_user_list"
id
=
"join_user"
>
<
div
class
=
"archive_detail_user_list item"
>
<
h2
class
=
"ttl"
id
=
"archiveAttendUser"
>
AttendUser
<
/h2
>
<
ul
class
=
"d-flex flex-row"
id
=
"attendUser"
>
<
/ul
>
<
/ul
>
<
/
li
>
<
/
div
>
<
/
ul
>
<
/
div
>
</script>
</script>
<script
id=
"archive-user-template"
type=
"text/template"
>
<script
id=
"archive-user-template"
type=
"text/template"
>
<
li
class
=
"archive_user"
>
<
li
>
<
img
src
=
"{{profileImage}}"
alt
=
""
>
<
div
class
=
"d-flex flex-column attendUser"
>
<
p
>
{{
userName
}}
<
/p
>
<
img
src
=
"{{profileImage}}"
alt
=
"プロフィール画像"
>
<
span
>
{{
userName
}}
<
/span
>
<
/div
>
<
/li
>
<
/li
>
</script>
</script>
<script
src=
"./socket.io/dist/socket.io.js"
></script>
<script
src=
"./socket.io/dist/socket.io.js"
></script>
...
...
public/js/chat-ui.js
View file @
e265b0d0
...
@@ -894,6 +894,12 @@ CHAT_UI.htmlElementTextInitialize = function(languageCode) {
...
@@ -894,6 +894,12 @@ CHAT_UI.htmlElementTextInitialize = function(languageCode) {
$
(
"#coviewCapture"
).
text
(
getLocalizedString
(
"coviewCapture"
))
$
(
"#coviewCapture"
).
text
(
getLocalizedString
(
"coviewCapture"
))
$
(
"#archiveCancel"
).
text
(
getLocalizedString
(
"archiveCancel"
))
$
(
"#archiveCancel"
).
text
(
getLocalizedString
(
"archiveCancel"
))
$
(
"#archiveCancel"
).
text
(
getLocalizedString
(
"archiveCancel"
))
$
(
"#archiveFileName"
).
text
(
getLocalizedString
(
"archiveFileName"
))
$
(
"#archiveInsertDate"
).
text
(
getLocalizedString
(
"archiveInsertDate"
))
$
(
"#archiveRoomName"
).
text
(
getLocalizedString
(
"archiveRoomName"
))
$
(
"#archiveSaveUser"
).
text
(
getLocalizedString
(
"archiveSaveUser"
))
$
(
"#archiveAttendUser"
).
text
(
getLocalizedString
(
"archiveAttendUser"
))
}
}
// 画像の読み込みが全て終わったタイミングでコールバック実行
// 画像の読み込みが全て終わったタイミングでコールバック実行
...
@@ -1331,7 +1337,6 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
...
@@ -1331,7 +1337,6 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
if
(
IS_ONLINE
==
'true'
)
{
if
(
IS_ONLINE
==
'true'
)
{
CHAT_DB
.
updateArchiveDetail
(
archiveId
);
CHAT_DB
.
updateArchiveDetail
(
archiveId
);
}
}
// アーカイブ詳細取得
// アーカイブ詳細取得
var
archive
=
CHAT_DB
.
getArchiveDetail
(
archiveId
);
var
archive
=
CHAT_DB
.
getArchiveDetail
(
archiveId
);
...
@@ -1340,17 +1345,14 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
...
@@ -1340,17 +1345,14 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
var
roomId
=
archive
.
roomId
;
var
roomId
=
archive
.
roomId
;
var
roomInfo
=
CHAT_DB
.
getChatRoomInfo
(
roomId
);
var
roomInfo
=
CHAT_DB
.
getChatRoomInfo
(
roomId
);
// アーカイブ情報を表示
// アーカイブ情報を表示
let
html
=
Mustache
.
render
(
archiveDetailTemplate
,
{
let
html
=
Mustache
.
render
(
archiveDetailTemplate
,
{
fileNameTitle
:
getLocalizedString
(
"fileNameTitle"
),
fileName
:
archive
.
archiveName
,
fileName
:
archive
.
archiveName
,
insertDate
:
archive
.
archiveDate
,
saveDateTitle
:
getLocalizedString
(
"saveDateTitle"
),
chatRoomName
:
roomInfo
.
chatRoomName
,
insertDate
:
archive
.
archiveDate
,
profileImage
:
""
,
roomNameTitle
:
getLocalizedString
(
"roomNameTitle"
),
userName
:
archive
.
userName
chatRoomName
:
roomInfo
.
chatRoomName
,
});
saveUserTitle
:
getLocalizedString
(
"saveUserTitle"
),
attendUserTitle
:
getLocalizedString
(
"attendUserTitle"
)
});
let
obj
=
$
(
jQuery
.
parseHTML
(
html
));
let
obj
=
$
(
jQuery
.
parseHTML
(
html
));
$
(
'#archive_detail'
).
append
(
obj
);
$
(
'#archive_detail'
).
append
(
obj
);
...
@@ -1364,7 +1366,7 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
...
@@ -1364,7 +1366,7 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
break
;
break
;
case
2
:
// 音声
case
2
:
// 音声
$
(
'#archive_player'
).
prepend
(
'<audio class="archive_audio_player" src='
+
archive
.
archiveUrl
+
' controls></audio>'
);
$
(
'#archive_player'
).
prepend
(
'<audio class="archive_audio_player" src='
+
archive
.
archiveUrl
+
' controls></audio>'
);
$
(
'#archive_player'
).
prepend
(
'<img class="archive_player" src='
+
"
https://via.placeholder.com/1280x720
"
+
' </img>'
);
$
(
'#archive_player'
).
prepend
(
'<img class="archive_player" src='
+
"
./images/capture.png
"
+
' </img>'
);
break
;
break
;
case
3
:
// 文書
case
3
:
// 文書
// リリースに文書とその他は含めないため今回は非表示
// リリースに文書とその他は含めないため今回は非表示
...
@@ -1373,35 +1375,9 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
...
@@ -1373,35 +1375,9 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
// リリースに文書とその他は含めないため今回は非表示
// リリースに文書とその他は含めないため今回は非表示
}
}
// チャットルームへのリンク付け
document
.
getElementById
(
'joinChatRoom'
).
onclick
=
function
()
{
socket
.
emit
(
'joinRoom'
,
roomId
,
roomInfo
.
chatRoomName
,
function
()
{
$
(
'#archive_detail'
).
html
(
''
);
$
(
'#messages'
).
html
(
''
);
$
(
'.titleRoomName'
).
text
(
roomInfo
.
chatRoomName
).
data
(
'roomName'
,
roomInfo
.
chatRoomName
);
$
(
'#pills-chat-tab'
).
tab
(
'show'
);
});
}
// ユーザの様式を読み込む
// ユーザの様式を読み込む
const
archiveUserTemplate
=
$
(
'#archive-user-template'
).
html
();
const
archiveUserTemplate
=
$
(
'#archive-user-template'
).
html
();
// 保存ユーザ情報を表示
let
saveUserList
=
archive
.
saveUserId
;
saveUserList
.
forEach
(
function
(
user
)
{
// TODO ユーザIDからユーザ情報を取得
let
html
=
Mustache
.
render
(
archiveUserTemplate
,
{
profileImage
:
"プロフィール画像"
,
userName
:
"ユーザ名"
});
let
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
'click'
,
function
()
{
//TODO ネームカードのポップアップを出す処理
});
$
(
'#save_user'
).
append
(
obj
);
})
// 参加ユーザ情報を表示
// 参加ユーザ情報を表示
let
attendUserList
=
archive
.
attendUserId
;
let
attendUserList
=
archive
.
attendUserId
;
attendUserList
.
forEach
(
function
(
user
)
{
attendUserList
.
forEach
(
function
(
user
)
{
...
@@ -1415,8 +1391,19 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
...
@@ -1415,8 +1391,19 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
//TODO ポップアップを出す処理
//TODO ポップアップを出す処理
});
});
$
(
'#
save_u
ser'
).
append
(
obj
);
$
(
'#
attendU
ser'
).
append
(
obj
);
})
})
CHAT_UI
.
htmlElementTextInitialize
(
navigator
.
language
);
// チャットルームへのリンク付け
document
.
getElementById
(
'joinChatRoom'
).
onclick
=
function
()
{
socket
.
emit
(
'joinRoom'
,
roomId
,
roomInfo
.
chatRoomName
,
function
()
{
$
(
'#archive_detail'
).
html
(
''
);
$
(
'#messages'
).
html
(
''
);
$
(
'.titleRoomName'
).
text
(
roomInfo
.
chatRoomName
).
data
(
'roomName'
,
roomInfo
.
chatRoomName
);
$
(
'#pills-chat-tab'
).
tab
(
'show'
);
});
}
// loadingIndicatorを非表示
// loadingIndicatorを非表示
CHAT_UI
.
dismissLoadingIndicator
();
CHAT_UI
.
dismissLoadingIndicator
();
...
...
public/js/language_en.js
View file @
e265b0d0
...
@@ -76,16 +76,11 @@ $.lang.en = {
...
@@ -76,16 +76,11 @@ $.lang.en = {
"collaborationAllGroup"
:
"All Group"
,
"collaborationAllGroup"
:
"All Group"
,
"coviewCapture"
:
"Capture"
,
"coviewCapture"
:
"Capture"
,
"archiveListTitle"
:
"Archive"
,
"archiveListTitle"
:
"Archive"
,
"archiveTypeImage"
:
"Image"
,
"archiveTypeMovie"
:
"Movie"
,
"archiveTypeSound"
:
"Sound"
,
"archiveTypeDocument"
:
"Document"
,
"archiveTypeOther"
:
"Other"
,
"archiveDetailTitle"
:
"Detail"
,
"archiveDetailTitle"
:
"Detail"
,
"
fileNameTitle"
:
"File Name
"
,
"
archiveCancel"
:
"Cancel
"
,
"
saveDateTitle"
:
"Save Dat
e"
,
"
archiveFileName"
:
"File Nam
e"
,
"
roomNameTitle"
:
"ChatRoom Nam
e"
,
"
archiveInsertDate"
:
"Insert Dat
e"
,
"
saveUserTitle"
:
"Save User
"
,
"
archiveRoomName"
:
"ChatRoom Name
"
,
"a
ttendUserTitle"
:
"Attend
User"
,
"a
rchiveSaveUser"
:
"Save
User"
,
"archive
Cancel"
:
"Cancel
"
"archive
AttendUser"
:
"Attend User
"
}
}
public/js/language_ja.js
View file @
e265b0d0
...
@@ -76,16 +76,11 @@ $.lang.ja = {
...
@@ -76,16 +76,11 @@ $.lang.ja = {
"collaborationAllGroup"
:
"全グループ"
,
"collaborationAllGroup"
:
"全グループ"
,
"coviewCapture"
:
"キャプチャ"
,
"coviewCapture"
:
"キャプチャ"
,
"archiveListTitle"
:
"アーカイブ"
,
"archiveListTitle"
:
"アーカイブ"
,
"archiveTypeImage"
:
"画像"
,
"archiveTypeMovie"
:
"動画"
,
"archiveTypeSound"
:
"音声"
,
"archiveTypeDocument"
:
"文書"
,
"archiveTypeOther"
:
"その他"
,
"archiveDetailTitle"
:
"詳細"
,
"archiveDetailTitle"
:
"詳細"
,
"
fileNameTitle"
:
"ファイル名
"
,
"
archiveCancel"
:
"キャンセル
"
,
"
saveDateTitle"
:
"保存日
"
,
"
archiveFileName"
:
"ファイル名
"
,
"
roomNameTitle"
:
"チャットルーム名
"
,
"
archiveInsertDate"
:
"保存日
"
,
"
saveUserTitle"
:
"保存ユーザー
"
,
"
archiveRoomName"
:
"チャットルーム名
"
,
"a
ttendUserTitle"
:
"参加
ユーザー"
,
"a
rchiveSaveUser"
:
"保存
ユーザー"
,
"archive
Cancel"
:
"キャンセル
"
"archive
AttendUser"
:
"参加ユーザー
"
}
}
public/js/language_ko.js
View file @
e265b0d0
...
@@ -76,16 +76,11 @@ $.lang.ko = {
...
@@ -76,16 +76,11 @@ $.lang.ko = {
"collaborationAllGroup"
:
"전체그룹"
,
"collaborationAllGroup"
:
"전체그룹"
,
"coviewCapture"
:
"캡처"
,
"coviewCapture"
:
"캡처"
,
"archiveListTitle"
:
"아카이브"
,
"archiveListTitle"
:
"아카이브"
,
"archiveTypeImage"
:
"이미지"
,
"archiveTypeMovie"
:
"동영상"
,
"archiveTypeSound"
:
"음성"
,
"archiveTypeDocument"
:
"문서"
,
"archiveTypeOther"
:
"기타"
,
"archiveDetailTitle"
:
"세부 묘사"
,
"archiveDetailTitle"
:
"세부 묘사"
,
"
fileNameTitle"
:
"파일 이름
"
,
"
archiveCancel"
:
"취소
"
,
"
saveDateTitle"
:
"저장 일
"
,
"
archiveFileName"
:
"파일 이름
"
,
"
roomNameTitle"
:
"대화방 이름
"
,
"
archiveInsertDate"
:
"저장 일
"
,
"
saveUserTitle"
:
"저장 사용자
"
,
"
archiveRoomName"
:
"대화방 이름
"
,
"a
ttendUserTitle"
:
"참여
사용자"
,
"a
rchiveSaveUser"
:
"저장
사용자"
,
"archive
Cancel"
:
"취소
"
"archive
AttendUser"
:
"참여 사용자
"
}
}
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