mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
displaying image nodes
This commit is contained in:
parent
c6ccbb0fb4
commit
09b4fbd7b6
3 changed files with 7 additions and 8 deletions
|
@ -58,12 +58,12 @@ export const getURL = (file: IFile) => {
|
|||
if (!file || !file.url) return null;
|
||||
|
||||
return file.url
|
||||
.replace('REMOTE_OLD://', process.env.REMOTE_OLD)
|
||||
.replace('REMOTE_CURRENT://', process.env.REMOTE_CURRENT);
|
||||
.replace('REMOTE_CURRENT://', process.env.REMOTE_CURRENT)
|
||||
.replace('REMOTE_OLD://', process.env.REMOTE_OLD);
|
||||
};
|
||||
|
||||
export const getImageSize = (image: string, size?: string): string =>
|
||||
`${process.env.API_HOST}${image}`.replace('{size}', size);
|
||||
export const getImageSize = (file: IFile, size?: string): string => getURL(file);
|
||||
// `${process.env.API_HOST}${image}`.replace('{size}', size);
|
||||
|
||||
export const formatCommentText = (author, text: string) =>
|
||||
text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue