Compare commits

..

No commits in common. "main" and "2c4f05aebfb3db1dd0d3389c443bc396cac86806" have entirely different histories.

6 changed files with 21 additions and 63 deletions

View File

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

View File

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

View File

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

View File

@ -63,17 +63,11 @@ 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);
} }
if (publicGiteaRepos.documentation_url) { for (const repo of publicGithubRepos) {
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",
{ {