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
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
72 additions
and
211 deletions
+72
-211
public/css/chat.css
+1
-116
public/images/capture.png
+0
-0
public/index.html
+32
-28
public/js/chat-ui.js
+21
-34
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 {
/* --------------------------------------------------- */
/* Archive STYLE */
/* --------------------------------------------------- */
.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
;
}
/**************************** archive list *************************/
.player
{
background-color
:
black
;
text-align
:
center
;
...
...
@@ -1367,44 +1290,6 @@ input:checked + .tab_class + .content_class {
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
{
padding
:
0
;
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 @@
<script
id=
"archive-detail-template"
type=
"text/template"
>
<
div
id
=
"archive_player"
class
=
"player"
>
<
/div
>
<
ul
class
=
"archive_info
"
>
<
li
class
=
"fileName
"
>
<
h
5
>
{{
fileNameTitle
}}
<
/h5
>
<
p
class
=
"text-truncate"
>
{{
fileName
}}
<
/p
>
<
/
li
>
<
li
class
=
"insertDate
"
>
<
h
5
>
{{
saveDateTitle
}}
<
/h5
>
<
p
class
=
"text-truncate"
>
{{
insertDate
}}
<
/p
>
<
/
li
>
<
li
class
=
"chatRoomName
"
>
<
h
5
>
{{
roomNameTitle
}}
<
/h5
>
<
p
class
=
"text-truncate"
>
{{
chatRoomName
}}
<
input
type
=
"button"
value
=
">"
id
=
"joinChatRoom"
>
<
/p
>
<
/li
>
<
li
class
=
"saveUser
"
>
<
h5
>
{{
saveUserTitle
}}
<
/h5
>
<
ul
class
=
"save_user_list"
id
=
"save_user
"
>
<
/ul
>
<
/li
>
<
li
class
=
"joinUser"
>
<
h5
>
{{
attendUserTitle
}}
<
/h5
>
<
ul
class
=
"join_user_list"
id
=
"join_user
"
>
<
/ul
>
<
/li
>
<
div
class
=
"archive_detail_desc
"
>
<
div
class
=
"archive_detail_fl_nm item
"
>
<
h
2
class
=
"ttl"
id
=
"archiveFileName"
>
FileName
<
/h2
>
<
span
>
{{
fileName
}}
<
/span
>
<
/
div
>
<
div
class
=
"archive_detail_sv_date item
"
>
<
h
2
class
=
"ttl"
id
=
"archiveInsertDate"
>
InsertDate
<
/h2
>
<
span
>
{{
insertDate
}}
<
/span
>
<
/
div
>
<
div
class
=
"archive_detail_room_nm item
"
>
<
h
2
class
=
"ttl"
id
=
"archiveRoomName"
>
ChatRoomName
<
/h2
>
<
span
>
{{
chatRoomName
}}
<
/span
>
<
/div
>
<
div
class
=
"archive_detail_sv_user item"
>
<
h2
class
=
"ttl"
id
=
"archiveSaveUser"
>
SaveUser
<
/h2
>
<
div
class
=
"d-flex flex-row
"
>
<
div
class
=
"d-flex flex-column"
>
<
img
src
=
"{{profileImage}}"
alt
=
"プロフィール画像
"
>
<
span
>
{{
userName
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"archive_detail_user_list item
"
>
<
h2
class
=
"ttl"
id
=
"archiveAttendUser"
>
AttendUser
<
/h2
>
<
ul
class
=
"d-flex flex-row"
id
=
"attendUser"
>
<
/ul
>
<
/div
>
<
/div
>
</script>
<script
id=
"archive-user-template"
type=
"text/template"
>
<
li
class
=
"archive_user"
>
<
img
src
=
"{{profileImage}}"
alt
=
""
>
<
p
>
{{
userName
}}
<
/p
>
<
li
>
<
div
class
=
"d-flex flex-column attendUser"
>
<
img
src
=
"{{profileImage}}"
alt
=
"プロフィール画像"
>
<
span
>
{{
userName
}}
<
/span
>
<
/div
>
<
/li
>
</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) {
$
(
"#coviewCapture"
).
text
(
getLocalizedString
(
"coviewCapture"
))
$
(
"#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) {
if
(
IS_ONLINE
==
'true'
)
{
CHAT_DB
.
updateArchiveDetail
(
archiveId
);
}
// アーカイブ詳細取得
var
archive
=
CHAT_DB
.
getArchiveDetail
(
archiveId
);
...
...
@@ -1342,14 +1347,11 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
// アーカイブ情報を表示
let
html
=
Mustache
.
render
(
archiveDetailTemplate
,
{
fileNameTitle
:
getLocalizedString
(
"fileNameTitle"
),
fileName
:
archive
.
archiveName
,
saveDateTitle
:
getLocalizedString
(
"saveDateTitle"
),
insertDate
:
archive
.
archiveDate
,
roomNameTitle
:
getLocalizedString
(
"roomNameTitle"
),
chatRoomName
:
roomInfo
.
chatRoomName
,
saveUserTitle
:
getLocalizedString
(
"saveUserTitle"
)
,
attendUserTitle
:
getLocalizedString
(
"attendUserTitle"
)
profileImage
:
""
,
userName
:
archive
.
userName
});
let
obj
=
$
(
jQuery
.
parseHTML
(
html
));
$
(
'#archive_detail'
).
append
(
obj
);
...
...
@@ -1364,7 +1366,7 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
break
;
case
2
:
// 音声
$
(
'#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
;
case
3
:
// 文書
// リリースに文書とその他は含めないため今回は非表示
...
...
@@ -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
();
// 保存ユーザ情報を表示
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
;
attendUserList
.
forEach
(
function
(
user
)
{
...
...
@@ -1415,8 +1391,19 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
//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を非表示
CHAT_UI
.
dismissLoadingIndicator
();
...
...
public/js/language_en.js
View file @
e265b0d0
...
...
@@ -76,16 +76,11 @@ $.lang.en = {
"collaborationAllGroup"
:
"All Group"
,
"coviewCapture"
:
"Capture"
,
"archiveListTitle"
:
"Archive"
,
"archiveTypeImage"
:
"Image"
,
"archiveTypeMovie"
:
"Movie"
,
"archiveTypeSound"
:
"Sound"
,
"archiveTypeDocument"
:
"Document"
,
"archiveTypeOther"
:
"Other"
,
"archiveDetailTitle"
:
"Detail"
,
"
fileNameTitle"
:
"File Name
"
,
"
saveDateTitle"
:
"Save Dat
e"
,
"
roomNameTitle"
:
"ChatRoom Nam
e"
,
"
saveUserTitle"
:
"Save User
"
,
"a
ttendUserTitle"
:
"Attend
User"
,
"archive
Cancel"
:
"Cancel
"
"
archiveCancel"
:
"Cancel
"
,
"
archiveFileName"
:
"File Nam
e"
,
"
archiveInsertDate"
:
"Insert Dat
e"
,
"
archiveRoomName"
:
"ChatRoom Name
"
,
"a
rchiveSaveUser"
:
"Save
User"
,
"archive
AttendUser"
:
"Attend User
"
}
public/js/language_ja.js
View file @
e265b0d0
...
...
@@ -76,16 +76,11 @@ $.lang.ja = {
"collaborationAllGroup"
:
"全グループ"
,
"coviewCapture"
:
"キャプチャ"
,
"archiveListTitle"
:
"アーカイブ"
,
"archiveTypeImage"
:
"画像"
,
"archiveTypeMovie"
:
"動画"
,
"archiveTypeSound"
:
"音声"
,
"archiveTypeDocument"
:
"文書"
,
"archiveTypeOther"
:
"その他"
,
"archiveDetailTitle"
:
"詳細"
,
"
fileNameTitle"
:
"ファイル名
"
,
"
saveDateTitle"
:
"保存日
"
,
"
roomNameTitle"
:
"チャットルーム名
"
,
"
saveUserTitle"
:
"保存ユーザー
"
,
"a
ttendUserTitle"
:
"参加
ユーザー"
,
"archive
Cancel"
:
"キャンセル
"
"
archiveCancel"
:
"キャンセル
"
,
"
archiveFileName"
:
"ファイル名
"
,
"
archiveInsertDate"
:
"保存日
"
,
"
archiveRoomName"
:
"チャットルーム名
"
,
"a
rchiveSaveUser"
:
"保存
ユーザー"
,
"archive
AttendUser"
:
"参加ユーザー
"
}
public/js/language_ko.js
View file @
e265b0d0
...
...
@@ -76,16 +76,11 @@ $.lang.ko = {
"collaborationAllGroup"
:
"전체그룹"
,
"coviewCapture"
:
"캡처"
,
"archiveListTitle"
:
"아카이브"
,
"archiveTypeImage"
:
"이미지"
,
"archiveTypeMovie"
:
"동영상"
,
"archiveTypeSound"
:
"음성"
,
"archiveTypeDocument"
:
"문서"
,
"archiveTypeOther"
:
"기타"
,
"archiveDetailTitle"
:
"세부 묘사"
,
"
fileNameTitle"
:
"파일 이름
"
,
"
saveDateTitle"
:
"저장 일
"
,
"
roomNameTitle"
:
"대화방 이름
"
,
"
saveUserTitle"
:
"저장 사용자
"
,
"a
ttendUserTitle"
:
"참여
사용자"
,
"archive
Cancel"
:
"취소
"
"
archiveCancel"
:
"취소
"
,
"
archiveFileName"
:
"파일 이름
"
,
"
archiveInsertDate"
:
"저장 일
"
,
"
archiveRoomName"
:
"대화방 이름
"
,
"a
rchiveSaveUser"
:
"저장
사용자"
,
"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