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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Based on the original list, we automatically create a website with filter functi
12
12
13
13
### How do I get my module presented in the new list?
14
14
15
-
Add your module to [the original list in the wiki](https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules). Twice a day the new list will be updated based on the original list.
15
+
Add your module to [the original list in the wiki](https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules). Once a day the new list will be updated based on the original list.
16
16
17
17
### How do I get my module presented perfectly in the new list?
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