Compare commits

...

12 Commits

Author SHA1 Message Date
Acereca 26676ab4e9 update img tags and correct deploy
continuous-integration/drone/push Build is passing Details
2022-03-10 09:52:42 +01:00
Acereca d930de2081 add npm install
continuous-integration/drone/push Build is passing Details
2022-03-07 11:49:25 +01:00
Acereca 5a71416bff cp this dir
continuous-integration/drone/push Build is passing Details
2022-03-07 11:46:59 +01:00
Acereca 9472bad91a ignore non exists
continuous-integration/drone/push Build is failing Details
2022-03-07 11:46:06 +01:00
Acereca 5515c7329a exclude . and ..
continuous-integration/drone/push Build is failing Details
2022-03-07 11:45:37 +01:00
Acereca 07aba2270d testing rm;
continuous-integration/drone/push Build is failing Details
2022-03-07 11:43:19 +01:00
Acereca 18b70a7f08 testing rm
continuous-integration/drone/push Build is failing Details
2022-03-07 11:30:50 +01:00
Acereca 00c28509ed testing rm and cp
continuous-integration/drone/push Build is failing Details
2022-03-07 11:30:21 +01:00
Acereca 1377c0b477 testing ls
continuous-integration/drone/push Build is passing Details
2022-03-07 11:29:06 +01:00
Acereca 0ec97cd6c6 testing pwd
continuous-integration/drone/push Build is passing Details
2022-03-07 11:28:27 +01:00
Acereca c144c5b241 fix indent
continuous-integration/drone/push Build is passing Details
2022-03-07 11:14:18 +01:00
Acereca fb7bb0e3af add deploy step for testing 2022-03-07 11:13:36 +01:00
6 changed files with 63 additions and 21 deletions

View File

@ -7,3 +7,20 @@ steps:
commands: commands:
- npm install - npm install
- npm run build - npm run build
- name: deploy
image: node
volumes:
- 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
volumes:
- name: www-next
host:
path: /Main/www-next

View File

@ -16,22 +16,23 @@ export function GitGallery(props) {
name={repo.name} name={repo.name}
description={repo.description} description={repo.description}
avatarUrl={repo.avatar_url} avatarUrl={repo.avatar_url}
key={repo.full_name}
/> />
); );
}); });
props.publicGithubRepos.forEach((repo) => { // props.publicGithubRepos.forEach((repo) => {
links.push( // links.push(
<ProjectCard // <ProjectCard
classNames={styles.card_github} // classNames={styles.card_github}
url={repo.html_url} // url={repo.html_url}
fullName={repo.full_name} // fullName={repo.full_name}
name={repo.name} // name={repo.name}
description={repo.description} // description={repo.description}
avatarUrl={repo.avatar_url} // avatarUrl={repo.avatar_url}
/> // />
); // );
}); // });
return ( return (
<div className={styles.cardContainer}> <div className={styles.cardContainer}>

View File

@ -11,10 +11,14 @@ export function ProjectCard(props) {
> >
<Image <Image
className={props.mockupUrl ? styles.card_mockup : styles.card_gitea} className={props.mockupUrl ? styles.card_mockup : styles.card_gitea}
src={props.mockupUrl ? props.mockupUrl : props.avatarUrl} src={
props.mockupUrl
? props.mockupUrl
: props.avatarUrl || "/article_black_48dp.svg"
}
alt={props.name} alt={props.name}
width="15vw" width="15"
height="15vw" height="15"
unoptimized={true} unoptimized={true}
/> />
<h2>{props.name}</h2> <h2>{props.name}</h2>
@ -22,7 +26,3 @@ export function ProjectCard(props) {
</a> </a>
); );
} }
ProjectCard.defaultProps = {
avatarUrl: "/article_black_48dp.svg",
};

View File

@ -17,10 +17,25 @@ export function RepoSummary(props) {
options={{ options={{
indexAxis: "y", indexAxis: "y",
responsive: true, responsive: true,
legend: {
labels: {
fontColor: "#ffffff",
},
},
scales: { scales: {
myScale: { y: {
type: "category",
position: "left",
ticks: {
color: "white",
},
},
x: {
type: "logarithmic", type: "logarithmic",
position: "bottom", position: "bottom",
ticks: {
color: "white",
},
}, },
}, },
}} }}

View File

@ -2,3 +2,6 @@
max-width: 1000px max-width: 1000px
width: 50vw width: 50vw
margin: 150px 0 margin: 150px 0
canvas
color: white

View File

@ -63,11 +63,17 @@ export async function getStaticProps(context) {
// console.log(githubResp); // console.log(githubResp);
var publicGithubRepos = await githubResp.json(); var publicGithubRepos = await githubResp.json();
console.log(publicGithubRepos);
} catch (error) { } catch (error) {
console.warn(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( var resp = await fetch(
"https://api.github.com/repos/" + repo.full_name + "/languages", "https://api.github.com/repos/" + repo.full_name + "/languages",
{ {