"""
s.["Generated by P R A Y E R T R A C K E R"].Value
"
"
s.["from Bit Badger Solutions"].Value
diff --git a/src/PrayerTracker/Home.fs b/src/PrayerTracker/Home.fs
index 804f199..4fe7a80 100644
--- a/src/PrayerTracker/Home.fs
+++ b/src/PrayerTracker/Home.fs
@@ -35,7 +35,7 @@ let language culture : HttpHandler =
| ""
| "en" -> "en-US"
| "es" -> "es-MX"
- | _ -> sprintf "%s-%s" culture (culture.ToUpper ())
+ | _ -> $"{culture}-{culture.ToUpper ()}"
|> (CultureInfo >> Option.ofObj)
with
| :? CultureNotFoundException
diff --git a/src/PrayerTracker/PrayerTracker.fsproj b/src/PrayerTracker/PrayerTracker.fsproj
index 3b79b96..1cdc542 100644
--- a/src/PrayerTracker/PrayerTracker.fsproj
+++ b/src/PrayerTracker/PrayerTracker.fsproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net5.0
@@ -34,8 +34,4 @@
-
-
-
-
diff --git a/src/PrayerTracker/SmallGroup.fs b/src/PrayerTracker/SmallGroup.fs
index 59a6a92..77685ac 100644
--- a/src/PrayerTracker/SmallGroup.fs
+++ b/src/PrayerTracker/SmallGroup.fs
@@ -157,7 +157,7 @@ let logOnSubmit : HttpHandler =
return! redirectTo false "/web/prayer-requests/view" next ctx
| None ->
addError ctx s.["Password incorrect - login unsuccessful"]
- return! redirectTo false (sprintf "/web/small-group/log-on/%s" (flatGuid m.smallGroupId)) next ctx
+ return! redirectTo false $"/web/small-group/log-on/{flatGuid m.smallGroupId}" next ctx
| Error e -> return! bindError e next ctx
}
@@ -352,7 +352,7 @@ let sendAnnouncement : HttpHandler =
// Reformat the text to use the class's font stylings
let requestText = ckEditorToText m.text
let htmlText =
- p [ _style (sprintf "font-family:%s;font-size:%dpt;" grp.preferences.listFonts grp.preferences.textFontSize) ]
+ p [ _style $"font-family:{grp.preferences.listFonts};font-size:%d{grp.preferences.textFontSize}pt;" ]
[ rawText requestText ]
|> renderHtmlNode
let plainText = (htmlToPlainText >> wordWrap 74) htmlText
diff --git a/src/PrayerTracker/User.fs b/src/PrayerTracker/User.fs
index aab2fd2..066d7f0 100644
--- a/src/PrayerTracker/User.fs
+++ b/src/PrayerTracker/User.fs
@@ -262,7 +262,7 @@ let save : HttpHandler =
|> Some
}
|> addUserMessage ctx
- return! redirectTo false (sprintf "/web/user/%s/small-groups" (flatGuid u.userId)) next ctx
+ return! redirectTo false $"/web/user/{flatGuid u.userId}/small-groups" next ctx
| false ->
addInfo ctx s.["Successfully {0} user", s.["Updated"].Value.ToLower ()]
return! redirectTo false "/web/users" next ctx
@@ -283,7 +283,7 @@ let saveGroups : HttpHandler =
match Seq.length m.smallGroups with
| 0 ->
addError ctx s.["You must select at least one group to assign"]
- return! redirectTo false (sprintf "/web/user/%s/small-groups" (flatGuid m.userId)) next ctx
+ return! redirectTo false $"/web/user/{flatGuid m.userId}/small-groups" next ctx
| _ ->
let db = ctx.dbContext ()
match! db.TryUserByIdWithGroups m.userId with
diff --git a/src/Publish-App.ps1 b/src/Publish-App.ps1
new file mode 100644
index 0000000..5222d90
--- /dev/null
+++ b/src/Publish-App.ps1
@@ -0,0 +1,3 @@
+Set-Location PrayerTracker
+dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained false
+Set-Location bin\Release\net5.0\linux-x64\publish
\ No newline at end of file