mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(web,server): server features (#3756)
* feat: server features * chore: open api * icon size --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
28d3d3e679
commit
2b839088c7
40 changed files with 805 additions and 187 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:openapi/api.dart';
|
||||
|
||||
class ServerInfoState {
|
||||
final ServerVersionReponseDto serverVersion;
|
||||
final ServerVersionResponseDto serverVersion;
|
||||
final bool isVersionMismatch;
|
||||
final String versionMismatchErrorMessage;
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ class ServerInfoState {
|
|||
});
|
||||
|
||||
ServerInfoState copyWith({
|
||||
ServerVersionReponseDto? serverVersion,
|
||||
ServerVersionResponseDto? serverVersion,
|
||||
bool? isVersionMismatch,
|
||||
String? versionMismatchErrorMessage,
|
||||
}) {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class ServerInfoNotifier extends StateNotifier<ServerInfoState> {
|
|||
ServerInfoNotifier(this._serverInfoService)
|
||||
: super(
|
||||
ServerInfoState(
|
||||
serverVersion: ServerVersionReponseDto(
|
||||
serverVersion: ServerVersionResponseDto(
|
||||
major: 0,
|
||||
patch_: 0,
|
||||
minor: 0,
|
||||
|
|
@ -23,7 +23,7 @@ class ServerInfoNotifier extends StateNotifier<ServerInfoState> {
|
|||
final ServerInfoService _serverInfoService;
|
||||
|
||||
getServerVersion() async {
|
||||
ServerVersionReponseDto? serverVersion =
|
||||
ServerVersionResponseDto? serverVersion =
|
||||
await _serverInfoService.getServerVersion();
|
||||
|
||||
if (serverVersion == null) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class ServerInfoService {
|
|||
}
|
||||
}
|
||||
|
||||
Future<ServerVersionReponseDto?> getServerVersion() async {
|
||||
Future<ServerVersionResponseDto?> getServerVersion() async {
|
||||
try {
|
||||
return await _apiService.serverInfoApi.getServerVersion();
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue