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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/docs/src/components/try-map/langs/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ const pack: Pack = {
bookshelf: 'Bücherregal',
cube_grid: 'Würfelregal',
bookcase: 'Hohes Bücherregal',
shelving_unit: 'Regal',
lamp: 'Stehlampe',
counter: 'Küchenzeile',
sink: 'Spülenschrank',
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/components/try-map/langs/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ const pack: Pack = {
bookshelf: 'Estantería',
cube_grid: 'Estantería de cubos',
bookcase: 'Estantería alta',
shelving_unit: 'Estantería de almacenaje',
lamp: 'Lámpara de pie',
counter: 'Encimera de cocina',
sink: 'Encimera de fregadero',
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/components/try-map/langs/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ const pack: Pack = {
bookshelf: 'Bibliothèque',
cube_grid: 'Étagère à cases',
bookcase: 'Grande bibliothèque',
shelving_unit: 'Rayonnage',
lamp: 'Lampadaire',
counter: 'Plan de travail',
sink: 'Meuble évier',
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/components/try-map/langs/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ const pack: Pack = {
bookshelf: 'Libreria',
cube_grid: 'Scaffale a cubi',
bookcase: 'Libreria alta',
shelving_unit: 'Scaffale',
lamp: 'Lampada da terra',
counter: 'Piano di lavoro',
sink: 'Mobile lavello',
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/components/try-map/langs/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ const pack: Pack = {
bookshelf: 'Книжкова полиця',
cube_grid: 'Стелаж-куб',
bookcase: 'Висока книжкова шафа',
shelving_unit: 'Стелаж',
lamp: 'Підлогова лампа',
counter: 'Кухонна стільниця',
sink: 'Стільниця з мийкою',
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/components/try-map/langs/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ const pack: Pack = {
bookshelf: 'Kệ sách',
cube_grid: 'Hộc lưu trữ',
bookcase: 'Tủ sách cao',
shelving_unit: 'Tủ kệ',
lamp: 'Đèn sàn',
counter: 'Mặt bếp',
sink: 'Mặt chậu rửa',
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/components/try-map/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const MODEL_NAMES: Record<MapModelKey, Two> = {
bookshelf: ['Bookshelf', 'مكتبة كتب'],
cube_grid: ['Cube storage', 'وحدة تخزين مكعبات'],
bookcase: ['Tall bookcase', 'مكتبة طويلة'],
shelving_unit: ['Shelving unit', 'وحدة رفوف'],
lamp: ['Floor lamp', 'مصباح أرضي'],
counter: ['Kitchen counter', 'سطح مطبخ'],
sink: ['Sink counter', 'سطح بحوض'],
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/content/docs/ar/users/location-map.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import clipWebm from '../../../../assets/clips/map-add-tv.webm?url';
4. اكتب جزءًا من الاسم أو المعرّف القصير في **ابحث عن شيء في** الغرفة، ثم اضغط الشيء. يظهر في منتصف الغرفة، محددًا.
5. بطاقته تقول أي شكل حصل عليه ولم: **شكل: تلفزيون، من نوعه** أو **من اسمه**. عندما لا يكون Kept متأكدًا، تقول البطاقة **تخمين** وتظهر **اختر شكلًا**.
6. **تغيير** (أو **اختر شكلًا**) يفتح الأشكال. **مقترح** يأتي أولًا، ثم كل شكل في مجموعته (أثاث، تخزين، على الحائط، إلكترونيات، مطبخ وغسيل، أدوات، نباتات وخارجي، مركبات، سلالم ومناطق)، كلٌّ بصورة. **ابحث عن شكل** يبحث في الأسماء وكلماتها الأخرى بأي من لغات Kept: "fridge"، "Kühlschrank" و"ثلاجة" كلها تجد الثلاجة. بينما تكتب، تظهر التطابقات فقط، والأشكال التي يبدأ اسمها أو كلمتها بما كتبت تأتي أولًا: "ca" يجد Car، Camera وWebcam قبل Tool cart. كلمات بلغتك والإنجليزية تطابق من بدايتها؛ كلمة بلغة أخرى تطابق بمجرد كتابتها كلها. امسح البحث لترى المقترح والمجموعات مجددًا. على الهاتف الأشكال تبقى فوق لوحة المفاتيح وتمرر. اضغط شكلًا لاستخدامه. كل شكل، مع مقاسه وكلماته، في [مكتبة الأشكال](/ar/users/map-shapes/)؛ **ينقصك شكل؟ اطلبه** تحت الأشكال يفتح نموذج GitHub لطلب واحد.
شكلان يأخذان مقاسهما منك: رف **وحدة تخزين مكعبات** له **مكعبات بالعرض** و**مكعبات بالارتفاع** على بطاقته (٢ × ٢ في البداية؛ **اقلبه على جانبه** يضجع ١ × ٤ كـ ٤ × ١)، و**مكتبة طويلة** لها **العرض**، **العمق** و**الارتفاع** بالسنتيمترات (بالبوصات في النظام الإمبراطوري) و**عدد الرفوف** (٨٠ × ٢٨ × ٢٠٢ سم مع ٦ في البداية). ترسم الخريطة كل مكعب وكل رف.
ثلاثة أشكال تأخذ مقاسها منك: رف **وحدة تخزين مكعبات** له **مكعبات بالعرض** و**مكعبات بالارتفاع** على بطاقته (٢ × ٢ في البداية؛ **اقلبه على جانبه** يضجع ١ × ٤ كـ ٤ × ١)، و**مكتبة طويلة** لها **العرض**، **العمق** و**الارتفاع** بالسنتيمترات (بالبوصات في النظام الإمبراطوري) و**عدد الرفوف** (٨٠ × ٢٨ × ٢٠٢ سم مع ٦ في البداية). ترسم الخريطة كل مكعب وكل رف. و**وحدة رفوف** لها المقاسات الثلاثة نفسها و**عدد الرفوف**، رفّان على الأقل (٩٠ × ٥٠ × ١٨٠ سم مع ٤ في البداية): أربع قوائم، والرف السفلي مرفوع عن الأرض والعلوي في مستوى القوائم.
7. اسحب الشيء حيث يقف. الأشياء الصغيرة يمكن أن تقف على مكتب، طاولة، رف أو صندوق. **تدوير** يدوره ربع دورة.
8. اضغط **مُنجز**. الرسالة تعرض **تراجع**. **إلغاء** قبل مُنجز يرمي الجلسة كلها، بعد سؤال.

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/content/docs/ar/users/map-shapes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ShapeLibrary from '../../../../components/shapes/ShapeLibrary.astro';

كل شكل يمكن لـ [خريطة الموقع](/ar/users/location-map/) رسمه، في المجموعات التي يعرضها منتقي الشكل. لكل منها صورته، وحجمه (العرض × العمق × الارتفاع، قبل تدويره) والكلمات التي تجده في **ابحث عن شكل**، أو التي تمنح الشيء شكله من اسمه. هذه الصفحة مبنية من كتالوج الأشكال الخاص بـ Kept، لذا فهي تسرد بالضبط ما يحتويه إصدار Kept لديك.

الأحجام نموذجية، بالسنتيمترات: الشيء يحتفظ بحجم شكله على الخريطة، مهما كان حجمه الحقيقي. عندما تكون **الوحدات** على **إمبراطوري** (الإعدادات → أنا → العرض)، تُظهر الخريطة الأحجام بالأقدام والبوصات وتقبل بطاقة المكتبة البوصات؛ يحفظ Kept السنتيمترات في الحالتين. شكلان يتم تحديد حجمهما من بطاقتهما بدلاً من ذلك: **وحدة تخزين مكعبات** حسب مكعباتها أفقياً وعمودياً (كل مكعب ٣٣ سم، ٣٩ سم عمقاً: ٢ × ٢ هو ٧٧ × ٣٩ × ٧٧ سم، ٤ × ٤ هو ١٤٧ × ٣٩ × ١٤٧ سم)، و **مكتبة طويلة** حسب عرضها وعمقها وارتفاعها ومستوياتها. أحجامها هنا هي التي تبدأ بها. الأثاث ذو المقصورات يأخذ حجمه الخاص: تُرسم مقصوراته بداخله. والخزانة المصنوعة من قالب خزانة تُرسم كأقرب خزانة سيرفر فوق عدد وحداتها، وأجهزتها عند وحداتها.
الأحجام نموذجية، بالسنتيمترات: الشيء يحتفظ بحجم شكله على الخريطة، مهما كان حجمه الحقيقي. عندما تكون **الوحدات** على **إمبراطوري** (الإعدادات → أنا → العرض)، تُظهر الخريطة الأحجام بالأقدام والبوصات وتقبل بطاقة المكتبة ووحدة الرفوف البوصات؛ يحفظ Kept السنتيمترات في الحالتين. ثلاثة أشكال يتم تحديد حجمها من بطاقتها بدلاً من ذلك: **وحدة تخزين مكعبات** حسب مكعباتها أفقياً وعمودياً (كل مكعب ٣٣ سم، ٣٩ سم عمقاً: ٢ × ٢ هو ٧٧ × ٣٩ × ٧٧ سم، ٤ × ٤ هو ١٤٧ × ٣٩ × ١٤٧ سم)، و **مكتبة طويلة** حسب عرضها وعمقها وارتفاعها ومستوياتها، و **وحدة رفوف** حسب عرضها وعمقها وارتفاعها وعدد رفوفها. أحجامها هنا هي التي تبدأ بها. الأثاث ذو المقصورات يأخذ حجمه الخاص: تُرسم مقصوراته بداخله. والخزانة المصنوعة من قالب خزانة تُرسم كأقرب خزانة سيرفر فوق عدد وحداتها، وأجهزتها عند وحداتها.

**شكل مفقود؟** [اطلبه](https://github.com/keptinventory/kept/issues/new?template=shape-request.yml) بحساب GitHub: قل ما هو، وأعطِ حجمه وأضف صورة أو رابطاً. أو [أضفه بنفسك](/ar/developers/add-a-shape/).

Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/content/docs/de/users/location-map.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ dort hinsetzt. Besitzer, Admins und Mitglieder können das.
Wörtern, ist in der
[Formbibliothek](/de/users/map-shapes/); **Fehlt eine Form? Anfragen** unter den Formen öffnet ein
GitHub-Formular, um eine zu bitten.
Zwei Formen nehmen ihre Größe von dir: ein **Würfelregal** hat **Fächer nebeneinander** und
Drei Formen nehmen ihre Größe von dir: ein **Würfelregal** hat **Fächer nebeneinander** und
**Fächer übereinander** auf seiner Karte (2 × 2 am Anfang; **Auf die Seite legen** legt ein
1 × 4 als 4 × 1 hin), und ein **Hohes Bücherregal** hat seine **Breite**, **Tiefe** und
**Höhe** in Zentimetern (Zoll im imperialen System) und seine **Ebenen** (80 × 28 × 202 cm mit 6 am Anfang). Die Karte
zeichnet jedes Fach und jede Ebene.
zeichnet jedes Fach und jede Ebene. Ein **Regal** hat dieselben drei Maße und seine **Regalböden**, mindestens zwei (90 × 50 × 180 cm mit 4 am Anfang): vier Pfosten, der unterste Regalboden etwas über dem Fußboden, der oberste bündig mit den Pfosten.
7. Zieh den Gegenstand dahin, wo er steht. Kleine Dinge können auf einem Schreibtisch, einer
Arbeitsplatte, einem Regal oder einer Kiste stehen. **Drehen** dreht ihn um ein Viertel.
8. Tippe **Erledigt**. Der Toast bietet **Rückgängig**. **Abbrechen** vor Erledigt wirft die
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/content/docs/de/users/map-shapes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ShapeLibrary from '../../../../components/shapes/ShapeLibrary.astro';
Jede Form, die die [Standortkarte](/de/users/location-map/) zeichnen kann, in den Gruppen, wie der Formwähler sie anzeigt.
Jede hat ihr Bild, ihre Größe (Breite × Tiefe × Höhe, bevor sie gedreht wird) und die Wörter, die sie in **Form suchen** finden oder einem Ding aus seinem Namen seine Form geben. Diese Seite wird aus Kepts eigenem Formenkatalog erstellt, daher listet sie genau, was deine Kept-Version hat.

Größen sind typische Angaben, in Zentimetern: Ein Ding behält auf der Karte die Größe seiner Form, egal wie groß es wirklich ist. Mit **Einheiten** auf **Imperial** (Einstellungen → Profil → Anzeige) zeigt die Karte Größen in Fuß und Zoll, und die Karte eines Bücherregals nimmt Zoll an; Kept speichert so oder so Zentimeter. Zwei Formen werden auf ihrer Karte anders dimensioniert: **Würfelregal** nach Würfeln in Breite und Höhe (jeder Würfel 33 cm, 39 cm tief: 2 × 2 sind 77 × 39 × 77 cm, 4 × 4 sind 147 × 39 × 147 cm) und **Hohes Bücherregal** nach Breite, Tiefe, Höhe und Ebenen. Die hier angegebenen Größen sind ihre Startgrößen. Möbel mit Fächern haben ihre eigene Größe: Die Fächer werden darin eingezeichnet. Ein Schrank aus einer Schrankvorlage wird als nächstgrößerer Serverschrank gezeichnet, mit seinen
Größen sind typische Angaben, in Zentimetern: Ein Ding behält auf der Karte die Größe seiner Form, egal wie groß es wirklich ist. Mit **Einheiten** auf **Imperial** (Einstellungen → Profil → Anzeige) zeigt die Karte Größen in Fuß und Zoll, und die Karte eines Bücherregals oder Regals nimmt Zoll an; Kept speichert so oder so Zentimeter. Drei Formen werden auf ihrer Karte anders dimensioniert: **Würfelregal** nach Würfeln in Breite und Höhe (jeder Würfel 33 cm, 39 cm tief: 2 × 2 sind 77 × 39 × 77 cm, 4 × 4 sind 147 × 39 × 147 cm), **Hohes Bücherregal** nach Breite, Tiefe, Höhe und Ebenen und **Regal** nach Breite, Tiefe, Höhe und Regalböden. Die hier angegebenen Größen sind ihre Startgrößen. Möbel mit Fächern haben ihre eigene Größe: Die Fächer werden darin eingezeichnet. Ein Schrank aus einer Schrankvorlage wird als nächstgrößerer Serverschrank gezeichnet, mit seinen
Geräten bei ihren Einheiten.

**Fehlt eine Form?** [Fordere sie an](https://github.com/keptinventory/kept/issues/new?template=shape-request.yml)
Expand Down
11 changes: 8 additions & 3 deletions apps/docs/src/content/docs/developers/add-a-shape.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ The key is stored in a location's layout, so never rename or remove one once it

## A shape sized by its numbers

The cube shelf sized by its grid (`cube_grid`) and the bookcase with levels (`bookcase`) are drawn
from numbers someone sets on the card, not from one size. A node's stored model carries them after
The cube shelf sized by its grid (`cube_grid`), the bookcase with levels (`bookcase`) and the
shelving unit with shelves (`shelving_unit`) are drawn from numbers someone sets on the card, not
from one size. A node's stored model carries them after
the key, so the layout's format, the API and the database stay as they were:

| Model | Means |
Expand All @@ -59,11 +60,15 @@ the key, so the layout's format, the API and the database stay as they were:
| `cube_grid_4x1` | 4 across, 1 up (a 1 × 4 lying down) |
| `bookcase` | 80 × 28 × 202 cm, 6 levels |
| `bookcase_60x28x150_4` | 60 × 28 × 150 cm (width, depth, height), 4 levels |
| `shelving_unit` | 90 × 50 × 180 cm, 4 shelves |
| `shelving_unit_120x60x200_4` | 120 × 60 × 200 cm (width, depth, height), 4 shelves |

`sizedOf` reads the numbers (null for anything else, out of range, or spelled another way: the
first size is only ever the bare key), `sizedKey` writes them, `mapModel` gives the size and
`baseModel` the catalogue key, which the names, the groups and the pictures use.
`apps/web/src/map/engine/sized.ts` turns the numbers into boards and the spaces between them, and
`apps/web/src/map/engine/sized.ts` turns the numbers into boards and the spaces between them,
`apps/web/src/map/engine/draw.ts` gives the boards their materials (its `sized` function),
`apps/web/src/map/compartments.ts` puts furniture's compartments in those spaces, and
`apps/web/src/map/size.tsx` is the card's fields. A new sized shape goes in all of these, and in
`isMapModel`'s tests and the server's layout test.

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/content/docs/es/users/location-map.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Los estantes, armarios, áreas y cajas que están directamente en una habitació
4. Escribe parte del nombre o el ID corto en **Busca un objeto en** la habitación, luego toca el objeto. Aparece en medio de la habitación, seleccionado.
5. Su tarjeta dice qué forma tuvo y por qué: **Forma: TV, de su tipo** o **de su nombre**. Cuando Kept no está seguro, la tarjeta dice **una suposición** y muestra **Elige una forma**.
6. **Cambiar** (o **Elige una forma**) abre las formas. **Sugerido** va primero, luego todas las formas de su grupo (muebles, almacenamiento, en la pared, electrónica, cocina y lavandería, herramientas, plantas y exterior, vehículos, escaleras y áreas), cada una con una imagen. **Busca una forma** busca los nombres y sus otras palabras en cualquiera de los idiomas de Kept: «nevera», «Kühlschrank» y «ثلاجة» encuentran la nevera. Mientras escribes, solo se ven las que coinciden, y las formas cuyo nombre o palabra empieza por lo que escribiste salen primero: «ne» encuentra Nevera, Webcam y Cámara antes que Carrito de herramientas. Las palabras en tu idioma e inglés coinciden desde su inicio; una palabra en otro idioma coincide al escribirla toda. Borra la búsqueda para ver **Sugerido** y los grupos de nuevo. En el móvil las formas se quedan sobre el teclado y se desplazan. Toca una forma para usarla. Cada forma, con su tamaño y palabras, está en la [biblioteca de formas](/es/users/map-shapes/); **¿Falta una forma? Pídela** debajo de las formas abre un formulario de GitHub para pedirla.
Dos formas toman su tamaño de ti: una estantería **Estantería de cubos** tiene **Cubos a lo ancho** y **Cubos hacia arriba** en su tarjeta (2 × 2 al principio; **Poner de lado** tumba una de 1 × 4 como 4 × 1), y una **Estantería alta** tiene su **Ancho**, **Profundidad** y **Altura** en centímetros (pulgadas en imperial) y sus **Niveles** (80 × 28 × 202 cm con 6 al principio). El mapa dibuja cada cubo y cada nivel.
Tres formas toman su tamaño de ti: una estantería **Estantería de cubos** tiene **Cubos a lo ancho** y **Cubos hacia arriba** en su tarjeta (2 × 2 al principio; **Poner de lado** tumba una de 1 × 4 como 4 × 1), y una **Estantería alta** tiene su **Ancho**, **Profundidad** y **Altura** en centímetros (pulgadas en imperial) y sus **Niveles** (80 × 28 × 202 cm con 6 al principio). El mapa dibuja cada cubo y cada nivel. Una **Estantería de almacenaje** tiene esos mismos tres tamaños y sus **Estantes**, dos como mínimo (90 × 50 × 180 cm con 4 al principio): cuatro postes, el estante de abajo separado del suelo y el de arriba a ras de los postes.
7. Arrastra el objeto donde está. Los objetos pequeños pueden estar en un escritorio, encimera, estante o caja. **Girar** lo gira un cuarto.
8. Toca **Listo**. El aviso ofrece **Deshacer**. **Cancelar** antes de Listo tira la sesión entera, tras preguntar.

Expand Down
Loading
Loading