Skip to content

Commit c8925d5

Browse files
committed
Merge branch 'master' into dependabot/npm_and_yarn/vite-5.0.12
2 parents e26a4c1 + 313a49f commit c8925d5

4 files changed

Lines changed: 11 additions & 16 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
name: Safe Bookstore deploy
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
release:
5+
types: [published]
76

87
jobs:
98
deploy:
109
runs-on: ubuntu-latest
1110

1211
steps:
1312
- uses: actions/checkout@v4
14-
13+
1514
- name: Setup .NET
1615
uses: actions/setup-dotnet@v3
1716
with:
1817
dotnet-version: 8.0.x
19-
18+
2019
- name: Restore tools
21-
working-directory: ./update
2220
run: dotnet tool restore
2321

2422
- name: Test
25-
working-directory: ./update
2623
run: dotnet run devopstests
2724

2825
- name: Build
29-
working-directory: ./update
3026
run: dotnet run bundle
3127

3228
- name: Azure Login
@@ -35,5 +31,4 @@ jobs:
3531
creds: ${{ secrets.AZURE_CREDENTIALS }}
3632

3733
- name: Deploy
38-
working-directory: ./update
3934
run: dotnet run azure

src/Client/Client.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<Compile Include="components\NewBook.fs" />
1616
<Compile Include="pages\Home.fs" />
1717
<Compile Include="pages\Login.fs" />
18-
<Compile Include="pages\Wishlist.fs" />
18+
<Compile Include="pages\WishList.fs" />
1919
<Compile Include="Index.fs" />
2020
<Compile Include="App.fs" />
2121
<None Include="vite.config.mts" />

src/Client/Index.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ open Shared
1212
type PageTab =
1313
| Home of Home.Model
1414
| Login of Login.Model
15-
| Wishlist of Wishlist.Model
15+
| Wishlist of WishList.Model
1616
| NotFound
1717

1818
type User =
@@ -24,7 +24,7 @@ type Model = { Page: PageTab; User: User }
2424
type Msg =
2525
| HomePageMsg of Home.Msg
2626
| LoginPageMsg of Login.Msg
27-
| WishlistMsg of Wishlist.Msg
27+
| WishlistMsg of WishList.Msg
2828
| UrlChanged of string list
2929
| OnSessionChange
3030
| Logout
@@ -68,7 +68,7 @@ let initFromUrl model url =
6868
match model.User with
6969
| User user ->
7070
let wishlistModel, wishlistMsg =
71-
Wishlist.init (wishListApi user.Token) user.UserName
71+
WishList.init (wishListApi user.Token) user.UserName
7272

7373
let model = {
7474
Page = Wishlist wishlistModel
@@ -110,7 +110,7 @@ let update msg model =
110110
| User data -> data.Token
111111
| Guest -> ""
112112

113-
let newModel, cmd = Wishlist.update (wishListApi token) wishlistMsg wishlistModel
113+
let newModel, cmd = WishList.update (wishListApi token) wishlistMsg wishlistModel
114114

115115
{
116116
Page = Wishlist newModel
@@ -179,7 +179,7 @@ let view model dispatch =
179179
match model.Page with
180180
| Home homeModel -> Home.view homeModel (HomePageMsg >> dispatch)
181181
| Login loginModel -> Login.view loginModel (LoginPageMsg >> dispatch)
182-
| Wishlist wishlistModel -> Wishlist.view wishlistModel (WishlistMsg >> dispatch)
182+
| Wishlist wishlistModel -> WishList.view wishlistModel (WishlistMsg >> dispatch)
183183
| NotFound -> Html.div [ prop.text "Not Found" ]
184184
]
185185
]

src/Client/pages/WishList.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Page.Wishlist
1+
module Page.WishList
22

33
open System
44
open Elmish

0 commit comments

Comments
 (0)