mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 06:46:24 +00:00
feat(server): move all localization files into client
Former-commit-id: 75c6fa78efdb42f7bd65c59cb4e3467aabadcad5 [formerly d9e692745e63aa781d7cf12908d792b0deacdfb1] [formerly 2b3d798425ffcd7064fac640433366b7a574fd29 [formerly d9856e49f19341a8413d5b9391fac940305b5678]] Former-commit-id: 8389997051cd928e4b60287e42177e0f233575b8 [formerly 429a8e32277f66a69bb00368765dc719a8da5313] Former-commit-id: 12a8c5cd96e1bf0880c509b54bc34b7bba76e976
This commit is contained in:
committed by
Melvin Chia
parent
21978689ab
commit
48210f2d71
@@ -1 +0,0 @@
|
||||
{"root":["./src/app.tsx","./src/i18n.ts","./src/main.tsx","./src/vite-env.d.ts","./src/components/header.tsx","./src/constants/methodcolors.tsx","./src/content/index.tsx","./src/content/components/sidebar.tsx"],"version":"5.8.3"}
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -24,7 +24,7 @@ function GroupNodeConfigModal({
|
||||
<div className="min-w-[30vw]">
|
||||
<ModalHeader
|
||||
icon="tabler:settings"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
title="Group Configuration"
|
||||
onClose={onClose}
|
||||
/>
|
||||
@@ -32,7 +32,7 @@ function GroupNodeConfigModal({
|
||||
className="mb-4"
|
||||
icon="tabler:article"
|
||||
name="Group Name"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
placeholder="Untitled Group"
|
||||
setValue={_setName}
|
||||
value={_name}
|
||||
@@ -40,7 +40,7 @@ function GroupNodeConfigModal({
|
||||
<IconInput
|
||||
icon={_icon}
|
||||
name="Group Icon"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
setIcon={_setIcon}
|
||||
/>
|
||||
<Button
|
||||
@@ -16,7 +16,7 @@ function Node({
|
||||
selected?: boolean
|
||||
children?: React.ReactNode
|
||||
}) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -45,7 +45,7 @@ function NodeColumn<T extends NODE_TYPES>({
|
||||
children,
|
||||
...props
|
||||
}: NodeColumnProps<T>) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const nodeId = useNodeId()
|
||||
|
||||
@@ -26,7 +26,7 @@ function NodeListbox<T>({
|
||||
children,
|
||||
multiple
|
||||
}: NodeListboxProps<T>) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
return (
|
||||
<Listbox multiple={multiple} value={value} onChange={setValue}>
|
||||
@@ -16,7 +16,7 @@ function NodeSelector({
|
||||
onSelect: (nodeType: NODE_TYPES) => void
|
||||
}
|
||||
}) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const [searchQuery, setSearchQuery] = useState('')
|
||||
|
||||
@@ -24,13 +24,13 @@ function NodeSelector({
|
||||
<div className="min-w-[300px]">
|
||||
<ModalHeader
|
||||
icon="tabler:plus"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
title="New Node"
|
||||
onClose={onClose}
|
||||
/>
|
||||
<SearchInput
|
||||
lighter
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
value={searchQuery}
|
||||
setValue={setSearchQuery}
|
||||
searchTarget="node"
|
||||
@@ -22,7 +22,7 @@ function CollectionSelector({
|
||||
<div className="min-w-[40vw]">
|
||||
<ModalHeader
|
||||
icon="tabler:folder"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
title="Select Collection"
|
||||
onClose={onClose}
|
||||
/>
|
||||
@@ -12,7 +12,7 @@ import type { ICollectionNodeData } from '../CollectionNode/types'
|
||||
import type { ICollectionPickFieldsNodeData } from './types'
|
||||
|
||||
function CollectionPickFieldsNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const { getNodeData, updateNodeData } = useFlowStateContext()
|
||||
|
||||
@@ -8,7 +8,7 @@ import FieldColumn from '../../SchemaNode/components/FieldColumn'
|
||||
import type { IValueFromRequestNodeData } from '../../ValueFromRequestNode/types'
|
||||
|
||||
function FieldValueColumn({ fieldId }: { fieldId: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const nodes = useNodes()
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { ICollectionNodeData } from '../CollectionNode/types'
|
||||
import FieldValueColumn from './components/FieldValueColumn'
|
||||
|
||||
function CreateRecordNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const { getNodeData } = useFlowStateContext()
|
||||
|
||||
@@ -72,7 +72,7 @@ function transformFields(fields: ICollectionField[]): ISchemaField[] {
|
||||
}
|
||||
|
||||
function DeriveSchemaFromCollectionNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const nodes = useNodes()
|
||||
|
||||
@@ -27,7 +27,7 @@ const OPERATIONS = [
|
||||
]
|
||||
|
||||
function FilterNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const { getNodeData, updateNodeData } = useFlowStateContext()
|
||||
|
||||
@@ -9,7 +9,7 @@ import { useFlowStateContext } from '../../hooks/useFlowStateContext'
|
||||
import { type ISchemaField } from '../SchemaNode/types'
|
||||
|
||||
function SchemaArrayNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const connections = useNodeConnections()
|
||||
|
||||
@@ -25,7 +25,7 @@ export default function EditSchemaNodeModal({
|
||||
onClose,
|
||||
data: { schema, onSave }
|
||||
}: Props) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const [draft, setDraft] = useState<Omit<ISchemaNodeData, 'onUpdate'>>({
|
||||
name: schema.name,
|
||||
@@ -59,7 +59,7 @@ export default function EditSchemaNodeModal({
|
||||
<div className="min-w-[50vw]">
|
||||
<ModalHeader
|
||||
icon="tabler:pencil"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
title="Edit Schema Node"
|
||||
onClose={onClose}
|
||||
/>
|
||||
@@ -67,7 +67,7 @@ export default function EditSchemaNodeModal({
|
||||
<TextInput
|
||||
icon="tabler:braces"
|
||||
name="Schema Name"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
placeholder="UserSchema"
|
||||
setValue={val => setDraft(prev => ({ ...prev, name: val }))}
|
||||
value={draft.name}
|
||||
@@ -85,7 +85,7 @@ export default function EditSchemaNodeModal({
|
||||
className="flex-1"
|
||||
icon="tabler:id"
|
||||
name="Field Name"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
placeholder="fieldName"
|
||||
setValue={val => changeField(i, 'name', val)}
|
||||
value={f.name}
|
||||
@@ -109,7 +109,7 @@ export default function EditSchemaNodeModal({
|
||||
}
|
||||
icon="tabler:category"
|
||||
name="Field Type"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
setValue={val => changeField(i, 'type', val)}
|
||||
value={f.type}
|
||||
>
|
||||
@@ -154,7 +154,7 @@ export default function EditSchemaNodeModal({
|
||||
<Button
|
||||
className="mt-4 w-full"
|
||||
icon="tabler:plus"
|
||||
namespace="core.apiBuilder"
|
||||
namespace="apps.apiBuilder"
|
||||
variant="secondary"
|
||||
onClick={addField}
|
||||
>
|
||||
@@ -18,7 +18,7 @@ function FieldsColumn({
|
||||
withLabel?: boolean
|
||||
withEmptyMessage?: boolean
|
||||
}) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const FinalComponent = withLabel ? NodeColumn : NodeFragment
|
||||
|
||||
@@ -14,7 +14,7 @@ import type { ISchemaNodeData } from '../SchemaNode/types'
|
||||
import type { IPickFieldsFromSchemaNodeData } from './types'
|
||||
|
||||
function SchemaPickFieldsNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const { getNodeData, updateNodeData } = useFlowStateContext()
|
||||
|
||||
@@ -18,7 +18,7 @@ const SORT_ORDER_OPTIONS = [
|
||||
]
|
||||
|
||||
function SorterNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const { getNodeData, updateNodeData } = useFlowStateContext()
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { ICollectionNodeData } from '../CollectionNode/types'
|
||||
import FieldValueColumn from '../CreateRecordNode/components/FieldValueColumn'
|
||||
|
||||
function UpdateRecordNode({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const { getNodeData } = useFlowStateContext()
|
||||
|
||||
@@ -18,7 +18,7 @@ import type { IPickFieldsFromSchemaNodeData } from '../SchemaPickFieldsNode/type
|
||||
import type { IValueFromRequestNodeData } from './types'
|
||||
|
||||
function ValueFromRequest({ id }: { id: string }) {
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const nodes = useNodes()
|
||||
|
||||
@@ -25,7 +25,7 @@ function WithPBNode({ id }: { id: string }) {
|
||||
[getNodeData, id]
|
||||
)
|
||||
|
||||
const { t } = useTranslation('core.apiBuilder')
|
||||
const { t } = useTranslation('apps.apiBuilder')
|
||||
|
||||
const connections = useNodeConnections()
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user