Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
)
},
isConfigured() {
return !!this.$config.public.baserowEnterpriseAssistantLLMModel
return !!this.$config.public.baserowEnterpriseAssistantLlmModel
},
},
mounted() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class AIDatabaseOnboardingStepType extends DatabaseOnboardingStepType {
isVisible() {
// Only show if the AI-assistant is configured because it will use the
// AI-assistant to create the database.
return !!this.app.$config.public.baserowEnterpriseAssistantLLMModel
return !!this.app.$config.public.baserowEnterpriseAssistantLlmModel
}

isValid(data, vuelidate, refs) {
Expand Down
10 changes: 7 additions & 3 deletions enterprise/web-frontend/modules/baserow_enterprise/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from 'nuxt/kit'
import { routes, rootChildRoutes } from './routes'
import { locales } from '../../../../web-frontend/config/locales.js'
import _ from 'lodash'

export default defineNuxtModule({
meta: {
Expand Down Expand Up @@ -77,9 +78,12 @@ export default defineNuxtModule({

// Runtime config defaults - values can be overridden at runtime via NUXT_ prefixed env vars
// See env-remap.mjs for the env var remapping that enables backwards compatibility
Object.assign(nuxt.options.runtimeConfig.public, {
baserowEnterpriseAssistantLLMModel: null,
})
nuxt.options.runtimeConfig.public = _.defaultsDeep(
nuxt.options.runtimeConfig.public,
{
baserowEnterpriseAssistantLlmModel: '',
}
)

// Override Baserow's existing default.scss in favor of our own because that one
// imports the original. We do this so that we can use the existing variables,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<Button
type="primary"
size="large"
:href="getPricingURL"
:href="pricingURL"
target="_blank"
tag="a"
>{{ $t('paidFeaturesModal.viewPricing') }}</Button
Expand Down Expand Up @@ -97,7 +97,7 @@ export default {
}
},
computed: {
getPricingURL() {
pricingURL() {
const runtimeConfig = useRuntimeConfig()
return (
runtimeConfig.public.baserowPricingUrl || getPricingURL(this.instanceId)
Expand Down
12 changes: 8 additions & 4 deletions premium/web-frontend/modules/baserow_premium/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from 'nuxt/kit'
import { routes } from './routes'
import { locales } from '../../../../web-frontend/config/locales.js'
import _ from 'lodash'

export default defineNuxtModule({
meta: {
Expand Down Expand Up @@ -49,9 +50,12 @@ export default defineNuxtModule({

// Runtime config defaults - values can be overridden at runtime via NUXT_ prefixed env vars
// See env-remap.mjs for the env var remapping that enables backwards compatibility
Object.assign(nuxt.options.runtimeConfig.public, {
baserowPremiumGroupedAggregateServiceMaxSeries: 3,
baserowPricingUrl: null,
})
nuxt.options.runtimeConfig.public = _.defaultsDeep(
nuxt.options.runtimeConfig.public,
{
baserowPremiumGroupedAggregateServiceMaxSeries: 3,
baserowPricingUrl: '',
}
)
},
})
7 changes: 4 additions & 3 deletions web-frontend/config/nuxt.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ export default defineNuxtConfig({
i18n: {
strategy: 'no_prefix',
defaultLocale: 'en',
langDir: 'locales',
locales,
trailingSlash: true,
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n-language',
redirectOn: 'root',
},
langDir: 'locales',
locales,
trailingSlash: true,
vueI18n: './i18n.config.ts',
},
nitro: {
Expand Down
1 change: 1 addition & 0 deletions web-frontend/env-remap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const envMapping = {
BASEROW_DISABLE_SUPPORT: 'NUXT_PUBLIC_BASEROW_DISABLE_SUPPORT',
BASEROW_INTEGRATIONS_PERIODIC_MINUTE_MIN:
'NUXT_PUBLIC_BASEROW_INTEGRATIONS_PERIODIC_MINUTE_MIN',
// TODO find a way to load these vars from private folders
BASEROW_PREMIUM_GROUPED_AGGREGATE_SERVICE_MAX_SERIES:
'NUXT_PUBLIC_BASEROW_PREMIUM_GROUPED_AGGREGATE_SERVICE_MAX_SERIES',
BASEROW_PRICING_URL: 'NUXT_PUBLIC_BASEROW_PRICING_URL',
Expand Down
1 change: 0 additions & 1 deletion web-frontend/i18n.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export default defineI18nConfig(() => ({
legacy: true,
locale: 'en',
fallbackLocale: 'en',
}))
2 changes: 1 addition & 1 deletion web-frontend/modules/automation/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"automationWorkflow": {
"title": "Worflow"
"title": "Workflow"
},
"automationWelcomeGuidedTourStep": {
"title": "Welcome to Baserow Automations!",
Expand Down
6 changes: 4 additions & 2 deletions web-frontend/modules/core/mixins/moveToBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ export default {
}
} else if (this.$el) {
// Because there is no parent we can directly move the component to the
// top of the body so it will be positioned over any other element.
// end of the body. Elements that mount later are appended after earlier
// ones so that they appear on top when sharing the same z-index (DOM
// order determines visual stacking for equal z-index values).
const body = document.body
body.insertBefore(this.$el, body.firstChild)
body.appendChild(this.$el)
this.fireMovedToBodyHandlers()
}

Expand Down
3 changes: 1 addition & 2 deletions web-frontend/modules/core/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
} from '@nuxt/kit'
import { routes } from './routes'
import _ from 'lodash'
import defu from 'defu'
import pathe from 'pathe'

import { readFileSync, writeFileSync, mkdirSync } from 'node:fs'
Expand Down Expand Up @@ -97,7 +96,7 @@ export default defineNuxtModule({
// See env-remap.mjs for the env var remapping that enables backwards compatibility
nuxt.options.runtimeConfig.privateBackendUrl = 'http://backend:8000'

nuxt.options.runtimeConfig.public = defu(
nuxt.options.runtimeConfig.public = _.defaultsDeep(
nuxt.options.runtimeConfig.public,
{
buildDate: new Date().toISOString(),
Expand Down
8 changes: 0 additions & 8 deletions web-frontend/modules/database/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ export const routes = [
name: 'database-table',
path: '/database/:databaseId/table/:tableId/:viewId?',
file: path.resolve(__dirname, 'pages/table.vue'),
/*props(route) {
const p = { ...route.params }
p.databaseId = parseInt(p.databaseId)
p.tableId = parseInt(p.tableId)
p.viewId = p.viewId ? parseInt(p.viewId) : null
console.log(p)
return p
},*/
children: [
{
path: 'row/:rowId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ exports[`GridViewRows component with decoration > Should show cant add decorator
viewDecoratorType.onlyForPremium
</div>
</div>
<div
data-v-app=""
id="__nuxt"
>
<!---->
</div>
<div
class="context"
style="top: auto; right: auto; bottom: auto; left: auto;"
Expand Down Expand Up @@ -231,12 +237,6 @@ exports[`GridViewRows component with decoration > Should show cant add decorator
</div>
<!--v-if-->
<!--v-if-->
<div
data-v-app=""
id="__nuxt"
>
<!---->
</div>
</body>
`;

Expand All @@ -252,6 +252,12 @@ exports[`GridViewRows component with decoration > Should show unavailable decora
viewDecoratorType.onlyForPremium
</div>
</div>
<div
data-v-app=""
id="__nuxt"
>
<!---->
</div>
<div
class="context"
style="top: auto; right: auto; bottom: auto; left: auto;"
Expand Down Expand Up @@ -367,12 +373,6 @@ exports[`GridViewRows component with decoration > Should show unavailable decora
</div>
<!--v-if-->
<!--v-if-->
<div
data-v-app=""
id="__nuxt"
>
<!---->
</div>
</body>
`;

Expand Down
Loading