Skip to content

Commit 40c29c9

Browse files
committed
Release npm packages
1 parent 8f975ec commit 40c29c9

35 files changed

+1344
-129
lines changed

apps/fluster/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# fluster
22

3+
## 0.1.6
4+
5+
### Patch Changes
6+
7+
- Fix command palette bug on windows.
8+
- Updated dependencies
9+
- @fluster.io/dev@0.1.4
10+
311
## 0.1.5
412

513
### Patch Changes

apps/fluster/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fluster",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"funding": [
55
{
66
"type": "paypal",
@@ -45,6 +45,7 @@
4545
"@citation-js/plugin-bibtex": "0.7.18",
4646
"@citation-js/plugin-csl": "0.7.18",
4747
"@datalayer/jupyter-react": "^1.0.1",
48+
"@excalidraw/excalidraw": "^0.18.0",
4849
"@fluster.io/dev": "workspace:*",
4950
"@google/model-viewer": "^4.1.0",
5051
"@hookform/resolvers": "5.0.1",

apps/fluster/src-tauri/src/features/kanban/commands/create_kanban_board_card.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ use crate::{
22
core::{database::db::get_database, types::errors::errors::FlusterResult},
33
features::kanban::data::{
44
kanban_board_entry_entity::KanbanBoardEntryEntity,
5-
kanban_board_entry_model::KanbanBoardEntryModel,
5+
kanban_board_entry_model::KanbanCardModel,
66
},
77
};
88

99
#[tauri::command]
1010
#[specta::specta]
11-
pub async fn create_new_kanban_board_card(item: KanbanBoardEntryModel) -> FlusterResult<()> {
11+
pub async fn create_new_kanban_board_card(item: KanbanCardModel) -> FlusterResult<()> {
1212
let db_res = get_database().await;
1313
let db = db_res.lock().await;
1414
KanbanBoardEntryEntity::save_many(&db, &vec![item]).await

apps/fluster/src-tauri/src/features/kanban/data/kanban_board_entry_entity.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::{
1818
features::search::types::PaginationProps,
1919
};
2020

21-
use super::kanban_board_entry_model::KanbanBoardEntryModel;
21+
use super::kanban_board_entry_model::KanbanCardModel;
2222

2323
pub struct KanbanBoardEntryEntity {}
2424

@@ -35,7 +35,7 @@ impl KanbanBoardEntryEntity {
3535
db: &FlusterDb<'_>,
3636
predicate: &Option<String>,
3737
pagination: &PaginationProps,
38-
) -> FlusterResult<Vec<KanbanBoardEntryModel>> {
38+
) -> FlusterResult<Vec<KanbanCardModel>> {
3939
let tbl = get_table(db, DatabaseTables::KanbanBoardEntry).await?;
4040

4141
let query = match predicate {
@@ -62,10 +62,10 @@ impl KanbanBoardEntryEntity {
6262
return Ok(Vec::new());
6363
}
6464

65-
let mut items: Vec<KanbanBoardEntryModel> = Vec::new();
65+
let mut items: Vec<KanbanCardModel> = Vec::new();
6666

6767
for batch in items_batch.iter() {
68-
let data: Vec<KanbanBoardEntryModel> = from_record_batch(batch).map_err(|e| {
68+
let data: Vec<KanbanCardModel> = from_record_batch(batch).map_err(|e| {
6969
println!("Error: {:?}", e);
7070
FlusterError::FailToSerialize
7171
})?;
@@ -75,7 +75,7 @@ impl KanbanBoardEntryEntity {
7575
}
7676
pub async fn save_many(
7777
db: &FlusterDb<'_>,
78-
entries: &[KanbanBoardEntryModel],
78+
entries: &[KanbanCardModel],
7979
) -> FlusterResult<()> {
8080
let schema = KanbanBoardEntryEntity::arrow_schema();
8181
let tbl = get_table(db, DatabaseTables::KanbanBoardEntry).await?;
@@ -102,7 +102,7 @@ impl KanbanBoardEntryEntity {
102102
}
103103
}
104104

105-
impl DbEntity<KanbanBoardEntryModel> for KanbanBoardEntryEntity {
105+
impl DbEntity<KanbanCardModel> for KanbanBoardEntryEntity {
106106
fn arrow_schema() -> std::sync::Arc<arrow_schema::Schema> {
107107
Arc::new(Schema::new(vec![
108108
Field::new("id", DataType::Utf8, false),
@@ -114,7 +114,7 @@ impl DbEntity<KanbanBoardEntryModel> for KanbanBoardEntryEntity {
114114
}
115115

116116
fn to_record_batch(
117-
item: &KanbanBoardEntryModel,
117+
item: &KanbanCardModel,
118118
schema: std::sync::Arc<arrow_schema::Schema>,
119119
) -> arrow_array::RecordBatch {
120120
let id = StringArray::from(vec![item.id.clone()]);

apps/fluster/src-tauri/src/features/kanban/data/kanban_board_entry_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize};
22
use specta::Type;
33

44
#[derive(Serialize, Deserialize, Type)]
5-
pub struct KanbanBoardEntryModel {
5+
pub struct KanbanCardModel {
66
pub id: String,
77
pub label: String,
88
pub desc: Option<String>,

apps/fluster/src-tauri/src/features/kanban/data/kanban_board_task_list_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use specta::Type;
33

44
#[derive(Serialize, Deserialize, Type)]
55
pub struct KanbanBoardTaskListModel {
6-
/// The id field of the KanbanBoardEntryModel.
6+
/// The id field of the KanbanCardModel.
77
pub kanban_board_entry_id: String,
88
/// The id field of the related TaskListModel.
99
pub task_list_id: String

apps/fluster/src-tauri/src/features/mdx/data/bookmark_entity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl BookmarkEntity {
4646
};
4747
let items_batch = query
4848
.limit(pagination.per_page)
49-
.offset((pagination.per_page * (pagination.page_number - 1)))
49+
.offset(pagination.per_page * (pagination.page_number - 1))
5050
.execute()
5151
.await
5252
.map_err(|e| {

apps/fluster/src-tauri/src/features/mdx/data/front_matter_entity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl FrontMatterEntity {
149149
pagination: &PaginationProps,
150150
) -> FlusterResult<Vec<NoteSummary>> {
151151
let front_matter_table = get_table(db, DatabaseTables::FrontMatter).await?;
152-
let offset = (pagination.per_page * (pagination.page_number - 1));
152+
let offset = pagination.per_page * (pagination.page_number - 1);
153153
let items_batch = front_matter_table
154154
.query()
155155
.offset(offset)

apps/fluster/src-tauri/src/features/mdx/data/front_matter_tag_entity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl FrontMatterTagEntity {
7878
predicate: Option<String>,
7979
) -> FlusterResult<Vec<T>> {
8080
let tbl = get_table(db, FrontMatterTagEntity::table()).await?;
81-
let offset = (pagination.per_page * (pagination.page_number - 1));
81+
let offset = pagination.per_page * (pagination.page_number - 1);
8282
let mut q = tbl.query();
8383
if predicate.is_some() {
8484
q = q.only_if(predicate.unwrap());

apps/fluster/src-tauri/src/features/mdx/data/mdx_note_bib_entry_entity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl MdxNoteBibEntryEntity {
124124
predicate: Option<String>,
125125
) -> FlusterResult<Vec<T>> {
126126
let tbl = get_table(db, MdxNoteBibEntryEntity::table()).await?;
127-
let offset = (pagination.per_page * (pagination.page_number - 1));
127+
let offset = pagination.per_page * (pagination.page_number - 1);
128128
let mut q = tbl.query();
129129
if predicate.is_some() {
130130
q = q.only_if(predicate.unwrap());

0 commit comments

Comments
 (0)