diff --git a/.env b/.env deleted file mode 100644 index b6f26d4..0000000 --- a/.env +++ /dev/null @@ -1,33 +0,0 @@ -# In all environments, the following files are loaded if they exist, -# the latter taking precedence over the former: -# -# * .env contains default values for the environment variables needed by the app -# * .env.local uncommitted file with local overrides -# * .env.$APP_ENV committed environment-specific defaults -# * .env.$APP_ENV.local uncommitted environment-specific overrides -# -# Real environment variables win over .env files. -# -# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. -# https://symfony.com/doc/current/configuration/secrets.html -# -# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). -# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration - -###> symfony/framework-bundle ### -APP_ENV=dev -APP_SECRET= -APP_SHARE_DIR=var/share -###< symfony/framework-bundle ### - -###> symfony/routing ### -# Configure how to generate URLs in non-HTTP contexts, such as CLI commands. -# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands -DEFAULT_URI=http://localhost -###< symfony/routing ### - -# DynamoDB / JormunDB connection -DYNAMO_REGION=us-east-1 -DYNAMO_ENDPOINT=http://45.76.2.182:8002 -DYNAMO_KEY=AKIAIOSFODNN7EXAMPLE -DYNAMO_SECRET=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY diff --git a/src/Service/DynamoService.php b/src/Service/DynamoService.php index 4a010fc..f7bdf40 100644 --- a/src/Service/DynamoService.php +++ b/src/Service/DynamoService.php @@ -15,10 +15,10 @@ class DynamoService $this->client = new DynamoDbClient([ 'region' => $_ENV['DYNAMO_REGION'] ?? 'us-east-1', 'version' => 'latest', - 'endpoint' => $_ENV['DYNAMO_ENDPOINT'] ?? 'http://127.0.0.1:8002', + 'endpoint' => $_ENV['DYNAMO_ENDPOINT'] ?? 'https://jormun-write-through-dev.vultrlabs.dev', 'credentials' => [ - 'key' => $_ENV['DYNAMO_KEY'] ?? 'AKIAIOSFODNN7EXAMPLE', - 'secret' => $_ENV['DYNAMO_SECRET'] ?? 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', + 'key' => $_ENV['DYNAMO_KEY'], + 'secret' => $_ENV['DYNAMO_SECRET'], ], ]); diff --git a/templates/table/browse.html.twig b/templates/table/browse.html.twig index f0c6046..a97af3f 100644 --- a/templates/table/browse.html.twig +++ b/templates/table/browse.html.twig @@ -4,211 +4,213 @@ {% block title %}{{ tableName }} — Browse · Jormun Admin{% endblock %} {% block breadcrumbs %} - Home - / - {{ tableName }} - / - Browse + Home + / + {{ tableName }} + / + Browse {% endblock %} {% block sidebar_tables %} - {{ macros.sidebar_table_links(tables, tableName) }} + {{ macros.sidebar_table_links(tables, tableName) }} {% endblock %} {% block content %} {# Op Tabs #} {# Error #} {% if error %}
| Actions | - {% for col in columns %} -- {{ col }} - {% if keySchema.HASH is defined and keySchema.HASH.name == col %} - PK - {% endif %} - {% if keySchema.RANGE is defined and keySchema.RANGE.name == col %} - SK - {% endif %} - | - {% endfor %} -
|---|---|
| - - - - - | - {% for col in columns %} -- {% if item[col] is defined %} - {% set val = item[col] %} - {% if val is iterable %} - - {{ val|json_encode|slice(0, 40) }}{% if val|json_encode|length > 40 %}…{% endif %} - - {% else %} - {{ val|e|slice(0, 60) }}{% if (val|e|length) > 60 %}…{% endif %} - {% endif %} - {% else %} - NULL - {% endif %} - | - {% endfor %} -
| Actions | + {% for col in columns %} ++ {{ col }} + {% if keySchema.HASH is defined and keySchema.HASH.name == col %} + PK + {% endif %} + {% if keySchema.RANGE is defined and keySchema.RANGE.name == col %} + SK + {% endif %} + | + {% endfor %} +
|---|---|
| + + + + + | + {% for col in columns %} ++ {% if item[col] is defined %} + {% set val = item[col] %} + {% if val is iterable %} + + {{ val|json_encode|slice(0, 40) }}{% if val|json_encode|length > 40 %}…{% endif %} + + {% else %} + {% set valStr = val is iterable ? val|json_encode : val|e %} + {{ valStr|slice(0, 60) }}{% if valStr|length > 60 %}…{% endif %} + {% endif %} + {% else %} + NULL + {% endif %} + | + {% endfor %} +
This will permanently delete the item with key:
- -This will permanently delete the item with key:
+ +- Are you sure you want to drop {{ tableName }}? This action is irreversible and will delete all data. -
-+ Are you sure you want to drop {{ tableName }}? This action is irreversible and will delete all data. +
+