feat: account manager (#468)

* feat: account manager

* remove dep

* some fixes

* migrate accounts

* reimplement clearCookie
This commit is contained in:
My-Responsitories
2025-03-19 13:19:32 +08:00
committed by GitHub
parent 94fa0652ac
commit b15fdfa2ff
47 changed files with 1233 additions and 800 deletions

View File

@@ -1048,7 +1048,7 @@ class ReplyItem extends StatelessWidget {
'/x/v2/reply/report',
data: {
'add_blacklist': banUid,
'csrf': await Request.getCsrf(),
'csrf': Accounts.main.csrf,
'gaia_source': 'main_h5',
'oid': item.oid,
'platform': 'android',
@@ -1135,7 +1135,7 @@ class ReplyItem extends StatelessWidget {
}
}
dynamic ownerMid = GStorage.ownerMid;
int ownerMid = Accounts.main.mid;
Color errorColor = Theme.of(context).colorScheme.error;
return Padding(
@@ -1168,7 +1168,7 @@ class ReplyItem extends StatelessWidget {
),
),
),
if (ownerMid != null) ...[
if (ownerMid != 0) ...[
ListTile(
onTap: () => menuActionHandler('delete'),
minLeadingWidth: 0,

View File

@@ -1177,7 +1177,7 @@ class ReplyItemGrpc extends StatelessWidget {
}
}
dynamic ownerMid = GStorage.ownerMid;
int ownerMid = Accounts.main.mid;
Color errorColor = Theme.of(context).colorScheme.error;
return Padding(
@@ -1210,7 +1210,7 @@ class ReplyItemGrpc extends StatelessWidget {
),
),
),
if (ownerMid != null) ...[
if (ownerMid != 0) ...[
ListTile(
onTap: () => menuActionHandler('delete'),
minLeadingWidth: 0,