|
|
@ -1,5 +1,5 @@ |
|
|
|
import React, { useEffect, useReducer, useState } from 'react' |
|
|
|
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 { loadFiles, setCallBacks } from '../lib/listeners' |
|
|
|
import { openDiff, openFile, saveToken, setModifiedDecorator, setPlugin, setUntrackedDecorator, statusChanged } from '../lib/pluginActions' |
|
|
|
import { openDiff, openFile, saveToken, setModifiedDecorator, setPlugin, setUntrackedDecorator, statusChanged } from '../lib/pluginActions' |
|
|
|
import { gitActionsContext, pluginActionsContext } from '../state/context' |
|
|
|
import { gitActionsContext, pluginActionsContext } from '../state/context' |
|
|
@ -63,7 +63,7 @@ export const GitUI = (props: IGitUi) => { |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (!appLoaded) return |
|
|
|
if (!appLoaded) return |
|
|
|
setCallBacks(plugin, gitDispatch, loaderDispatch) |
|
|
|
setCallBacks(plugin, gitDispatch, loaderDispatch, setActivePanel) |
|
|
|
setPlugin(plugin, gitDispatch, loaderDispatch) |
|
|
|
setPlugin(plugin, gitDispatch, loaderDispatch) |
|
|
|
loaderDispatch({ type: 'plugin', payload: true }) |
|
|
|
loaderDispatch({ type: 'plugin', payload: true }) |
|
|
|
|
|
|
|
|
|
|
@ -146,6 +146,7 @@ export const GitUI = (props: IGitUi) => { |
|
|
|
sendToGitLog, |
|
|
|
sendToGitLog, |
|
|
|
clearGitLog, |
|
|
|
clearGitLog, |
|
|
|
getFileStatusMatrix, |
|
|
|
getFileStatusMatrix, |
|
|
|
|
|
|
|
gitlog, |
|
|
|
init |
|
|
|
init |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|