Introducing Damus Notedeck: a nostr browser
This splits notedeck into: - notedeck - notedeck_chrome - notedeck_columns The `notedeck` crate is the library that `notedeck_chrome` and `notedeck_columns`, use. It contains common functionality related to notedeck apps such as the NoteCache, ImageCache, etc. The `notedeck_chrome` crate is the binary and ui chrome. It is responsible for managing themes, user accounts, signing, data paths, nostrdb, image caches etc. It will eventually have its own ui which has yet to be determined. For now it just manages the browser data, which is passed to apps via a new struct called `AppContext`. `notedeck_columns` is our columns app, with less responsibility now that more things are handled by `notedeck_chrome` There is still much work left to do before this is a proper browser: - process isolation - sandboxing - etc This is the beginning of a new era! We're just getting started. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
use std::path::Path;
|
||||
|
||||
use enostr::{FullKeypair, Pubkey, RelayPool};
|
||||
use nostrdb::{ProfileRecord, Transaction};
|
||||
|
||||
use crate::{user_account::UserAccount, Damus};
|
||||
use enostr::RelayPool;
|
||||
use nostrdb::ProfileRecord;
|
||||
|
||||
#[allow(unused_must_use)]
|
||||
pub fn sample_pool() -> RelayPool {
|
||||
@@ -70,6 +66,7 @@ pub fn test_profile_record() -> ProfileRecord<'static> {
|
||||
ProfileRecord::new_owned(&TEST_PROFILE_DATA).unwrap()
|
||||
}
|
||||
|
||||
/*
|
||||
const TEN_ACCOUNT_HEXES: [&str; 10] = [
|
||||
"3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681",
|
||||
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
|
||||
@@ -95,7 +92,7 @@ pub fn get_test_accounts() -> Vec<UserAccount> {
|
||||
}
|
||||
|
||||
pub fn test_app() -> Damus {
|
||||
let db_dir = Path::new(".");
|
||||
let db_dir = Path::new("target/testdbs/test_app");
|
||||
let path = db_dir.to_str().unwrap();
|
||||
let mut app = Damus::mock(path);
|
||||
|
||||
@@ -109,3 +106,4 @@ pub fn test_app() -> Damus {
|
||||
|
||||
app
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user