Skip to content

Commit

Permalink
Rename project from "Chauri" to "Cuuri"
Browse files Browse the repository at this point in the history
- Updated all instances of "Chauri" to "Cuuri" in project files including README.md, package.json, Cargo.toml, and configuration files.
- Adjusted file paths and identifiers to reflect the new project name.
- Ensured consistency across the codebase with the new name.
  • Loading branch information
takanotume24 committed Nov 8, 2024
1 parent d44dd33 commit 0fa2133
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 40 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Chauri
Chauri is a GUI client for ChatGPT built with Tauri, Vue, and TypeScript.
## Cuuri
Cuuri is a GUI client for ChatGPT built with Tauri, Vue, and TypeScript.

![Screenshot](./public/screenshot.png)

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "chauri",
"name": "cuuri",
"private": true,
"version": "0.1.0",
"type": "module",
Expand All @@ -23,4 +23,4 @@
"vite": "^5.3.1",
"vue-tsc": "^2.0.22"
}
}
}
42 changes: 21 additions & 21 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "chauri"
name = "cuuri"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
Expand All @@ -11,7 +11,7 @@ edition = "2021"
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "chauri_lib"
name = "cuuri_lib"
crate-type = ["staticlib", "cdylib", "rlib"]

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/get_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::config::Config;

pub async fn get_config() -> Result<Config, String> {
let mut config_path = dirs::home_dir().expect("Failed to get home directory");
config_path.push(".chauri/config.toml");
config_path.push(".cuuri/config.toml");

if !config_path.exists() {
return Err("Configuration file does not exist".to_string());
Expand Down
5 changes: 2 additions & 3 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ mod schema;
mod set_openai_api_key;

use commands::*;
use config::Config;
use database::Database;
use generate_session_id::generate_session_id;
use get_available_models::get_available_models;
Expand All @@ -35,7 +34,7 @@ fn shutdown(database: &Database) {

pub fn run() {
let mut config_path = dirs::home_dir().expect("Failed to get home directory");
config_path.push(".chauri/config.toml");
config_path.push(".cuuri/config.toml");

if !config_path.exists() {
if let Some(parent) = config_path.parent() {
Expand All @@ -50,7 +49,7 @@ pub fn run() {
}

let mut db_path = dirs::home_dir().expect("Failed to get home directory");
db_path.push(".chauri/chat.db");
db_path.push(".cuuri/chat.db");

if let Some(parent) = db_path.parent() {
fs::create_dir_all(parent).expect("Failed to create directories for database file");
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
chauri_lib::run()
cuuri_lib::run()
}
2 changes: 1 addition & 1 deletion src-tauri/src/set_openai_api_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::fs;
#[tauri::command]
pub async fn set_openai_api_key(api_key: String) -> Result<(), String> {
let mut config_path = dirs::home_dir().expect("Failed to get home directory");
config_path.push(".chauri/config.toml");
config_path.push(".cuuri/config.toml");

let mut config = Config::from_file(config_path.to_str().unwrap())
.map_err(|e| format!("Failed to load configuration: {}", e))?;
Expand Down
8 changes: 4 additions & 4 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "chauri",
"productName": "cuuri",
"version": "0.1.0",
"identifier": "com.takanotume24.chauri",
"identifier": "com.takanotume24.cuuri",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
Expand All @@ -12,7 +12,7 @@
"app": {
"windows": [
{
"title": "chauri",
"title": "Cuuri",
"width": 1100,
"height": 600
}
Expand All @@ -32,4 +32,4 @@
"icons/icon.ico"
]
}
}
}

0 comments on commit 0fa2133

Please sign in to comment.