Skip to content

Commit

Permalink
analizators/s2223
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhorukovAnton committed Jan 20, 2022
1 parent 50a7bd6 commit f956ad2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public class GoogleLoginProvider : BaseLoginProvider<GoogleLoginProvider>
public const string GoogleUrlProfile = "https://people.googleapis.com/v1/people/me";

public static readonly string[] GoogleDriveExt = new[] { ".gdoc", ".gsheet", ".gslides", ".gdraw" };
public static string GoogleDriveMimeTypeFolder = "application/vnd.google-apps.folder";
public static string FilesFields = "id,name,mimeType,parents,createdTime,modifiedTime,owners/displayName,lastModifyingUser/displayName,capabilities/canEdit,size";
public static string ProfileFields = "emailAddresses,genders,names";
public static readonly string GoogleDriveMimeTypeFolder = "application/vnd.google-apps.folder";
public static readonly string FilesFields = "id,name,mimeType,parents,createdTime,modifiedTime,owners/displayName,lastModifyingUser/displayName,capabilities/canEdit,size";
public static readonly string ProfileFields = "emailAddresses,genders,names";

public override string AccessTokenUrl { get { return "https://www.googleapis.com/oauth2/v4/token"; } }
public override string CodeUrl { get { return "https://accounts.google.com/o/oauth2/v2/auth"; } }
Expand Down
4 changes: 2 additions & 2 deletions products/ASC.Files/Core/Core/Compress/CompressToArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class CompressToArchive : ICompress
{
private readonly ICompress compress;

internal static string TarExt = ".tar.gz";
internal static string ZipExt = ".zip";
internal static readonly string TarExt = ".tar.gz";
internal static readonly string ZipExt = ".zip";
private static List<string> Exts = new List<string>(2) { TarExt, ZipExt };

public CompressToArchive(FilesSettingsHelper filesSettings, CompressToTarGz compressToTarGz, CompressToZip compressToZip)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public bool CheckAccess()
}


public static string RootPath = "/drive/root:";
public static string ApiVersion = "v1.0";
public static readonly string RootPath = "/drive/root:";
public static readonly string ApiVersion = "v1.0";

public static string MakeOneDrivePath(string parentPath, string name)
{
Expand Down
4 changes: 2 additions & 2 deletions products/ASC.Files/Core/Helpers/DocuSignHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ public class DocuSignHelper
".csv", ".et", ".ett", ".xls", ".xlsm", ".xlsx", ".xlt"
};

public static long MaxFileSize = 25L * 1024L * 1024L;
public static readonly long MaxFileSize = 25L * 1024L * 1024L;

public static int MaxEmailLength = 10000;
public static readonly int MaxEmailLength = 10000;

private DocuSignToken DocuSignToken { get; }
private FileSecurity FileSecurity { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public enum EditorType

public class Configuration<T>
{
internal static Dictionary<FileType, string> DocType = new Dictionary<FileType, string>
internal static readonly Dictionary<FileType, string> DocType = new Dictionary<FileType, string>
{
{ FileType.Document, "text" },
{ FileType.Spreadsheet, "spreadsheet" },
Expand Down

0 comments on commit f956ad2

Please sign in to comment.