Sitelet https://github.com/COSSAS/SOARCA-GUI/pull/2
Skip to content

initial work on gui - #2

Merged
MaartendeKruijf merged 15 commits into
developmentfrom
feature/1-initial-work-on-gui
Jun 18, 2024
Merged

MaartendeKruijf merged 15 commits into
developmentfrom
feature/1-initial-work-on-gui

Conversation

@RabbITCybErSeC

Copy link
Copy Markdown
Collaborator

No description provided.

@MaartendeKruijf MaartendeKruijf linked an issue Jun 17, 2024 that may be closed by this pull request
@MaartendeKruijf
MaartendeKruijf force-pushed the feature/1-initial-work-on-gui branch from e0ccc29 to dcf5ed5 Compare June 17, 2024 14:48
@MaartendeKruijf
MaartendeKruijf force-pushed the feature/1-initial-work-on-gui branch from 634cbe8 to d9002a0 Compare June 17, 2024 15:16
Comment thread .gitignore
@@ -1,24 +1,8 @@
**/*.log

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add those back in

Comment thread views/auth/login_templ.go Outdated
})
}

func LoginBaseLayout() templ.Component {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor this function you can split it into the writer and variables, also use string interpolation to fill in the variables

Comment thread views/auth/login_templ.go Outdated
})
}

func LoginForm() templ.Component {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor

Comment thread views/auth/login_templ.go Outdated
}
ctx = templ.ClearChildren(ctx)
for _, err := range errors {
templ_7745c5c3_Err = components.WarningNofication(err.Error()).Render(ctx, templ_7745c5c3_Buffer)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err.Error() could expose sensitive information

Comment thread views/components/headbar_templ.go Outdated
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<header class=\"w-full items-center bg-slate-50 py-2 px-6 hidden sm:flex\"><div class=\"w-1/2\"></div><div x-data=\"{ isOpen: false }\" class=\"relative w-1/2 flex justify-end\"><button @click=\"isOpen = !isOpen\" class=\"realtive z-10 w-12 h-12 rounded-full overflow-hidden border-4 border-gray-400 hover:border-blue-600 focus:border-blue-600 focus:outline-none\"><img src=\"https://source.unsplash.com/uJ8LNVCBjFQ/400x400\"></button> <button x-show=\"isOpen\" @click=\"isOpen = false\" class=\"h-full w-full fixed inset-0 cursor-default\"></button><div x-show=\"isOpen\" class=\"absolute w-32 bg-white rounded-lg shadow-lg py-2 mt-16 z-50\"><a href=\"#\" class=\"block px-4 py-2 account-link hover:text-blue-600\">Account</a> <a href=\"#\" class=\"block px-4 py-2 account-link hover:text-blue-600\">Settings</a> <a href=\"#\" class=\"block px-4 py-2 account-link hover:text-blue-600\">Sign Out</a></div></div></header>")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor

Comment thread views/components/navbar_templ.go Outdated
templ_7745c5c3_Var4 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<aside class=\"relative bg-blue-600 dark:bg-blue-950 h-screen w-64 hidden sm:block shadow-xl\"><div class=\"p-6\"><a href=\"index.html\" class=\"text-white text-3xl font-semibold uppercase hover:text-gray-300\"><img src=\"https://github.com/COSSAS/SOARCA/raw/development/img/soarca-logo.svg\" class=\"w-30 py-3 md:py-0 g-image\"></a> <button class=\"w-full bg-white text-blue-800 font-semibold py-2 mt-5 rounded-br-lg rounded-bl-lg rounded-tr-lg shadow-lg hover:shadow-xl hover:bg-gray-300 flex items-center justify-center\"><i class=\"fas fa-plus mr-3\"></i> New Report</button></div><nav class=\"text-white text-base font-semibold pt-3\">")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor

@MaartendeKruijf MaartendeKruijf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With pain in my heart I will this due to having no tests

@MaartendeKruijf
MaartendeKruijf merged commit 4cbf153 into development Jun 18, 2024
@MaartendeKruijf
MaartendeKruijf deleted the feature/1-initial-work-on-gui branch June 18, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initial Code

2 participants