mirror of
https://github.com/phranck/TUIkit.git
synced 2026-05-21 09:50:35 +00:00
Chore: Filter [skip ci] commits from dashboard
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||

|
||||
|
||||
@@ -82,7 +82,7 @@ struct ContentView: View {
|
||||
|
||||
- **Text styling** — bold, italic, underline, strikethrough, dim, blink, inverted
|
||||
- **Full color support** — ANSI colors, 256-color palette, 24-bit RGB, hex values, HSL
|
||||
- **Theming** — 7 predefined palettes (Green, Amber, White, Red, NCurses, Generated)
|
||||
- **Theming** — 6 predefined palettes (Green, Amber, Red, Violet, Blue, White)
|
||||
- **Border styles** — rounded, line, double, thick, ASCII, and more
|
||||
|
||||
### Advanced
|
||||
@@ -136,12 +136,12 @@ struct MyApp: App {
|
||||
```
|
||||
|
||||
Available palettes (all via `SystemPalette`):
|
||||
- `.green` — Classic green CRT (default)
|
||||
- `.amber` — Amber monochrome
|
||||
- `.white` — White on black
|
||||
- `.red` — Red terminal
|
||||
- `.violet` — Retro sci-fi
|
||||
- `.blue` — VFD displays
|
||||
- `.green` — Classic P1 phosphor CRT (default)
|
||||
- `.amber` — P3 phosphor monochrome
|
||||
- `.red` — IBM 3279 plasma
|
||||
- `.violet` — Retro sci-fi terminal
|
||||
- `.blue` — VFD/LCD displays
|
||||
- `.white` — DEC VT100/VT220 (P4 phosphor)
|
||||
|
||||
## Architecture
|
||||
|
||||
|
||||
@@ -407,17 +407,19 @@ export function useGitHubStats(options?: UseGitHubStatsOptions): UseGitHubStatsR
|
||||
|
||||
const repo = repoResult.data;
|
||||
|
||||
const recentCommits: CommitEntry[] = commitsResult.data.map((commit) => {
|
||||
const { title, body } = splitCommitMessage(commit.commit.message);
|
||||
return {
|
||||
sha: commit.sha.slice(0, 7),
|
||||
title,
|
||||
body,
|
||||
author: commit.commit.author.name,
|
||||
date: commit.commit.author.date,
|
||||
url: commit.html_url,
|
||||
};
|
||||
});
|
||||
const recentCommits: CommitEntry[] = commitsResult.data
|
||||
.filter((commit) => !commit.commit.message.includes("[skip ci]"))
|
||||
.map((commit) => {
|
||||
const { title, body } = splitCommitMessage(commit.commit.message);
|
||||
return {
|
||||
sha: commit.sha.slice(0, 7),
|
||||
title,
|
||||
body,
|
||||
author: commit.commit.author.name,
|
||||
date: commit.commit.author.date,
|
||||
url: commit.html_url,
|
||||
};
|
||||
});
|
||||
|
||||
const result: GitHubStats = {
|
||||
stars: repo.stargazers_count,
|
||||
|
||||
@@ -63,15 +63,14 @@ Downloading 50%
|
||||
|
||||
### Styles
|
||||
|
||||
6 built-in styles via `.progressBarStyle(_:)` modifier:
|
||||
5 built-in styles via `.progressBarStyle(_:)` modifier:
|
||||
|
||||
```
|
||||
line: ████████████████░░░░░░░░░░░░░░░░ (whole blocks)
|
||||
lineSmooth: ████████████████▍░░░░░░░░░░░░░░░ (sub-character precision via ▉▊▋▌▍▎▏)
|
||||
thin: ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░
|
||||
half: ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌────────────────
|
||||
braille: ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀
|
||||
dot: ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●──────────────── (● head in accent color)
|
||||
block: ████████████████░░░░░░░░░░░░░░░░ (whole blocks)
|
||||
blockFine: ████████████████▍░░░░░░░░░░░░░░░ (sub-character precision via ▉▊▋▌▍▎▏)
|
||||
shade: ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░
|
||||
bar: ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌────────────────
|
||||
dot: ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●──────────────── (● head in accent color)
|
||||
```
|
||||
|
||||
### Width
|
||||
@@ -102,7 +101,7 @@ dot: ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●──────
|
||||
- [x] Implement all 4 initializers with SwiftUI-matching signatures
|
||||
- [x] Implement `Renderable` with bar rendering
|
||||
- [x] Add `Equatable` conformance
|
||||
- [x] Implement 6 bar styles via `ProgressBarStyle` enum + `.progressBarStyle(_:)` modifier
|
||||
- [x] Create tests in `Tests/TUIkitTests/ProgressViewTests.swift` (27 tests / 3 suites)
|
||||
- [x] Implement 5 bar styles via `ProgressBarStyle` enum + `.progressBarStyle(_:)` modifier
|
||||
- [x] Create tests in `Tests/TUIkitTests/ProgressViewTests.swift` (26 tests / 3 suites)
|
||||
- [x] Add to example app (ContainersPage — ProgressViewRow)
|
||||
- [x] `swift build` + `swiftlint` + `swift test`
|
||||
|
||||
Reference in New Issue
Block a user