Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Local docs
specs/
ARCHI.md
CLAUDE.md
PRD.md
mockup.html
.insaits*
node_modules/
dist/
target/
.vite/
*.swp
*.swo
.DS_Store

# Environment
.env
.env.*
!.env.example

# Nix
result
.direnv/
13 changes: 13 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"plugins": ["react", "typescript", "import"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"rules": {
"no-console": "warn",
"eqeqeq": "error",
"react/react-in-jsx-scope": "off",
"import/no-unassigned-import": "off"
}
}
21 changes: 21 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
71 changes: 71 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
description = "Vortex — Desktop download manager (Tauri 2 + Rust + React)";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, rust-overlay, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};

rustToolchain = pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analyzer" "clippy" "rustfmt" ];
targets = [ "wasm32-wasip1" "wasm32-unknown-unknown" ];
};

# Linux-specific libraries for Tauri/WebKitGTK
linuxLibs = with pkgs; [
gtk3
webkitgtk_4_1
libsoup_3
glib-networking
librsvg
libayatana-appindicator
cairo
pango
gdk-pixbuf
atk
];

linuxBuildInputs = with pkgs;
(if pkgs.stdenv.isLinux then linuxLibs else []);

in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.pkg-config
];

buildInputs = [
rustToolchain
pkgs.nodejs_22
pkgs.cargo-llvm-cov
pkgs.openssl
] ++ linuxBuildInputs;

shellHook = ''
echo "Vortex dev environment loaded"
echo " Rust: $(rustc --version)"
echo " Node: $(node --version)"
echo " Cargo: $(cargo --version)"
'' + pkgs.lib.optionalString pkgs.stdenv.isLinux ''
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath linuxLibs}:$LD_LIBRARY_PATH"
export GIO_MODULE_PATH="${pkgs.glib-networking}/lib/gio/modules"
'';

RUST_BACKTRACE = 1;
};
}
);
}
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vortex</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading