Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sailassist
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CpjJwWHV
Sailassist
Commits
796ecb2f
Commit
796ecb2f
authored
Aug 26, 2024
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
チャットが停止する場合があるので、既読タイミングを変更
チャット日付ダークモード・ライトモード対応 ECAのユーザー名対応
parent
6062359d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
28 deletions
+24
-28
project.pbxproj
Seilassist/Sailassist.xcodeproj/project.pbxproj
+3
-3
Contents.json
...s/ColorSet/TextColor/ChatDateColor.colorset/Contents.json
+6
-6
ChatView.swift
Seilassist/Sailassist/Chat/ChatView.swift
+6
-11
MyChatContentView.swift
Seilassist/Sailassist/Chat/View/MyChatContentView.swift
+1
-1
SharingData.swift
Seilassist/Sailassist/SharingData/SharingData.swift
+7
-7
MainTabView.swift
Seilassist/Sailassist/Tab/MainTabView.swift
+1
-0
No files found.
Seilassist/Sailassist.xcodeproj/project.pbxproj
View file @
796ecb2f
...
...
@@ -1307,7 +1307,7 @@
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
4
7
;
CURRENT_PROJECT_VERSION
=
4
8
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
...
...
@@ -1353,7 +1353,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
4
7
;
CURRENT_PROJECT_VERSION
=
4
8
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
...
...
@@ -1536,7 +1536,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
4
7
;
CURRENT_PROJECT_VERSION
=
4
8
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
...
...
Seilassist/Sailassist/Assets.xcassets/ColorSet/TextColor/ChatDateColor.colorset/Contents.json
View file @
796ecb2f
...
...
@@ -5,9 +5,9 @@
"color-space"
:
"srgb"
,
"components"
:
{
"alpha"
:
"1.000"
,
"blue"
:
"0x
7E
"
,
"green"
:
"0x
7E
"
,
"red"
:
"0x
7E
"
"blue"
:
"0x
49
"
,
"green"
:
"0x
49
"
,
"red"
:
"0x
49
"
}
},
"idiom"
:
"universal"
...
...
@@ -23,9 +23,9 @@
"color-space"
:
"srgb"
,
"components"
:
{
"alpha"
:
"1.000"
,
"blue"
:
"0x
AF
"
,
"green"
:
"0x
AF
"
,
"red"
:
"0x
AF
"
"blue"
:
"0x
DE
"
,
"green"
:
"0x
DE
"
,
"red"
:
"0x
DE
"
}
},
"idiom"
:
"universal"
...
...
Seilassist/Sailassist/Chat/ChatView.swift
View file @
796ecb2f
...
...
@@ -16,14 +16,14 @@ struct ChatView: View {
var
body
:
some
View
{
ZStack
{
if
message
.
mode
==
true
{
if
message
.
mode
==
true
{
LinearGradient
(
gradient
:
Gradient
(
colors
:
[
.
chatEmargencyColor1
,
.
chatEmargencyColor2
]),
startPoint
:
.
top
,
endPoint
:
.
bottom
)
.
ignoresSafeArea
()
}
VStack
(
spacing
:
0
){
VStack
(
spacing
:
0
)
{
ChatTitleView
(
isShowMember
:
$
isShowMember
,
isNotification
:
$
isNotification
)
ZStack
{
ZStack
{
ScrollViewReader
{
proxy
in
ScrollView
(
.
vertical
)
{
VStack
{
...
...
@@ -60,21 +60,16 @@ struct ChatView: View {
//Warrningモードは既読は返さない
if
message
.
messages
.
last
?
.
message
!=
nil
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
)
{
let
getMessage
=
GetMessage
()
getMessage
.
readNotification
()
}
}
message
.
viewCnt
=
0
}
}
}
.
onChange
(
of
:
message
.
mode
)
{
newValue
in
withAnimation
{
if
let
id
=
message
.
messages
.
last
?
.
messageId
{
proxy
.
scrollTo
(
id
,
anchor
:
.
bottom
)
}
}
}
.
onReceive
(
message
.
$
messages
)
{
(
value
)
in
withAnimation
{
guard
!
value
.
isEmpty
else
{
return
}
...
...
@@ -128,7 +123,7 @@ struct AlertChatMessage: View {
.
frame
(
width
:
20
,
height
:
1
)
Text
(
"Warrning mode start "
+
DateTextLib
.
ISO86012FormatText
(
message
.
time
,
format
:
"yyyy/MM/dd HH:mm"
,
errFormat
:
""
))
.
font
(
FontStyle
.
DateText
.
font
)
.
foregroundColor
(
ColorSet
.
BodyDescriptiion
.
color
)
.
foregroundColor
(
ColorSet
.
ChatDate
.
color
)
Rectangle
()
.
fill
(
colorScheme
==
.
light
?
.
black
:
.
white
)
.
frame
(
width
:
20
,
height
:
1
)
...
...
Seilassist/Sailassist/Chat/View/MyChatContentView.swift
View file @
796ecb2f
...
...
@@ -59,7 +59,7 @@ struct MyChatContentView: View {
Text
(
String
(
viewerCnt
.
0
))
}
.
font
(
FontStyle
.
DateText
.
font
)
.
foregroundColor
(
ColorSet
.
BodyDescriptiion
.
color
)
.
foregroundColor
(
ColorSet
.
ChatDate
.
color
)
}
.
padding
(
.
trailing
,
20
)
}
...
...
Seilassist/Sailassist/SharingData/SharingData.swift
View file @
796ecb2f
...
...
@@ -165,7 +165,7 @@ class SharingData{
task
.
id
=
value
.
id
task
.
areaId
=
value
.
areaId
task
.
userName
=
value
.
userName
task
.
taskName
=
value
.
n
ame
task
.
taskName
=
Preferences
.
UserN
ame
task
.
noticeRange
=
value
.
swNotice
task
.
startRange
=
value
.
swStart
task
.
finishRange
=
value
.
swFinish
...
...
@@ -178,7 +178,7 @@ class SharingData{
task
.
id
=
value
.
id
task
.
areaId
=
value
.
areaId
task
.
userName
=
value
.
userName
task
.
taskName
=
value
.
n
ame
task
.
taskName
=
Preferences
.
UserN
ame
task
.
noticeRange
=
value
.
swNotice
task
.
startRange
=
value
.
swStart
task
.
finishRange
=
value
.
swFinish
...
...
@@ -190,7 +190,7 @@ class SharingData{
case
EcaOperation
.
Finish
:
task
.
id
=
value
.
id
task
.
areaId
=
value
.
areaId
task
.
userName
=
value
.
u
serName
task
.
userName
=
Preferences
.
U
serName
task
.
taskName
=
value
.
name
task
.
noticeRange
=
value
.
swNotice
task
.
startRange
=
value
.
swStart
...
...
@@ -203,7 +203,7 @@ class SharingData{
case
EcaOperation
.
End
:
task
.
id
=
value
.
id
task
.
areaId
=
value
.
areaId
task
.
userName
=
value
.
u
serName
task
.
userName
=
Preferences
.
U
serName
task
.
taskName
=
value
.
name
task
.
noticeRange
=
value
.
swNotice
task
.
startRange
=
value
.
swStart
...
...
@@ -216,7 +216,7 @@ class SharingData{
case
EcaOperation
.
Incomplete
:
task
.
id
=
value
.
id
task
.
areaId
=
value
.
areaId
task
.
userName
=
value
.
u
serName
task
.
userName
=
Preferences
.
U
serName
task
.
taskName
=
value
.
name
task
.
noticeRange
=
value
.
swNotice
task
.
startRange
=
value
.
swStart
...
...
@@ -229,7 +229,7 @@ class SharingData{
case
EcaOperation
.
Cancel
:
task
.
id
=
value
.
id
task
.
areaId
=
value
.
areaId
task
.
userName
=
value
.
u
serName
task
.
userName
=
Preferences
.
U
serName
task
.
taskName
=
value
.
name
task
.
noticeRange
=
value
.
swNotice
task
.
startRange
=
value
.
swStart
...
...
@@ -242,7 +242,7 @@ class SharingData{
case
EcaOperation
.
Change
:
task
.
id
=
value
.
id
task
.
areaId
=
value
.
areaId
task
.
userName
=
value
.
u
serName
task
.
userName
=
Preferences
.
U
serName
task
.
taskName
=
value
.
name
task
.
noticeRange
=
value
.
swNotice
task
.
startRange
=
value
.
swStart
...
...
Seilassist/Sailassist/Tab/MainTabView.swift
View file @
796ecb2f
...
...
@@ -219,6 +219,7 @@ struct CustomTabBar: View {
let
signalRService
=
SignalR
()
signalRService
.
chatMode
(
mode
:
chatMode
,
completion
:
responseChatMode
)
SharingData
.
message
.
sendInf
=
true
SharingData
.
message
.
mode
=
chatMode
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
3.0
)
{
restartChatMode
()
...
...
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