diff --git a/branding/round.svg b/branding/round.svg index b10dc32..d6ece5e 100644 --- a/branding/round.svg +++ b/branding/round.svg @@ -1,3 +1,31 @@ + + diff --git a/branding/square.svg b/branding/square.svg index f3f43a4..0eb74d5 100644 --- a/branding/square.svg +++ b/branding/square.svg @@ -1,3 +1,31 @@ + + diff --git a/build.rs b/build.rs index d101b11..607dca0 100644 --- a/build.rs +++ b/build.rs @@ -1,23 +1,29 @@ /* -* Copyright (C) 2023 - 2024: -* The Trinitrix Project -* SPDX-License-Identifier: LGPL-3.0-or-later +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT * -* This file is part of the Trixy crate for Trinitrix. +* This file is part of Trinitrix. * -* Trixy is free software: you can redistribute it and/or modify -* it under the terms of the Lesser GNU General Public License as -* published by the Free Software Foundation, either version 3 of -* the License, or (at your option) any later version. +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: * -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. * -* You should have received a copy of the GNU General Public License -* and the Lesser GNU General Public License along with this program. -* If not, see . +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. */ use trixy::macros::config::trixy::TrixyConfig; diff --git a/cog.toml b/cog.toml index 6e15915..1bba46c 100644 --- a/cog.toml +++ b/cog.toml @@ -1,3 +1,29 @@ +# Copyright (C) 2024 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: MIT +# +# This file is part of Trinitrix. +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the “Software”), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + tag_prefix = "v" branch_whitelist = ["master"] ignore_merge_commits = false diff --git a/config/c/plugin.c b/config/c/plugin.c index 1280b7c..82f941e 100644 --- a/config/c/plugin.c +++ b/config/c/plugin.c @@ -1,24 +1,30 @@ /* - * Copyright (C) 2023 - 2024: - * The Trinitrix Project - * SPDX-License-Identifier: LGPL-3.0-or-later - * - * This file is part of the Trixy crate for Trinitrix. - * - * Trixy is free software: you can redistribute it and/or modify - * it under the terms of the Lesser GNU General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * and the Lesser GNU General Public License along with this program. - * If not, see . - */ +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ #include "../../dist/interface.h" #include diff --git a/config/lua/init.lua b/config/lua/init.lua index a225c69..aa938b0 100644 --- a/config/lua/init.lua +++ b/config/lua/init.lua @@ -1,3 +1,29 @@ +-- Copyright (C) 2024 - 2024: +-- The Trinitrix Project +-- SPDX-License-Identifier: MIT +-- +-- This file is part of Trinitrix. +-- +-- Permission is hereby granted, free of charge, to any person +-- obtaining a copy of this software and associated documentation files +-- (the “Software”), to deal in the Software without restriction, +-- including without limitation the rights to use, copy, modify, merge, +-- publish, distribute, sublicense, and/or sell copies of the Software, +-- and to permit persons to whom the Software is furnished to do so, +-- subject to the following conditions: +-- +-- The above copyright notice and this permission notice shall be +-- included in all copies or substantial portions of the Software. +-- +-- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +-- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +-- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +-- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +-- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +-- OTHER DEALINGS IN THE SOFTWARE. + -- FIXME(@soispha): The code here has been deprecated, update it when trixy supports lua <2024-05-03> -- create the required tables under `std` diff --git a/docs/CommandLine.md b/docs/CommandLine.md index c6d1e6b..d4261d3 100644 --- a/docs/CommandLine.md +++ b/docs/CommandLine.md @@ -1,3 +1,31 @@ + + # Command Line Trinitrix has a command line, which you can use to control and navigate the app. You can activate it with the `CommandLineShow` command, which is mapped to `+c` by default. diff --git a/docs/Commands.md b/docs/Commands.md index 1f08062..7b745ab 100644 --- a/docs/Commands.md +++ b/docs/Commands.md @@ -1,3 +1,31 @@ + + # Commands Trinitrix relies heavily on the concept of commands. There is a command for every interaction with the application. diff --git a/docs/CommitMessageStyle.md b/docs/CommitMessageStyle.md index ce92326..1b5c60a 100644 --- a/docs/CommitMessageStyle.md +++ b/docs/CommitMessageStyle.md @@ -1,3 +1,31 @@ + + # Commit message style *This specification is heavily inspired by the [AngularJS commit message format](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format).* diff --git a/docs/Config.md b/docs/Config.md index e6237b9..0be8ffd 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -1,3 +1,31 @@ + + # Config To configure trinitrix, you can add a file named `config.lua` to the userdata path. This file will be interpreted on startup with the same syntax as the Command Line. \ No newline at end of file diff --git a/docs/Philosophy.md b/docs/Philosophy.md index 0d2ea6c..9a44f4a 100644 --- a/docs/Philosophy.md +++ b/docs/Philosophy.md @@ -1,3 +1,31 @@ + + # Design Philosophy ## Customizability diff --git a/docs/architecture.drawio b/docs/architecture.drawio index 037cd7b..805b29b 100644 --- a/docs/architecture.drawio +++ b/docs/architecture.drawio @@ -1,3 +1,31 @@ + + diff --git a/docs/architecture.svg b/docs/architecture.svg index b589fce..adaa6e2 100644 --- a/docs/architecture.svg +++ b/docs/architecture.svg @@ -1,4 +1,32 @@ + + -
Main Process
Main Process
Accounts (example)
Accounts (example)
Account 1 (Matrix)
Account 1 (Matrix)
Account 2 (Matrix)
Account 2 (Matrix)
Account 3 (Signal)
Account 3 (Signal)
Account 4 (Telegram)
Account 4 (Telegram)
Event Stream
Event Stream
Current Account
Current Account
Chat  Action Stream
Chat  Action Str...
Key Input Sync
Thread
Key Input Sync...
Main Loop
Thread
Main Loop...
Draw UI
Draw UI
Await Event
Await Event
Handle Event
Handle Event
Commands
Commands
Code executor
Code executor
Commands
Commands
Lua
Lua
Trinitrix - Architecture - v2.0
Trinitri...
Protocol Servers
Protocol Servers
Matrix Server
Process
Matrix Server...
Matrix Server
Process
Matrix Server...
Signal Server
Process
Signal Server...
Telegram Server
Process
Telegram Server...
Color Legend
Thread / Process
Thread / Process
Write
Write
Read
Read
Execution Flow
Execution Flow
Struct / Vector
Struct / Vector
Logical Container
Logical Container
API
(Bidirectional IPC)
API...
Stream
Stream
Status
Status
Text is not SVG - cannot display
\ No newline at end of file +
Main Process
Main Process
Accounts (example)
Accounts (example)
Account 1 (Matrix)
Account 1 (Matrix)
Account 2 (Matrix)
Account 2 (Matrix)
Account 3 (Signal)
Account 3 (Signal)
Account 4 (Telegram)
Account 4 (Telegram)
Event Stream
Event Stream
Current Account
Current Account
Chat  Action Stream
Chat  Action Str...
Key Input Sync
Thread
Key Input Sync...
Main Loop
Thread
Main Loop...
Draw UI
Draw UI
Await Event
Await Event
Handle Event
Handle Event
Commands
Commands
Code executor
Code executor
Commands
Commands
Lua
Lua
Trinitrix - Architecture - v2.0
Trinitri...
Protocol Servers
Protocol Servers
Matrix Server
Process
Matrix Server...
Matrix Server
Process
Matrix Server...
Signal Server
Process
Signal Server...
Telegram Server
Process
Telegram Server...
Color Legend
Thread / Process
Thread / Process
Write
Write
Read
Read
Execution Flow
Execution Flow
Struct / Vector
Struct / Vector
Logical Container
Logical Container
API
(Bidirectional IPC)
API...
Stream
Stream
Status
Status
Text is not SVG - cannot display
diff --git a/docs/trinitrix.1.md b/docs/trinitrix.1.md index 9f7e64d..dfee02a 100644 --- a/docs/trinitrix.1.md +++ b/docs/trinitrix.1.md @@ -1,3 +1,31 @@ + + % TRINITRIX(1) trinitrix 0.1.0 % The Trinitrix Project % May 2024 diff --git a/flake.nix b/flake.nix index fe7b4ff..b435c85 100644 --- a/flake.nix +++ b/flake.nix @@ -1,3 +1,29 @@ +# Copyright (C) 2024 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: MIT +# +# This file is part of Trinitrix. +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the “Software”), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + { description = "A multi protocol chat client"; diff --git a/makefile b/makefile index fcc3e05..e5be8b9 100644 --- a/makefile +++ b/makefile @@ -1,22 +1,28 @@ -# Copyright (C) 2023 - 2024: -# The Trinitrix Project -# SPDX-License-Identifier: LGPL-3.0-or-later +# Copyright (C) 2024 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: MIT # -# This file is part of the Trixy crate for Trinitrix. +# This file is part of Trinitrix. # -# Trixy is free software: you can redistribute it and/or modify -# it under the terms of the Lesser GNU General Public License as -# published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the “Software”), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. # -# You should have received a copy of the GNU General Public License -# and the Lesser GNU General Public License along with this program. -# If not, see . +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. BIN_NAME := ./target/plugin.so diff --git a/scripts/renew_copyright_header.sh b/scripts/renew_copyright_header.sh index 4f424c3..451ac79 100755 --- a/scripts/renew_copyright_header.sh +++ b/scripts/renew_copyright_header.sh @@ -1,3 +1,29 @@ +# Copyright (C) 2024 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: MIT +# +# This file is part of Trinitrix. +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the “Software”), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + #! /usr/bin/env sh # NOTE: This is the line length of the .licensure.yml header template **plus** the extra diff --git a/scripts/valgrind_test.sh b/scripts/valgrind_test.sh index 3ffbe00..2d166bc 100755 --- a/scripts/valgrind_test.sh +++ b/scripts/valgrind_test.sh @@ -1,24 +1,30 @@ -#! /usr/bin/env sh -# Copyright (C) 2023 - 2024: -# The Trinitrix Project -# SPDX-License-Identifier: LGPL-3.0-or-later +# Copyright (C) 2024 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: MIT # -# This file is part of the Trixy crate for Trinitrix. +# This file is part of Trinitrix. # -# Trixy is free software: you can redistribute it and/or modify -# it under the terms of the Lesser GNU General Public License as -# published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the “Software”), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. # -# You should have received a copy of the GNU General Public License -# and the Lesser GNU General Public License along with this program. -# If not, see . +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. +#! /usr/bin/env sh cd "$(dirname "$0")" || { echo "BUG: There is no parent dirname!"; exit 1 diff --git a/src/app/command_interface/command_list/api.tri b/src/app/command_interface/command_list/api.tri index 47b4834..919b587 100644 --- a/src/app/command_interface/command_list/api.tri +++ b/src/app/command_interface/command_list/api.tri @@ -1,23 +1,29 @@ /* -* Copyright (C) 2023 - 2024: -* The Trinitrix Project -* SPDX-License-Identifier: LGPL-3.0-or-later +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT * -* This file is part of the Trixy crate for Trinitrix. +* This file is part of Trinitrix. * -* Trixy is free software: you can redistribute it and/or modify -* it under the terms of the Lesser GNU General Public License as -* published by the Free Software Foundation, either version 3 of -* the License, or (at your option) any later version. +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: * -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. * -* You should have received a copy of the GNU General Public License -* and the Lesser GNU General Public License along with this program. -* If not, see . +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. */ //// Prints to the output, with a newline. diff --git a/src/app/command_interface/command_list/mod.rs b/src/app/command_interface/command_list/mod.rs index 04923f3..597bb26 100644 --- a/src/app/command_interface/command_list/mod.rs +++ b/src/app/command_interface/command_list/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + // Run the `api` bin to see the generated api use std::{panic::catch_unwind, process, thread}; diff --git a/src/app/command_interface/command_transfer_value/lua.rs b/src/app/command_interface/command_transfer_value/lua.rs index bd03ea3..57ba09b 100644 --- a/src/app/command_interface/command_transfer_value/lua.rs +++ b/src/app/command_interface/command_transfer_value/lua.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::collections::HashMap; use cli_log::info; diff --git a/src/app/command_interface/command_transfer_value/mod.rs b/src/app/command_interface/command_transfer_value/mod.rs index b9aa4f1..50d58c6 100644 --- a/src/app/command_interface/command_transfer_value/mod.rs +++ b/src/app/command_interface/command_transfer_value/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::{collections::HashMap, fmt::Display}; use serde::{Deserialize, Serialize}; diff --git a/src/app/command_interface/command_transfer_value/support_types.rs b/src/app/command_interface/command_transfer_value/support_types.rs index 031e205..e827e82 100644 --- a/src/app/command_interface/command_transfer_value/support_types.rs +++ b/src/app/command_interface/command_transfer_value/support_types.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::{ fmt::Display, sync::atomic::{AtomicUsize, Ordering}, diff --git a/src/app/command_interface/command_transfer_value/type_conversions.rs b/src/app/command_interface/command_transfer_value/type_conversions.rs index 0d4ea2f..7a9dba2 100644 --- a/src/app/command_interface/command_transfer_value/type_conversions.rs +++ b/src/app/command_interface/command_transfer_value/type_conversions.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::collections::HashMap; use super::CommandTransferValue; diff --git a/src/app/command_interface/lua_command_manager/mod.rs b/src/app/command_interface/lua_command_manager/mod.rs index c87816f..b0395c4 100644 --- a/src/app/command_interface/lua_command_manager/mod.rs +++ b/src/app/command_interface/lua_command_manager/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::thread; use anyhow::{Context, Result}; diff --git a/src/app/command_interface/mod.rs b/src/app/command_interface/mod.rs index 29c8b8f..300424b 100644 --- a/src/app/command_interface/mod.rs +++ b/src/app/command_interface/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + pub mod command_list; // pub mod command_transfer_value; // pub mod lua_command_manager; diff --git a/src/app/config/lua/mod.rs b/src/app/config/lua/mod.rs index f742e25..082f053 100644 --- a/src/app/config/lua/mod.rs +++ b/src/app/config/lua/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::path::{Path, PathBuf}; use anyhow::{Context, Result}; diff --git a/src/app/config/mod.rs b/src/app/config/mod.rs index a25d043..cd4fc49 100644 --- a/src/app/config/mod.rs +++ b/src/app/config/mod.rs @@ -1,2 +1,30 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + pub mod lua; pub mod shared_objects; diff --git a/src/app/config/shared_objects/mod.rs b/src/app/config/shared_objects/mod.rs index 7d74119..7eec2f1 100644 --- a/src/app/config/shared_objects/mod.rs +++ b/src/app/config/shared_objects/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::{ ffi::c_int, path::PathBuf, diff --git a/src/app/events/handlers/command.rs b/src/app/events/handlers/command.rs index fab2ef7..fc4b7ce 100644 --- a/src/app/events/handlers/command.rs +++ b/src/app/events/handlers/command.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::str::FromStr; use crate::{ diff --git a/src/app/events/handlers/function.rs b/src/app/events/handlers/function.rs index 1ce4518..5fda910 100644 --- a/src/app/events/handlers/function.rs +++ b/src/app/events/handlers/function.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + // use anyhow::Result; // // use crate::app::{ diff --git a/src/app/events/handlers/input.rs b/src/app/events/handlers/input.rs index 06931e4..da9defc 100644 --- a/src/app/events/handlers/input.rs +++ b/src/app/events/handlers/input.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use anyhow::Result; use cli_log::info; use crossterm::event::Event as CrosstermEvent; diff --git a/src/app/events/handlers/lua_command.rs b/src/app/events/handlers/lua_command.rs index 0fc3895..1dce398 100644 --- a/src/app/events/handlers/lua_command.rs +++ b/src/app/events/handlers/lua_command.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + // use anyhow::Result; // use cli_log::trace; // diff --git a/src/app/events/handlers/main.rs b/src/app/events/handlers/main.rs index acfe450..a4287a3 100644 --- a/src/app/events/handlers/main.rs +++ b/src/app/events/handlers/main.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use anyhow::{Context, Result}; use crossterm::event::{Event as CrosstermEvent, KeyCode, KeyEvent, KeyModifiers}; diff --git a/src/app/events/handlers/mod.rs b/src/app/events/handlers/mod.rs index 3cf95ee..c60c914 100644 --- a/src/app/events/handlers/mod.rs +++ b/src/app/events/handlers/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + // input events pub mod input; diff --git a/src/app/events/listeners/mod.rs b/src/app/events/listeners/mod.rs index 351eb18..7e86ee7 100644 --- a/src/app/events/listeners/mod.rs +++ b/src/app/events/listeners/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use crate::app::events::Event; use anyhow::{bail, Result}; use tokio::{sync::mpsc, time::Duration}; diff --git a/src/app/events/mod.rs b/src/app/events/mod.rs index 51f7c11..cc9d4f2 100644 --- a/src/app/events/mod.rs +++ b/src/app/events/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + mod handlers; pub mod listeners; diff --git a/src/app/mod.rs b/src/app/mod.rs index cd99a16..9c7a63c 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + pub mod command_interface; pub mod config; pub mod events; diff --git a/src/app/status.rs b/src/app/status.rs index 74d8492..0298dec 100644 --- a/src/app/status.rs +++ b/src/app/status.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use core::fmt; use anyhow::{bail, Result}; diff --git a/src/bin/api.rs b/src/bin/api.rs index 51ddb3f..be98106 100644 --- a/src/bin/api.rs +++ b/src/bin/api.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + fn main() { let output = include_str!(concat!(env!("OUT_DIR"), "/api.rs")); println!("{}", output); diff --git a/src/cli.rs b/src/cli.rs index 94abb9b..d0e78e3 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::path::PathBuf; use clap::{Parser, Subcommand}; diff --git a/src/main.rs b/src/main.rs index 8ae4497..244d9a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + mod app; mod cli; mod ui; diff --git a/src/ui/mod.rs b/src/ui/mod.rs index c352461..f634890 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -1,2 +1,30 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + pub mod ui_trait; pub mod repl; diff --git a/src/ui/old/central/mod.rs b/src/ui/old/central/mod.rs index 64056ea..f6ad3d9 100644 --- a/src/ui/old/central/mod.rs +++ b/src/ui/old/central/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + pub mod update; use std::io::Stdout; diff --git a/src/ui/old/central/update/mod.rs b/src/ui/old/central/update/mod.rs index 6b62076..1f1b8cc 100644 --- a/src/ui/old/central/update/mod.rs +++ b/src/ui/old/central/update/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::cmp; use anyhow::Result; diff --git a/src/ui/old/central/update/widgets/command_monitor.rs b/src/ui/old/central/update/widgets/command_monitor.rs index 9e548ed..755b979 100644 --- a/src/ui/old/central/update/widgets/command_monitor.rs +++ b/src/ui/old/central/update/widgets/command_monitor.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use tui::{ layout::Alignment, style::{Color, Style}, diff --git a/src/ui/old/central/update/widgets/mod.rs b/src/ui/old/central/update/widgets/mod.rs index e72d096..34547ff 100644 --- a/src/ui/old/central/update/widgets/mod.rs +++ b/src/ui/old/central/update/widgets/mod.rs @@ -1 +1,29 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + pub mod command_monitor; diff --git a/src/ui/old/mod.rs b/src/ui/old/mod.rs index 25db77c..e68d2ca 100644 --- a/src/ui/old/mod.rs +++ b/src/ui/old/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + pub mod central; pub mod ui_trait; diff --git a/src/ui/repl/mod.rs b/src/ui/repl/mod.rs index 487bb2d..2ca4f12 100644 --- a/src/ui/repl/mod.rs +++ b/src/ui/repl/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use std::io::{self, Stdout, Write}; use anyhow::{Context, Result}; diff --git a/src/ui/ui_trait/mod.rs b/src/ui/ui_trait/mod.rs index 25fbe83..cb5bc15 100644 --- a/src/ui/ui_trait/mod.rs +++ b/src/ui/ui_trait/mod.rs @@ -1,3 +1,31 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* SPDX-License-Identifier: MIT +* +* This file is part of Trinitrix. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation files +* (the “Software”), to deal in the Software without restriction, +* including without limitation the rights to use, copy, modify, merge, +* publish, distribute, sublicense, and/or sell copies of the Software, +* and to permit persons to whom the Software is furnished to do so, +* subject to the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + use anyhow::Result; use keymaps::key_repr::Key; diff --git a/treefmt.nix b/treefmt.nix index 1cbab40..e983f6c 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -1,3 +1,29 @@ +# Copyright (C) 2024 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: MIT +# +# This file is part of Trinitrix. +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the “Software”), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + { treefmt-nix, pkgs, diff --git a/update.sh b/update.sh index 0dfd573..a8c7983 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,29 @@ +# Copyright (C) 2024 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: MIT +# +# This file is part of Trinitrix. +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the “Software”), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + #!/usr/bin/env sh cargo update && cargo upgrade