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
12 changes: 12 additions & 0 deletions backend/i18n/frontend_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "Noch kein Client erstellt.",
"clients.loadFailed": "Fehler beim Laden der Clients. Bitte neu laden.",
"clients.refreshTooltip": "Clients aktualisieren",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "Clients neu geladen.",
"clients.revokeFailed": "Fehler beim Widerrufen des Clients. Bitte neu laden.",
"clients.tokenFailed": "Fehler beim Erstellen des Tokens. Bitte versuchen Sie es erneut.",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Speichern & bearbeiten",
"common.schema": "Schema",
"common.schemas": "Schemas",
"common.scriptLogs": "Script Logs",
"common.search": "Suchen",
"common.searchGoogleMaps": "Google Maps durchsuchen",
"common.searchResults": "Suchergebnisse",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "Fehler beim Aktualisieren der UI-Felder. Bitte neu laden.",
"schemas.validateOnPublish": "Beim Veröffentlichen validieren",
"schemas.validateOnPublishHint": "Verwenden Sie benutzerdefinierte Workflows, wenn Sie mehr Kontrolle darüber benötigen, für welche Status ein Inhalt validiert werden soll.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "Filter hinzufügen",
"search.addGroup": "Gruppe hinzufügen",
"search.addSorting": "Sortierung hinzufügen",
Expand Down
12 changes: 12 additions & 0 deletions backend/i18n/frontend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "No client created yet.",
"clients.loadFailed": "Failed to load clients. Please reload.",
"clients.refreshTooltip": "Refresh clients",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "Clients reloaded.",
"clients.revokeFailed": "Failed to revoke client. Please reload.",
"clients.tokenFailed": "Failed to create token. Please retry.",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Save & editor",
"common.schema": "Schema",
"common.schemas": "Schemas",
"common.scriptLogs": "Script Logs",
"common.search": "Search",
"common.searchGoogleMaps": "Search Google Maps",
"common.searchResults": "Search Results",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "Failed to update UI fields. Please reload.",
"schemas.validateOnPublish": "Validate when publishing",
"schemas.validateOnPublishHint": "Use custom workflows when you need more control for which statuses a content should be validated.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "Add Filter",
"search.addGroup": "Add Group",
"search.addSorting": "Add Sorting",
Expand Down
12 changes: 12 additions & 0 deletions backend/i18n/frontend_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "Aucun client créé pour le moment.",
"clients.loadFailed": "Échec du chargement des clients. Veuillez recharger.",
"clients.refreshTooltip": "Actualiser les clients",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "Clients rechargés.",
"clients.revokeFailed": "Échec de la révocation du client. Veuillez recharger.",
"clients.tokenFailed": "Échec de la création du jeton. Veuillez réessayer.",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Save & editor",
"common.schema": "Schéma",
"common.schemas": "Schémas",
"common.scriptLogs": "Script Logs",
"common.search": "Recherche",
"common.searchGoogleMaps": "Rechercher Google Maps",
"common.searchResults": "Résultats de recherche",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "Échec de la mise à jour des champs de l'interface utilisateur. Veuillez recharger.",
"schemas.validateOnPublish": "Valider lors de la publication",
"schemas.validateOnPublishHint": "Utilisez des flux de travail personnalisés lorsque vous avez besoin de plus de contrôle sur les statuts pour lesquels un contenu doit être validé.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "Ajouter un filtre",
"search.addGroup": "Ajouter un groupe",
"search.addSorting": "Ajouter un tri",
Expand Down
12 changes: 12 additions & 0 deletions backend/i18n/frontend_it.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "Nessun client ancora creato.",
"clients.loadFailed": "Non è stato possibile caricare i client. Per favore ricarica.",
"clients.refreshTooltip": "Aggiorna i client",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "Client ricaricati.",
"clients.revokeFailed": "Non è stato possibile rimuovere il client. Per favore ricarica.",
"clients.tokenFailed": "Non è stato possibile creare il token. Per favore riprova.",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Save & editor",
"common.schema": "Schema",
"common.schemas": "Schemi",
"common.scriptLogs": "Script Logs",
"common.search": "Search",
"common.searchGoogleMaps": "Cerca su Google Maps",
"common.searchResults": "Risultati di ricerca",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "Non è stato possibile aggiornare i campi della UI. Per favore ricarica.",
"schemas.validateOnPublish": "Valida quando pubblichi",
"schemas.validateOnPublishHint": "Use custom workflows when you need more control for which statuses a content should be validated.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "Aggiungi un Filtro",
"search.addGroup": "Aggiungi un Gruppo",
"search.addSorting": "Aggiungi ordinamento",
Expand Down
12 changes: 12 additions & 0 deletions backend/i18n/frontend_nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "Nog geen client aangemaakt.",
"clients.loadFailed": "Kan clients niet laden. Laad opnieuw.",
"clients.refreshTooltip": "Ververs clients",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "Clients herladen.",
"clients.revokeFailed": "Kan client niet intrekken. Laad opnieuw.",
"clients.tokenFailed": "Maken van token is mislukt. Probeer het opnieuw.",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Save & editor",
"common.schema": "Schema",
"common.schemas": "Schema's",
"common.scriptLogs": "Script Logs",
"common.search": "Zoeken",
"common.searchGoogleMaps": "Zoeken in Google Maps",
"common.searchResults": "Zoekresultaten",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "Bijwerken van UI-velden is mislukt. Laad opnieuw.",
"schemas.validateOnPublish": "Valideren bij het publiceren",
"schemas.validateOnPublishHint": "Use custom workflows when you need more control for which statuses a content should be validated.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "Filter toevoegen",
"search.addGroup": "Groep toevoegen",
"search.addSorting": "Sortering toevoegen",
Expand Down
12 changes: 12 additions & 0 deletions backend/i18n/frontend_pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "Nenhum cliente foi criado ainda.",
"clients.loadFailed": "Falhou em carregar clientes. Por favor, recarregue.",
"clients.refreshTooltip": "Atualizar clientes",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "Clientes recarregados.",
"clients.revokeFailed": "Falhou em revogar o cliente. Por favor, recarregue.",
"clients.tokenFailed": "Falhou em criar um símbolo. Por favor, reda o redando.",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Save & editor",
"common.schema": "Esquema",
"common.schemas": "Esquemas",
"common.scriptLogs": "Script Logs",
"common.search": "Pesquisar",
"common.searchGoogleMaps": "Pesquisar Google Maps",
"common.searchResults": "Resultados da pesquisa",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "Falhou na atualização dos campos de UI. Por favor, recarregue.",
"schemas.validateOnPublish": "Validar ao publicar",
"schemas.validateOnPublishHint": "Utilize fluxos de trabalho personalizados quando necessitar de mais controlo para os estatutos que um conteúdo deve ser validado.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "Adicionar filtro",
"search.addGroup": "Adicionar Grupo",
"search.addSorting": "Adicionar Classificação",
Expand Down
12 changes: 12 additions & 0 deletions backend/i18n/frontend_zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "尚未创建客户端。",
"clients.loadFailed": "加载客户端失败。请重新加载。",
"clients.refreshTooltip": "刷新客户端",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "客户端重新加载。",
"clients.revokeFailed": "撤销客户端失败。请重新加载。",
"clients.tokenFailed": "创建令牌失败。请重试。",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Save & editor",
"common.schema": "Schema",
"common.schemas": "Schemas",
"common.scriptLogs": "Script Logs",
"common.search": "搜索",
"common.searchGoogleMaps": "搜索谷歌地图",
"common.searchResults": "搜索结果",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "无法更新 UI 字段。请重新加载。",
"schemas.validateOnPublish": "发布时验证",
"schemas.validateOnPublishHint": "Use custom workflows when you need more control for which statuses a content should be validated.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "添加过滤器",
"search.addGroup": "添加组",
"search.addSorting": "添加排序",
Expand Down
1 change: 1 addition & 0 deletions backend/i18n/source/backend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
"history.apps.assetScriptsConfigured": "updated asset scripts",
"history.apps.clientAdded": "added client {[Id]} to app",
"history.apps.clientRevoked": "revoked client {[Id]}",
"history.apps.clientSecretRegenerated": "regenerated secret of client {[Id]}",
"history.apps.clientUpdated": "updated client {[Id]}",
"history.apps.common.updated": "updated general settings",
"history.apps.contributoreAssigned": "assigned {user:[Contributor]} as {[Role]}",
Expand Down
12 changes: 12 additions & 0 deletions backend/i18n/source/frontend_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
"clients.empty": "No client created yet.",
"clients.loadFailed": "Failed to load clients. Please reload.",
"clients.refreshTooltip": "Refresh clients",
"clients.regenerateSecret": "Regenerate Client Secret",
"clients.regenerateSecretConfirmText": "Do you really want to regenerate the secret? Applications that use the current secret cannot request new access tokens anymore.",
"clients.regenerateSecretConfirmTitle": "Regenerate secret",
"clients.regenerateSecretFailed": "Failed to regenerate client secret. Please reload.",
"clients.reloaded": "Clients reloaded.",
"clients.revokeFailed": "Failed to revoke client. Please reload.",
"clients.tokenFailed": "Failed to create token. Please retry.",
Expand Down Expand Up @@ -390,6 +394,7 @@
"common.saveEdit": "Save & editor",
"common.schema": "Schema",
"common.schemas": "Schemas",
"common.scriptLogs": "Script Logs",
"common.search": "Search",
"common.searchGoogleMaps": "Search Google Maps",
"common.searchResults": "Search Results",
Expand Down Expand Up @@ -1131,6 +1136,13 @@
"schemas.updateUIFieldsFailed": "Failed to update UI fields. Please reload.",
"schemas.validateOnPublish": "Validate when publishing",
"schemas.validateOnPublishHint": "Use custom workflows when you need more control for which statuses a content should be validated.",
"scriptLogs.description": "The console output of content and asset scripts. Only the latest logs are kept.",
"scriptLogs.empty": "No script logs found.",
"scriptLogs.filterPlaceholder": "Filter by script, e.g. contents/my-schema",
"scriptLogs.loadFailed": "Failed to load script logs. Please reload.",
"scriptLogs.omitted": "{count} more entries have been omitted.",
"scriptLogs.refreshTooltip": "Refresh script logs",
"scriptLogs.reloaded": "Script logs reloaded.",
"search.addFilter": "Add Filter",
"search.addGroup": "Add Group",
"search.addSorting": "Add Sorting",
Expand Down
1 change: 1 addition & 0 deletions backend/src/Squidex.Data.EntityFramework/AppDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ protected override void OnModelCreating(ModelBuilder builder)
builder.UseRequest(jsonSerializer, jsonColumnType);
builder.UseRules(jsonSerializer, jsonColumnType);
builder.UseSchema(jsonSerializer, jsonColumnType);
builder.UseScriptLogs(jsonSerializer, jsonColumnType);
builder.UseSettings(jsonSerializer, jsonColumnType);
builder.UseTags(jsonSerializer, jsonColumnType);
builder.UseTeams(jsonSerializer, jsonColumnType);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using Squidex.Domain.Apps.Core.Scripting;
using Squidex.Infrastructure;
using Squidex.Infrastructure.Json;

namespace Microsoft.EntityFrameworkCore;

public static class EFScriptLogBuilder
{
public static void UseScriptLogs(this ModelBuilder builder, IJsonSerializer jsonSerializer, string? jsonColumn)
{
builder.Entity<ScriptLogRecord>(b =>
{
b.ToTable("ScriptLogs");
b.HasKey(x => x.Id);
b.HasIndex(x => new { x.AppId, x.Timestamp });
b.HasIndex(x => x.Timestamp);
b.Property(x => x.Id).AsString();
b.Property(x => x.AppId).AsString();
b.Property(x => x.Name).HasMaxLength(255);
b.Property(x => x.Entries).AsJsonString(jsonSerializer, jsonColumn);
b.Property(x => x.Timestamp).AsDateTimeOffset();
});
}
}
Loading
Loading