Skip to content

Commit

Permalink
Renamed some files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushs-2k4 committed Jan 12, 2024
1 parent 3015a55 commit 44017a0
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
24 changes: 12 additions & 12 deletions Kontest.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@
07ECFB942AA58259008513C6 /* CodeChefAPIModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB512AA58259008513C6 /* CodeChefAPIModel.swift */; };
07ECFB952AA58259008513C6 /* KontestModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB522AA58259008513C6 /* KontestModel.swift */; };
07ECFB962AA58259008513C6 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 07ECFB542AA58259008513C6 /* Preview Assets.xcassets */; };
07ECFB972AA58259008513C6 /* CodeChefView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB562AA58259008513C6 /* CodeChefView.swift */; };
07ECFB972AA58259008513C6 /* CodeChefRatingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB562AA58259008513C6 /* CodeChefRatingsView.swift */; };
07ECFB982AA58259008513C6 /* SettingsScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB572AA58259008513C6 /* SettingsScreen.swift */; };
07ECFB992AA58259008513C6 /* LeetCodeGraphQLView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB582AA58259008513C6 /* LeetCodeGraphQLView.swift */; };
07ECFB992AA58259008513C6 /* LeetCodeRatingsGraphQLView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB582AA58259008513C6 /* LeetCodeRatingsGraphQLView.swift */; };
07ECFB9A2AA58259008513C6 /* RatingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB592AA58259008513C6 /* RatingsView.swift */; };
07ECFB9B2AA58259008513C6 /* NoKontestsDownloadedScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB5A2AA58259008513C6 /* NoKontestsDownloadedScreen.swift */; };
07ECFB9C2AA58259008513C6 /* AllKontestsScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB5B2AA58259008513C6 /* AllKontestsScreen.swift */; };
07ECFB9E2AA58259008513C6 /* BlinkingDotView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB5D2AA58259008513C6 /* BlinkingDotView.swift */; };
07ECFB9F2AA58259008513C6 /* CodeForcesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB5E2AA58259008513C6 /* CodeForcesView.swift */; };
07ECFB9F2AA58259008513C6 /* CodeForcesRatingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB5E2AA58259008513C6 /* CodeForcesRatingsView.swift */; };
07ECFBA02AA58259008513C6 /* KontestDetailsScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB5F2AA58259008513C6 /* KontestDetailsScreen.swift */; };
07ECFBA12AA58259008513C6 /* SingleNotificationMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB602AA58259008513C6 /* SingleNotificationMenu.swift */; };
07ECFBA22AA58259008513C6 /* SingleKontestView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07ECFB612AA58259008513C6 /* SingleKontestView.swift */; };
Expand Down Expand Up @@ -271,14 +271,14 @@
07ECFB512AA58259008513C6 /* CodeChefAPIModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CodeChefAPIModel.swift; sourceTree = "<group>"; };
07ECFB522AA58259008513C6 /* KontestModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KontestModel.swift; sourceTree = "<group>"; };
07ECFB542AA58259008513C6 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
07ECFB562AA58259008513C6 /* CodeChefView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CodeChefView.swift; sourceTree = "<group>"; };
07ECFB562AA58259008513C6 /* CodeChefRatingsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CodeChefRatingsView.swift; sourceTree = "<group>"; };
07ECFB572AA58259008513C6 /* SettingsScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsScreen.swift; sourceTree = "<group>"; };
07ECFB582AA58259008513C6 /* LeetCodeGraphQLView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LeetCodeGraphQLView.swift; sourceTree = "<group>"; };
07ECFB582AA58259008513C6 /* LeetCodeRatingsGraphQLView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LeetCodeRatingsGraphQLView.swift; sourceTree = "<group>"; };
07ECFB592AA58259008513C6 /* RatingsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RatingsView.swift; sourceTree = "<group>"; };
07ECFB5A2AA58259008513C6 /* NoKontestsDownloadedScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NoKontestsDownloadedScreen.swift; sourceTree = "<group>"; };
07ECFB5B2AA58259008513C6 /* AllKontestsScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AllKontestsScreen.swift; sourceTree = "<group>"; };
07ECFB5D2AA58259008513C6 /* BlinkingDotView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BlinkingDotView.swift; sourceTree = "<group>"; };
07ECFB5E2AA58259008513C6 /* CodeForcesView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CodeForcesView.swift; sourceTree = "<group>"; };
07ECFB5E2AA58259008513C6 /* CodeForcesRatingsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CodeForcesRatingsView.swift; sourceTree = "<group>"; };
07ECFB5F2AA58259008513C6 /* KontestDetailsScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KontestDetailsScreen.swift; sourceTree = "<group>"; };
07ECFB602AA58259008513C6 /* SingleNotificationMenu.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SingleNotificationMenu.swift; sourceTree = "<group>"; };
07ECFB612AA58259008513C6 /* SingleKontestView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SingleKontestView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -399,9 +399,9 @@
isa = PBXGroup;
children = (
07ECFB592AA58259008513C6 /* RatingsView.swift */,
07ECFB5E2AA58259008513C6 /* CodeForcesView.swift */,
07ECFB562AA58259008513C6 /* CodeChefView.swift */,
07ECFB582AA58259008513C6 /* LeetCodeGraphQLView.swift */,
07ECFB5E2AA58259008513C6 /* CodeForcesRatingsView.swift */,
07ECFB562AA58259008513C6 /* CodeChefRatingsView.swift */,
07ECFB582AA58259008513C6 /* LeetCodeRatingsGraphQLView.swift */,
);
path = RatingsScreens;
sourceTree = "<group>";
Expand Down Expand Up @@ -948,7 +948,7 @@
07D766692AC8404A000A3DFD /* Sidebar.swift in Sources */,
07ECFBA32AA58259008513C6 /* PendingNotificationsScreen.swift in Sources */,
07ECFB9C2AA58259008513C6 /* AllKontestsScreen.swift in Sources */,
07ECFB972AA58259008513C6 /* CodeChefView.swift in Sources */,
07ECFB972AA58259008513C6 /* CodeChefRatingsView.swift in Sources */,
07ECFBAD2AA58259008513C6 /* MyMenu.swift in Sources */,
07ECFB902AA58259008513C6 /* KontestStatus.swift in Sources */,
07ECFBB82AA58259008513C6 /* CodeForcesFetcher.swift in Sources */,
Expand All @@ -966,7 +966,7 @@
07ECFBC42AA583A8008513C6 /* LeetCodeUserProfileGraphQLAPIModel.swift in Sources */,
07ECFBA22AA58259008513C6 /* SingleKontestView.swift in Sources */,
07ECFBA92AA58259008513C6 /* Screen.swift in Sources */,
07ECFB9F2AA58259008513C6 /* CodeForcesView.swift in Sources */,
07ECFB9F2AA58259008513C6 /* CodeForcesRatingsView.swift in Sources */,
07ECFBAB2AA58259008513C6 /* DownloadData.swift in Sources */,
07ECFBA02AA58259008513C6 /* KontestDetailsScreen.swift in Sources */,
077E6EB12AB4B3220003E897 /* ErrorState.swift in Sources */,
Expand All @@ -981,7 +981,7 @@
07AA752E2B4FCF7A00DCD75B /* KontestNewRepository.swift in Sources */,
07ECFBB22AA58259008513C6 /* LeetCodeUserProfileGraphQLAPIDTO.swift in Sources */,
07ECFBA82AA58259008513C6 /* LocalNotificationManager.swift in Sources */,
07ECFB992AA58259008513C6 /* LeetCodeGraphQLView.swift in Sources */,
07ECFB992AA58259008513C6 /* LeetCodeRatingsGraphQLView.swift in Sources */,
07ECFB9B2AA58259008513C6 /* NoKontestsDownloadedScreen.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// CodeChefView.swift
// CodeChefRatingsView.swift
// Kontest
//
// Created by Ayush Singhal on 27/08/23.
//

import SwiftUI

struct CodeChefView: View {
struct CodeChefRatingsView: View {
let username: String
let codeChefViewModel: CodeChefViewModel
let bgColor: Color
Expand Down Expand Up @@ -152,8 +152,8 @@ struct CodeChefProfileView: View {

#Preview {
VStack {
CodeChefView(username: "ayushs_2k4", bgColor: .brown, hoveringScaleValue: 1.05)
CodeChefView(username: "ayush_2k4", bgColor: Color(red: 90/255, green: 55/255, blue: 31/255), hoveringScaleValue: 1.05)
CodeChefRatingsView(username: "ayushs_2k4", bgColor: .brown, hoveringScaleValue: 1.05)
CodeChefRatingsView(username: "ayush_2k4", bgColor: Color(red: 90/255, green: 55/255, blue: 31/255), hoveringScaleValue: 1.05)
}
.environment(Router.instance)
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// CodeForcesView.swift
// CodeForcesRatingsView.swift
// Kontest
//
// Created by Ayush Singhal on 16/08/23.
//

import SwiftUI

struct CodeForcesView: View {
struct CodeForcesRatingsView: View {
let username: String
let codeForcesViewModel: CodeForcesViewModel
let bgGradient: RadialGradient
Expand Down Expand Up @@ -164,10 +164,10 @@ struct CodeForcesProfileView: View {
let bgGradient: RadialGradient = .init(gradient: Gradient(stops: [.init(color: Color(red: 159/255, green: 150/255, blue: 137/255), location: 0.0), .init(color: Color(red: 209/255, green: 204/255, blue: 198/255), location: 0.5)]), center: .center, startRadius: 10, endRadius: 500)

return VStack {
CodeForcesView(username: "Fefer_Ivan", bgGradient: bgGradient, hoveringScaleValue: 1.05)
CodeForcesView(username: "ayushsinghals", bgGradient: bgGradient, hoveringScaleValue: 1.05)
CodeForcesView(username: "ayushsinghals02", bgGradient: bgGradient, hoveringScaleValue: 1.05)
CodeForcesView(username: "yermak0v", bgGradient: bgGradient, hoveringScaleValue: 1.05)
CodeForcesRatingsView(username: "Fefer_Ivan", bgGradient: bgGradient, hoveringScaleValue: 1.05)
CodeForcesRatingsView(username: "ayushsinghals", bgGradient: bgGradient, hoveringScaleValue: 1.05)
CodeForcesRatingsView(username: "ayushsinghals02", bgGradient: bgGradient, hoveringScaleValue: 1.05)
CodeForcesRatingsView(username: "yermak0v", bgGradient: bgGradient, hoveringScaleValue: 1.05)
}
.environment(Router.instance)
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// LeetCodeGraphQLView.swift
// LeetCodeRatingsGraphQLView.swift
// Kontest
//
// Created by Ayush Singhal on 04/09/23.
//

import SwiftUI

struct LeetCodeGraphQLView: View {
struct LeetCodeRatingsGraphQLView: View {
let username: String
let leetCodeGraphQLViewModel: LeetCodeGraphQLViewModel
let bgColor: Color
Expand Down Expand Up @@ -141,6 +141,6 @@ struct LeetcodeProfileGraphQLView: View {
}

#Preview {
LeetCodeGraphQLView(username: "ayushs_2k4", bgColor: Color(red: 40/255, green: 40/255, blue: 40/255), hoveringScaleValue: 1.05)
LeetCodeRatingsGraphQLView(username: "ayushs_2k4", bgColor: Color(red: 40/255, green: 40/255, blue: 40/255), hoveringScaleValue: 1.05)
.environment(Router.instance)
}
6 changes: 3 additions & 3 deletions Kontest/Screens/RatingsScreens/RatingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ struct RatingsView: View {
var body: some View {
ScrollView(.horizontal) {
LazyHStack(spacing: hSpacing) {
CodeForcesView(username: codeForcesUsername, bgGradient: bgGradient, hoveringScaleValue: hoveringScaleValue)
CodeForcesRatingsView(username: codeForcesUsername, bgGradient: bgGradient, hoveringScaleValue: hoveringScaleValue)
.clipShape(.rect(cornerRadius: cornerRadius))
.aspectRatio(heroRatio, contentMode: .fit)
.containerRelativeFrame(.horizontal, count: columns, spacing: 10)

LeetCodeGraphQLView(username: leetCodeUsername, bgColor: Color(red: 34/255, green: 34/255, blue: 34/255), hoveringScaleValue: hoveringScaleValue)
LeetCodeRatingsGraphQLView(username: leetCodeUsername, bgColor: Color(red: 34/255, green: 34/255, blue: 34/255), hoveringScaleValue: hoveringScaleValue)
.clipShape(.rect(cornerRadius: cornerRadius))
.aspectRatio(heroRatio, contentMode: .fit)
.containerRelativeFrame(.horizontal, count: columns, spacing: 10)

CodeChefView(username: codeChefUsername, bgColor: .brown, hoveringScaleValue: hoveringScaleValue)
CodeChefRatingsView(username: codeChefUsername, bgColor: .brown, hoveringScaleValue: hoveringScaleValue)
.clipShape(.rect(cornerRadius: cornerRadius))
.aspectRatio(heroRatio, contentMode: .fit)
.containerRelativeFrame(.horizontal, count: columns, spacing: 10)
Expand Down

0 comments on commit 44017a0

Please sign in to comment.