Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 93bb7f6

Browse files
Added new presets
1 parent 767da42 commit 93bb7f6

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

components/Form.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ class Form extends React.Component {
6464
let input1 = this.state.input1;
6565
let input2 = this.state.input2;
6666
if (this.state.dropdown === "presets") {
67-
if (this.state.preset === "yannick+account") {
67+
if (this.state.preset === "esjmb+account") {
68+
input1 = "esjmb";
69+
preset_select = "user";
70+
} else if (this.state.preset === "yannick+account") {
6871
input1 = "yannickgloster";
6972
preset_select = "user";
7073
} else if (this.state.preset === "brian+account") {
@@ -77,6 +80,10 @@ class Form extends React.Component {
7780
input1 = "yannickgloster";
7881
input2 = "discord-10man";
7982
preset_select = "user+repo";
83+
} else if (this.state.preset == "lexesjan+account+repo") {
84+
input1 = "lexesjan";
85+
input2 = "vhdl-processor";
86+
preset_select = "user+repo";
8087
}
8188
}
8289

@@ -398,6 +405,9 @@ class Form extends React.Component {
398405
onChange={this.handlePresetDropdown}
399406
className={styles.form_element}
400407
>
408+
<option value="esjmb+account">
409+
Professor Stephen Barrett's GitHub Account
410+
</option>
401411
<option value="yannick+account">
402412
Yannick's GitHub Account
403413
</option>
@@ -408,6 +418,9 @@ class Form extends React.Component {
408418
<option value="yannick+account+repo">
409419
Yannick's Discord-10man Repo
410420
</option>
421+
<option value="lexesjan+account+repo">
422+
Lexes' vhdl-processor repo
423+
</option>
411424
</select>
412425
)}
413426
</label>
@@ -422,6 +435,7 @@ class Form extends React.Component {
422435
)}
423436
{this.state.pie_data.length > 0 && !this.state.search_error && (
424437
<div className={styles.pie_data}>
438+
<h4>Activity Time Breakdown</h4>
425439
<ResponsivePie
426440
data={this.state.pie_data}
427441
margin={{ top: 40, right: 80, bottom: 80, left: 80 }}
@@ -466,6 +480,7 @@ class Form extends React.Component {
466480
)}
467481
{this.state.calendar_data.length > 0 && !this.state.search_error && (
468482
<div className={styles.contributions_data}>
483+
<br />
469484
<h4>
470485
<select
471486
name="year"
@@ -511,6 +526,8 @@ class Form extends React.Component {
511526
)}
512527
{this.state.nodes.length > 0 && !this.state.search_error && (
513528
<div className={styles.network_data}>
529+
<br />
530+
<br />
514531
<h4>User Followers Connections at 2 degrees</h4>
515532
<ResponsiveNetwork
516533
nodes={this.state.nodes}
@@ -574,7 +591,7 @@ class Form extends React.Component {
574591

575592
{this.state.line_data.length > 0 && !this.state.search_error && (
576593
<div className={styles.repo_contributions}>
577-
<h4>User Contributions Over Time</h4>
594+
<h4>Weekly User Contributions Over Time</h4>
578595
<ResponsiveLineCanvas
579596
data={this.state.line_data}
580597
margin={{ top: 20, right: 120, bottom: 60, left: 80 }}
@@ -603,7 +620,7 @@ class Form extends React.Component {
603620
legendPosition: "middle",
604621
}}
605622
axisBottom={{
606-
format: "%b %d %Y",
623+
format: "%b %d %y",
607624
legendOffset: -12,
608625
tickRotation: 90,
609626
}}

0 commit comments

Comments
 (0)