From 27a91409a623347d148bc8d0f0fa81a955a038bd Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 7 Feb 2026 19:02:40 +0000 Subject: Change directive page --- makima/frontend/src/routes/directives.tsx | 218 +++++++++++++++++------------- 1 file changed, 123 insertions(+), 95 deletions(-) (limited to 'makima/frontend/src/routes') diff --git a/makima/frontend/src/routes/directives.tsx b/makima/frontend/src/routes/directives.tsx index 9437389..939961c 100644 --- a/makima/frontend/src/routes/directives.tsx +++ b/makima/frontend/src/routes/directives.tsx @@ -32,12 +32,11 @@ export default function DirectivesPage() { ); } - return ( -
- - -
- ); + if (isAuthConfigured && !isAuthenticated) { + return null; + } + + return ; } function DirectivesContent() { @@ -136,98 +135,127 @@ function DirectivesContent() { [] ); - // Detail view - if (id) { - if (detailLoading) { - return ( -
-

Loading directive...

-
- ); - } - if (!selectedDirective) { - return ( -
-

Directive not found

-
- ); - } - return ( -
- -
- ); - } - - // List view return ( -
- {error && ( -
- {error} -
- )} - - {showCreateForm && ( -
-

- New Directive -

-
- setCreateTitle(e.target.value)} - className="w-full px-2 py-1.5 font-mono text-xs text-[#dbe7ff] bg-[#0a1628] border border-[rgba(117,170,252,0.3)] focus:border-[#75aafc] outline-none" - /> -