β¨ Add a feature showing Streaks#7
β¨ Add a feature showing Streaks#7techinpark merged 8 commits intotechinpark:mainfrom 5anniversary:feature/streaks
Conversation
techinpark
left a comment
There was a problem hiding this comment.
@5anniversary μ’μκΈ°λ₯ PR μ μ μ£Όμ μ κ°μ¬ν©λλ€. π
μ μμ£Όμ κΈ°λ₯μ΄ λ€μ΄κ°λ€λ©΄ λ§μν΄μ£Όμ λλ‘ μ΅κ΄λ§λ€κΈ°μ λ λμμ΄ λ κ² κ°μ΅λλ€.
문ꡬλ μ΄μ§ λ€λ¬μΌλ©΄ μ’μ κ² κ°μμ μ견 λλ €λ΄
λλ€.
μ μν΄μ£Όμ 문ꡬλ μΆ©λΆν μ’μ§λ§, μλλ₯Ό ν€μκ°λ€λ 컨μ
μ μ΄ν리μΌμ΄μ
μ΄κΈ° λλ¬Έμ
λννμΌλ‘ μ¬μ©μμκ² λ€κ°κ°λ ννμ λ¬Έκ΅¬κ° μΆκ°λλ©΄ λμ±λ μ’μ§ μμκΉ μΆμ΅λλ€
- μ€λ μ²μμΌλ‘ μλλ₯Ό μ¬μμ΄μ
- μλμ μΉμ΄ νΌμ§ NμΌμ΄ λμμ΄μ
- μλκ° λ¬΄λ무λ μλμ§ 10μΌμ΄ λμμ΄μ
μμ κ°μ λλμ΄λ©΄ μ€μ λ‘ μλλ₯Ό ν€μ΄λ€λ λλμ΄ λ€κ² κ°μλ° μ΄λ€ μ견μ΄μ μ§ κΆκΈν©λλ€.
μΆκ°λ‘ 문ꡬ νλ¨μ .separator() νλ λ£μ΄μ£Όμλ©΄ κ°μ¬νκ² μ΅λλ€ π
| let dateFormat = DateFormatter() | ||
| dateFormat.dateFormat = "yyyy-MM-dd" | ||
|
|
||
| guard let timeDateFormat = dateFormat.date(from: self) else {return Date()} |
There was a problem hiding this comment.
| guard let timeDateFormat = dateFormat.date(from: self) else {return Date()} | |
| guard let timeDateFormat = dateFormat.date(from: self) else { return Date() } |
| var contributeLastDate = count.map(mapFunction) | ||
| contributeLastDate.sort{($0.date > $1.date)} | ||
| for date in contributeLastDate { | ||
| if date.count == 0 { |
There was a problem hiding this comment.
| if date.count == 0 { | |
| if date.count == .zero { |
|
μ견 μ£Όμ λ΄μ© λ°μ νμ΅λλ€. μ± μ΄λ¦μ΄ JandiλΌ grassλ lawn 보λ€λ Jandiκ° λ μ ν©ν κ² κ°μ, μλ¬ΈμΌλ‘ Jandiλ‘ μ νν΄ μ¬λ €λμμ΅λλ€. λν νμ¬ μ»€λ°μ΄ λ°μλλ λ μ§μΈ 365μΌμ΄ μκ°λ³΄λ€ μ μκ² κ°μ 100λ
μΌλ‘ μ μ©μ ν΄λμμ΅λλ€. |
| "streakFirstStage" = "π’ μμ§ μλλ₯Ό μ¬μ§ λͺ»νμ΄μ."; | ||
| "streakSecondStage" = "π± μ€λ μ²μμΌλ‘ μλλ₯Ό μ¬μμ΄μ."; | ||
| "streakThirdStage" = "πΏ μλμ μΉμ΄ νΌ μ§ ${day}μΌμ΄ λμμ΄μ."; | ||
| "streakFourthStage" = "π³ μλκ° λ¬΄λ무λ μλμ§ ${day}μΌμ΄ λμμ΄μ."; |
There was a problem hiding this comment.
λ€κ΅μ΄ ν€λsnake_case λ₯Ό μ¬μ©νκ³ μμ΄ λ§μΆ° μ£Όμλ©΄ μ’μκ² κ°μ΅λλ€.
| "streakFirstStage" = "π’ I haven't planted Jandi yet."; | ||
| "streakSecondStage" = "π± I planted my first Jandi today."; | ||
| "streakThirdStage" = "πΏ It has been ${day} days since the Jandi sprouts."; | ||
| "streakFourthStage" = "π³ It's been ${day} days since the Jandi has grown well."; |
There was a problem hiding this comment.
λ€κ΅μ΄ ν€λsnake_case λ₯Ό μ¬μ©νκ³ μμ΄ λ§μΆ° μ£Όμλ©΄ μ’μκ² κ°μ΅λλ€.
|
λ―Έμ² μμ§ λͺ»ν΄ λ§μΆ°λμ§ λͺ»νλ€μ. λ€μ λ°μνμ΅λλ€ π± @techinpark |
|
@5anniversary μ’μκΈ°λ₯ κΈ°μ¬ν΄μ£Όμ
μ κ°μ¬ν©λλ€ λ€μ λ²μ μΈ |
What does this PR do?
1μΌ 1컀λ°μ μμν μ΄νμ λ μ§λ₯Ό μλ €μ£Όλ κΈ°λ₯μ μΆκ°νμ΅λλ€.
Why are we doing this?
ν¬λ‘¬ μ΅μ€ν μ μ 보κ³
1μΌ 1컀λ°μ΄ μΌλ§λ μ§νλμλμ§ λ³΄κ² λλ€λ©΄ μ§μμ μΌλ‘ 1μΌ 1컀λ°μ μ§ννλ μ΅κ΄μ λμμ΄ λ κ² κ°μ μΆκ°ν΄λ³΄μμ΅λλ€.
Screenshots