Skip to content

Commit e8ad111

Browse files
authored
Merge pull request #1095 from kerams/f
Remove unnecessary ValueOptions
2 parents 90760f2 + 44833ff commit e8ad111

File tree

23 files changed

+116
-122
lines changed

23 files changed

+116
-122
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"fantomas": {
6-
"version": "6.3.16",
6+
"version": "7.0.0",
77
"commands": [
88
"fantomas"
99
],

.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[*.fs]
22
max_line_length=160
3-
fsharp_space_before_lowercase_invocation = false
3+
fsharp_space_before_lowercase_invocation = false
4+
fsharp_max_dot_get_expression_width = 60

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup .NET
3131
uses: actions/setup-dotnet@v3
3232
with:
33-
dotnet-version: 7.0.x
33+
dotnet-version: 9.x
3434
- name: Restore
3535
run: dotnet restore ${SLN_FILE}
3636
- name: Build

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup .NET
1515
uses: actions/setup-dotnet@v3
1616
with:
17-
dotnet-version: 7.0.x
17+
dotnet-version: 9.x
1818
- name: Check code formatting
1919
run: |
2020
dotnet tool restore

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup .NET
3939
uses: actions/setup-dotnet@v3
4040
with:
41-
dotnet-version: 7.0.x
41+
dotnet-version: 9.x
4242
- name: Restore
4343
run: dotnet restore ${SLN_FILE}
4444
- name: Build

Fabulous.sln

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Solution Files", "_Solutio
1616
README.md = README.md
1717
CHANGELOG.md = CHANGELOG.md
1818
LICENSE.md = LICENSE.md
19-
.gitignore = .gitignore
20-
pull_request.yml = .github/workflows/pull_request.yml
21-
build.yml = .github/workflows/build.yml
22-
release.yml = .github/workflows/release.yml
19+
.gitignore = .gitignore
20+
pull_request.yml = .github/workflows/pull_request.yml
21+
build.yml = .github/workflows/build.yml
22+
release.yml = .github/workflows/release.yml
23+
.editorconfig = .editorconfig
2324
Directory.Packages.props = Directory.Packages.props
2425
Directory.Build.props = Directory.Build.props
2526
EndProjectSection

global.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/Fabulous.Benchmarks/Benchmarks.fs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,9 @@ module DiffingAttributes =
6262

6363
let rec viewInner depth counter =
6464
Stack() {
65-
Label($"label1:{counter} {depth}")
66-
.textColor("red")
67-
.automationId($"label1:{depth}")
65+
Label($"label1:{counter} {depth}").textColor("red").automationId($"label1:{depth}")
6866

69-
Label($"label2:{counter} {depth}")
70-
.textColor("green")
71-
.automationId($"label2:{depth}")
67+
Label($"label2:{counter} {depth}").textColor("green").automationId($"label2:{depth}")
7268

7369
Button($"btn: {depth}", IncBy 2)
7470

src/Fabulous.Benchmarks/Fabulous.Benchmarks.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>

src/Fabulous.Tests/APISketchTests/APISketchTests.fs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,7 @@ module SmallScalars =
551551
| Inc value -> { value = model.value + value }
552552

553553
let view model =
554-
InlineNumericBag(model.value, model.value + 1UL, float(model.value + 2UL))
555-
.automationId("numbers")
554+
InlineNumericBag(model.value, model.value + 1UL, float(model.value + 2UL)).automationId("numbers")
556555

557556
let init () = { value = 0UL }
558557

@@ -898,12 +897,9 @@ module ViewHelpers =
898897

899898
let grandParentView _model =
900899
Stack() {
901-
Button("Grand Parent button", GrandParentClick)
902-
.automationId("grandParentButton")
900+
Button("Grand Parent button", GrandParentClick).automationId("grandParentButton")
903901

904-
(View.map ParentMessage parentView)
905-
.automationId("parentStack")
906-
.tapContainer(GrandParentTap)
902+
(View.map ParentMessage parentView).automationId("parentStack").tapContainer(GrandParentTap)
907903
}
908904

909905

0 commit comments

Comments
 (0)