mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix QA setup
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
import { app } from '$lib/stores/app';
|
||||
import { base } from '$app/paths';
|
||||
import { isCloud } from '$lib/system';
|
||||
import { getApiEndpoint } from '$lib/stores/sdk';
|
||||
|
||||
export let deployment: Models.Deployment;
|
||||
export let proxyRuleList: Models.ProxyRuleList = { total: 0, rules: [] };
|
||||
@@ -49,7 +50,11 @@
|
||||
|
||||
function getFilePreview(fileId: string) {
|
||||
// TODO: @Meldiron use sdk.forConsole.storage.getFilePreview
|
||||
return `http://localhost/v1/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`;
|
||||
const endpoint = getApiEndpoint();
|
||||
return (
|
||||
endpoint +
|
||||
`/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
import { getFrameworkIcon } from './store';
|
||||
import { SvgIcon } from '$lib/components';
|
||||
import { app } from '$lib/stores/app';
|
||||
import { getApiEndpoint } from '$lib/stores/sdk';
|
||||
|
||||
export let siteList: Models.SiteList;
|
||||
export let deployments: Models.Deployment[];
|
||||
@@ -39,7 +40,11 @@
|
||||
|
||||
function getFilePreview(fileId: string) {
|
||||
// TODO: @Meldiron use sdk.forConsole.storage.getFilePreview
|
||||
return `http://localhost/v1/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`;
|
||||
const endpoint = getApiEndpoint();
|
||||
return (
|
||||
endpoint +
|
||||
`/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user