@rmdes/indiekit-endpoint-github 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles.css +18 -39
- package/index.js +6 -0
- package/lib/controllers/dashboard.js +7 -44
- package/locales/de.json +38 -0
- package/locales/es-419.json +38 -0
- package/locales/es.json +38 -0
- package/locales/fr.json +38 -0
- package/locales/hi.json +38 -0
- package/locales/id.json +38 -0
- package/locales/it.json +38 -0
- package/locales/nl.json +38 -0
- package/locales/pl.json +38 -0
- package/locales/pt-BR.json +38 -0
- package/locales/pt.json +38 -0
- package/locales/sr.json +38 -0
- package/locales/sv.json +38 -0
- package/locales/zh-Hans-CN.json +38 -0
- package/package.json +1 -1
- package/views/activity.njk +2 -2
- package/views/commits.njk +2 -2
- package/views/contributions.njk +2 -2
- package/views/github.njk +14 -20
- package/views/layouts/github.njk +6 -0
- package/views/stars.njk +2 -2
package/assets/styles.css
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/* GitHub endpoint styles */
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
.github-section {
|
|
5
|
-
margin-block-end: var(--space-xl);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.github-section h2 {
|
|
9
|
-
margin-block-end: var(--space-m);
|
|
10
|
-
}
|
|
11
|
-
|
|
3
|
+
/* Profile */
|
|
12
4
|
.github-profile {
|
|
13
5
|
align-items: center;
|
|
14
6
|
display: flex;
|
|
@@ -36,7 +28,7 @@
|
|
|
36
28
|
font-size: var(--step--1);
|
|
37
29
|
}
|
|
38
30
|
|
|
39
|
-
/*
|
|
31
|
+
/* List */
|
|
40
32
|
.github-list {
|
|
41
33
|
display: flex;
|
|
42
34
|
flex-direction: column;
|
|
@@ -63,7 +55,7 @@
|
|
|
63
55
|
gap: var(--space-xs);
|
|
64
56
|
}
|
|
65
57
|
|
|
66
|
-
/* Activity
|
|
58
|
+
/* Activity */
|
|
67
59
|
.github-activity {
|
|
68
60
|
align-items: center;
|
|
69
61
|
}
|
|
@@ -83,20 +75,20 @@
|
|
|
83
75
|
color: var(--color-text-secondary);
|
|
84
76
|
}
|
|
85
77
|
|
|
86
|
-
/* Commit
|
|
78
|
+
/* Commit message (in main list) */
|
|
87
79
|
.github-commit__message {
|
|
88
80
|
flex: 1;
|
|
89
81
|
min-inline-size: 200px;
|
|
90
82
|
}
|
|
91
83
|
|
|
92
|
-
/* Commit list
|
|
84
|
+
/* Commit list (inside featured repos) */
|
|
93
85
|
.github-commit-list {
|
|
94
86
|
display: flex;
|
|
95
87
|
flex-direction: column;
|
|
96
88
|
font-size: var(--step--1);
|
|
97
89
|
gap: var(--space-xs);
|
|
98
90
|
list-style: none;
|
|
99
|
-
margin:
|
|
91
|
+
margin: 0;
|
|
100
92
|
padding: 0;
|
|
101
93
|
}
|
|
102
94
|
|
|
@@ -116,24 +108,11 @@
|
|
|
116
108
|
color: var(--color-text-secondary);
|
|
117
109
|
}
|
|
118
110
|
|
|
119
|
-
/* Featured repos
|
|
111
|
+
/* Featured repos */
|
|
120
112
|
.github-featured {
|
|
121
113
|
display: grid;
|
|
122
114
|
gap: var(--space-l);
|
|
123
115
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
124
|
-
margin-block-end: var(--space-xl);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.github-featured__commits {
|
|
128
|
-
border-block-start: 1px solid var(--color-border);
|
|
129
|
-
margin-block-start: var(--space-s);
|
|
130
|
-
padding-block-start: var(--space-s);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.github-featured__commits summary {
|
|
134
|
-
color: var(--color-text-secondary);
|
|
135
|
-
cursor: pointer;
|
|
136
|
-
font-size: var(--step--1);
|
|
137
116
|
}
|
|
138
117
|
|
|
139
118
|
.github-featured__desc {
|
|
@@ -161,6 +140,13 @@
|
|
|
161
140
|
padding: var(--space-m);
|
|
162
141
|
}
|
|
163
142
|
|
|
143
|
+
/* Details inside featured cards: add separator */
|
|
144
|
+
.github-featured__repo .details {
|
|
145
|
+
border-block-start: 1px solid var(--color-border);
|
|
146
|
+
margin-block-start: var(--space-s);
|
|
147
|
+
padding-block-start: var(--space-s);
|
|
148
|
+
}
|
|
149
|
+
|
|
164
150
|
/* Language indicator */
|
|
165
151
|
.github-lang {
|
|
166
152
|
margin-inline-end: var(--space-xs);
|
|
@@ -172,7 +158,7 @@
|
|
|
172
158
|
font-size: var(--step--1);
|
|
173
159
|
}
|
|
174
160
|
|
|
175
|
-
/* Repo card
|
|
161
|
+
/* Repo card */
|
|
176
162
|
.github-repo {
|
|
177
163
|
flex-direction: column;
|
|
178
164
|
}
|
|
@@ -192,7 +178,7 @@
|
|
|
192
178
|
font-weight: var(--font-weight-semibold);
|
|
193
179
|
}
|
|
194
180
|
|
|
195
|
-
/* SHA badge
|
|
181
|
+
/* SHA badge */
|
|
196
182
|
.github-sha {
|
|
197
183
|
background: var(--color-offset);
|
|
198
184
|
border-radius: var(--radius-s);
|
|
@@ -201,7 +187,7 @@
|
|
|
201
187
|
padding-inline: var(--space-2xs);
|
|
202
188
|
}
|
|
203
189
|
|
|
204
|
-
/* Star
|
|
190
|
+
/* Star card */
|
|
205
191
|
.github-star {
|
|
206
192
|
flex-direction: column;
|
|
207
193
|
}
|
|
@@ -220,12 +206,7 @@
|
|
|
220
206
|
font-weight: var(--font-weight-semibold);
|
|
221
207
|
}
|
|
222
208
|
|
|
223
|
-
/*
|
|
224
|
-
* Link styles - grouped by specificity (ascending)
|
|
225
|
-
* Non-pseudo selectors first, then pseudo selectors
|
|
226
|
-
*/
|
|
227
|
-
|
|
228
|
-
/* Specificity: 0,1,1 (one class, one element) */
|
|
209
|
+
/* Link styles */
|
|
229
210
|
.github-featured__name a {
|
|
230
211
|
text-decoration: none;
|
|
231
212
|
}
|
|
@@ -234,12 +215,10 @@
|
|
|
234
215
|
text-decoration: none;
|
|
235
216
|
}
|
|
236
217
|
|
|
237
|
-
/* Specificity: 0,1,2 (one class, two elements) */
|
|
238
218
|
.github-commit-list code a {
|
|
239
219
|
text-decoration: none;
|
|
240
220
|
}
|
|
241
221
|
|
|
242
|
-
/* Pseudo-class selectors */
|
|
243
222
|
.github-featured__name a:hover {
|
|
244
223
|
text-decoration: underline;
|
|
245
224
|
}
|
package/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import express from "express";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import path from "node:path";
|
|
2
4
|
|
|
3
5
|
import { activityController } from "./lib/controllers/activity.js";
|
|
4
6
|
import { changelogController } from "./lib/controllers/changelog.js";
|
|
@@ -40,6 +42,10 @@ export default class GitHubEndpoint {
|
|
|
40
42
|
return ["GITHUB_TOKEN"];
|
|
41
43
|
}
|
|
42
44
|
|
|
45
|
+
get localesDirectory() {
|
|
46
|
+
return path.join(path.dirname(fileURLToPath(import.meta.url)), "locales");
|
|
47
|
+
}
|
|
48
|
+
|
|
43
49
|
get navigationItems() {
|
|
44
50
|
return {
|
|
45
51
|
href: this.options.mountPath,
|
|
@@ -43,7 +43,7 @@ async function fetchCommitsFromRepos(client, username, limit = 10) {
|
|
|
43
43
|
.toSorted((a, b) => new Date(b.date) - new Date(a.date))
|
|
44
44
|
.slice(0, limit);
|
|
45
45
|
} catch (error) {
|
|
46
|
-
console.error("[
|
|
46
|
+
console.error("[GitHub] Error fetching commits from repos:", error.message);
|
|
47
47
|
return [];
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -89,7 +89,7 @@ async function fetchContributionsFromSearch(client, username, limit = 10) {
|
|
|
89
89
|
.toSorted((a, b) => new Date(b.date) - new Date(a.date))
|
|
90
90
|
.slice(0, limit);
|
|
91
91
|
} catch (error) {
|
|
92
|
-
console.error("[
|
|
92
|
+
console.error("[GitHub] Error fetching contributions:", error.message);
|
|
93
93
|
return [];
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -101,12 +101,9 @@ async function fetchContributionsFromSearch(client, username, limit = 10) {
|
|
|
101
101
|
export const dashboardController = {
|
|
102
102
|
async get(request, response, next) {
|
|
103
103
|
try {
|
|
104
|
-
console.log("[GitHub Endpoint] Dashboard controller started");
|
|
105
|
-
|
|
106
104
|
const { githubConfig } = request.app.locals.application;
|
|
107
105
|
|
|
108
106
|
if (!githubConfig) {
|
|
109
|
-
console.error("[GitHub Endpoint] ERROR: githubConfig is undefined");
|
|
110
107
|
return response.status(500).render("github", {
|
|
111
108
|
title: "GitHub",
|
|
112
109
|
actions: [],
|
|
@@ -115,16 +112,8 @@ export const dashboardController = {
|
|
|
115
112
|
}
|
|
116
113
|
|
|
117
114
|
const { username, token, cacheTtl, limits, featuredRepos } = githubConfig;
|
|
118
|
-
console.log("[GitHub Endpoint] Config:", {
|
|
119
|
-
username,
|
|
120
|
-
hasToken: !!token,
|
|
121
|
-
cacheTtl,
|
|
122
|
-
limits,
|
|
123
|
-
featuredRepos: featuredRepos || [],
|
|
124
|
-
});
|
|
125
115
|
|
|
126
116
|
if (!username) {
|
|
127
|
-
console.log("[GitHub Endpoint] No username configured");
|
|
128
117
|
return response.render("github", {
|
|
129
118
|
title: response.locals.__("github.title"),
|
|
130
119
|
actions: [],
|
|
@@ -133,7 +122,6 @@ export const dashboardController = {
|
|
|
133
122
|
}
|
|
134
123
|
|
|
135
124
|
const client = new GitHubClient({ token, cacheTtl });
|
|
136
|
-
console.log("[GitHub Endpoint] Using authenticated API:", !!token);
|
|
137
125
|
|
|
138
126
|
let user;
|
|
139
127
|
let events = [];
|
|
@@ -141,20 +129,14 @@ export const dashboardController = {
|
|
|
141
129
|
let repos = [];
|
|
142
130
|
|
|
143
131
|
try {
|
|
144
|
-
console.log("[GitHub Endpoint] Fetching GitHub data for:", username);
|
|
145
132
|
[user, events, starred, repos] = await Promise.all([
|
|
146
133
|
client.getUser(username),
|
|
147
134
|
client.getUserEvents(username, 30),
|
|
148
135
|
client.getUserStarred(username, limits.stars),
|
|
149
136
|
client.getUserRepos(username, limits.repos || 10),
|
|
150
137
|
]);
|
|
151
|
-
console.log("[GitHub Endpoint] Raw user data:", JSON.stringify(user));
|
|
152
|
-
console.log("[GitHub Endpoint] Events count:", events?.length);
|
|
153
|
-
console.log("[GitHub Endpoint] Event types:", events?.map(e => e.type));
|
|
154
|
-
console.log("[GitHub Endpoint] Starred count:", starred?.length);
|
|
155
|
-
console.log("[GitHub Endpoint] Repos count:", repos?.length);
|
|
156
138
|
} catch (apiError) {
|
|
157
|
-
console.error("[GitHub
|
|
139
|
+
console.error("[GitHub] API error:", apiError.message);
|
|
158
140
|
return response.render("github", {
|
|
159
141
|
title: response.locals.__("github.title"),
|
|
160
142
|
actions: [],
|
|
@@ -162,37 +144,26 @@ export const dashboardController = {
|
|
|
162
144
|
});
|
|
163
145
|
}
|
|
164
146
|
|
|
165
|
-
console.log("[GitHub Endpoint] Processing data...");
|
|
166
147
|
let commits = utils.extractCommits(events);
|
|
167
|
-
console.log("[GitHub Endpoint] Extracted commits from events:", commits?.length);
|
|
168
148
|
|
|
169
149
|
// Fallback: fetch commits directly from repos if events didn't have them
|
|
170
150
|
if (commits.length === 0) {
|
|
171
|
-
console.log("[GitHub Endpoint] Events API returned no commits, fetching from repos");
|
|
172
151
|
commits = await fetchCommitsFromRepos(client, username, limits.commits || 10);
|
|
173
|
-
console.log("[GitHub Endpoint] Fetched commits from repos:", commits?.length);
|
|
174
152
|
}
|
|
175
153
|
|
|
176
154
|
let contributions = utils.extractContributions(events);
|
|
177
|
-
console.log("[GitHub Endpoint] Extracted contributions from events:", contributions?.length);
|
|
178
155
|
|
|
179
156
|
// Fallback: use Search API if events didn't have contributions
|
|
180
157
|
if (contributions.length === 0) {
|
|
181
|
-
console.log("[GitHub Endpoint] Events API returned no contributions, using Search API");
|
|
182
158
|
contributions = await fetchContributionsFromSearch(client, username, limits.contributions || 10);
|
|
183
|
-
console.log("[GitHub Endpoint] Fetched contributions from search:", contributions?.length);
|
|
184
159
|
}
|
|
185
160
|
|
|
186
161
|
const stars = utils.formatStarred(starred);
|
|
187
|
-
console.log("[GitHub Endpoint] Formatted stars:", stars?.length);
|
|
188
|
-
|
|
189
162
|
const repositories = utils.formatRepos(repos);
|
|
190
|
-
console.log("[GitHub Endpoint] Formatted repos:", repositories?.length);
|
|
191
163
|
|
|
192
164
|
// Fetch commits from featured repos
|
|
193
165
|
let featured = [];
|
|
194
166
|
if (featuredRepos && featuredRepos.length > 0) {
|
|
195
|
-
console.log("[GitHub Endpoint] Fetching featured repos:", featuredRepos);
|
|
196
167
|
const featuredPromises = featuredRepos.map(async (repoPath) => {
|
|
197
168
|
const [owner, repo] = repoPath.split("/");
|
|
198
169
|
try {
|
|
@@ -211,34 +182,26 @@ export const dashboardController = {
|
|
|
211
182
|
})),
|
|
212
183
|
};
|
|
213
184
|
} catch (error) {
|
|
214
|
-
console.error(`[GitHub
|
|
185
|
+
console.error(`[GitHub] Error fetching ${repoPath}:`, error.message);
|
|
215
186
|
return null;
|
|
216
187
|
}
|
|
217
188
|
});
|
|
218
189
|
featured = (await Promise.all(featuredPromises)).filter(Boolean);
|
|
219
|
-
console.log("[GitHub Endpoint] Featured repos loaded:", featured.length);
|
|
220
190
|
}
|
|
221
191
|
|
|
222
|
-
const starsLimit = limits.stars || 20;
|
|
223
|
-
const reposLimit = limits.repos || 10;
|
|
224
|
-
|
|
225
|
-
console.log("[GitHub Endpoint] Rendering with limits - stars:", starsLimit, "repos:", reposLimit);
|
|
226
|
-
|
|
227
192
|
response.render("github", {
|
|
228
193
|
title: response.locals.__("github.title"),
|
|
229
194
|
actions: [],
|
|
230
195
|
user,
|
|
231
196
|
commits: commits.slice(0, limits.commits || 10),
|
|
232
197
|
contributions: contributions.slice(0, limits.contributions || 5),
|
|
233
|
-
stars: stars.slice(0,
|
|
234
|
-
repositories: repositories.slice(0,
|
|
198
|
+
stars: stars.slice(0, limits.stars || 20),
|
|
199
|
+
repositories: repositories.slice(0, limits.repos || 10),
|
|
235
200
|
featured,
|
|
236
201
|
mountPath: request.baseUrl,
|
|
237
202
|
});
|
|
238
|
-
console.log("[GitHub Endpoint] Render complete");
|
|
239
203
|
} catch (error) {
|
|
240
|
-
console.error("[GitHub
|
|
241
|
-
console.error("[GitHub Endpoint] Stack:", error.stack);
|
|
204
|
+
console.error("[GitHub] Unexpected error:", error);
|
|
242
205
|
next(error);
|
|
243
206
|
}
|
|
244
207
|
},
|
package/locales/de.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "GitHub-Aktivität",
|
|
5
|
+
"viewAll": "Alle anzeigen",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Kein GitHub-Benutzername konfiguriert. Fügen Sie einen Benutzernamen in Ihrer Indiekit-Konfiguration hinzu."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Ausgewählte Projekte",
|
|
11
|
+
"none": "Keine ausgewählten Repositories konfiguriert"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Aktuelle Commits",
|
|
15
|
+
"none": "Keine aktuellen Commits"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Kürzlich mit Stern versehen",
|
|
19
|
+
"none": "Keine mit Stern versehenen Repositories"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PRs & Issues",
|
|
23
|
+
"none": "Keine aktuellen Beiträge"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Meine Repositories",
|
|
27
|
+
"none": "Keine Repositories gefunden"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Aktivität in meinen Repos",
|
|
31
|
+
"none": "Keine aktuellen Aktivitäten von anderen"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Zeigen Sie Ihre GitHub-Aktivität, Commits, Sterne und Beiträge an.",
|
|
35
|
+
"view": "Aktivität anzeigen"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Actividad en GitHub",
|
|
5
|
+
"viewAll": "Ver todo",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "No hay un nombre de usuario de GitHub configurado. Agrega un nombre de usuario en tu configuración de Indiekit."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Proyectos destacados",
|
|
11
|
+
"none": "No hay repositorios destacados configurados"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Commits recientes",
|
|
15
|
+
"none": "No hay commits recientes"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Destacados recientemente",
|
|
19
|
+
"none": "No hay repositorios destacados"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PRs e Issues",
|
|
23
|
+
"none": "No hay contribuciones recientes"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Mis repositorios",
|
|
27
|
+
"none": "No se encontraron repositorios"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Actividad en mis repos",
|
|
31
|
+
"none": "No hay actividad reciente de otros"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Visualiza tu actividad en GitHub, commits, estrellas y contribuciones.",
|
|
35
|
+
"view": "Ver actividad"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/es.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Actividad en GitHub",
|
|
5
|
+
"viewAll": "Ver todo",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "No hay un nombre de usuario de GitHub configurado. Añade un nombre de usuario en tu configuración de Indiekit."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Proyectos destacados",
|
|
11
|
+
"none": "No hay repositorios destacados configurados"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Commits recientes",
|
|
15
|
+
"none": "No hay commits recientes"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Destacados recientemente",
|
|
19
|
+
"none": "No hay repositorios destacados"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PRs e Issues",
|
|
23
|
+
"none": "No hay contribuciones recientes"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Mis repositorios",
|
|
27
|
+
"none": "No se han encontrado repositorios"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Actividad en mis repos",
|
|
31
|
+
"none": "No hay actividad reciente de otros"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Consulta tu actividad en GitHub, commits, estrellas y contribuciones.",
|
|
35
|
+
"view": "Ver actividad"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/fr.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Activité GitHub",
|
|
5
|
+
"viewAll": "Tout voir",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Aucun nom d'utilisateur GitHub configuré. Ajoutez un nom d'utilisateur dans votre configuration Indiekit."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Projets en vedette",
|
|
11
|
+
"none": "Aucun dépôt en vedette configuré"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Commits récents",
|
|
15
|
+
"none": "Aucun commit récent"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Récemment ajoutés aux favoris",
|
|
19
|
+
"none": "Aucun dépôt en favori"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PRs et Issues",
|
|
23
|
+
"none": "Aucune contribution récente"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Mes dépôts",
|
|
27
|
+
"none": "Aucun dépôt trouvé"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Activité sur mes dépôts",
|
|
31
|
+
"none": "Aucune activité récente des autres"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Consultez votre activité GitHub, vos commits, favoris et contributions.",
|
|
35
|
+
"view": "Voir l'activité"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/hi.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "GitHub गतिविधि",
|
|
5
|
+
"viewAll": "सभी देखें",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "कोई GitHub उपयोगकर्ता नाम कॉन्फ़िगर नहीं किया गया। अपनी Indiekit कॉन्फ़िगरेशन में एक उपयोगकर्ता नाम जोड़ें।"
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "फ़ीचर्ड प्रोजेक्ट",
|
|
11
|
+
"none": "कोई फ़ीचर्ड रिपॉज़िटरी कॉन्फ़िगर नहीं की गई"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "हाल के कमिट",
|
|
15
|
+
"none": "कोई हाल के कमिट नहीं"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "हाल ही में स्टार किए गए",
|
|
19
|
+
"none": "कोई स्टार की गई रिपॉज़िटरी नहीं"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PRs और Issues",
|
|
23
|
+
"none": "कोई हाल के योगदान नहीं"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "मेरी रिपॉज़िटरी",
|
|
27
|
+
"none": "कोई रिपॉज़िटरी नहीं मिली"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "मेरी repos पर गतिविधि",
|
|
31
|
+
"none": "दूसरों से कोई हाल की गतिविधि नहीं"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "अपनी GitHub गतिविधि, कमिट, स्टार और योगदान देखें।",
|
|
35
|
+
"view": "गतिविधि देखें"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/id.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Aktivitas GitHub",
|
|
5
|
+
"viewAll": "Lihat semua",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Tidak ada nama pengguna GitHub yang dikonfigurasi. Tambahkan nama pengguna di konfigurasi Indiekit Anda."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Proyek Unggulan",
|
|
11
|
+
"none": "Tidak ada repositori unggulan yang dikonfigurasi"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Commit terkini",
|
|
15
|
+
"none": "Tidak ada commit terkini"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Baru diberi bintang",
|
|
19
|
+
"none": "Tidak ada repositori berbintang"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PR & Issue",
|
|
23
|
+
"none": "Tidak ada kontribusi terkini"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Repositori saya",
|
|
27
|
+
"none": "Tidak ada repositori ditemukan"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Aktivitas di repo saya",
|
|
31
|
+
"none": "Tidak ada aktivitas terkini dari orang lain"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Lihat aktivitas GitHub, commit, bintang, dan kontribusi Anda.",
|
|
35
|
+
"view": "Lihat aktivitas"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/it.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Attività GitHub",
|
|
5
|
+
"viewAll": "Vedi tutto",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Nessun nome utente GitHub configurato. Aggiungi un nome utente nella tua configurazione Indiekit."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Progetti in evidenza",
|
|
11
|
+
"none": "Nessun repository in evidenza configurato"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Commit recenti",
|
|
15
|
+
"none": "Nessun commit recente"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Aggiunti di recente alle stelle",
|
|
19
|
+
"none": "Nessun repository con stelle"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PR e Issue",
|
|
23
|
+
"none": "Nessun contributo recente"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "I miei repository",
|
|
27
|
+
"none": "Nessun repository trovato"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Attività sui miei repos",
|
|
31
|
+
"none": "Nessuna attività recente da altri"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Visualizza la tua attività GitHub, commit, stelle e contributi.",
|
|
35
|
+
"view": "Vedi attività"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/nl.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "GitHub-activiteit",
|
|
5
|
+
"viewAll": "Alles bekijken",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Geen GitHub-gebruikersnaam geconfigureerd. Voeg een gebruikersnaam toe in je Indiekit-configuratie."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Uitgelichte projecten",
|
|
11
|
+
"none": "Geen uitgelichte repositories geconfigureerd"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Recente commits",
|
|
15
|
+
"none": "Geen recente commits"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Recent met ster gemarkeerd",
|
|
19
|
+
"none": "Geen repositories met ster"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PR's & Issues",
|
|
23
|
+
"none": "Geen recente bijdragen"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Mijn repositories",
|
|
27
|
+
"none": "Geen repositories gevonden"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Activiteit op mijn repos",
|
|
31
|
+
"none": "Geen recente activiteit van anderen"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Bekijk je GitHub-activiteit, commits, sterren en bijdragen.",
|
|
35
|
+
"view": "Activiteit bekijken"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/pl.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Aktywność na GitHub",
|
|
5
|
+
"viewAll": "Zobacz wszystkie",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Nie skonfigurowano nazwy użytkownika GitHub. Dodaj nazwę użytkownika w konfiguracji Indiekit."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Wyróżnione projekty",
|
|
11
|
+
"none": "Nie skonfigurowano wyróżnionych repozytoriów"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Ostatnie commity",
|
|
15
|
+
"none": "Brak ostatnich commitów"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Ostatnio oznaczone gwiazdką",
|
|
19
|
+
"none": "Brak repozytoriów oznaczonych gwiazdką"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PR-y i Issues",
|
|
23
|
+
"none": "Brak ostatnich wkładów"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Moje repozytoria",
|
|
27
|
+
"none": "Nie znaleziono repozytoriów"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Aktywność w moich repach",
|
|
31
|
+
"none": "Brak ostatniej aktywności innych"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Zobacz swoją aktywność na GitHub, commity, gwiazdki i wkłady.",
|
|
35
|
+
"view": "Zobacz aktywność"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Atividade no GitHub",
|
|
5
|
+
"viewAll": "Ver tudo",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Nenhum nome de usuário do GitHub configurado. Adicione um nome de usuário na sua configuração do Indiekit."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Projetos em destaque",
|
|
11
|
+
"none": "Nenhum repositório em destaque configurado"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Commits recentes",
|
|
15
|
+
"none": "Nenhum commit recente"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Recentemente destacados",
|
|
19
|
+
"none": "Nenhum repositório com estrela"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PRs e Issues",
|
|
23
|
+
"none": "Nenhuma contribuição recente"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Meus repositórios",
|
|
27
|
+
"none": "Nenhum repositório encontrado"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Atividade nos meus repos",
|
|
31
|
+
"none": "Nenhuma atividade recente de outros"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Veja sua atividade no GitHub, commits, estrelas e contribuições.",
|
|
35
|
+
"view": "Ver atividade"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/pt.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "Atividade no GitHub",
|
|
5
|
+
"viewAll": "Ver tudo",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Nenhum nome de utilizador do GitHub configurado. Adicione um nome de utilizador na sua configuração do Indiekit."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Projetos em destaque",
|
|
11
|
+
"none": "Nenhum repositório em destaque configurado"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Commits recentes",
|
|
15
|
+
"none": "Nenhum commit recente"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Recentemente destacados",
|
|
19
|
+
"none": "Nenhum repositório com estrela"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PRs e Issues",
|
|
23
|
+
"none": "Nenhuma contribuição recente"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Os meus repositórios",
|
|
27
|
+
"none": "Nenhum repositório encontrado"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Atividade nos meus repos",
|
|
31
|
+
"none": "Nenhuma atividade recente de outros"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Consulte a sua atividade no GitHub, commits, estrelas e contribuições.",
|
|
35
|
+
"view": "Ver atividade"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/sr.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "GitHub активност",
|
|
5
|
+
"viewAll": "Прикажи све",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Није конфигурисано корисничко име за GitHub. Додајте корисничко име у вашој Indiekit конфигурацији."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Истакнути пројекти",
|
|
11
|
+
"none": "Нису конфигурисани истакнути репозиторијуми"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Недавни commits",
|
|
15
|
+
"none": "Нема недавних commits"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Недавно означено звездицом",
|
|
19
|
+
"none": "Нема репозиторијума са звездицом"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PR-ови и Issues",
|
|
23
|
+
"none": "Нема недавних доприноса"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Моји репозиторијуми",
|
|
27
|
+
"none": "Није пронађен ниједан репозиторијум"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Активност на мојим репоима",
|
|
31
|
+
"none": "Нема недавне активности од других"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Погледајте вашу GitHub активност, commits, звездице и доприносе.",
|
|
35
|
+
"view": "Прикажи активност"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/locales/sv.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "GitHub-aktivitet",
|
|
5
|
+
"viewAll": "Visa alla",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "Inget GitHub-användarnamn konfigurerat. Lägg till ett användarnamn i din Indiekit-konfiguration."
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "Utvalda projekt",
|
|
11
|
+
"none": "Inga utvalda arkiv konfigurerade"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "Senaste commits",
|
|
15
|
+
"none": "Inga senaste commits"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "Nyligen stjärnmärkta",
|
|
19
|
+
"none": "Inga stjärnmärkta arkiv"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PR:ar & Issues",
|
|
23
|
+
"none": "Inga senaste bidrag"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "Mina arkiv",
|
|
27
|
+
"none": "Inga arkiv hittades"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "Aktivitet i mina repos",
|
|
31
|
+
"none": "Ingen senaste aktivitet från andra"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "Visa din GitHub-aktivitet, commits, stjärnor och bidrag.",
|
|
35
|
+
"view": "Visa aktivitet"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"github": {
|
|
3
|
+
"title": "GitHub",
|
|
4
|
+
"activity": "GitHub 活动",
|
|
5
|
+
"viewAll": "查看全部",
|
|
6
|
+
"error": {
|
|
7
|
+
"noUsername": "未配置 GitHub 用户名。请在您的 Indiekit 配置中添加用户名。"
|
|
8
|
+
},
|
|
9
|
+
"featured": {
|
|
10
|
+
"title": "精选项目",
|
|
11
|
+
"none": "未配置精选仓库"
|
|
12
|
+
},
|
|
13
|
+
"commits": {
|
|
14
|
+
"title": "最近提交",
|
|
15
|
+
"none": "暂无最近提交"
|
|
16
|
+
},
|
|
17
|
+
"stars": {
|
|
18
|
+
"title": "最近加星",
|
|
19
|
+
"none": "暂无加星仓库"
|
|
20
|
+
},
|
|
21
|
+
"contributions": {
|
|
22
|
+
"title": "PR 和 Issue",
|
|
23
|
+
"none": "暂无最近贡献"
|
|
24
|
+
},
|
|
25
|
+
"repos": {
|
|
26
|
+
"title": "我的仓库",
|
|
27
|
+
"none": "未找到仓库"
|
|
28
|
+
},
|
|
29
|
+
"activity": {
|
|
30
|
+
"title": "我的仓库活动",
|
|
31
|
+
"none": "暂无其他人的最近活动"
|
|
32
|
+
},
|
|
33
|
+
"widget": {
|
|
34
|
+
"description": "查看您的 GitHub 活动、提交、星标和贡献。",
|
|
35
|
+
"view": "查看活动"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/package.json
CHANGED
package/views/activity.njk
CHANGED
package/views/commits.njk
CHANGED
package/views/contributions.njk
CHANGED
package/views/github.njk
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
{% extends "
|
|
1
|
+
{% extends "layouts/github.njk" %}
|
|
2
2
|
|
|
3
|
-
{% block
|
|
3
|
+
{% block github %}
|
|
4
4
|
{% if error %}
|
|
5
5
|
{{ prose({ text: error.message }) }}
|
|
6
6
|
{% else %}
|
|
7
7
|
{# Featured Projects #}
|
|
8
8
|
{% if featured and featured.length > 0 %}
|
|
9
|
-
|
|
10
|
-
<h2>{{ __("github.featured.title") }}</h2>
|
|
9
|
+
{% call section({ title: __("github.featured.title") }) %}
|
|
11
10
|
<div class="github-featured">
|
|
12
11
|
{% for repo in featured %}
|
|
13
12
|
<article class="github-featured__repo">
|
|
@@ -30,8 +29,7 @@
|
|
|
30
29
|
{% endif %}
|
|
31
30
|
</div>
|
|
32
31
|
{% if repo.commits and repo.commits.length > 0 %}
|
|
33
|
-
|
|
34
|
-
<summary>Recent commits ({{ repo.commits.length }})</summary>
|
|
32
|
+
{% call details({ summary: "Recent commits (" ~ repo.commits.length ~ ")" }) %}
|
|
35
33
|
<ul class="github-commit-list">
|
|
36
34
|
{% for commit in repo.commits %}
|
|
37
35
|
<li>
|
|
@@ -41,17 +39,16 @@
|
|
|
41
39
|
</li>
|
|
42
40
|
{% endfor %}
|
|
43
41
|
</ul>
|
|
44
|
-
|
|
42
|
+
{% endcall %}
|
|
45
43
|
{% endif %}
|
|
46
44
|
</article>
|
|
47
45
|
{% endfor %}
|
|
48
46
|
</div>
|
|
49
|
-
|
|
47
|
+
{% endcall %}
|
|
50
48
|
{% endif %}
|
|
51
49
|
|
|
52
50
|
{# Recent Commits #}
|
|
53
|
-
|
|
54
|
-
<h2>{{ __("github.commits.title") }}</h2>
|
|
51
|
+
{% call section({ title: __("github.commits.title") }) %}
|
|
55
52
|
{% if commits and commits.length > 0 %}
|
|
56
53
|
<ul class="github-list">
|
|
57
54
|
{% for commit in commits %}
|
|
@@ -67,11 +64,10 @@
|
|
|
67
64
|
{% else %}
|
|
68
65
|
{{ prose({ text: __("github.commits.none") }) }}
|
|
69
66
|
{% endif %}
|
|
70
|
-
|
|
67
|
+
{% endcall %}
|
|
71
68
|
|
|
72
69
|
{# Recently Starred #}
|
|
73
|
-
|
|
74
|
-
<h2>{{ __("github.stars.title") }}</h2>
|
|
70
|
+
{% call section({ title: __("github.stars.title") }) %}
|
|
75
71
|
{% if stars and stars.length > 0 %}
|
|
76
72
|
<ul class="github-list github-list--grid">
|
|
77
73
|
{% for star in stars %}
|
|
@@ -92,12 +88,11 @@
|
|
|
92
88
|
{% else %}
|
|
93
89
|
{{ prose({ text: __("github.stars.none") }) }}
|
|
94
90
|
{% endif %}
|
|
95
|
-
|
|
91
|
+
{% endcall %}
|
|
96
92
|
|
|
97
93
|
{# PRs & Issues #}
|
|
98
94
|
{% if contributions and contributions.length > 0 %}
|
|
99
|
-
|
|
100
|
-
<h2>{{ __("github.contributions.title") }}</h2>
|
|
95
|
+
{% call section({ title: __("github.contributions.title") }) %}
|
|
101
96
|
<ul class="github-list">
|
|
102
97
|
{% for item in contributions %}
|
|
103
98
|
<li class="github-list__item">
|
|
@@ -113,12 +108,11 @@
|
|
|
113
108
|
</li>
|
|
114
109
|
{% endfor %}
|
|
115
110
|
</ul>
|
|
116
|
-
|
|
111
|
+
{% endcall %}
|
|
117
112
|
{% endif %}
|
|
118
113
|
|
|
119
114
|
{# My Repositories #}
|
|
120
|
-
|
|
121
|
-
<h2>{{ __("github.repos.title") }}</h2>
|
|
115
|
+
{% call section({ title: __("github.repos.title") }) %}
|
|
122
116
|
{% if repositories and repositories.length > 0 %}
|
|
123
117
|
<ul class="github-list github-list--grid">
|
|
124
118
|
{% for repo in repositories %}
|
|
@@ -150,6 +144,6 @@
|
|
|
150
144
|
{% else %}
|
|
151
145
|
{{ prose({ text: __("github.repos.none") }) }}
|
|
152
146
|
{% endif %}
|
|
153
|
-
|
|
147
|
+
{% endcall %}
|
|
154
148
|
{% endif %}
|
|
155
149
|
{% endblock %}
|
package/views/stars.njk
CHANGED