From 1a06ef7d5f79de29b0f974f30eab18d5822c4de9 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 22 Dec 2023 16:53:38 -0300 Subject: [PATCH] frontend: link to /issues/edit#id=X --- twenty-frontend/nanoc/rules/issues.rules | 6 +++--- .../src/html/issues/{read => edit}/index.html.erb | 0 twenty-frontend/src/js/components/Issues.tsx | 2 +- .../src/js/{entry-point => main}/connections.tsx | 0 twenty-frontend/src/js/{entry-point => main}/issues.tsx | 0 twenty-frontend/src/js/{entry-point => main}/new-issue.tsx | 0 twenty-frontend/src/js/{entry-point => main}/read-issue.tsx | 0 7 files changed, 4 insertions(+), 4 deletions(-) rename twenty-frontend/src/html/issues/{read => edit}/index.html.erb (100%) rename twenty-frontend/src/js/{entry-point => main}/connections.tsx (100%) rename twenty-frontend/src/js/{entry-point => main}/issues.tsx (100%) rename twenty-frontend/src/js/{entry-point => main}/new-issue.tsx (100%) rename twenty-frontend/src/js/{entry-point => main}/read-issue.tsx (100%) diff --git a/twenty-frontend/nanoc/rules/issues.rules b/twenty-frontend/nanoc/rules/issues.rules index 5a7cea8..464400c 100644 --- a/twenty-frontend/nanoc/rules/issues.rules +++ b/twenty-frontend/nanoc/rules/issues.rules @@ -33,11 +33,11 @@ compile("/js/entry-point/issues.tsx") do end ## -# GET /issues/read# -compile("/html/issues/read/index.html.erb") do +# GET /issues/id#id=X +compile("/html/issues/edit/index.html.erb") do layout "/default.*" filter(:erb) - write("/issues/read/index.html") + write("/issues/edit/index.html") end ## diff --git a/twenty-frontend/src/html/issues/read/index.html.erb b/twenty-frontend/src/html/issues/edit/index.html.erb similarity index 100% rename from twenty-frontend/src/html/issues/read/index.html.erb rename to twenty-frontend/src/html/issues/edit/index.html.erb diff --git a/twenty-frontend/src/js/components/Issues.tsx b/twenty-frontend/src/js/components/Issues.tsx index 617dfdc..d2a912a 100644 --- a/twenty-frontend/src/js/components/Issues.tsx +++ b/twenty-frontend/src/js/components/Issues.tsx @@ -25,7 +25,7 @@ export function Issues() { return (
  • - + {issue.title} onDestroy(issue)} /> diff --git a/twenty-frontend/src/js/entry-point/connections.tsx b/twenty-frontend/src/js/main/connections.tsx similarity index 100% rename from twenty-frontend/src/js/entry-point/connections.tsx rename to twenty-frontend/src/js/main/connections.tsx diff --git a/twenty-frontend/src/js/entry-point/issues.tsx b/twenty-frontend/src/js/main/issues.tsx similarity index 100% rename from twenty-frontend/src/js/entry-point/issues.tsx rename to twenty-frontend/src/js/main/issues.tsx diff --git a/twenty-frontend/src/js/entry-point/new-issue.tsx b/twenty-frontend/src/js/main/new-issue.tsx similarity index 100% rename from twenty-frontend/src/js/entry-point/new-issue.tsx rename to twenty-frontend/src/js/main/new-issue.tsx diff --git a/twenty-frontend/src/js/entry-point/read-issue.tsx b/twenty-frontend/src/js/main/read-issue.tsx similarity index 100% rename from twenty-frontend/src/js/entry-point/read-issue.tsx rename to twenty-frontend/src/js/main/read-issue.tsx