chore: increase sidebar width

feat: demo mode - don't start services.
This commit is contained in:
Abhinav Raut
2025-02-18 02:02:16 +05:30
parent 75a4e8000a
commit 9d3ca81796
2 changed files with 14 additions and 10 deletions
+13 -9
View File
@@ -48,6 +48,7 @@ var (
ctx = context.Background()
appName = "libredesk"
frontendDir = "frontend/dist"
envDemo = "demo"
// Injected at build time.
buildString = ""
@@ -168,16 +169,18 @@ func main() {
conversation = initConversations(i18n, sla, status, priority, wsHub, notifier, db, inbox, user, team, media, settings, csat, automation, template)
autoassigner = initAutoAssigner(team, user, conversation)
)
automation.SetConversationStore(conversation)
startInboxes(ctx, inbox, conversation)
go automation.Run(ctx, automationWorkers)
go autoassigner.Run(ctx, autoAssignInterval)
go conversation.Run(ctx, messageIncomingQWorkers, messageOutgoingQWorkers, messageOutgoingScanInterval)
go conversation.RunUnsnoozer(ctx, unsnoozeInterval)
go notifier.Run(ctx)
go sla.Run(ctx, slaEvaluationInterval)
go media.DeleteUnlinkedMedia(ctx)
if ko.MustString("app.env") != envDemo {
startInboxes(ctx, inbox, conversation)
go automation.Run(ctx, automationWorkers)
go autoassigner.Run(ctx, autoAssignInterval)
go conversation.Run(ctx, messageIncomingQWorkers, messageOutgoingQWorkers, messageOutgoingScanInterval)
go conversation.RunUnsnoozer(ctx, unsnoozeInterval)
go notifier.Run(ctx)
go sla.Run(ctx, slaEvaluationInterval)
go media.DeleteUnlinkedMedia(ctx)
}
var app = &App{
lo: lo,
@@ -224,6 +227,7 @@ func main() {
}
go func() {
colorlog.Green("Starting HTTP server in %s mode", ko.String("app.env"))
colorlog.Green("Server started at %s", ko.String("app.server.address"))
if ko.String("server.socket") != "" {
colorlog.Green("Unix socket created at %s", ko.String("server.socket"))
+1 -1
View File
@@ -259,7 +259,7 @@ const sidebarOpen = useStorage('sidebarOpen', true)
<div class="flex flex-row justify-between h-full">
<div class="flex-1">
<SidebarProvider
style="--sidebar-width: 15rem"
style="--sidebar-width: 16rem"
:default-open="sidebarOpen"
v-on:update:open="sidebarOpen = $event"
>