Compare commits

..

17 Commits

Author SHA1 Message Date
Jessica Chowdhury
bc9e591e37 chore: removes letter spacing in loading overlay for script languages (#4769) 2024-05-14 16:51:34 +01:00
Jessica Chowdhury
ad38011348 chore: fix api preview indentation (#6152) 2024-05-14 16:09:17 +01:00
Patrik
d02b1fb084 fix: step-nav breadcrumbs ellipsis (#6345) 2024-05-14 11:08:59 -04:00
Jessica Chowdhury
51efe4f39b fix: collection labels with locales not working when creating new doc (#5995) 2024-05-14 10:45:39 -04:00
Jessica Chowdhury
30e535b5b9 feat: adds misc translations to API view and react select (#6138) 2024-05-13 08:52:12 -04:00
Jessica Chowdhury
4bd3bb9400 chore: adds translations for checkbox field in collection view (#6167) 2024-05-13 12:31:36 +01:00
Patrik
69c93d3c62 fix: appends editDepth value to radio & checkbox IDs when inside drawer (#6181) 2024-05-10 11:24:21 -04:00
Elliot DeNolf
78aa957043 fix(plugin-object-ids): add webpack to dev deps 2024-05-10 11:02:29 -04:00
Patrik
cd06c022c0 feat(plugin-relationship-object-ids): adds plugin-relationship-object-ids package (#6044) 2024-05-10 10:39:47 -04:00
Jacob Fletcher
8299e9fc33 docs(examples): adds examples docs (#6312) 2024-05-10 10:22:22 -04:00
Alessio Gravili
9df5ab8a10 feat(richtext-lexical)!: remove LexicalBlock, RichTextFieldRequiredEditor and FieldWithRichTextRequiredEditor types (#6279)
BREAKING:

`LexicalBlock`, `RichTextFieldRequiredEditor` and `FieldWithRichTextRequiredEditor` types have been removed. Instead of `LexicalBlock`, use `Block`. Instead of `RichTextFieldRequiredEditor`, use `RichTextField`. And instead of `FieldWithRichTextRequiredEditor`, use `Field`.
2024-05-09 09:46:03 -04:00
Elliot DeNolf
6979f5a1b1 ci: register release-canary workflow 2024-05-09 09:22:18 -04:00
Elliot DeNolf
723791b94f chore(release): richtext-lexical/0.10.0 [skip ci] 2024-05-07 15:53:11 -04:00
Elliot DeNolf
aa3833ec83 chore(release): payload/2.16.1 [skip ci] 2024-05-07 15:52:06 -04:00
Dan Ribbens
2972af2af1 chore: add index to version status field (#6256) 2024-05-07 15:47:55 -04:00
Alessio Gravili
857b9a4ac3 feat(richtext-lexical): add maxDepth property to various lexical features (#6250)
Backports #6242
2024-05-07 09:39:48 -04:00
Alessio Gravili
f829b084ba fix(richtext-lexical): export missing HorizontalRuleFeature (#6236) 2024-05-06 13:54:49 -04:00
82 changed files with 3955 additions and 4408 deletions

View File

@@ -1,4 +1,4 @@
name: pr-title
name: release-canary
on:
workflow_dispatch:
@@ -8,4 +8,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Echo
run: echo "Register pr-title workflow"
run: echo "Register release-canary workflow"

View File

@@ -1,3 +1,15 @@
## [2.16.1](https://github.com/payloadcms/payload/compare/v2.16.0...v2.16.1) (2024-05-07)
### Features
* **richtext-lexical:** add maxDepth property to various lexical features ([#6250](https://github.com/payloadcms/payload/issues/6250)) ([857b9a4](https://github.com/payloadcms/payload/commit/857b9a4ac3236c740458750f156a3a4274eda210)), closes [#6242](https://github.com/payloadcms/payload/issues/6242)
### Bug Fixes
* **richtext-lexical:** export missing HorizontalRuleFeature ([#6236](https://github.com/payloadcms/payload/issues/6236)) ([f829b08](https://github.com/payloadcms/payload/commit/f829b084ba9649ef596cce4a7bf6ae8c7ccf57e3))
## [2.16.0](https://github.com/payloadcms/payload/compare/v2.15.0...v2.16.0) (2024-05-06)

View File

@@ -0,0 +1,39 @@
---
title: Examples
label: Overview
order: 10
desc:
keywords: example, examples, starter, boilerplate, template, templates
---
Payload provides a vast array of examples to help you get started with your project no matter what you are working on. These examples are designed to be easy to get up and running, and to be easy to understand. They showcase nothing more than the specific features being demonstrated, so you can easily decipher what is going on.
Examples are changing every day, so be sure to check back often to see what new examples have been added. If you have a specific example you would like to see, please feel free to start a new [Discussion](https://github.com/payloadcms/payload/discussions) or open a new [PR](https://github.com/payloadcms/payload/pulls) to add it yourself.
- [Auth](https://github.com/payloadcms/payload/tree/main/examples/auth)
- [Custom Server](https://github.com/payloadcms/payload/tree/main/examples/custom-server)
- [Draft Preview](https://github.com/payloadcms/payload/tree/main/examples/draft-preview)
- [Email](https://github.com/payloadcms/payload/tree/main/examples/email)
- [Form Builder](https://github.com/payloadcms/payload/tree/main/examples/form-builder)
- [Hierarchy](https://github.com/payloadcms/payload/tree/main/examples/hierarchy)
- [Live Preview](https://github.com/payloadcms/payload/tree/main/examples/live-preview)
- [Multi-tenant](https://github.com/payloadcms/payload/tree/main/examples/multi-tenant)
- [Nested Docs](https://github.com/payloadcms/payload/tree/main/examples/nested-docs)
- [Redirects](https://github.com/payloadcms/payload/tree/main/examples/redirects)
- [Tests](https://github.com/payloadcms/payload/tree/main/examples/testing)
- [Virtual Fields](https://github.com/payloadcms/payload/tree/main/examples/virtual-fields)
- [White-label Admin UI](https://github.com/payloadcms/payload/tree/main/examples/whitelabel)
Where necessary, some examples include a front-end. Examples that require a front-end share this folder structure:
```plaintext
example/
├── payload/
├── next-app/
├── next-pages/
├── react-router/
├── vue/
├── svelte/
```
Where `payload` is your Payload project, and the other directories are dedicated to their respective front-end framework. We are adding new examples every day, so if your framework of choice is not yet supported in any particular example, please feel free to start a new [Discussion](https://github.com/payloadcms/payload/discussions) or open a new [PR](https://github.com/payloadcms/payload/pulls) to add it yourself.

View File

@@ -1,6 +1,6 @@
{
"name": "payload",
"version": "2.16.0",
"version": "2.16.1",
"description": "Node, React and MongoDB Headless CMS and Application Framework",
"license": "MIT",
"main": "./dist/index.js",

View File

@@ -19,6 +19,7 @@ import { ConfigProvider } from './components/utilities/Config'
import { CustomProvider } from './components/utilities/CustomProvider'
import { DocumentEventsProvider } from './components/utilities/DocumentEvents'
import { I18n } from './components/utilities/I18n'
import { LanguageWrap } from './components/utilities/LanguageWrap'
import { LoadingOverlayProvider } from './components/utilities/LoadingOverlay'
import { LocaleProvider } from './components/utilities/Locale'
import { PreferencesProvider } from './components/utilities/Preferences'
@@ -46,21 +47,23 @@ const Root = ({ config: incomingConfig }: { config?: SanitizedConfig }) => {
<AuthProvider>
<PreferencesProvider>
<ThemeProvider>
<SearchParamsProvider>
<LocaleProvider>
<StepNavProvider>
<LoadingOverlayProvider>
<DocumentEventsProvider>
<NavProvider>
<CustomProvider>
<Routes />
</CustomProvider>
</NavProvider>
</DocumentEventsProvider>
</LoadingOverlayProvider>
</StepNavProvider>
</LocaleProvider>
</SearchParamsProvider>
<LanguageWrap>
<SearchParamsProvider>
<LocaleProvider>
<StepNavProvider>
<LoadingOverlayProvider>
<DocumentEventsProvider>
<NavProvider>
<CustomProvider>
<Routes />
</CustomProvider>
</NavProvider>
</DocumentEventsProvider>
</LoadingOverlayProvider>
</StepNavProvider>
</LocaleProvider>
</SearchParamsProvider>
</LanguageWrap>
</ThemeProvider>
<ModalContainer />
</PreferencesProvider>

View File

@@ -5,6 +5,7 @@ import type { CollectionPermission, GlobalPermission } from '../../../../auth'
import type { SanitizedCollectionConfig } from '../../../../collections/config/types'
import type { SanitizedGlobalConfig } from '../../../../globals/config/types'
import { getTranslation } from '../../../../utilities/getTranslation'
import { formatDate } from '../../../utilities/formatDate'
import { useConfig } from '../../utilities/Config'
import { useDocumentInfo } from '../../utilities/DocumentInfo'
@@ -63,6 +64,12 @@ export const DocumentControls: React.FC<{
collection && id && !disableActions && (hasCreatePermission || hasDeletePermission),
)
const collectionLabel = () => {
const label = collection?.labels?.singular
if (!label) return t('document')
return typeof label === 'string' ? label : getTranslation(label, i18n)
}
return (
<Gutter className={baseClass}>
<div className={`${baseClass}__wrapper`}>
@@ -71,12 +78,7 @@ export const DocumentControls: React.FC<{
{collection && !isEditing && !isAccountView && (
<li className={`${baseClass}__list-item`}>
<p className={`${baseClass}__value`}>
{t('creatingNewLabel', {
label:
typeof collection?.labels?.singular === 'string'
? collection.labels.singular
: t('document'),
})}
{t('creatingNewLabel', { label: collectionLabel() })}
</p>
</li>
)}

View File

@@ -24,7 +24,6 @@ export const LoadingOverlay: React.FC<Props> = ({
show = true,
}) => {
const { t } = useTranslation('general')
return (
<div
className={[
@@ -59,25 +58,25 @@ type UseLoadingOverlayToggleT = {
}
export const LoadingOverlayToggle: React.FC<UseLoadingOverlayToggleT> = ({
name: key,
type = 'fullscreen',
loadingText,
show,
type = 'fullscreen',
}) => {
const { toggleLoadingOverlay } = useLoadingOverlay()
React.useEffect(() => {
toggleLoadingOverlay({
type,
isLoading: show,
key,
loadingText: loadingText || undefined,
type,
})
return () => {
toggleLoadingOverlay({
type,
isLoading: false,
key,
type,
})
}
}, [show, toggleLoadingOverlay, key, type, loadingText])
@@ -94,10 +93,10 @@ type FormLoadingOverlayToggleT = {
}
export const FormLoadingOverlayToggle: React.FC<FormLoadingOverlayToggleT> = ({
name,
type = 'fullscreen',
action,
formIsLoading = false,
loadingSuffix,
type = 'fullscreen',
}) => {
const isProcessing = useFormProcessing()
const { i18n, t } = useTranslation('general')

View File

@@ -40,7 +40,7 @@ const SelectAdapter: React.FC<ReactSelectAdapterProps> = (props) => {
isCreatable,
isLoading,
isSearchable = true,
noOptionsMessage,
noOptionsMessage = () => t('general:noOptions'),
numberOnly = false,
onChange,
onMenuOpen,
@@ -50,6 +50,8 @@ const SelectAdapter: React.FC<ReactSelectAdapterProps> = (props) => {
value,
} = props
const loadingMessage = () => t('general:loading') + '...'
const classes = [className, 'react-select', showError && 'react-select--error']
.filter(Boolean)
.join(' ')
@@ -79,6 +81,7 @@ const SelectAdapter: React.FC<ReactSelectAdapterProps> = (props) => {
isClearable={isClearable}
isDisabled={disabled}
isSearchable={isSearchable}
loadingMessage={loadingMessage}
menuPlacement="auto"
noOptionsMessage={noOptionsMessage}
onChange={onChange}
@@ -148,6 +151,7 @@ const SelectAdapter: React.FC<ReactSelectAdapterProps> = (props) => {
isClearable={isClearable}
isDisabled={disabled}
isSearchable={isSearchable}
loadingMessage={loadingMessage}
menuPlacement="auto"
noOptionsMessage={noOptionsMessage}
onChange={onChange}

View File

@@ -2,6 +2,7 @@
.step-nav {
display: flex;
align-items: center;
gap: calc(var(--base) / 2);
&::after {
@@ -56,8 +57,6 @@
}
span {
display: flex;
align-items: center;
max-width: base(8);
text-overflow: ellipsis;
overflow: hidden;

View File

@@ -5,6 +5,7 @@ import type { Props } from './types'
import { checkbox } from '../../../../../fields/validations'
import { getTranslation } from '../../../../../utilities/getTranslation'
import { useEditDepth } from '../../../utilities/EditDepth'
import DefaultError from '../../Error'
import FieldDescription from '../../FieldDescription'
import useField from '../../useField'
@@ -41,6 +42,8 @@ const Checkbox: React.FC<Props> = (props) => {
const path = pathFromProps || name
const editDepth = useEditDepth()
const memoizedValidate = useCallback(
(value, options) => {
return validate(value, { ...options, required })
@@ -62,7 +65,7 @@ const Checkbox: React.FC<Props> = (props) => {
}
}, [onChange, readOnly, setValue, value])
const fieldID = `field-${path.replace(/\./g, '__')}`
const fieldID = `field-${path.replace(/\./g, '__')}${editDepth > 1 ? `-${editDepth}` : ''}`
return (
<div

View File

@@ -4,6 +4,7 @@ import { useTranslation } from 'react-i18next'
import type { Props } from './types'
import { getTranslation } from '../../../../../../utilities/getTranslation'
import { useEditDepth } from '../../../../utilities/EditDepth'
import './index.scss'
const baseClass = 'radio-input'
@@ -12,9 +13,11 @@ const RadioInput: React.FC<Props> = (props) => {
const { isSelected, onChange, option, path, readOnly } = props
const { i18n } = useTranslation()
const editDepth = useEditDepth()
const classes = [baseClass, isSelected && `${baseClass}--is-selected`].filter(Boolean).join(' ')
const id = `field-${path}-${option.value}`
const id = `field-${path}-${option.value}${editDepth > 1 ? `-${editDepth}` : ''}`
return (
<label htmlFor={id}>

View File

@@ -0,0 +1,14 @@
import React from 'react'
import { useTranslation } from 'react-i18next'
import '../../../scss/app.scss'
const scriptLanguages = ['ar', 'fa']
export const LanguageWrap: React.FC<{ children?: React.ReactNode }> = ({ children }) => {
const { i18n } = useTranslation()
const currentLanguage = i18n?.language
const isScriptLanguage = currentLanguage && scriptLanguages.includes(currentLanguage)
return <div className={isScriptLanguage ? `script-language` : ''}>{children}</div>
}

View File

@@ -27,9 +27,9 @@ const chars = {
const baseClass = 'query-inspector'
const Bracket = ({
type,
comma = false,
position,
type,
}: {
comma?: boolean
position: 'end' | 'start'
@@ -64,9 +64,9 @@ const RecursivelyRenderObjectData = ({
const objectKeys = Object.keys(object)
const objectLength = objectKeys.length
const [isOpen, setIsOpen] = React.useState<boolean>(true)
const isNestedAndEmpty = isEmpty && (parentType === 'object' || parentType === 'array')
return (
<li>
<li className={isNestedAndEmpty ? `${baseClass}__row-line--nested` : ''}>
<button
aria-label="toggle"
className={`${baseClass}__list-toggle ${isEmpty ? `${baseClass}__list-toggle--empty` : ''}`}
@@ -173,7 +173,7 @@ function createURL(url: string) {
export const API: React.FC<EditViewProps> = (props) => {
const { apiURL } = props
const { i18n } = useTranslation()
const { i18n, t } = useTranslation()
const {
localization,
routes: { api },
@@ -262,14 +262,14 @@ export const API: React.FC<EditViewProps> = (props) => {
<CheckboxInput
checked={draft}
id="draft-checkbox"
label="Draft"
label={t('version:draft')}
onToggle={() => setDraft(!draft)}
/>
)}
<CheckboxInput
checked={authenticated}
id="auth-checkbox"
label="Authenticated"
label={t('authentication:authenticated')}
onToggle={() => setAuthenticated(!authenticated)}
/>
</div>
@@ -280,7 +280,7 @@ export const API: React.FC<EditViewProps> = (props) => {
label: locale,
value: locale,
}}
label="Locale"
label={t('general:locale')}
name="locale"
onChange={(e) => setLocale(e.value as string)}
options={localeOptions}
@@ -292,7 +292,7 @@ export const API: React.FC<EditViewProps> = (props) => {
label: depth,
value: depth,
}}
label="Depth"
label={t('general:depth')}
name="depth"
onChange={(e) => setDepth(e.value as string)}
options={[

View File

@@ -1,4 +1,5 @@
import React from 'react'
import { useTranslation } from 'react-i18next'
import type { CheckboxField } from '../../../../../../../../exports/types'
import type { CellComponentProps } from '../../types'
@@ -6,9 +7,13 @@ import type { CellComponentProps } from '../../types'
import './index.scss'
// Handles boolean values
const Checkbox: React.FC<CellComponentProps<CheckboxField>> = ({ data }) => (
<code className="bool-cell">
<span>{JSON.stringify(data)}</span>
</code>
)
const Checkbox: React.FC<CellComponentProps<CheckboxField>> = ({ data }) => {
const { t } = useTranslation('general')
if (typeof data !== 'boolean') return null
return (
<code className="bool-cell">
<span>{t(`${data}`).toLowerCase()}</span>
</code>
)
}
export default Checkbox

View File

@@ -200,4 +200,11 @@ dialog {
z-index: var(--z-modal);
}
.script-language {
& > *,
& > * > * {
letter-spacing: 0 !important;
}
}
@import '~payload-user-css';

View File

@@ -68,7 +68,6 @@ export type {
FieldWithMany,
FieldWithMaxDepth,
FieldWithPath,
FieldWithRichTextRequiredEditor,
FieldWithSubFields,
FilterOptions,
FilterOptionsProps,
@@ -87,7 +86,6 @@ export type {
RelationshipField,
RelationshipValue,
RichTextField,
RichTextFieldRequiredEditor,
RowAdmin,
RowField,
SelectField,

View File

@@ -477,6 +477,7 @@ export const richText = baseField.keys({
validate: joi.func().required(),
})
.unknown(),
maxDepth: joi.number(),
})
export const date = baseField.keys({

View File

@@ -551,17 +551,13 @@ export type RichTextField<
}
}
editor?: RichTextAdapter<Value, AdapterProps, AdapterProps>
/**
* Sets a maximum population depth for this field, regardless of the remaining depth when this field is reached.
*/
maxDepth?: number
type: 'richText'
} & ExtraProperties
export type RichTextFieldRequiredEditor<
Value extends object = any,
AdapterProps = any,
ExtraProperties = object,
> = Omit<RichTextField<Value, AdapterProps, ExtraProperties>, 'editor'> & {
editor: RichTextAdapter<Value, AdapterProps, ExtraProperties>
}
export type ArrayField = FieldBase & {
admin?: Admin & {
components?: {
@@ -679,10 +675,6 @@ export type Field =
| UIField
| UploadField
export type FieldWithRichTextRequiredEditor =
| Exclude<Field, RichTextField>
| RichTextFieldRequiredEditor
export type FieldAffectingData =
| ArrayField
| BlockField

View File

@@ -143,10 +143,13 @@ export const promise = async ({
const editor: RichTextAdapter = field?.editor
// This is run here AND in the GraphQL Resolver
if (editor?.populationPromise) {
const populateDepth =
field?.maxDepth !== undefined && field?.maxDepth < depth ? field?.maxDepth : depth
const populationPromise = editor.populationPromise({
context,
currentDepth,
depth,
depth: populateDepth,
draft,
field,
findMany,

View File

@@ -1,4 +1,6 @@
import Ajv from 'ajv'
import ObjectID from 'bson-objectid'
import type { RichTextAdapter } from '../exports/types'
import type {
ArrayField,
@@ -159,7 +161,7 @@ export const json: Validate<unknown, unknown, JSONField & { jsonError?: string }
return true
}
const fetchSchema = ({ uri, schema }) => {
const fetchSchema = ({ schema, uri }) => {
if (uri && schema) return schema
return fetch(uri)
.then((response) => {
@@ -344,8 +346,12 @@ const validateFilterOptions: Validate = async (
const valueIDs: (number | string)[] = []
values.forEach((val) => {
if (typeof val === 'object' && val?.value) {
valueIDs.push(val.value)
if (typeof val === 'object') {
if (val?.value) {
valueIDs.push(val.value)
} else if (ObjectID.isValid(val)) {
valueIDs.push(new ObjectID(val).toHexString())
}
}
if (typeof val === 'string' || typeof val === 'number') {
@@ -397,6 +403,10 @@ const validateFilterOptions: Validate = async (
if (typeof val === 'string' || typeof val === 'number') {
requestedID = val
}
if (typeof val === 'object' && ObjectID.isValid(val)) {
requestedID = new ObjectID(val).toHexString()
}
}
if (Array.isArray(relationTo) && typeof val === 'object' && val?.relationTo) {

View File

@@ -476,9 +476,12 @@ function buildObjectType({
// In the graphql find.ts resolver, the depth is then hard-coded to 0.
// Effectively, this means that the populationPromise for GraphQL is only run here, and not in the find.ts resolver / normal population promise.
if (editor?.populationPromise) {
const populateDepth =
field?.maxDepth !== undefined && field?.maxDepth < depth ? field?.maxDepth : depth
await editor?.populationPromise({
context,
depth,
depth: populateDepth,
draft: args.draft,
field,
findMany: false,

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "تمّ التّفعيل بالفعل",
"alreadyLoggedIn": "تمّ تسجيل الدّخول بالفعل",
"apiKey": "مفتاح API",
"authenticated": "مصادق عليه",
"backToLogin": "العودة لتسجيل الدخول",
"beginCreateFirstUser": "للبدء, قم بإنشاء المستخدم الأوّل.",
"changePassword": "تغيير كلمة المرور",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "تمّ حذف {{count}} {{label}} بنجاح.",
"deletedSuccessfully": "تمّ الحذف بنجاح.",
"deleting": "يتمّ الحذف...",
"depth": "عمق",
"descending": "تنازلي",
"deselectAllRows": "إلغاء تحديد جميع الصفوف",
"document": "وثيقة",
@@ -195,6 +197,7 @@
"error": "خطأ",
"errors": "أخطاء",
"fallbackToDefaultLocale": "الرجوع إلى اللغة الافتراضية",
"false": "كاذب",
"filter": "تصفية",
"filterWhere": "تصفية {{label}} حيث",
"filters": "عوامل التصفية",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} تم استنساخها بنجاح.",
"thisLanguage": "العربية",
"titleDeleted": "تم حذف {{label}} \"{{title}}\" بنجاح.",
"true": "صحيح",
"unauthorized": "غير مصرح به",
"unsavedChangesDuplicate": "لديك تغييرات لم يتم حفظها. هل تريد الاستمرار في الاستنساخ؟",
"untitled": "بدون عنوان",
@@ -373,4 +377,4 @@
"viewingVersions": "يتمّ استعراض النُّسَخ ل {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "يتمّ استعراض النُّسَخ للاعداد العامّ {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Artıq Aktivləşdirilib",
"alreadyLoggedIn": "Artıq daxil olunub",
"apiKey": "API Açarı",
"authenticated": "Doğrulandı",
"backToLogin": "Girişə qayıt",
"beginCreateFirstUser": "Başlamaq üçün ilk istifadəçinizi yaradın.",
"changePassword": "Parolu dəyişdir",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} uğurla silindi.",
"deletedSuccessfully": "Uğurla silindi.",
"deleting": "Silinir...",
"depth": "Dərinlik",
"descending": "Azalan",
"deselectAllRows": "Bütün sıraları seçimi ləğv edin",
"document": "Sənəd",
@@ -195,6 +197,7 @@
"error": "Xəta",
"errors": "Xətalar",
"fallbackToDefaultLocale": "Standart lokalə keçid",
"false": "Yalan",
"filter": "Filter",
"filterWhere": "{{label}} filtrlə",
"filters": "Filtərlər",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} uğurla dublikatlandı.",
"thisLanguage": "Azərbaycan dili",
"titleDeleted": "{{label}} \"{{title}}\" uğurla silindi.",
"true": "Doğru",
"unauthorized": "İcazəsiz",
"unsavedChangesDuplicate": "Saxlanılmamış dəyişiklikləriniz var. Dublikatla davam etmək istəyirsiniz?",
"untitled": "Başlıqsız",
@@ -373,4 +377,4 @@
"viewingVersions": "{{entityLabel}} {{documentTitle}} üçün versiyaları göstərir",
"viewingVersionsGlobal": "Qlobal {{entityLabel}} üçün versiyaları göstərir"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Вече активиран",
"alreadyLoggedIn": "Вече влязъл",
"apiKey": "API ключ",
"authenticated": "Аутентикиран",
"backToLogin": "Обратно към влизане",
"beginCreateFirstUser": "За да започнеш, създай първия си потребител",
"changePassword": "Промяна на паролата",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Изтрити {{count}} {{label}} успешно.",
"deletedSuccessfully": "Изтрито успешно.",
"deleting": "Изтриване...",
"depth": "Дълбочина",
"descending": "Низходящо",
"deselectAllRows": "Деселектирай всички редове",
"document": "Документ",
@@ -195,6 +197,7 @@
"error": "Грешка",
"errors": "Грешки",
"fallbackToDefaultLocale": "Използвай локализация по подразбиране",
"false": "Ложно",
"filter": "Филтрирай",
"filterWhere": "Филтрирай {{label}} където",
"filters": "Филтри",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} успешно дупликиран.",
"thisLanguage": "Български",
"titleDeleted": "{{label}} \"{{title}}\" успешно изтрит.",
"true": "Истина",
"unauthorized": "Неавторизиран",
"unsavedChangesDuplicate": "Имаш незапазени промени. Искаш ли да продължиш да дупликираш?",
"untitled": "Неозаглавен",
@@ -373,4 +377,4 @@
"viewingVersions": "Гледане на версии за {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Гледане на версии за глобалния документ {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Již aktivováno",
"alreadyLoggedIn": "Již přihlášen",
"apiKey": "API klíč",
"authenticated": "Ověřený",
"backToLogin": "Zpět na přihlášení",
"beginCreateFirstUser": "Začněte vytvořením svého prvního uživatele.",
"changePassword": "Změnit heslo",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Úspěšně smazáno {{count}} {{label}}.",
"deletedSuccessfully": "Úspěšně odstraněno.",
"deleting": "Odstraňování...",
"depth": "Hloubka",
"descending": "Sestupně",
"deselectAllRows": "Zrušte výběr všech řádků",
"document": "Dokument",
@@ -195,6 +197,7 @@
"error": "Chyba",
"errors": "Chyby",
"fallbackToDefaultLocale": "Zpětné přepnutí do výchozího locale",
"false": "Nepravda",
"filter": "Filtr",
"filterWhere": "Filtrovat {{label}} kde",
"filters": "Filtry",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} úspěšně duplikováno.",
"thisLanguage": "Čeština",
"titleDeleted": "{{label}} \"{{title}}\" úspěšně smazáno.",
"true": "Pravda",
"unauthorized": "Neoprávněný",
"unsavedChangesDuplicate": "Máte neuložené změny. Chtěli byste pokračovat v duplikování?",
"untitled": "Bez názvu",
@@ -373,4 +377,4 @@
"viewingVersions": "Zobrazuji verze pro {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Zobrazuji verze pro globální {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Bereits aktiviert",
"alreadyLoggedIn": "Bereits angemeldet",
"apiKey": "API-Key",
"authenticated": "Authentifiziert",
"backToLogin": "Zurück zur Anmeldung",
"beginCreateFirstUser": "Erstelle deinen ersten Benutzer um zu beginnen",
"changePassword": "Passwort ändern",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} erfolgreich gelöscht.",
"deletedSuccessfully": "Erfolgreich gelöscht.",
"deleting": "Lösche...",
"depth": "Tiefe",
"descending": "Absteigend",
"deselectAllRows": "Alle Zeilen abwählen",
"document": "Dokument",
@@ -195,6 +197,7 @@
"error": "Fehler",
"errors": "Fehler",
"fallbackToDefaultLocale": "Rückgriff auf das Standardgebietsschema",
"false": "Falsch",
"filter": "Filter",
"filterWhere": "Filter {{label}} wo",
"filters": "Filter",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} wurde erfolgreich dupliziert.",
"thisLanguage": "Deutsch",
"titleDeleted": "{{label}} {{title}} wurde erfolgreich gelöscht.",
"true": "Wahr",
"unauthorized": "Nicht autorisiert",
"unsavedChangesDuplicate": "Du hast ungespeicherte Änderungen, möchtest du mit dem Duplizieren fortfahren?",
"untitled": "ohne Titel",
@@ -373,4 +377,4 @@
"viewingVersions": "Betrachte Versionen für {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "`Betrachte Versionen für das Globale Dokument {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Already Activated",
"alreadyLoggedIn": "Already logged in",
"apiKey": "API Key",
"authenticated": "Authenticated",
"backToLogin": "Back to login",
"beginCreateFirstUser": "To begin, create your first user.",
"changePassword": "Change Password",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Deleted {{count}} {{label}} successfully.",
"deletedSuccessfully": "Deleted successfully.",
"deleting": "Deleting...",
"depth": "Depth",
"descending": "Descending",
"deselectAllRows": "Deselect all rows",
"document": "Document",
@@ -195,6 +197,7 @@
"error": "Error",
"errors": "Errors",
"fallbackToDefaultLocale": "Fallback to default locale",
"false": "False",
"filter": "Filter",
"filterWhere": "Filter {{label}} where",
"filters": "Filters",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} successfully duplicated.",
"thisLanguage": "English",
"titleDeleted": "{{label}} \"{{title}}\" successfully deleted.",
"true": "True",
"unauthorized": "Unauthorized",
"unsavedChangesDuplicate": "You have unsaved changes. Would you like to continue to duplicate?",
"untitled": "Untitled",

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Ya Activado",
"alreadyLoggedIn": "Sesión iniciada",
"apiKey": "Clave API",
"authenticated": "Autenticado",
"backToLogin": "Regresar al inicio de sesión",
"beginCreateFirstUser": "Para empezar, crea tu primer usuario.",
"changePassword": "Cambiar contraseña",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Se eliminó {{count}} {{label}} con éxito.",
"deletedSuccessfully": "Borrado exitosamente.",
"deleting": "Eliminando...",
"depth": "Profundidad",
"descending": "Descendente",
"deselectAllRows": "Deselecciona todas las filas",
"document": "Documento",
@@ -195,6 +197,7 @@
"error": "Error",
"errors": "Errores",
"fallbackToDefaultLocale": "Volver a la configuración regional por defecto",
"false": "Falso",
"filter": "Filtro",
"filterWhere": "Filtrar {{label}} donde",
"filters": "Filtros",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} duplicado correctamente.",
"thisLanguage": "Español",
"titleDeleted": "{{label}} {{title}} eliminado correctamente.",
"true": "Verdadero",
"unauthorized": "No autorizado",
"unsavedChangesDuplicate": "Tienes cambios sin guardar. ¿Deseas continuar para duplicar?",
"untitled": "Sin título",
@@ -373,4 +377,4 @@
"viewingVersions": "Viendo versiones para {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Viendo versiones para el global {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "قبلاً فعال شده است",
"alreadyLoggedIn": "قبلاً وارد شده‌اید",
"apiKey": "کلید اِی‌پی‌آی",
"authenticated": "احراز هویت شده",
"backToLogin": "بازگشت به برگه ورود",
"beginCreateFirstUser": "برای آغاز، نخستین کاربر خود را بسازید.",
"changePassword": "تغییر گذرواژه",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "تعداد {{count}} {{label}} با موفقیت پاک گردید.",
"deletedSuccessfully": "با موفقیت حذف شد.",
"deleting": "در حال حذف...",
"depth": "عمق",
"descending": "رو به پایین",
"deselectAllRows": "تمام سطرها را از انتخاب خارج کنید",
"document": "سند",
@@ -195,6 +197,7 @@
"error": "خطا",
"errors": "خطاها",
"fallbackToDefaultLocale": "بازگردان پیشفرض زبان",
"false": "غلط",
"filter": "علامت‌گذاری",
"filterWhere": "علامت گذاری کردن {{label}} جایی که",
"filters": "علامت‌گذاری‌ها",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} با موفقیت رونوشت شد.",
"thisLanguage": "فارسی",
"titleDeleted": "{{label}} \"{{title}}\" با موفقیت پاک شد.",
"true": "درست",
"unauthorized": "غیرمجاز",
"unsavedChangesDuplicate": "شما تغییرات ذخیره نشده دارید. مطمئنید میخواهید به رونوشت ادامه دهید؟",
"untitled": "بدون عنوان",
@@ -373,4 +377,4 @@
"viewingVersions": "مشاهده نگارش‌ها برای {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "مشاهده نگارش‌های کلی {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Déjà activé",
"alreadyLoggedIn": "Déjà connecté",
"apiKey": "Clé API",
"authenticated": "Authentifié",
"backToLogin": "Retour à la connexion",
"beginCreateFirstUser": "Pour commencer, créez votre premier utilisateur.",
"changePassword": "Changer le mot de passe",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} supprimé avec succès.",
"deletedSuccessfully": "Supprimé(e) avec succès.",
"deleting": "Suppression en cours...",
"depth": "Profondeur",
"descending": "Descendant(e)",
"deselectAllRows": "Désélectionner toutes les lignes",
"document": "Document",
@@ -195,6 +197,7 @@
"error": "Erreur",
"errors": "Erreurs",
"fallbackToDefaultLocale": "Retour à la locale par défaut",
"false": "Faux",
"filter": "Filtrer",
"filterWhere": "Filtrer {{label}} où",
"filters": "Filtres",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} dupliqué(e) avec succès.",
"thisLanguage": "Français",
"titleDeleted": "{{label}} \"{{title}}\" supprimé(e) avec succès.",
"true": "Vrai",
"unauthorized": "Non autorisé",
"unsavedChangesDuplicate": "Vous avez des changements non enregistrés. Souhaitez-vous continuer la duplication ?",
"untitled": "Sans titre",
@@ -373,4 +377,4 @@
"viewingVersions": "Affichage des versions de ou du {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Affichage des versions globales de ou du {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Već aktivirano",
"alreadyLoggedIn": "Već prijavljen",
"apiKey": "API ključ",
"authenticated": "Autenticiran",
"backToLogin": "Nazad na prijavu",
"beginCreateFirstUser": "Za početak, kreiraj svog prvog korisnika.",
"changePassword": "Promjeni lozinku",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Uspješno izbrisano {{count}} {{label}}.",
"deletedSuccessfully": "Uspješno obrisano.",
"deleting": "Brisanje...",
"depth": "Dubina",
"descending": "Silazno",
"deselectAllRows": "Odznači sve redove",
"document": "Dokument",
@@ -195,6 +197,7 @@
"error": "Greška",
"errors": "Greške",
"fallbackToDefaultLocale": "Vraćanje na zadani jezik",
"false": "Netočno",
"filter": "Filter",
"filterWhere": "Filter {{label}} gdje",
"filters": "Filteri",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} uspješno duplicirano.",
"thisLanguage": "Hrvatski",
"titleDeleted": "{{label}} \"{{title}}\" uspješno obrisano.",
"true": "Istinito",
"unauthorized": "Neovlašteno",
"unsavedChangesDuplicate": "Imate nespremljene promjene. Želite li nastaviti s dupliciranjem?",
"untitled": "Bez naslova",
@@ -373,4 +377,4 @@
"viewingVersions": "Pregled verzija za {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Pregled verzije za globalni {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Már aktiválva van",
"alreadyLoggedIn": "Már bejelentkezett",
"apiKey": "API-kulcs",
"authenticated": "Hitelesített",
"backToLogin": "Vissza a bejelentkezéshez",
"beginCreateFirstUser": "Kezdésként hozza létre az első felhasználót.",
"changePassword": "Jelszó módosítása",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} sikeresen törölve.",
"deletedSuccessfully": "Sikeresen törölve.",
"deleting": "Törlés...",
"depth": "Mélység",
"descending": "Csökkenő",
"deselectAllRows": "Jelölje ki az összes sort",
"document": "Dokumentum",
@@ -195,6 +197,7 @@
"error": "Hiba",
"errors": "Hibák",
"fallbackToDefaultLocale": "Visszatérés az alapértelmezett nyelvhez",
"false": "Hamis",
"filter": "Szűrő",
"filterWhere": "Szűrő {{label}} ahol",
"filters": "Szűrők",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} sikeresen duplikálódott.",
"thisLanguage": "Magyar",
"titleDeleted": "{{label}} \"{{title}}\" sikeresen törölve.",
"true": "Igaz",
"unauthorized": "Jogosulatlan",
"unsavedChangesDuplicate": "Nem mentett módosításai vannak. Szeretné folytatni a duplikációt?",
"untitled": "Névtelen",
@@ -373,4 +377,4 @@
"viewingVersions": "A {{entityLabel}} {{documentTitle}} verzióinak megtekintése",
"viewingVersionsGlobal": "A globális {{entityLabel}} verzióinak megtekintése"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Già Attivato",
"alreadyLoggedIn": "Sei già loggato",
"apiKey": "Chiave API",
"authenticated": "Autenticato",
"backToLogin": "Torna al login",
"beginCreateFirstUser": "Per iniziare, crea il tuo primo utente.",
"changePassword": "Cambia Password",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} eliminato con successo.",
"deletedSuccessfully": "Eliminato con successo.",
"deleting": "Sto eliminando...",
"depth": "Profondità",
"descending": "Decrescente",
"deselectAllRows": "Deseleziona tutte le righe",
"document": "Documento",
@@ -195,6 +197,7 @@
"error": "Errore",
"errors": "Errori",
"fallbackToDefaultLocale": "Fallback al locale predefinito",
"false": "Falso",
"filter": "Filtro",
"filterWhere": "Filtra {{label}} se",
"filters": "Filtri",
@@ -251,6 +254,7 @@
"successfullyDuplicated": "{{label}} duplicato con successo.",
"thisLanguage": "Italiano",
"titleDeleted": "{{label}} {{title}} eliminato con successo.",
"true": "Vero",
"unauthorized": "Non autorizzato",
"unsavedChangesDuplicate": "Sono presenti modifiche non salvate. Vuoi continuare a duplicare?",
"untitled": "Senza titolo",
@@ -374,4 +378,4 @@
"viewingVersions": "Visualizzazione delle versioni per {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "`Visualizzazione delle versioni per {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "すでに有効です",
"alreadyLoggedIn": "すでにログインしています",
"apiKey": "API Key",
"authenticated": "認証済み",
"backToLogin": "ログイン画面へ戻る",
"beginCreateFirstUser": "まずは、最初のユーザーを作成します。",
"changePassword": "パスワードを変更",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}}つの{{label}}を正常に削除しました。",
"deletedSuccessfully": "正常に削除されました。",
"deleting": "削除しています...",
"depth": "深さ",
"descending": "降順",
"deselectAllRows": "すべての行の選択を解除します",
"document": "ドキュメント",
@@ -195,6 +197,7 @@
"error": "エラー",
"errors": "エラー",
"fallbackToDefaultLocale": "デフォルトロケールへのフォールバック",
"false": "偽",
"filter": "絞り込み",
"filterWhere": "{{label}} の絞り込み",
"filters": "絞り込み",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} が複製されました。",
"thisLanguage": "Japanese",
"titleDeleted": "{{label}} \"{{title}}\" が削除されました。",
"true": "真実",
"unauthorized": "未認証",
"unsavedChangesDuplicate": "未保存の変更があります。複製を続けますか?",
"untitled": "Untitled",
@@ -373,4 +377,4 @@
"viewingVersions": "表示バージョン: {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "表示バージョン: グローバルな {{entityLabel}}"
}
}
}

View File

@@ -1,10 +1,12 @@
{
"$schema": "[SKIPPED]",
"authentication": {
"account": "계정",
"accountOfCurrentUser": "현재 사용자의 계정",
"alreadyActivated": "이미 활성화됨",
"alreadyLoggedIn": "이미 로그인됨",
"apiKey": "API 키",
"authenticated": "인증됨",
"backToLogin": "로그인 화면으로 돌아가기",
"beginCreateFirstUser": "시작하려면 첫 번째 사용자를 생성하세요.",
"changePassword": "비밀번호 변경",
@@ -166,16 +168,17 @@
"create": "생성",
"createNew": "새로 생성",
"createNewLabel": "새로운 {{label}} 생성",
"creatingNewLabel": "{{label}} 생성 중",
"created": "생성됨",
"createdAt": "생성 일시",
"creating": "생성 중",
"creatingNewLabel": "{{label}} 생성 중",
"dark": "다크",
"dashboard": "대시보드",
"delete": "삭제",
"deletedCountSuccessfully": "{{count}}개의 {{label}}를 삭제했습니다.",
"deletedSuccessfully": "삭제되었습니다.",
"deleting": "삭제 중...",
"depth": "깊이",
"descending": "내림차순",
"deselectAllRows": "모든 행 선택 해제",
"document": "문서",
@@ -194,6 +197,7 @@
"error": "오류",
"errors": "오류",
"fallbackToDefaultLocale": "기본 locale로 대체",
"false": "거짓",
"filter": "필터",
"filterWhere": "{{label}} 필터링 조건",
"filters": "필터",
@@ -220,8 +224,8 @@
"notFound": "찾을 수 없음",
"nothingFound": "찾을 수 없습니다",
"of": "의",
"or": "또는",
"open": "열기",
"or": "또는",
"order": "순서",
"pageNotFound": "페이지를 찾을 수 없음",
"password": "비밀번호",
@@ -249,6 +253,7 @@
"successfullyDuplicated": "{{label}}이(가) 복제되었습니다.",
"thisLanguage": "한국어",
"titleDeleted": "{{label}} \"{{title}}\"을(를) 삭제했습니다.",
"true": "참",
"unauthorized": "권한 없음",
"unsavedChangesDuplicate": "저장되지 않은 변경 사항이 있습니다. 복제를 계속하시겠습니까?",
"untitled": "제목 없음",
@@ -282,10 +287,10 @@
"dragAndDrop": "파일을 끌어다 놓으세요",
"dragAndDropHere": "또는 여기로 파일을 끌어다 놓으세요",
"editImage": "이미지 수정",
"focalPoint": "초점",
"focalPointDescription": "미리보기에서 초점을 직접 드래그하거나 아래의 값을 조정하세요.",
"fileName": "파일 이름",
"fileSize": "파일 크기",
"focalPoint": "초점",
"focalPointDescription": "미리보기에서 초점을 직접 드래그하거나 아래의 값을 조정하세요.",
"height": "높이",
"lessInfo": "정보 숨기기",
"moreInfo": "정보 더보기",
@@ -372,4 +377,4 @@
"viewingVersions": "{{entityLabel}} {{documentTitle}}에 대한 버전 보기",
"viewingVersionsGlobal": "글로벌 {{entityLabel}}에 대한 버전 보기"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "အတည်ပြုပြီး",
"alreadyLoggedIn": "ဝင်ရောက်ပြီးသား",
"apiKey": "API Key",
"authenticated": "အတည်ပြုပြီး",
"backToLogin": "အကောင့်ထဲ ပြန်ဝင်မည်။",
"beginCreateFirstUser": "စတင်နိုင်ရန် ပထမဦးစွာ အသုံးပြုသူအား ဖန်တီးပါ။",
"changePassword": "စကားဝှက် ပြောင်းလဲမည်။",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} ကို အောင်မြင်စွာ ဖျက်လိုက်ပါပြီ။",
"deletedSuccessfully": "အောင်မြင်စွာ ဖျက်လိုက်ပါပြီ။",
"deleting": "ဖျက်နေဆဲ ...",
"depth": "ထိုင်းအောက်မှု",
"descending": "ဆင်းသက်လာသည်။",
"deselectAllRows": "အားလုံးကို မရွေးနိုင်ပါ",
"document": "စာရွက်စာတမ်း",
@@ -195,6 +197,7 @@
"error": "အမှား",
"errors": "အမှားများ",
"fallbackToDefaultLocale": "မူရင်းဒေသသို့ ပြန်ပြောင်းပါ။",
"false": "မှား",
"filter": "ဇကာ",
"filterWhere": "နေရာတွင် စစ်ထုတ်ပါ။",
"filters": "စစ်ထုတ်မှုများ",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} အောင်မြင်စွာ ပုံတူပွားခဲ့သည်။",
"thisLanguage": "မြန်မာစာ",
"titleDeleted": "{{label}} {{title}} အောင်မြင်စွာ ဖျက်သိမ်းခဲ့သည်။",
"true": "အမှန်",
"unauthorized": "အခွင့်မရှိပါ။",
"unsavedChangesDuplicate": "သင့်တွင် မသိမ်းဆည်းရသေးသော ပြောင်းလဲမှုများ ရှိနေပါသည်။ ပုံတူပွားမှာ သေချာပြီလား။",
"untitled": "ခေါင်းစဥ်မဲ့",
@@ -373,4 +377,4 @@
"viewingVersions": "{{entityLabel}} {{documentTitle}} အတွက် ဗားရှင်းများကို ကြည့်ရှုခြင်း",
"viewingVersionsGlobal": "`ဂလိုဘယ်ဆိုင်ရာ {{entityLabel}} အတွက် ဗားရှင်းများကို ကြည့်ရှုနေသည်"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Allerede aktivert",
"alreadyLoggedIn": "Allerede logget inn",
"apiKey": "API-nøkkel",
"authenticated": "Autentisert",
"backToLogin": "Tilbake til innlogging",
"beginCreateFirstUser": "Opprett din første bruker for å fortsette.",
"changePassword": "Endre passord",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Slettet {{count}} {{label}}.",
"deletedSuccessfully": "Slettet.",
"deleting": "Sletter...",
"depth": "Dybde",
"descending": "Synkende",
"deselectAllRows": "Fjern markeringen fra alle rader",
"document": "Dokument",
@@ -195,6 +197,7 @@
"error": "Feil",
"errors": "Feil",
"fallbackToDefaultLocale": "Tilbakestilling til standard lokalitet",
"false": "Falsk",
"filter": "Filtrer",
"filterWhere": "Filtrer {{label}} der",
"filters": "Filter",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} ble duplisert.",
"thisLanguage": "Norsk",
"titleDeleted": "{{label}} \"{{title}}\" ble slettet.",
"true": "Sann",
"unauthorized": "Ikke autorisert",
"unsavedChangesDuplicate": "Du har ulagrede endringer. Vil du fortsette å duplisere?",
"untitled": "Uten tittel",
@@ -373,4 +377,4 @@
"viewingVersions": "Viser versjoner for {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Viser versjoner for den globale variabelen {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Al geactiveerd",
"alreadyLoggedIn": "Al ingelogd",
"apiKey": "API-sleutel",
"authenticated": "Geverifieerd",
"backToLogin": "Terug naar inloggen",
"beginCreateFirstUser": "Om te beginnen maakt u uw eerste gebruiker aan.",
"changePassword": "Wachtwoord wijzigen",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} succesvol verwijderd.",
"deletedSuccessfully": "Succesvol verwijderd.",
"deleting": "Verwijderen...",
"depth": "Diepte",
"descending": "Aflopend",
"deselectAllRows": "Deselecteer alle rijen",
"document": "Document",
@@ -195,6 +197,7 @@
"error": "Fout",
"errors": "Fouten",
"fallbackToDefaultLocale": "Terugval naar standaardtaal",
"false": "Onwaar",
"filter": "Filter",
"filterWhere": "Filter {{label}} waar",
"filters": "Filters",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} succesvol gedupliceerd.",
"thisLanguage": "Nederlands",
"titleDeleted": "{{label}} \"{{title}}\" succesvol verwijderd.",
"true": "Waar",
"unauthorized": "Onbevoegd",
"unsavedChangesDuplicate": "U heeft onbewaarde wijzigingen. Wilt u doorgaan met dupliceren?",
"untitled": "Zonder titel",
@@ -373,4 +377,4 @@
"viewingVersions": "Bekijk versies voor {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "`Bekijk versies voor global {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Już aktywowano",
"alreadyLoggedIn": "Już zalogowano",
"apiKey": "Klucz API",
"authenticated": "Uwierzytelniony",
"backToLogin": "Powrót do logowania",
"beginCreateFirstUser": "Aby rozpocząć, utwórz pierwszego użytkownika",
"changePassword": "Zmień hasło",
@@ -178,6 +179,7 @@
"deletedCountSuccessfully": "Pomyślnie usunięto {{count}} {{label}}.",
"deletedSuccessfully": "Pomyślnie usunięto.",
"deleting": "Usuwanie...",
"depth": "Głębokość",
"descending": "Malejąco",
"deselectAllRows": "Odznacz wszystkie wiersze",
"document": "Dokument",
@@ -196,6 +198,7 @@
"error": "Błąd",
"errors": "Błędy",
"fallbackToDefaultLocale": "Powrót do domyślnych ustawień regionalnych",
"false": "Fałszywe",
"filter": "Filtr",
"filterWhere": "Filtruj gdzie",
"filters": "Filtry",
@@ -251,6 +254,7 @@
"successfullyDuplicated": "Pomyślnie zduplikowano {{label}}",
"thisLanguage": "Polski",
"titleDeleted": "Pomyślnie usunięto {{label}} {{title}}",
"true": "Prawda",
"unauthorized": "Brak autoryzacji",
"unsavedChangesDuplicate": "Masz niezapisane zmiany. Czy chcesz kontynuować duplikowanie?",
"untitled": "Bez nazwy",
@@ -374,4 +378,4 @@
"viewingVersions": "Przeglądanie wersji {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Przeglądanie wersji dla globalnej kolekcji {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Conta já ativada",
"alreadyLoggedIn": "Login já realizado",
"apiKey": "Chave da API",
"authenticated": "Autenticado",
"backToLogin": "Voltar para login",
"beginCreateFirstUser": "Para começar, crie seu primeiro usuário.",
"changePassword": "Mudar senha",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Excluído {{count}} {{label}} com sucesso.",
"deletedSuccessfully": "Apagado com sucesso.",
"deleting": "Excluindo...",
"depth": "Profundidade",
"descending": "Decrescente",
"deselectAllRows": "Desmarcar todas as linhas",
"document": "Documento",
@@ -195,6 +197,7 @@
"error": "Erro",
"errors": "Erros",
"fallbackToDefaultLocale": "Recuo para o local padrão",
"false": "Falso",
"filter": "Filtro",
"filterWhere": "Filtrar {{label}} em que",
"filters": "Filtros",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} duplicado com sucesso.",
"thisLanguage": "Português",
"titleDeleted": "{{label}} {{title}} excluído com sucesso.",
"true": "Verdadeiro",
"unauthorized": "Não autorizado",
"unsavedChangesDuplicate": "Você tem mudanças não salvas. Você gostaria de continuar a duplicar?",
"untitled": "Sem título",
@@ -373,4 +377,4 @@
"viewingVersions": "Visualizando versões para o/a {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "`Visualizando versões para o global {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Deja activat",
"alreadyLoggedIn": "Deja autorizat",
"apiKey": "Cheia API",
"authenticated": "Autentificat",
"backToLogin": "Înapoi la login",
"beginCreateFirstUser": "Pentru a începe, creați primul utilizator.",
"changePassword": "Schimbați parola",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Șterse cu succes {{count}} {{label}}.",
"deletedSuccessfully": "Șters cu succes.",
"deleting": "Deleting...",
"depth": "Adâncime",
"descending": "Descendentă",
"deselectAllRows": "Deselectează toate rândurile",
"document": "Document",
@@ -195,6 +197,7 @@
"error": "Eroare",
"errors": "Erori",
"fallbackToDefaultLocale": "Revenire la locația implicită",
"false": "Fals",
"filter": "Filtru",
"filterWhere": "Filtrează {{label}} unde",
"filters": "Filtre",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} duplicat(ă) cu succes.",
"thisLanguage": "Română",
"titleDeleted": "{{label}} \"{{title}}\" șters cu succes.",
"true": "Adevărat",
"unauthorized": "neautorizat(ă)",
"unsavedChangesDuplicate": "Aveți modificări nesalvate. Doriți să continuați să duplicați?",
"untitled": "Fără titlu",
@@ -373,4 +377,4 @@
"viewingVersions": "Vizualizarea versiunilor pentru {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Vizualizarea versiunilor pentru globala {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Već aktivirano",
"alreadyLoggedIn": "Već prijavljen",
"apiKey": "API ključ",
"authenticated": "Autentifikovan",
"backToLogin": "Nazad na prijavu",
"beginCreateFirstUser": "Na samom početku kreiraj svog prvog korisnika",
"changePassword": "Promeni lozinku",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Uspešno izbrisano {{count}} {{label}}.",
"deletedSuccessfully": "Uspešno izbrisano.",
"deleting": "Brisanje...",
"depth": "Dubina",
"descending": "Opadajuće",
"deselectAllRows": "Deselektujte sve redove",
"document": "Dokument",
@@ -195,6 +197,7 @@
"error": "Greška",
"errors": "Greške",
"fallbackToDefaultLocale": "Vraćanje na zadati jezik",
"false": "Lažno",
"filter": "Filter",
"filterWhere": "Filter {{label}} gde",
"filters": "Filteri",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} uspešno duplicirano.",
"thisLanguage": "Srpski (latinica)",
"titleDeleted": "{{label}} \"{{title}}\" uspešno obrisano.",
"true": "Istinito",
"unauthorized": "Niste autorizovani",
"unsavedChangesDuplicate": "Imate nesačuvane promene. Da li želite nastaviti sa dupliciranjem?",
"untitled": "Bez naslova",
@@ -373,4 +377,4 @@
"viewingVersions": "Pregled verzija za {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Pregled verzije za globalni {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Већ активирано",
"alreadyLoggedIn": "Већ пријављен",
"apiKey": "АПИ кључ",
"authenticated": "Autentifikovan",
"backToLogin": "Назад на пријаву",
"beginCreateFirstUser": "На самом почетку креирај свог првог корисника",
"changePassword": "Промени лозинку",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Успешно избрисано {{count}} {{label}}.",
"deletedSuccessfully": "Успешно избрисано.",
"deleting": "Брисање...",
"depth": "Dubina",
"descending": "Опадајуће",
"deselectAllRows": "Деселектујте све редове",
"document": "Dokument",
@@ -195,6 +197,7 @@
"error": "Грешка",
"errors": "Грешке",
"fallbackToDefaultLocale": "Враћање на задати језик",
"false": "Lažno",
"filter": "Филтер",
"filterWhere": "Филтер {{label}} где",
"filters": "Филтери",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} успешно дуплицирано.",
"thisLanguage": "Српски (ћирилица)",
"titleDeleted": "{{label}} \"{{title}}\" успешно обрисано.",
"true": "Istinito",
"unauthorized": "Нисте ауторизовани",
"unsavedChangesDuplicate": "Имате несачуване промене. Да ли желите наставити са дуплицирањем?",
"untitled": "Без наслова",
@@ -373,4 +377,4 @@
"viewingVersions": "Преглед верзија за {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Преглед верзије за глобални {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Уже активирован",
"alreadyLoggedIn": "Уже вошли в систему",
"apiKey": "API ключ",
"authenticated": "Аутентифицирован",
"backToLogin": "Вернуться к входу",
"beginCreateFirstUser": "Чтобы начать - создайте первого пользователя.",
"changePassword": "Сменить пароль",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Удалено {{count}} {{label}} успешно.",
"deletedSuccessfully": "Удален успешно.",
"deleting": "Удаление...",
"depth": "Глубина",
"descending": "Уменьшение",
"deselectAllRows": "Снять выделение со всех строк",
"document": "Документ",
@@ -195,6 +197,7 @@
"error": "Ошибка",
"errors": "Ошибки",
"fallbackToDefaultLocale": "Возврат к локали по умолчанию",
"false": "Ложь",
"filter": "Фильтр",
"filterWhere": "Где фильтровать",
"filters": "Фильтры",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} успешно продублирован.",
"thisLanguage": "Русский",
"titleDeleted": "{{label}} {{title}} успешно удалено.",
"true": "Правда",
"unauthorized": "Нет доступа",
"unsavedChangesDuplicate": "У вас есть несохраненные изменения. Вы хотите продолжить дублирование?",
"untitled": "Без названия",
@@ -373,4 +377,4 @@
"viewingVersions": "Просмотр версий для {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "`Просмотр версии для глобальной Коллекции {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Redan aktiverad",
"alreadyLoggedIn": "Redan inloggad",
"apiKey": "API Nyckel",
"authenticated": "Autentiserad",
"backToLogin": "Tillbaka till inloggningen",
"beginCreateFirstUser": "För att börja, skapa din första användare.",
"changePassword": "Byt Lösenord",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Raderade {{count}} {{label}} framgångsrikt.",
"deletedSuccessfully": "Togs bort framgångsrikt.",
"deleting": "Tar bort...",
"depth": "Djup",
"descending": "Fallande",
"deselectAllRows": "Avmarkera alla rader",
"document": "Dokument",
@@ -195,6 +197,7 @@
"error": "Fel",
"errors": "Fel",
"fallbackToDefaultLocale": "Återgång till standardlokalspråk",
"false": "Falskt",
"filter": "Filter",
"filterWhere": "Filtrera {{label}} där",
"filters": "Filter",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} duplicerades framgångsrikt.",
"thisLanguage": "Svenska",
"titleDeleted": "{{label}} \"{{title}}\" togs bort framgångsrikt.",
"true": "Sann",
"unauthorized": "Obehörig",
"unsavedChangesDuplicate": "Du har osparade ändringar. Vill du fortsätta att duplicera?",
"untitled": "Namnlös",
@@ -373,4 +377,4 @@
"viewingVersions": "Visar versioner för {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Visa versioner för den globala {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "เปิดใช้งานแล้ว",
"alreadyLoggedIn": "ลงชื่อเข้าใช้แล้ว",
"apiKey": "API Key",
"authenticated": "ได้รับการตรวจสอบแล้ว",
"backToLogin": "กลับไปหน้าเข้าสู่ระบบ",
"beginCreateFirstUser": "สร้างผู้ใช้แรกเพื่อเริ่มใช้งาน",
"changePassword": "เปลี่ยนรหัสผ่าน",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Deleted {{count}} {{label}} successfully.",
"deletedSuccessfully": "ลบสำเร็จ",
"deleting": "กำลังลบ...",
"depth": "ความลึก",
"descending": "มากไปน้อย",
"deselectAllRows": "ยกเลิกการเลือกทุกแถว",
"document": "เอกสาร",
@@ -195,6 +197,7 @@
"error": "ข้อผิดพลาด",
"errors": "ข้อผิดพลาด",
"fallbackToDefaultLocale": "สำรองไปยังตำแหน่งที่ตั้งเริ่มต้น",
"false": "เท็จ",
"filter": "กรอง",
"filterWhere": "กรอง {{label}} เฉพาะ",
"filters": "กรอง",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "สำเนา {{label}} สำเร็จ",
"thisLanguage": "ไทย",
"titleDeleted": "ลบ {{label}} \"{{title}}\" สำเร็จ",
"true": "จริง",
"unauthorized": "ไม่ได้รับอนุญาต",
"unsavedChangesDuplicate": "คุณมีการแก้ไขที่ยังไม่ถูกบันทึก คุณต้องการทำสำเนาต่อหรือไม่?",
"untitled": "ไม่มีชื่อ",
@@ -373,4 +377,4 @@
"viewingVersions": "กำลังดูเวอร์ชันของ {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "กำลังดูเวอร์ชันของ global {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Hesap zaten etkinleştirildi",
"alreadyLoggedIn": "Hesaba zaten giriş yapıldı",
"apiKey": "API Anahtarı",
"authenticated": "Doğrulandı",
"backToLogin": "Giriş ekranına geri dön",
"beginCreateFirstUser": "Başlamak için ilk kullanıcı hesabını oluşturun.",
"changePassword": "Parolayı Değiştir",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "{{count}} {{label}} başarıyla silindi.",
"deletedSuccessfully": "Başarıyla silindi.",
"deleting": "Siliniyor...",
"depth": "Derinlik",
"descending": "Azalan",
"deselectAllRows": "Tüm satırların seçimini kaldır",
"document": "Belge",
@@ -195,6 +197,7 @@
"error": "Hata",
"errors": "Hatalar",
"fallbackToDefaultLocale": "Varsayılan yerel ayara geri dönme",
"false": "Yanlış",
"filter": "Filtrele",
"filterWhere": "{{label}} filtrele:",
"filters": "Filtreler",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} başarıyla kopyalandı.",
"thisLanguage": "Türkçe",
"titleDeleted": "{{label}} {{title}} başarıyla silindi.",
"true": "Doğru",
"unauthorized": "Yetkisiz",
"unsavedChangesDuplicate": "Kaydedilmemiş değişiklikler var. Çoğaltma işlemine devam etmek istiyor musunuz?",
"untitled": "Başlıksız",
@@ -373,4 +377,4 @@
"viewingVersions": "{{entityLabel}} {{documentTitle}} için sürümler gösteriliyor",
"viewingVersionsGlobal": "`Global {{entityLabel}} için sürümler gösteriliyor"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Вже активований",
"alreadyLoggedIn": "Вже увійшли в систему",
"apiKey": "API ключ",
"authenticated": "Автентифікований",
"backToLogin": "Повернутися до входу",
"beginCreateFirstUser": "Щоб розпочати - створість першого користувача",
"changePassword": "Змінити пароль",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Успішно видалено {{count}} {{label}}.",
"deletedSuccessfully": "Успішно видалено.",
"deleting": "Видалення...",
"depth": "Глибина",
"descending": "В порядку спадання",
"deselectAllRows": "Скасувати вибір всіх рядків",
"document": "Документ",
@@ -195,6 +197,7 @@
"error": "Помилка",
"errors": "Помилки",
"fallbackToDefaultLocale": "Відновлення локалі за замовчуванням",
"false": "Неправда",
"filter": "Фільтрувати",
"filterWhere": "Де фільтрувати {{label}}",
"filters": "Фільтри",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} успішно продубльовано.",
"thisLanguage": "Українська",
"titleDeleted": "{{label}} \"{{title}}\" успішно видалено.",
"true": "Правда",
"unauthorized": "Немає доступу",
"unsavedChangesDuplicate": "Ви маєте не збережені зміни. Чи бажаєте ви продовжити дублювання?",
"untitled": "Без назви",
@@ -373,4 +377,4 @@
"viewingVersions": "Огляд версій для {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "Огляд версій для глобальної колекції {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "Đã được kích hoạt",
"alreadyLoggedIn": "Đã đăng nhập",
"apiKey": "API Key",
"authenticated": "Đã xác thực",
"backToLogin": "Quay lại đăng nhập.",
"beginCreateFirstUser": "Để bắt đầu, hãy tạo người dùng đầu tiên.",
"changePassword": "Đổi mật khẩu",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "Đã xóa thành công {{count}} {{label}}.",
"deletedSuccessfully": "Đã xoá thành công.",
"deleting": "Đang xóa...",
"depth": "Độ sâu",
"descending": "Xếp theo thứ tự giảm dần",
"deselectAllRows": "Bỏ chọn tất cả các hàng",
"document": "Tài liệu",
@@ -195,6 +197,7 @@
"error": "Lỗi",
"errors": "Lỗi",
"fallbackToDefaultLocale": "Ngôn ngữ mặc định",
"false": "Sai",
"filter": "Lọc",
"filterWhere": "Lọc {{label}} với điều kiện:",
"filters": "Bộ lọc",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "{{label}} đã được sao chép thành công.",
"thisLanguage": "Vietnamese (Tiếng Việt)",
"titleDeleted": "{{label}} {{title}} đã được xóa thành công.",
"true": "Thật",
"unauthorized": "Không có quyền truy cập.",
"unsavedChangesDuplicate": "Bạn chưa lưu các thay đổi. Bạn có muốn tiếp tục tạo bản sao?",
"untitled": "Chưa có tiêu đề",
@@ -373,4 +377,4 @@
"viewingVersions": "Xem những phiên bản của {{entityLabel}} {{documentTitle}}",
"viewingVersionsGlobal": "`Xem những phiên bản toàn thể (global) của {{entityLabel}}"
}
}
}

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "已經啟用了",
"alreadyLoggedIn": "已經登入了",
"apiKey": "API金鑰",
"authenticated": "經過身份驗證的",
"backToLogin": "返回登入頁面",
"beginCreateFirstUser": "首先,請建立您的第一個使用者。",
"changePassword": "更改密碼",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "已成功刪除 {{count}} 個 {{label}}。",
"deletedSuccessfully": "已成功刪除。",
"deleting": "刪除中...",
"depth": "深度",
"descending": "降冪",
"deselectAllRows": "取消選擇全部",
"document": "文件",
@@ -195,6 +197,7 @@
"error": "錯誤",
"errors": "錯誤",
"fallbackToDefaultLocale": "回到預設的語言",
"false": "假的",
"filter": "過濾器",
"filterWhere": "過濾{{label}}",
"filters": "過濾器",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "成功複製{{label}}",
"thisLanguage": "中文 (繁體)",
"titleDeleted": "{{label}} \"{{title}}\"已被成功刪除。",
"true": "真實",
"unauthorized": "未經授權",
"unsavedChangesDuplicate": "您有還沒儲存的修改,確定要繼續複製嗎?",
"untitled": "無標題",

View File

@@ -6,6 +6,7 @@
"alreadyActivated": "已经激活了",
"alreadyLoggedIn": "已经登入了",
"apiKey": "API密钥",
"authenticated": "已验证",
"backToLogin": "回到登录页面",
"beginCreateFirstUser": "首先,请创建您的第一个用户。",
"changePassword": "更改密码",
@@ -177,6 +178,7 @@
"deletedCountSuccessfully": "已成功删除 {{count}} {{label}}。",
"deletedSuccessfully": "已成功删除。",
"deleting": "删除中...",
"depth": "深度",
"descending": "降序",
"deselectAllRows": "取消选择所有行",
"document": "文件",
@@ -195,6 +197,7 @@
"error": "错误",
"errors": "错误",
"fallbackToDefaultLocale": "回退到默认语言环境",
"false": "假的",
"filter": "过滤器",
"filterWhere": "过滤{{label}}",
"filters": "过滤器",
@@ -250,6 +253,7 @@
"successfullyDuplicated": "成功复制{{label}}",
"thisLanguage": "中文 (简体)",
"titleDeleted": "{{label}} \"{{title}}\"已被成功删除。",
"true": "真实",
"unauthorized": "未经授权",
"unsavedChangesDuplicate": "您有未保存的修改。您确定要继续重复吗?",
"untitled": "无标题",
@@ -373,4 +377,4 @@
"viewingVersions": "正在查看{{entityLabel}} {{documentTitle}}的版本",
"viewingVersionsGlobal": "正在查看全局{{entityLabel}}的版本"
}
}
}

View File

@@ -18,6 +18,7 @@ export const statuses = [
const baseVersionFields: Field[] = [
{
name: '_status',
type: 'select',
admin: {
components: {
Field: () => null,
@@ -25,9 +26,9 @@ const baseVersionFields: Field[] = [
disableBulkEdit: true,
},
defaultValue: 'draft',
index: true,
label: labels['version:status'],
options: statuses,
type: 'select',
},
]

View File

@@ -0,0 +1,37 @@
/** @type {import('prettier').Config} */
module.exports = {
extends: ['@payloadcms'],
overrides: [
{
extends: ['plugin:@typescript-eslint/disable-type-checked'],
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
},
{
files: ['package.json', 'tsconfig.json'],
rules: {
'perfectionist/sort-array-includes': 'off',
'perfectionist/sort-astro-attributes': 'off',
'perfectionist/sort-classes': 'off',
'perfectionist/sort-enums': 'off',
'perfectionist/sort-exports': 'off',
'perfectionist/sort-imports': 'off',
'perfectionist/sort-interfaces': 'off',
'perfectionist/sort-jsx-props': 'off',
'perfectionist/sort-keys': 'off',
'perfectionist/sort-maps': 'off',
'perfectionist/sort-named-exports': 'off',
'perfectionist/sort-named-imports': 'off',
'perfectionist/sort-object-types': 'off',
'perfectionist/sort-objects': 'off',
'perfectionist/sort-svelte-attributes': 'off',
'perfectionist/sort-union-types': 'off',
'perfectionist/sort-vue-attributes': 'off',
},
},
],
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
},
root: true,
}

View File

@@ -0,0 +1,7 @@
node_modules
.env
dist
demo/uploads
build
.DS_Store
package-lock.json

View File

@@ -0,0 +1,15 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": "inline",
"jsc": {
"target": "esnext",
"parser": {
"syntax": "typescript",
"tsx": true,
"dts": true
}
},
"module": {
"type": "commonjs"
}
}

View File

@@ -0,0 +1,35 @@
# Payload Relationship ObjectID Plugin
This plugin automatically enables all Payload `relationship` and `upload` field types to be stored as `ObjectID`s in MongoDB.
Minimum required version of Payload: `1.9.5`
## What it does
It injects a `beforeChange` field hook into each `relationship` and `upload` field, which converts string-based IDs to `ObjectID`s immediately prior to storage.
#### Usage
Simply import and install the plugin to make it work:
```ts
import { relationshipsAsObjectID } from '@payloadcms/plugin-relationship-object-ids'
import { buildConfig } from 'payload/config'
export default buildConfig({
// your config here
plugins: [
// Call the plugin within your `plugins` array
relationshipsAsObjectID()
]
})
```
### Migration
Note - this plugin will only store newly created or resaved documents' relations as `ObjectID`s. It will not modify any of your existing data. If you'd like to convert existing data into an `ObjectID` format, you should write a migration script to loop over all documents in your database and then simply resave each one.
### Support
If you need help with this plugin, [join our Discord](https://t.co/30APlsQUPB) and we'd be happy to give you a hand.

View File

@@ -0,0 +1,40 @@
{
"name": "@payloadcms/plugin-relationship-object-ids",
"version": "0.0.4",
"homepage:": "https://payloadcms.com",
"repository": {
"type": "git",
"url": "https://github.com/payloadcms/payload.git",
"directory": "packages/plugin-relationship-object-ids"
},
"description": "A Payload plugin to store all relationship IDs as ObjectIDs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types",
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"lint": "eslint src",
"lint:fix": "eslint --fix --ext .ts,.tsx src",
"clean": "rimraf {dist,*.tsbuildinfo}",
"prepublishOnly": "pnpm clean && pnpm build"
},
"author": "dev@payloadcms.com",
"license": "MIT",
"peerDependencies": {
"payload": "workspace:*",
"mongoose": "6.12.3"
},
"files": [
"dist",
"*.js",
"*.d.ts",
"!.prettierrc.js"
],
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"payload": "workspace:*",
"webpack": "^5.78.0"
}
}

View File

@@ -0,0 +1,94 @@
import type { CollectionConfig, FieldHook, RelationshipField, UploadField } from 'payload/types'
import mongoose from 'mongoose'
import type { Config } from 'payload/config'
import { fieldAffectsData } from 'payload/dist/fields/config/types'
const convertValue = ({
value,
relatedCollection,
}: {
value: string | number
relatedCollection: CollectionConfig
}): mongoose.Types.ObjectId | string | number => {
const customIDField = relatedCollection.fields.find(
(field) => fieldAffectsData(field) && field.name === 'id',
)
if (!customIDField) return new mongoose.Types.ObjectId(value)
return value
}
interface RelationObject {
value: string | number
relationTo: string
}
function isValidRelationObject(value: unknown): value is RelationObject {
return typeof value === 'object' && value !== null && 'relationTo' in value && 'value' in value
}
export const getBeforeChangeHook =
({ config, field }: { config: Config; field: RelationshipField | UploadField }): FieldHook =>
({ value }) => {
let relatedCollection: CollectionConfig | undefined
const hasManyRelations = typeof field.relationTo !== 'string'
if (!hasManyRelations) {
relatedCollection = config.collections?.find(({ slug }) => slug === field.relationTo)
}
if (Array.isArray(value)) {
return value.map((val) => {
// Handle has many
if (relatedCollection && val && (typeof val === 'string' || typeof val === 'number')) {
return convertValue({
relatedCollection,
value: val,
})
}
// Handle has many - polymorphic
if (isValidRelationObject(val)) {
const relatedCollectionForSingleValue = config.collections?.find(
({ slug }) => slug === val.relationTo,
)
if (relatedCollectionForSingleValue) {
return {
relationTo: val.relationTo,
value: convertValue({
relatedCollection: relatedCollectionForSingleValue,
value: val.value,
}),
}
}
}
return val
})
}
// Handle has one - polymorphic
if (isValidRelationObject(value)) {
relatedCollection = config.collections?.find(({ slug }) => slug === value.relationTo)
if (relatedCollection) {
return {
relationTo: value.relationTo,
value: convertValue({ relatedCollection, value: value.value }),
}
}
}
// Handle has one
if (relatedCollection && value && (typeof value === 'string' || typeof value === 'number')) {
return convertValue({
relatedCollection,
value,
})
}
return value
}

View File

@@ -0,0 +1,86 @@
import type { Config } from 'payload/config'
import type { Field } from 'payload/types'
import { extendWebpackConfig } from './webpack'
import { getBeforeChangeHook } from './hooks/beforeChange'
const traverseFields = ({ config, fields }: { fields: Field[]; config: Config }): Field[] => {
return fields.map((field) => {
if (field.type === 'relationship' || field.type === 'upload') {
return {
...field,
hooks: {
...(field.hooks || {}),
beforeChange: [
...(field.hooks?.beforeChange || []),
getBeforeChangeHook({ config, field }),
],
},
}
}
if ('fields' in field) {
return {
...field,
fields: traverseFields({ config, fields: field.fields }),
}
}
if (field.type === 'tabs') {
return {
...field,
tabs: field.tabs.map((tab) => {
return {
...tab,
fields: traverseFields({ config, fields: tab.fields }),
}
}),
}
}
if (field.type === 'blocks') {
return {
...field,
blocks: field.blocks.map((block) => {
return {
...block,
fields: traverseFields({ config, fields: block.fields }),
}
}),
}
}
return field
})
}
export const relationshipsAsObjectID =
(/** Possible args in the future */) =>
(config: Config): Config => {
const webpack = extendWebpackConfig(config)
return {
...config,
admin: {
...(config.admin || {}),
webpack,
},
collections: (config.collections || []).map((collection) => {
return {
...collection,
fields: traverseFields({
config,
fields: collection.fields,
}),
}
}),
globals: (config.globals || []).map((global) => {
return {
...global,
fields: traverseFields({
config,
fields: global.fields,
}),
}
}),
}
}

View File

@@ -0,0 +1 @@
export default 'file-stub'

View File

@@ -0,0 +1,23 @@
import type { Config } from 'payload/config'
import path from 'path'
import type { Configuration as WebpackConfig } from 'webpack'
export const extendWebpackConfig =
(config: Config): ((webpackConfig: WebpackConfig) => WebpackConfig) =>
(webpackConfig) => {
const existingWebpackConfig =
typeof config.admin?.webpack === 'function'
? config.admin.webpack(webpackConfig)
: webpackConfig
return {
...existingWebpackConfig,
resolve: {
...(existingWebpackConfig.resolve || {}),
alias: {
...(existingWebpackConfig.resolve?.alias ? existingWebpackConfig.resolve.alias : {}),
mongoose: path.resolve(__dirname, './mocks/fileStub.js'),
},
},
}
}

View File

@@ -0,0 +1,24 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true, // Make sure typescript knows that this module depends on their references
"noEmit": false /* Do not emit outputs. */,
"emitDeclarationOnly": true,
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
"rootDir": "./src" /* Specify the root folder within your source files. */
},
"exclude": [
"dist",
"build",
"tests",
"test",
"node_modules",
".eslintrc.js",
"src/**/*.spec.js",
"src/**/*.spec.jsx",
"src/**/*.spec.ts",
"src/**/*.spec.tsx"
],
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
"references": [{ "path": "../payload" }]
}

View File

@@ -1,6 +1,6 @@
{
"name": "@payloadcms/richtext-lexical",
"version": "0.9.3",
"version": "0.10.0",
"description": "The officially supported Lexical richtext adapter for Payload",
"repository": {
"type": "git",

View File

@@ -1,4 +1,4 @@
import type { Block, BlockField, FieldWithRichTextRequiredEditor } from 'payload/types'
import type { Block, BlockField, Field } from 'payload/types'
import { baseBlockFields, sanitizeFields } from 'payload/config'
import { fieldsToJSONSchema, formatLabels, getTranslation } from 'payload/utilities'
@@ -12,12 +12,8 @@ import { INSERT_BLOCK_COMMAND } from './plugin/commands'
import { blockPopulationPromiseHOC } from './populationPromise'
import { blockValidationHOC } from './validate'
export type LexicalBlock = Omit<Block, 'fields'> & {
fields: FieldWithRichTextRequiredEditor[]
}
export type BlocksFeatureProps = {
blocks: LexicalBlock[]
blocks: Block[]
}
export const BlocksFeature = (props?: BlocksFeatureProps): FeatureProvider => {
@@ -26,9 +22,7 @@ export const BlocksFeature = (props?: BlocksFeatureProps): FeatureProvider => {
props.blocks = props.blocks.map((block) => {
const blockCopy = cloneDeep(block)
blockCopy.fields = blockCopy.fields.concat(
baseBlockFields as FieldWithRichTextRequiredEditor[],
)
blockCopy.fields = blockCopy.fields.concat(baseBlockFields)
blockCopy.labels = !blockCopy.labels ? formatLabels(blockCopy.slug) : blockCopy.labels
return blockCopy
})

View File

@@ -21,6 +21,7 @@ export const getBaseFields = (
config: Config,
enabledCollections: false | string[],
disabledCollections: false | string[],
maxDepth?: number,
): Field[] => {
let enabledRelations: string[]
@@ -48,12 +49,13 @@ export const getBaseFields = (
const baseFields = [
{
name: 'text',
type: 'text',
label: translations['fields:textToDisplay'],
required: true,
type: 'text',
},
{
name: 'fields',
type: 'group',
admin: {
style: {
borderBottom: 0,
@@ -65,6 +67,7 @@ export const getBaseFields = (
fields: [
{
name: 'linkType',
type: 'radio',
admin: {
description: translations['fields:chooseBetweenCustomTextOrDocument'],
},
@@ -77,13 +80,12 @@ export const getBaseFields = (
},
],
required: true,
type: 'radio',
},
{
name: 'url',
type: 'text',
label: translations['fields:enterURL'],
required: true,
type: 'text',
validate: (value: string) => {
if (value && !validateUrl(value)) {
return 'Invalid URL'
@@ -91,7 +93,6 @@ export const getBaseFields = (
},
},
] as Field[],
type: 'group',
},
]
@@ -113,6 +114,7 @@ export const getBaseFields = (
},
},
// when admin.hidden is a function we need to dynamically call hidden with the user to know if the collection should be shown
type: 'relationship',
filterOptions:
!enabledCollections && !disabledCollections
? ({ relationTo, user }) => {
@@ -123,16 +125,16 @@ export const getBaseFields = (
}
: null,
label: translations['fields:chooseDocumentToLink'],
maxDepth,
relationTo: enabledRelations,
required: true,
type: 'relationship',
})
}
baseFields[1].fields.push({
name: 'newTab',
label: translations['fields:openInNewTab'],
type: 'checkbox',
label: translations['fields:openInNewTab'],
})
return baseFields as Field[]

View File

@@ -1,6 +1,6 @@
import type { i18n } from 'i18next'
import type { SanitizedConfig } from 'payload/config'
import type { FieldWithRichTextRequiredEditor } from 'payload/types'
import type { Field } from 'payload/types'
import { $findMatchingParent } from '@lexical/utils'
import { $getSelection, $isRangeSelection } from 'lexical'
@@ -46,12 +46,13 @@ export type LinkFeatureProps = ExclusiveLinkCollectionsProps & {
* displayed in the link editor drawer.
*/
fields?:
| ((args: {
config: SanitizedConfig
defaultFields: FieldWithRichTextRequiredEditor[]
i18n: i18n
}) => FieldWithRichTextRequiredEditor[])
| FieldWithRichTextRequiredEditor[]
| ((args: { config: SanitizedConfig; defaultFields: Field[]; i18n: i18n }) => Field[])
| Field[]
/**
* Sets a maximum population depth for the internal doc default field of link, regardless of the remaining depth when the field is reached.
* This behaves exactly like the maxDepth properties of relationship and upload fields.
*/
maxDepth?: number
}
export const LinkFeature = (props: LinkFeatureProps): FeatureProvider => {

View File

@@ -45,6 +45,7 @@ export function LinkEditor({
disabledCollections,
enabledCollections,
fields: customFieldSchema,
maxDepth,
}: { anchorElem: HTMLElement } & LinkFeatureProps): JSX.Element {
const [editor] = useLexicalComposerContext()
@@ -71,6 +72,7 @@ export function LinkEditor({
i18n,
enabledCollections,
disabledCollections,
maxDepth,
)
// Sanitize custom fields here
const validRelationships = config.collections.map((c) => c.slug) || []

View File

@@ -15,8 +15,14 @@ export function transformExtraFields(
i18n: i18n,
enabledCollections?: false | string[],
disabledCollections?: false | string[],
maxDepth?: number,
): Field[] {
const baseFields: Field[] = getBaseFields(config, enabledCollections, disabledCollections)
const baseFields: Field[] = getBaseFields(
config,
enabledCollections,
disabledCollections,
maxDepth,
)
const fields =
typeof customFieldSchema === 'function'

View File

@@ -3,9 +3,9 @@ import type { FeatureProvider } from '../types'
import { SlashMenuOption } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
import { INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND } from './drawer/commands'
import { RelationshipNode } from './nodes/RelationshipNode'
import { relationshipPopulationPromise } from './populationPromise'
import { relationshipPopulationPromiseHOC } from './populationPromise'
export type RelationshipFeatureProps =
export type ExclusiveRelationshipFeatureProps =
| {
/**
* The collections that should be disabled. Overrides the `enableRichTextRelationship` property in the collection config.
@@ -27,15 +27,23 @@ export type RelationshipFeatureProps =
enabledCollections?: string[]
}
export type RelationshipFeatureProps = ExclusiveRelationshipFeatureProps & {
/**
* Sets a maximum population depth for this relationship, regardless of the remaining depth when the respective field is reached.
* This behaves exactly like the maxDepth properties of relationship and upload fields.
*/
maxDepth?: number
}
export const RelationshipFeature = (props?: RelationshipFeatureProps): FeatureProvider => {
return {
feature: () => {
return {
nodes: [
{
node: RelationshipNode,
populationPromises: [relationshipPopulationPromise],
type: RelationshipNode.getType(),
node: RelationshipNode,
populationPromises: [relationshipPopulationPromiseHOC(props)],
// TODO: Add validation similar to upload
},
],
@@ -55,7 +63,7 @@ export const RelationshipFeature = (props?: RelationshipFeatureProps): FeaturePr
position: 'normal',
},
],
props: props,
props,
slashMenu: {
options: [
{

View File

@@ -1,41 +1,50 @@
import type { PopulationPromise } from '../types'
import type { RelationshipFeatureProps } from './index'
import type { SerializedRelationshipNode } from './nodes/RelationshipNode'
import { populate } from '../../../populate/populate'
export const relationshipPopulationPromise: PopulationPromise<SerializedRelationshipNode> = ({
currentDepth,
depth,
draft,
field,
node,
overrideAccess,
req,
showHiddenFields,
}) => {
const promises: Promise<void>[] = []
export const relationshipPopulationPromiseHOC = (
props: RelationshipFeatureProps,
): PopulationPromise<SerializedRelationshipNode> => {
const relationshipPopulationPromise: PopulationPromise<SerializedRelationshipNode> = ({
currentDepth,
depth,
draft,
field,
node,
overrideAccess,
req,
showHiddenFields,
}) => {
const promises: Promise<void>[] = []
if (node?.value?.id) {
const collection = req.payload.collections[node?.relationTo]
if (node?.value?.id) {
const collection = req.payload.collections[node?.relationTo]
if (collection) {
promises.push(
populate({
id: node.value.id,
collection,
currentDepth,
data: node,
depth,
draft,
field,
key: 'value',
overrideAccess,
req,
showHiddenFields,
}),
)
if (collection) {
const populateDepth =
props?.maxDepth !== undefined && props?.maxDepth < depth ? props?.maxDepth : depth
promises.push(
populate({
id: node.value.id,
collection,
currentDepth,
data: node,
depth: populateDepth,
draft,
field,
key: 'value',
overrideAccess,
req,
showHiddenFields,
}),
)
}
}
}
return promises
return promises
}
return relationshipPopulationPromise
}

View File

@@ -1,4 +1,4 @@
import type { FieldWithRichTextRequiredEditor } from 'payload/types'
import type { Field } from 'payload/types'
import payload from 'payload'
@@ -15,9 +15,14 @@ import { uploadValidation } from './validate'
export type UploadFeatureProps = {
collections: {
[collection: string]: {
fields: FieldWithRichTextRequiredEditor[]
fields: Field[]
}
}
/**
* Sets a maximum population depth for this upload (not the fields for this upload), regardless of the remaining depth when the respective field is reached.
* This behaves exactly like the maxDepth properties of relationship and upload fields.
*/
maxDepth?: number
}
/**

View File

@@ -29,13 +29,16 @@ export const uploadPopulationPromiseHOC = (
const collection = req.payload.collections[node?.relationTo]
if (collection) {
const populateDepth =
props?.maxDepth !== undefined && props?.maxDepth < depth ? props?.maxDepth : depth
promises.push(
populate({
id: node?.value?.id,
collection,
currentDepth,
data: node,
depth,
depth: populateDepth,
draft: false,
field,
key: 'value',

View File

@@ -220,7 +220,7 @@ export function lexicalEditor(props?: LexicalEditorProps): LexicalRichTextAdapte
}
export { BlockQuoteFeature } from './field/features/BlockQuote'
export { BlocksFeature, type BlocksFeatureProps, type LexicalBlock } from './field/features/Blocks'
export { BlocksFeature, type BlocksFeatureProps } from './field/features/Blocks'
export {
$createBlockNode,
$isBlockNode,
@@ -249,6 +249,7 @@ export {
export { ParagraphFeature } from './field/features/Paragraph'
export { RelationshipFeature } from './field/features/Relationship'
export {
$createRelationshipNode,
$isRelationshipNode,
@@ -283,11 +284,11 @@ export { defaultHTMLConverters } from './field/features/converters/html/converte
export type { HTMLConverter } from './field/features/converters/html/converter/types'
export { consolidateHTMLConverters } from './field/features/converters/html/field'
export { lexicalHTML } from './field/features/converters/html/field'
export { TestRecorderFeature } from './field/features/debug/TestRecorder'
export { TreeViewFeature } from './field/features/debug/TreeView'
export { TreeViewFeature } from './field/features/debug/TreeView'
export { BoldTextFeature } from './field/features/format/Bold'
export { InlineCodeTextFeature } from './field/features/format/InlineCode'
export { ItalicTextFeature } from './field/features/format/Italic'
export { SectionWithEntries as FormatSectionWithEntries } from './field/features/format/common/floatingSelectToolbarSection'
@@ -295,6 +296,7 @@ export { StrikethroughTextFeature } from './field/features/format/strikethrough'
export { SubscriptTextFeature } from './field/features/format/subscript'
export { SuperscriptTextFeature } from './field/features/format/superscript'
export { UnderlineTextFeature } from './field/features/format/underline'
export { HorizontalRuleFeature } from './field/features/horizontalrule'
export { IndentFeature } from './field/features/indent'
export { CheckListFeature } from './field/features/lists/CheckList'
export { OrderedListFeature } from './field/features/lists/OrderedList'

7147
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,4 @@
import type { ArrayField } from '../../../../packages/payload/src/fields/config/types'
import type { LexicalBlock } from '../../../../packages/richtext-lexical/src'
import type { ArrayField, Block } from '../../../../packages/payload/src/fields/config/types'
import { lexicalEditor } from '../../../../packages/richtext-lexical/src'
import { textFieldsSlug } from '../Text/shared'
@@ -18,7 +17,7 @@ export const BlockColumns = ({ name }: { name: string }): ArrayField => ({
},
],
})
export const ConditionalLayoutBlock: LexicalBlock = {
export const ConditionalLayoutBlock: Block = {
fields: [
{
label: 'Layout',
@@ -62,7 +61,7 @@ export const ConditionalLayoutBlock: LexicalBlock = {
slug: 'conditionalLayout',
}
export const TextBlock: LexicalBlock = {
export const TextBlock: Block = {
fields: [
{
name: 'text',
@@ -73,7 +72,7 @@ export const TextBlock: LexicalBlock = {
slug: 'text',
}
export const RadioButtonsBlock: LexicalBlock = {
export const RadioButtonsBlock: Block = {
interfaceName: 'LexicalBlocksRadioButtonsBlock',
fields: [
{
@@ -98,7 +97,7 @@ export const RadioButtonsBlock: LexicalBlock = {
slug: 'radioButtons',
}
export const RichTextBlock: LexicalBlock = {
export const RichTextBlock: Block = {
fields: [
{
name: 'richText',
@@ -109,7 +108,7 @@ export const RichTextBlock: LexicalBlock = {
slug: 'richText',
}
export const UploadAndRichTextBlock: LexicalBlock = {
export const UploadAndRichTextBlock: Block = {
fields: [
{
name: 'upload',
@@ -126,7 +125,7 @@ export const UploadAndRichTextBlock: LexicalBlock = {
slug: 'uploadAndRichText',
}
export const RelationshipHasManyBlock: LexicalBlock = {
export const RelationshipHasManyBlock: Block = {
fields: [
{
name: 'rel',
@@ -138,7 +137,7 @@ export const RelationshipHasManyBlock: LexicalBlock = {
],
slug: 'relationshipHasManyBlock',
}
export const RelationshipBlock: LexicalBlock = {
export const RelationshipBlock: Block = {
fields: [
{
name: 'rel',
@@ -150,7 +149,7 @@ export const RelationshipBlock: LexicalBlock = {
slug: 'relationshipBlock',
}
export const SelectFieldBlock: LexicalBlock = {
export const SelectFieldBlock: Block = {
fields: [
{
name: 'select',
@@ -182,7 +181,7 @@ export const SelectFieldBlock: LexicalBlock = {
slug: 'select',
}
export const SubBlockBlock: LexicalBlock = {
export const SubBlockBlock: Block = {
slug: 'subBlock',
fields: [
{

View File

@@ -1,8 +1,8 @@
import type { LexicalBlock } from '../../../../packages/richtext-lexical/src'
import type { Block } from 'payload/types'
import { lexicalEditor } from '../../../../packages/richtext-lexical/src'
export const TextBlock: LexicalBlock = {
export const TextBlock: Block = {
fields: [
{
name: 'text',
@@ -13,7 +13,7 @@ export const TextBlock: LexicalBlock = {
slug: 'text',
}
export const UploadAndRichTextBlock: LexicalBlock = {
export const UploadAndRichTextBlock: Block = {
fields: [
{
name: 'upload',
@@ -30,7 +30,7 @@ export const UploadAndRichTextBlock: LexicalBlock = {
slug: 'uploadAndRichText',
}
export const RelationshipBlock: LexicalBlock = {
export const RelationshipBlock: Block = {
fields: [
{
name: 'rel',
@@ -42,7 +42,7 @@ export const RelationshipBlock: LexicalBlock = {
slug: 'relationshipBlock',
}
export const SelectFieldBlock: LexicalBlock = {
export const SelectFieldBlock: Block = {
fields: [
{
name: 'select',

View File

@@ -1144,7 +1144,7 @@ describe('fields', () => {
// Fill values and click Confirm
await editLinkModal.locator('#field-text').fill('link text')
await editLinkModal.locator('label[for="field-linkType-custom"]').click()
await editLinkModal.locator('label[for="field-linkType-custom-2"]').click()
await editLinkModal.locator('#field-url').fill('')
await wait(200)
await editLinkModal.locator('button[type="submit"]').click()
@@ -1167,7 +1167,7 @@ describe('fields', () => {
// Fill values and click Confirm
await editLinkModal.locator('#field-text').fill('link text')
await editLinkModal.locator('label[for="field-linkType-custom"]').click()
await editLinkModal.locator('label[for="field-linkType-custom-2"]').click()
await editLinkModal.locator('#field-url').fill('https://payloadcms.com')
await wait(200)
await editLinkModal.locator('button[type="submit"]').click()
@@ -1193,7 +1193,7 @@ describe('fields', () => {
// Fill values and click Confirm
await editLinkModal.locator('#field-text').fill('link text')
await editLinkModal.locator('label[for="field-linkType-internal"]').click()
await editLinkModal.locator('label[for="field-linkType-internal-2"]').click()
await editLinkModal.locator('#field-doc .rs__control').click()
await page.keyboard.type('dev@')
await editLinkModal
@@ -1266,7 +1266,7 @@ describe('fields', () => {
const editLinkModal = page.locator('[id^=drawer_1_rich-text-link-]')
await expect(editLinkModal).toBeVisible()
await editLinkModal.locator('label[for="field-linkType-internal"]').click()
await editLinkModal.locator('label[for="field-linkType-internal-2"]').click()
await editLinkModal.locator('.relationship__wrap .rs__control').click()
const menu = page.locator('.relationship__wrap .rs__menu')

View File

@@ -0,0 +1 @@
uploads

View File

@@ -0,0 +1,129 @@
import path from 'path'
import { relationshipsAsObjectID } from '../../packages/plugin-relationship-object-ids/src'
import { buildConfigWithDefaults } from '../buildConfigWithDefaults'
export default buildConfigWithDefaults({
collections: [
{
slug: 'uploads',
upload: true,
fields: [],
},
{
slug: 'pages',
fields: [
{
name: 'title',
type: 'text',
required: true,
},
],
},
{
slug: 'posts',
fields: [
{
name: 'title',
type: 'text',
required: true,
},
],
},
{
slug: 'relations',
fields: [
{
name: 'hasOne',
type: 'relationship',
relationTo: 'posts',
filterOptions: ({ id }) => ({ id: { not_equals: id } }),
},
{
name: 'hasOnePoly',
type: 'relationship',
relationTo: ['pages', 'posts'],
},
{
name: 'hasMany',
type: 'relationship',
relationTo: 'posts',
hasMany: true,
},
{
name: 'hasManyPoly',
type: 'relationship',
relationTo: ['pages', 'posts'],
hasMany: true,
},
{
name: 'upload',
type: 'upload',
relationTo: 'uploads',
},
],
},
],
plugins: [relationshipsAsObjectID()],
onInit: async (payload) => {
if (payload.db.name === 'mongoose') {
await payload.create({
collection: 'users',
data: {
email: 'dev@payloadcms.com',
password: 'test',
},
})
const page = await payload.create({
collection: 'pages',
data: {
title: 'page',
},
})
const post1 = await payload.create({
collection: 'posts',
data: {
title: 'post 1',
},
})
const post2 = await payload.create({
collection: 'posts',
data: {
title: 'post 2',
},
})
const upload = await payload.create({
collection: 'uploads',
data: {},
filePath: path.resolve(__dirname, './payload-logo.png'),
})
await payload.create({
collection: 'relations',
depth: 0,
data: {
hasOne: post1.id,
hasOnePoly: { relationTo: 'pages', value: page.id },
hasMany: [post1.id, post2.id],
hasManyPoly: [
{ relationTo: 'posts', value: post1.id },
{ relationTo: 'pages', value: page.id },
],
upload: upload.id,
},
})
await payload.create({
collection: 'relations',
depth: 0,
data: {
hasOnePoly: { relationTo: 'pages', value: page.id },
},
})
}
},
})

View File

@@ -0,0 +1,103 @@
/* eslint-disable jest/no-if */
import payload from '../../packages/payload/src'
import { initPayloadTest } from '../helpers/configHelpers'
describe('Relationship Object IDs Plugin', () => {
let relations: any
let posts: any
beforeAll(async () => {
await initPayloadTest({ __dirname, init: { local: true } })
})
it('seeds data accordingly', async () => {
if (payload.db.name === 'mongoose') {
const relationsQuery = await payload.find({
collection: 'relations',
sort: 'createdAt',
})
relations = relationsQuery.docs
const postsQuery = await payload.find({
collection: 'posts',
sort: 'createdAt',
})
posts = postsQuery.docs
expect(relationsQuery.totalDocs).toEqual(2)
expect(postsQuery.totalDocs).toEqual(2)
}
})
it('stores relations as object ids', async () => {
if (payload.db.name === 'mongoose') {
const docs = await payload.db.collections.relations.find()
expect(typeof docs[0].hasOne).toBe('object')
expect(typeof docs[0].hasOnePoly.value).toBe('object')
expect(typeof docs[0].hasMany[0]).toBe('object')
expect(typeof docs[0].hasManyPoly[0].value).toBe('object')
expect(typeof docs[0].upload).toBe('object')
}
})
it('can query by relationship id', async () => {
if (payload.db.name === 'mongoose') {
const { totalDocs } = await payload.find({
collection: 'relations',
where: {
hasOne: {
equals: posts[0].id,
},
},
})
expect(totalDocs).toStrictEqual(1)
}
})
it('populates relations', () => {
if (payload.db.name === 'mongoose') {
const populatedPostTitle =
// eslint-disable-next-line jest/no-if
typeof relations[0].hasOne === 'object' ? relations[0].hasOne.title : undefined
expect(populatedPostTitle).toBeDefined()
const populatedUploadFilename =
typeof relations[0].upload === 'object' ? relations[0].upload.filename : undefined
expect(populatedUploadFilename).toBeDefined()
}
})
it('can query by nested property', async () => {
if (payload.db.name === 'mongoose') {
const { totalDocs } = await payload.find({
collection: 'relations',
where: {
'hasOne.title': {
equals: 'post 1',
},
},
})
expect(totalDocs).toStrictEqual(1)
}
})
it('can query using the "in" operator', async () => {
if (payload.db.name === 'mongoose') {
const { totalDocs } = await payload.find({
collection: 'relations',
where: {
hasMany: {
in: [posts[0].id],
},
},
})
expect(totalDocs).toStrictEqual(1)
}
})
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -42,6 +42,7 @@
{ "path": "./packages/plugin-form-builder" },
{ "path": "./packages/plugin-nested-docs" },
{ "path": "./packages/plugin-redirects" },
{ "path": "./packages/plugin-relationship-object-ids" },
{ "path": "./packages/plugin-search" },
{ "path": "./packages/plugin-seo" },
{ "path": "./packages/plugin-stripe" },