This commit is contained in:
Mert Sefa AKGUN 2025-11-26 09:54:42 +01:00 committed by GitHub
commit 3c4bedf675
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 9223 additions and 15 deletions

View file

@ -53,21 +53,25 @@
## Commands ## Commands
- `npm run dev`: run development server - `bun run dev`: run development server
- `npm run build`: build for production - `bun run build`: build for production
- `npm run preview`: preview the built app - `bun run preview`: preview the built app
- `npm run lint`: lint files using ESLint - `bun run lint`: lint files using ESLint
- `npm run lint:fix`: lint and fix using ESLint - `bun run lint:fix`: lint and fix using ESLint
- `npm run lint:style`: lint styles using Stylelint - `bun run lint:style`: lint styles using Stylelint
- `npm run lint:style:fix`: lint and fix styles using Stylelint - `bun run lint:style:fix`: lint and fix styles using Stylelint
- `npm run format`: format files using Prettier - `bun run format`: format files using Prettier
- `npm run commit`: commit message using Commitizen - `bun run commit`: commit message using Commitizen
- `npm run release:major`: release major version - `bun run release:major`: release major version
- `npm run release:minor`: release minor version - `bun run release:minor`: release minor version
- `npm run release:patch`: release patch version - `bun run release:patch`: release patch version
- `npm run storybook`: run Storybook - `bun run storybook`: run Storybook
- `bun run tauri dev`: run Tauri development server
## Contributing - `bun run tauri build`: build Tauri app for production
- `bun run tauri ios dev`: run Tauri app on iOS device
- `bun run tauri ios build`: build Tauri app for iOS device
- `bun run tauri android dev`: run Tauri app on Android device
- `bun run tauri android build`: build Tauri app for Android device
🚧 Please check [CONTRIBUTING.md](CONTRIBUTING.md) file. 🚧 Please check [CONTRIBUTING.md](CONTRIBUTING.md) file.

4173
bun.lock Normal file

File diff suppressed because it is too large Load diff

View file

@ -64,6 +64,7 @@
"@storybook/react": "8.0.9", "@storybook/react": "8.0.9",
"@storybook/react-vite": "8.0.9", "@storybook/react-vite": "8.0.9",
"@storybook/test": "8.0.9", "@storybook/test": "8.0.9",
"@tauri-apps/cli": "^2.6.2",
"@typescript-eslint/eslint-plugin": "6.7.4", "@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4", "@typescript-eslint/parser": "6.7.4",
"astro-eslint-parser": "0.16.0", "astro-eslint-parser": "0.16.0",

4
src-tauri/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
# Generated by Cargo
# will have compiled files and executables
/target/
/gen/schemas

4928
src-tauri/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

25
src-tauri/Cargo.toml Normal file
View file

@ -0,0 +1,25 @@
[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
edition = "2021"
rust-version = "1.77.2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "app_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.3.0", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"
tauri = { version = "2.6.2", features = [] }
tauri-plugin-log = "2"

3
src-tauri/build.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}

View file

@ -0,0 +1,11 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": [
"main"
],
"permissions": [
"core:default"
]
}

BIN
src-tauri/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
src-tauri/icons/32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
src-tauri/icons/icon.icns Normal file

Binary file not shown.

BIN
src-tauri/icons/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
src-tauri/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

16
src-tauri/src/lib.rs Normal file
View file

@ -0,0 +1,16 @@
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.setup(|app| {
if cfg!(debug_assertions) {
app.handle().plugin(
tauri_plugin_log::Builder::default()
.level(log::LevelFilter::Info)
.build(),
)?;
}
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

6
src-tauri/src/main.rs Normal file
View file

@ -0,0 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
app_lib::run();
}

37
src-tauri/tauri.conf.json Normal file
View file

@ -0,0 +1,37 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "Moodist",
"version": "0.1.0",
"identifier": "com.moodist.app",
"build": {
"frontendDist": "../dist",
"devUrl": "http://localhost:4321",
"beforeDevCommand": "bun run dev",
"beforeBuildCommand": "bun run build"
},
"app": {
"windows": [
{
"title": "Moodist",
"width": 800,
"height": 600,
"resizable": true,
"fullscreen": false
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}