6
6
//
7
7
8
8
import SwiftUI
9
- import MarkdownUI
10
9
11
10
struct RepoView : View {
12
11
enum EnterType {
@@ -119,7 +118,7 @@ struct ReadmeView: View {
119
118
var content : String
120
119
var body : some View {
121
120
ScrollView {
122
- Markdown ( content. base64Decoded ( ) ?? " failed " )
121
+ MarkdownView ( s : content. base64Decoded ( ) ?? " failed " )
123
122
. padding ( 10 )
124
123
}
125
124
}
@@ -205,15 +204,14 @@ struct RepoCommitLabelView: View {
205
204
HStack {
206
205
if commit. author != nil {
207
206
AsyncImageWithPlaceholder ( size: . tinySize, url: commit. author? . avatarUrl ?? " " )
208
- // Text(commit.author?.login ?? "").bold()
209
207
ButtonGoGitHubWeb ( url: commit. author? . login ?? " " , text: commit. author? . login ?? " " , ignoreHost: true , bold: true )
210
208
211
209
} else {
212
210
Text ( commit. commit. author. name ?? " " )
213
211
}
214
212
ButtonGoGitHubWeb ( url: " https://github.com/ \( repo. fullName) /commit/ \( commit. sha ?? " " ) " , text: " commit " )
215
213
} // end HStack
216
- Markdown ( commit. commit. message ?? " " )
214
+ MarkdownView ( s : commit. commit. message ?? " " )
217
215
} // end VStack
218
216
}
219
217
}
@@ -225,7 +223,7 @@ struct IssueLabelView: View {
225
223
GitHubApiTimeView ( timeStr: issue. updatedAt)
226
224
HStack {
227
225
Text ( issue. title)
228
- . font ( . title3 )
226
+ . font ( . title2 )
229
227
Text ( " \( issue. comments) 回复 " )
230
228
. foregroundColor ( . secondary)
231
229
. font ( . footnote)
@@ -234,7 +232,7 @@ struct IssueLabelView: View {
234
232
AsyncImageWithPlaceholder ( size: . tinySize, url: issue. user. avatarUrl)
235
233
ButtonGoGitHubWeb ( url: issue. user. login, text: issue. user. login, ignoreHost: true )
236
234
}
237
- Markdown ( issue. body ?? " " )
235
+ MarkdownView ( s : issue. body ?? " " )
238
236
} // end VStack
239
237
}
240
238
}
@@ -252,7 +250,7 @@ struct IssueEventLabelView: View {
252
250
}
253
251
HStack {
254
252
Text ( issueEvent. issue. title)
255
- . font ( . title3 )
253
+ . font ( . title2 )
256
254
Text ( " \( issueEvent. issue. comments) 回复 " )
257
255
. foregroundColor ( . secondary)
258
256
. font ( . footnote)
@@ -261,7 +259,7 @@ struct IssueEventLabelView: View {
261
259
AsyncImageWithPlaceholder ( size: . tinySize, url: issueEvent. issue. user. avatarUrl)
262
260
ButtonGoGitHubWeb ( url: issueEvent. issue. user. login, text: issueEvent. issue. user. login, ignoreHost: true )
263
261
}
264
- Markdown ( issueEvent. issue. body ?? " " )
262
+ MarkdownView ( s : issueEvent. issue. body ?? " " )
265
263
} // end VStack
266
264
}
267
265
}
0 commit comments