mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-12 20:31:51 +00:00
Use runtime config
This commit is contained in:
parent
eb4d82ee10
commit
0af095785c
46 changed files with 131 additions and 159 deletions
web-frontend/modules/database/components/docs/sections
|
@ -15,7 +15,7 @@
|
|||
<div class="api-docs__right">
|
||||
<APIDocsExample
|
||||
:value="value"
|
||||
:url="$env.PUBLIC_BACKEND_URL"
|
||||
:url="$config.PUBLIC_BACKEND_URL"
|
||||
:include-user-fields-checkbox="false"
|
||||
type=""
|
||||
@input="$emit('input', $event)"
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
<div class="api-docs__right">
|
||||
<APIDocsExample
|
||||
:value="value"
|
||||
:url="$env.PUBLIC_BACKEND_URL"
|
||||
:url="$config.PUBLIC_BACKEND_URL"
|
||||
type=""
|
||||
:response="{
|
||||
error: 'ERROR_NO_PERMISSION_TO_TABLE',
|
||||
|
|
|
@ -71,7 +71,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getFieldsURL(table) {
|
||||
return `${this.$env.PUBLIC_BACKEND_URL}/api/database/fields/table/${table.id}/`
|
||||
return `${this.$config.PUBLIC_BACKEND_URL}/api/database/fields/table/${table.id}/`
|
||||
},
|
||||
/**
|
||||
* Generates a sample field list response based on the available fields of the table.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
class="api-docs__content"
|
||||
:content="
|
||||
$t('apiDocsUploadFile.description', {
|
||||
PUBLIC_BACKEND_URL: `${$env.PUBLIC_BACKEND_URL}`,
|
||||
PUBLIC_BACKEND_URL: `${$config.PUBLIC_BACKEND_URL}`,
|
||||
})
|
||||
"
|
||||
/>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
class="api-docs__content"
|
||||
:content="
|
||||
$t('apiDocsUploadFileViaURL.description', {
|
||||
PUBLIC_BACKEND_URL: `${$env.PUBLIC_BACKEND_URL}`,
|
||||
PUBLIC_BACKEND_URL: `${$config.PUBLIC_BACKEND_URL}`,
|
||||
})
|
||||
"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue