mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
58 lines
2.3 KiB
Rust
58 lines
2.3 KiB
Rust
pub(super) const PAGE_FLAVOUR: &str = "affine:page";
|
|
pub(super) const NOTE_FLAVOUR: &str = "affine:note";
|
|
pub(super) const SURFACE_FLAVOUR: &str = "affine:surface";
|
|
|
|
pub(super) const SYS_ID: &str = "sys:id";
|
|
pub(super) const SYS_FLAVOUR: &str = "sys:flavour";
|
|
pub(super) const SYS_VERSION: &str = "sys:version";
|
|
pub(super) const SYS_CHILDREN: &str = "sys:children";
|
|
|
|
pub(super) const PROP_TITLE: &str = "prop:title";
|
|
pub(super) const PROP_TEXT: &str = "prop:text";
|
|
pub(super) const PROP_TYPE: &str = "prop:type";
|
|
pub(super) const PROP_CHECKED: &str = "prop:checked";
|
|
pub(super) const PROP_LANGUAGE: &str = "prop:language";
|
|
pub(super) const PROP_ORDER: &str = "prop:order";
|
|
|
|
pub(super) const PROP_ELEMENTS: &str = "prop:elements";
|
|
pub(super) const PROP_BACKGROUND: &str = "prop:background";
|
|
pub(super) const PROP_XYWH: &str = "prop:xywh";
|
|
pub(super) const PROP_INDEX: &str = "prop:index";
|
|
pub(super) const PROP_HIDDEN: &str = "prop:hidden";
|
|
pub(super) const PROP_DISPLAY_MODE: &str = "prop:displayMode";
|
|
|
|
pub(super) const PROP_SOURCE_ID: &str = "prop:sourceId";
|
|
pub(super) const PROP_CAPTION: &str = "prop:caption";
|
|
pub(super) const PROP_WIDTH: &str = "prop:width";
|
|
pub(super) const PROP_HEIGHT: &str = "prop:height";
|
|
pub(super) const PROP_URL: &str = "prop:url";
|
|
pub(super) const PROP_VIDEO_ID: &str = "prop:videoId";
|
|
|
|
pub(super) const PROP_ROWS_PREFIX: &str = "prop:rows.";
|
|
pub(super) const PROP_COLUMNS_PREFIX: &str = "prop:columns.";
|
|
pub(super) const PROP_CELLS_PREFIX: &str = "prop:cells.";
|
|
pub(super) const PROP_ROW_ID_SUFFIX: &str = ".rowId";
|
|
pub(super) const PROP_COLUMN_ID_SUFFIX: &str = ".columnId";
|
|
pub(super) const PROP_ORDER_SUFFIX: &str = ".order";
|
|
pub(super) const PROP_TEXT_SUFFIX: &str = ".text";
|
|
|
|
pub(super) fn table_row_id_key(row_id: &str) -> String {
|
|
format!("{PROP_ROWS_PREFIX}{row_id}{PROP_ROW_ID_SUFFIX}")
|
|
}
|
|
|
|
pub(super) fn table_row_order_key(row_id: &str) -> String {
|
|
format!("{PROP_ROWS_PREFIX}{row_id}{PROP_ORDER_SUFFIX}")
|
|
}
|
|
|
|
pub(super) fn table_column_id_key(column_id: &str) -> String {
|
|
format!("{PROP_COLUMNS_PREFIX}{column_id}{PROP_COLUMN_ID_SUFFIX}")
|
|
}
|
|
|
|
pub(super) fn table_column_order_key(column_id: &str) -> String {
|
|
format!("{PROP_COLUMNS_PREFIX}{column_id}{PROP_ORDER_SUFFIX}")
|
|
}
|
|
|
|
pub(super) fn table_cell_text_key(row_id: &str, column_id: &str) -> String {
|
|
format!("{PROP_CELLS_PREFIX}{row_id}:{column_id}{PROP_TEXT_SUFFIX}")
|
|
}
|