4 Commits

19 changed files with 151 additions and 77 deletions

View File

@@ -2,9 +2,8 @@ import type { Metadata } from 'next'
import './globals.css'
export const metadata: Metadata = {
title: 'Mantis Admin',
description: 'Admin dashboard for Mantis BaaS',
generator: 'mantis.app',
title: 'Mantis Admin Dashboard',
description: 'Admin dashboard for Mantis: A lightweight BaaS in C++'
}
export default function RootLayout({
@@ -14,6 +13,9 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<head>
<link rel="icon" href="/favicon.ico" />
</head>
<body>{children}</body>
</html>
)

View File

@@ -76,13 +76,14 @@ export function AdminDashboard({ token, onLogout }: AdminDashboardProps) {
try {
setAuthErrorReason(reason) // Set the auth error string
setAuthErrorDialog(true) // Set the auth dialog to open
handleLogout()
} catch (error) {
console.warn("Failed to handle unauthorized:", error)
}
}, [])
const [apiClient, setApiClient] = React.useState(
() => new ApiClient(token, handleUnauthorized, mode, settings?.baseUrl, showError),
() => new ApiClient(token, handleUnauthorized, showError),
)
React.useEffect(() => {
@@ -92,9 +93,9 @@ export function AdminDashboard({ token, onLogout }: AdminDashboardProps) {
// Update API client when mode or settings change
React.useEffect(() => {
const newApiClient = new ApiClient(token, handleUnauthorized, mode, settings?.baseUrl, showError)
const newApiClient = new ApiClient(token, handleUnauthorized, showError)
setApiClient(newApiClient)
}, [mode, settings?.baseUrl, token, handleUnauthorized, showError])
}, [token, handleUnauthorized, showError])
const loadData = async () => {
// Set default settings if loading fails

View File

@@ -12,6 +12,7 @@ import type { ApiClient, Admin, TableMetadata } from "@/lib/api"
import { ChangePasswordDialog } from "./change-password-dialog"
import { SidebarTrigger } from "@/components/ui/sidebar"
import { AddItemDrawer } from "../database/add-item-drawer"
import { useToast } from "@/hooks/use-toast"
interface AdminsSectionProps {
admins: Admin[]
@@ -23,6 +24,7 @@ export function AdminsSection({ admins, apiClient, onAdminsUpdate }: AdminsSecti
const [selectedAdmin, setSelectedAdmin] = React.useState<Admin | null>(null)
const [addingAdmin, setAddingAdmin] = React.useState(false)
const [isLoading, setIsLoading] = React.useState(false)
const { toast } = useToast()
const table: any = {
has_api: true,
@@ -102,9 +104,23 @@ export function AdminsSection({ admins, apiClient, onAdminsUpdate }: AdminsSecti
const handleDeleteAdmin = async (adminId: string) => {
try {
await apiClient.call(`/api/v1/admins/${adminId}`, { method: "DELETE" })
const res: any = await apiClient.call(`/api/v1/admins/${adminId}`, { method: "DELETE" })
// If the request failed, throw the error here
if (res?.error?.length > 0) throw res.error
const updatedAdmins = await apiClient.call<Admin[]>("/api/v1/admins")
// If the request failed, throw the error here
if (updatedAdmins?.error?.length > 0) throw updatedAdmins.error
onAdminsUpdate(updatedAdmins)
toast({
variant: "default",
title: "Admin Deleted",
description: "Admin account deleted successfully!",
})
} catch (error) {
console.error("Failed to delete admin:", error)
}
@@ -112,9 +128,15 @@ export function AdminsSection({ admins, apiClient, onAdminsUpdate }: AdminsSecti
const handleAdminAdded = (admin: Admin) => {
onAdminsUpdate([...admins, admin])
toast({
variant: "default",
title: "Admin Added",
description: "Admin account added successfully!",
})
}
const handleReload = async () => {
const handleReload = async () => {
try {
setIsLoading(true)
const updatedAdmins = await apiClient.call<Admin[]>("/api/v1/admins")
@@ -137,15 +159,15 @@ export function AdminsSection({ admins, apiClient, onAdminsUpdate }: AdminsSecti
</div>
</div>
<div className="flex gap-2">
<Button variant="outline" size="sm" onClick={handleReload} disabled={isLoading}>
<RefreshCw className={`h-4 w-4 ${isLoading ? "animate-spin" : ""}`} />
</Button>
<Button variant="outline" size="sm" onClick={handleReload} disabled={isLoading}>
<RefreshCw className={`h-4 w-4 ${isLoading ? "animate-spin" : ""}`} />
</Button>
<Button size="sm" onClick={() => setAddingAdmin(true)}>
<Plus className="h-4 w-4 mr-2" />
New Record
</Button>
</div>
<Button size="sm" onClick={() => setAddingAdmin(true)}>
<Plus className="h-4 w-4 mr-2" />
New Record
</Button>
</div>
</div>
<Card>

View File

@@ -8,6 +8,7 @@ import { Label } from "@/components/ui/label"
import { DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"
import { Alert, AlertDescription } from "@/components/ui/alert"
import type { ApiClient, Admin } from "@/lib/api"
import { useToast } from "@/hooks/use-toast"
interface ChangePasswordDialogProps {
admin: Admin
@@ -20,6 +21,7 @@ export function ChangePasswordDialog({ admin, apiClient, onClose }: ChangePasswo
const [confirmPassword, setConfirmPassword] = React.useState("")
const [isLoading, setIsLoading] = React.useState(false)
const [error, setError] = React.useState("")
const { toast } = useToast()
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault()
@@ -36,11 +38,21 @@ export function ChangePasswordDialog({ admin, apiClient, onClose }: ChangePasswo
setError("")
try {
await apiClient.call(`/api/v1/admins/${admin.id}`, {
const res: any = await apiClient.call(`/api/v1/admins/${admin.id}`, {
method: "PATCH",
body: JSON.stringify({ password: newPassword }),
})
// If the request failed, throw the error here
if (res?.error?.length > 0) throw res.error
onClose()
toast({
variant: "default",
title: "Admin Updated",
description: "Admin account password updated successfully!",
})
} catch (error) {
setError("Failed to change password")
} finally {

View File

@@ -51,8 +51,13 @@ export function AddItemDrawer({ table, apiClient, open, onClose, onItemAdded }:
method: "POST",
body: JSON.stringify(formData),
})
// If the request failed, throw the error here
if (createdItem?.error?.length > 0) throw createdItem.error
onItemAdded(createdItem)
onClose()
toast({
title: "Table Created",
description: `A table ${table.name} has been created successfully.`,

View File

@@ -148,19 +148,27 @@ export function AddTableDialog({ apiClient, onTablesUpdate, children }: AddTable
)
}
await apiClient.call("/api/v1/tables", {
const res: any = await apiClient.call("/api/v1/tables", {
method: "POST",
body: JSON.stringify(tableData),
})
// If the request failed, throw the error here
if (res?.error?.length > 0) throw res.error
// Refresh tables list
const updatedTables = await apiClient.call<TableMetadata[]>("/api/v1/tables")
// If the request failed, throw the error here
if (updatedTables?.error?.length > 0) throw updatedTables.error
onTablesUpdate(updatedTables)
// Reset form
setTableName("")
setSqlQuery("")
setOpen(false)
toast({
title: "Table Created",
description: `The table '${tableData.name}' been updated successfully.`,
@@ -337,12 +345,12 @@ export function AddTableDialog({ apiClient, onTablesUpdate, children }: AddTable
</div>
<div className="text-sm text-muted-foreground mt-2">
<p>
<div>
<Badge variant="outline" className="text-xs mr-2">
System
</Badge>
System columns are automatically managed and cannot be modified.
</p>
</div>
</div>
</div>
)}

View File

@@ -14,6 +14,7 @@ import { TableDetailView } from "./table-detail-view"
import { SidebarTrigger } from "@/components/ui/sidebar"
import { TableDocsDrawer } from "./table-docs-drawer"
import { useRouter } from "@/lib/router"
import { useToast } from "@/hooks/use-toast"
interface DatabaseSectionProps {
apiClient: ApiClient
@@ -28,6 +29,7 @@ export function DatabaseSection({ apiClient, tables, onTablesUpdate }: DatabaseS
const [isRefreshing, setIsRefreshing] = React.useState(false)
const [docsOpen, setDocsOpen] = React.useState(false)
const { route, navigate } = useRouter()
const { toast } = useToast()
// Check if we're viewing a specific table - safer parsing
const getSelectedTableName = () => {
@@ -46,9 +48,24 @@ export function DatabaseSection({ apiClient, tables, onTablesUpdate }: DatabaseS
const handleDeleteTable = async (tableId: string) => {
try {
await apiClient.call(`/api/v1/tables/${tableId}`, { method: "DELETE" })
const res: any = await apiClient.call(`/api/v1/tables/${tableId}`, { method: "DELETE" })
// If the request failed, throw the error here
if (res?.error?.length > 0) throw res.error
// Fetch new tables
const updatedTables = await apiClient.call<TableMetadata[]>("/api/v1/tables")
// If the request failed, throw the error here
if (updatedTables?.error?.length > 0) throw updatedTables.error
// Set the new tables
onTablesUpdate(updatedTables)
toast({
title: "Table Deleted",
description: "Table deleted successfully!",
})
} catch (error) {
console.error("Failed to delete table:", error)
}
@@ -66,6 +83,10 @@ export function DatabaseSection({ apiClient, tables, onTablesUpdate }: DatabaseS
setIsRefreshing(true)
try {
const updatedTables = await apiClient.call<TableMetadata[]>("/api/v1/tables")
// If the request failed, throw the error here
if (updatedTables?.error?.length > 0) throw updatedTables.error
onTablesUpdate(updatedTables)
} catch (error) {
console.error("Failed to refresh tables:", error)

View File

@@ -49,8 +49,13 @@ export function EditItemDrawer({ table, item, apiClient, open, onClose, onItemUp
method: "PATCH",
body: JSON.stringify(formData),
})
// If the request failed, throw the error here
if (updatedItem?.error?.length > 0) throw updatedItem.error
onItemUpdate(updatedItem)
onClose()
toast({
title: "Table Updated",
description: "Table data has been updated successfully.",

View File

@@ -126,10 +126,14 @@ export function TableConfigDrawer({ table, apiClient, open, onClose, onTableUpda
method: "PATCH",
body: JSON.stringify({ fields: columns, deletedFields: deletedColumns }),
})
// If the request failed, throw the error here
if (updatedTable?.error?.length > 0) throw updatedTable.error
onTableUpdate(updatedTable)
toast({
title: "Table Updated",
description: "Table config has been updated successfully.",
description: "Table fields updated successfully.",
})
} catch (error) {
console.error("Failed to update schema:", error)
@@ -152,7 +156,15 @@ export function TableConfigDrawer({ table, apiClient, open, onClose, onTableUpda
deleteRule: rules.deleteRule,
}),
})
// If the request failed, throw the error here
if (updatedTable?.error?.length > 0) throw updatedTable.error
onTableUpdate(updatedTable)
toast({
title: "Table Updated",
description: "Table access rules updated successfully!",
})
} catch (error) {
console.error("Failed to update rules:", error)
} finally {

View File

@@ -60,6 +60,10 @@ export function TableDetailView({ table, onBack, apiClient, onTableUpdate }: Tab
try {
const tableData = await apiClient.call<any>(`/api/v1/${table.name}`)
// If the request failed, throw the error here
if (tableData?.error?.length > 0) throw tableData.error
setTableData(tableData)
// setTotalPages(3) // Mock pagination
@@ -136,10 +140,10 @@ export function TableDetailView({ table, onBack, apiClient, onTableUpdate }: Tab
// Remove deleted items from table data
setTableData((prevData) => prevData.filter((item) => !selectedItems.includes(item.id)))
setSelectedItems([])
toast({
title: "Record(s) Deleted",
description: "Table records have been updated successfully.",
})
// toast({
// title: "Record(s) Deleted",
// description: "Table records have been updated successfully.",
// })
} catch (error) {
console.error("Failed to delete items:", error)
} finally {

View File

@@ -66,6 +66,10 @@ export function SettingsSection({ apiClient, settings, onSettingsUpdate, onModeC
method: "PATCH",
body: JSON.stringify(formData),
})
// If the request failed, throw the error here
if (updatedSettings?.error?.length > 0) throw updatedSettings.error
onSettingsUpdate(updatedSettings)
setHasChanges(false)
@@ -84,6 +88,10 @@ export function SettingsSection({ apiClient, settings, onSettingsUpdate, onModeC
setIsRefreshing(true)
try {
const updatedSettings = await apiClient.call<AppSettings>("/api/v1/settings/config")
// If the request failed, throw the error here
if (updatedSettings?.error?.length > 0) throw updatedSettings.error
onSettingsUpdate(updatedSettings)
} catch (error) {
console.error("Failed to refresh settings:", error)

View File

@@ -2,6 +2,7 @@
import type { AppMode } from "./app-state"
// Updated interfaces to match the API response format
export interface TableField {
autoGeneratePattern: string | null
@@ -50,6 +51,24 @@ export interface Admin {
updated: string
}
export function getApiBaseUrl(): string {
const mode = process?.env?.NODE_ENV || "production";
const port = process?.env?.MANTIS_PORT || 7070;
if (mode === "development") {
// For debug mode, or non window sessions, pick port from env
return `http://localhost:${port}`;
}
if (typeof window !== "undefined") {
const { origin } = window.location;
return `${origin}`;
}
return `http://localhost:${port}`;
}
export interface AppSettings {
allowRegistration: boolean
appName: string
@@ -70,57 +89,24 @@ interface ApiResponse<T> {
status: number
}
// utils/getApiBaseUrl.ts
type AppState = {
isTest: boolean;
userDefinedApiUrl?: string; // from settings window
};
export class ApiClient {
private token: string
private onUnauthorized: (error: string) => void
private onError?: (error: string, type?: "error" | "warning") => void
private requestCount = 0
private maxRequests = 100
private mode: AppMode
private baseUrl: string
private apiUrl: string
constructor(
token: string,
onUnauthorized: (reason?: string | "") => void,
mode: AppMode = "PROD",
baseUrl = "http://127.0.0.1:7070",
onError?: (error: string, type?: "error" | "warning") => void,
) {
this.token = token
this.onUnauthorized = onUnauthorized
this.onError = onError
this.mode = mode
this.baseUrl = baseUrl
}
private getApiBaseUrl(appMode: AppMode): string {
if (appMode === "TEST") {
// For debug mode, or non window sessions, pick port from env
const port = process.env.MANTIS_PORT || 7070; // match your server default
return `http://localhost:${port}`;
}
if (typeof window !== "undefined") {
const { origin } = window.location;
console.log("ORIGIN: ", origin)
return `${origin}`;
} else {
const port = process.env.MANTIS_PORT || 7070; // match your server default
return `http://localhost:${port}`;
}
}
private async realApiCall<T>(endpoint: string, options: RequestInit = {}): Promise<ApiResponse<T>> {
try {
const url = `${this.getApiBaseUrl(this.mode)}${endpoint}`
const url = `${getApiBaseUrl()}${endpoint}`
const headers = {
"Content-Type": "application/json",
Authorization: `Bearer ${this.token}`,
@@ -176,28 +162,18 @@ export class ApiClient {
data: null as T,
error: error.message || "Could not connect to the server!",
status: 500, // could use 500 if you prefer
} as T
}
}
// Method to update mode
updateMode(mode: AppMode, baseUrl?: string) {
this.mode = mode
if (baseUrl) {
this.baseUrl = baseUrl
} as any
}
}
}
export async function loginWithPassword(
email: string,
password: string,
mode: AppMode = "PROD",
baseUrl = "http://127.0.0.1:7070",
password: string
) {
// Real API call
try {
const response = await fetch(`${baseUrl}/api/v1/admins/auth-with-password`, {
const response = await fetch(`${getApiBaseUrl()}/api/v1/admins/auth-with-password`, {
method: "POST",
headers: { "Content-Type": "application/json", },
body: JSON.stringify({ email, password }),
@@ -210,7 +186,7 @@ export async function loginWithPassword(
if (responseData.data) {
return responseData.data
}
return responseData
return responseData.data
} else {
throw new Error(responseData.error || responseData.message || "Login failed")
}

View File

@@ -1,6 +1,6 @@
{
"name": "mantis-admin",
"version": "0.1.4",
"version": "0.1.6",
"private": true,
"scripts": {
"export": "next build && next export",

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 568 B

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="215" height="48" fill="none"><path fill="#000" d="M57.588 9.6h6L73.828 38h-5.2l-2.36-6.88h-11.36L52.548 38h-5.2l10.24-28.4Zm7.16 17.16-4.16-12.16-4.16 12.16h8.32Zm23.694-2.24c-.186-1.307-.706-2.32-1.56-3.04-.853-.72-1.866-1.08-3.04-1.08-1.68 0-2.986.613-3.92 1.84-.906 1.227-1.36 2.947-1.36 5.16s.454 3.933 1.36 5.16c.934 1.227 2.24 1.84 3.92 1.84 1.254 0 2.307-.373 3.16-1.12.854-.773 1.387-1.867 1.6-3.28l5.12.24c-.186 1.68-.733 3.147-1.64 4.4-.906 1.227-2.08 2.173-3.52 2.84-1.413.667-2.986 1-4.72 1-2.08 0-3.906-.453-5.48-1.36-1.546-.907-2.76-2.2-3.64-3.88-.853-1.68-1.28-3.627-1.28-5.84 0-2.24.427-4.187 1.28-5.84.88-1.68 2.094-2.973 3.64-3.88 1.574-.907 3.4-1.36 5.48-1.36 1.68 0 3.227.32 4.64.96 1.414.64 2.56 1.56 3.44 2.76.907 1.2 1.454 2.6 1.64 4.2l-5.12.28Zm11.486-7.72.12 3.4c.534-1.227 1.307-2.173 2.32-2.84 1.04-.693 2.267-1.04 3.68-1.04 1.494 0 2.76.387 3.8 1.16 1.067.747 1.827 1.813 2.28 3.2.507-1.44 1.294-2.52 2.36-3.24 1.094-.747 2.414-1.12 3.96-1.12 1.414 0 2.64.307 3.68.92s1.84 1.52 2.4 2.72c.56 1.2.84 2.667.84 4.4V38h-4.96V25.92c0-1.813-.293-3.187-.88-4.12-.56-.96-1.413-1.44-2.56-1.44-.906 0-1.68.213-2.32.64-.64.427-1.133 1.053-1.48 1.88-.32.827-.48 1.84-.48 3.04V38h-4.56V25.92c0-1.2-.133-2.213-.4-3.04-.24-.827-.626-1.453-1.16-1.88-.506-.427-1.133-.64-1.88-.64-.906 0-1.68.227-2.32.68-.64.427-1.133 1.053-1.48 1.88-.32.827-.48 1.827-.48 3V38h-4.96V16.8h4.48Zm26.723 10.6c0-2.24.427-4.187 1.28-5.84.854-1.68 2.067-2.973 3.64-3.88 1.574-.907 3.4-1.36 5.48-1.36 1.84 0 3.494.413 4.96 1.24 1.467.827 2.64 2.08 3.52 3.76.88 1.653 1.347 3.693 1.4 6.12v1.32h-15.08c.107 1.813.614 3.227 1.52 4.24.907.987 2.134 1.48 3.68 1.48.987 0 1.88-.253 2.68-.76a4.803 4.803 0 0 0 1.84-2.2l5.08.36c-.64 2.027-1.84 3.64-3.6 4.84-1.733 1.173-3.733 1.76-6 1.76-2.08 0-3.906-.453-5.48-1.36-1.573-.907-2.786-2.2-3.64-3.88-.853-1.68-1.28-3.627-1.28-5.84Zm15.16-2.04c-.213-1.733-.76-3.013-1.64-3.84-.853-.827-1.893-1.24-3.12-1.24-1.44 0-2.6.453-3.48 1.36-.88.88-1.44 2.12-1.68 3.72h9.92ZM163.139 9.6V38h-5.04V9.6h5.04Zm8.322 7.2.24 5.88-.64-.36c.32-2.053 1.094-3.56 2.32-4.52 1.254-.987 2.787-1.48 4.6-1.48 2.32 0 4.107.733 5.36 2.2 1.254 1.44 1.88 3.387 1.88 5.84V38h-4.96V25.92c0-1.253-.12-2.28-.36-3.08-.24-.8-.64-1.413-1.2-1.84-.533-.427-1.253-.64-2.16-.64-1.44 0-2.573.48-3.4 1.44-.8.933-1.2 2.307-1.2 4.12V38h-4.96V16.8h4.48Zm30.003 7.72c-.186-1.307-.706-2.32-1.56-3.04-.853-.72-1.866-1.08-3.04-1.08-1.68 0-2.986.613-3.92 1.84-.906 1.227-1.36 2.947-1.36 5.16s.454 3.933 1.36 5.16c.934 1.227 2.24 1.84 3.92 1.84 1.254 0 2.307-.373 3.16-1.12.854-.773 1.387-1.867 1.6-3.28l5.12.24c-.186 1.68-.733 3.147-1.64 4.4-.906 1.227-2.08 2.173-3.52 2.84-1.413.667-2.986 1-4.72 1-2.08 0-3.906-.453-5.48-1.36-1.546-.907-2.76-2.2-3.64-3.88-.853-1.68-1.28-3.627-1.28-5.84 0-2.24.427-4.187 1.28-5.84.88-1.68 2.094-2.973 3.64-3.88 1.574-.907 3.4-1.36 5.48-1.36 1.68 0 3.227.32 4.64.96 1.414.64 2.56 1.56 3.44 2.76.907 1.2 1.454 2.6 1.64 4.2l-5.12.28Zm11.443 8.16V38h-5.6v-5.32h5.6Z"/><path fill="#171717" fill-rule="evenodd" d="m7.839 40.783 16.03-28.054L20 6 0 40.783h7.839Zm8.214 0H40L27.99 19.894l-4.02 7.032 3.976 6.914H20.02l-3.967 6.943Z" clip-rule="evenodd"/></svg>

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1200" fill="none"><rect width="1200" height="1200" fill="#EAEAEA" rx="3"/><g opacity=".5"><g opacity=".5"><path fill="#FAFAFA" d="M600.709 736.5c-75.454 0-136.621-61.167-136.621-136.62 0-75.454 61.167-136.621 136.621-136.621 75.453 0 136.62 61.167 136.62 136.621 0 75.453-61.167 136.62-136.62 136.62Z"/><path stroke="#C9C9C9" stroke-width="2.418" d="M600.709 736.5c-75.454 0-136.621-61.167-136.621-136.62 0-75.454 61.167-136.621 136.621-136.621 75.453 0 136.62 61.167 136.62 136.621 0 75.453-61.167 136.62-136.62 136.62Z"/></g><path stroke="url(#a)" stroke-width="2.418" d="M0-1.209h553.581" transform="scale(1 -1) rotate(45 1163.11 91.165)"/><path stroke="url(#b)" stroke-width="2.418" d="M404.846 598.671h391.726"/><path stroke="url(#c)" stroke-width="2.418" d="M599.5 795.742V404.017"/><path stroke="url(#d)" stroke-width="2.418" d="m795.717 796.597-391.441-391.44"/><path fill="#fff" d="M600.709 656.704c-31.384 0-56.825-25.441-56.825-56.824 0-31.384 25.441-56.825 56.825-56.825 31.383 0 56.824 25.441 56.824 56.825 0 31.383-25.441 56.824-56.824 56.824Z"/><g clip-path="url(#e)"><path fill="#666" fill-rule="evenodd" d="M616.426 586.58h-31.434v16.176l3.553-3.554.531-.531h9.068l.074-.074 8.463-8.463h2.565l7.18 7.181V586.58Zm-15.715 14.654 3.698 3.699 1.283 1.282-2.565 2.565-1.282-1.283-5.2-5.199h-6.066l-5.514 5.514-.073.073v2.876a2.418 2.418 0 0 0 2.418 2.418h26.598a2.418 2.418 0 0 0 2.418-2.418v-8.317l-8.463-8.463-7.181 7.181-.071.072Zm-19.347 5.442v4.085a6.045 6.045 0 0 0 6.046 6.045h26.598a6.044 6.044 0 0 0 6.045-6.045v-7.108l1.356-1.355-1.282-1.283-.074-.073v-17.989h-38.689v23.43l-.146.146.146.147Z" clip-rule="evenodd"/></g><path stroke="#C9C9C9" stroke-width="2.418" d="M600.709 656.704c-31.384 0-56.825-25.441-56.825-56.824 0-31.384 25.441-56.825 56.825-56.825 31.383 0 56.824 25.441 56.824 56.825 0 31.383-25.441 56.824-56.824 56.824Z"/></g><defs><linearGradient id="a" x1="554.061" x2="-.48" y1=".083" y2=".087" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><linearGradient id="b" x1="796.912" x2="404.507" y1="599.963" y2="599.965" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><linearGradient id="c" x1="600.792" x2="600.794" y1="403.677" y2="796.082" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><linearGradient id="d" x1="404.85" x2="796.972" y1="403.903" y2="796.02" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><clipPath id="e"><path fill="#fff" d="M581.364 580.535h38.689v38.689h-38.689z"/></clipPath></defs></svg>

Before

Width:  |  Height:  |  Size: 3.2 KiB