Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove roll call related code #242

Merged
merged 5 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dictionaries/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This dictionary contains the names of the API endpoints.
This dictionary contains the service names related to NTUT.

- `iSchool`
- `Zuvio`
- `NTUT`

### third_party_terms

Expand Down
1 change: 0 additions & 1 deletion dictionaries/ntut_terms.dic
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
iSchool
NTUT
Zuvio
14 changes: 7 additions & 7 deletions lib/generated/intl/messages_all.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import 'package:intl/src/intl_helpers.dart';
import 'messages_en.dart' as messages_en;
import 'messages_zh_TW.dart' as messages_zh_tw;

typedef Future<dynamic> LibraryLoader();
typedef LibraryLoader = Future<dynamic> Function();
Map<String, LibraryLoader> _deferredLibraries = {
'en': () => new SynchronousFuture(null),
'zh_TW': () => new SynchronousFuture(null),
'en': () => SynchronousFuture(null),
'zh_TW': () => SynchronousFuture(null),
};

MessageLookupByLibrary? _findExact(String localeName) {
Expand All @@ -41,13 +41,13 @@ Future<bool> initializeMessages(String localeName) {
var availableLocale =
Intl.verifiedLocale(localeName, (locale) => _deferredLibraries[locale] != null, onFailure: (_) => null);
if (availableLocale == null) {
return new SynchronousFuture(false);
return SynchronousFuture(false);
}
var lib = _deferredLibraries[availableLocale];
lib == null ? new SynchronousFuture(false) : lib();
initializeInternalMessageLookup(() => new CompositeMessageLookup());
lib == null ? SynchronousFuture(false) : lib();
initializeInternalMessageLookup(() => CompositeMessageLookup());
messageLookup.addLocale(availableLocale, _findGeneratedMessagesFor);
return new SynchronousFuture(true);
return SynchronousFuture(true);
}

bool _messagesExistFor(String locale) {
Expand Down
14 changes: 3 additions & 11 deletions lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';

final messages = new MessageLookup();
final messages = MessageLookup();

typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
typedef MessageIfAbsent = String Function(String messageStr, List<dynamic> args);

class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'en';
Expand Down Expand Up @@ -53,7 +53,6 @@ class MessageLookup extends MessageLookupByLibrary {
"areYouSureToDownload": MessageLookupByLibrary.simpleMessage("Are you sure you want to download the file"),
"authCodeFail": MessageLookupByLibrary.simpleMessage("Verification code error"),
"autoAppCheck": MessageLookupByLibrary.simpleMessage("Auto App Check"),
"autoRollCall": MessageLookupByLibrary.simpleMessage("Auto RollCall"),
"begin": MessageLookupByLibrary.simpleMessage("Begin"),
"calculationCredit": MessageLookupByLibrary.simpleMessage("Calculation credit"),
"calendar": MessageLookupByLibrary.simpleMessage("Calendar"),
Expand Down Expand Up @@ -239,11 +238,6 @@ class MessageLookup extends MessageLookupByLibrary {
"restart": MessageLookupByLibrary.simpleMessage("Restart"),
"resultsOfVariousSubjects": MessageLookupByLibrary.simpleMessage("Results of various subjects"),
"revisedCommonCompulsory": MessageLookupByLibrary.simpleMessage("Revised Common Compulsory"),
"rollCall": MessageLookupByLibrary.simpleMessage("RollCall"),
"rollCallRemind": MessageLookupByLibrary.simpleMessage("RollCall Remind"),
"rollCallScheduleCanceled": MessageLookupByLibrary.simpleMessage("The roll call schedule has been cancelled"),
"rollCallScheduledSuccessfully":
MessageLookupByLibrary.simpleMessage("The roll call schedule was added successfully"),
"ruleDimension": MessageLookupByLibrary.simpleMessage("Rule of law"),
"sameOldPassword": MessageLookupByLibrary.simpleMessage("Same password as before"),
"save": MessageLookupByLibrary.simpleMessage("Save"),
Expand Down Expand Up @@ -305,8 +299,6 @@ class MessageLookup extends MessageLookupByLibrary {
"videoMayLoadFailedWarningMsg": MessageLookupByLibrary.simpleMessage(
"The video loading time depends on the current network environment\nIf it takes too long to load, try leave this page and trying again"),
"warning": MessageLookupByLibrary.simpleMessage("Warning"),
"willRestart": MessageLookupByLibrary.simpleMessage("Will restart automatically"),
"zuvioAutoRollCallFeatureReleaseNotice":
MessageLookupByLibrary.simpleMessage("Zuvio\'s (auto) roll-call reminder is coming soon!")
"willRestart": MessageLookupByLibrary.simpleMessage("Will restart automatically")
};
}
12 changes: 3 additions & 9 deletions lib/generated/intl/messages_zh_TW.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';

final messages = new MessageLookup();
final messages = MessageLookup();

typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
typedef MessageIfAbsent = String Function(String messageStr, List<dynamic> args);

class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'zh_TW';
Expand Down Expand Up @@ -51,7 +51,6 @@ class MessageLookup extends MessageLookupByLibrary {
"areYouSureToDownload": MessageLookupByLibrary.simpleMessage("確定要下載檔案嗎"),
"authCodeFail": MessageLookupByLibrary.simpleMessage("驗證碼錯誤"),
"autoAppCheck": MessageLookupByLibrary.simpleMessage("自動檢查更新"),
"autoRollCall": MessageLookupByLibrary.simpleMessage("自動點名"),
"begin": MessageLookupByLibrary.simpleMessage("開始"),
"calculationCredit": MessageLookupByLibrary.simpleMessage("計算學分"),
"calendar": MessageLookupByLibrary.simpleMessage("行事曆"),
Expand Down Expand Up @@ -229,10 +228,6 @@ class MessageLookup extends MessageLookupByLibrary {
"restart": MessageLookupByLibrary.simpleMessage("重試"),
"resultsOfVariousSubjects": MessageLookupByLibrary.simpleMessage("各科成績"),
"revisedCommonCompulsory": MessageLookupByLibrary.simpleMessage("校訂共同必修"),
"rollCall": MessageLookupByLibrary.simpleMessage("點名"),
"rollCallRemind": MessageLookupByLibrary.simpleMessage("點名提醒"),
"rollCallScheduleCanceled": MessageLookupByLibrary.simpleMessage("點名行程已取消"),
"rollCallScheduledSuccessfully": MessageLookupByLibrary.simpleMessage("點名行程新增成功"),
"ruleDimension": MessageLookupByLibrary.simpleMessage("法治向度"),
"sameOldPassword": MessageLookupByLibrary.simpleMessage("不可以與之前密碼相同"),
"save": MessageLookupByLibrary.simpleMessage("儲存"),
Expand Down Expand Up @@ -288,7 +283,6 @@ class MessageLookup extends MessageLookupByLibrary {
"versionInfo": MessageLookupByLibrary.simpleMessage("版本資訊"),
"videoMayLoadFailedWarningMsg": MessageLookupByLibrary.simpleMessage("影片載入時間視當下網路環境而定\n若載入時間過長,請嘗試退出後再試一次"),
"warning": MessageLookupByLibrary.simpleMessage("警告"),
"willRestart": MessageLookupByLibrary.simpleMessage("將自動重啟並套用語言"),
"zuvioAutoRollCallFeatureReleaseNotice": MessageLookupByLibrary.simpleMessage("Zuvio (自動)點名提醒的功能即將上線\n敬請期待!")
"willRestart": MessageLookupByLibrary.simpleMessage("將自動重啟並套用語言")
};
}
60 changes: 0 additions & 60 deletions lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,7 @@
"save": "Save",
"loading": "Loading...",
"pleaseConnectToNetwork": "Please connect to network",
"autoRollCall": "Auto RollCall",
"rollCall": "RollCall",
"rollCallRemind": "RollCall Remind",
"videoMayLoadFailedWarningMsg": "The video loading time depends on the current network environment\nIf it takes too long to load, try leave this page and trying again",
"rollCallScheduledSuccessfully": "The roll call schedule was added successfully",
"rollCallScheduleCanceled": "The roll call schedule has been cancelled",
"missingRequiredInformation": "Missing required information",
"incorrectInformationEntered": "Incorrect information entered",
"pleaseSelectStartTime": "Please select a start time",
Expand All @@ -253,7 +248,6 @@
"capitalAdd": "ADD",
"end": "End",
"begin": "Begin",
"zuvioAutoRollCallFeatureReleaseNotice": "Zuvio's (auto) roll-call reminder is coming soon!",
"comingSoon": "Coming Soon!",
"androidPrivateBrowseGuideTitle": "About Incognito Browse",
"androidPrivateBrowseGuideSubTitle": "Open Incognito browsing to enhanced security",
Expand All @@ -268,4 +262,4 @@
"nationalTaipeiUniversity": "NTPU",
"taipeiMedicineUniversity": "TMU",
"aduit": "Aduit"
}
}
8 changes: 1 addition & 7 deletions lib/l10n/intl_zh_TW.arb
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,7 @@
"save": "儲存",
"loading": "載入中...",
"pleaseConnectToNetwork": "請確認網路連接狀態",
"autoRollCall": "自動點名",
"rollCall": "點名",
"rollCallRemind": "點名提醒",
"videoMayLoadFailedWarningMsg": "影片載入時間視當下網路環境而定\n若載入時間過長,請嘗試退出後再試一次",
"rollCallScheduledSuccessfully": "點名行程新增成功",
"rollCallScheduleCanceled": "點名行程已取消",
"missingRequiredInformation": "缺少必要資訊",
"incorrectInformationEntered": "輸入的資訊有誤",
"pleaseSelectStartTime": "請選擇起始時間",
Expand All @@ -253,7 +248,6 @@
"capitalAdd": "新增",
"end": "結束",
"begin": "開始",
"zuvioAutoRollCallFeatureReleaseNotice": "Zuvio (自動)點名提醒的功能即將上線\n敬請期待!",
"comingSoon": "即將上線!",
"androidPrivateBrowseGuideTitle": "關於隱私瀏覽",
"androidPrivateBrowseGuideSubTitle": "開啟隱私瀏覽,安全更有保障",
Expand All @@ -268,4 +262,4 @@
"nationalTaipeiUniversity": "國立臺北大學",
"taipeiMedicineUniversity": "臺北醫學大學",
"aduit": "隨班附讀"
}
}
1 change: 0 additions & 1 deletion lib/src/config/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter_app/src/util/remote_config_util.dart';
class AppConfig {
static const appName = "TAT";
static const methodChannelName = "tat/global";
static final zuvioRollCallFeatureEnabled = RemoteConfigUtil.getFeatureToggleZuvioRollCallFlag();

// Only for android use.
static final androidChromeIncognitoFlagSetupPageUrl = RemoteConfigUtil.getAndroidIncognitoSetupGuidePageUrl();
Expand Down
88 changes: 0 additions & 88 deletions lib/src/controllers/zuvio_auth_controller.dart

This file was deleted.

Loading