diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml index 7b51e65dc2..fb25841630 100644 --- a/.github/workflows/api-docs.yml +++ b/.github/workflows/api-docs.yml @@ -2,7 +2,7 @@ name: Build and publish API docs on: push: - branches: [main, v2_develop] + branches: [v1_release, v2_develop] permissions: id-token: write @@ -17,11 +17,11 @@ jobs: runs-on: windows-latest steps: - name: Checkout - if: github.ref_name == 'main' || github.ref_name == 'develop' + #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop' uses: actions/checkout@v4 - name: DocFX Build - if: github.ref_name == 'main' || github.ref_name == 'develop' + #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop' working-directory: docfx run: | dotnet tool install -g docfx @@ -31,17 +31,17 @@ jobs: continue-on-error: false - name: Setup Pages - if: github.ref_name == 'main' || github.ref_name == 'develop' + #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop' uses: actions/configure-pages@v5 - name: Upload artifact - if: github.ref_name == 'main' || github.ref_name == 'develop' + #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop' uses: actions/upload-pages-artifact@v3 with: path: docfx/_site - name: Deploy to GitHub Pages - if: github.ref_name == 'main' || github.ref_name == 'develop' + if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop' id: deployment uses: actions/deploy-pages@v4 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 64a37dc0a1..beeb09d036 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Publish Terminal.Gui on: push: - branches: [ main, develop, v2_release, v2_develop ] + branches: [ v1_release, v1_develop, v2_release, v2_develop ] tags: - v* paths-ignore: @@ -19,13 +19,13 @@ jobs: fetch-depth: 0 # fetch-depth is needed for GitVersion - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v1 + uses: gittools/actions/gitversion/setup@v2 with: versionSpec: '5.x' includePrerelease: true - name: Determine Version - uses: gittools/actions/gitversion/execute@v1 + uses: gittools/actions/gitversion/execute@v2 with: useConfigFile: true #additionalArguments: /b develop diff --git a/CommunityToolkitExample/Program.cs b/CommunityToolkitExample/Program.cs index 0d4f21c302..a9ababfec6 100644 --- a/CommunityToolkitExample/Program.cs +++ b/CommunityToolkitExample/Program.cs @@ -12,7 +12,7 @@ private static void Main (string [] args) Services = ConfigureServices (); Application.Init (); Application.Run (Services.GetRequiredService ()); - Application.Top.Dispose(); + Application.Top?.Dispose(); Application.Shutdown (); } diff --git a/GitVersion.yml b/GitVersion.yml index ba888b3d58..1946a6c7ae 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -2,14 +2,6 @@ mode: ContinuousDeployment tag-prefix: '[vV]' continuous-delivery-fallback-tag: dev branches: - develop: - mode: ContinuousDeployment - tag: dev - regex: develop - source-branches: - - main - pre-release-weight: 100 - v2_develop: mode: ContinuousDeployment tag: dev @@ -25,6 +17,20 @@ branches: is-release-branch: true source-branches: ['v2_develop'] + v1_develop: + mode: ContinuousDeployment + tag: dev + regex: v1_develop + source-branches: + - v1_release + pre-release-weight: 100 + + v1_release: + mode: ContinuousDeployment + regex: v1_release + is-release-branch: true + source-branches: ['v1_develop'] + pull-request: mode: ContinuousDeployment tag: PullRequest.{BranchName} @@ -32,9 +38,6 @@ branches: tag-number-pattern: '[/-](?\d+)' regex: ^(pull|pull\-requests|pr)[/-] source-branches: - - develop - - main - - release - v2_develop - v2_release - feature diff --git a/ReactiveExample/FodyWeavers.xml b/ReactiveExample/FodyWeavers.xml deleted file mode 100644 index 63fc14848d..0000000000 --- a/ReactiveExample/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/ReactiveExample/FodyWeavers.xsd b/ReactiveExample/FodyWeavers.xsd deleted file mode 100644 index f3ac47620a..0000000000 --- a/ReactiveExample/FodyWeavers.xsd +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/ReactiveExample/LoginView.cs b/ReactiveExample/LoginView.cs index 154bfbeced..a69d38f845 100644 --- a/ReactiveExample/LoginView.cs +++ b/ReactiveExample/LoginView.cs @@ -8,20 +8,137 @@ namespace ReactiveExample; public class LoginView : Window, IViewFor { - private readonly CompositeDisposable _disposable = new (); + private const string SuccessMessage = "The input is valid!"; + private const string ErrorMessage = "Please enter a valid user name and password."; + private const string ProgressMessage = "Logging in..."; + private const string IdleMessage = "Press 'Login' to log in."; + + private readonly CompositeDisposable _disposable = []; public LoginView (LoginViewModel viewModel) { Title = $"Reactive Extensions Example - {Application.QuitKey} to Exit"; ViewModel = viewModel; - Label usernameLengthLabel = UsernameLengthLabel (TitleLabel ()); - TextField usernameInput = UsernameInput (usernameLengthLabel); - Label passwordLengthLabel = PasswordLengthLabel (usernameLengthLabel); - TextField passwordInput = PasswordInput (passwordLengthLabel); - Label validationLabel = ValidationLabel (passwordInput); - Button loginButton = LoginButton (validationLabel); - Button clearButton = ClearButton (loginButton); - LoginProgressLabel (clearButton); + var title = this.AddControl