aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2025-04-14 01:49:04 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2025-04-14 01:49:04 +0800
commitc866b0da8548712c729c73b868a8ebd61821ce14 (patch)
tree43d07dfdd79400e6672af0328cc90f75d5513c31
parent3f63992642309d3ad9691d98e0c3deee06800c09 (diff)
修改了项目名,从 PhantomLink-Gamepad 修改到了 ThereIsNoPads,这是我洗澡的时候灵机一动想出来的
-rw-r--r--.idea/runConfigurations/Run_Client.xml2
-rw-r--r--.idea/runConfigurations/Run_Server_Test.xml2
-rw-r--r--.init/generate.docs.sh8
-rw-r--r--.init/generate_docs.bat12
-rw-r--r--.init/init_project.bat6
-rw-r--r--.init/init_project.sh4
-rw-r--r--client/Cargo.lock14
-rw-r--r--client/Cargo.toml6
-rw-r--r--core/Cargo.lock14
-rw-r--r--core/Cargo.toml6
-rw-r--r--core/server_test/Cargo.lock24
-rw-r--r--core/server_test/Cargo.toml6
12 files changed, 44 insertions, 60 deletions
diff --git a/.idea/runConfigurations/Run_Client.xml b/.idea/runConfigurations/Run_Client.xml
index 82d712f..8f21f0f 100644
--- a/.idea/runConfigurations/Run_Client.xml
+++ b/.idea/runConfigurations/Run_Client.xml
@@ -1,6 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Client" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
- <option name="command" value="run --package phantomlink-gamepad-client --bin phantomlink-gamepad-client" />
+ <option name="command" value="run --package there-is-nopads-client --bin there-is-nopads-client" />
<option name="workingDirectory" value="file://$PROJECT_DIR$/client" />
<envs />
<option name="emulateTerminal" value="true" />
diff --git a/.idea/runConfigurations/Run_Server_Test.xml b/.idea/runConfigurations/Run_Server_Test.xml
index b3894fd..b46ae0f 100644
--- a/.idea/runConfigurations/Run_Server_Test.xml
+++ b/.idea/runConfigurations/Run_Server_Test.xml
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Server Test" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
<option name="buildProfileId" value="dev" />
- <option name="command" value="run --package phantomlink-server-test --bin phantomlink-server-test" />
+ <option name="command" value="run --package there-is-nopads-server-test --bin there-is-nopads-server-test" />
<option name="workingDirectory" value="file://$PROJECT_DIR$/core/server_test" />
<envs />
<option name="emulateTerminal" value="true" />
diff --git a/.init/generate.docs.sh b/.init/generate.docs.sh
index 5df7b88..5571f28 100644
--- a/.init/generate.docs.sh
+++ b/.init/generate.docs.sh
@@ -1,12 +1,10 @@
#!/bin/bash
set -eo pipefail
-# 定义全局参数
DOC_ROOT="../doc"
CLIENT_DOC="${DOC_ROOT}/client-documents"
CORE_DOC="${DOC_ROOT}/core-documents"
-# 清理旧文档目录
clean_dirs() {
for dir in "${CLIENT_DOC}" "${CORE_DOC}"; do
if [ -d "${dir}" ]; then
@@ -16,7 +14,6 @@ clean_dirs() {
done
}
-# 生成客户端文档
gen_client_docs() {
echo "Generating client docs..."
pushd ../client >/dev/null
@@ -25,7 +22,7 @@ gen_client_docs() {
return 1
fi
- local src_path="../shared/target/doc/phantomlink_gamepad_client"
+ local src_path="../shared/target/doc/there_is_nopads_client"
if [ -d "${src_path}" ]; then
mkdir -p "${CLIENT_DOC%/*}"
mv "${src_path}" "${CLIENT_DOC}" && \
@@ -37,7 +34,6 @@ gen_client_docs() {
popd >/dev/null
}
-# 生成核心库文档
gen_core_docs() {
echo "Generating core docs..."
pushd ../core >/dev/null
@@ -46,7 +42,7 @@ gen_core_docs() {
return 1
fi
- local src_path="../shared/target/doc/phantomlink_gamepad_core"
+ local src_path="../shared/target/doc/there_is_nopads_core"
if [ -d "${src_path}" ]; then
mkdir -p "${CORE_DOC%/*}"
mv "${src_path}" "${CORE_DOC}" && \
diff --git a/.init/generate_docs.bat b/.init/generate_docs.bat
index 829946a..59d83ae 100644
--- a/.init/generate_docs.bat
+++ b/.init/generate_docs.bat
@@ -1,30 +1,26 @@
@echo off
setlocal enabledelayedexpansion
-:: 定义全局参数
set DOC_ROOT=..\doc
set CLIENT_DOC=%DOC_ROOT%\client-documents
set CORE_DOC=%DOC_ROOT%\core-documents
-:: 清理旧文档目录
if exist "%CLIENT_DOC%" rmdir /s /q "%CLIENT_DOC%"
if exist "%CORE_DOC%" rmdir /s /q "%CORE_DOC%"
-:: 生成客户端文档
cd ..\client
cargo doc --no-deps > nul 2>&1
-if exist "..\shared\target\doc\phantomlink_gamepad_client" (
- move "..\shared\target\doc\phantomlink_gamepad_client" "%CLIENT_DOC%"
+if exist "..\shared\target\doc\there_is_nopads_client" (
+ move "..\shared\target\doc\there_is_nopads_client" "%CLIENT_DOC%"
echo [SUCCESS] Client docs moved to: %CLIENT_DOC%
) else (
echo [ERROR] Client docs generation failed
)
-:: 生成核心库文档
cd ..\core
cargo doc --no-deps > nul 2>&1
-if exist "..\shared\target\doc\phantomlink_gamepad_core" (
- move "..\shared\target\doc\phantomlink_gamepad_core" "%CORE_DOC%"
+if exist "..\shared\target\doc\there_is_nopads_core" (
+ move "..\shared\target\doc\there_is_nopads_core" "%CORE_DOC%"
echo [SUCCESS] Core docs moved to: %CORE_DOC%
) else (
echo [ERROR] Core docs generation failed
diff --git a/.init/init_project.bat b/.init/init_project.bat
index 2c24118..b1d0ba6 100644
--- a/.init/init_project.bat
+++ b/.init/init_project.bat
@@ -2,22 +2,18 @@
setlocal enabledelayedexpansion
set "SCRIPT_DIR=%~dp0"
-:: 初始化目录
cd /d "%SCRIPT_DIR%" || exit /b 1
-:: 客户端构建
echo Building Module : Client
pushd ..\client
cargo build > nul 2>&1
popd
-:: 核心构建
echo Building Module : Core
pushd ..\core
cargo build > nul 2>&1
popd
-:: 检测管理员权限
NET FILE >nul 2>&1
if %errorlevel% NEQ 0 (
echo [ WARNING ] If you want to apply folder icons, please grant administrator privileges and run this script again.
@@ -25,7 +21,6 @@ if %errorlevel% NEQ 0 (
exit /b 0
)
-:: 图标下载
echo Downloading icon11 ... ( from github.com/icon11-community/Folder-Ico.git )
pushd ..\.init
git clone git@github.com:icon11-community/Folder-Ico.git > nul 2>&1
@@ -43,7 +38,6 @@ for /f "delims=" %%D in ('dir /ad /b /s ^| findstr /v /i "\\.cargo\\shared\\"')
del /f /q "%LocalAppData%\IconCache.db" >nul
-:: 完成
echo [ SUCCESS ] DONE :)
pause >nul
exit /b 0
diff --git a/.init/init_project.sh b/.init/init_project.sh
index 41b5b18..6c04330 100644
--- a/.init/init_project.sh
+++ b/.init/init_project.sh
@@ -1,23 +1,19 @@
#!/bin/bash
set -e
-# 初始化工作目录
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR" || exit 1
-# 客户端构建
echo "Building Module : Client"
pushd ../client >/dev/null
cargo build > /dev/null 2>&1
popd >/dev/null
-# 核心构建
echo "Building Module : Core"
pushd ../core >/dev/null
cargo build > /dev/null 2>&1
popd >/dev/null
-# 完成提示
echo -e "\n [ SUCCESS] DONE :)"
pause >/dev/null
exit 0 \ No newline at end of file
diff --git a/client/Cargo.lock b/client/Cargo.lock
index a8faf86..8fc22bf 100644
--- a/client/Cargo.lock
+++ b/client/Cargo.lock
@@ -3211,13 +3211,6 @@ dependencies = [
]
[[package]]
-name = "phantomlink-gamepad-client"
-version = "0.1.0"
-dependencies = [
- "bevy",
-]
-
-[[package]]
name = "pin-project"
version = "1.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -3862,6 +3855,13 @@ dependencies = [
]
[[package]]
+name = "there-is-nopads-client"
+version = "0.1.0"
+dependencies = [
+ "bevy",
+]
+
+[[package]]
name = "thiserror"
version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/client/Cargo.toml b/client/Cargo.toml
index 45f6abd..e121e3c 100644
--- a/client/Cargo.toml
+++ b/client/Cargo.toml
@@ -1,10 +1,10 @@
[package]
-name = "phantomlink-gamepad-client"
+name = "there-is-nopads-client"
authors = [ "CatilGrass" ]
description = "A mobile device control solution for local multiplayer gaming, featuring an in-game interface, controller client, and support for universal devices."
-homepage = "https://github.com/CatilGrass/PhantomLink-Gamepad"
-repository = "https://github.com/CatilGrass/PhantomLink-Gamepad"
+homepage = "https://github.com/CatilGrass/ThereIsNoPads"
+repository = "https://github.com/CatilGrass/ThereIsNoPads"
readme = "../README.md"
version = "0.1.0"
diff --git a/core/Cargo.lock b/core/Cargo.lock
index 3fff94f..2c4ada7 100644
--- a/core/Cargo.lock
+++ b/core/Cargo.lock
@@ -63,13 +63,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
[[package]]
-name = "phantomlink-gamepad-core"
-version = "0.1.0"
-dependencies = [
- "sha1",
-]
-
-[[package]]
name = "sha1"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -81,6 +74,13 @@ dependencies = [
]
[[package]]
+name = "there-is-nopads-core"
+version = "0.1.0"
+dependencies = [
+ "sha1",
+]
+
+[[package]]
name = "typenum"
version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 981c456..aa5b1ca 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -1,10 +1,10 @@
[package]
-name = "phantomlink-gamepad-core"
+name = "there-is-nopads-core"
authors = [ "CatilGrass" ]
description = "A mobile device control solution for local multiplayer gaming, featuring an in-game interface, controller client, and support for universal devices."
-homepage = "https://github.com/CatilGrass/PhantomLink-Gamepad"
-repository = "https://github.com/CatilGrass/PhantomLink-Gamepad"
+homepage = "https://github.com/CatilGrass/ThereIsNoPads"
+repository = "https://github.com/CatilGrass/ThereIsNoPads"
readme = "../README.md"
version = "0.1.0"
diff --git a/core/server_test/Cargo.lock b/core/server_test/Cargo.lock
index 0bb75b0..7879b5c 100644
--- a/core/server_test/Cargo.lock
+++ b/core/server_test/Cargo.lock
@@ -63,28 +63,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
[[package]]
-name = "phantomlink-gamepad-core"
-version = "0.1.0"
+name = "sha1"
+version = "0.10.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
dependencies = [
- "sha1",
+ "cfg-if",
+ "cpufeatures",
+ "digest",
]
[[package]]
-name = "phantomlink-server-test"
+name = "there-is-nopads-core"
version = "0.1.0"
dependencies = [
- "phantomlink-gamepad-core",
+ "sha1",
]
[[package]]
-name = "sha1"
-version = "0.10.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
+name = "there-is-nopads-server-test"
+version = "0.1.0"
dependencies = [
- "cfg-if",
- "cpufeatures",
- "digest",
+ "there-is-nopads-core",
]
[[package]]
diff --git a/core/server_test/Cargo.toml b/core/server_test/Cargo.toml
index 192aac9..dc29510 100644
--- a/core/server_test/Cargo.toml
+++ b/core/server_test/Cargo.toml
@@ -1,8 +1,10 @@
[package]
-name = "phantomlink-server-test"
+name = "there-is-nopads-server-test"
authors = [ "CatilGrass" ]
version = "0.1.0"
edition = "2024"
[dependencies]
-phantomlink-gamepad-core = { path = "../../core" } \ No newline at end of file
+there-is-nopads-core = { path = "../../core" }
+
+# Not A Controller \ No newline at end of file