🐛 Dozens of bug fixes
This commit is contained in:
@@ -790,5 +790,7 @@
|
|||||||
"linkValue": "URL",
|
"linkValue": "URL",
|
||||||
"debugOptions": "Debug Options",
|
"debugOptions": "Debug Options",
|
||||||
"joinedAt": "Joined at {}",
|
"joinedAt": "Joined at {}",
|
||||||
"searchAccounts": "Search accounts..."
|
"searchAccounts": "Search accounts...",
|
||||||
|
"webFeeds": "Web Feeds",
|
||||||
|
"polls": "Polls"
|
||||||
}
|
}
|
||||||
|
@@ -678,5 +678,117 @@
|
|||||||
"learnMore": "了解更多",
|
"learnMore": "了解更多",
|
||||||
"discoverWebArticles": "来自站外的文章",
|
"discoverWebArticles": "来自站外的文章",
|
||||||
"webArticlesStand": "文章亭",
|
"webArticlesStand": "文章亭",
|
||||||
"about": "关于"
|
"about": "关于",
|
||||||
|
"membershipCancel": "取消会员资格",
|
||||||
|
"membershipCancelConfirm": "你确定要取消会员资格吗?",
|
||||||
|
"membershipCancelHint": "你确定要取消会员资格吗?你将不会再次被扣费。你的会员资格将在当前计费周期结束前保持有效。并且你将无法重新订阅,直到当前订阅结束。",
|
||||||
|
"membershipCancelSuccess": "你的会员资格已成功取消。",
|
||||||
|
"aboutScreenTitle": "关于",
|
||||||
|
"aboutScreenVersionInfo": "版本 {} ({})",
|
||||||
|
"aboutScreenAppInfoSectionTitle": "应用信息",
|
||||||
|
"aboutScreenPackageNameLabel": "包名",
|
||||||
|
"aboutScreenVersionLabel": "版本",
|
||||||
|
"aboutScreenBuildNumberLabel": "构建编号",
|
||||||
|
"aboutScreenLinksSectionTitle": "链接",
|
||||||
|
"aboutScreenPrivacyPolicyTitle": "隐私政策",
|
||||||
|
"aboutScreenTermsOfServiceTitle": "服务条款",
|
||||||
|
"aboutScreenOpenSourceLicensesTitle": "开源许可",
|
||||||
|
"aboutScreenDeveloperSectionTitle": "开发者",
|
||||||
|
"aboutScreenContactUsTitle": "联系我们",
|
||||||
|
"aboutScreenLicenseTitle": "许可",
|
||||||
|
"aboutScreenLicenseContent": "GNU Affero General Public License v3.0",
|
||||||
|
"aboutScreenCopyright": "版权所有 © Solsynth {}",
|
||||||
|
"aboutScreenMadeWith": "由 Solar Network 团队用 ❤︎️ 制作",
|
||||||
|
"aboutScreenFailedToLoadPackageInfo": "无法加载包信息:{error}",
|
||||||
|
"copiedToClipboard": "已复制到剪贴板",
|
||||||
|
"copyToClipboardTooltip": "复制到剪贴板",
|
||||||
|
"postForwardingTo": "正在转发到",
|
||||||
|
"postReplyingTo": "正在回复",
|
||||||
|
"postReplyPlaceholder": "发表你的回复",
|
||||||
|
"postEditing": "你正在编辑一个现有的帖子",
|
||||||
|
"postArticle": "文章",
|
||||||
|
"aboutDeviceName": "设备名称",
|
||||||
|
"aboutDeviceIdentifier": "设备标识符",
|
||||||
|
"donate": "捐赠",
|
||||||
|
"donateDescription": "支持我们继续开发 Solar Network,并保持服务器运行。",
|
||||||
|
"fileId": "文件ID",
|
||||||
|
"fileIdHint": "文件ID是你通过 Solar Network Drive 上传文件后获得的ID。",
|
||||||
|
"translate": "翻译",
|
||||||
|
"translating": "正在翻译",
|
||||||
|
"translated": "已翻译",
|
||||||
|
"reactionThumbUp": "点赞",
|
||||||
|
"reactionThumbDown": "踩",
|
||||||
|
"reactionJustOkay": "还行",
|
||||||
|
"reactionCry": "哭",
|
||||||
|
"reactionConfuse": "困惑",
|
||||||
|
"reactionClap": "鼓掌",
|
||||||
|
"reactionLaugh": "笑",
|
||||||
|
"reactionAngry": "生气",
|
||||||
|
"reactionParty": "派对",
|
||||||
|
"reactionPray": "祈祷",
|
||||||
|
"reactionHeart": "心",
|
||||||
|
"selectMicrophone": "选择麦克风",
|
||||||
|
"selectCamera": "选择摄像头",
|
||||||
|
"switchedTo": "已切换到 {}",
|
||||||
|
"connecting": "正在连接",
|
||||||
|
"reconnecting": "正在重新连接",
|
||||||
|
"disconnected": "已断开连接",
|
||||||
|
"connected": "已连接",
|
||||||
|
"repliesLoadMore": "加载更多回复",
|
||||||
|
"attachmentsRecentUploads": "最近上传",
|
||||||
|
"attachmentsManualInput": "手动输入",
|
||||||
|
"crop": "裁剪",
|
||||||
|
"rename": "重命名",
|
||||||
|
"markAsSensitive": "标记为敏感",
|
||||||
|
"fileName": "文件名",
|
||||||
|
"sensitiveCategories.language": "语言",
|
||||||
|
"sensitiveCategories.sexualContent": "色情内容",
|
||||||
|
"sensitiveCategories.violence": "暴力",
|
||||||
|
"sensitiveCategories.profanity": "亵渎",
|
||||||
|
"sensitiveCategories.hateSpeech": "仇恨言论",
|
||||||
|
"sensitiveCategories.racism": "种族主义",
|
||||||
|
"sensitiveCategories.adultContent": "成人内容",
|
||||||
|
"sensitiveCategories.drugAbuse": "药物滥用",
|
||||||
|
"sensitiveCategories.alcoholAbuse": "酗酒",
|
||||||
|
"sensitiveCategories.gambling": "赌博",
|
||||||
|
"sensitiveCategories.selfHarm": "自残",
|
||||||
|
"sensitiveCategories.childAbuse": "虐待儿童",
|
||||||
|
"sensitiveCategories.other": "其他",
|
||||||
|
"poll": "投票",
|
||||||
|
"pollsRecent": "最近投票",
|
||||||
|
"pollCreateNew": "创建新投票",
|
||||||
|
"pollCreateNewHint": "为你的帖子创建一个新投票。选择一个发布者然后继续。",
|
||||||
|
"publisher": "发布者",
|
||||||
|
"publisherHint": "输入发布者名称",
|
||||||
|
"publisherCannotBeEmpty": "发布者不能为空",
|
||||||
|
"operationFailed": "操作失败:{}",
|
||||||
|
"stickerMarketplace": "贴纸市场",
|
||||||
|
"stickerPackAdded": "贴纸包已添加到你的收藏",
|
||||||
|
"stickerPackRemoved": "贴纸包已从你的收藏中移除",
|
||||||
|
"addPack": "添加贴纸包",
|
||||||
|
"removePack": "移除贴纸包",
|
||||||
|
"browseAndAddStickers": "浏览并添加贴纸包",
|
||||||
|
"stickerPack": "贴纸包",
|
||||||
|
"postCategoryTechnology": "科技",
|
||||||
|
"postCategoryTravel": "旅行",
|
||||||
|
"postCategoryFood": "美食",
|
||||||
|
"postCategoryHealth": "健康",
|
||||||
|
"postCategoryScience": "科学",
|
||||||
|
"postCategorySports": "体育",
|
||||||
|
"postCategoryFinance": "金融",
|
||||||
|
"postCategoryLife": "生活",
|
||||||
|
"postCategoryArt": "艺术",
|
||||||
|
"postCategoryStudy": "学习",
|
||||||
|
"postCategoryGaming": "游戏",
|
||||||
|
"postCategoryProgramming": "编程",
|
||||||
|
"postCategoryMusic": "音乐",
|
||||||
|
"links": "链接",
|
||||||
|
"addLink": "添加链接",
|
||||||
|
"linkKey": "链接名称",
|
||||||
|
"linkValue": "URL",
|
||||||
|
"debugOptions": "调试选项",
|
||||||
|
"joinedAt": "加入于 {}",
|
||||||
|
"searchAccounts": "搜索帐号……",
|
||||||
|
"webFeeds": "订阅源",
|
||||||
|
"polls": "投票"
|
||||||
}
|
}
|
@@ -236,7 +236,7 @@ class AccountScreen extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
minTileHeight: 48,
|
minTileHeight: 48,
|
||||||
title: Text('abuseReports').tr(),
|
title: Text('abuseReport').tr(),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 24),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 24),
|
||||||
leading: const Icon(Symbols.gavel),
|
leading: const Icon(Symbols.gavel),
|
||||||
trailing: const Icon(Symbols.chevron_right),
|
trailing: const Icon(Symbols.chevron_right),
|
||||||
|
@@ -382,7 +382,7 @@ class CreatorHubScreen extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
minTileHeight: 48,
|
minTileHeight: 48,
|
||||||
title: const Text('Polls'),
|
title: Text('polls').tr(),
|
||||||
trailing: const Icon(Symbols.chevron_right),
|
trailing: const Icon(Symbols.chevron_right),
|
||||||
leading: const Icon(Symbols.poll),
|
leading: const Icon(Symbols.poll),
|
||||||
contentPadding: const EdgeInsets.symmetric(
|
contentPadding: const EdgeInsets.symmetric(
|
||||||
@@ -419,7 +419,7 @@ class CreatorHubScreen extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
minTileHeight: 48,
|
minTileHeight: 48,
|
||||||
title: const Text('Web Feeds').tr(),
|
title: const Text('webFeeds').tr(),
|
||||||
trailing: const Icon(Symbols.chevron_right),
|
trailing: const Icon(Symbols.chevron_right),
|
||||||
leading: const Icon(Symbols.rss_feed),
|
leading: const Icon(Symbols.rss_feed),
|
||||||
contentPadding: const EdgeInsets.symmetric(
|
contentPadding: const EdgeInsets.symmetric(
|
||||||
@@ -659,7 +659,7 @@ class PublisherMemberNotifier extends StateNotifier<PublisherMemberState> {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
final response = await _apiClient.get(
|
final response = await _apiClient.get(
|
||||||
'/publishers/$publisherUname/members',
|
'/sphere/publishers/$publisherUname/members',
|
||||||
queryParameters: {'offset': offset, 'take': take},
|
queryParameters: {'offset': offset, 'take': take},
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -720,6 +720,9 @@ class _PublisherMemberListSheet extends HookConsumerWidget {
|
|||||||
'/publishers/$publisherUname/invites',
|
'/publishers/$publisherUname/invites',
|
||||||
data: {'related_user_id': result.id, 'role': 0},
|
data: {'related_user_id': result.id, 'role': 0},
|
||||||
);
|
);
|
||||||
|
// Refresh both providers
|
||||||
|
memberNotifier.reset();
|
||||||
|
await memberNotifier.loadMore();
|
||||||
ref.invalidate(memberListProvider);
|
ref.invalidate(memberListProvider);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showErrorAlert(err);
|
showErrorAlert(err);
|
||||||
@@ -823,6 +826,9 @@ class _PublisherMemberListSheet extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
).then((value) {
|
).then((value) {
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
|
// Refresh both providers
|
||||||
|
memberNotifier.reset();
|
||||||
|
memberNotifier.loadMore();
|
||||||
ref.invalidate(memberListProvider);
|
ref.invalidate(memberListProvider);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -844,6 +850,9 @@ class _PublisherMemberListSheet extends HookConsumerWidget {
|
|||||||
await apiClient.delete(
|
await apiClient.delete(
|
||||||
'/publishers/$publisherUname/members/${member.accountId}',
|
'/publishers/$publisherUname/members/${member.accountId}',
|
||||||
);
|
);
|
||||||
|
// Refresh both providers
|
||||||
|
memberNotifier.reset();
|
||||||
|
memberNotifier.loadMore();
|
||||||
ref.invalidate(memberListProvider);
|
ref.invalidate(memberListProvider);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showErrorAlert(err);
|
showErrorAlert(err);
|
||||||
|
Reference in New Issue
Block a user