#Refactor Plan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Button, | |
Dialog, | |
DialogActions, | |
DialogContent, | |
DialogTitle, | |
} from "czifui"; | |
<Dialog open={isOpen} onClose={handleClose}> | |
<DialogTitle title="API Key" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
repository(owner: "iruka-dev", name: "iruka") { | |
stargazers(first: 50) { | |
nodes { | |
login | |
company | |
repositories(last: 10) { | |
nodes { | |
name | |
languages(first: 3) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"viewer": { | |
"repositories": { | |
"nodes": [ | |
{ | |
"name": "visual-trie" | |
}, | |
{ | |
"name": "streamer-analytics" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
viewer { | |
repositories(last:5){ | |
nodes{ | |
name | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// POST: Update all of the users in the database | |
router.post('/', (req, res) => { | |
// Remove existing data | |
mongoose.connection.db.dropDatabase(); | |
// Get request for all stargazers of Ikura repo | |
const getStargazers = octokit.activity.listStargazersForRepo.endpoint.merge({ | |
owner: 'iruka-dev', | |
repo: 'iruka', | |
}); |
Remove any existing database
Ask GitHub for the stargazers of the GitHub repo 'iruka-dev/iruka'
loop over the data
Get a GitHub user's data from GitHub
If the user has a GitHub organization
Format the GithHub organization name
Create a user database entry
Iterate over the user's GitHub repos from GitHub
Get the repo's languages from GitHub
Remove any existing database Ask GitHub for the stargazers of the GitHub repo 'iruka-dev/iruka' loop over the data Get a user's data from GitHub If the user has a organization Format the organization name Create a user database entry Iterate over the user's repos from GitHub Get the repo's languages from GitHub Iterate over the repo's issues from GitHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "cmd+n", | |
"command": "-workbench.action.files.newUntitledFile" | |
}, | |
{ | |
"key": "cmd+n", | |
"command": "explorer.newFile" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-12-20T17:36:24.291Z","extensionVersion":"v3.4.3"} |
NewerOlder