look at the changes 😏
This commit is contained in:
47
filcnaplo_kreta_api/.flutter-plugins 2
Normal file
47
filcnaplo_kreta_api/.flutter-plugins 2
Normal file
@@ -0,0 +1,47 @@
|
||||
# This is a generated file; do not edit or check into version control.
|
||||
app_group_directory=/Users/kima/.pub-cache/hosted/pub.dev/app_group_directory-2.0.0/
|
||||
background_fetch=/Users/kima/.pub-cache/hosted/pub.dev/background_fetch-1.1.6/
|
||||
connectivity_plus=/Users/kima/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.1/
|
||||
dynamic_color=/Users/kima/.pub-cache/hosted/pub.dev/dynamic_color-1.6.5/
|
||||
file_picker=/Users/kima/.pub-cache/hosted/pub.dev/file_picker-5.3.2/
|
||||
flutter_acrylic=/Users/kima/.pub-cache/hosted/pub.dev/flutter_acrylic-1.1.3/
|
||||
flutter_custom_tabs=/Users/kima/.pub-cache/hosted/pub.dev/flutter_custom_tabs-1.0.4/
|
||||
flutter_custom_tabs_web=/Users/kima/.pub-cache/hosted/pub.dev/flutter_custom_tabs_web-1.0.0/
|
||||
flutter_displaymode=/Users/kima/.pub-cache/hosted/pub.dev/flutter_displaymode-0.6.0/
|
||||
flutter_image_compress=/Users/kima/.pub-cache/hosted/pub.dev/flutter_image_compress-1.1.3/
|
||||
flutter_local_notifications=/Users/kima/.pub-cache/hosted/pub.dev/flutter_local_notifications-14.1.0/
|
||||
flutter_native_image=/Users/kima/.pub-cache/hosted/pub.dev/flutter_native_image-0.0.6+1/
|
||||
flutter_plugin_android_lifecycle=/Users/kima/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.15/
|
||||
home_widget=/Users/kima/.pub-cache/hosted/pub.dev/home_widget-0.1.6/
|
||||
image_picker=/Users/kima/.pub-cache/hosted/pub.dev/image_picker-0.8.7+5/
|
||||
image_picker_android=/Users/kima/.pub-cache/hosted/pub.dev/image_picker_android-0.8.6+16/
|
||||
image_picker_for_web=/Users/kima/.pub-cache/hosted/pub.dev/image_picker_for_web-2.1.12/
|
||||
image_picker_ios=/Users/kima/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.7+4/
|
||||
live_activities=/Users/kima/.pub-cache/hosted/pub.dev/live_activities-1.7.4/
|
||||
macos_window_utils=/Users/kima/.pub-cache/hosted/pub.dev/macos_window_utils-1.1.3/
|
||||
open_file=/Users/kima/.pub-cache/git/open_file-0ee6d69b5810e066ceb23776cea3716749038669/
|
||||
package_info_plus=/Users/kima/.pub-cache/hosted/pub.dev/package_info_plus-4.0.2/
|
||||
path_provider=/Users/kima/.pub-cache/hosted/pub.dev/path_provider-2.0.15/
|
||||
path_provider_android=/Users/kima/.pub-cache/hosted/pub.dev/path_provider_android-2.0.27/
|
||||
path_provider_foundation=/Users/kima/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.3/
|
||||
path_provider_linux=/Users/kima/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.11/
|
||||
path_provider_windows=/Users/kima/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/
|
||||
permission_handler=/Users/kima/.pub-cache/hosted/pub.dev/permission_handler-10.2.0/
|
||||
permission_handler_android=/Users/kima/.pub-cache/hosted/pub.dev/permission_handler_android-10.2.1/
|
||||
permission_handler_apple=/Users/kima/.pub-cache/hosted/pub.dev/permission_handler_apple-9.0.8/
|
||||
permission_handler_windows=/Users/kima/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.2/
|
||||
quick_actions=/Users/kima/.pub-cache/hosted/pub.dev/quick_actions-1.0.5/
|
||||
quick_actions_android=/Users/kima/.pub-cache/hosted/pub.dev/quick_actions_android-1.0.6/
|
||||
quick_actions_ios=/Users/kima/.pub-cache/hosted/pub.dev/quick_actions_ios-1.0.6/
|
||||
share_plus=/Users/kima/.pub-cache/hosted/pub.dev/share_plus-7.0.2/
|
||||
sqflite=/Users/kima/.pub-cache/hosted/pub.dev/sqflite-2.2.8+4/
|
||||
uni_links=/Users/kima/.pub-cache/hosted/pub.dev/uni_links-0.5.1/
|
||||
uni_links_web=/Users/kima/.pub-cache/hosted/pub.dev/uni_links_web-0.1.0/
|
||||
url_launcher=/Users/kima/.pub-cache/hosted/pub.dev/url_launcher-6.1.11/
|
||||
url_launcher_android=/Users/kima/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.35/
|
||||
url_launcher_ios=/Users/kima/.pub-cache/hosted/pub.dev/url_launcher_ios-6.1.4/
|
||||
url_launcher_linux=/Users/kima/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.5/
|
||||
url_launcher_macos=/Users/kima/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.5/
|
||||
url_launcher_web=/Users/kima/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.17/
|
||||
url_launcher_windows=/Users/kima/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.6/
|
||||
workmanager=/Users/kima/.pub-cache/hosted/pub.dev/workmanager-0.5.1/
|
||||
1
filcnaplo_kreta_api/.flutter-plugins-dependencies 2
Normal file
1
filcnaplo_kreta_api/.flutter-plugins-dependencies 2
Normal file
File diff suppressed because one or more lines are too long
@@ -7,39 +7,69 @@ class KretaAPI {
|
||||
static const clientId = "kreta-ellenorzo-mobile-android";
|
||||
|
||||
// ELLENORZO API
|
||||
static String notes(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.notes;
|
||||
static String events(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.events;
|
||||
static String student(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.student;
|
||||
static String grades(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.grades;
|
||||
static String absences(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.absences;
|
||||
static String groups(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.groups;
|
||||
static String notes(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.notes;
|
||||
static String events(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.events;
|
||||
static String student(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.student;
|
||||
static String grades(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.grades;
|
||||
static String absences(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.absences;
|
||||
static String groups(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.groups;
|
||||
static String groupAverages(String iss, String uid) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.groupAverages + "?oktatasiNevelesiFeladatUid=" + uid;
|
||||
BaseKreta.kreta(iss) +
|
||||
KretaApiEndpoints.groupAverages +
|
||||
"?oktatasiNevelesiFeladatUid=" +
|
||||
uid;
|
||||
static String timetable(String iss, {DateTime? start, DateTime? end}) =>
|
||||
BaseKreta.kreta(iss) +
|
||||
KretaApiEndpoints.timetable +
|
||||
(start != null && end != null ? "?datumTol=" + start.toUtc().toIso8601String() + "&datumIg=" + end.toUtc().toIso8601String() : "");
|
||||
static String exams(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.exams;
|
||||
(start != null && end != null
|
||||
? "?datumTol=" +
|
||||
start.toUtc().toIso8601String() +
|
||||
"&datumIg=" +
|
||||
end.toUtc().toIso8601String()
|
||||
: "");
|
||||
static String exams(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.exams;
|
||||
static String homework(String iss, {DateTime? start, String? id}) =>
|
||||
BaseKreta.kreta(iss) +
|
||||
KretaApiEndpoints.homework +
|
||||
(id != null ? "/$id" : "") +
|
||||
(id == null && start != null ? "?datumTol=" + DateFormat('yyyy-MM-dd').format(start) : "");
|
||||
static String capabilities(String iss) => BaseKreta.kreta(iss) + KretaApiEndpoints.capabilities;
|
||||
static String downloadHomeworkAttachments(String iss, String uid, String type) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.downloadHomeworkAttachments(uid, type);
|
||||
(id == null && start != null
|
||||
? "?datumTol=" + DateFormat('yyyy-MM-dd').format(start)
|
||||
: "");
|
||||
static String capabilities(String iss) =>
|
||||
BaseKreta.kreta(iss) + KretaApiEndpoints.capabilities;
|
||||
static String downloadHomeworkAttachments(
|
||||
String iss, String uid, String type) =>
|
||||
BaseKreta.kreta(iss) +
|
||||
KretaApiEndpoints.downloadHomeworkAttachments(uid, type);
|
||||
|
||||
// ADMIN API
|
||||
static const sendMessage = BaseKreta.kretaAdmin + KretaAdminEndpoints.sendMessage;
|
||||
static String messages(String endpoint) => BaseKreta.kretaAdmin + KretaAdminEndpoints.messages(endpoint);
|
||||
static String message(String id) => BaseKreta.kretaAdmin + KretaAdminEndpoints.message(id);
|
||||
static const recipientCategories = BaseKreta.kretaAdmin + KretaAdminEndpoints.recipientCategories;
|
||||
static const availableCategories = BaseKreta.kretaAdmin + KretaAdminEndpoints.availableCategories;
|
||||
static const recipientsTeacher = BaseKreta.kretaAdmin + KretaAdminEndpoints.recipientsTeacher;
|
||||
static const uploadAttachment = BaseKreta.kretaAdmin + KretaAdminEndpoints.uploadAttachment;
|
||||
static String downloadAttachment(String id) => BaseKreta.kretaAdmin + KretaAdminEndpoints.downloadAttachment(id);
|
||||
static const trashMessage = BaseKreta.kretaAdmin + KretaAdminEndpoints.trashMessage;
|
||||
static const deleteMessage = BaseKreta.kretaAdmin + KretaAdminEndpoints.deleteMessage;
|
||||
static const sendMessage =
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.sendMessage;
|
||||
static String messages(String endpoint) =>
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.messages(endpoint);
|
||||
static String message(String id) =>
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.message(id);
|
||||
static const recipientCategories =
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.recipientCategories;
|
||||
static const availableCategories =
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.availableCategories;
|
||||
static const recipientsTeacher =
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.recipientsTeacher;
|
||||
static const uploadAttachment =
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.uploadAttachment;
|
||||
static String downloadAttachment(String id) =>
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.downloadAttachment(id);
|
||||
static const trashMessage =
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.trashMessage;
|
||||
static const deleteMessage =
|
||||
BaseKreta.kretaAdmin + KretaAdminEndpoints.deleteMessage;
|
||||
}
|
||||
|
||||
class BaseKreta {
|
||||
@@ -58,25 +88,32 @@ class KretaApiEndpoints {
|
||||
static const grades = "/ellenorzo/V3/Sajat/Ertekelesek";
|
||||
static const absences = "/ellenorzo/V3/Sajat/Mulasztasok";
|
||||
static const groups = "/ellenorzo/V3/Sajat/OsztalyCsoportok";
|
||||
static const groupAverages = "/ellenorzo/V3/Sajat/Ertekelesek/Atlagok/OsztalyAtlagok";
|
||||
static const groupAverages =
|
||||
"/ellenorzo/V3/Sajat/Ertekelesek/Atlagok/OsztalyAtlagok";
|
||||
static const timetable = "/ellenorzo/V3/Sajat/OrarendElemek";
|
||||
static const exams = "/ellenorzo/V3/Sajat/BejelentettSzamonkeresek";
|
||||
static const homework = "/ellenorzo/V3/Sajat/HaziFeladatok";
|
||||
// static const homeworkDone = "/ellenorzo/V3/Sajat/HaziFeladatok/Megoldva"; // Removed from the API
|
||||
static const capabilities = "/ellenorzo/V3/Sajat/Intezmenyek";
|
||||
static String downloadHomeworkAttachments(String uid, String type) => "/ellenorzo/V3/Sajat/Csatolmany/$uid";
|
||||
static String downloadHomeworkAttachments(String uid, String type) =>
|
||||
"/ellenorzo/V3/Sajat/Csatolmany/$uid";
|
||||
}
|
||||
|
||||
class KretaAdminEndpoints {
|
||||
//static const messages = "/api/v1/kommunikacio/postaladaelemek/sajat";
|
||||
static const sendMessage = "/api/v1/kommunikacio/uzenetek";
|
||||
static String messages(String endpoint) => "/api/v1/kommunikacio/postaladaelemek/$endpoint";
|
||||
static String message(String id) => "/api/v1/kommunikacio/postaladaelemek/$id";
|
||||
static String messages(String endpoint) =>
|
||||
"/api/v1/kommunikacio/postaladaelemek/$endpoint";
|
||||
static String message(String id) =>
|
||||
"/api/v1/kommunikacio/postaladaelemek/$id";
|
||||
static const recipientCategories = "/api/v1/adatszotarak/cimzetttipusok";
|
||||
static const availableCategories = "/api/v1/kommunikacio/cimezhetotipusok";
|
||||
static const recipientsTeacher = "/api/v1/kreta/alkalmazottak/tanar";
|
||||
static const uploadAttachment = "/ideiglenesfajlok";
|
||||
static String downloadAttachment(String id) => "/api/v1/dokumentumok/uzenetek/$id";
|
||||
static String downloadAttachment(String id) =>
|
||||
"/api/v1/dokumentumok/uzenetek/$id";
|
||||
static const trashMessage = "/api/v1/kommunikacio/postaladaelemek/kuka";
|
||||
static const deleteMessage = "/api/v1/kommunikacio/postaladaelemek/torles";
|
||||
// profile management
|
||||
static const editProfile = "/api/profilapi/saveprofildata";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class ProfileController extends ChangeNotifier {
|
||||
//todo: profile controller (pw change, etc)
|
||||
}
|
||||
Reference in New Issue
Block a user