Go to file
William Casarin 13d6873eb1 Merge note context menu #328
This merges kernel's note context menu with a bunch of refactorings on
top, closing #328 and #318

William Casarin (7):
      refactor: remove processs_note_selection
      refactor: make options_button a NoteOptions
      note: switch to muted menu_options_button color
      context: move note context button to its own file
      context: fix hitbox, float on far right
      context: set cursor icon on hover

kernelkind (3):
      Add 'more options' to each note
      can left click note more options button
      process 'more options' for previews
2024-09-26 12:33:56 -07:00
.github/workflows github: remove pages workflow 2024-04-27 01:53:08 -07:00
assets kind 6 repost impl 2024-09-17 11:04:05 -04:00
enostr Add 'more options' to each note 2024-09-19 19:04:28 -04:00
queries repost: update style 2024-09-17 15:28:01 -07:00
scripts Add precommit hook to suggest proper formatting 2024-04-19 14:13:11 -07:00
src context: set cursor icon on hover 2024-09-26 12:31:23 -07:00
.envrc Flexible routing 2024-09-16 14:50:20 -07:00
.gitignore env: allow private things like secret keys 2024-07-01 06:33:22 -07:00
Cargo.lock nostrdb: update to support fast kind6 repost ingest 2024-09-17 15:28:01 -07:00
Cargo.toml nostrdb: update to support fast kind6 repost ingest 2024-09-17 15:28:01 -07:00
check check: remove duplicate and disable wasm checks 2024-04-19 17:37:41 -07:00
damus.keystore add temporary release keystore 2023-07-09 12:29:39 -07:00
index.html codename is domus for now 2023-07-01 11:25:55 -07:00
LICENSE switch to GPLv3, not sure why it was MIT 2024-07-22 11:20:31 -07:00
Makefile profile picture image cache 2024-02-27 14:26:02 -08:00
preview add --light lightmode flag to previews and notedeck 2024-06-14 11:12:16 -07:00
README.md docs: make note about not needing nix on ubunutu 2024-07-10 09:54:07 -07:00
rust-toolchain progress 2022-11-06 19:32:13 -08:00
SECURITY.md Create SECURITY.md 2024-04-09 23:05:31 -05:00
shell.nix Merge commit 'refs/pull/github/53' 2024-05-15 09:40:12 -07:00
Trunk.toml trunk: notedeck 2023-07-06 08:40:50 -07:00

Damus

A multiplatform nostr client. Works on android and desktop

Alpha! WIP!

Desktop

The desktop client is called notedeck:

notedeck

Android

Look it actually runs on android!

Usage

You can customize the columns by passing them as command-line arguments. This is only for testing and will likely change.

$ ./target/release/notedeck "$(cat queries/timeline.json)" "$(cat queries/notifications.json)"

Developer Setup

Desktop (Linux/MacOS, Windows?)

If you're running debian-based machine like Ubuntu or ElementaryOS, all you need is to install rustup and run sudo apt install build-essential.

First, install nix if you don't have it.

The shell.nix provides a reproducible build environment, mainly for android but it also includes rust tools if you don't have those installed. It will likely work without nix if you are just looking to do non-android dev and have the rust toolchain already installed. If you decide to use nix, I recommend using direnv to load the nix shell environment when you cd into the directory.

If you don't have direnv, enter the dev shell via:

$ nix-shell

Once you have your dev shell setup, you can build with this command:

$ cargo run --release 

Android

The dev shell should also have all of the android-sdk dependencies needed for development, but you still need the aarch64-linux-android rustup target installed:

$ rustup target add aarch64-linux-android

To run on a real device, just type:

$ cargo apk run --release

Android Emulator

  • Install Android Studio
  • Open 'Device Manager' in Android Studio
  • Add a new device with API level 34 and ABI arm64-v8a (even though the app uses 30, the 30 emulator can't find the vulkan adapter, but 34 works fine)
  • Start up the emulator

while the emulator is running, run:

cargo apk run --release

The app should appear on the emulator

Previews

You can preview individual widgets and views by running the preview script:

./preview RelayView
./preview ProfilePreview
# ... etc

When adding new previews you need to implement the Preview trait for your view/widget and then add it to the src/ui_preview/main.rs bin:

previews!(runner, name,
    RelayView,
    AccountLoginView,
    ProfilePreview,
);

Contributing

Configure the developer environment:

./scripts/dev_setup.sh

This will add the pre-commit hook to your local repository to suggest proper formatting before commits.