Release 0.0.3 Main Merge #3
6 changed files with 6 additions and 24 deletions
|
@ -131,6 +131,7 @@ class Session {
|
|||
enum SessionAccessLevel {
|
||||
unknown,
|
||||
private,
|
||||
lan,
|
||||
contacts,
|
||||
contactsPlus,
|
||||
registeredUsers,
|
||||
|
@ -139,6 +140,7 @@ enum SessionAccessLevel {
|
|||
static const _readableNamesMap = {
|
||||
SessionAccessLevel.unknown: "Unknown",
|
||||
SessionAccessLevel.private: "Private",
|
||||
SessionAccessLevel.lan: "LAN",
|
||||
SessionAccessLevel.contacts: "Contacts only",
|
||||
SessionAccessLevel.contactsPlus: "Contacts+",
|
||||
SessionAccessLevel.registeredUsers: "Registered users",
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
import 'package:OpenContacts/widgets/my_profile_dialog.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:OpenContacts/apis/contact_api.dart';
|
||||
import 'package:OpenContacts/models/users/friend.dart';
|
||||
import 'package:OpenContacts/models/users/online_status.dart';
|
||||
import 'package:OpenContacts/widgets/generic_avatar.dart';
|
||||
import 'package:OpenContacts/widgets/default_error_widget.dart';
|
||||
import 'package:OpenContacts/auxiliary.dart';
|
||||
import 'package:OpenContacts/models/users/user_status.dart';
|
||||
|
||||
// Will do this later
|
||||
|
|
@ -27,7 +27,6 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
late final FocusNode _totpFocusNode;
|
||||
|
||||
bool _isLoading = false;
|
||||
bool _isEmailResetSend = false;
|
||||
String _error = "";
|
||||
bool _needsTotp = false;
|
||||
|
||||
|
@ -47,13 +46,6 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
_totpFocusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
RegExp emailReg = RegExp(
|
||||
r"^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$",
|
||||
|
||||
caseSensitive: false,
|
||||
multiLine: false,
|
||||
|
||||
);
|
||||
Future<void> submit() async {
|
||||
|
||||
if (_usernameController.text.isEmpty || _passwordController.text.isEmpty) {
|
||||
|
|
|
@ -6,6 +6,7 @@ import 'package:OpenContacts/client_holder.dart';
|
|||
import 'package:OpenContacts/models/personal_profile.dart';
|
||||
import 'package:OpenContacts/widgets/default_error_widget.dart';
|
||||
import 'package:OpenContacts/widgets/generic_avatar.dart';
|
||||
import 'package:OpenContacts/models/users/friend.dart';
|
||||
|
||||
class MyProfileDialog extends StatefulWidget {
|
||||
const MyProfileDialog({super.key});
|
||||
|
|
|
@ -132,7 +132,7 @@ class _SessionListState extends State<SessionList> with AutomaticKeepAliveClient
|
|||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
height: 2,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
|
@ -149,7 +149,7 @@ class _SessionListState extends State<SessionList> with AutomaticKeepAliveClient
|
|||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
height: 2,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
|
|
|
@ -38,7 +38,7 @@ class UpdateNotifier extends StatelessWidget {
|
|||
children: [
|
||||
TextButton.icon(
|
||||
onPressed: () {
|
||||
launchUrl(Uri.parse("https://github.com/Nutcake/recon/releases/latest"),
|
||||
launchUrl(Uri.parse("https://git.mrdab.vore.media/ThatOneJackalGuy/OpenContacts/releases/latest"),
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue