From aa9c11c7975a3d526a5c557aedca547878c6ee69 Mon Sep 17 00:00:00 2001 From: guinmoon Date: Sat, 26 Oct 2024 19:49:45 +0300 Subject: [PATCH] doc site link --- LLMFarm/Settings/About.swift | 37 +++++++++++++++++--------- LLMFarm/Settings/AppSettingsView.swift | 7 ++--- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/LLMFarm/Settings/About.swift b/LLMFarm/Settings/About.swift index 13f3fc1..12f394d 100644 --- a/LLMFarm/Settings/About.swift +++ b/LLMFarm/Settings/About.swift @@ -12,20 +12,31 @@ struct About: View { let app_version = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String var body: some View { VStack{ - HStack{ - Image("ava0_48") - .foregroundColor(.secondary) - .font(.system(size: 40)) + GroupBox(label: + Text("About") + ) { + HStack{ + Image("ava0_48") + .foregroundColor(.secondary) + .font(.system(size: 40)) + .opacity(0.4) + } + .buttonStyle(.borderless) + .controlSize(.large) + Text("LLMFarm v\(app_version)\nAuthor Artem Savkin\n2024") + .font(.footnote) + .frame(maxWidth: .infinity) + .multilineTextAlignment(.center) } - .buttonStyle(.borderless) - .controlSize(.large) - Text("LLMFarm v\(app_version)\nAuthor Artem Savkin\n2024") - .font(.footnote) - .frame(maxWidth: .infinity) - .multilineTextAlignment(.center) - - - }.opacity(0.4) + GroupBox(label: + Text("Help") + ) { + Link("Visit LLM Farm documentation site", destination: URL(string: "https://llmfarm.tech/docs/FAQ")!) + .font(.title3) + .padding() + // .foregroundStyle(.) + } + } .frame(maxWidth: .infinity,alignment: .center) } } diff --git a/LLMFarm/Settings/AppSettingsView.swift b/LLMFarm/Settings/AppSettingsView.swift index fa6cf2e..ebff8bc 100644 --- a/LLMFarm/Settings/AppSettingsView.swift +++ b/LLMFarm/Settings/AppSettingsView.swift @@ -43,11 +43,8 @@ struct SettingsView: View { case 1: DownloadModelsView() case 2: - GroupBox(label: - Text("About") - ) { - About() - } + About() + default: ModelsView("models")