@@ -4,6 +4,124 @@ import (
4
4
"github.com/gin-gonic/gin"
5
5
)
6
6
7
+ type Repo struct {
8
+ Name string `json:"name,omitempty"`
9
+ Url string `json:"url,omitempty"`
10
+ Description string `json:"description,omitempty"`
11
+ Tags []string `json:"tags,omitempty"`
12
+ }
13
+
14
+ var projects = []Repo {
15
+ {
16
+ Name : "Parkify" ,
17
+ Url : "https://github.com/DSCKGEC/parkify" ,
18
+ Description : "Hassle-free way to book your parking space with easy cancellations and timeline extensions" ,
19
+ Tags : []string {},
20
+ },
21
+ {
22
+ Name : "Libraryly" ,
23
+ Url : "https://github.com/DSCKGEC/Libraryly" ,
24
+ Description : "A software solution to handle the primary functions of a library like managing books, members and issues" ,
25
+ Tags : []string {},
26
+ },
27
+ {
28
+ Name : "Seat&Eat" ,
29
+ Url : "https://github.com/DSCKGEC/SeatAndEat" ,
30
+ Description : "This is a beautifully designed commercial website template for a restaurant. This project is a beginner-friendly project. It is a static website and mostly based on the front end." ,
31
+ Tags : []string {},
32
+ },
33
+ {
34
+ Name : "DevBook" ,
35
+ Url : "https://github.com/DSCKGEC/DevBook" ,
36
+ Description : "DevBook is a social development environment for front-end designers and developers. A project editor that supports HTML, CSS, and JavaScript, where you can show off your work, build test cases to learn and debug and find inspiration" ,
37
+ Tags : []string {},
38
+ },
39
+ {
40
+ Name : "Leucos" ,
41
+ Url : "https://github.com/DSCKGEC/Leucos" ,
42
+ Description : "Real-time chatting application within private rooms, from anywhere in the world" ,
43
+ Tags : []string {},
44
+ },
45
+ {
46
+ Name : "Taskify" ,
47
+ Url : "https://github.com/DSCKGEC/Taskify" ,
48
+ Description : "It is a task management system for everyone. It is designed to help you manage your tasks and projects from ideation to delivery. This task manager helps to bring in only the necessary parts – without all the annoying clutter." ,
49
+ Tags : []string {},
50
+ },
51
+ {
52
+ Name : "Codeaon" ,
53
+ Url : "https://github.com/DSCKGEC/Codeaon" ,
54
+ Description : "A one-stop website for all developers and coders. This platform helps us to get all YouTube tutorials, blogs and articles for a certain topic in one place. This project proves to be a very handy and effective yet resourceful tool for learners." ,
55
+ Tags : []string {},
56
+ },
57
+ {
58
+ Name : "C-Coins" ,
59
+ Url : "https://github.com/DSCKGEC/C-Coins" ,
60
+ Description : "Defining the basic behaviour of Blockchains and Web-2.0 imitation" ,
61
+ Tags : []string {},
62
+ },
63
+ {
64
+ Name : "kitkat.virus" ,
65
+ Url : "https://github.com/DSCKGEC/kitkat.virus" ,
66
+ Description : "A simple python based keylogger" ,
67
+ Tags : []string {},
68
+ },
69
+ {
70
+ Name : "CSGO-Professional" ,
71
+ Url : "https://github.com/DSCKGEC/CSGO-Professional" ,
72
+ Description : "Scraping, Cleaning and Exploring a Dataset about CSGO Athletes from hltv.org" ,
73
+ Tags : []string {},
74
+ },
75
+ {
76
+ Name : "Learn-Machine-Learn" ,
77
+ Url : "https://github.com/DSCKGEC/Learn-Machine-Learn" ,
78
+ Description : "A machine learning repository to demonstrate regression and classification problems" ,
79
+ Tags : []string {},
80
+ },
81
+ {
82
+ Name : "Text Recognition" ,
83
+ Url : "https://github.com/DSCKGEC/OCR-TextRecognition" ,
84
+ Description : "Recognizes text from any image and prints them" ,
85
+ Tags : []string {},
86
+ },
87
+ {
88
+ Name : "Movie Recommendation" ,
89
+ Url : "https://github.com/DSCKGEC/MovieRecommendationSystem" ,
90
+ Description : "A Movie Recommendation System along with Data Analysis and Data Visualization and Revenue Prediction Model" ,
91
+ Tags : []string {},
92
+ },
93
+ {
94
+ Name : "NASA Collision Detection" ,
95
+ Url : "https://github.com/DSCKGEC/NASA_nearest_earth_object_classifier" ,
96
+ Description : "Classifying hazardous asteroids based on NASA Dataset." ,
97
+ Tags : []string {},
98
+ },
99
+ {
100
+ Name : "Resumie" ,
101
+ Url : "https://github.com/DSCKGEC/Resumie" ,
102
+ Description : "Resumie is an android CV & Portfolio app. Now carry your resume with you wherever you go!" ,
103
+ Tags : []string {},
104
+ },
105
+ {
106
+ Name : "Health Tracker App" ,
107
+ Url : "https://github.com/DSCKGEC/Health-Tracker-App" ,
108
+ Description : "Health Tracker is your one stop solution to keep your heath related information in a secured way" ,
109
+ Tags : []string {},
110
+ },
111
+ {
112
+ Name : "Samsung Gallery" ,
113
+ Url : "https://github.com/DSCKGEC/samsung-gallery-clone" ,
114
+ Description : "Clone of Samsung's Default Gallery" ,
115
+ Tags : []string {},
116
+ },
117
+ {
118
+ Name : "Wallpaper App" ,
119
+ Url : "https://github.com/DSCKGEC/flutter-wallx-wallpaperApp" ,
120
+ Description : "" ,
121
+ Tags : []string {},
122
+ },
123
+ }
124
+
7
125
// RenderHome ...
8
126
func (g * GitHubAPI ) RenderHome (c * gin.Context ) {
9
127
c .HTML (200 , "index.html" , gin.H {
@@ -21,9 +139,18 @@ func (g *GitHubAPI) RenderDashboard(c *gin.Context) {
21
139
})
22
140
}
23
141
142
+ // RenderLeaderboard ...
143
+ func (g * GitHubAPI ) RenderLeaderboard (c * gin.Context ) {
144
+ c .HTML (200 , "leaderboard.html" , gin.H {
145
+ "title" : "Leaderboard | KGEC Summer of Code 2021" ,
146
+ "issues" : g .issues ,
147
+ "pulls" : g .pulls ,
148
+ })
149
+ }
150
+
24
151
func (g * GitHubAPI ) GetData (c * gin.Context ) {
25
152
c .JSON (200 , gin.H {
26
- "pulls" : g .pulls ,
153
+ "pulls" : g .pulls ,
27
154
"issues" : g .issues ,
28
155
})
29
156
}
@@ -42,9 +169,11 @@ func (g *GitHubAPI) Refresh(c *gin.Context) {
42
169
43
170
// RenderProject ...
44
171
func (g * GitHubAPI ) RenderProject (c * gin.Context ) {
172
+
45
173
c .HTML (200 , "projects.html" , gin.H {
46
- "title" : "Projects" ,
47
- "button" : "View Dashboard" ,
174
+ "title" : "Projects" ,
175
+ "button" : "View Leaderboard" ,
176
+ "repos" : projects ,
48
177
})
49
178
}
50
179
0 commit comments