-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1022759
commit 376277a
Showing
20 changed files
with
722 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/src2/query/components/source_selector/SourceSelectorDialog.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<script setup lang="ts"> | ||
import Checkbox from '../components/Checkbox.vue' | ||
import SettingItem from './SettingItem.vue' | ||
import useSettings from './settings' | ||
const settings = useSettings() | ||
settings.load() | ||
</script> | ||
|
||
<template> | ||
<div class="flex w-full flex-col gap-6 overflow-y-scroll p-8 px-10"> | ||
<h1 class="text-xl font-semibold">Data Store</h1> | ||
|
||
<SettingItem | ||
label="Enable" | ||
description="Enable the data store to store database tables into a duckdb database for faster & cross-database queries." | ||
> | ||
<Checkbox /> | ||
</SettingItem> | ||
|
||
<SettingItem | ||
label="Row Limit" | ||
description="Set the maximum number of rows per table that will be imported into the data store. Default is 10,00,000" | ||
> | ||
<FormControl v-model="settings.doc.max_records_to_sync" class="w-28" type="number" /> | ||
</SettingItem> | ||
|
||
<SettingItem | ||
label="Memory Limit" | ||
description="Set the maximum memory usage while importing tables into the data store. Default is 512MB" | ||
> | ||
<FormControl v-model="settings.doc.max_memory_usage" class="w-28" type="number" /> | ||
</SettingItem> | ||
|
||
<div class="flex justify-end"> | ||
<Button | ||
label="Update" | ||
variant="solid" | ||
:disabled="!settings.isdirty" | ||
:loading="settings.saving" | ||
@click="() => settings.save()" | ||
/> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<script setup lang="ts"> | ||
import Checkbox from '../components/Checkbox.vue' | ||
import DatePickerControl from '../query/components/DatePickerControl.vue' | ||
import SettingItem from './SettingItem.vue' | ||
import useSettings from './settings' | ||
const settings = useSettings() | ||
settings.load() | ||
</script> | ||
|
||
<template> | ||
<div class="flex w-full flex-col gap-6 overflow-y-scroll p-8 px-10"> | ||
<h1 class="text-xl font-semibold">General</h1> | ||
<SettingItem | ||
label="Logo" | ||
description="Appears in the top left corner of the application and in the browser tab next to the page title. Recommended size: 32x32px in PNG format." | ||
> | ||
<div class="flex h-full w-full items-center justify-center rounded border"> | ||
<img src="../assets/insights-logo-new.svg" alt="Logo" class="w-8 rounded" /> | ||
</div> | ||
</SettingItem> | ||
|
||
<SettingItem | ||
label="Fiscal Year Start" | ||
description="Set the start of the fiscal year for the organization. This will be used to calculate | ||
quarterly and yearly data." | ||
> | ||
<DatePickerControl | ||
class="w-28" | ||
placeholder="Select Date" | ||
:model-value="[settings.doc.fiscal_year_start]" | ||
@update:model-value="settings.doc.fiscal_year_start = $event?.[0] || '2024-04-01'" | ||
/> | ||
</SettingItem> | ||
|
||
<SettingItem | ||
label="Week Starts On" | ||
description="Set the start of the week for the organization. This will be used to calculate weekly data." | ||
> | ||
<FormControl | ||
class="w-28" | ||
type="select" | ||
v-model="settings.doc.week_starts_on" | ||
:options="[ | ||
'Sunday', | ||
'Monday', | ||
'Tuesday', | ||
'Wednesday', | ||
'Thursday', | ||
'Friday', | ||
'Saturday', | ||
]" | ||
/> | ||
</SettingItem> | ||
|
||
<div class="flex justify-end"> | ||
<Button | ||
label="Update" | ||
variant="solid" | ||
:disabled="!settings.isdirty" | ||
:loading="settings.saving" | ||
@click="() => settings.save()" | ||
/> | ||
</div> | ||
</div> | ||
</template> |
Oops, something went wrong.