12 lines
309 B
JavaScript
12 lines
309 B
JavaScript
import {getContext} from "svelte";
|
|
|
|
export function imgurl(record) {
|
|
const channel = getContext("channel")
|
|
return channel.filesUrl + `/thumbs/${record._file.path}`;
|
|
}
|
|
|
|
export function fileurl(record) {
|
|
const channel = getContext("channel")
|
|
return channel.filesUrl + `/${record._file.path}`;
|
|
}
|