@unitedstatespowersquadrons/components 1.4.14 → 1.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Badges/Branch.tsx +4 -2
- package/Badges/Commit.tsx +2 -2
- package/Badges/PhpLibrary.tsx +2 -2
- package/Badges/Repo.tsx +2 -2
- package/Badges/Tag.tsx +2 -2
- package/Badges/remotes.ts +2 -1
- package/Colors.tsx +2 -2
- package/package.json +1 -1
package/Badges/Branch.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { githubOrg, shields } from "./remotes";
|
|
3
3
|
import { badgeify } from "./helpers";
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
@@ -18,7 +18,9 @@ const BranchBadge = (props: Props) => {
|
|
|
18
18
|
const img = <img src={`${shields}/badge/${name}-${color}?logo=git&logoColor=white`} />;
|
|
19
19
|
if (!effectiveRepo) return img;
|
|
20
20
|
|
|
21
|
-
return
|
|
21
|
+
return(
|
|
22
|
+
<a href={`${githubOrg}/${effectiveRepo}/compare/${branch}?expand=1`} rel="noreferrer" target="_blank">{img}</a>
|
|
23
|
+
);
|
|
22
24
|
};
|
|
23
25
|
|
|
24
26
|
export default BranchBadge;
|
package/Badges/Commit.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { githubOrg, shields } from "./remotes";
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
commit: string;
|
|
@@ -12,7 +12,7 @@ const CommitBadge = (props: Props) => {
|
|
|
12
12
|
const img = <img src={`${shields}/badge/sha-${commit.slice(0, 12)}-purple`} />;
|
|
13
13
|
if (!repo) return img;
|
|
14
14
|
|
|
15
|
-
return <a href={`${
|
|
15
|
+
return <a href={`${githubOrg}/${repo}/commit/${commit}`} rel="noreferrer" target="_blank">{img}</a>;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export default CommitBadge;
|
package/Badges/PhpLibrary.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Badge from "./Badge";
|
|
3
|
-
import {
|
|
3
|
+
import { githubOrg } from "./remotes";
|
|
4
4
|
import { versionColor } from "./helpers";
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
@@ -12,7 +12,7 @@ const PhpLibraryBadge = (props: Props) => {
|
|
|
12
12
|
const { php, version } = props;
|
|
13
13
|
|
|
14
14
|
return(
|
|
15
|
-
<a href={`${
|
|
15
|
+
<a href={`${githubOrg}/${php}`} rel="noreferrer" target="_blank">
|
|
16
16
|
<Badge
|
|
17
17
|
color={versionColor(version)}
|
|
18
18
|
content={version}
|
package/Badges/Repo.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { githubOrg, shields } from "./remotes";
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
repo: string;
|
|
@@ -9,7 +9,7 @@ const RepoBadge = (props: Props) => {
|
|
|
9
9
|
const { repo } = props;
|
|
10
10
|
|
|
11
11
|
return(
|
|
12
|
-
<a href={`${
|
|
12
|
+
<a href={`${githubOrg}/${repo}`} rel="noreferrer" target="_blank">
|
|
13
13
|
<img src={`${shields}/badge/repo-gray?logo=github`} />
|
|
14
14
|
</a>
|
|
15
15
|
);
|
package/Badges/Tag.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Badge from "./Badge";
|
|
3
3
|
import { badgeify, versionColor } from "./helpers";
|
|
4
|
-
import {
|
|
4
|
+
import { githubOrg } from "./remotes";
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
7
7
|
version: string;
|
|
@@ -22,7 +22,7 @@ const TagBadge = (props: Props) => {
|
|
|
22
22
|
/>);
|
|
23
23
|
|
|
24
24
|
if (repo) {
|
|
25
|
-
return <a href={`${
|
|
25
|
+
return <a href={`${githubOrg}/${repo}`} rel="noreferrer" target="_blank">{badge}</a>;
|
|
26
26
|
} else {
|
|
27
27
|
return badge;
|
|
28
28
|
}
|
package/Badges/remotes.ts
CHANGED
package/Colors.tsx
CHANGED