-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Tyler Wilding <[email protected]> Long overdue Progress Report.
- Loading branch information
1 parent
082e3fe
commit bf5b063
Showing
45 changed files
with
2,376 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+54.7 KB
blog/2023/q1-2022-progress-report/img/5537-UntouchedLagoonWindows.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+195 KB
blog/2023/q1-2022-progress-report/img/5593-AutomaticRendererAndUpscalingFixes.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+69.2 KB
blog/2023/q1-2022-progress-report/img/5759-AutomaticControllerMapping.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+189 KB
blog/2023/q1-2022-progress-report/img/Vulkan1.3-Logo-for-DevNews-2-1.webp
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,107 @@ | ||
import React from "react"; | ||
import { GoGitCommit, GoGitPullRequest } from "react-icons/go"; | ||
import { Avatar, Grid, Tooltip } from "@nextui-org/react"; | ||
import { IconContext } from "react-icons"; | ||
import styles from "./PCSX2PRLink.module.css"; | ||
|
||
function generatePRLinks(prNums) { | ||
if (!prNums) { | ||
return null; | ||
} | ||
const nums = prNums.split(","); | ||
if (nums.length === 0) { | ||
return null; | ||
} | ||
let icons = []; | ||
let i = 0; | ||
for (const num of nums) { | ||
icons.push( | ||
<a key={i++} href={`https://github.com/PCSX2/pcsx2/pull/${num}`}> | ||
<IconContext.Provider value={{ style: { verticalAlign: "middle" } }}> | ||
<GoGitPullRequest size={24}></GoGitPullRequest> | ||
</IconContext.Provider> | ||
{num} | ||
</a> | ||
); | ||
} | ||
return icons; | ||
} | ||
|
||
function generateCommitLinks(commitShas) { | ||
if (!commitShas) { | ||
return null; | ||
} | ||
const shas = commitShas.split(","); | ||
if (shas.length === 0) { | ||
return null; | ||
} | ||
let icons = []; | ||
let i = 0; | ||
for (const sha of shas) { | ||
icons.push( | ||
<a key={i++} href={`https://github.com/PCSX2/pcsx2/commit/${sha}`}> | ||
<IconContext.Provider value={{ style: { verticalAlign: "middle" } }}> | ||
<GoGitCommit size={24}></GoGitCommit> | ||
</IconContext.Provider> | ||
{sha.substr(0, 6)} | ||
</a> | ||
); | ||
} | ||
return icons; | ||
} | ||
|
||
const authorsWithoutAvatars = ["github-actions"]; | ||
|
||
function generateAuthorAvatars(authors) { | ||
if (!authors) { | ||
return null; | ||
} | ||
const authorNames = authors.split(","); | ||
if (authorNames.length === 0) { | ||
return null; | ||
} | ||
let avatars = []; | ||
let i = 0; | ||
for (const author of authorNames) { | ||
avatars.push( | ||
<Tooltip key={i++} content={author}> | ||
<Avatar | ||
size="md" | ||
src={ | ||
authorsWithoutAvatars.includes(author.toLowerCase()) | ||
? undefined | ||
: `https://github.com/${author}.png?size=40` | ||
} | ||
text={author} | ||
alt={author} | ||
bordered | ||
color="gradient" | ||
stacked | ||
/> | ||
</Tooltip> | ||
); | ||
} | ||
return ( | ||
<Avatar.Group | ||
animated={avatars.length > 1} | ||
style={{ marginRight: "0.5em" }} | ||
> | ||
{avatars} | ||
</Avatar.Group> | ||
); | ||
} | ||
|
||
export default function PCSX2PRLink({ children, prNums, shas, authors }) { | ||
return ( | ||
<Grid.Container className={styles["pr-link"]}> | ||
<Grid xs={12} alignItems="center"> | ||
<span style={{ marginRight: "1.5em" }}>{children}</span> | ||
</Grid> | ||
<Grid xs={12} alignItems="center" css={{ ml: "0.75em" }}> | ||
{generateAuthorAvatars(authors)} | ||
{generatePRLinks(prNums)} | ||
{generateCommitLinks(shas)} | ||
</Grid> | ||
</Grid.Container> | ||
); | ||
} | ||
import React from "react"; | ||
import { GoGitCommit, GoGitPullRequest } from "react-icons/go"; | ||
import { Avatar, Grid, Tooltip } from "@nextui-org/react"; | ||
import { IconContext } from "react-icons"; | ||
import styles from "./PCSX2PRLink.module.css"; | ||
|
||
function generatePRLinks(prNums) { | ||
if (!prNums) { | ||
return null; | ||
} | ||
const nums = prNums.split(","); | ||
if (nums.length === 0) { | ||
return null; | ||
} | ||
let icons = []; | ||
let i = 0; | ||
for (const num of nums) { | ||
icons.push( | ||
<a key={i++} href={`https://github.com/PCSX2/pcsx2/pull/${num}`}> | ||
<IconContext.Provider value={{ style: { verticalAlign: "middle" } }}> | ||
<GoGitPullRequest size={24}></GoGitPullRequest> | ||
</IconContext.Provider> | ||
{num} | ||
</a> | ||
); | ||
} | ||
return icons; | ||
} | ||
|
||
function generateCommitLinks(commitShas) { | ||
if (!commitShas) { | ||
return null; | ||
} | ||
const shas = commitShas.split(","); | ||
if (shas.length === 0) { | ||
return null; | ||
} | ||
let icons = []; | ||
let i = 0; | ||
for (const sha of shas) { | ||
icons.push( | ||
<a key={i++} href={`https://github.com/PCSX2/pcsx2/commit/${sha}`}> | ||
<IconContext.Provider value={{ style: { verticalAlign: "middle" } }}> | ||
<GoGitCommit size={24}></GoGitCommit> | ||
</IconContext.Provider> | ||
{sha.substr(0, 6)} | ||
</a> | ||
); | ||
} | ||
return icons; | ||
} | ||
|
||
const authorsWithoutAvatars = ["github-actions"]; | ||
|
||
function generateAuthorAvatars(authors) { | ||
if (!authors) { | ||
return null; | ||
} | ||
const authorNames = authors.split(","); | ||
if (authorNames.length === 0) { | ||
return null; | ||
} | ||
let avatars = []; | ||
let i = 0; | ||
for (const author of authorNames) { | ||
avatars.push( | ||
<Tooltip key={i++} content={author}> | ||
<Avatar | ||
size="md" | ||
src={ | ||
authorsWithoutAvatars.includes(author.toLowerCase()) | ||
? undefined | ||
: `https://github.com/${author}.png?size=40` | ||
} | ||
text={author} | ||
alt={author} | ||
bordered | ||
color="gradient" | ||
stacked | ||
/> | ||
</Tooltip> | ||
); | ||
} | ||
return ( | ||
<Avatar.Group | ||
animated={avatars.length > 1} | ||
style={{ marginRight: "0.5em" }} | ||
> | ||
{avatars} | ||
</Avatar.Group> | ||
); | ||
} | ||
|
||
export default function PCSX2PRLink({ children, prNums, shas, authors }) { | ||
return ( | ||
<Grid.Container className={styles["pr-link"]}> | ||
<Grid xs={12} alignItems="center"> | ||
<span style={{ marginRight: "1.5em" }}>{children}</span> | ||
</Grid> | ||
<Grid xs={12} alignItems="center" css={{ ml: "0.75em" }}> | ||
{generateAuthorAvatars(authors)} | ||
{generatePRLinks(prNums)} | ||
{generateCommitLinks(shas)} | ||
</Grid> | ||
</Grid.Container> | ||
); | ||
} |