Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
feat: adapt to lip-index 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Feb 4, 2024
1 parent dc4093b commit 2169eaa
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 33 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ jobs:
zip -r ../LipUI-${{ matrix.runtime }}.zip *
cd ..
- id: extract-release-notes
uses: ffurrer2/extract-release-notes@v2

- uses: softprops/action-gh-release@v1
with:
append_body: true
body: |
${{ steps.extract-release-notes.outputs.release_notes }}
files: |
LipUI-${{ matrix.runtime }}.zip
35 changes: 22 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.4.0] - 2024-02-04

### Added

- Install teeth by dragging and dropping the package file into the window.

### Changed

- Adapt to lip-index 0.8.0.

### Fixed

- Crash under some conditions.

## [0.3.0] - 2024-01-18

Expand All @@ -19,14 +31,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Cache purge.

### Fixed

- Crash on deleting working directory.

### Changed

- Adapt to lip 0.15.0.

### Fixed

- Crash on deleting working directory.

## [0.2.6] - 2023-04-24

### Fixed
Expand All @@ -42,9 +54,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Optimize the UI.

### Changed

- Optimize the UI.

## [0.2.4] - 2023-03-11
Expand All @@ -53,10 +62,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Animations.

### Fixed

- Unicode encoding.

### Changed

- Optimize user experience.
Expand All @@ -65,6 +70,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Icon at status bar.

### Fixed

- Unicode encoding.

## [0.2.3] - 2023-03-07

### Added
Expand Down Expand Up @@ -99,7 +108,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release.

[unreleased]: https://github.com/lippkg/LipUI/compare/v0.3.0...HEAD
[0.4.0]: https://github.com/lippkg/LipUI/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/lippkg/LipUI/compare/v0.2.7...v0.3.0
[0.2.7]: https://github.com/lippkg/LipUI/compare/v0.2.6...v0.2.7
[0.2.6]: https://github.com/lippkg/LipUI/compare/v0.2.5...v0.2.6
Expand Down
7 changes: 3 additions & 4 deletions src/LipUI/Pages/ToothInfoPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ private LipIndex.LipIndexData.LipToothItem ToothItem
Author.Text = toothItem.Author;
LatestVersion.Text = toothItem.LatestVersion;
LatestVersionReleasedAt.Text = toothItem.LatestVersionReleasedAt;
SourceRepoCreatedAt.Text = toothItem.SourceRepoCreatedAt;
SourceRepoStarCount.Text = toothItem.SourceRepoStarCount.ToString();
SourceRepoCreatedAt.Text = toothItem.RepoCreatedAt;
SourceRepoStarCount.Text = toothItem.StarCount.ToString();

}
}
Expand Down Expand Up @@ -179,8 +179,7 @@ Main.Config.SelectedServer is null ?
toothItem!.Description,
toothItem!.Author,
toothItem!.AvatarUrl,
toothItem!.Source,
toothItem!.SourceRepoCreatedAt,
toothItem!.RepoCreatedAt,
};

Frame.Navigate(
Expand Down
13 changes: 5 additions & 8 deletions src/LipUI/Protocol/LipIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,14 @@ public class LipToothItem
[JsonPropertyName("avatarUrl")]
public string AvatarUrl { get; set; } = string.Empty;

[JsonPropertyName("source")]
public string Source { get; set; } = string.Empty;
[JsonPropertyName("repoCreatedAt")]
public string RepoCreatedAt { get; set; } = string.Empty;

[JsonPropertyName("sourceRepoCreatedAt")]
public string SourceRepoCreatedAt { get; set; } = string.Empty;

[JsonPropertyName("sourceRepoStarCount")]
public int SourceRepoStarCount { get; set; }
[JsonPropertyName("starCount")]
public int StarCount { get; set; }
}
}

public static LipIndex Deserialize(string json)
=> JsonSerializer.Deserialize<LipIndex>(json) ?? throw new NullReferenceException();
}
}
11 changes: 4 additions & 7 deletions src/LipUI/Protocol/LipTooth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ public class LipToothData
[JsonPropertyName("avatarUrl")]
public string AvatarUrl { get; set; } = string.Empty;

[JsonPropertyName("Source")]
public string Source { get; set; } = string.Empty;
[JsonPropertyName("repoCreatedAt")]
public string RepoCreatedAt { get; set; } = string.Empty;

[JsonPropertyName("sourceRepoCreatedAt")]
public string SourceRepoCreatedAt { get; set; } = string.Empty;

[JsonPropertyName("sourceRepoStarCount")]
public int SourceRepoStarCount { get; set; }
[JsonPropertyName("starCount")]
public int StarCount { get; set; }

[JsonPropertyName("versions")]
public IReadOnlyList<LipToothVersion> Versions { get; set; } = new List<LipToothVersion>();
Expand Down

0 comments on commit 2169eaa

Please sign in to comment.