mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Compare commits
5 Commits
58747b99ef
...
6d05a59b78
Author | SHA1 | Date | |
---|---|---|---|
|
6d05a59b78 | ||
|
696110eae5 | ||
|
5944d8443b | ||
|
cc16c3e56d | ||
|
6c2aaf339f |
19
.github/release.yml
vendored
19
.github/release.yml
vendored
|
@ -1,20 +1,23 @@
|
|||
changelog:
|
||||
categories:
|
||||
- title: '🚀 Features'
|
||||
labels:
|
||||
- 'feature'
|
||||
- 'enhancement'
|
||||
label: 'enhancement'
|
||||
- title: '🐛 Bug Fixes'
|
||||
labels:
|
||||
- 'fix'
|
||||
- 'bugfix'
|
||||
- 'bug'
|
||||
label: 'bug'
|
||||
- title: '⚙️ Refactoring'
|
||||
label: 'refactor'
|
||||
- title: '🧩 UI/UX'
|
||||
label: 'UI/UX'
|
||||
- title: '📚 Documentation'
|
||||
label: 'documentation'
|
||||
- title: '🔒 Security'
|
||||
label: 'security'
|
||||
- title: '🧰 GitHub Actions'
|
||||
label: 'github actions'
|
||||
label: 'github_actions'
|
||||
- title: '🦀 Rust'
|
||||
label: 'rust'
|
||||
- title: '📃 Scripting'
|
||||
label: 'script'
|
||||
exclude:
|
||||
labels:
|
||||
- 'skip-changelog'
|
|
@ -74,7 +74,7 @@ impl FloatContent for RunningCommand {
|
|||
|
||||
title_line.push_span(
|
||||
Span::default()
|
||||
.content(" press <ENTER> to close this window ")
|
||||
.content(" Press <ENTER> to close this window ")
|
||||
.style(Style::default()),
|
||||
);
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ use temp_dir::TempDir;
|
|||
|
||||
const MIN_WIDTH: u16 = 77;
|
||||
const MIN_HEIGHT: u16 = 19;
|
||||
const TITLE: &str = concat!("Linux Toolbox - ", env!("BUILD_DATE"));
|
||||
const TITLE: &str = concat!(" Linux Toolbox - ", env!("BUILD_DATE"), " ");
|
||||
const ACTIONS_GUIDE: &str = "List of important tasks performed by commands' names:
|
||||
|
||||
D - disk modifications (ex. partitioning) (privileged)
|
||||
|
@ -61,7 +61,7 @@ pub struct AppState {
|
|||
selected_commands: Vec<Rc<ListNode>>,
|
||||
drawable: bool,
|
||||
#[cfg(feature = "tips")]
|
||||
tip: &'static str,
|
||||
tip: String,
|
||||
}
|
||||
|
||||
pub enum Focus {
|
||||
|
@ -374,7 +374,7 @@ impl AppState {
|
|||
};
|
||||
|
||||
#[cfg(feature = "tips")]
|
||||
let bottom_title = Line::from(self.tip.bold().blue()).right_aligned();
|
||||
let bottom_title = Line::from(self.tip.as_str().bold().blue()).right_aligned();
|
||||
#[cfg(not(feature = "tips"))]
|
||||
let bottom_title = "";
|
||||
|
||||
|
@ -745,13 +745,13 @@ impl AppState {
|
|||
const TIPS: &str = include_str!("../cool_tips.txt");
|
||||
|
||||
#[cfg(feature = "tips")]
|
||||
fn get_random_tip() -> &'static str {
|
||||
fn get_random_tip() -> String {
|
||||
let tips: Vec<&str> = TIPS.lines().collect();
|
||||
if tips.is_empty() {
|
||||
return "";
|
||||
return "".to_string();
|
||||
}
|
||||
|
||||
let mut rng = rand::thread_rng();
|
||||
let random_index = rng.gen_range(0..tips.len());
|
||||
tips[random_index]
|
||||
format!(" {} ", tips[random_index])
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user