From c1df068b147d5888c35b46b6ab3f5e52874b9a48 Mon Sep 17 00:00:00 2001
From: Shreyas Atre <shreyasatre16@gmail.com>
Date: Sat, 11 Jun 2022 03:10:05 +0530
Subject: [PATCH] [rename] Officially renamed bb-config

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
---
 CMakeLists.txt                    |  2 +-
 README.md                         | 24 ++++++++++++------------
 src/ui/panel/about/about_impl.cpp | 11 +++++------
 src/ui/panel/ics/ics_impl.cpp     |  4 ++--
 src/ui/panel/pru/pru_impl.cpp     |  1 -
 src/ui/ui.cpp                     |  4 ++--
 6 files changed, 22 insertions(+), 24 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 401740b..4425daf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required (VERSION 3.11)
-project(beaglecfg VERSION 0.1)
+project(bb-config VERSION 0.1)
 
 option(BEAGLE_CONFIG_SANITIZE "Use sanitize debug options" OFF)
 option(ARMHF_DEB "Debian Package for armhf" OFF)
diff --git a/README.md b/README.md
index 8ccbcc4..c640766 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,31 @@
 <br />
 <p align="center">
-  <a href="https://github.com/SAtacker/beagle-config">
+  <a href="https://github.com/SAtacker/bb-config">
     <img src="assets/images/beaglecfg.png" alt="Logo" width="481" height="200">
   </a>
   <p align="center">
     Configure your beagle devices easily.
     <br/>
     <br/>
-    <a href="https://github.com/SAtacker/beagle-config/wiki"><strong>Explore the docs »</strong></a>
+    <a href="https://github.com/SAtacker/bb-config/wiki"><strong>Explore the docs »</strong></a>
     <br />
-    <a href="https://github.com/SAtacker/beagle-config/issues">Report Bug</a>
+    <a href="https://github.com/SAtacker/bb-config/issues">Report Bug</a>
     ·
-    <a href="https://github.com/SAtacker/beagle-config/wiki/Examples">Examples</a>
+    <a href="https://github.com/SAtacker/bb-config/wiki/Examples">Examples</a>
     .
-    <a href="https://github.com/SAtacker/beagle-config/issues">Request Feature</a>
+    <a href="https://github.com/SAtacker/bb-config/issues">Request Feature</a>
     ·
-    <a href="https://github.com/SAtacker/beagle-config/pulls">Send a Pull Request</a>
+    <a href="https://github.com/SAtacker/bb-config/pulls">Send a Pull Request</a>
   </p>
 </p>
 
 <p align="center">
-  <img src="https://github.com/SAtacker/beagle-config/actions/workflows/armhf-build.yml/badge.svg">
-  <img src="https://img.shields.io/github/stars/SAtacker/beagle-config">
-  <img src="https://img.shields.io/github/forks/SAtacker/beagle-config">
-  <img src="https://img.shields.io/github/issues/SAtacker/beagle-config">
-  <img src="https://img.shields.io/github/repo-size/SAtacker/beagle-config">
-  <img src="https://img.shields.io/github/license/SAtacker/beagle-config">
+  <img src="https://github.com/SAtacker/bb-config/actions/workflows/armhf-release.yml/badge.svg">
+  <img src="https://img.shields.io/github/stars/SAtacker/bb-config">
+  <img src="https://img.shields.io/github/forks/SAtacker/bb-config">
+  <img src="https://img.shields.io/github/issues/SAtacker/bb-config">
+  <img src="https://img.shields.io/github/repo-size/SAtacker/bb-config">
+  <img src="https://img.shields.io/github/license/SAtacker/bb-config">
 </p>
 
 ## Build
diff --git a/src/ui/panel/about/about_impl.cpp b/src/ui/panel/about/about_impl.cpp
index 2fc1ec5..9099aa2 100644
--- a/src/ui/panel/about/about_impl.cpp
+++ b/src/ui/panel/about/about_impl.cpp
@@ -91,19 +91,18 @@ class AboutImpl : public PanelBase {
                    }) | bold,
                    separator(),
                    vbox({
-                       text("beagle-config"),
+                       text("bb-config"),
                        separator(),
-                       text("Beagle-Config is a tool-set, that aims to provide "
+                       text("bb-config is a tool-set, that aims to provide "
                             "the"),
                        text("functionality to make the most common low-level"
                             "configuration "),
                        text("changes in beagle devices easily"),
                        separator(),
-                       text("https://github.com/SAtacker/beagle-config   "),
+                       text("https://github.com/SAtacker/bb-config   "),
                        separator(),
-                       text(
-                           "https://github.com/SAtacker/beagle-config/commit/" +
-                           std::string(git_hash).substr(10) + "   "),
+                       text("https://github.com/SAtacker/bb-config/commit/" +
+                            std::string(git_hash).substr(10) + "   "),
                        separator(),
                        text(git_version),
                    }),
diff --git a/src/ui/panel/ics/ics_impl.cpp b/src/ui/panel/ics/ics_impl.cpp
index 4468d48..ad8b6d0 100644
--- a/src/ui/panel/ics/ics_impl.cpp
+++ b/src/ui/panel/ics/ics_impl.cpp
@@ -17,7 +17,7 @@ namespace ui {
 namespace {
 
 std::string UserShareConfigPath() {
-  return xdg_utils::data::home() + "/beagle-config";
+  return xdg_utils::data::home() + "/bb-config";
 }
 
 std::string BeagleConfigPath() {
@@ -139,7 +139,7 @@ class ICSImpl : public PanelBase {
     std::time_t time_ =
         std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
     auto ti = std::ctime(&time_);
-    file << "# Last changed by beagle-config on: " << ti << std::endl;
+    file << "# Last changed by bb-config on: " << ti << std::endl;
 
     /* Stores nameserver strings */
     file << "nameserver " << dns_1_str << std::endl;
diff --git a/src/ui/panel/pru/pru_impl.cpp b/src/ui/panel/pru/pru_impl.cpp
index deef6f9..4df68e3 100644
--- a/src/ui/panel/pru/pru_impl.cpp
+++ b/src/ui/panel/pru/pru_impl.cpp
@@ -112,7 +112,6 @@ class PRUPanel : public PanelBase {
 
 namespace panel {
 Panel PRU() {
-
   return Make<PRUPanel>();
 }
 
diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp
index 4e10879..3f56afd 100644
--- a/src/ui/ui.cpp
+++ b/src/ui/ui.cpp
@@ -109,7 +109,7 @@ class MainMenu : public ComponentBase {
       return vbox({
           hbox({
               spinner(5, iteration_),
-              text("  beagle-config"),
+              text("  bb-config"),
               filler(),
               exit_button_->Render() | color(Color::DarkOrange3),
           }),
@@ -128,7 +128,7 @@ class MainMenu : public ComponentBase {
 
   Element Render() override {
     iteration_++;
-    auto title = text(" beagle-config ") | bold | color(Color::Cyan1) | hcenter;
+    auto title = text(" bb-config ") | bold | color(Color::Cyan1) | hcenter;
     return window(title, resizeable_split_->Render()) | bgcolor(Color::Black);
   }
 
-- 
GitLab