style: cargo fmt
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Sync this repo to the 'gitea' remote as a mirror.
|
||||||
|
# - Mirrors ALL refs (branches, tags) and prunes removed ones.
|
||||||
|
# - This makes the Gitea repo match GitHub exactly.
|
||||||
|
|
||||||
|
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
||||||
|
echo "Error: not inside a git repo" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! git remote get-url gitea >/dev/null 2>&1; then
|
||||||
|
echo "Missing 'gitea' remote. Add it with:" >&2
|
||||||
|
echo " git remote add gitea https://gt.wittyoneoff.com/jason/socktop.git" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Fetching from origin (pruning)..."
|
||||||
|
git fetch origin --prune --tags
|
||||||
|
|
||||||
|
echo "Pushing mirror to gitea..."
|
||||||
|
git push gitea --mirror
|
||||||
|
|
||||||
|
echo "Done: Gitea should now match origin (GitHub)."
|
||||||
|
|
||||||
@@ -41,11 +41,13 @@ impl ModalManager {
|
|||||||
])
|
])
|
||||||
.split(area);
|
.split(area);
|
||||||
let block = Block::default()
|
let block = Block::default()
|
||||||
.title(Line::from(ICON_WARNING_TITLE).style(
|
.title(
|
||||||
Style::default()
|
Line::from(ICON_WARNING_TITLE).style(
|
||||||
.fg(MODAL_TITLE_FG)
|
Style::default()
|
||||||
.add_modifier(Modifier::BOLD),
|
.fg(MODAL_TITLE_FG)
|
||||||
))
|
.add_modifier(Modifier::BOLD),
|
||||||
|
),
|
||||||
|
)
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.border_style(Style::default().fg(MODAL_BORDER_FG))
|
.border_style(Style::default().fg(MODAL_BORDER_FG))
|
||||||
.style(Style::default().bg(MODAL_BG).fg(MODAL_FG));
|
.style(Style::default().bg(MODAL_BG).fg(MODAL_FG));
|
||||||
|
|||||||
Reference in New Issue
Block a user