Skip to content

Commit

Permalink
Build update
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef committed Aug 14, 2022
1 parent b4e59c4 commit 23c168c
Show file tree
Hide file tree
Showing 14 changed files with 7,308 additions and 100 deletions.
94 changes: 47 additions & 47 deletions build/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
import "./index.css";
interface StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
}
interface StarcounterParams {
showBtn: string;
showStargazers: string;
showButtonCount: string;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
goalDiff: string;
}
declare class Starcounter implements StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
wrapperElem: Element;
mainSection: HTMLDivElement;
secondarySection: HTMLDivElement;
endpoint: string;
stargazersUrl: string;
repoUrl: string;
stargazers_count: number;
goalStep: number;
goalDiff: boolean;
constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>);
getApi: (path?: string) => Promise<unknown>;
render: () => Promise<void>;
renderButton: () => void;
renderStargazers: () => Promise<void>;
renderGoalStep: () => void;
}
export default Starcounter;
import "./index.css";
interface StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
}
interface StarcounterParams {
showBtn: string;
showStargazers: string;
showButtonCount: string;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
goalDiff: string;
}
declare class Starcounter implements StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
wrapperElem: Element;
mainSection: HTMLDivElement;
secondarySection: HTMLDivElement;
endpoint: string;
stargazersUrl: string;
repoUrl: string;
stargazers_count: number;
goalStep: number;
goalDiff: boolean;
constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>);
getApi: (path?: string) => Promise<unknown>;
render: () => Promise<void>;
renderButton: () => void;
renderStargazers: () => Promise<void>;
renderGoalStep: () => void;
}
export default Starcounter;
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

Binary file added dist/60ce5add50659d770881.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/8aee36ca13623877964b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions dist/badge.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="index.css" rel="stylesheet" />
<title>Dev Unltd - Star Badge</title>
<style>
html,
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div class="github-starcounter"></div>
<script src="index.js"></script>
</body>
</html>
37 changes: 37 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
html,
body {
font-family: sans-serif;
padding: 20px;
}

h1 {
font-weight: 200;
margin-top: 0;
}
</style>
</head>
<body>
<div id="root">
<h1>github-starcounter</h1>
<p>
<a href="https://hodgef.com/github-starcounter/">View Documentation</a>
</p>
<iframe
src="badge.html?user=hodgef&repo=simple-keyboard&button=true&stargazers=true&theme=inline&nbitems=10&goalstep=100&goaldiff=true"
frameborder="0"
scrolling="0"
width="600"
height="95"
title="GitHub"
></iframe>
</div>
</body>
</html>
Loading

0 comments on commit 23c168c

Please sign in to comment.