Documentation
¶
Index ¶
- Variables
- func AdminPageLayout(active string, children ...e.Node) e.Node
- func ApiKeyCreatedDialog(k *apikey.ApiKey, plain string) e.Node
- func ApiKeySheet(key *apikey.ApiKey) e.Node
- func ApiKeysEmptyState() e.Node
- func ApiKeysPage(data *ApiKeysPageData) e.Node
- func ApiKeysTable(keys []*apikey.ApiKey) e.Node
- func ApiKeysTableRow(key *apikey.ApiKey) e.Node
- func AuthLayout(children ...e.Node) e.Node
- func BootstrapForm(f *BootstrapFormData) e.Node
- func BootstrapPage() e.Node
- func Breadcrumbs(crumbs ...Breadcrumb) e.Node
- func BucketEmptyState() e.Node
- func BucketNavTabs(links *BucketLinks, active string) e.Node
- func BucketObjectsPage(d BucketObjectsPageData) e.Node
- func BucketPage(links *BucketLinks, activeTab string, breadcrumbs, pageTitle e.Node, ...) e.Node
- func BucketPropertiesPage(b *bucket.Bucket) e.Node
- func BucketSettingsPage(b *bucket.Bucket) e.Node
- func BucketsEmptyState() e.Node
- func BucketsPage(buckets []*bucket.Bucket) e.Node
- func BucketsTable(buckets []*bucket.Bucket) e.Node
- func ConfirmationDialog(d *ConfirmationDialogData) e.Node
- func CreateApiKeyDialog() e.Node
- func CreateBucketDialog() e.Node
- func DashboardMetrics(d DashboardData) e.Node
- func DashboardPage(d DashboardData) e.Node
- func DeleteApiKeyDialog(key *apikey.ApiKey) e.Node
- func Detail(title, value string) e.Node
- func Details(title string, details ...e.Node) e.Node
- func Dialog(id string, children ...e.Node) e.Node
- func DialogBackdrop() e.Node
- func DialogContent(children ...e.Node) e.Node
- func DialogTitle(children ...e.Node) e.Node
- func DownloadObjectLink(bucket, key string) string
- func FormLabel(htmlFor, text string) e.Node
- func ListPageLayout(title string, sidebar e.Node, children ...e.Node) e.Node
- func LoggedInLayout(sidebar e.Node, children ...e.Node) e.Node
- func LoginForm(d LoginFormData) e.Node
- func LoginPage() e.Node
- func MetricCard(title string, icon e.Node, value, lead string) e.Node
- func NavTabs(links ...*NavLink) e.Node
- func NotFoundPage() e.Node
- func ObjectPropertiesPage(b *bucket.Bucket, o *object.Object) e.Node
- func ObjectsTable(objects []ObjectData) e.Node
- func OpenObjectLink(bucket, key string) string
- func PageHeader(title, closeLink string) e.Node
- func PageTitle(title string) e.Node
- func PathBreadcrumbs(links *BucketLinks, b *bucket.Bucket, key string) e.Node
- func RenderCss(name string) *srv.Response
- func RenderImg(name string) *srv.Response
- func RenderJs(name string) *srv.Response
- func Sheet(m sheetModel, children ...e.Node) e.Node
- func Shell(title string, children ...e.Node) e.Node
- func Sidebar(items ...SidebarItem) e.Node
- func TabbedPageLayout(sidebar, pageHeader, navTabs e.Node, children ...e.Node) e.Node
- func Table(children ...e.Node) e.Node
- func TableBody(children ...e.Node) e.Node
- func TableCell(children ...e.Node) e.Node
- func TableCellC(className string, children ...e.Node) e.Node
- func TableHead(className string, children ...e.Node) e.Node
- func TableHeader(children ...e.Node) e.Node
- func TableRow(children ...e.Node) e.Node
- func ToastContainer() e.Node
- func UsersPage(d *UsersPageData) e.Node
- func UsersTable(users []*user.User) e.Node
- func UsersTableRow(u *user.User) e.Node
- type ApiKeysPageData
- type BootstrapFormData
- type Breadcrumb
- type BreadcrumbModel
- type BreadcrumbsModel
- type BucketLinks
- type BucketObjectsPageData
- type ConfirmationDialogData
- type DashboardData
- type DetailModel
- type DetailsModel
- type LoginFormData
- type NavLink
- type NavTabsModel
- type ObjectData
- type SidebarItem
- type SidebarModel
- type UsersPageData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IconArchive = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-archive"><rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/></svg>`) IconClose = e.Raw(`<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4">`) IconCog = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cog"><path d="M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z"/><path d="M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/><path d="M12 2v2"/><path d="M12 22v-2"/><path d="m17 20.66-1-1.73"/><path d="M11 10.27 7 3.34"/><path d="m20.66 17-1.73-1"/><path d="m3.34 7 1.73 1"/><path d="M14 12h8"/><path d="M2 12h2"/><path d="m20.66 7-1.73 1"/><path d="m3.34 17 1.73-1"/><path d="m17 3.34-1 1.73"/><path d="m11 13.73-4 6.93"/></svg>`) IconCopy = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`) IconDialogClose = e.Raw(`<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4"><path d="M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>`) IconFiles = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-files"><path d="M20 7h-3a2 2 0 0 1-2-2V2"/><path d="M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z"/><path d="M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8"/></svg>`) IconGauge = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-gauge"><path d="m12 14 4-4"/><path d="M3.34 19a10 10 0 1 1 17.32 0"/></svg>`) IconKeyRound = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-key-round"><path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/></svg>`) IconPlus = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`) IconSlidersHorizontal = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sliders-horizontal"><line x1="21" x2="14" y1="4" y2="4"/><line x1="10" x2="3" y1="4" y2="4"/><line x1="21" x2="12" y1="12" y2="12"/><line x1="8" x2="3" y1="12" y2="12"/><line x1="21" x2="16" y1="20" y2="20"/><line x1="12" x2="3" y1="20" y2="20"/><line x1="14" x2="14" y1="2" y2="6"/><line x1="8" x2="8" y1="10" y2="14"/><line x1="16" x2="16" y1="18" y2="22"/></svg>`) IconUsersRound = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-round"><path d="M18 21a8 8 0 0 0-16 0"/><circle cx="10" cy="8" r="5"/><path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/></svg>`) IconX = e.Raw(`<svg class="h-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`) )
Functions ¶
func AdminPageLayout ¶ added in v0.4.0
func ApiKeyCreatedDialog ¶ added in v0.4.0
func ApiKeysEmptyState ¶ added in v0.4.0
func ApiKeysPage ¶ added in v0.4.0
func ApiKeysPage(data *ApiKeysPageData) e.Node
func BootstrapForm ¶ added in v0.4.0
func BootstrapForm(f *BootstrapFormData) e.Node
func BootstrapPage ¶ added in v0.4.0
func Breadcrumbs ¶ added in v0.4.0
func Breadcrumbs(crumbs ...Breadcrumb) e.Node
func BucketEmptyState ¶ added in v0.4.0
func BucketNavTabs ¶ added in v0.4.0
func BucketNavTabs(links *BucketLinks, active string) e.Node
func BucketObjectsPage ¶ added in v0.4.0
func BucketObjectsPage(d BucketObjectsPageData) e.Node
func BucketPage ¶ added in v0.4.0
func BucketsEmptyState ¶ added in v0.4.0
func ConfirmationDialog ¶ added in v0.4.0
func ConfirmationDialog(d *ConfirmationDialogData) e.Node
func CreateApiKeyDialog ¶ added in v0.4.0
func CreateBucketDialog ¶ added in v0.4.0
func DashboardMetrics ¶ added in v0.4.0
func DashboardMetrics(d DashboardData) e.Node
func DashboardPage ¶ added in v0.4.0
func DashboardPage(d DashboardData) e.Node
func DialogBackdrop ¶ added in v0.4.0
func DownloadObjectLink ¶ added in v0.3.0
func ListPageLayout ¶ added in v0.4.0
func LoggedInLayout ¶ added in v0.4.0
func LoginForm ¶ added in v0.4.0
func LoginForm(d LoginFormData) e.Node
func MetricCard ¶ added in v0.4.0
func NotFoundPage ¶ added in v0.4.0
func ObjectPropertiesPage ¶ added in v0.4.0
func ObjectsTable ¶ added in v0.4.0
func ObjectsTable(objects []ObjectData) e.Node
func OpenObjectLink ¶ added in v0.3.0
func PageHeader ¶ added in v0.4.0
func PathBreadcrumbs ¶ added in v0.4.0
func Sidebar ¶ added in v0.4.0
func Sidebar(items ...SidebarItem) e.Node
func TabbedPageLayout ¶ added in v0.4.0
func ToastContainer ¶ added in v0.4.0
func UsersPage ¶ added in v0.4.0
func UsersPage(d *UsersPageData) e.Node
Types ¶
type ApiKeysPageData ¶
type BootstrapFormData ¶ added in v0.4.0
type Breadcrumb ¶ added in v0.4.0
type BreadcrumbModel ¶
type BreadcrumbsModel ¶
type BreadcrumbsModel struct {
Crumbs []*BreadcrumbModel
}
func NewBreadcrumbs ¶ added in v0.2.0
func NewBreadcrumbs() *BreadcrumbsModel
func (*BreadcrumbsModel) AddLink ¶ added in v0.2.0
func (m *BreadcrumbsModel) AddLink(title, link string) *BreadcrumbsModel
func (*BreadcrumbsModel) AddTitle ¶ added in v0.2.0
func (m *BreadcrumbsModel) AddTitle(title string) *BreadcrumbsModel
func (*BreadcrumbsModel) Last ¶ added in v0.2.0
func (m *BreadcrumbsModel) Last() *BreadcrumbModel
type BucketLinks ¶ added in v0.2.0
type BucketLinks struct {
Objects string
Properties string
Settings string
// contains filtered or unexported fields
}
func NewBucketLinks ¶ added in v0.2.0
func NewBucketLinks(bucketName string) *BucketLinks
func (*BucketLinks) Folder ¶ added in v0.2.0
func (l *BucketLinks) Folder(prefix string) string
func (*BucketLinks) Object ¶ added in v0.2.0
func (l *BucketLinks) Object(key string) string
type BucketObjectsPageData ¶ added in v0.2.0
type BucketObjectsPageData struct {
Bucket *bucket.Bucket
Prefix string
Objects []ObjectData
}
type ConfirmationDialogData ¶ added in v0.4.0
type DashboardData ¶
type DetailModel ¶
type DetailsModel ¶
type DetailsModel struct {
Title string
Details []DetailModel
}
type LoginFormData ¶ added in v0.4.0
type NavLink ¶
type NavLink struct {
}
func ObjectsNavTab ¶ added in v0.4.0
func PropertiesNavTab ¶ added in v0.4.0
func SettingsNavTab ¶ added in v0.4.0
type NavTabsModel ¶
type NavTabsModel struct {
}
func NewNavTabsModel ¶ added in v0.2.0
func NewNavTabsModel() *NavTabsModel
type ObjectData ¶ added in v0.2.0
type SidebarItem ¶ added in v0.4.0
type SidebarModel ¶
type SidebarModel struct {
Items []NavLink
}
type UsersPageData ¶
Source Files
¶
- Details.go
- admin_page.go
- api_keys_empty_state.go
- api_keys_page.go
- api_keys_table.go
- apikey.go
- app_sidebar.go
- aria.go
- atoms.go
- auth_layout.go
- bootstrap_form.go
- bootstrap_page.go
- breadcrumbs.go
- bucket.go
- bucket_empty_state.go
- bucket_navtabs.go
- bucket_objects_page.go
- bucket_page.go
- bucket_properties_page.go
- bucket_settings_page.go
- buckets_page.go
- cn.go
- components.go
- dashboard_page.go
- dialog.go
- form.go
- formatter.go
- icon.go
- links.go
- list_page_layout.go
- logged_in_layout.go
- login_form.go
- login_page.go
- main.go
- metric_card.go
- nav.go
- not_found_page.go
- object.go
- object_properties_page.go
- objects_table.go
- page_title.go
- pageheader.go
- sheet.go
- shell.go
- sidebar.go
- tabbed_page_layout.go
- table.go
- toast.go
- users_page.go
- users_table.go
- util.go
Click to show internal directories.
Click to hide internal directories.