|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
import React, { useEffect, useReducer, useState } from 'react' |
|
|
|
|
import { add, addall, checkout, checkoutfile, clone, commit, createBranch, remoteBranches, repositories, rm, getCommitChanges, diff, resolveRef, getBranchCommits, setUpstreamRemote, loadGitHubUserFromToken, getBranches, getRemotes, remoteCommits, saveGitHubCredentials, getGitHubCredentialsFromLocalStorage, fetch, pull, push, setDefaultRemote, addRemote, removeRemote, sendToGitLog, clearGitLog, getBranchDifferences, getFileStatusMatrix, init, showAlert } from '../lib/gitactions' |
|
|
|
|
import { add, addall, checkout, checkoutfile, clone, commit, createBranch, remoteBranches, repositories, rm, getCommitChanges, diff, resolveRef, getBranchCommits, setUpstreamRemote, loadGitHubUserFromToken, getBranches, getRemotes, remoteCommits, saveGitHubCredentials, getGitHubCredentialsFromLocalStorage, fetch, pull, push, setDefaultRemote, addRemote, removeRemote, sendToGitLog, clearGitLog, getBranchDifferences, getFileStatusMatrix, init, showAlert, gitlog } from '../lib/gitactions' |
|
|
|
|
import { loadFiles, setCallBacks } from '../lib/listeners' |
|
|
|
|
import { openDiff, openFile, saveToken, setModifiedDecorator, setPlugin, setUntrackedDecorator, statusChanged } from '../lib/pluginActions' |
|
|
|
|
import { gitActionsContext, pluginActionsContext } from '../state/context' |
|
|
|
@ -63,7 +63,7 @@ export const GitUI = (props: IGitUi) => { |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (!appLoaded) return |
|
|
|
|
setCallBacks(plugin, gitDispatch, loaderDispatch) |
|
|
|
|
setCallBacks(plugin, gitDispatch, loaderDispatch, setActivePanel) |
|
|
|
|
setPlugin(plugin, gitDispatch, loaderDispatch) |
|
|
|
|
loaderDispatch({ type: 'plugin', payload: true }) |
|
|
|
|
|
|
|
|
@ -146,6 +146,7 @@ export const GitUI = (props: IGitUi) => { |
|
|
|
|
sendToGitLog, |
|
|
|
|
clearGitLog, |
|
|
|
|
getFileStatusMatrix, |
|
|
|
|
gitlog, |
|
|
|
|
init |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|