Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version v1.0.0-134 #2183

Merged
merged 52 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
a1b6db1
Merge pull request #2174 from undb-io/main
nichenqin Dec 2, 2024
a35c2db
feat: try to add sql.js
nichenqin Dec 2, 2024
c6654ff
feat: allow to migrate sql js
nichenqin Dec 2, 2024
b214393
chore: sql-js create init db
nichenqin Dec 2, 2024
6048ba4
fix: fix type issue
nichenqin Dec 2, 2024
ba1372e
feat: add data service package
nichenqin Dec 2, 2024
4f450c4
refactor: add frontend di
nichenqin Dec 3, 2024
dac47eb
fix: fix lock file
nichenqin Dec 3, 2024
93fabe9
feat: template sqlite
nichenqin Dec 4, 2024
34dca3f
fix: fix oauth
nichenqin Dec 4, 2024
224922e
fix: fix oauth
nichenqin Dec 4, 2024
4b48570
chore: add dummy qb
nichenqin Dec 4, 2024
dd17abb
Revert "fix: fix oauth"
nichenqin Dec 4, 2024
95eb3c9
Revert "chore: add dummy qb"
nichenqin Dec 4, 2024
1816df5
fix: fix oauth
nichenqin Dec 4, 2024
f5066f2
Merge pull request #2178 from undb-io/main
nichenqin Dec 4, 2024
46bb169
fix: fix lock file
nichenqin Dec 4, 2024
b59b0dd
fix: fix aggregate count
nichenqin Dec 5, 2024
52ac118
chore: data service aggregate
nichenqin Dec 5, 2024
ec1fccf
chore: view widget readonly
nichenqin Dec 5, 2024
f850988
chore: view widget readonly
nichenqin Dec 5, 2024
d807e88
fix: fix export
nichenqin Dec 5, 2024
cd29a27
fix: fix template dashbord default value
nichenqin Dec 5, 2024
113a7e8
chore: default not include data
nichenqin Dec 5, 2024
8d58d71
fix: remove magic string
nichenqin Dec 5, 2024
ad19393
fix: fix template url
nichenqin Dec 5, 2024
16a95b7
fix: fix reference cell readonly
nichenqin Dec 5, 2024
c371276
fix: fix template i18n
nichenqin Dec 5, 2024
51e3ac7
chore: i18n
nichenqin Dec 5, 2024
d7ffb2e
chore: template header redirect to home page
nichenqin Dec 5, 2024
4c23da1
fix: readonly select cell
nichenqin Dec 5, 2024
899ee50
fix: readonly long text cell
nichenqin Dec 5, 2024
dbdacb0
fix: remove everything template
nichenqin Dec 5, 2024
b0408ae
fix: fix sortable number
nichenqin Dec 8, 2024
00a89ba
chore: fix create kanban view
nichenqin Dec 8, 2024
640718c
feat: init playground
nichenqin Dec 7, 2024
86bfd7a
chore: add more data service impl
nichenqin Dec 8, 2024
25f2d09
fix: fix vite config
nichenqin Dec 8, 2024
f996759
fix: fix vite config
nichenqin Dec 9, 2024
ce1c141
chore: add playground alert
nichenqin Dec 9, 2024
8454032
style: make playground style nice
nichenqin Dec 9, 2024
1f77040
chore: add some playground menu button
nichenqin Dec 9, 2024
77864ca
chore: add some playground command handler
nichenqin Dec 9, 2024
8a7b75e
fix: delete records clear selection
nichenqin Dec 9, 2024
239066e
chore: playground
nichenqin Dec 9, 2024
93ba25a
chore: playground
nichenqin Dec 10, 2024
4087238
chore: upgrade dependencies
nichenqin Dec 10, 2024
b8ad341
chore: change base
nichenqin Dec 10, 2024
4b56f67
refactor: data service
nichenqin Dec 12, 2024
79669f7
chore: playground
nichenqin Dec 13, 2024
ebe24b2
Merge pull request #2179 from undb-io/feature/playground
nichenqin Dec 13, 2024
97a8eb7
Prepare release v1.0.0-134
web-flow Dec 13, 2024
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
Prev Previous commit
Next Next commit
fix: fix template i18n
nichenqin committed Dec 5, 2024

Verified

This commit was signed with the committer’s verified signature.
samuelattwood Samuel Attwood
commit c371276206ad20edf5f16e6623f8e93d1572c148
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
import TemplatePreview from "./template-preview.svelte"
import { Checkbox } from "$lib/components/ui/checkbox/index.js"
import Label from "$lib/components/ui/label/label.svelte"
import { LL } from "@undb/i18n/client"
let includeData = false
@@ -67,15 +68,16 @@
disabled={$createFromTemplate.isPending}
>
<FullscreenIcon class="mr-2 size-4" />
Preview Template
{$LL.template.previewTemplate()}
</Button>
</Dialog.Trigger>
<Dialog.Content class="flex h-[90%] !w-[90%] !max-w-none flex-col overflow-hidden">
<Dialog.Header class="flex flex-row justify-between">
<div class="space-y-2">
<Dialog.Title>
<span>
Preview template {template.name}
{$LL.template.previewTemplate()}
{template.name}
</span>
</Dialog.Title>
<Dialog.Description class="max-w-4xl">
@@ -92,7 +94,7 @@
{#if $createFromTemplate.isPending}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
{/if}
Use this Template
{$LL.template.useThisTemplate()}
</Button>

<div class="flex items-center space-x-2">
@@ -101,7 +103,7 @@
for="terms"
class="text-xs font-medium leading-none text-gray-500 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
Include data.
{$LL.table.record.includeData()}
</Label>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@
import * as Form from "$lib/components/ui/form/index.js"
import { goto, invalidate } from "$app/navigation"
import LoginOrSignup from "../auth/login-or-signup.svelte"
import { LL } from "@undb/i18n/client"
export let template: ITemplateDTO
export let me: any
@@ -103,18 +104,18 @@
}}
>
<Dialog.Trigger asChild let:builder>
<Button size="sm" builders={[builder]}>Get started with this template</Button>
<Button size="sm" builders={[builder]}>{$LL.template.getStarted()}</Button>
</Dialog.Trigger>
<Dialog.Content>
<Dialog.Header>
<Dialog.Title>Which space do you want to create this template in?</Dialog.Title>
<Dialog.Description>You can create a new base or a new table in the selected space.</Dialog.Description>
<Dialog.Title>{$LL.template.whichSpace()}</Dialog.Title>
<Dialog.Description>{$LL.template.whichSpaceDescription()}</Dialog.Description>
</Dialog.Header>

<form method="POST" use:enhance>
<Form.Field {form} name="spaceId">
<Form.Control let:attrs>
<Form.Label>Space</Form.Label>
<Form.Label>{$LL.space.space()}</Form.Label>

<Select.Root
selected={selectedSpace}
@@ -123,7 +124,7 @@
}}
>
<Select.Trigger class="w-full">
<Select.Value placeholder="Space" />
<Select.Value placeholder={$LL.space.space()} />
</Select.Trigger>
<Select.Content sameWidth>
{#each items as item}
@@ -133,9 +134,7 @@
</Select.Root>
<input hidden bind:value={$formData.spaceId} name={attrs.name} />
</Form.Control>
<Form.Description
>Select a space to create a new base or a new table in the selected space.</Form.Description
>
<Form.Description>{$LL.template.selectATemplateToCreateABase()}</Form.Description>
<Form.FieldErrors />
</Form.Field>

@@ -147,8 +146,8 @@
<Form.Control let:attrs>
<Checkbox {...attrs} bind:checked={$formData.includeData} />
<div class="space-y-1 leading-none">
<Form.Label>Include data</Form.Label>
<Form.Description>Include data from the template to the new base or table.</Form.Description>
<Form.Label>{$LL.table.record.includeData()}</Form.Label>
<Form.Description>{$LL.template.includeDataDescription()}</Form.Description>
</div>
<input name={attrs.name} value={$formData.includeData} hidden />
</Form.Control>
@@ -158,14 +157,14 @@
{#if $createFromTemplate.isPending}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
{/if}
Import
{$LL.common.import()}
</Form.Button>
</form>
</Dialog.Content>
</Dialog.Root>
{:else}
<Button href={`/login?redirect=${encodeURIComponent(`/templates/${template.id}`)}`}
>Login to create a new base or table</Button
>{$LL.template.loginToCreateNewBaseOrTable()}</Button
>
{/if}
</header>
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
import Logo from "$lib/images/logo.svg"
import { Button } from "$lib/components/ui/button"
import { page } from "$app/stores"
import { LL } from "@undb/i18n/client"
export let data: LayoutData
@@ -36,7 +37,9 @@
<span class="font-bold"> Undb </span>
</a>

<Button href={`/create-from-share/${$page.params.shareId}`} size="sm">Use this template</Button>
<Button href={`/create-from-share/${$page.params.shareId}`} size="sm">
{$LL.template.useThisTemplate()}
</Button>
</div>
<div class="w-full flex-1 overflow-y-auto">
<ShareBaseNav {base} />
14 changes: 12 additions & 2 deletions packages/i18n/src/i18n/en/index.ts
Original file line number Diff line number Diff line change
@@ -528,6 +528,7 @@ const webhook = {
}

const space = {
space: 'Space',
spaces: 'Spaces',
name: "Space Name",
setDisplayName: 'Set Display Name',
@@ -623,8 +624,16 @@ const webhook = {
}

const template = {
template: 'Template',
useThisTemplate: 'Use this template',
previewTemplate: 'Preview Template',
getStarted: 'Get Started with this template',
whichSpace: "Which space do you want to create this template in?",
whichSpaceDescription: "You can create a new base or a new table in the selected space.",
createBase: 'Create New Base',
selectATemplateToCreateABase: 'Select a template to create a new base'
selectATemplateToCreateABase: 'Select a template to create a new base',
includeDataDescription: 'Include data from the template to the new base or table.',
loginToCreateNewBaseOrTable: 'Login to create a new base or table'
}

const auth = {
@@ -722,7 +731,8 @@ const en = {
today: 'Today',
clear: 'Clear',
updated: 'Updated',
now: 'Now'
now: 'Now',
import: 'Import'
},
share: {
title: 'Share',
14 changes: 12 additions & 2 deletions packages/i18n/src/i18n/es/index.ts
Original file line number Diff line number Diff line change
@@ -515,6 +515,7 @@ const base = {
}

const space = {
space: 'Espacio',
spaces: 'Espacios',
name: 'Nombre del espacio',
setDisplayName: 'Establecer nombre de visualización',
@@ -619,8 +620,16 @@ const events = {
}

const template = {
template: 'Plantilla',
useThisTemplate: 'Usar esta plantilla',
previewTemplate: 'Vista previa de plantilla',
getStarted: 'Comenzar con esta plantilla',
whichSpace: "¿Qué espacio quieres crear esta plantilla en?",
whichSpaceDescription: "Puedes crear una nueva Base o una nueva tabla en el espacio seleccionado.",
createBase: 'Crear Base',
selectATemplateToCreateABase: 'Selecciona una plantilla para crear una Base'
selectATemplateToCreateABase: 'Selecciona una plantilla para crear una Base',
includeDataDescription: 'Incluir datos de la plantilla en la nueva Base o tabla.',
loginToCreateNewBaseOrTable: 'Iniciar sesión para crear una nueva Base o tabla'
}

const auth = {
@@ -715,7 +724,8 @@ const es = {
today: 'Hoy',
clear: 'Limpiar',
updated: 'Actualizado',
now: 'Ahora'
now: 'Ahora',
import: 'Importar'
},
share: {
title: 'Compartir',
80 changes: 80 additions & 0 deletions packages/i18n/src/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
@@ -130,6 +130,30 @@ type RootTranslation = {
enterYourWorkEmail: string
}
template: {
/**
* T​e​m​p​l​a​t​e
*/
template: string
/**
* U​s​e​ ​t​h​i​s​ ​t​e​m​p​l​a​t​e
*/
useThisTemplate: string
/**
* P​r​e​v​i​e​w​ ​T​e​m​p​l​a​t​e
*/
previewTemplate: string
/**
* G​e​t​ ​S​t​a​r​t​e​d​ ​w​i​t​h​ ​t​h​i​s​ ​t​e​m​p​l​a​t​e
*/
getStarted: string
/**
* W​h​i​c​h​ ​s​p​a​c​e​ ​d​o​ ​y​o​u​ ​w​a​n​t​ ​t​o​ ​c​r​e​a​t​e​ ​t​h​i​s​ ​t​e​m​p​l​a​t​e​ ​i​n​?
*/
whichSpace: string
/**
* Y​o​u​ ​c​a​n​ ​c​r​e​a​t​e​ ​a​ ​n​e​w​ ​b​a​s​e​ ​o​r​ ​a​ ​n​e​w​ ​t​a​b​l​e​ ​i​n​ ​t​h​e​ ​s​e​l​e​c​t​e​d​ ​s​p​a​c​e​.
*/
whichSpaceDescription: string
/**
* C​r​e​a​t​e​ ​N​e​w​ ​B​a​s​e
*/
@@ -138,6 +162,14 @@ type RootTranslation = {
* S​e​l​e​c​t​ ​a​ ​t​e​m​p​l​a​t​e​ ​t​o​ ​c​r​e​a​t​e​ ​a​ ​n​e​w​ ​b​a​s​e
*/
selectATemplateToCreateABase: string
/**
* I​n​c​l​u​d​e​ ​d​a​t​a​ ​f​r​o​m​ ​t​h​e​ ​t​e​m​p​l​a​t​e​ ​t​o​ ​t​h​e​ ​n​e​w​ ​b​a​s​e​ ​o​r​ ​t​a​b​l​e​.
*/
includeDataDescription: string
/**
* L​o​g​i​n​ ​t​o​ ​c​r​e​a​t​e​ ​a​ ​n​e​w​ ​b​a​s​e​ ​o​r​ ​t​a​b​l​e
*/
loginToCreateNewBaseOrTable: string
}
setting: {
/**
@@ -221,6 +253,10 @@ type RootTranslation = {
systemFieldsUpdated: string
}
space: {
/**
* S​p​a​c​e
*/
space: string
/**
* S​p​a​c​e​s
*/
@@ -2282,6 +2318,10 @@ type RootTranslation = {
* N​o​w
*/
now: string
/**
* I​m​p​o​r​t
*/
'import': string
}
share: {
/**
@@ -2532,6 +2572,30 @@ export type TranslationFunctions = {
enterYourWorkEmail: () => LocalizedString
}
template: {
/**
* Template
*/
template: () => LocalizedString
/**
* Use this template
*/
useThisTemplate: () => LocalizedString
/**
* Preview Template
*/
previewTemplate: () => LocalizedString
/**
* Get Started with this template
*/
getStarted: () => LocalizedString
/**
* Which space do you want to create this template in?
*/
whichSpace: () => LocalizedString
/**
* You can create a new base or a new table in the selected space.
*/
whichSpaceDescription: () => LocalizedString
/**
* Create New Base
*/
@@ -2540,6 +2604,14 @@ export type TranslationFunctions = {
* Select a template to create a new base
*/
selectATemplateToCreateABase: () => LocalizedString
/**
* Include data from the template to the new base or table.
*/
includeDataDescription: () => LocalizedString
/**
* Login to create a new base or table
*/
loginToCreateNewBaseOrTable: () => LocalizedString
}
setting: {
/**
@@ -2622,6 +2694,10 @@ export type TranslationFunctions = {
systemFieldsUpdated: () => LocalizedString
}
space: {
/**
* Space
*/
space: () => LocalizedString
/**
* Spaces
*/
@@ -4658,6 +4734,10 @@ export type TranslationFunctions = {
* Now
*/
now: () => LocalizedString
/**
* Import
*/
'import': () => LocalizedString
}
share: {
/**
14 changes: 12 additions & 2 deletions packages/i18n/src/i18n/ja/index.ts
Original file line number Diff line number Diff line change
@@ -518,6 +518,7 @@ const base = {
}

const space = {
space: 'スペース',
spaces: 'スペース',
name: 'スペース名',
setDisplayName: '表示名を設定',
@@ -622,8 +623,16 @@ const events = {
}

const template = {
template: 'テンプレート',
useThisTemplate: 'このテンプレートを使用',
previewTemplate: 'テンプレートのプレビュー',
getStarted: 'このテンプレートを使用して開始',
whichSpace: "このテンプレートを作成するスペースはどれですか?",
whichSpaceDescription: "新しい Base または新しいテーブルを選択したスペースに作成できます。",
createBase: 'Base を作成',
selectATemplateToCreateABase: 'テンプレートを選択して Base を作成します'
selectATemplateToCreateABase: 'テンプレートを選択して Base を作成します',
includeDataDescription: 'テンプレートのデータを新しい Base またはテーブルに含めます。',
loginToCreateNewBaseOrTable: 'ログインして新しい Base またはテーブルを作成します'
}

const auth = {
@@ -721,7 +730,8 @@ const ja = {
today: '今日',
clear: 'クリア',
updated: '更新済み',
now: '現在'
now: '現在',
import: 'インポート'
},
share: {
title: '共有',
14 changes: 12 additions & 2 deletions packages/i18n/src/i18n/ko/index.ts
Original file line number Diff line number Diff line change
@@ -517,6 +517,7 @@ const base = {
}

const space = {
space: '공간',
spaces: '공간',
name: '공간 이름',
setDisplayName: '표시 이름 설정',
@@ -622,8 +623,16 @@ const events = {
}

const template = {
template: '템플릿',
useThisTemplate: '이 템플릿 사용',
previewTemplate: '템플릿 미리보기',
getStarted: '이 템플릿으로 시작',
whichSpace: "이 템플릿을 생성할 공간은 어디인가요?",
whichSpaceDescription: "새로운 Base 또는 선택한 공간에 새로운 테이블을 생성할 수 있습니다.",
createBase: 'Base 생성',
selectATemplateToCreateABase: '템플릿을 선택하여 Base를 생성하세요'
selectATemplateToCreateABase: '템플릿을 선택하여 Base를 생성하세요',
includeDataDescription: '템플릿의 데이터를 새로운 Base 또는 테이블에 포함합니다.',
loginToCreateNewBaseOrTable: '로그인하여 새로운 Base 또는 테이블을 생성하세요'
}

const auth = {
@@ -721,7 +730,8 @@ const ko = {
today: '오늘',
clear: '지우기',
updated: '업데이트됨',
now: '지금'
now: '지금',
import: '가져오기'
},
share: {
title: '공유',
14 changes: 12 additions & 2 deletions packages/i18n/src/i18n/pt/index.ts
Original file line number Diff line number Diff line change
@@ -526,6 +526,7 @@ const base = {
}

const space = {
space: 'Espaço',
spaces: 'Espaços',
name: "Nome do Espaço",
setDisplayName: 'Definir Nome de Exibição',
@@ -621,8 +622,16 @@ const events = {
}

const template = {
template: 'Modelo',
useThisTemplate: 'Usar este modelo',
previewTemplate: 'Visualizar modelo',
getStarted: 'Começar com este modelo',
whichSpace: 'Em qual espaço?',
whichSpaceDescription: "Você pode criar uma nova base ou uma nova tabela em um espaço selecionado.",
createBase: 'Criar Nova Base',
selectATemplateToCreateABase: 'Selecione um modelo para criar uma nova base'
selectATemplateToCreateABase: 'Selecione um modelo para criar uma nova base',
includeDataDescription: 'Incluir dados do modelo na nova base ou tabela.',
loginToCreateNewBaseOrTable: 'Faça login para criar uma nova base ou tabela'
}

const auth = {
@@ -720,7 +729,8 @@ const pt = {
today: 'Hoje',
clear: 'Limpar',
updated: 'Atualizado',
now: 'Agora'
now: 'Agora',
import: 'Importar'
},
share: {
title: 'Compartilhar',
14 changes: 12 additions & 2 deletions packages/i18n/src/i18n/zh/index.ts
Original file line number Diff line number Diff line change
@@ -517,6 +517,7 @@ const base = {
}

const space = {
space: '空间',
spaces: '空间',
name: '空间名称',
setDisplayName: '设置显示名称',
@@ -622,8 +623,16 @@ const events = {
}

const template= {
template: '模板',
useThisTemplate: '使用此模板',
previewTemplate: '预览模板',
getStarted: '从模板开始',
whichSpace: '在哪个空间?',
whichSpaceDescription: "您可以在选定的空间中创建一个新的 Base 或一个新的表。",
createBase: '从模板创建 Base',
selectATemplateToCreateABase: '选择一个模板来创建一个 Base'
selectATemplateToCreateABase: '选择一个模板来创建一个 Base',
includeDataDescription: '将模板的数据包含到新的 Base 或表中。',
loginToCreateNewBaseOrTable: '登录以创建新的 Base 或表'
}

const auth = {
@@ -723,7 +732,8 @@ const zh = {
today: '今天',
clear: '清除',
updated: '已更新',
now: '现在'
now: '现在',
import: '导入'
},
share: {
title: '分享',