This page looks best with JavaScript enabled

2023.0606

 ·  โ˜• 1 min read

    Achievement

    • Reduce the time on this project recently.
    • Remove most nullable disable annotation in the main project.
    • Back to the office ;_;
    • ๅ’Œไธป็ฎก่จŽ่ซ–็•™่ทๅœ่–ชใ€‚ๅฆ‚ๆžœ้€š้Ž็š„่ฉฑ๏ผŒๆŽฅไธ‹ๅฐฑ่ƒฝๆ›ดๆœ‰ๆ›ดๅคš็š„ๆ™‚้–“ๅ…ˆๆŠŠ้€™ไปฝๅฐˆๆกˆๅผ„ๅˆฐไธ€ๅ€‹ๆฎต่ฝ๏ผŒ้‚„ๆœ‰ๅนดๅบ•็š„ๆ—ฅๆœฌๆ—…้Šๅฐฑๆœ‰่‘—่ฝไบ†ใ€‚

    Beatmap

    Code quality

    • Use = null! to replace the [AllowNull] attribute. karaoke
      Change this:

      [Resolved, AllowNull]
      private EditorBeatmap beatmap { get; set; }
      

      Into this:

      [Resolved]
      private EditorBeatmap beatmap { get; set; } = null!;
      
    • Remove the nullable disable annotation in some location:

      • Remove the nullable disable annotation in the editor. karaoke
      • Remove the nullable disable annotation in the overlay namespace. karaoke
      • Remove the nullable disable annotation in the UI namespace. karaoke
      • Remove the nullable disable annotation in the Statistics namespace. karaoke
      • Remove the nullable disable annotation in the setting page. karaoke
      • Remove the nullable disable annotation in the skin editor. karaoke
      • Remove the nullable disable annotation in the lyric editor. karaoke
      • Remove the nullable disable annotation in the import lyric namespace. karaoke
      • Remove the nullable disable annotation in the singer editor. karaoke
      • Remove the nullable disable annotation in the whole beatmap editor. karaoke
    • Adjust permit null in dependency injection. karaoke

    • Remove all aaa.invoke() usage. karaoke

    Editor

    • OpacityButton should have the current property like other shared component. karaoke
    • Separate the base class for those “lyric index” based caret position algorithm. karaoke
      For now, we have two lyric text-based caret position algorithm:
      • CharGapCaretPositionAlgorithm: adjust the caret index between text gap.
      • CharIndexCaretPositionAlgorithm: adjust the caret index between chars.
    • Combine the Validate and PositionMovable in the CaretPositionAlgorithm because pre-validator in the caret position algorithm usually check the same things as what PositionMovable did. karaoke
    • Algorithm should not accept the null caret position index. karaoke
    • Implement base interface for able to change the end index caret position. karaoke

    Setting

    • Fix the broken preview area in the setting menu. karaoke
    • Fix cannot open the karaoke config page. karaoke
    • Remove assign language in the main setting overlay because does not have the global popover container now. karaoke

    UI/UX

    • Make language selector able to select null language. karaoke