Merge pull request #5725 from RalphORama/patch-remove-ge.tt

refactor(FileUploaders): remove ge.tt destination
This commit is contained in:
Jaex 2021-08-01 08:11:06 +03:00 committed by GitHub
commit 05174a063a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 1 additions and 709 deletions

View file

@ -48,7 +48,6 @@ internal static partial class APIKeys
public static readonly string BoxClientID = "";
public static readonly string BoxClientSecret = "";
public static readonly string SendSpaceKey = "";
public static readonly string Ge_ttKey = "";
public static readonly string JiraConsumerKey = "";
public static readonly string MediaFireAppId = "";
public static readonly string MediaFireApiKey = "";

View file

@ -113,8 +113,6 @@ public enum FileDestination
Pushbullet,
[Description("SendSpace")]
SendSpace,
[Description("Ge.tt")]
Ge_tt,
[Description("Hostr")]
Localhostr,
[Description("JIRA")]

View file

@ -1,167 +0,0 @@
#region License Information (GPL v3)
/*
ShareX - A program that allows you to take screenshots and share any file type
Copyright (c) 2007-2021 ShareX Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
*/
#endregion License Information (GPL v3)
using Newtonsoft.Json;
using ShareX.HelpersLib;
using ShareX.UploadersLib.Properties;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
namespace ShareX.UploadersLib.FileUploaders
{
public class Ge_ttFileUploaderService : FileUploaderService
{
public override FileDestination EnumValue { get; } = FileDestination.Ge_tt;
public override Icon ServiceIcon => Resources.Gett;
public override bool CheckConfig(UploadersConfig config)
{
return config.Ge_ttLogin != null && !string.IsNullOrEmpty(config.Ge_ttLogin.AccessToken);
}
public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo)
{
return new Ge_tt(APIKeys.Ge_ttKey)
{
AccessToken = config.Ge_ttLogin.AccessToken
};
}
public override TabPage GetUploadersConfigTabPage(UploadersConfigForm form) => form.tpGe_tt;
}
public sealed class Ge_tt : FileUploader
{
private const string APIURL = "http://api.ge.tt/1";
public string APIKey { get; private set; }
public string AccessToken { get; set; }
public Ge_tt(string apiKey)
{
APIKey = apiKey;
}
public Ge_ttLogin Login(string email, string password)
{
Dictionary<string, string> args = new Dictionary<string, string>();
args.Add("apikey", APIKey);
args.Add("email", email);
args.Add("password", password);
string json = JsonConvert.SerializeObject(args);
string url = URLHelpers.CombineURL(APIURL, "users/login");
string response = SendRequest(HttpMethod.POST, url, json, RequestHelpers.ContentTypeJSON);
return JsonConvert.DeserializeObject<Ge_ttLogin>(response);
}
public Ge_ttShare CreateShare(string accessToken)
{
Dictionary<string, string> args = new Dictionary<string, string>();
args.Add("accesstoken", accessToken);
string url = URLHelpers.CreateQueryString(URLHelpers.CombineURL(APIURL, "shares/create"), args);
string response = SendRequest(HttpMethod.POST, url);
return JsonConvert.DeserializeObject<Ge_ttShare>(response);
}
public Ge_ttFile CreateFile(string accessToken, string shareName, string fileName)
{
Dictionary<string, string> args = new Dictionary<string, string>();
args.Add("accesstoken", accessToken);
Dictionary<string, string> args2 = new Dictionary<string, string>();
args2.Add("filename", fileName);
string json = JsonConvert.SerializeObject(args2);
string response = SendRequest(HttpMethod.POST, URLHelpers.CombineURL(APIURL, "files", shareName, "create"), json, RequestHelpers.ContentTypeJSON, args);
return JsonConvert.DeserializeObject<Ge_ttFile>(response);
}
public override UploadResult Upload(Stream stream, string fileName)
{
UploadResult result = null;
Ge_ttShare share = CreateShare(AccessToken);
if (share != null)
{
Ge_ttFile file = CreateFile(AccessToken, share.ShareName, fileName);
if (file != null)
{
result = SendRequestFile(file.Upload.PostURL, stream, fileName, "file");
if (result.IsSuccess)
{
result.URL = file.GettURL;
}
}
}
return result;
}
}
public class Ge_ttLogin
{
public string Expires { get; set; }
[JsonEncrypt]
public string AccessToken { get; set; }
[JsonEncrypt]
public string RefreshToken { get; set; }
}
public class Ge_ttShare
{
public string Created { get; set; }
public string UserID { get; set; }
public string ShareName { get; set; }
public string ReadyState { get; set; }
public string FullName { get; set; }
public string Type { get; set; }
public string GettURL { get; set; }
}
public class Ge_ttFile
{
public string GettURL { get; set; }
public Ge_ttUpload Upload { get; set; }
}
public class Ge_ttUpload
{
public string PostURL { get; set; }
public string PutURL { get; set; }
}
}

View file

@ -333,13 +333,6 @@ private void InitializeComponent()
this.lblSendSpaceUsername = new System.Windows.Forms.Label();
this.txtSendSpacePassword = new System.Windows.Forms.TextBox();
this.txtSendSpaceUserName = new System.Windows.Forms.TextBox();
this.tpGe_tt = new System.Windows.Forms.TabPage();
this.lblGe_ttStatus = new System.Windows.Forms.Label();
this.lblGe_ttPassword = new System.Windows.Forms.Label();
this.lblGe_ttEmail = new System.Windows.Forms.Label();
this.btnGe_ttLogin = new System.Windows.Forms.Button();
this.txtGe_ttPassword = new System.Windows.Forms.TextBox();
this.txtGe_ttEmail = new System.Windows.Forms.TextBox();
this.tpHostr = new System.Windows.Forms.TabPage();
this.cbLocalhostrDirectURL = new System.Windows.Forms.CheckBox();
this.lblLocalhostrPassword = new System.Windows.Forms.Label();
@ -673,7 +666,6 @@ private void InitializeComponent()
this.tpMediaFire.SuspendLayout();
this.tpPushbullet.SuspendLayout();
this.tpSendSpace.SuspendLayout();
this.tpGe_tt.SuspendLayout();
this.tpHostr.SuspendLayout();
this.tpJira.SuspendLayout();
this.gbJiraServer.SuspendLayout();
@ -1211,7 +1203,6 @@ private void InitializeComponent()
this.tcFileUploaders.Controls.Add(this.tpMediaFire);
this.tcFileUploaders.Controls.Add(this.tpPushbullet);
this.tcFileUploaders.Controls.Add(this.tpSendSpace);
this.tcFileUploaders.Controls.Add(this.tpGe_tt);
this.tcFileUploaders.Controls.Add(this.tpHostr);
this.tcFileUploaders.Controls.Add(this.tpJira);
this.tcFileUploaders.Controls.Add(this.tpLambda);
@ -2757,51 +2748,6 @@ private void InitializeComponent()
this.txtSendSpaceUserName.Name = "txtSendSpaceUserName";
this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged);
//
// tpGe_tt
//
this.tpGe_tt.BackColor = System.Drawing.SystemColors.Window;
this.tpGe_tt.Controls.Add(this.lblGe_ttStatus);
this.tpGe_tt.Controls.Add(this.lblGe_ttPassword);
this.tpGe_tt.Controls.Add(this.lblGe_ttEmail);
this.tpGe_tt.Controls.Add(this.btnGe_ttLogin);
this.tpGe_tt.Controls.Add(this.txtGe_ttPassword);
this.tpGe_tt.Controls.Add(this.txtGe_ttEmail);
resources.ApplyResources(this.tpGe_tt, "tpGe_tt");
this.tpGe_tt.Name = "tpGe_tt";
//
// lblGe_ttStatus
//
resources.ApplyResources(this.lblGe_ttStatus, "lblGe_ttStatus");
this.lblGe_ttStatus.Name = "lblGe_ttStatus";
//
// lblGe_ttPassword
//
resources.ApplyResources(this.lblGe_ttPassword, "lblGe_ttPassword");
this.lblGe_ttPassword.Name = "lblGe_ttPassword";
//
// lblGe_ttEmail
//
resources.ApplyResources(this.lblGe_ttEmail, "lblGe_ttEmail");
this.lblGe_ttEmail.Name = "lblGe_ttEmail";
//
// btnGe_ttLogin
//
resources.ApplyResources(this.btnGe_ttLogin, "btnGe_ttLogin");
this.btnGe_ttLogin.Name = "btnGe_ttLogin";
this.btnGe_ttLogin.UseVisualStyleBackColor = true;
this.btnGe_ttLogin.Click += new System.EventHandler(this.btnGe_ttLogin_Click);
//
// txtGe_ttPassword
//
resources.ApplyResources(this.txtGe_ttPassword, "txtGe_ttPassword");
this.txtGe_ttPassword.Name = "txtGe_ttPassword";
this.txtGe_ttPassword.UseSystemPasswordChar = true;
//
// txtGe_ttEmail
//
resources.ApplyResources(this.txtGe_ttEmail, "txtGe_ttEmail");
this.txtGe_ttEmail.Name = "txtGe_ttEmail";
//
// tpHostr
//
this.tpHostr.BackColor = System.Drawing.SystemColors.Window;
@ -5071,8 +5017,6 @@ private void InitializeComponent()
this.tpPushbullet.PerformLayout();
this.tpSendSpace.ResumeLayout(false);
this.tpSendSpace.PerformLayout();
this.tpGe_tt.ResumeLayout(false);
this.tpGe_tt.PerformLayout();
this.tpHostr.ResumeLayout(false);
this.tpHostr.PerformLayout();
this.tpJira.ResumeLayout(false);
@ -5238,12 +5182,6 @@ private void InitializeComponent()
private System.Windows.Forms.TextBox txtSendSpacePassword;
private System.Windows.Forms.TextBox txtSendSpaceUserName;
private AccountTypeControl atcSendSpaceAccountType;
private System.Windows.Forms.Label lblGe_ttStatus;
private System.Windows.Forms.Label lblGe_ttPassword;
private System.Windows.Forms.Label lblGe_ttEmail;
private System.Windows.Forms.Button btnGe_ttLogin;
private System.Windows.Forms.TextBox txtGe_ttPassword;
private System.Windows.Forms.TextBox txtGe_ttEmail;
private System.Windows.Forms.CheckBox cbLocalhostrDirectURL;
private System.Windows.Forms.Label lblLocalhostrPassword;
private System.Windows.Forms.Label lblLocalhostrEmail;
@ -5500,7 +5438,6 @@ private void InitializeComponent()
internal System.Windows.Forms.TabPage tpMediaFire;
internal System.Windows.Forms.TabPage tpPushbullet;
internal System.Windows.Forms.TabPage tpSendSpace;
internal System.Windows.Forms.TabPage tpGe_tt;
internal System.Windows.Forms.TabPage tpHostr;
internal System.Windows.Forms.TabPage tpJira;
internal System.Windows.Forms.TabPage tpLambda;

View file

@ -432,15 +432,6 @@ private void LoadFileUploaderSettings()
#endregion Box
#region Ge.tt
if (Config.Ge_ttLogin != null && !string.IsNullOrEmpty(Config.Ge_ttLogin.AccessToken))
{
lblGe_ttStatus.Text = Resources.UploadersConfigForm_Login_successful;
}
#endregion Ge.tt
#region Localhostr
txtLocalhostrEmail.Text = Config.LocalhostrEmail;
@ -2006,15 +1997,6 @@ private void txtSendSpacePassword_TextChanged(object sender, EventArgs e)
#endregion SendSpace
#region Ge.tt
private void btnGe_ttLogin_Click(object sender, EventArgs e)
{
Ge_ttLogin();
}
#endregion Ge.tt
#region Localhostr
private void txtLocalhostrEmail_TextChanged(object sender, EventArgs e)
@ -3399,4 +3381,4 @@ private void txtTwitterDefaultMessage_TextChanged(object sender, EventArgs e)
#endregion Other uploaders
}
}
}

View file

@ -390,18 +390,6 @@ Das Benutzen einer verschlüsselten Bibliothek deaktiviert das Teilen.</value>
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Benutze direkte URL, wenn sie existiert </value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Einloggen</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>E-Mail:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Passwort:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Login erforderlich.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Benutzername:</value>
</data>

View file

@ -243,9 +243,6 @@
<data name="lblMediaFireEmail.Text" xml:space="preserve">
<value>Correo electrónico:</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Correo electrónico:</value>
</data>
<data name="lblMegaEmail.Text" xml:space="preserve">
<value>Correo electrónico:</value>
</data>
@ -300,9 +297,6 @@
<data name="btnPastebinLogin.Text" xml:space="preserve">
<value>Acceder</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Acceder</value>
</data>
<data name="btnImageShackLogin.Text" xml:space="preserve">
<value>Acceder</value>
</data>
@ -318,9 +312,6 @@
<data name="lblPhotobucketAccountStatus.Text" xml:space="preserve">
<value>Acceso requerido.</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Acceso requerido.</value>
</data>
<data name="cbxPlikTTLUnit.Items2" xml:space="preserve">
<value>minutos</value>
</data>
@ -360,9 +351,6 @@
<data name="lblImageShackPassword.Text" xml:space="preserve">
<value>Contraseña:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Contraseña:</value>
</data>
<data name="lblFTPPassword.Text" xml:space="preserve">
<value>Contraseña:</value>
</data>
@ -1061,9 +1049,6 @@ Por ejemplo, si el bucket se llama bucket.example.com, la URL será http://bucke
<data name="tpFTP.Text" xml:space="preserve">
<value>FTP / FTPS / SFTP</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="tpGfycat.Text" xml:space="preserve">
<value>Gfycat</value>
</data>

View file

@ -356,18 +356,6 @@ Por ejemplo, si el balde se llama balde.ejemplo.com entonces URL será http://ba
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Utilice URL directa si existe</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Login</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Contraseña:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Inicio de sesión necesario.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Nombre de usuario:</value>
</data>

View file

@ -402,9 +402,6 @@
<data name="lblOwnCloudPassword.Text" xml:space="preserve">
<value>کلمه عبور:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>کلمه عبور:</value>
</data>
<data name="lblSendSpacePassword.Text" xml:space="preserve">
<value>کلمه عبور:</value>
</data>
@ -468,9 +465,6 @@
<data name="lblLithiioEmail.Text" xml:space="preserve">
<value>ایمیل:</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>ایمیل:</value>
</data>
<data name="lblLocalhostrEmail.Text" xml:space="preserve">
<value>ایمیل:</value>
</data>

View file

@ -336,18 +336,6 @@ Utiliser une bibliothèque chiffrée désactive le partage.</value>
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Utiliser l'URL directe si elle existe</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Connexion</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Adresse e-mail :</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Mot de passe :</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Connexion requise.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Nom d'utilisateur :</value>
</data>
@ -1041,9 +1029,6 @@ Utiliser une bibliothèque chiffrée désactive le partage.</value>
<data name="cbAzureStorageEnvironment.Items1" xml:space="preserve">
<value>blob.core.usgovcloudapi.net</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="txtJiraHost.Text" xml:space="preserve">
<value>http://</value>
</data>

View file

@ -350,18 +350,6 @@ For example, if your bucket is called bucket.example.com then URL will be http:/
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Közvetlen URL használata ha létezik</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Bejelentkezés</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Jelszó:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Bejelentkezés szükséges.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Felhasználónév:</value>
</data>

View file

@ -261,9 +261,6 @@
<data name="lblLocalhostrEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblMediaFireEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
@ -402,9 +399,6 @@
<data name="lblYourlsPassword.Text" xml:space="preserve">
<value>Sandi:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Sandi:</value>
</data>
<data name="lblLocalhostrPassword.Text" xml:space="preserve">
<value>Sandi:</value>
</data>
@ -465,9 +459,6 @@
<data name="gbAmazonS3Advanced.Text" xml:space="preserve">
<value>Lanjutan</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="tpFlickr.Text" xml:space="preserve">
<value>Flickr</value>
</data>
@ -960,9 +951,6 @@
<data name="btnImageShackLogin.Text" xml:space="preserve">
<value>Login</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Login</value>
</data>
<data name="btnMegaLogin.Text" xml:space="preserve">
<value>Login</value>
</data>
@ -1068,9 +1056,6 @@
<data name="lblLambdaUploadURL.Text" xml:space="preserve">
<value>Tautan URL:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Login diperlukan.</value>
</data>
<data name="grpSeafileObtainAuthToken.Text" xml:space="preserve">
<value>Dapatkan token otentikasi</value>
</data>

View file

@ -228,9 +228,6 @@
<data name="lblEmailFrom.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblOneTimeSecretEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
@ -360,9 +357,6 @@
<data name="btnPastebinLogin.Text" xml:space="preserve">
<value>Accedi</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Accedi</value>
</data>
<data name="btnPuushLogin.Text" xml:space="preserve">
<value>Accedi</value>
</data>
@ -372,9 +366,6 @@
<data name="lblPhotobucketAccountStatus.Text" xml:space="preserve">
<value>Accesso richiesto.</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Accesso richiesto.</value>
</data>
<data name="cbxPlikTTLUnit.Items2" xml:space="preserve">
<value>minuti</value>
</data>
@ -411,9 +402,6 @@
<data name="lblEmailPassword.Text" xml:space="preserve">
<value>Password:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Password:</value>
</data>
<data name="lblMediaFirePassword.Text" xml:space="preserve">
<value>Password:</value>
</data>

View file

@ -476,18 +476,6 @@
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>ユーザー名:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>ログインが必要です。</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>パスワード:</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Eメール:</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>ログイン</value>
</data>
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>存在する場合はダイレクト リンクを使用</value>
</data>

View file

@ -356,18 +356,6 @@
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>존재한다면 핫링크 사용하기</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>로그인</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>이메일:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>비밀번호:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>로그인 필요.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>사용자 ID:</value>
</data>
@ -830,9 +818,6 @@
<data name="tpSendSpace.Text" xml:space="preserve">
<value>SendSpace</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="tpHostr.Text" xml:space="preserve">
<value>Hostr</value>
</data>

View file

@ -378,18 +378,6 @@ Een versleutelde bibliotheek gebruiken schakelt delen uit.</value>
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Gebruik een directe link als hij bestaat</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Inloggen</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>E-mail:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Wachtwoord:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Inloggen vereist.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Gebruikersnaam:</value>
</data>

View file

@ -161,9 +161,6 @@ Por exemplo, se o seu bucket é chamado bucket.example.com então o URL será ht
<data name="tpSendSpace.Text" xml:space="preserve">
<value>SendSpace</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="tpHostr.Text" xml:space="preserve">
<value>Hostr</value>
</data>
@ -420,18 +417,6 @@ Usar uma biblioteca encriptada desabilita o compartilhamento.</value>
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Usar URL direto se existir</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Logar</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Senha:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Login exigido.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Usuário:</value>
</data>

View file

@ -617,18 +617,6 @@ Isto apenas têm efeito se não tiver permitido acesso ao B2.Bucket quando foi c
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Utilizador:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Necessário iniciar sessão.</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Palavra-passe:</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Iniciar sessão</value>
</data>
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Utilizar hiperligação directa se disponível</value>
</data>

View file

@ -7961,192 +7961,6 @@ when you made the application key.</value>
<data name="&gt;&gt;tpSendSpace.ZOrder" xml:space="preserve">
<value>15</value>
</data>
<data name="lblGe_ttStatus.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lblGe_ttStatus.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lblGe_ttStatus.Location" type="System.Drawing.Point, System.Drawing">
<value>120, 117</value>
</data>
<data name="lblGe_ttStatus.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 13</value>
</data>
<data name="lblGe_ttStatus.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Login required.</value>
</data>
<data name="&gt;&gt;lblGe_ttStatus.Name" xml:space="preserve">
<value>lblGe_ttStatus</value>
</data>
<data name="&gt;&gt;lblGe_ttStatus.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lblGe_ttStatus.Parent" xml:space="preserve">
<value>tpGe_tt</value>
</data>
<data name="&gt;&gt;lblGe_ttStatus.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="lblGe_ttPassword.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lblGe_ttPassword.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lblGe_ttPassword.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 64</value>
</data>
<data name="lblGe_ttPassword.Size" type="System.Drawing.Size, System.Drawing">
<value>56, 13</value>
</data>
<data name="lblGe_ttPassword.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Password:</value>
</data>
<data name="&gt;&gt;lblGe_ttPassword.Name" xml:space="preserve">
<value>lblGe_ttPassword</value>
</data>
<data name="&gt;&gt;lblGe_ttPassword.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lblGe_ttPassword.Parent" xml:space="preserve">
<value>tpGe_tt</value>
</data>
<data name="&gt;&gt;lblGe_ttPassword.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="lblGe_ttEmail.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lblGe_ttEmail.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lblGe_ttEmail.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 16</value>
</data>
<data name="lblGe_ttEmail.Size" type="System.Drawing.Size, System.Drawing">
<value>35, 13</value>
</data>
<data name="lblGe_ttEmail.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="&gt;&gt;lblGe_ttEmail.Name" xml:space="preserve">
<value>lblGe_ttEmail</value>
</data>
<data name="&gt;&gt;lblGe_ttEmail.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lblGe_ttEmail.Parent" xml:space="preserve">
<value>tpGe_tt</value>
</data>
<data name="&gt;&gt;lblGe_ttEmail.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="btnGe_ttLogin.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="btnGe_ttLogin.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 112</value>
</data>
<data name="btnGe_ttLogin.Size" type="System.Drawing.Size, System.Drawing">
<value>96, 23</value>
</data>
<data name="btnGe_ttLogin.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Login</value>
</data>
<data name="&gt;&gt;btnGe_ttLogin.Name" xml:space="preserve">
<value>btnGe_ttLogin</value>
</data>
<data name="&gt;&gt;btnGe_ttLogin.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnGe_ttLogin.Parent" xml:space="preserve">
<value>tpGe_tt</value>
</data>
<data name="&gt;&gt;btnGe_ttLogin.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="txtGe_ttPassword.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 80</value>
</data>
<data name="txtGe_ttPassword.Size" type="System.Drawing.Size, System.Drawing">
<value>168, 20</value>
</data>
<data name="txtGe_ttPassword.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;txtGe_ttPassword.Name" xml:space="preserve">
<value>txtGe_ttPassword</value>
</data>
<data name="&gt;&gt;txtGe_ttPassword.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtGe_ttPassword.Parent" xml:space="preserve">
<value>tpGe_tt</value>
</data>
<data name="&gt;&gt;txtGe_ttPassword.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="txtGe_ttEmail.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 32</value>
</data>
<data name="txtGe_ttEmail.Size" type="System.Drawing.Size, System.Drawing">
<value>168, 20</value>
</data>
<data name="txtGe_ttEmail.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;txtGe_ttEmail.Name" xml:space="preserve">
<value>txtGe_ttEmail</value>
</data>
<data name="&gt;&gt;txtGe_ttEmail.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtGe_ttEmail.Parent" xml:space="preserve">
<value>tpGe_tt</value>
</data>
<data name="&gt;&gt;txtGe_ttEmail.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="tpGe_tt.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 40</value>
</data>
<data name="tpGe_tt.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpGe_tt.Size" type="System.Drawing.Size, System.Drawing">
<value>803, 525</value>
</data>
<data name="tpGe_tt.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="&gt;&gt;tpGe_tt.Name" xml:space="preserve">
<value>tpGe_tt</value>
</data>
<data name="&gt;&gt;tpGe_tt.Type" xml:space="preserve">
<value>System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tpGe_tt.Parent" xml:space="preserve">
<value>tcFileUploaders</value>
</data>
<data name="&gt;&gt;tpGe_tt.ZOrder" xml:space="preserve">
<value>16</value>
</data>
<data name="cbLocalhostrDirectURL.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>

View file

@ -339,18 +339,6 @@
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Использовать прямой URL, если он существует</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Войти</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Пароль:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Необходимо войти.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Имя пользователя:</value>
</data>

View file

@ -337,18 +337,6 @@
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Varsa direkt adres kullan</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Giriş</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Eposta:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Şifre:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Giriş gereklidir.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Kullanıcı adı:</value>
</data>

View file

@ -510,18 +510,6 @@
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Ім’я користувача:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Треба увійти.</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Пароль:</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Ел. пошта:</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Вхід</value>
</data>
<data name="lblLocalhostrPassword.Text" xml:space="preserve">
<value>Пароль:</value>
</data>

View file

@ -302,18 +302,6 @@ Ví dụ: nếu tên bucket là bucket.example.com thì URL sẽ là http://buck
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>Sử dụng URL trực tiếp nếu tồn tại</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>Đăng nhập</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>Email:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>Mật khẩu:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>Đăng nhập được yêu cầu.</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>Tên người dùng:</value>
</data>
@ -806,9 +794,6 @@ Ví dụ: nếu tên bucket là bucket.example.com thì URL sẽ là http://buck
<data name="rbFTPProtocolFTPS.Text" xml:space="preserve">
<value>FTPS</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="tpYourls.Text" xml:space="preserve">
<value>YOURLS</value>
</data>

View file

@ -378,18 +378,6 @@
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>如果存在则使用直链</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>登录</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>邮箱:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>密码:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>需要登录。</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>用户名:</value>
</data>
@ -1202,9 +1190,6 @@
<data name="tpFlickr.Text" xml:space="preserve">
<value>Flickr</value>
</data>
<data name="tpGe_tt.Text" xml:space="preserve">
<value>Ge.tt</value>
</data>
<data name="tpGfycat.Text" xml:space="preserve">
<value>Gfycat</value>
</data>

View file

@ -380,18 +380,6 @@
<data name="cbLocalhostrDirectURL.Text" xml:space="preserve">
<value>如果存在則使用直接網址</value>
</data>
<data name="btnGe_ttLogin.Text" xml:space="preserve">
<value>登入</value>
</data>
<data name="lblGe_ttEmail.Text" xml:space="preserve">
<value>電子信箱:</value>
</data>
<data name="lblGe_ttPassword.Text" xml:space="preserve">
<value>密碼:</value>
</data>
<data name="lblGe_ttStatus.Text" xml:space="preserve">
<value>需要登入。</value>
</data>
<data name="lblSendSpaceUsername.Text" xml:space="preserve">
<value>使用者名稱:</value>
</data>

View file

@ -718,27 +718,6 @@ public UserPassBox SendSpaceRegister()
#endregion SendSpace
#region Ge.tt
public void Ge_ttLogin()
{
try
{
Ge_tt gett = new Ge_tt(APIKeys.Ge_ttKey);
Ge_ttLogin login = gett.Login(txtGe_ttEmail.Text, txtGe_ttPassword.Text);
Config.Ge_ttLogin = login;
lblGe_ttStatus.Text = Resources.UploadersConfigForm_Login_successful;
}
catch (Exception ex)
{
Config.Ge_ttLogin = null;
lblGe_ttStatus.Text = Resources.UploadersConfigForm_Login_failed;
ex.ShowError();
}
}
#endregion Ge.tt
#region Pastebin
public void PastebinLogin()

View file

@ -141,7 +141,6 @@
<Compile Include="FileUploaders\Lambda.cs" />
<Compile Include="FileUploaders\Copy.cs" />
<Compile Include="FileUploaders\Email.cs" />
<Compile Include="FileUploaders\Ge_tt.cs" />
<Compile Include="FileUploaders\GoogleDrive.cs" />
<Compile Include="FileUploaders\Jira.cs" />
<Compile Include="FileUploaders\Hostr.cs" />

View file

@ -228,12 +228,6 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
#endregion Box
#region Ge.tt
public Ge_ttLogin Ge_ttLogin { get; set; } = null;
#endregion Ge.tt
#region Localhostr
public string LocalhostrEmail { get; set; } = "";