From 06e6e61656b2d815a7ab4a390242be433801e521 Mon Sep 17 00:00:00 2001 From: Clivern Date: Tue, 25 Oct 2022 01:09:58 +0200 Subject: [PATCH] feat: support to edit environments --- README.md | 6 +- api.yml | 2 +- docker-compose-cluster.yml | 6 +- docker-compose-nginx.yml | 2 +- docker-compose.yml | 2 +- docs/index.md | 4 +- lib/lynx_web/router.ex | 2 +- lib/lynx_web/templates/page/project.html.heex | 55 +++++++++- mix.exs | 2 +- priv/static/theme/app/backend.js | 101 +++++++++++++++++- 10 files changed, 164 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 08508c8..155291c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- Lynx Logo + Lynx Logo

Lynx

A Fast, Secure and Reliable Terraform Backend, Set up in Minutes.

@@ -7,10 +7,10 @@ - + - + diff --git a/api.yml b/api.yml index a812aae..424672b 100644 --- a/api.yml +++ b/api.yml @@ -7,7 +7,7 @@ info: license: name: MIT License url: https://github.com/Clivern/Lynx/blob/main/LICENSE - version: 0.12.1 + version: 0.12.2 externalDocs: description: Find out more about lynx url: https://github.com/Clivern/Lynx diff --git a/docker-compose-cluster.yml b/docker-compose-cluster.yml index 79bac06..a0ca704 100644 --- a/docker-compose-cluster.yml +++ b/docker-compose-cluster.yml @@ -2,7 +2,7 @@ version: '3.8' services: app1: - image: clivern/lynx:0.12.1 + image: clivern/lynx:0.12.2 environment: APP_NAME: Lynx APP_PORT: 4001 @@ -27,7 +27,7 @@ services: - db app2: - image: clivern/lynx:0.12.1 + image: clivern/lynx:0.12.2 environment: APP_NAME: Lynx APP_PORT: 4002 @@ -52,7 +52,7 @@ services: - db app3: - image: clivern/lynx:0.12.1 + image: clivern/lynx:0.12.2 environment: APP_NAME: Lynx APP_PORT: 4003 diff --git a/docker-compose-nginx.yml b/docker-compose-nginx.yml index 76f3d65..85c8079 100644 --- a/docker-compose-nginx.yml +++ b/docker-compose-nginx.yml @@ -2,7 +2,7 @@ version: '3.8' services: app: - image: clivern/lynx:0.12.1 + image: clivern/lynx:0.12.2 environment: APP_NAME: Lynx APP_PORT: 4000 diff --git a/docker-compose.yml b/docker-compose.yml index 08364bf..851e78e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.8' services: app: - image: clivern/lynx:0.12.1 + image: clivern/lynx:0.12.2 environment: APP_NAME: Lynx APP_PORT: 4000 diff --git a/docs/index.md b/docs/index.md index a3d927d..5c0ee42 100644 --- a/docs/index.md +++ b/docs/index.md @@ -21,8 +21,8 @@ hero: icon: edit download_link: - label: Latest Release v0.12.1 - url: https://github.com/Clivern/Lynx/releases/tag/0.12.1 + label: Latest Release v0.12.2 + url: https://github.com/Clivern/Lynx/releases/tag/0.12.2 features: rows: diff --git a/lib/lynx_web/router.ex b/lib/lynx_web/router.ex index f4a0faa..0656870 100644 --- a/lib/lynx_web/router.ex +++ b/lib/lynx_web/router.ex @@ -133,7 +133,7 @@ defmodule LynxWeb.Router do defp add_server_header(conn, _opts) do conn - |> put_resp_header("x-server-version", "lynx/0.12.1") + |> put_resp_header("x-server-version", "lynx/0.12.2") end # Enables LiveDashboard only for development diff --git a/lib/lynx_web/templates/page/project.html.heex b/lib/lynx_web/templates/page/project.html.heex index 8f5f333..6c4ff38 100644 --- a/lib/lynx_web/templates/page/project.html.heex +++ b/lib/lynx_web/templates/page/project.html.heex @@ -2,6 +2,7 @@ var _globals = { new_environment: '<%= gettext "Environment created successfully!" %>', delete_environment_message: '<%= gettext "Environment deleted successfully!" %>', + update_environment_message: '<%= gettext "Environment updated successfully!" %>', delete_environment_alert: '<%= gettext "You are trying to delete an environment! are you sure?" %>', delete_environment_endpoint: '<%= Routes.environment_path(@conn, :delete, @data.uuid, "UUID") %>', get_environment_endpoint: '<%= Routes.environment_path(@conn, :index, @data.uuid, "UUID") %>', @@ -305,7 +306,7 @@ - + @@ -372,6 +373,58 @@ +

+