mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-01 23:56:41 +07:00
highlight and scroll to new comments if authorized (#76)
* added new drone file * commented-out unnecessary build stages * commented-out unnecessary build stages * added dynamic repo * added dynamic repo * added registry global env * added registry global env * added registry global env * added template * added template * added template * added template * added branches to template * added branches to template * made build based on template * made build based on template * changed env file * added .env.development file to repo * fixed branch to develop * added variables for develop and master * added variables for develop and master * added env variables to builder * added env variables to builder * added env variables to builder * changed drone.yml * added highlight for new comments * fixed dependencies for useScrollToTop * added smooth scrolling for comments * fixed new comments highlight for same user
This commit is contained in:
parent
a7e8e19b06
commit
e071409241
20 changed files with 172 additions and 108 deletions
|
@ -8,7 +8,7 @@ import {
|
|||
ApiGetNodeRelatedRequest,
|
||||
ApiGetNodeRelatedResult,
|
||||
ApiGetNodeRequest,
|
||||
ApiGetNodeResult,
|
||||
ApiGetNodeResponse,
|
||||
ApiLockCommentRequest,
|
||||
ApiLockcommentResult,
|
||||
ApiLockNodeRequest,
|
||||
|
@ -69,13 +69,13 @@ export const getNodeDiff = ({
|
|||
.then(cleanResult);
|
||||
|
||||
export const apiGetNode = ({ id }: ApiGetNodeRequest, config?: AxiosRequestConfig) =>
|
||||
api.get<ApiGetNodeResult>(API.NODE.GET_NODE(id), config).then(cleanResult);
|
||||
api.get<ApiGetNodeResponse>(API.NODE.GET_NODE(id), config).then(cleanResult);
|
||||
|
||||
export const apiGetNodeWithCancel = ({ id }: ApiGetNodeRequest) => {
|
||||
const cancelToken = axios.CancelToken.source();
|
||||
return {
|
||||
request: api
|
||||
.get<ApiGetNodeResult>(API.NODE.GET_NODE(id), {
|
||||
.get<ApiGetNodeResponse>(API.NODE.GET_NODE(id), {
|
||||
cancelToken: cancelToken.token,
|
||||
})
|
||||
.then(cleanResult),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue