@oktis-works/admin 0.4.22 → 0.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/_astro/{ActivityWidget.DPHDSR70.js → ActivityWidget.DaftIB1V.js} +2 -2
- package/dist/client/_astro/{AdminBar.Cfe6Btfm.js → AdminBar.B-diRxPt.js} +2 -2
- package/dist/client/_astro/{AtGlanceWidget.BdmMxHd5.js → AtGlanceWidget.q_xwhOJa.js} +2 -2
- package/dist/client/_astro/BaseLayout.sayhdG_g.css +1 -0
- package/dist/client/_astro/ContentEditor.B1b1Ixz0.js +3 -0
- package/dist/client/_astro/ContentEditor.DGTZ51kU.js +1 -0
- package/dist/client/_astro/{ContentTypeWorkspace.C-17fiDL.js → ContentTypeWorkspace.CFzwh3Rc.js} +1 -1
- package/dist/client/_astro/CustomFieldsManager.DqCE6rSX.js +5 -0
- package/dist/client/_astro/DashboardHome.HrqKA0mK.js +1 -0
- package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.CKDcT5kP.js → DashboardLayout.astro_astro_type_script_index_0_lang.sBNUxHjt.js} +1 -1
- package/dist/client/_astro/{Footer.CIzMoBJk.js → Footer.nQEKIcjo.js} +1 -1
- package/dist/client/_astro/{GeneralSettings.XVjUJxtp.js → GeneralSettings.C5lXnnvB.js} +1 -1
- package/dist/client/_astro/LogsManager.BSXD0gFG.js +1 -0
- package/dist/client/_astro/MediaLibrary.9tlXDGsx.js +1 -0
- package/dist/client/_astro/MenuManager.CfLmtMhF.js +1 -0
- package/dist/client/_astro/{PluginManager.D65lPRrH.js → PluginManager.Ba2R7ZVx.js} +2 -2
- package/dist/client/_astro/{PostTypesManager.dsx3ybTa.js → PostTypesManager.DqbyhhLF.js} +1 -1
- package/dist/client/_astro/{QuickDraftWidget.DYsI_PJ5.js → QuickDraftWidget.J5LOLOY3.js} +2 -2
- package/dist/client/_astro/ResourceHubs.sI10AY3z.js +1 -0
- package/dist/client/_astro/TaxonomiesManager.BFd3zjNe.js +1 -0
- package/dist/client/_astro/TaxonomyTermsManager.C7ClYXtt.js +1 -0
- package/dist/client/_astro/{ThemeManager.CuhjguCi.js → ThemeManager.C4t-yZay.js} +2 -2
- package/dist/client/_astro/UserCreateForm.B-7pKOO6.js +1 -0
- package/dist/client/_astro/UsersManager.aI6-3vtM.js +1 -0
- package/dist/client/_astro/WebhooksManager.C3E91U9V.js +1 -0
- package/dist/client/_astro/api.DSIz0zxF.js +1 -0
- package/dist/client/_astro/client.BDaUmf7m.js +1 -0
- package/dist/client/_astro/custom-fields.pl-GPt9A.css +1 -0
- package/dist/client/_astro/dist.BqeNZlzo.js +1 -0
- package/dist/client/_astro/extensions.BD4YTWQq.js +1 -0
- package/dist/client/_astro/i18n.Tk18hqHh.js +1 -0
- package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.DHHzJWgm.js → login.astro_astro_type_script_index_0_lang.CJiWhdn-.js} +1 -1
- package/dist/client/_astro/pt-BR.BvjbjXKW.js +1 -0
- package/dist/client/_astro/solid.TEtyrbLc.js +1 -0
- package/dist/client/_astro/{version.DPFOQ4hp.js → version.Cvcb-3YL.js} +1 -1
- package/dist/client/_astro/web.C8wWxyYF.js +1 -0
- package/dist/server/chunks/{ContentEditor_Dat_38Nz.mjs → ContentEditor_Bz6HNlOl.mjs} +6 -6
- package/dist/server/chunks/{DashboardLayout_DsYrIyKK.mjs → DashboardLayout_DnvPikNH.mjs} +31 -6
- package/dist/server/chunks/MediaLibrary_CfwJY7WG.mjs +466 -0
- package/dist/server/chunks/{_slug__MPfKFp1f.mjs → _slug__Bf1zTrrT.mjs} +1 -1
- package/dist/server/chunks/{access_dvh8pEEF.mjs → access_Iqz1YRc2.mjs} +2 -2
- package/dist/server/chunks/custom-fields_HXTX5-i-.mjs +1297 -0
- package/dist/server/chunks/{edit_BaSFaTjX.mjs → edit_ibDxQgfc.mjs} +2 -2
- package/dist/server/chunks/{general_CWkM-QPS.mjs → general_VinYjg7Y.mjs} +2 -2
- package/dist/server/chunks/{i18n_BJJWXenY.mjs → i18n_BgHPm3Sm.mjs} +227 -5
- package/dist/server/chunks/{index_DCsZz61C.mjs → index_BIz2E9Ay.mjs} +3 -3
- package/dist/server/chunks/{index_Bck2SDPK.mjs → index_DmY8Cm8s.mjs} +2 -2
- package/dist/server/chunks/{index_1F1_RTJb.mjs → index_DvyRjH_d.mjs} +2 -2
- package/dist/server/chunks/{index_B4nb6VH_.mjs → index_WfuyDGIh.mjs} +2 -2
- package/dist/server/chunks/{index_DA7KSBNI.mjs → index_kl5K78eg.mjs} +1 -1
- package/dist/server/chunks/{login_DnB1gNqL.mjs → login_s3hMBW1K.mjs} +1 -1
- package/dist/server/chunks/{logs_BArVlSoG.mjs → logs_DUQUxzzy.mjs} +2 -2
- package/dist/server/chunks/menus_CgKz8KBb.mjs +532 -0
- package/dist/server/chunks/{new_D4KZk7Yr.mjs → new_CU0A50ce.mjs} +2 -2
- package/dist/server/chunks/{new_CSaDDm4Z.mjs → new_CZuza7Tx.mjs} +2 -2
- package/dist/server/chunks/{plugins_Rnyim3HN.mjs → plugins_fppkr9jv.mjs} +2 -2
- package/dist/server/chunks/{post-types_B9aran6P.mjs → post-types_BAWPD3pX.mjs} +2 -2
- package/dist/server/chunks/{pt-BR_C4s8qQI4.mjs → pt-BR_CoM1872j.mjs} +184 -4
- package/dist/server/chunks/{taxonomies_BoQfQyXo.mjs → taxonomies_BACV08DC.mjs} +2 -2
- package/dist/server/chunks/{taxonomy_IQtZsy_i.mjs → taxonomy_CZLTclnV.mjs} +2 -2
- package/dist/server/chunks/{themes_DbXTXyPr.mjs → themes_DHNmoF_s.mjs} +2 -2
- package/dist/server/chunks/{upload_DFhwOXyV.mjs → upload_BZgCqIbH.mjs} +2 -2
- package/dist/server/chunks/{webhooks_rjPh4g3b.mjs → webhooks_D0qA5-De.mjs} +114 -31
- package/dist/server/entry.mjs +23 -23
- package/dist/server/virtual_astro_middleware.mjs +1 -1
- package/package.json +1 -1
- package/dist/client/_astro/BaseLayout.DZs74Ly2.css +0 -1
- package/dist/client/_astro/ContentEditor.C0QRayGL.js +0 -3
- package/dist/client/_astro/ContentEditor.DI_TzQ3t.js +0 -1
- package/dist/client/_astro/CustomFieldsManager.DWfyFNKg.js +0 -3
- package/dist/client/_astro/DashboardHome.DogWw0Mx.js +0 -1
- package/dist/client/_astro/LogsManager.Dj9eegoH.js +0 -1
- package/dist/client/_astro/MediaLibrary.DFdil0q8.js +0 -1
- package/dist/client/_astro/MenuManager.CInlK214.js +0 -19
- package/dist/client/_astro/ResourceHubs.C3EJHpe7.js +0 -1
- package/dist/client/_astro/TaxonomiesManager.BYcDeL3s.js +0 -1
- package/dist/client/_astro/TaxonomyTermsManager.DLD_SWSE.js +0 -1
- package/dist/client/_astro/UserCreateForm.YrvnokVf.js +0 -1
- package/dist/client/_astro/UsersManager.BWkuqIyw.js +0 -1
- package/dist/client/_astro/WebhooksManager.BLy6DI8f.js +0 -1
- package/dist/client/_astro/api.DSW9LMA5.js +0 -1
- package/dist/client/_astro/client.W0NY0lEa.js +0 -1
- package/dist/client/_astro/custom-fields.XYcte01g.css +0 -1
- package/dist/client/_astro/dist.Di6E6ZlC.js +0 -1
- package/dist/client/_astro/extensions.BbGSgyUX.js +0 -1
- package/dist/client/_astro/i18n.Ck_XVuPY.js +0 -1
- package/dist/client/_astro/pt-BR.BNlZx8-w.js +0 -1
- package/dist/client/_astro/solid.DN8T1HsY.js +0 -1
- package/dist/client/_astro/web.Bze9SKEA.js +0 -1
- package/dist/server/chunks/MediaLibrary_BmYgO6Lm.mjs +0 -335
- package/dist/server/chunks/custom-fields_Dp_CVTYc.mjs +0 -591
- package/dist/server/chunks/menus_CYoSRDEL.mjs +0 -170
- /package/dist/server/chunks/{BaseLayout_C_gR8Xx3.mjs → BaseLayout_CXafpVV9.mjs} +0 -0
|
@@ -185,20 +185,28 @@ var media = {
|
|
|
185
185
|
"empty": "Nenhum arquivo ainda. Envie o primeiro!",
|
|
186
186
|
"details": {
|
|
187
187
|
"title": "Detalhes",
|
|
188
|
+
"titleField": "Título",
|
|
188
189
|
"file": "Arquivo",
|
|
189
190
|
"type": "Tipo",
|
|
190
191
|
"size": "Tamanho",
|
|
192
|
+
"dimensions": "Dimensões",
|
|
193
|
+
"uploaded": "Enviado em",
|
|
191
194
|
"url": "URL",
|
|
192
195
|
"copy": "Copiar",
|
|
193
196
|
"alt": "Texto alternativo (alt)",
|
|
194
197
|
"caption": "Legenda",
|
|
198
|
+
"description": "Descrição",
|
|
195
199
|
"save": "Salvar detalhes",
|
|
200
|
+
"replace": "Substituir arquivo",
|
|
201
|
+
"replacing": "Substituindo…",
|
|
202
|
+
"replaceHint": "Mantém o mesmo item e seus metadados.",
|
|
196
203
|
"delete": "Excluir",
|
|
197
204
|
"close": "Fechar",
|
|
198
205
|
"confirmDelete": "Excluir \"{filename}\"? O arquivo será removido do disco.",
|
|
199
206
|
"saved": "Detalhes salvos ✓",
|
|
200
207
|
"copied": "URL copiada ✓",
|
|
201
|
-
"copyError": "Não foi possível copiar a URL"
|
|
208
|
+
"copyError": "Não foi possível copiar a URL",
|
|
209
|
+
"replaced": "Arquivo substituído ✓"
|
|
202
210
|
},
|
|
203
211
|
"toasts": { "uploaded": "{count} arquivo(s) enviado(s) ✓" }
|
|
204
212
|
};
|
|
@@ -394,6 +402,10 @@ var settings = {
|
|
|
394
402
|
"title": "Grupos de campos",
|
|
395
403
|
"new": "Novo grupo de campos",
|
|
396
404
|
"empty": "Ainda não há grupos de campos personalizados.",
|
|
405
|
+
"emptyHint": "Crie seu primeiro grupo para começar a modelar o conteúdo.",
|
|
406
|
+
"search": "Buscar grupos…",
|
|
407
|
+
"groupName": "Grupo",
|
|
408
|
+
"status": "Status",
|
|
397
409
|
"fields": "campos",
|
|
398
410
|
"appliesTo": "Aplicado a",
|
|
399
411
|
"allContentTypes": "Todos os tipos de conteúdo",
|
|
@@ -406,6 +418,28 @@ var settings = {
|
|
|
406
418
|
"editTitle": "Editar grupo de campos",
|
|
407
419
|
"title": "Nome do grupo",
|
|
408
420
|
"titlePlaceholder": "Ex.: Detalhes do produto",
|
|
421
|
+
"backToGroups": "Voltar aos grupos",
|
|
422
|
+
"editorEyebrow": "Construtor de campos",
|
|
423
|
+
"groupTitleHint": "O nome identifica este conjunto de campos dentro do editor de conteúdo.",
|
|
424
|
+
"fieldsTitle": "Campos",
|
|
425
|
+
"fieldsDescription": "Adicione, configure e ordene os campos. Use os seis pontos para arrastar sem perder a posição.",
|
|
426
|
+
"noFields": "Este grupo ainda não possui campos.",
|
|
427
|
+
"settingsTitle": "Configurações do grupo",
|
|
428
|
+
"settingsDescription": "Opções de apresentação e visibilidade do painel, como no ACF.",
|
|
429
|
+
"description": "Descrição",
|
|
430
|
+
"labelPlacement": "Posição dos rótulos",
|
|
431
|
+
"instructionPlacement": "Posição das instruções",
|
|
432
|
+
"menuOrder": "Ordem do menu",
|
|
433
|
+
"hideOnScreen": "Ocultar na tela de edição",
|
|
434
|
+
"hide": {
|
|
435
|
+
"permalink": "Link permanente",
|
|
436
|
+
"content": "Editor de conteúdo",
|
|
437
|
+
"excerpt": "Resumo",
|
|
438
|
+
"featured_image": "Imagem destacada",
|
|
439
|
+
"author": "Autor",
|
|
440
|
+
"revisions": "Revisões",
|
|
441
|
+
"comments": "Comentários"
|
|
442
|
+
},
|
|
409
443
|
"assignTitle": "Localização",
|
|
410
444
|
"assignDescription": "Escolha o content type onde este grupo de campos estará disponível.",
|
|
411
445
|
"contentType": "Content type",
|
|
@@ -441,6 +475,106 @@ var settings = {
|
|
|
441
475
|
"saved": "Grupo de campos salvo.",
|
|
442
476
|
"deleted": "Grupo de campos excluído."
|
|
443
477
|
},
|
|
478
|
+
"listEyebrow": "Estrutura de conteúdo",
|
|
479
|
+
"fieldSettings": {
|
|
480
|
+
"general": "Geral",
|
|
481
|
+
"fieldLabel": "Rótulo do campo",
|
|
482
|
+
"fieldName": "Nome do campo",
|
|
483
|
+
"instructions": "Instruções",
|
|
484
|
+
"required": "Obrigatório",
|
|
485
|
+
"defaultValue": "Valor padrão",
|
|
486
|
+
"placeholder": "Placeholder",
|
|
487
|
+
"presentation": "Apresentação",
|
|
488
|
+
"wrapperWidth": "Largura do wrapper (%)",
|
|
489
|
+
"labelPlacement": "Rótulo",
|
|
490
|
+
"instructionPlacement": "Instruções",
|
|
491
|
+
"top": "Acima",
|
|
492
|
+
"left": "À esquerda",
|
|
493
|
+
"above": "Antes do campo",
|
|
494
|
+
"below": "Depois do campo",
|
|
495
|
+
"textSettings": "Texto",
|
|
496
|
+
"prepend": "Prefixo",
|
|
497
|
+
"append": "Sufixo",
|
|
498
|
+
"minLength": "Tamanho mínimo",
|
|
499
|
+
"maxLength": "Tamanho máximo",
|
|
500
|
+
"rows": "Linhas",
|
|
501
|
+
"newLines": "Novas linhas",
|
|
502
|
+
"wpautop": "Parágrafos automáticos",
|
|
503
|
+
"none": "Nenhuma",
|
|
504
|
+
"numberSettings": "Número",
|
|
505
|
+
"min": "Mínimo",
|
|
506
|
+
"max": "Máximo",
|
|
507
|
+
"step": "Incremento",
|
|
508
|
+
"choiceSettings": "Escolhas",
|
|
509
|
+
"choices": "Opções",
|
|
510
|
+
"layout": "Layout",
|
|
511
|
+
"vertical": "Vertical",
|
|
512
|
+
"horizontal": "Horizontal",
|
|
513
|
+
"multiple": "Múltipla escolha",
|
|
514
|
+
"allowNull": "Permitir vazio",
|
|
515
|
+
"mediaSettings": "Mídia",
|
|
516
|
+
"returnFormat": "Formato de retorno",
|
|
517
|
+
"array": "Array",
|
|
518
|
+
"id": "ID",
|
|
519
|
+
"previewSize": "Tamanho da prévia",
|
|
520
|
+
"library": "Biblioteca",
|
|
521
|
+
"all": "Todos",
|
|
522
|
+
"uploadedToPost": "Enviados neste conteúdo",
|
|
523
|
+
"allowedTypes": "Tipos permitidos",
|
|
524
|
+
"minWidth": "Largura mínima",
|
|
525
|
+
"maxWidth": "Largura máxima",
|
|
526
|
+
"minHeight": "Altura mínima",
|
|
527
|
+
"maxHeight": "Altura máxima",
|
|
528
|
+
"wysiwygSettings": "Editor visual",
|
|
529
|
+
"tabs": "Abas",
|
|
530
|
+
"toolbar": "Barra de ferramentas",
|
|
531
|
+
"mediaUpload": "Permitir envio de mídia",
|
|
532
|
+
"dateSettings": "Data e hora",
|
|
533
|
+
"displayFormat": "Formato de exibição",
|
|
534
|
+
"firstDay": "Primeiro dia da semana",
|
|
535
|
+
"colorSettings": "Cor",
|
|
536
|
+
"enableOpacity": "Permitir transparência",
|
|
537
|
+
"mapSettings": "Mapa",
|
|
538
|
+
"center": "Centro",
|
|
539
|
+
"zoom": "Zoom",
|
|
540
|
+
"height": "Altura",
|
|
541
|
+
"relationSettings": "Relacionamento",
|
|
542
|
+
"postType": "Tipo de conteúdo",
|
|
543
|
+
"taxonomy": "Taxonomia",
|
|
544
|
+
"booleanSettings": "Verdadeiro/Falso",
|
|
545
|
+
"message": "Mensagem",
|
|
546
|
+
"defaultChecked": "Marcado por padrão",
|
|
547
|
+
"linkSettings": "Link",
|
|
548
|
+
"cloneSettings": "Clone",
|
|
549
|
+
"cloneFields": "Campos para clonar",
|
|
550
|
+
"cloneHint": "Um nome de campo por linha",
|
|
551
|
+
"containerSettings": "Estrutura",
|
|
552
|
+
"buttonLabel": "Texto do botão",
|
|
553
|
+
"collapsed": "Campo usado como título da linha",
|
|
554
|
+
"subFields": "Subcampos",
|
|
555
|
+
"layouts": "Layouts",
|
|
556
|
+
"addLayout": "Adicionar layout",
|
|
557
|
+
"newLayout": "Novo layout",
|
|
558
|
+
"layoutName": "Nome do layout",
|
|
559
|
+
"layoutLabel": "Rótulo do layout",
|
|
560
|
+
"layoutDisplay": "Exibição do layout",
|
|
561
|
+
"conditionalLogic": "Lógica condicional",
|
|
562
|
+
"conditionalHint": "Mostra este campo apenas quando as regras forem atendidas.",
|
|
563
|
+
"chooseField": "Escolha um campo",
|
|
564
|
+
"conditionValue": "Valor",
|
|
565
|
+
"addCondition": "Adicionar condição",
|
|
566
|
+
"addConditionGroup": "Adicionar grupo OU",
|
|
567
|
+
"conditionsAnd": "As condições deste grupo usam E.",
|
|
568
|
+
"operators": {
|
|
569
|
+
"eq": "é igual a",
|
|
570
|
+
"neq": "não é igual a",
|
|
571
|
+
"gt": "é maior que",
|
|
572
|
+
"lt": "é menor que",
|
|
573
|
+
"contains": "contém",
|
|
574
|
+
"hasAny": "tem algum valor",
|
|
575
|
+
"hasNone": "está vazio"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
444
578
|
"actions": {
|
|
445
579
|
"delete": "Excluir",
|
|
446
580
|
"confirmDelete": "Excluir este grupo de campos?"
|
|
@@ -458,9 +592,51 @@ var menus = {
|
|
|
458
592
|
"edit": "Editar menu",
|
|
459
593
|
"name": "Nome",
|
|
460
594
|
"slug": "Slug",
|
|
461
|
-
"items": "Itens
|
|
462
|
-
"
|
|
463
|
-
"
|
|
595
|
+
"items": "Itens",
|
|
596
|
+
"back": "Voltar para menus",
|
|
597
|
+
"nameRequired": "Informe o nome do menu.",
|
|
598
|
+
"editor": {
|
|
599
|
+
"eyebrow": "Estrutura de navegação",
|
|
600
|
+
"addItems": "Adicionar itens ao menu",
|
|
601
|
+
"search": "Pesquisar…",
|
|
602
|
+
"addSelected": "Adicionar selecionados",
|
|
603
|
+
"addToMenu": "Adicionar ao menu",
|
|
604
|
+
"structure": "Estrutura do menu",
|
|
605
|
+
"structureHint": "Arraste os itens para reordenar. Use as setas para criar submenus.",
|
|
606
|
+
"empty": "Adicione itens pelos painéis à esquerda.",
|
|
607
|
+
"emptyLevel": "Nenhum item neste submenu.",
|
|
608
|
+
"drag": "Arrastar para reordenar",
|
|
609
|
+
"untitled": "Item sem título",
|
|
610
|
+
"noUrl": "Sem URL",
|
|
611
|
+
"up": "Mover para cima",
|
|
612
|
+
"down": "Mover para baixo",
|
|
613
|
+
"indent": "Criar submenu",
|
|
614
|
+
"outdent": "Mover para o nível anterior",
|
|
615
|
+
"itemSettings": "Configurações do item",
|
|
616
|
+
"navigationLabel": "Rótulo de navegação",
|
|
617
|
+
"url": "URL",
|
|
618
|
+
"titleAttribute": "Atributo title",
|
|
619
|
+
"cssClasses": "Classes CSS",
|
|
620
|
+
"target": "Abrir link em",
|
|
621
|
+
"sameWindow": "Mesma janela",
|
|
622
|
+
"newWindow": "Nova janela",
|
|
623
|
+
"xfn": "Relacionamento do link (XFN)",
|
|
624
|
+
"description": "Descrição",
|
|
625
|
+
"remove": "Remover",
|
|
626
|
+
"settings": "Configurações do menu",
|
|
627
|
+
"autoAddPages": "Adicionar automaticamente novas páginas de primeiro nível a este menu",
|
|
628
|
+
"autoAddPagesHint": "Esta configuração é salva com o menu e pode ser usada pelo tema ativo."
|
|
629
|
+
},
|
|
630
|
+
"sources": {
|
|
631
|
+
"pages": "Páginas",
|
|
632
|
+
"posts": "Posts",
|
|
633
|
+
"custom": "Links personalizados",
|
|
634
|
+
"customHint": "Adicione qualquer URL interna ou externa.",
|
|
635
|
+
"home": "Início",
|
|
636
|
+
"contentTypes": "Itens de content types",
|
|
637
|
+
"archives": "Arquivos de content types",
|
|
638
|
+
"taxonomies": "Termos de taxonomias"
|
|
639
|
+
},
|
|
464
640
|
"saved": "Menu salvo.",
|
|
465
641
|
"deleted": "Menu excluído.",
|
|
466
642
|
"empty": "Ainda não há menus.",
|
|
@@ -529,6 +705,10 @@ var webhooks = {
|
|
|
529
705
|
"edit": "Editar webhook",
|
|
530
706
|
"url": "URL do endpoint",
|
|
531
707
|
"events": "Eventos",
|
|
708
|
+
"selectEvents": "Selecione um ou mais eventos",
|
|
709
|
+
"searchEvents": "Pesquisar eventos…",
|
|
710
|
+
"noEvents": "Nenhum evento encontrado.",
|
|
711
|
+
"eventsRequired": "Selecione pelo menos um evento.",
|
|
532
712
|
"authentication": "Autenticação",
|
|
533
713
|
"active": "Ativo",
|
|
534
714
|
"token": "Token Bearer",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BgHPm3Sm.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnvPikNH.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
7
7
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/settings/TaxonomiesManager.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BgHPm3Sm.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnvPikNH.mjs";
|
|
6
6
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/content/TaxonomyTermsManager.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BgHPm3Sm.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnvPikNH.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/themes/ThemeManager.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as MediaLibrary } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnvPikNH.mjs";
|
|
5
|
+
import { t as MediaLibrary } from "./MediaLibrary_CfwJY7WG.mjs";
|
|
6
6
|
//#region src/pages/media/upload.astro
|
|
7
7
|
var upload_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Upload,
|
|
@@ -1,17 +1,48 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_BgHPm3Sm.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnvPikNH.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
|
-
import { For, Show, createSignal, onMount } from "solid-js";
|
|
7
|
+
import { For, Show, createSignal, onCleanup, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/settings/WebhooksManager.tsx
|
|
9
9
|
var _tmpl$ = [
|
|
10
|
+
"<div",
|
|
11
|
+
" class=\"webhook-event-select__dropdown\" role=\"listbox\"><input class=\"input\"",
|
|
12
|
+
"><div class=\"webhook-event-select__options\">",
|
|
13
|
+
"</div></div>"
|
|
14
|
+
];
|
|
15
|
+
var _tmpl$2 = [
|
|
16
|
+
"<div",
|
|
17
|
+
" class=\"webhook-event-select\"><button type=\"button\" class=\"input webhook-event-select__trigger\" aria-haspopup=\"listbox\"",
|
|
18
|
+
"><span>",
|
|
19
|
+
"</span><span aria-hidden=\"true\">⌄</span></button><!--$-->",
|
|
20
|
+
"<!--/--><div class=\"webhook-event-select__chips\">",
|
|
21
|
+
"</div></div>"
|
|
22
|
+
];
|
|
23
|
+
var _tmpl$3 = [
|
|
24
|
+
"<span",
|
|
25
|
+
" class=\"muted\">",
|
|
26
|
+
"</span>"
|
|
27
|
+
];
|
|
28
|
+
var _tmpl$4 = [
|
|
29
|
+
"<label",
|
|
30
|
+
" class=\"webhook-event-option\"><input type=\"checkbox\"",
|
|
31
|
+
"><span><!--$-->",
|
|
32
|
+
"<!--/--><small>",
|
|
33
|
+
"</small></span></label>"
|
|
34
|
+
];
|
|
35
|
+
var _tmpl$5 = [
|
|
36
|
+
"<button",
|
|
37
|
+
" type=\"button\" class=\"webhook-event-chip\"><!--$-->",
|
|
38
|
+
"<!--/--> ×</button>"
|
|
39
|
+
];
|
|
40
|
+
var _tmpl$6 = [
|
|
10
41
|
"<div",
|
|
11
42
|
" class=\"notice notice--error\">",
|
|
12
43
|
"</div>"
|
|
13
44
|
];
|
|
14
|
-
var _tmpl$
|
|
45
|
+
var _tmpl$7 = [
|
|
15
46
|
"<div",
|
|
16
47
|
" class=\"table-scroll\"><table class=\"table\"><thead><tr><th>",
|
|
17
48
|
"</th><th>",
|
|
@@ -21,7 +52,7 @@ var _tmpl$2 = [
|
|
|
21
52
|
"</th></tr></thead><tbody>",
|
|
22
53
|
"</tbody></table></div>"
|
|
23
54
|
];
|
|
24
|
-
var _tmpl$
|
|
55
|
+
var _tmpl$8 = [
|
|
25
56
|
"<div",
|
|
26
57
|
" class=\"resource-hub webhooks-manager\"><!--$-->",
|
|
27
58
|
"<!--/--><div class=\"card-header-row\"><div><h3>",
|
|
@@ -29,15 +60,15 @@ var _tmpl$3 = [
|
|
|
29
60
|
"</p></div><button class=\"btn btn-primary\" type=\"button\">",
|
|
30
61
|
"</button></div><!--$-->",
|
|
31
62
|
"<!--/--><section class=\"card\">",
|
|
32
|
-
"</section></div>"
|
|
63
|
+
"</section><style>.webhook-event-select{position:relative}.webhook-event-select__trigger{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer}.webhook-event-select__dropdown{position:absolute;z-index:20;top:calc(100% + .25rem);left:0;right:0;background:var(--color-surface,#fff);border:1px solid var(--color-border,#dcdcde);box-shadow:0 8px 22px rgba(0,0,0,.14);padding:.6rem}.webhook-event-select__options{max-height:240px;overflow:auto;margin-top:.5rem;display:grid;gap:.2rem}.webhook-event-option{display:flex!important;align-items:flex-start;gap:.5rem!important;padding:.45rem;border-radius:4px;cursor:pointer}.webhook-event-option:hover{background:var(--color-surface-muted,#f5f5f5)}.webhook-event-option span{display:grid;gap:.12rem}.webhook-event-option small{color:var(--color-muted);font-size:.75rem}.webhook-event-select__chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}.webhook-event-chip{border:1px solid var(--color-border,#dcdcde);background:var(--color-surface-muted,#f5f5f5);border-radius:999px;padding:.2rem .55rem;cursor:pointer;font-size:.78rem}</style></div>"
|
|
33
64
|
];
|
|
34
|
-
var _tmpl$
|
|
65
|
+
var _tmpl$9 = [
|
|
35
66
|
"<label",
|
|
36
67
|
"><!--$-->",
|
|
37
68
|
"<!--/--><input class=\"input\" type=\"password\"",
|
|
38
69
|
"></label>"
|
|
39
70
|
];
|
|
40
|
-
var _tmpl$
|
|
71
|
+
var _tmpl$0 = [
|
|
41
72
|
"<div",
|
|
42
73
|
" class=\"form-grid\"><label><!--$-->",
|
|
43
74
|
"<!--/--><input class=\"input\"",
|
|
@@ -45,7 +76,7 @@ var _tmpl$5 = [
|
|
|
45
76
|
"<!--/--><input class=\"input\" type=\"password\"",
|
|
46
77
|
"></label></div>"
|
|
47
78
|
];
|
|
48
|
-
var _tmpl$
|
|
79
|
+
var _tmpl$1 = [
|
|
49
80
|
"<div",
|
|
50
81
|
" class=\"form-grid\"><label><!--$-->",
|
|
51
82
|
"<!--/--><input class=\"input\" type=\"password\"",
|
|
@@ -53,15 +84,14 @@ var _tmpl$6 = [
|
|
|
53
84
|
"<!--/--><input class=\"input\"",
|
|
54
85
|
"></label></div>"
|
|
55
86
|
];
|
|
56
|
-
var _tmpl$
|
|
87
|
+
var _tmpl$10 = [
|
|
57
88
|
"<section",
|
|
58
89
|
" class=\"card\"><h3>",
|
|
59
90
|
"</h3><form class=\"resource-form\"><label><!--$-->",
|
|
60
91
|
"<!--/--><input class=\"input\" required type=\"url\"",
|
|
61
92
|
"></label><label><!--$-->",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"</select></label><label><!--$-->",
|
|
93
|
+
"<!--/--><!--$-->",
|
|
94
|
+
"<!--/--></label><label><!--$-->",
|
|
65
95
|
"<!--/--><select class=\"input\"",
|
|
66
96
|
"><option value=\"none\">",
|
|
67
97
|
"</option><option value=\"bearer\">",
|
|
@@ -78,17 +108,12 @@ var _tmpl$7 = [
|
|
|
78
108
|
"</button> <button class=\"btn\" type=\"button\">",
|
|
79
109
|
"</button></div></form></section>"
|
|
80
110
|
];
|
|
81
|
-
var _tmpl$
|
|
82
|
-
"<option",
|
|
83
|
-
">",
|
|
84
|
-
"</option>"
|
|
85
|
-
];
|
|
86
|
-
var _tmpl$9 = [
|
|
111
|
+
var _tmpl$11 = [
|
|
87
112
|
"<p",
|
|
88
113
|
">",
|
|
89
114
|
"</p>"
|
|
90
115
|
];
|
|
91
|
-
var _tmpl$
|
|
116
|
+
var _tmpl$12 = [
|
|
92
117
|
"<tr",
|
|
93
118
|
"><td>",
|
|
94
119
|
"</td><td>",
|
|
@@ -98,6 +123,44 @@ var _tmpl$0 = [
|
|
|
98
123
|
"</button> <button class=\"btn btn-danger\" type=\"button\">",
|
|
99
124
|
"</button></td></tr>"
|
|
100
125
|
];
|
|
126
|
+
function EventMultiSelect(props) {
|
|
127
|
+
const [open, setOpen] = createSignal(false);
|
|
128
|
+
const [search, setSearch] = createSignal("");
|
|
129
|
+
onMount(() => {
|
|
130
|
+
const close = (event) => {};
|
|
131
|
+
document.addEventListener("mousedown", close);
|
|
132
|
+
onCleanup(() => document.removeEventListener("mousedown", close));
|
|
133
|
+
});
|
|
134
|
+
const filtered = () => props.options.filter((option) => `${option.label} ${option.value}`.toLowerCase().includes(search().toLowerCase()));
|
|
135
|
+
return ssr(_tmpl$2, ssrHydrationKey(), ssrAttribute("aria-expanded", escape(open(), true), false), props.value.length > 0 ? `${escape(props.value.length)} selecionado(s)` : escape(props.placeholder), escape(createComponent(Show, {
|
|
136
|
+
get when() {
|
|
137
|
+
return open();
|
|
138
|
+
},
|
|
139
|
+
get children() {
|
|
140
|
+
return ssr(_tmpl$, ssrHydrationKey(), ssrAttribute("placeholder", escape(props.searchPlaceholder, true), false) + ssrAttribute("value", escape(search(), true), false), escape(createComponent(Show, {
|
|
141
|
+
get when() {
|
|
142
|
+
return filtered().length > 0;
|
|
143
|
+
},
|
|
144
|
+
get fallback() {
|
|
145
|
+
return ssr(_tmpl$3, ssrHydrationKey(), escape(props.empty));
|
|
146
|
+
},
|
|
147
|
+
get children() {
|
|
148
|
+
return createComponent(For, {
|
|
149
|
+
get each() {
|
|
150
|
+
return filtered();
|
|
151
|
+
},
|
|
152
|
+
children: (option) => ssr(_tmpl$4, ssrHydrationKey(), ssrAttribute("checked", props.value.includes(option.value), true), escape(option.label), escape(option.value))
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
})));
|
|
156
|
+
}
|
|
157
|
+
})), escape(createComponent(For, {
|
|
158
|
+
get each() {
|
|
159
|
+
return props.value;
|
|
160
|
+
},
|
|
161
|
+
children: (value) => ssr(_tmpl$5, ssrHydrationKey(), escape(props.options.find((option) => option.value === value)?.label ?? value))
|
|
162
|
+
})));
|
|
163
|
+
}
|
|
101
164
|
function WebhooksManager() {
|
|
102
165
|
const { t } = useTranslation();
|
|
103
166
|
const [webhooks, setWebhooks] = createSignal([]);
|
|
@@ -118,44 +181,64 @@ function WebhooksManager() {
|
|
|
118
181
|
}
|
|
119
182
|
};
|
|
120
183
|
onMount(load);
|
|
121
|
-
return ssr(_tmpl$
|
|
184
|
+
return ssr(_tmpl$8, ssrHydrationKey(), escape(createComponent(Show, {
|
|
122
185
|
get when() {
|
|
123
186
|
return error();
|
|
124
187
|
},
|
|
125
188
|
get children() {
|
|
126
|
-
return ssr(_tmpl
|
|
189
|
+
return ssr(_tmpl$6, ssrHydrationKey(), escape(error()));
|
|
127
190
|
}
|
|
128
191
|
})), escape(t("webhooks.listTitle")), escape(t("webhooks.description")), escape(t("webhooks.new")), escape(createComponent(Show, {
|
|
129
192
|
get when() {
|
|
130
193
|
return form();
|
|
131
194
|
},
|
|
132
|
-
children: (current) => ssr(_tmpl$
|
|
195
|
+
children: (current) => ssr(_tmpl$10, ssrHydrationKey(), current().id ? escape(t("webhooks.edit")) : escape(t("webhooks.create")), escape(t("webhooks.url")), ssrAttribute("value", escape(current().url ?? "", true), false), escape(t("webhooks.events")), escape(createComponent(EventMultiSelect, {
|
|
196
|
+
get options() {
|
|
197
|
+
return eventOptions();
|
|
198
|
+
},
|
|
199
|
+
get value() {
|
|
200
|
+
return current().events ?? [];
|
|
201
|
+
},
|
|
202
|
+
onChange: (events) => setForm({
|
|
203
|
+
...current(),
|
|
204
|
+
events
|
|
205
|
+
}),
|
|
206
|
+
get placeholder() {
|
|
207
|
+
return t("webhooks.selectEvents");
|
|
208
|
+
},
|
|
209
|
+
get searchPlaceholder() {
|
|
210
|
+
return t("webhooks.searchEvents");
|
|
211
|
+
},
|
|
212
|
+
get empty() {
|
|
213
|
+
return t("webhooks.noEvents");
|
|
214
|
+
}
|
|
215
|
+
})), escape(t("webhooks.authentication")), ssrAttribute("value", escape(current().auth_type, true), false), escape(t("webhooks.auth.none")), escape(t("webhooks.auth.bearer")), escape(t("webhooks.auth.basic")), escape(t("webhooks.auth.apiKey")), escape(t("webhooks.auth.hmac")), escape(createComponent(Show, {
|
|
133
216
|
get when() {
|
|
134
217
|
return current().auth_type === "bearer";
|
|
135
218
|
},
|
|
136
219
|
get children() {
|
|
137
|
-
return ssr(_tmpl$
|
|
220
|
+
return ssr(_tmpl$9, ssrHydrationKey(), escape(t("webhooks.token")), ssrAttribute("placeholder", current().id ? escape(t("webhooks.keepExisting"), true) : "", false) + ssrAttribute("value", escape(current().auth_config.token ?? "", true), false));
|
|
138
221
|
}
|
|
139
222
|
})), escape(createComponent(Show, {
|
|
140
223
|
get when() {
|
|
141
224
|
return current().auth_type === "basic";
|
|
142
225
|
},
|
|
143
226
|
get children() {
|
|
144
|
-
return ssr(_tmpl$
|
|
227
|
+
return ssr(_tmpl$0, ssrHydrationKey(), escape(t("webhooks.username")), ssrAttribute("value", escape(current().auth_config.username ?? "", true), false), escape(t("webhooks.password")), ssrAttribute("placeholder", current().id ? escape(t("webhooks.keepExisting"), true) : "", false) + ssrAttribute("value", escape(current().auth_config.password ?? "", true), false));
|
|
145
228
|
}
|
|
146
229
|
})), escape(createComponent(Show, {
|
|
147
230
|
get when() {
|
|
148
231
|
return current().auth_type === "api_key";
|
|
149
232
|
},
|
|
150
233
|
get children() {
|
|
151
|
-
return ssr(_tmpl$
|
|
234
|
+
return ssr(_tmpl$0, ssrHydrationKey(), escape(t("webhooks.headerName")), ssrAttribute("value", escape(current().auth_config.headerName ?? "", true), false), escape(t("webhooks.apiKeyValue")), ssrAttribute("placeholder", current().id ? escape(t("webhooks.keepExisting"), true) : "", false) + ssrAttribute("value", escape(current().auth_config.value ?? "", true), false));
|
|
152
235
|
}
|
|
153
236
|
})), escape(createComponent(Show, {
|
|
154
237
|
get when() {
|
|
155
238
|
return current().auth_type === "hmac_sha256";
|
|
156
239
|
},
|
|
157
240
|
get children() {
|
|
158
|
-
return ssr(_tmpl$
|
|
241
|
+
return ssr(_tmpl$1, ssrHydrationKey(), escape(t("webhooks.secret")), ssrAttribute("required", !current().id, true) + ssrAttribute("placeholder", current().id ? escape(t("webhooks.keepExisting"), true) : "", false) + ssrAttribute("value", escape(current().auth_config.secret ?? "", true), false), escape(t("webhooks.signatureHeader")), ssrAttribute("value", escape(current().auth_config.signatureHeader ?? "X-Webhook-Signature", true), false));
|
|
159
242
|
}
|
|
160
243
|
})), ssrAttribute("checked", current().active ?? true, true), escape(t("webhooks.active")), escape(t("common.save")), escape(t("common.cancel")))
|
|
161
244
|
})), escape(createComponent(Show, {
|
|
@@ -163,7 +246,7 @@ function WebhooksManager() {
|
|
|
163
246
|
return !loading();
|
|
164
247
|
},
|
|
165
248
|
get fallback() {
|
|
166
|
-
return ssr(_tmpl$
|
|
249
|
+
return ssr(_tmpl$11, ssrHydrationKey(), escape(t("webhooks.loading")));
|
|
167
250
|
},
|
|
168
251
|
get children() {
|
|
169
252
|
return createComponent(Show, {
|
|
@@ -171,14 +254,14 @@ function WebhooksManager() {
|
|
|
171
254
|
return webhooks().length > 0;
|
|
172
255
|
},
|
|
173
256
|
get fallback() {
|
|
174
|
-
return ssr(_tmpl$
|
|
257
|
+
return ssr(_tmpl$11, ssrHydrationKey(), escape(t("webhooks.empty")));
|
|
175
258
|
},
|
|
176
259
|
get children() {
|
|
177
|
-
return ssr(_tmpl$
|
|
260
|
+
return ssr(_tmpl$7, ssrHydrationKey(), escape(t("webhooks.url")), escape(t("webhooks.events")), escape(t("webhooks.authentication")), escape(t("webhooks.active")), escape(t("common.actions")), escape(createComponent(For, {
|
|
178
261
|
get each() {
|
|
179
262
|
return webhooks();
|
|
180
263
|
},
|
|
181
|
-
children: (hook) => ssr(_tmpl$
|
|
264
|
+
children: (hook) => ssr(_tmpl$12, ssrHydrationKey(), escape(hook.url), escape((hook.events ?? []).join(", ")), escape(t(`webhooks.auth.${hook.auth_type ?? "hmac_sha256"}`)), hook.active ? escape(t("common.yes")) : escape(t("common.no")), escape(t("common.edit")), escape(t("common.delete")))
|
|
182
265
|
})));
|
|
183
266
|
}
|
|
184
267
|
});
|