mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: login issue (#4546)
* fix: reset server url when using appflowy cloud the first time * refactor: set authenticator in frontend * chore: log version * chore: show hint when changing the server type * chore: bump version * chore: fix test * chore: bump collab
This commit is contained in:
@ -66,4 +66,3 @@ ts = [
|
||||
]
|
||||
rev-sqlite = ["flowy-user/rev-sqlite"]
|
||||
openssl_vendored = ["flowy-sqlite/openssl_vendored"]
|
||||
enable_wasm = ["collab-integrate/enable_wasm"]
|
||||
|
@ -14,6 +14,7 @@ use crate::integrate::log::create_log_filter;
|
||||
#[derive(Clone)]
|
||||
pub struct AppFlowyCoreConfig {
|
||||
/// Different `AppFlowyCoreConfig` instance should have different name
|
||||
pub(crate) app_version: String,
|
||||
pub(crate) name: String,
|
||||
pub(crate) device_id: String,
|
||||
/// Used to store the user data
|
||||
@ -30,6 +31,7 @@ pub struct AppFlowyCoreConfig {
|
||||
impl fmt::Debug for AppFlowyCoreConfig {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let mut debug = f.debug_struct("AppFlowy Configuration");
|
||||
debug.field("app_version", &self.app_version);
|
||||
debug.field("storage_path", &self.storage_path);
|
||||
debug.field("application_path", &self.application_path);
|
||||
if let Some(config) = &self.cloud_config {
|
||||
@ -71,6 +73,7 @@ fn make_user_data_folder(root: &str, url: &str) -> String {
|
||||
|
||||
impl AppFlowyCoreConfig {
|
||||
pub fn new(
|
||||
app_version: String,
|
||||
custom_application_path: String,
|
||||
application_path: String,
|
||||
device_id: String,
|
||||
@ -89,6 +92,7 @@ impl AppFlowyCoreConfig {
|
||||
};
|
||||
|
||||
AppFlowyCoreConfig {
|
||||
app_version,
|
||||
name,
|
||||
storage_path,
|
||||
application_path,
|
||||
|
Reference in New Issue
Block a user