mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 10:03:18 +00:00 
			
		
		
		
	 fd5299a13d
			
		
	
	
		fd5299a13d
		
			
		
	
	
	
	
		
			
			* chore: move to latest appflowy collab version * chore: filter mapping * chore: remove mutex folder * chore: cleanup borrow checker issues * chore: fixed flowy user crate compilation errors * chore: removed parking lot crate * chore: adjusting non locking approach * chore: remove with folder method * chore: fix folder manager * chore: fixed workspace database compilation errors * chore: initialize database plugins * chore: fix locks in flowy core * chore: remove supabase * chore: async traits * chore: add mutexes in dart ffi * chore: post rebase fixes * chore: remove supabase dart code * chore: fix deadlock * chore: fix page_id is empty * chore: use data source to init collab * chore: fix user awareness test * chore: fix database deadlock * fix: initialize user awareness * chore: fix open workspace test * chore: fix import csv * chore: fix update row meta deadlock * chore: fix document size test * fix: timestamp set/get type convert * fix: calculation * chore: revert Arc to Rc * chore: attach plugin to database and database row * chore: async get row * chore: clippy * chore: fix tauri build * chore: clippy * fix: duplicate view deadlock * chore: fmt * chore: tauri build --------- Co-authored-by: nathan <nathan@appflowy.io>
		
			
				
	
	
		
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| // ignore_for_file: non_constant_identifier_names
 | |
| 
 | |
| import 'package:json_annotation/json_annotation.dart';
 | |
| part 'backend_env.g.dart';
 | |
| 
 | |
| @JsonSerializable()
 | |
| class AppFlowyConfiguration {
 | |
|   AppFlowyConfiguration({
 | |
|     required this.root,
 | |
|     required this.app_version,
 | |
|     required this.custom_app_path,
 | |
|     required this.origin_app_path,
 | |
|     required this.device_id,
 | |
|     required this.platform,
 | |
|     required this.authenticator_type,
 | |
|     required this.appflowy_cloud_config,
 | |
|     required this.envs,
 | |
|   });
 | |
| 
 | |
|   factory AppFlowyConfiguration.fromJson(Map<String, dynamic> json) =>
 | |
|       _$AppFlowyConfigurationFromJson(json);
 | |
| 
 | |
|   final String root;
 | |
|   final String app_version;
 | |
|   final String custom_app_path;
 | |
|   final String origin_app_path;
 | |
|   final String device_id;
 | |
|   final String platform;
 | |
|   final int authenticator_type;
 | |
|   final AppFlowyCloudConfiguration appflowy_cloud_config;
 | |
|   final Map<String, String> envs;
 | |
| 
 | |
|   Map<String, dynamic> toJson() => _$AppFlowyConfigurationToJson(this);
 | |
| }
 | |
| 
 | |
| @JsonSerializable()
 | |
| class AppFlowyCloudConfiguration {
 | |
|   AppFlowyCloudConfiguration({
 | |
|     required this.base_url,
 | |
|     required this.ws_base_url,
 | |
|     required this.gotrue_url,
 | |
|   });
 | |
| 
 | |
|   factory AppFlowyCloudConfiguration.fromJson(Map<String, dynamic> json) =>
 | |
|       _$AppFlowyCloudConfigurationFromJson(json);
 | |
| 
 | |
|   final String base_url;
 | |
|   final String ws_base_url;
 | |
|   final String gotrue_url;
 | |
| 
 | |
|   Map<String, dynamic> toJson() => _$AppFlowyCloudConfigurationToJson(this);
 | |
| 
 | |
|   static AppFlowyCloudConfiguration defaultConfig() {
 | |
|     return AppFlowyCloudConfiguration(
 | |
|       base_url: '',
 | |
|       ws_base_url: '',
 | |
|       gotrue_url: '',
 | |
|     );
 | |
|   }
 | |
| 
 | |
|   bool get isValid {
 | |
|     return base_url.isNotEmpty &&
 | |
|         ws_base_url.isNotEmpty &&
 | |
|         gotrue_url.isNotEmpty;
 | |
|   }
 | |
| }
 |