Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
figma-icon-automation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lift.hurley
figma-icon-automation
Commits
3348f584
Commit
3348f584
authored
Dec 21, 2019
by
Danil Golovachev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for private repos
parent
d2a46083
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69310 additions
and
27 deletions
+69310
-27
github.js
api/github.js
+4
-2
code.js
dist/code.js
+128
-1
ui.html
dist/ui.html
+34589
-12
ui.js
dist/ui.js
+34589
-12
No files found.
api/github.js
View file @
3348f584
...
...
@@ -3,7 +3,8 @@ export const base = 'https://api.github.com'
export
const
getContent
=
(
filePath
,
githubData
)
=>
{
return
fetch
(
`
${
base
}
/repos/
${
githubData
.
owner
}
/
${
githubData
.
name
}
/contents/
${
filePath
}
`
,
{
headers
:
{
'content-type'
:
'application/json'
'content-type'
:
'application/json'
,
'Authorization'
:
`token
${
githubData
.
githubToken
}
`
}
})
.
then
(
response
=>
response
.
json
())
...
...
@@ -17,7 +18,8 @@ export const getContent = (filePath, githubData) => {
export
const
getCommit
=
(
githubData
)
=>
{
return
fetch
(
`
${
base
}
/repos/
${
githubData
.
owner
}
/
${
githubData
.
name
}
/commits/refs/heads/master`
,
{
headers
:
{
'content-type'
:
'application/json'
'content-type'
:
'application/json'
,
'Authorization'
:
`token
${
githubData
.
githubToken
}
`
}
})
.
then
(
response
=>
response
.
json
())
...
...
dist/code.js
View file @
3348f584
This diff is collapsed.
Click to expand it.
dist/ui.html
View file @
3348f584
This diff is collapsed.
Click to expand it.
dist/ui.js
View file @
3348f584
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment