layout, minimized spaces between border
This commit is contained in:
		
							parent
							
								
									7dc2f5c5c7
								
							
						
					
					
						commit
						40b552fd7b
					
				
							
								
								
									
										6
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										6
									
								
								Makefile
								
								
								
								
							| 
						 | 
				
			
			@ -8,7 +8,7 @@ GOBIN := /usr/bin
 | 
			
		|||
BUILD_DIR = build
 | 
			
		||||
BINARY = $(BUILD_DIR)/$(APP_NAME)
 | 
			
		||||
 | 
			
		||||
.PHONY: all build help clean install uninstall
 | 
			
		||||
.PHONY: all build help clean install uninstall #build-static
 | 
			
		||||
 | 
			
		||||
all: build
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -20,6 +20,10 @@ install: build ## Install the application
 | 
			
		|||
	@echo "Installing $(APP_NAME)..."
 | 
			
		||||
	GOBIN=$(GOBIN) $(GO_INSTALL)
 | 
			
		||||
 | 
			
		||||
# build-static: ## Build a static application
 | 
			
		||||
# 	@echo "Building static $(APP_NAME)..."
 | 
			
		||||
# 	CGO_ENABLED=0 $(GO_BUILD) --ldflags '-extldflags=-static -w -s' -o $(BINARY)-static
 | 
			
		||||
 | 
			
		||||
uninstall: clean ## Remove build artifacts
 | 
			
		||||
	@echo "Removing installed binary..."
 | 
			
		||||
	rm -f $(GOBIN)/$(APP_NAME)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,9 +30,9 @@
 | 
			
		|||
    </button>
 | 
			
		||||
 | 
			
		||||
  <div class="container-fluid px-4 py-3 pb-5">
 | 
			
		||||
    <div class="row g-4">
 | 
			
		||||
    <div class="row g-2">
 | 
			
		||||
      <!-- Agent List -->
 | 
			
		||||
      <div class="col-12 col-md-6 pb-4">
 | 
			
		||||
      <div class="col-12 col-md-6">
 | 
			
		||||
        <!-- <h3>Agents</h3> -->
 | 
			
		||||
        <div class="table-responsive">
 | 
			
		||||
          <div id="agentList"
 | 
			
		||||
| 
						 | 
				
			
			@ -46,7 +46,7 @@
 | 
			
		|||
      <!-- Right Column: Logs and Graph -->
 | 
			
		||||
      <!-- <div class="col-12 col-md-6 d-flex flex-column"> -->
 | 
			
		||||
      <!-- Right Column: Logs and Graph -->
 | 
			
		||||
    <div class="col-12 col-md-6 d-flex flex-column" style="height: calc(100vh - 120px);">
 | 
			
		||||
    <div class="col-12 col-md-6 d-flex flex-column" style="height: calc(100vh - 105px);">
 | 
			
		||||
      <!-- Logs (2/3 of height) -->
 | 
			
		||||
      <div class="d-flex flex-column" style="flex: 2 1 0; min-height: 0;">
 | 
			
		||||
        <form id="log-filter-form"
 | 
			
		||||
| 
						 | 
				
			
			@ -75,7 +75,7 @@
 | 
			
		|||
      </div>
 | 
			
		||||
 | 
			
		||||
      <!-- Graph (1/3 of height) -->
 | 
			
		||||
      <div class="d-flex flex-column mt-3" style="flex: 1 1 0; min-height: 0;">
 | 
			
		||||
      <div class="d-flex flex-column mt-2" style="flex: 1 1 0; min-height: 0;">
 | 
			
		||||
      <div class="border flex-grow-1" id="cyto-graph" style="overflow-y: auto;">
 | 
			
		||||
      <!-- Graph content -->
 | 
			
		||||
    </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,6 +9,10 @@
 | 
			
		|||
    <p>Last Contact: {{.LastContact}}</p>
 | 
			
		||||
    <p>Hostname: {{.HostName}}</p>
 | 
			
		||||
    <!-- <button class="btn btn-warning" hx-get="/proxyAgent?ip={{.IPv4Address}}&port={{.AddPort}}" hx-target="#agentConnect" hx-swap="innerHTML">Proxy</button> -->
 | 
			
		||||
    <a class="btn btn-warning" href="/proxyAgent?ip={{.IPv4Address}}&port={{.AddPort}}" hx-target="_blank">Proxy</a>
 | 
			
		||||
    <a href="http://{{.IPv4Address}}:{{.AddPort}}" class="btn btn-info" target="_blank">Open</a>
 | 
			
		||||
    <a class="btn btn-info"
 | 
			
		||||
        href="/proxyAgent?ip={{.IPv4Address}}&port={{.AddPort}}"
 | 
			
		||||
        hx-target="_blank"
 | 
			
		||||
        target="_blank">Connect via Proxy</a>
 | 
			
		||||
    <a href="http://{{.IPv4Address}}:{{.AddPort}}" class="btn btn-outline-info" target="_blank">Connect without Proxy</a>
 | 
			
		||||
    <!-- <a href="http://{{.IPv4Address}}:{{.AddPort}}" target="_blank">Connect without Proxy</a> -->
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue