chore: initial project

This commit is contained in:
2026-10-08 21:09:04 +01:00
commit bbc17065e5
10 changed files with 8679 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
/target
.env
+10
View File
@@ -0,0 +1,10 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Ignored default folder with query files
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="EMPTY_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Tofu.iml" filepath="$PROJECT_DIR$/.idea/Tofu.iml" />
</modules>
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
Generated
+8599
View File
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
[package]
name = "Tofu"
authors = ["Inako"]
version = "0.1.0"
edition = "2024"
[dependencies]
matrix-sdk = "0.19.1"
matrix-sdk-ui = "0.19.1"
slint = "1.18.1"
dotenvy = "0.15"
eyeball-im = "0.9.1"
anyhow = "1.0.104"
tokio = { version = "1.53.2", features = ["rt-multi-thread", "macros"] }
futures-util = "0.3.34"
[build-dependencies]
slint-build = "1.18.1"
+3
View File
@@ -0,0 +1,3 @@
fn main() {
slint_build::compile("ui/main.slint").expect("Failed to compile Slint UI");
}
+11
View File
@@ -0,0 +1,11 @@
use std::error::Error;
slint::include_modules!();
fn main() -> Result<(), Box<dyn Error>> {
let ui = MainWindow::new()?;
ui.run()?;
Ok(())
}
+11
View File
@@ -0,0 +1,11 @@
export component MainWindow inherits Window {
preferred-width: 1000px;
preferred-height: 700px;
Text {
text: "Tofu Client";
font-size: 48px;
horizontal-alignment: center;
vertical-alignment: center;
}
}