Skip to content

Commit

Permalink
Add right click menus
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Nov 1, 2024
1 parent 02bbc32 commit a9fdeeb
Show file tree
Hide file tree
Showing 27 changed files with 488 additions and 206 deletions.
21 changes: 17 additions & 4 deletions api/lib/models/cached.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ mixin _$CachedData {
List<CalendarItem> get items => throw _privateConstructorUsedError;
List<Note> get notes => throw _privateConstructorUsedError;

/// Serializes this CachedData to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of CachedData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$CachedDataCopyWith<CachedData> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -56,6 +60,8 @@ class _$CachedDataCopyWithImpl<$Res, $Val extends CachedData>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of CachedData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -114,6 +120,8 @@ class __$$CachedDataImplCopyWithImpl<$Res>
_$CachedDataImpl _value, $Res Function(_$CachedDataImpl) _then)
: super(_value, _then);

/// Create a copy of CachedData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -223,7 +231,7 @@ class _$CachedDataImpl extends _CachedData {
const DeepCollectionEquality().equals(other._notes, _notes));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
Expand All @@ -233,7 +241,9 @@ class _$CachedDataImpl extends _CachedData {
const DeepCollectionEquality().hash(_items),
const DeepCollectionEquality().hash(_notes));

@JsonKey(ignore: true)
/// Create a copy of CachedData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$CachedDataImplCopyWith<_$CachedDataImpl> get copyWith =>
Expand Down Expand Up @@ -269,8 +279,11 @@ abstract class _CachedData extends CachedData {
List<CalendarItem> get items;
@override
List<Note> get notes;

/// Create a copy of CachedData
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$CachedDataImplCopyWith<_$CachedDataImpl> get copyWith =>
throw _privateConstructorUsedError;
}
48 changes: 38 additions & 10 deletions api/lib/models/event/item/model.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,13 @@ mixin _$CalendarItem {
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;

/// Serializes this CalendarItem to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$CalendarItemCopyWith<CalendarItem> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -252,6 +257,8 @@ class _$CalendarItemCopyWithImpl<$Res, $Val extends CalendarItem>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -340,6 +347,8 @@ class __$$FixedCalendarItemImplCopyWithImpl<$Res>
$Res Function(_$FixedCalendarItemImpl) _then)
: super(_value, _then);

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -478,12 +487,14 @@ class _$FixedCalendarItemImpl extends FixedCalendarItem {
(identical(other.end, end) || other.end == end));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, name, description, location,
groupId, placeId, eventId, status, start, end);

@JsonKey(ignore: true)
/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$FixedCalendarItemImplCopyWith<_$FixedCalendarItemImpl> get copyWith =>
Expand Down Expand Up @@ -738,8 +749,11 @@ abstract class FixedCalendarItem extends CalendarItem {
@override
@DateTimeConverter()
DateTime? get end;

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$FixedCalendarItemImplCopyWith<_$FixedCalendarItemImpl> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -780,6 +794,8 @@ class __$$RepeatingCalendarItemImplCopyWithImpl<$Res>
$Res Function(_$RepeatingCalendarItemImpl) _then)
: super(_value, _then);

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -988,7 +1004,7 @@ class _$RepeatingCalendarItemImpl extends RepeatingCalendarItem {
.equals(other._exceptions, _exceptions));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
Expand All @@ -1009,7 +1025,9 @@ class _$RepeatingCalendarItemImpl extends RepeatingCalendarItem {
until,
const DeepCollectionEquality().hash(_exceptions));

@JsonKey(ignore: true)
/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$RepeatingCalendarItemImplCopyWith<_$RepeatingCalendarItemImpl>
Expand Down Expand Up @@ -1322,8 +1340,11 @@ abstract class RepeatingCalendarItem extends CalendarItem {
@DateTimeConverter()
DateTime? get until;
List<int> get exceptions;

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$RepeatingCalendarItemImplCopyWith<_$RepeatingCalendarItemImpl>
get copyWith => throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -1360,6 +1381,8 @@ class __$$AutoCalendarItemImplCopyWithImpl<$Res>
$Res Function(_$AutoCalendarItemImpl) _then)
: super(_value, _then);

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -1531,7 +1554,7 @@ class _$AutoCalendarItemImpl extends AutoCalendarItem {
other.autoDuration == autoDuration));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
Expand All @@ -1549,7 +1572,9 @@ class _$AutoCalendarItemImpl extends AutoCalendarItem {
searchStart,
autoDuration);

@JsonKey(ignore: true)
/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$AutoCalendarItemImplCopyWith<_$AutoCalendarItemImpl> get copyWith =>
Expand Down Expand Up @@ -1812,8 +1837,11 @@ abstract class AutoCalendarItem extends CalendarItem {
@DateTimeConverter()
DateTime? get searchStart;
int get autoDuration;

/// Create a copy of CalendarItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$AutoCalendarItemImplCopyWith<_$AutoCalendarItemImpl> get copyWith =>
throw _privateConstructorUsedError;
}
21 changes: 17 additions & 4 deletions api/lib/models/event/model.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ mixin _$Event {
String get location => throw _privateConstructorUsedError;
String? get extra => throw _privateConstructorUsedError;

/// Serializes this Event to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of Event
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$EventCopyWith<Event> get copyWith => throw _privateConstructorUsedError;
}

Expand Down Expand Up @@ -66,6 +70,8 @@ class _$EventCopyWithImpl<$Res, $Val extends Event>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of Event
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -147,6 +153,8 @@ class __$$EventImplCopyWithImpl<$Res>
_$EventImpl _value, $Res Function(_$EventImpl) _then)
: super(_value, _then);

/// Create a copy of Event
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -270,12 +278,14 @@ class _$EventImpl extends _Event {
(identical(other.extra, extra) || other.extra == extra));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, parentId, groupId, placeId,
blocked, name, description, location, extra);

@JsonKey(ignore: true)
/// Create a copy of Event
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$EventImplCopyWith<_$EventImpl> get copyWith =>
Expand Down Expand Up @@ -326,8 +336,11 @@ abstract class _Event extends Event implements DescriptiveModel {
String get location;
@override
String? get extra;

/// Create a copy of Event
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$EventImplCopyWith<_$EventImpl> get copyWith =>
throw _privateConstructorUsedError;
}
22 changes: 18 additions & 4 deletions api/lib/models/extra.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ mixin _$ExtraProperties {
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;

/// Serializes this ExtraProperties to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of ExtraProperties
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$ExtraPropertiesCopyWith<ExtraProperties> get copyWith =>
throw _privateConstructorUsedError;
}
Expand All @@ -79,6 +84,8 @@ class _$ExtraPropertiesCopyWithImpl<$Res, $Val extends ExtraProperties>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of ExtraProperties
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -118,6 +125,8 @@ class __$$CalDavExtraPropertiesImplCopyWithImpl<$Res>
$Res Function(_$CalDavExtraPropertiesImpl) _then)
: super(_value, _then);

/// Create a copy of ExtraProperties
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -164,11 +173,13 @@ class _$CalDavExtraPropertiesImpl implements CalDavExtraProperties {
(identical(other.path, path) || other.path == path));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, etag, path);

@JsonKey(ignore: true)
/// Create a copy of ExtraProperties
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$CalDavExtraPropertiesImplCopyWith<_$CalDavExtraPropertiesImpl>
Expand Down Expand Up @@ -251,8 +262,11 @@ abstract class CalDavExtraProperties implements ExtraProperties {
String get etag;
@override
String get path;

/// Create a copy of ExtraProperties
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$CalDavExtraPropertiesImplCopyWith<_$CalDavExtraPropertiesImpl>
get copyWith => throw _privateConstructorUsedError;
}
21 changes: 17 additions & 4 deletions api/lib/models/group/model.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ mixin _$Group {
@MultihashConverter()
Multihash? get parentId => throw _privateConstructorUsedError;

/// Serializes this Group to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of Group
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$GroupCopyWith<Group> get copyWith => throw _privateConstructorUsedError;
}

Expand All @@ -54,6 +58,8 @@ class _$GroupCopyWithImpl<$Res, $Val extends Group>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of Group
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -105,6 +111,8 @@ class __$$GroupImplCopyWithImpl<$Res>
_$GroupImpl _value, $Res Function(_$GroupImpl) _then)
: super(_value, _then);

/// Create a copy of Group
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -178,11 +186,13 @@ class _$GroupImpl extends _Group {
other.parentId == parentId));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, name, description, parentId);

@JsonKey(ignore: true)
/// Create a copy of Group
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$GroupImplCopyWith<_$GroupImpl> get copyWith =>
Expand Down Expand Up @@ -216,8 +226,11 @@ abstract class _Group extends Group implements DescriptiveModel {
@override
@MultihashConverter()
Multihash? get parentId;

/// Create a copy of Group
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$GroupImplCopyWith<_$GroupImpl> get copyWith =>
throw _privateConstructorUsedError;
}
Loading

0 comments on commit a9fdeeb

Please sign in to comment.