المجلدات وأسماء حزم dart واستيراداتها: siro_rider → intaleq_rider siro_driver → intaleq_driver siro_admin → intaleq_admin siro_service → intaleq_service شمل ذلك `name:` في كل pubspec وكل `package:siro_*` في الاستيرادات (115 ملفاً في rider وحده)، وإشارات أسماء المجلدات في docs/ وتعليق في backend/Admin/notifications/broadcast.php. لم تبقَ إشارة واحدة (تحقّقت). + ضُمّت حزم get و get_storage داخل intaleq_driver/packages/ وحُوّلت مساراتها الثلاثة من `../../Intaleq/packages/*` إلى `./packages/*`. كانت تُحل عرضاً إلى مجلد App/Intaleq القديم المجاور — تبعية خارج المستودع تنكسر بأول نقل. لم يبقَ في أي تطبيق تبعية مسار خارج الشجرة. ⚠️ لم تُمسّ بعد: هويات المتاجر (applicationId · PRODUCT_BUNDLE_IDENTIFIER · shorebird app_id) ولا الألوان ولا النصوص المرئية ولا النطاقات — كل منها كوميت منفصل، والهويات تحتاج قرار المالك. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
44 lines
1.3 KiB
Dart
Executable File
44 lines
1.3 KiB
Dart
Executable File
class MonthlyDataModel {
|
|
int day;
|
|
int totalDuration;
|
|
|
|
MonthlyDataModel({required this.day, required this.totalDuration});
|
|
|
|
factory MonthlyDataModel.fromJson(Map<String, dynamic> json) =>
|
|
MonthlyDataModel(
|
|
day: int.parse(json['day'].toString().split('-')[2]),
|
|
totalDuration:
|
|
int.parse(json['total_duration'].toString().split(':')[0]));
|
|
}
|
|
|
|
class MonthlyRideModel {
|
|
int day;
|
|
int countRide;
|
|
int totalCount;
|
|
|
|
MonthlyRideModel(
|
|
{required this.day, required this.countRide, required this.totalCount});
|
|
|
|
factory MonthlyRideModel.fromJson(Map<String, dynamic> json) =>
|
|
MonthlyRideModel(
|
|
day: int.parse(json['day'].toString().split('-')[2]),
|
|
countRide: int.parse(json['countRide'].toString()),
|
|
totalCount: int.parse(json['totalCount'].toString()),
|
|
);
|
|
}
|
|
|
|
class MonthlyPriceDriverModel {
|
|
int day;
|
|
// int price;
|
|
double pricePerDay;
|
|
|
|
MonthlyPriceDriverModel({required this.day, required this.pricePerDay});
|
|
|
|
factory MonthlyPriceDriverModel.fromJson(Map<String, dynamic> json) =>
|
|
MonthlyPriceDriverModel(
|
|
day: int.parse(json['day'].toString().split('-')[2]),
|
|
// price: int.parse(json['price'].toString()),
|
|
pricePerDay: double.parse(json['pricePerDay'].toString()),
|
|
);
|
|
}
|