Skip to content

Commit 23c168c

Browse files
committed
Build update
1 parent b4e59c4 commit 23c168c

14 files changed

Lines changed: 7308 additions & 100 deletions

build/index.d.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
import "./index.css";
2-
interface StarcounterInterface {
3-
showBtn: boolean;
4-
showStargazers: boolean;
5-
showButtonCount: boolean;
6-
user: string;
7-
repo: string;
8-
theme: string;
9-
nbItems: number;
10-
goalStep: number;
11-
}
12-
interface StarcounterParams {
13-
showBtn: string;
14-
showStargazers: string;
15-
showButtonCount: string;
16-
user: string;
17-
repo: string;
18-
theme: string;
19-
nbItems: number;
20-
goalStep: number;
21-
goalDiff: string;
22-
}
23-
declare class Starcounter implements StarcounterInterface {
24-
showBtn: boolean;
25-
showStargazers: boolean;
26-
showButtonCount: boolean;
27-
user: string;
28-
repo: string;
29-
theme: string;
30-
nbItems: number;
31-
wrapperElem: Element;
32-
mainSection: HTMLDivElement;
33-
secondarySection: HTMLDivElement;
34-
endpoint: string;
35-
stargazersUrl: string;
36-
repoUrl: string;
37-
stargazers_count: number;
38-
goalStep: number;
39-
goalDiff: boolean;
40-
constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>);
41-
getApi: (path?: string) => Promise<unknown>;
42-
render: () => Promise<void>;
43-
renderButton: () => void;
44-
renderStargazers: () => Promise<void>;
45-
renderGoalStep: () => void;
46-
}
47-
export default Starcounter;
1+
import "./index.css";
2+
interface StarcounterInterface {
3+
showBtn: boolean;
4+
showStargazers: boolean;
5+
showButtonCount: boolean;
6+
user: string;
7+
repo: string;
8+
theme: string;
9+
nbItems: number;
10+
goalStep: number;
11+
}
12+
interface StarcounterParams {
13+
showBtn: string;
14+
showStargazers: string;
15+
showButtonCount: string;
16+
user: string;
17+
repo: string;
18+
theme: string;
19+
nbItems: number;
20+
goalStep: number;
21+
goalDiff: string;
22+
}
23+
declare class Starcounter implements StarcounterInterface {
24+
showBtn: boolean;
25+
showStargazers: boolean;
26+
showButtonCount: boolean;
27+
user: string;
28+
repo: string;
29+
theme: string;
30+
nbItems: number;
31+
wrapperElem: Element;
32+
mainSection: HTMLDivElement;
33+
secondarySection: HTMLDivElement;
34+
endpoint: string;
35+
stargazersUrl: string;
36+
repoUrl: string;
37+
stargazers_count: number;
38+
goalStep: number;
39+
goalDiff: boolean;
40+
constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>);
41+
getApi: (path?: string) => Promise<unknown>;
42+
render: () => Promise<void>;
43+
renderButton: () => void;
44+
renderStargazers: () => Promise<void>;
45+
renderGoalStep: () => void;
46+
}
47+
export default Starcounter;

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/60ce5add50659d770881.png

915 Bytes
Loading

dist/8aee36ca13623877964b.png

300 Bytes
Loading

dist/badge.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link href="index.css" rel="stylesheet" />
7+
<title>Dev Unltd - Star Badge</title>
8+
<style>
9+
html,
10+
body {
11+
margin: 0;
12+
padding: 0;
13+
}
14+
</style>
15+
</head>
16+
<body>
17+
<div class="github-starcounter"></div>
18+
<script src="index.js"></script>
19+
</body>
20+
</html>

dist/index.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<title>Demo</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<style>
9+
html,
10+
body {
11+
font-family: sans-serif;
12+
padding: 20px;
13+
}
14+
15+
h1 {
16+
font-weight: 200;
17+
margin-top: 0;
18+
}
19+
</style>
20+
</head>
21+
<body>
22+
<div id="root">
23+
<h1>github-starcounter</h1>
24+
<p>
25+
<a href="https://hodgef.com/github-starcounter/">View Documentation</a>
26+
</p>
27+
<iframe
28+
src="badge.html?user=hodgef&repo=simple-keyboard&button=true&stargazers=true&theme=inline&nbitems=10&goalstep=100&goaldiff=true"
29+
frameborder="0"
30+
scrolling="0"
31+
width="600"
32+
height="95"
33+
title="GitHub"
34+
></iframe>
35+
</div>
36+
</body>
37+
</html>

0 commit comments

Comments
 (0)