From e536121d97610af09d6bf4a51a875b0f7d50f702 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 30 Apr 2021 17:53:40 +0800 Subject: refactor: ... --- BackEnd/Timeline/Resources/Messages.Designer.cs | 414 ------------------------ BackEnd/Timeline/Resources/Messages.resx | 237 -------------- 2 files changed, 651 deletions(-) delete mode 100644 BackEnd/Timeline/Resources/Messages.Designer.cs delete mode 100644 BackEnd/Timeline/Resources/Messages.resx (limited to 'BackEnd/Timeline/Resources') diff --git a/BackEnd/Timeline/Resources/Messages.Designer.cs b/BackEnd/Timeline/Resources/Messages.Designer.cs deleted file mode 100644 index c6b7d5e7..00000000 --- a/BackEnd/Timeline/Resources/Messages.Designer.cs +++ /dev/null @@ -1,414 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Timeline.Resources { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Messages { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Messages() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Messages", typeof(Messages).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Body is too big. It can't be bigger than {0}.. - /// - internal static string Common_Content_TooBig { - get { - return ResourceManager.GetString("Common_Content_TooBig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Actual body length is bigger than it in header.. - /// - internal static string Common_Content_UnmatchedLength_Bigger { - get { - return ResourceManager.GetString("Common_Content_UnmatchedLength_Bigger", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Actual body length is smaller than it in header.. - /// - internal static string Common_Content_UnmatchedLength_Smaller { - get { - return ResourceManager.GetString("Common_Content_UnmatchedLength_Smaller", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have no permission to do the operation.. - /// - internal static string Common_Forbid { - get { - return ResourceManager.GetString("Common_Forbid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You are not the resource owner.. - /// - internal static string Common_Forbid_NotSelf { - get { - return ResourceManager.GetString("Common_Forbid_NotSelf", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Header Content-Length is missing or of bad format.. - /// - internal static string Common_Header_ContentLength_Missing { - get { - return ResourceManager.GetString("Common_Header_ContentLength_Missing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Header Content-Length must not be 0.. - /// - internal static string Common_Header_ContentLength_Zero { - get { - return ResourceManager.GetString("Common_Header_ContentLength_Zero", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Header Content-Type is missing.. - /// - internal static string Common_Header_ContentType_Missing { - get { - return ResourceManager.GetString("Common_Header_ContentType_Missing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Header If-Non-Match is of bad format.. - /// - internal static string Common_Header_IfNonMatch_BadFormat { - get { - return ResourceManager.GetString("Common_Header_IfNonMatch_BadFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Model is of bad format.. - /// - internal static string Common_InvalidModel { - get { - return ResourceManager.GetString("Common_InvalidModel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The api endpoint you request is unknown. You might get the wrong api entry.. - /// - internal static string Common_UnknownEndpoint { - get { - return ResourceManager.GetString("Common_UnknownEndpoint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unknown type of post content.. - /// - internal static string TimelineController_ContentUnknownType { - get { - return ResourceManager.GetString("TimelineController_ContentUnknownType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Data field is not a valid base64 string in image content.. - /// - internal static string TimelineController_ImageContentDataNotBase64 { - get { - return ResourceManager.GetString("TimelineController_ImageContentDataNotBase64", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Data field is not a valid image after base64 decoding in image content.. - /// - internal static string TimelineController_ImageContentDataNotImage { - get { - return ResourceManager.GetString("TimelineController_ImageContentDataNotImage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Data field is required for image content.. - /// - internal static string TimelineController_ImageContentDataRequired { - get { - return ResourceManager.GetString("TimelineController_ImageContentDataRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The user to set as member does not exist.. - /// - internal static string TimelineController_MemberPut_NotExist { - get { - return ResourceManager.GetString("TimelineController_MemberPut_NotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A timeline with given name already exists.. - /// - internal static string TimelineController_NameConflict { - get { - return ResourceManager.GetString("TimelineController_NameConflict", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The timeline with given name does not exist.. - /// - internal static string TimelineController_NotExist { - get { - return ResourceManager.GetString("TimelineController_NotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The post of that type has no data.. - /// - internal static string TimelineController_PostNoData { - get { - return ResourceManager.GetString("TimelineController_PostNoData", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The post to operate on does not exist.. - /// - internal static string TimelineController_PostNotExist { - get { - return ResourceManager.GetString("TimelineController_PostNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The user specified by query param "relate" does not exist.. - /// - internal static string TimelineController_QueryRelateNotExist { - get { - return ResourceManager.GetString("TimelineController_QueryRelateNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to '{0}' is an unkown visibility in the query parameter 'visibility'. . - /// - internal static string TimelineController_QueryVisibilityUnknown { - get { - return ResourceManager.GetString("TimelineController_QueryVisibilityUnknown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Text field is required for text content.. - /// - internal static string TimelineController_TextContentTextRequired { - get { - return ResourceManager.GetString("TimelineController_TextContentTextRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username or password is invalid.. - /// - internal static string TokenController_Create_BadCredential { - get { - return ResourceManager.GetString("TokenController_Create_BadCredential", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The token is of bad format. It might not be created by the server.. - /// - internal static string TokenController_Verify_BadFormat { - get { - return ResourceManager.GetString("TokenController_Verify_BadFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Token has an old version. User might have update some info.. - /// - internal static string TokenController_Verify_OldVersion { - get { - return ResourceManager.GetString("TokenController_Verify_OldVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The token is expired.. - /// - internal static string TokenController_Verify_TimeExpired { - get { - return ResourceManager.GetString("TokenController_Verify_TimeExpired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User does not exist. Administrator might have deleted this user.. - /// - internal static string TokenController_Verify_UserNotExist { - get { - return ResourceManager.GetString("TokenController_Verify_UserNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Image is not a square.. - /// - internal static string UserAvatar_BadFormat_BadSize { - get { - return ResourceManager.GetString("UserAvatar_BadFormat_BadSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Image decode failed.. - /// - internal static string UserAvatar_BadFormat_CantDecode { - get { - return ResourceManager.GetString("UserAvatar_BadFormat_CantDecode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Image format does not match the one in header.. - /// - internal static string UserAvatar_BadFormat_UnmatchedFormat { - get { - return ResourceManager.GetString("UserAvatar_BadFormat_UnmatchedFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The user to operate on does not exist.. - /// - internal static string UserCommon_NotExist { - get { - return ResourceManager.GetString("UserCommon_NotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Old password is wrong.. - /// - internal static string UserController_ChangePassword_BadOldPassword { - get { - return ResourceManager.GetString("UserController_ChangePassword_BadOldPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You can't change permission of root user.. - /// - internal static string UserController_ChangePermission_RootUser { - get { - return ResourceManager.GetString("UserController_ChangePermission_RootUser", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You can't delete root user.. - /// - internal static string UserController_Delete_RootUser { - get { - return ResourceManager.GetString("UserController_Delete_RootUser", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You can't set permission unless you are administrator.. - /// - internal static string UserController_Patch_Forbid_Administrator { - get { - return ResourceManager.GetString("UserController_Patch_Forbid_Administrator", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You can't set password unless you are administrator. If you want to change password, use /userop/changepassword .. - /// - internal static string UserController_Patch_Forbid_Password { - get { - return ResourceManager.GetString("UserController_Patch_Forbid_Password", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You can't set username unless you are administrator.. - /// - internal static string UserController_Patch_Forbid_Username { - get { - return ResourceManager.GetString("UserController_Patch_Forbid_Username", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A user with given username already exists.. - /// - internal static string UserController_UsernameConflict { - get { - return ResourceManager.GetString("UserController_UsernameConflict", resourceCulture); - } - } - } -} diff --git a/BackEnd/Timeline/Resources/Messages.resx b/BackEnd/Timeline/Resources/Messages.resx deleted file mode 100644 index 2386d1eb..00000000 --- a/BackEnd/Timeline/Resources/Messages.resx +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Body is too big. It can't be bigger than {0}. - - - Actual body length is bigger than it in header. - - - Actual body length is smaller than it in header. - - - You have no permission to do the operation. - - - You are not the resource owner. - - - Header Content-Length is missing or of bad format. - - - Header Content-Length must not be 0. - - - Header Content-Type is missing. - - - Header If-Non-Match is of bad format. - - - Model is of bad format. - - - The api endpoint you request is unknown. You might get the wrong api entry. - - - Unknown type of post content. - - - Data field is not a valid base64 string in image content. - - - Data field is not a valid image after base64 decoding in image content. - - - Data field is required for image content. - - - The user to set as member does not exist. - - - A timeline with given name already exists. - - - The timeline with given name does not exist. - - - The post of that type has no data. - - - The post to operate on does not exist. - - - The user specified by query param "relate" does not exist. - - - '{0}' is an unkown visibility in the query parameter 'visibility'. - - - Text field is required for text content. - - - Username or password is invalid. - - - The token is of bad format. It might not be created by the server. - - - Token has an old version. User might have update some info. - - - The token is expired. - - - User does not exist. Administrator might have deleted this user. - - - Image is not a square. - - - Image decode failed. - - - Image format does not match the one in header. - - - The user to operate on does not exist. - - - Old password is wrong. - - - You can't change permission of root user. - - - You can't delete root user. - - - You can't set permission unless you are administrator. - - - You can't set password unless you are administrator. If you want to change password, use /userop/changepassword . - - - You can't set username unless you are administrator. - - - A user with given username already exists. - - \ No newline at end of file -- cgit v1.2.3