Skip to content

Commit

Permalink
Bumping version to 1.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 17, 2019
1 parent 03239af commit 40c6590
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release Notes

## 1.1.13 - 2019-03-17
## 1.1.14 - 2019-03-17
* Upgrade Raspbian

## 1.1.0 - 2019-01-20
Expand Down
13 changes: 6 additions & 7 deletions src/Client/Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ type Msg =
| FirmwareLoaded of Result<Firmware, exn>
| Err of exn



let fetchData (userID) = promise {
let! res = Fetch.fetch (sprintf "api/usertags/%s" userID) []
let! txt = res.text()
Expand Down Expand Up @@ -86,8 +84,8 @@ let fetchFirmwareCmd = Cmd.ofPromise fetchFirmware () (Ok >> FirmwareLoaded) (Er
let fetchTagsCmd userID = Cmd.ofPromise fetchData userID (Ok >> TagsLoaded) (Error >> TagsLoaded)

let init () : Model * Cmd<Msg> =
let userID = "9bb2b109-bf08-4342-9e09-f4ce3fb01c0f" // TODO:
let hsitoryModel,historyCmd = TagHistory.init userID
let userID = "B827EB8E6CA5" // TODO:
let historyModel,historyCmd = TagHistory.init userID

let initialModel = {
Tags = None
Expand All @@ -98,7 +96,7 @@ let init () : Model * Cmd<Msg> =
Message = ""
ShownTags = [||]
UserID = userID
TagHistory = hsitoryModel
TagHistory = historyModel
}

initialModel,
Expand Down Expand Up @@ -274,7 +272,8 @@ let view (model : Model) (dispatch : Msg -> unit) =
[ Heading.IsSubtitle
Heading.Is4 ]
[ audioHubComponents ]
tagsTable model dispatch ]
tagsTable model dispatch
TagHistory.view (dispatch << TagHistoryMsg) model.TagHistory ]
Column.column
[ Column.Width (Screen.All, Column.Is5) ]
[
Expand All @@ -294,7 +293,7 @@ let view (model : Model) (dispatch : Msg -> unit) =
[ ul [ ]
[ li [ ]
[ a [ ]
[ str "AudioHub - 2018" ] ] ] ] ] ] ]
[ str "AudioHub - 2019" ] ] ] ] ] ] ]



Expand Down
4 changes: 2 additions & 2 deletions src/Client/ReleaseNotes.fs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module internal ReleaseNotes

let Version = "1.1.13"
let Version = "1.1.14"

let IsPrerelease = false

let Notes = """
# Release Notes
## 1.1.13 - 2019-03-17
## 1.1.14 - 2019-03-17
* Upgrade Raspbian
## 1.1.0 - 2019-01-20
Expand Down
2 changes: 0 additions & 2 deletions src/Client/TagHistory.fs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,5 @@ let update (msg : Msg) (model : Model) : Model * Cmd<Msg> =
Cmd.ofMsg (RetrySocketConnection (TimeSpan.FromSeconds 10.))
]



let view (dispatch: Msg -> unit) (model:Model) =
div [][ ]
2 changes: 1 addition & 1 deletion src/Client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var CONFIG = {
outputDir: resolve("./public"),
devServerProxy: {
'/api/*': {
target: 'http://localhost:' + (process.env.SUAVE_FABLE_PORT || "8085"),
target: 'http://localhost:' + (process.env.SUAVE_FABLE_PORT || "5000"),
changeOrigin: true
}
},
Expand Down
8 changes: 4 additions & 4 deletions src/Server/Server.fs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ let mapBlobMusikTag (tag:Tag) = task {
let discoverYoutubeLink (youtubeURL:string) = task {
let lines = System.Collections.Generic.List<_>()
let proc = new Process ()
let startInfo = new ProcessStartInfo()
let startInfo = ProcessStartInfo()
startInfo.FileName <- "/usr/local/bin/youtube-dl"
startInfo.Arguments <- sprintf " -g \"%s\"" youtubeURL
startInfo.UseShellExecute <- false
Expand Down Expand Up @@ -273,8 +273,9 @@ let tagHistoryBroadcaster = ConnectionManager()
let t = task {
while true do
let body = Encode.Auto.toString(0, TagHistorySocketEvent.ToDo)
do! tagHistoryBroadcaster.BroadcastTextAsync(body,key = "9bb2b109-bf08-4342-9e09-f4ce3fb01c0f")
do! Task.Delay 10000
printfn "Sending"
do! tagHistoryBroadcaster.BroadcastTextAsync(body,key = "B827EB8E6CA5")
do! Task.Delay (1000 * 60 * 20)
}

let webApp =
Expand All @@ -293,7 +294,6 @@ let webApp =
let configureSerialization (services:IServiceCollection) =
services


let configureApp (app : IApplicationBuilder) =
app.UseWebSockets(Giraffe.WebSocket.DefaultWebSocketOptions)

Expand Down
4 changes: 2 additions & 2 deletions src/Shared/Shared.fs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ type TagHistorySocketEvent =
| ToDo

module URLs =
let serverPort = 8085us
let serverPort = 5000us

#if DEBUG
let mediaServer = sprintf "http://localhost:%d" serverPort
Expand All @@ -204,7 +204,7 @@ module URLs =

let websocketURL =
#if DEBUG
"ws://localhost:8087"
"ws://localhost:5000"
#else
"wss:/audio-hub.azurewebsites.net"
#endif

0 comments on commit 40c6590

Please sign in to comment.