Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge new dependencies #63

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
809682c
working except github
piotrpdev Oct 26, 2023
33d7fc0
fix: github.html
piotrpdev Nov 3, 2023
13a2596
feat: replace jQuery with native, fix GitHub auth
piotrpdev Nov 4, 2023
9f4f766
feat: replace Moment with native
piotrpdev Nov 4, 2023
38c745c
refactor: move demo to another vite config
piotrpdev Nov 4, 2023
0c049c5
fix: correct README to use new demo script
piotrpdev Nov 4, 2023
4892233
feat: use jsdelivr for jsgl
piotrpdev Nov 5, 2023
ff8dbe7
feat: update jQuery, switch to vitest
piotrpdev Nov 5, 2023
bb5081e
fix: small test and build script improv
piotrpdev Nov 5, 2023
f3bd284
feat: deploy demo to gh pages
piotrpdev Nov 5, 2023
4029e03
fix: change gh pages to use dispatch
piotrpdev Nov 5, 2023
183afa5
fix: change demo to use relative paths
piotrpdev Nov 5, 2023
de063b6
feat: Build gh_pages with action
piotrpdev Nov 5, 2023
9301d16
feat: prepare for npm
piotrpdev Nov 5, 2023
206f60c
refactor: remove docker mention
piotrpdev Nov 5, 2023
8333351
refactor: add dist until npm issue is resolved
piotrpdev Nov 5, 2023
d10f1af
feat: favicon, nicer README
piotrpdev Nov 5, 2023
7d19da2
fix: package name in library bug
piotrpdev Nov 5, 2023
552569b
fix: regex bug
piotrpdev Nov 5, 2023
2c81dc5
fix: update library
piotrpdev Nov 5, 2023
9fa3762
feat: rewrite AsyncLoader to Promises
piotrpdev Nov 5, 2023
84710a3
refactor: remove dist since npm issue resolved
piotrpdev Nov 7, 2023
c20be0f
refactor: remove unused travis file
piotrpdev Nov 7, 2023
4636ef8
fix: umd file extension, refactor: npm in readme
piotrpdev Nov 7, 2023
6a8427a
fix: spelling
piotrpdev Nov 7, 2023
9889622
fix: dist file names in package.json
piotrpdev Nov 7, 2023
7f34060
fix: didn't build in npm workflow
piotrpdev Nov 7, 2023
8181358
refactor: make demo use jsdelivr
piotrpdev Nov 7, 2023
bc50bf7
fix: bump version in README
piotrpdev Nov 7, 2023
7c0e7d6
feat: switch crypto-js to spark-md5
piotrpdev Nov 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: github.html
piotrpdev committed Nov 3, 2023

Unverified

This user has not yet uploaded their public signing key.
commit 33d7fc0b86132f8747afc9043b33a5126a6bbf80
2 changes: 1 addition & 1 deletion src/demo/html/github.html
Original file line number Diff line number Diff line change
@@ -176,7 +176,7 @@

$("#myGitlinePanel-1").html("");
Gitline.create()
.fromProvider(new Gitline.Plugin.GithubCommitProvider(data.url, data.limit, data.accessToken.trim()))
.fromGitHub(data.url, data.limit, data.accessToken.trim())
.withHeader("Github Repository <a href=\""+data.url+"\">"+data.url+"</a>")
.renderTo(document.getElementById("myGitlinePanel-1"));

5 changes: 5 additions & 0 deletions src/main/ts/Main.ts
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import { CommitProvider } from "./CommitProvider";
import { CommitView } from "./CommitView";
import { Config, indexToX } from "./Config";
import { Expandable, HTMLExpandableElement } from "./Expandable";
import { GithubCommitProvider } from "./plugins/GithubCommitProvider";
import { LocalGit2JsonProvider } from "./plugins/LocalGit2JsonProvider";

declare var jsgl: any;
@@ -349,6 +350,10 @@ export default class Gitline {
return this.fromProvider(new LocalGit2JsonProvider(jsonFile));
}

public fromGitHub(url: string, limit: number, accessToken: string): Gitline {
return this.fromProvider(new GithubCommitProvider(url, limit, accessToken));
}

public fromProvider(commitProvider: CommitProvider): Gitline {
this.commitProvider = commitProvider;
return this;