summaryrefslogtreecommitdiff
path: root/actions/src/registry/server_registry.rs
blob: 356e6404eab417c10c25e94407f8e3a096693b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use action_system::action_pool::ActionPool;

use crate::actions::{
    local_actions::{register_set_upstream_vault_action, register_update_to_latest_info_action},
    sheet_actions::{
        register_drop_sheet_action, register_edit_mapping_action, register_make_sheet_action,
        register_merge_share_mapping_action, register_share_mapping_action,
    },
    track_action::register_track_file_action,
    user_actions::register_change_virtual_file_edit_right_action,
};

pub fn server_action_pool() -> ActionPool {
    let mut pool = ActionPool::new();

    // Local Actions
    register_set_upstream_vault_action(&mut pool);
    register_update_to_latest_info_action(&mut pool);

    // Sheet Actions
    register_make_sheet_action(&mut pool);
    register_drop_sheet_action(&mut pool);
    register_edit_mapping_action(&mut pool);

    // Share / Merge Share Actions
    register_share_mapping_action(&mut pool);
    register_merge_share_mapping_action(&mut pool);

    // Track Action
    register_track_file_action(&mut pool);

    // User Actions
    register_change_virtual_file_edit_right_action(&mut pool);

    pool
}