mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-22 00:50:22 +00:00

refactors comments feature: initial get comments and create comment updates tsconfig to support es2017 object prototype methods: values, entries, creates user-avatar component, adds styles, converts constants files to ts updates comment editor. updates styling. adds auto focus on click adds comment deletion adds confirmation dialog for comment deletion adds string union generic constraint type. adds comment stream header. adds comment update feature. adds style modifications and additions for comment components. refactors actions for comments using strategy pattern to allow for abstraction. adds dataset-constants constants module
17 lines
408 B
TypeScript
17 lines
408 B
TypeScript
/**
|
|
* Defines the root path for wherehows front-end api requests
|
|
* @type {string}
|
|
*/
|
|
export const ApiRoot = '/api/v1';
|
|
|
|
/**
|
|
* Defines the literal possible string enum values for the an api response status
|
|
* @type {string}
|
|
*/
|
|
export enum ApiStatus {
|
|
OK = 'ok',
|
|
// Adds support for success response used in api's like /comments, will refactored to use ok
|
|
SUCCESS = 'success',
|
|
FAILED = 'failed'
|
|
}
|