You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.info("\nGitHub data update completed. queryCount:",queryCount,"maxQueryCount:",maxQueryCount,"results:",results.length,"modules:",moduleListLength);
180
156
}catch(error){
181
157
console.error("Error fetching GitHub API data:",error);
182
158
}
183
159
}
184
160
161
+
functionsetNonGithubStars(module){
162
+
// Quick-and-dirty way to include the number of stars for non-GitHub repositories.
163
+
if(!module.url.includes("github.com")){
164
+
switch(module.name){
165
+
case"MMM-bergfex":
166
+
module.stars=1;
167
+
break;
168
+
case"MMM-Flights":
169
+
module.stars=2;
170
+
break;
171
+
case"MMM-InstagramView":
172
+
module.stars=1;
173
+
break;
174
+
case"mmm-ratp":
175
+
module.stars=2;
176
+
break;
177
+
case"MMM-NCTtimes":
178
+
module.stars=1;
179
+
break;
180
+
case"MMM-RecyclingCalendar":
181
+
module.stars=1;
182
+
break;
183
+
case"MMM-RepoStats":
184
+
module.stars=2;
185
+
break;
186
+
case"MMM-YouTubeWebView":
187
+
module.stars=1;
188
+
break;
189
+
default:
190
+
module.stars=1;
191
+
break;
192
+
}
193
+
// Since far fewer users have accounts with non-GitHub hosts, repos get a small star boost.
0 commit comments