diff --git a/.drone.yml b/.drone.yml
index 99e6e32..89de725 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -2,11 +2,11 @@ kind: pipeline
name: default
steps:
- # - name: build
- # image: node
- # commands:
- # - npm install
- # - npm run build
+ - name: build
+ image: node
+ commands:
+ - npm install
+ - npm run build
- name: deploy
image: node
@@ -14,6 +14,8 @@ steps:
- name: www-next
path: /www-next
commands:
+ - npm install
+ - npm run build
- rm -rf /www-next/* /www-next/.[!.]*
- cp -r ./ /www-next/
- npm install --prefix /www-next
diff --git a/components/GitGallery/GitGallery.jsx b/components/GitGallery/GitGallery.jsx
index c163945..ef2fa53 100644
--- a/components/GitGallery/GitGallery.jsx
+++ b/components/GitGallery/GitGallery.jsx
@@ -16,22 +16,23 @@ export function GitGallery(props) {
name={repo.name}
description={repo.description}
avatarUrl={repo.avatar_url}
+ key={repo.full_name}
/>
);
});
- props.publicGithubRepos.forEach((repo) => {
- links.push(
-
- );
- });
+ // props.publicGithubRepos.forEach((repo) => {
+ // links.push(
+ //
+ // );
+ // });
return (
diff --git a/components/ProjectCard/ProjectCard.jsx b/components/ProjectCard/ProjectCard.jsx
index 4f90938..218bbb0 100644
--- a/components/ProjectCard/ProjectCard.jsx
+++ b/components/ProjectCard/ProjectCard.jsx
@@ -11,10 +11,14 @@ export function ProjectCard(props) {
>
{props.name}
@@ -22,7 +26,3 @@ export function ProjectCard(props) {
);
}
-
-ProjectCard.defaultProps = {
- avatarUrl: "/article_black_48dp.svg",
-};
diff --git a/components/RepoSummary/RepoSummary.jsx b/components/RepoSummary/RepoSummary.jsx
index d2e44cc..1516eb0 100644
--- a/components/RepoSummary/RepoSummary.jsx
+++ b/components/RepoSummary/RepoSummary.jsx
@@ -17,10 +17,25 @@ export function RepoSummary(props) {
options={{
indexAxis: "y",
responsive: true,
+ legend: {
+ labels: {
+ fontColor: "#ffffff",
+ },
+ },
scales: {
- myScale: {
+ y: {
+ type: "category",
+ position: "left",
+ ticks: {
+ color: "white",
+ },
+ },
+ x: {
type: "logarithmic",
position: "bottom",
+ ticks: {
+ color: "white",
+ },
},
},
}}
diff --git a/components/RepoSummary/RepoSummary.module.sass b/components/RepoSummary/RepoSummary.module.sass
index 6d7dbf2..bf10ef5 100644
--- a/components/RepoSummary/RepoSummary.module.sass
+++ b/components/RepoSummary/RepoSummary.module.sass
@@ -2,3 +2,6 @@
max-width: 1000px
width: 50vw
margin: 150px 0
+
+ canvas
+ color: white
diff --git a/pages/index.jsx b/pages/index.jsx
index a3c1169..ec1b106 100644
--- a/pages/index.jsx
+++ b/pages/index.jsx
@@ -63,11 +63,17 @@ export async function getStaticProps(context) {
// console.log(githubResp);
var publicGithubRepos = await githubResp.json();
+ console.log(publicGithubRepos);
} catch (error) {
console.warn(error);
}
- for (const repo of publicGithubRepos) {
+ if (publicGiteaRepos.documentation_url) {
+ console.error(publicGithubRepos);
+ publicGithubRepos = [];
+ }
+
+ for (const repo in publicGithubRepos) {
var resp = await fetch(
"https://api.github.com/repos/" + repo.full_name + "/languages",
{