Merge pull request #2346 from maxibanki/gist-enterprise-support

Added Github Gist Enterprise support
This commit is contained in:
Jaex 2017-03-05 15:28:23 +02:00 committed by GitHub
commit c7eb94ff7d
5 changed files with 416 additions and 307 deletions

View file

@ -51,15 +51,6 @@ private void InitializeComponent()
this.btnTwitterAdd = new System.Windows.Forms.Button();
this.tpCustomUploaders = new System.Windows.Forms.TabPage();
this.tcCustomUploaderResponseParse = new System.Windows.Forms.TabControl();
this.tpCustomUploaderRegexParse = new System.Windows.Forms.TabPage();
this.btnCustomUploaderRegexHelp = new System.Windows.Forms.Button();
this.btnCustomUploaderRegexAddSyntax = new System.Windows.Forms.Button();
this.txtCustomUploaderRegexp = new System.Windows.Forms.TextBox();
this.btnCustomUploaderRegexpUpdate = new System.Windows.Forms.Button();
this.btnCustomUploaderRegexpAdd = new System.Windows.Forms.Button();
this.btnCustomUploaderRegexpRemove = new System.Windows.Forms.Button();
this.lvCustomUploaderRegexps = new ShareX.HelpersLib.MyListView();
this.lvRegexpsColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.tpCustomUploaderJsonParse = new System.Windows.Forms.TabPage();
this.btnCustomUploaderJsonAddSyntax = new System.Windows.Forms.Button();
this.btnCustomUploadJsonPathHelp = new System.Windows.Forms.Button();
@ -72,6 +63,15 @@ private void InitializeComponent()
this.lblCustomUploaderXPathExample = new System.Windows.Forms.Label();
this.lblCustomUploaderXPath = new System.Windows.Forms.Label();
this.txtCustomUploaderXPath = new System.Windows.Forms.TextBox();
this.tpCustomUploaderRegexParse = new System.Windows.Forms.TabPage();
this.btnCustomUploaderRegexHelp = new System.Windows.Forms.Button();
this.btnCustomUploaderRegexAddSyntax = new System.Windows.Forms.Button();
this.txtCustomUploaderRegexp = new System.Windows.Forms.TextBox();
this.btnCustomUploaderRegexpUpdate = new System.Windows.Forms.Button();
this.btnCustomUploaderRegexpAdd = new System.Windows.Forms.Button();
this.btnCustomUploaderRegexpRemove = new System.Windows.Forms.Button();
this.lvCustomUploaderRegexps = new ShareX.HelpersLib.MyListView();
this.lvRegexpsColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.tcCustomUploaderArguments = new System.Windows.Forms.TabControl();
this.tpCustomUploaderArguments = new System.Windows.Forms.TabPage();
this.btnCustomUploaderArgUpdate = new System.Windows.Forms.Button();
@ -412,6 +412,25 @@ private void InitializeComponent()
this.cbUpleaInstantDownloadEnabled = new System.Windows.Forms.CheckBox();
this.cbUpleaIsPremium = new System.Windows.Forms.CheckBox();
this.txtUpleaEmailAddress = new System.Windows.Forms.TextBox();
this.tpPlik = new System.Windows.Forms.TabPage();
this.gpPlikSettings = new System.Windows.Forms.GroupBox();
this.cbPlikOneShot = new System.Windows.Forms.CheckBox();
this.txtPlikComment = new System.Windows.Forms.TextBox();
this.cbPlikComment = new System.Windows.Forms.CheckBox();
this.cbPlikRemovable = new System.Windows.Forms.CheckBox();
this.gpPlikLoginCredentials = new System.Windows.Forms.GroupBox();
this.nudPlikTTL = new System.Windows.Forms.NumericUpDown();
this.cbxPlikTTLUnit = new System.Windows.Forms.ComboBox();
this.lblPlikTTL = new System.Windows.Forms.Label();
this.txtPlikURL = new System.Windows.Forms.TextBox();
this.lblPlikURL = new System.Windows.Forms.Label();
this.cbPlikIsSecured = new System.Windows.Forms.CheckBox();
this.lblPlikAPIKey = new System.Windows.Forms.Label();
this.txtPlikAPIKey = new System.Windows.Forms.TextBox();
this.lblPlikPassword = new System.Windows.Forms.Label();
this.lblPlikUsername = new System.Windows.Forms.Label();
this.txtPlikPassword = new System.Windows.Forms.TextBox();
this.txtPlikLogin = new System.Windows.Forms.TextBox();
this.tpSharedFolder = new System.Windows.Forms.TabPage();
this.lblSharedFolderFiles = new System.Windows.Forms.Label();
this.lblSharedFolderText = new System.Windows.Forms.Label();
@ -436,25 +455,6 @@ private void InitializeComponent()
this.nudEmailSmtpPort = new System.Windows.Forms.NumericUpDown();
this.lblEmailSmtpPort = new System.Windows.Forms.Label();
this.txtEmailDefaultSubject = new System.Windows.Forms.TextBox();
this.tpPlik = new System.Windows.Forms.TabPage();
this.gpPlikSettings = new System.Windows.Forms.GroupBox();
this.cbPlikOneShot = new System.Windows.Forms.CheckBox();
this.txtPlikComment = new System.Windows.Forms.TextBox();
this.cbPlikComment = new System.Windows.Forms.CheckBox();
this.cbPlikRemovable = new System.Windows.Forms.CheckBox();
this.gpPlikLoginCredentials = new System.Windows.Forms.GroupBox();
this.nudPlikTTL = new System.Windows.Forms.NumericUpDown();
this.cbxPlikTTLUnit = new System.Windows.Forms.ComboBox();
this.lblPlikTTL = new System.Windows.Forms.Label();
this.txtPlikURL = new System.Windows.Forms.TextBox();
this.lblPlikURL = new System.Windows.Forms.Label();
this.cbPlikIsSecured = new System.Windows.Forms.CheckBox();
this.lblPlikAPIKey = new System.Windows.Forms.Label();
this.txtPlikAPIKey = new System.Windows.Forms.TextBox();
this.lblPlikPassword = new System.Windows.Forms.Label();
this.lblPlikUsername = new System.Windows.Forms.Label();
this.txtPlikPassword = new System.Windows.Forms.TextBox();
this.txtPlikLogin = new System.Windows.Forms.TextBox();
this.btnCopyShowFiles = new System.Windows.Forms.Button();
this.tpTextUploaders = new System.Windows.Forms.TabPage();
this.tcTextUploaders = new System.Windows.Forms.TabControl();
@ -479,6 +479,8 @@ private void InitializeComponent()
this.lblPaste_eeUserAPIKey = new System.Windows.Forms.Label();
this.txtPaste_eeUserAPIKey = new System.Windows.Forms.TextBox();
this.tpGist = new System.Windows.Forms.TabPage();
this.lblGistCustomURL = new System.Windows.Forms.Label();
this.txtGistCustomURL = new System.Windows.Forms.TextBox();
this.cbGistUseRawURL = new System.Windows.Forms.CheckBox();
this.cbGistPublishPublic = new System.Windows.Forms.CheckBox();
this.oAuth2Gist = new ShareX.UploadersLib.OAuthControl();
@ -591,14 +593,15 @@ private void InitializeComponent()
this.lblWidthHint = new System.Windows.Forms.Label();
this.ttlvMain = new ShareX.HelpersLib.TabToListView();
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
this.lblGistOAuthInfo = new System.Windows.Forms.Label();
this.tpOtherUploaders.SuspendLayout();
this.tcOtherUploaders.SuspendLayout();
this.tpTwitter.SuspendLayout();
this.tpCustomUploaders.SuspendLayout();
this.tcCustomUploaderResponseParse.SuspendLayout();
this.tpCustomUploaderRegexParse.SuspendLayout();
this.tpCustomUploaderJsonParse.SuspendLayout();
this.tpCustomUploaderXmlParse.SuspendLayout();
this.tpCustomUploaderRegexParse.SuspendLayout();
this.tcCustomUploaderArguments.SuspendLayout();
this.tpCustomUploaderArguments.SuspendLayout();
this.tpCustomUploaderHeaders.SuspendLayout();
@ -648,13 +651,13 @@ private void InitializeComponent()
this.tpUplea.SuspendLayout();
this.gbUpleaLoginCredentials.SuspendLayout();
this.gbUpleaUserInformation.SuspendLayout();
this.tpSharedFolder.SuspendLayout();
this.tpEmail.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudEmailSmtpPort)).BeginInit();
this.tpPlik.SuspendLayout();
this.gpPlikSettings.SuspendLayout();
this.gpPlikLoginCredentials.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudPlikTTL)).BeginInit();
this.tpSharedFolder.SuspendLayout();
this.tpEmail.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudEmailSmtpPort)).BeginInit();
this.tpTextUploaders.SuspendLayout();
this.tcTextUploaders.SuspendLayout();
this.tpPastebin.SuspendLayout();
@ -873,81 +876,6 @@ private void InitializeComponent()
this.tcCustomUploaderResponseParse.Name = "tcCustomUploaderResponseParse";
this.tcCustomUploaderResponseParse.SelectedIndex = 0;
//
// tpCustomUploaderRegexParse
//
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexHelp);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexAddSyntax);
this.tpCustomUploaderRegexParse.Controls.Add(this.txtCustomUploaderRegexp);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexpUpdate);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexpAdd);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexpRemove);
this.tpCustomUploaderRegexParse.Controls.Add(this.lvCustomUploaderRegexps);
resources.ApplyResources(this.tpCustomUploaderRegexParse, "tpCustomUploaderRegexParse");
this.tpCustomUploaderRegexParse.Name = "tpCustomUploaderRegexParse";
this.tpCustomUploaderRegexParse.UseVisualStyleBackColor = true;
//
// btnCustomUploaderRegexHelp
//
resources.ApplyResources(this.btnCustomUploaderRegexHelp, "btnCustomUploaderRegexHelp");
this.btnCustomUploaderRegexHelp.Name = "btnCustomUploaderRegexHelp";
this.btnCustomUploaderRegexHelp.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexHelp.Click += new System.EventHandler(this.btnCustomUploaderRegexHelp_Click);
//
// btnCustomUploaderRegexAddSyntax
//
resources.ApplyResources(this.btnCustomUploaderRegexAddSyntax, "btnCustomUploaderRegexAddSyntax");
this.btnCustomUploaderRegexAddSyntax.Name = "btnCustomUploaderRegexAddSyntax";
this.btnCustomUploaderRegexAddSyntax.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexAddSyntax.Click += new System.EventHandler(this.btnCustomUploaderRegexAddSyntax_Click);
//
// txtCustomUploaderRegexp
//
resources.ApplyResources(this.txtCustomUploaderRegexp, "txtCustomUploaderRegexp");
this.txtCustomUploaderRegexp.Name = "txtCustomUploaderRegexp";
//
// btnCustomUploaderRegexpUpdate
//
resources.ApplyResources(this.btnCustomUploaderRegexpUpdate, "btnCustomUploaderRegexpUpdate");
this.btnCustomUploaderRegexpUpdate.Name = "btnCustomUploaderRegexpUpdate";
this.btnCustomUploaderRegexpUpdate.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexpUpdate.Click += new System.EventHandler(this.btnCustomUploaderRegexpEdit_Click);
//
// btnCustomUploaderRegexpAdd
//
resources.ApplyResources(this.btnCustomUploaderRegexpAdd, "btnCustomUploaderRegexpAdd");
this.btnCustomUploaderRegexpAdd.Name = "btnCustomUploaderRegexpAdd";
this.btnCustomUploaderRegexpAdd.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexpAdd.Click += new System.EventHandler(this.btnCustomUploaderRegexpAdd_Click);
//
// btnCustomUploaderRegexpRemove
//
resources.ApplyResources(this.btnCustomUploaderRegexpRemove, "btnCustomUploaderRegexpRemove");
this.btnCustomUploaderRegexpRemove.Name = "btnCustomUploaderRegexpRemove";
this.btnCustomUploaderRegexpRemove.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexpRemove.Click += new System.EventHandler(this.btnCustomUploaderRegexpRemove_Click);
//
// lvCustomUploaderRegexps
//
this.lvCustomUploaderRegexps.AllowDrop = true;
this.lvCustomUploaderRegexps.AllowItemDrag = true;
this.lvCustomUploaderRegexps.AutoFillColumn = true;
this.lvCustomUploaderRegexps.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.lvRegexpsColumn});
this.lvCustomUploaderRegexps.FullRowSelect = true;
this.lvCustomUploaderRegexps.GridLines = true;
this.lvCustomUploaderRegexps.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
this.lvCustomUploaderRegexps.HideSelection = false;
resources.ApplyResources(this.lvCustomUploaderRegexps, "lvCustomUploaderRegexps");
this.lvCustomUploaderRegexps.MultiSelect = false;
this.lvCustomUploaderRegexps.Name = "lvCustomUploaderRegexps";
this.lvCustomUploaderRegexps.UseCompatibleStateImageBehavior = false;
this.lvCustomUploaderRegexps.View = System.Windows.Forms.View.Details;
this.lvCustomUploaderRegexps.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderRegexps_SelectedIndexChanged);
//
// lvRegexpsColumn
//
resources.ApplyResources(this.lvRegexpsColumn, "lvRegexpsColumn");
//
// tpCustomUploaderJsonParse
//
this.tpCustomUploaderJsonParse.Controls.Add(this.btnCustomUploaderJsonAddSyntax);
@ -1030,6 +958,81 @@ private void InitializeComponent()
this.txtCustomUploaderXPath.Name = "txtCustomUploaderXPath";
this.txtCustomUploaderXPath.TextChanged += new System.EventHandler(this.txtCustomUploaderXPath_TextChanged);
//
// tpCustomUploaderRegexParse
//
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexHelp);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexAddSyntax);
this.tpCustomUploaderRegexParse.Controls.Add(this.txtCustomUploaderRegexp);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexpUpdate);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexpAdd);
this.tpCustomUploaderRegexParse.Controls.Add(this.btnCustomUploaderRegexpRemove);
this.tpCustomUploaderRegexParse.Controls.Add(this.lvCustomUploaderRegexps);
resources.ApplyResources(this.tpCustomUploaderRegexParse, "tpCustomUploaderRegexParse");
this.tpCustomUploaderRegexParse.Name = "tpCustomUploaderRegexParse";
this.tpCustomUploaderRegexParse.UseVisualStyleBackColor = true;
//
// btnCustomUploaderRegexHelp
//
resources.ApplyResources(this.btnCustomUploaderRegexHelp, "btnCustomUploaderRegexHelp");
this.btnCustomUploaderRegexHelp.Name = "btnCustomUploaderRegexHelp";
this.btnCustomUploaderRegexHelp.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexHelp.Click += new System.EventHandler(this.btnCustomUploaderRegexHelp_Click);
//
// btnCustomUploaderRegexAddSyntax
//
resources.ApplyResources(this.btnCustomUploaderRegexAddSyntax, "btnCustomUploaderRegexAddSyntax");
this.btnCustomUploaderRegexAddSyntax.Name = "btnCustomUploaderRegexAddSyntax";
this.btnCustomUploaderRegexAddSyntax.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexAddSyntax.Click += new System.EventHandler(this.btnCustomUploaderRegexAddSyntax_Click);
//
// txtCustomUploaderRegexp
//
resources.ApplyResources(this.txtCustomUploaderRegexp, "txtCustomUploaderRegexp");
this.txtCustomUploaderRegexp.Name = "txtCustomUploaderRegexp";
//
// btnCustomUploaderRegexpUpdate
//
resources.ApplyResources(this.btnCustomUploaderRegexpUpdate, "btnCustomUploaderRegexpUpdate");
this.btnCustomUploaderRegexpUpdate.Name = "btnCustomUploaderRegexpUpdate";
this.btnCustomUploaderRegexpUpdate.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexpUpdate.Click += new System.EventHandler(this.btnCustomUploaderRegexpEdit_Click);
//
// btnCustomUploaderRegexpAdd
//
resources.ApplyResources(this.btnCustomUploaderRegexpAdd, "btnCustomUploaderRegexpAdd");
this.btnCustomUploaderRegexpAdd.Name = "btnCustomUploaderRegexpAdd";
this.btnCustomUploaderRegexpAdd.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexpAdd.Click += new System.EventHandler(this.btnCustomUploaderRegexpAdd_Click);
//
// btnCustomUploaderRegexpRemove
//
resources.ApplyResources(this.btnCustomUploaderRegexpRemove, "btnCustomUploaderRegexpRemove");
this.btnCustomUploaderRegexpRemove.Name = "btnCustomUploaderRegexpRemove";
this.btnCustomUploaderRegexpRemove.UseVisualStyleBackColor = true;
this.btnCustomUploaderRegexpRemove.Click += new System.EventHandler(this.btnCustomUploaderRegexpRemove_Click);
//
// lvCustomUploaderRegexps
//
this.lvCustomUploaderRegexps.AllowDrop = true;
this.lvCustomUploaderRegexps.AllowItemDrag = true;
this.lvCustomUploaderRegexps.AutoFillColumn = true;
this.lvCustomUploaderRegexps.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.lvRegexpsColumn});
this.lvCustomUploaderRegexps.FullRowSelect = true;
this.lvCustomUploaderRegexps.GridLines = true;
this.lvCustomUploaderRegexps.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
this.lvCustomUploaderRegexps.HideSelection = false;
resources.ApplyResources(this.lvCustomUploaderRegexps, "lvCustomUploaderRegexps");
this.lvCustomUploaderRegexps.MultiSelect = false;
this.lvCustomUploaderRegexps.Name = "lvCustomUploaderRegexps";
this.lvCustomUploaderRegexps.UseCompatibleStateImageBehavior = false;
this.lvCustomUploaderRegexps.View = System.Windows.Forms.View.Details;
this.lvCustomUploaderRegexps.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderRegexps_SelectedIndexChanged);
//
// lvRegexpsColumn
//
resources.ApplyResources(this.lvRegexpsColumn, "lvRegexpsColumn");
//
// tcCustomUploaderArguments
//
this.tcCustomUploaderArguments.Controls.Add(this.tpCustomUploaderArguments);
@ -3461,6 +3464,155 @@ private void InitializeComponent()
this.txtUpleaEmailAddress.Name = "txtUpleaEmailAddress";
this.txtUpleaEmailAddress.TextChanged += new System.EventHandler(this.txtUpleaEmailAddress_TextChanged);
//
// tpPlik
//
this.tpPlik.Controls.Add(this.gpPlikSettings);
this.tpPlik.Controls.Add(this.gpPlikLoginCredentials);
resources.ApplyResources(this.tpPlik, "tpPlik");
this.tpPlik.Name = "tpPlik";
this.tpPlik.UseVisualStyleBackColor = true;
//
// gpPlikSettings
//
this.gpPlikSettings.Controls.Add(this.cbPlikOneShot);
this.gpPlikSettings.Controls.Add(this.txtPlikComment);
this.gpPlikSettings.Controls.Add(this.cbPlikComment);
this.gpPlikSettings.Controls.Add(this.cbPlikRemovable);
resources.ApplyResources(this.gpPlikSettings, "gpPlikSettings");
this.gpPlikSettings.Name = "gpPlikSettings";
this.gpPlikSettings.TabStop = false;
//
// cbPlikOneShot
//
resources.ApplyResources(this.cbPlikOneShot, "cbPlikOneShot");
this.cbPlikOneShot.Name = "cbPlikOneShot";
this.cbPlikOneShot.UseVisualStyleBackColor = true;
this.cbPlikOneShot.CheckedChanged += new System.EventHandler(this.cbPlikOneShot_CheckedChanged);
//
// txtPlikComment
//
resources.ApplyResources(this.txtPlikComment, "txtPlikComment");
this.txtPlikComment.Name = "txtPlikComment";
this.txtPlikComment.ReadOnly = true;
this.txtPlikComment.TextChanged += new System.EventHandler(this.txtPlikComment_TextChanged);
//
// cbPlikComment
//
resources.ApplyResources(this.cbPlikComment, "cbPlikComment");
this.cbPlikComment.Name = "cbPlikComment";
this.cbPlikComment.UseVisualStyleBackColor = true;
this.cbPlikComment.CheckedChanged += new System.EventHandler(this.cbPlikComment_CheckedChanged);
//
// cbPlikRemovable
//
resources.ApplyResources(this.cbPlikRemovable, "cbPlikRemovable");
this.cbPlikRemovable.Name = "cbPlikRemovable";
this.cbPlikRemovable.UseVisualStyleBackColor = true;
this.cbPlikRemovable.CheckedChanged += new System.EventHandler(this.cbPlikRemovable_CheckedChanged);
//
// gpPlikLoginCredentials
//
this.gpPlikLoginCredentials.Controls.Add(this.nudPlikTTL);
this.gpPlikLoginCredentials.Controls.Add(this.cbxPlikTTLUnit);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikTTL);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikURL);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikURL);
this.gpPlikLoginCredentials.Controls.Add(this.cbPlikIsSecured);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikAPIKey);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikAPIKey);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikPassword);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikUsername);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikPassword);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikLogin);
resources.ApplyResources(this.gpPlikLoginCredentials, "gpPlikLoginCredentials");
this.gpPlikLoginCredentials.Name = "gpPlikLoginCredentials";
this.gpPlikLoginCredentials.TabStop = false;
//
// nudPlikTTL
//
this.nudPlikTTL.DecimalPlaces = 2;
resources.ApplyResources(this.nudPlikTTL, "nudPlikTTL");
this.nudPlikTTL.Maximum = new decimal(new int[] {
1661992960,
1808227885,
5,
0});
this.nudPlikTTL.Name = "nudPlikTTL";
this.nudPlikTTL.Value = new decimal(new int[] {
1,
0,
0,
0});
this.nudPlikTTL.ValueChanged += new System.EventHandler(this.nudPlikTTL_ValueChanged);
//
// cbxPlikTTLUnit
//
this.cbxPlikTTLUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxPlikTTLUnit.FormattingEnabled = true;
this.cbxPlikTTLUnit.Items.AddRange(new object[] {
resources.GetString("cbxPlikTTLUnit.Items"),
resources.GetString("cbxPlikTTLUnit.Items1"),
resources.GetString("cbxPlikTTLUnit.Items2")});
resources.ApplyResources(this.cbxPlikTTLUnit, "cbxPlikTTLUnit");
this.cbxPlikTTLUnit.Name = "cbxPlikTTLUnit";
this.cbxPlikTTLUnit.SelectedIndexChanged += new System.EventHandler(this.cbxPlikTTLUnit_SelectedIndexChanged);
//
// lblPlikTTL
//
resources.ApplyResources(this.lblPlikTTL, "lblPlikTTL");
this.lblPlikTTL.Name = "lblPlikTTL";
//
// txtPlikURL
//
resources.ApplyResources(this.txtPlikURL, "txtPlikURL");
this.txtPlikURL.Name = "txtPlikURL";
this.txtPlikURL.TextChanged += new System.EventHandler(this.txtPlikURL_TextChanged);
//
// lblPlikURL
//
resources.ApplyResources(this.lblPlikURL, "lblPlikURL");
this.lblPlikURL.Name = "lblPlikURL";
//
// cbPlikIsSecured
//
resources.ApplyResources(this.cbPlikIsSecured, "cbPlikIsSecured");
this.cbPlikIsSecured.Name = "cbPlikIsSecured";
this.cbPlikIsSecured.UseVisualStyleBackColor = true;
this.cbPlikIsSecured.CheckedChanged += new System.EventHandler(this.cbPlikIsSecured_CheckedChanged);
//
// lblPlikAPIKey
//
resources.ApplyResources(this.lblPlikAPIKey, "lblPlikAPIKey");
this.lblPlikAPIKey.Name = "lblPlikAPIKey";
//
// txtPlikAPIKey
//
resources.ApplyResources(this.txtPlikAPIKey, "txtPlikAPIKey");
this.txtPlikAPIKey.Name = "txtPlikAPIKey";
this.txtPlikAPIKey.TextChanged += new System.EventHandler(this.txtPlikAPIKey_TextChanged);
//
// lblPlikPassword
//
resources.ApplyResources(this.lblPlikPassword, "lblPlikPassword");
this.lblPlikPassword.Name = "lblPlikPassword";
//
// lblPlikUsername
//
resources.ApplyResources(this.lblPlikUsername, "lblPlikUsername");
this.lblPlikUsername.Name = "lblPlikUsername";
//
// txtPlikPassword
//
resources.ApplyResources(this.txtPlikPassword, "txtPlikPassword");
this.txtPlikPassword.Name = "txtPlikPassword";
this.txtPlikPassword.TextChanged += new System.EventHandler(this.txtPlikPassword_TextChanged);
//
// txtPlikLogin
//
resources.ApplyResources(this.txtPlikLogin, "txtPlikLogin");
this.txtPlikLogin.Name = "txtPlikLogin";
this.txtPlikLogin.TextChanged += new System.EventHandler(this.txtPlikLogin_TextChanged);
//
// tpSharedFolder
//
this.tpSharedFolder.Controls.Add(this.lblSharedFolderFiles);
@ -3636,155 +3788,6 @@ private void InitializeComponent()
this.txtEmailDefaultSubject.Name = "txtEmailDefaultSubject";
this.txtEmailDefaultSubject.TextChanged += new System.EventHandler(this.txtDefaultSubject_TextChanged);
//
// tpPlik
//
this.tpPlik.Controls.Add(this.gpPlikSettings);
this.tpPlik.Controls.Add(this.gpPlikLoginCredentials);
resources.ApplyResources(this.tpPlik, "tpPlik");
this.tpPlik.Name = "tpPlik";
this.tpPlik.UseVisualStyleBackColor = true;
//
// gpPlikSettings
//
this.gpPlikSettings.Controls.Add(this.cbPlikOneShot);
this.gpPlikSettings.Controls.Add(this.txtPlikComment);
this.gpPlikSettings.Controls.Add(this.cbPlikComment);
this.gpPlikSettings.Controls.Add(this.cbPlikRemovable);
resources.ApplyResources(this.gpPlikSettings, "gpPlikSettings");
this.gpPlikSettings.Name = "gpPlikSettings";
this.gpPlikSettings.TabStop = false;
//
// cbPlikOneShot
//
resources.ApplyResources(this.cbPlikOneShot, "cbPlikOneShot");
this.cbPlikOneShot.Name = "cbPlikOneShot";
this.cbPlikOneShot.UseVisualStyleBackColor = true;
this.cbPlikOneShot.CheckedChanged += new System.EventHandler(this.cbPlikOneShot_CheckedChanged);
//
// txtPlikComment
//
resources.ApplyResources(this.txtPlikComment, "txtPlikComment");
this.txtPlikComment.Name = "txtPlikComment";
this.txtPlikComment.ReadOnly = true;
this.txtPlikComment.TextChanged += new System.EventHandler(this.txtPlikComment_TextChanged);
//
// cbPlikComment
//
resources.ApplyResources(this.cbPlikComment, "cbPlikComment");
this.cbPlikComment.Name = "cbPlikComment";
this.cbPlikComment.UseVisualStyleBackColor = true;
this.cbPlikComment.CheckedChanged += new System.EventHandler(this.cbPlikComment_CheckedChanged);
//
// cbPlikRemovable
//
resources.ApplyResources(this.cbPlikRemovable, "cbPlikRemovable");
this.cbPlikRemovable.Name = "cbPlikRemovable";
this.cbPlikRemovable.UseVisualStyleBackColor = true;
this.cbPlikRemovable.CheckedChanged += new System.EventHandler(this.cbPlikRemovable_CheckedChanged);
//
// gpPlikLoginCredentials
//
this.gpPlikLoginCredentials.Controls.Add(this.nudPlikTTL);
this.gpPlikLoginCredentials.Controls.Add(this.cbxPlikTTLUnit);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikTTL);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikURL);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikURL);
this.gpPlikLoginCredentials.Controls.Add(this.cbPlikIsSecured);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikAPIKey);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikAPIKey);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikPassword);
this.gpPlikLoginCredentials.Controls.Add(this.lblPlikUsername);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikPassword);
this.gpPlikLoginCredentials.Controls.Add(this.txtPlikLogin);
resources.ApplyResources(this.gpPlikLoginCredentials, "gpPlikLoginCredentials");
this.gpPlikLoginCredentials.Name = "gpPlikLoginCredentials";
this.gpPlikLoginCredentials.TabStop = false;
//
// nudPlikTTL
//
this.nudPlikTTL.DecimalPlaces = 2;
resources.ApplyResources(this.nudPlikTTL, "nudPlikTTL");
this.nudPlikTTL.Maximum = new decimal(new int[] {
1661992960,
1808227885,
5,
0});
this.nudPlikTTL.Name = "nudPlikTTL";
this.nudPlikTTL.Value = new decimal(new int[] {
1,
0,
0,
0});
this.nudPlikTTL.ValueChanged += new System.EventHandler(this.nudPlikTTL_ValueChanged);
//
// cbxPlikTTLUnit
//
this.cbxPlikTTLUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxPlikTTLUnit.FormattingEnabled = true;
this.cbxPlikTTLUnit.Items.AddRange(new object[] {
resources.GetString("cbxPlikTTLUnit.Items"),
resources.GetString("cbxPlikTTLUnit.Items1"),
resources.GetString("cbxPlikTTLUnit.Items2")});
resources.ApplyResources(this.cbxPlikTTLUnit, "cbxPlikTTLUnit");
this.cbxPlikTTLUnit.Name = "cbxPlikTTLUnit";
this.cbxPlikTTLUnit.SelectedIndexChanged += new System.EventHandler(this.cbxPlikTTLUnit_SelectedIndexChanged);
//
// lblPlikTTL
//
resources.ApplyResources(this.lblPlikTTL, "lblPlikTTL");
this.lblPlikTTL.Name = "lblPlikTTL";
//
// txtPlikURL
//
resources.ApplyResources(this.txtPlikURL, "txtPlikURL");
this.txtPlikURL.Name = "txtPlikURL";
this.txtPlikURL.TextChanged += new System.EventHandler(this.txtPlikURL_TextChanged);
//
// lblPlikURL
//
resources.ApplyResources(this.lblPlikURL, "lblPlikURL");
this.lblPlikURL.Name = "lblPlikURL";
//
// cbPlikIsSecured
//
resources.ApplyResources(this.cbPlikIsSecured, "cbPlikIsSecured");
this.cbPlikIsSecured.Name = "cbPlikIsSecured";
this.cbPlikIsSecured.UseVisualStyleBackColor = true;
this.cbPlikIsSecured.CheckedChanged += new System.EventHandler(this.cbPlikIsSecured_CheckedChanged);
//
// lblPlikAPIKey
//
resources.ApplyResources(this.lblPlikAPIKey, "lblPlikAPIKey");
this.lblPlikAPIKey.Name = "lblPlikAPIKey";
//
// txtPlikAPIKey
//
resources.ApplyResources(this.txtPlikAPIKey, "txtPlikAPIKey");
this.txtPlikAPIKey.Name = "txtPlikAPIKey";
this.txtPlikAPIKey.TextChanged += new System.EventHandler(this.txtPlikAPIKey_TextChanged);
//
// lblPlikPassword
//
resources.ApplyResources(this.lblPlikPassword, "lblPlikPassword");
this.lblPlikPassword.Name = "lblPlikPassword";
//
// lblPlikUsername
//
resources.ApplyResources(this.lblPlikUsername, "lblPlikUsername");
this.lblPlikUsername.Name = "lblPlikUsername";
//
// txtPlikPassword
//
resources.ApplyResources(this.txtPlikPassword, "txtPlikPassword");
this.txtPlikPassword.Name = "txtPlikPassword";
this.txtPlikPassword.TextChanged += new System.EventHandler(this.txtPlikPassword_TextChanged);
//
// txtPlikLogin
//
resources.ApplyResources(this.txtPlikLogin, "txtPlikLogin");
this.txtPlikLogin.Name = "txtPlikLogin";
this.txtPlikLogin.TextChanged += new System.EventHandler(this.txtPlikLogin_TextChanged);
//
// btnCopyShowFiles
//
resources.ApplyResources(this.btnCopyShowFiles, "btnCopyShowFiles");
@ -3953,6 +3956,9 @@ private void InitializeComponent()
//
// tpGist
//
this.tpGist.Controls.Add(this.lblGistOAuthInfo);
this.tpGist.Controls.Add(this.lblGistCustomURL);
this.tpGist.Controls.Add(this.txtGistCustomURL);
this.tpGist.Controls.Add(this.cbGistUseRawURL);
this.tpGist.Controls.Add(this.cbGistPublishPublic);
this.tpGist.Controls.Add(this.oAuth2Gist);
@ -3961,6 +3967,17 @@ private void InitializeComponent()
this.tpGist.Name = "tpGist";
this.tpGist.UseVisualStyleBackColor = true;
//
// lblGistCustomURL
//
resources.ApplyResources(this.lblGistCustomURL, "lblGistCustomURL");
this.lblGistCustomURL.Name = "lblGistCustomURL";
//
// txtGistCustomURL
//
resources.ApplyResources(this.txtGistCustomURL, "txtGistCustomURL");
this.txtGistCustomURL.Name = "txtGistCustomURL";
this.txtGistCustomURL.TextChanged += new System.EventHandler(this.txtGistCustomURL_TextChanged);
//
// cbGistUseRawURL
//
resources.ApplyResources(this.cbGistUseRawURL, "cbGistUseRawURL");
@ -4774,6 +4791,11 @@ private void InitializeComponent()
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
//
// lblGistOAuthInfo
//
resources.ApplyResources(this.lblGistOAuthInfo, "lblGistOAuthInfo");
this.lblGistOAuthInfo.Name = "lblGistOAuthInfo";
//
// UploadersConfigForm
//
resources.ApplyResources(this, "$this");
@ -4793,12 +4815,12 @@ private void InitializeComponent()
this.tpCustomUploaders.ResumeLayout(false);
this.tpCustomUploaders.PerformLayout();
this.tcCustomUploaderResponseParse.ResumeLayout(false);
this.tpCustomUploaderRegexParse.ResumeLayout(false);
this.tpCustomUploaderRegexParse.PerformLayout();
this.tpCustomUploaderJsonParse.ResumeLayout(false);
this.tpCustomUploaderJsonParse.PerformLayout();
this.tpCustomUploaderXmlParse.ResumeLayout(false);
this.tpCustomUploaderXmlParse.PerformLayout();
this.tpCustomUploaderRegexParse.ResumeLayout(false);
this.tpCustomUploaderRegexParse.PerformLayout();
this.tcCustomUploaderArguments.ResumeLayout(false);
this.tpCustomUploaderArguments.ResumeLayout(false);
this.tpCustomUploaderArguments.PerformLayout();
@ -4887,17 +4909,17 @@ private void InitializeComponent()
this.gbUpleaLoginCredentials.PerformLayout();
this.gbUpleaUserInformation.ResumeLayout(false);
this.gbUpleaUserInformation.PerformLayout();
this.tpSharedFolder.ResumeLayout(false);
this.tpSharedFolder.PerformLayout();
this.tpEmail.ResumeLayout(false);
this.tpEmail.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudEmailSmtpPort)).EndInit();
this.tpPlik.ResumeLayout(false);
this.gpPlikSettings.ResumeLayout(false);
this.gpPlikSettings.PerformLayout();
this.gpPlikLoginCredentials.ResumeLayout(false);
this.gpPlikLoginCredentials.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudPlikTTL)).EndInit();
this.tpSharedFolder.ResumeLayout(false);
this.tpSharedFolder.PerformLayout();
this.tpEmail.ResumeLayout(false);
this.tpEmail.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudEmailSmtpPort)).EndInit();
this.tpTextUploaders.ResumeLayout(false);
this.tcTextUploaders.ResumeLayout(false);
this.tpPastebin.ResumeLayout(false);
@ -5506,5 +5528,8 @@ private void InitializeComponent()
private System.Windows.Forms.ComboBox cbxPlikTTLUnit;
private System.Windows.Forms.NumericUpDown nudPlikTTL;
private System.Windows.Forms.Label lblPlikTTL;
private System.Windows.Forms.TextBox txtGistCustomURL;
private System.Windows.Forms.Label lblGistCustomURL;
private System.Windows.Forms.Label lblGistOAuthInfo;
}
}

View file

@ -300,6 +300,7 @@ public void LoadSettings()
cbGistPublishPublic.Checked = Config.GistPublishPublic;
cbGistUseRawURL.Checked = Config.GistRawURL;
txtGistCustomURL.Text = Config.GistCustomURL;
// Upaste
@ -1186,6 +1187,11 @@ private void cbGistUseRawURL_CheckedChanged(object sender, EventArgs e)
Config.GistRawURL = cbGistUseRawURL.Checked;
}
private void txtGistCustomURL_TextChanged(object sender, EventArgs e)
{
Config.GistCustomURL = txtGistCustomURL.Text;
}
#endregion Gist
#region uPaste

View file

@ -4117,13 +4117,13 @@ store.book[0].title</value>
<value>7</value>
</data>
<data name="tpDropbox.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpDropbox.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpDropbox.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpDropbox.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
@ -4249,13 +4249,13 @@ store.book[0].title</value>
<value>3</value>
</data>
<data name="tpOneDrive.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpOneDrive.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpOneDrive.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpOneDrive.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
@ -4501,13 +4501,13 @@ store.book[0].title</value>
<value>7</value>
</data>
<data name="tpGoogleDrive.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpGoogleDrive.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpGoogleDrive.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpGoogleDrive.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
@ -4795,13 +4795,13 @@ store.book[0].title</value>
<value>9</value>
</data>
<data name="tpPuush.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpPuush.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpPuush.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpPuush.TabIndex" type="System.Int32, mscorlib">
<value>26</value>
@ -4990,13 +4990,13 @@ store.book[0].title</value>
<value>5</value>
</data>
<data name="tpBox.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpBox.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpBox.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpBox.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
@ -5407,13 +5407,13 @@ store.book[0].title</value>
<value>16</value>
</data>
<data name="tpAmazonS3.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpAmazonS3.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpAmazonS3.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpAmazonS3.TabIndex" type="System.Int32, mscorlib">
<value>13</value>
@ -5620,13 +5620,13 @@ store.book[0].title</value>
<value>6</value>
</data>
<data name="tpAzureStorage.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpAzureStorage.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpAzureStorage.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpAzureStorage.TabIndex" type="System.Int32, mscorlib">
<value>28</value>
@ -5941,10 +5941,10 @@ store.book[0].title</value>
<value>10</value>
</data>
<data name="tpMega.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpMega.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpMega.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
@ -6289,13 +6289,13 @@ store.book[0].title</value>
<value>11</value>
</data>
<data name="tpOwnCloud.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpOwnCloud.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpOwnCloud.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpOwnCloud.TabIndex" type="System.Int32, mscorlib">
<value>15</value>
@ -6502,13 +6502,13 @@ store.book[0].title</value>
<value>6</value>
</data>
<data name="tpMediaFire.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpMediaFire.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpMediaFire.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpMediaFire.TabIndex" type="System.Int32, mscorlib">
<value>16</value>
@ -6664,13 +6664,13 @@ store.book[0].title</value>
<value>4</value>
</data>
<data name="tpPushbullet.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpPushbullet.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpPushbullet.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpPushbullet.TabIndex" type="System.Int32, mscorlib">
<value>14</value>
@ -6841,13 +6841,13 @@ store.book[0].title</value>
<value>5</value>
</data>
<data name="tpSendSpace.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpSendSpace.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpSendSpace.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpSendSpace.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
@ -7027,13 +7027,13 @@ store.book[0].title</value>
<value>5</value>
</data>
<data name="tpGe_tt.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<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>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpGe_tt.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
@ -7186,13 +7186,13 @@ store.book[0].title</value>
<value>4</value>
</data>
<data name="tpHostr.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpHostr.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpHostr.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpHostr.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
@ -7636,13 +7636,13 @@ store.book[0].title</value>
<value>3</value>
</data>
<data name="tpMinus.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpMinus.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="tpMinus.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpMinus.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
@ -7846,10 +7846,10 @@ store.book[0].title</value>
<value>3</value>
</data>
<data name="tpJira.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>
<value>4, 40</value>
</data>
<data name="tpJira.Size" type="System.Drawing.Size, System.Drawing">
<value>972, 493</value>
<value>972, 475</value>
</data>
<data name="tpJira.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
@ -11689,6 +11689,84 @@ Using an encrypted library disables sharing.</value>
<data name="&gt;&gt;tpPaste_ee.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="lblGistOAuthInfo.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lblGistOAuthInfo.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 59</value>
</data>
<data name="lblGistOAuthInfo.Size" type="System.Drawing.Size, System.Drawing">
<value>299, 13</value>
</data>
<data name="lblGistOAuthInfo.TabIndex" type="System.Int32, mscorlib">
<value>23</value>
</data>
<data name="lblGistOAuthInfo.Text" xml:space="preserve">
<value>OAuth is only working for Github directly (no Github Enterprise)</value>
</data>
<data name="&gt;&gt;lblGistOAuthInfo.Name" xml:space="preserve">
<value>lblGistOAuthInfo</value>
</data>
<data name="&gt;&gt;lblGistOAuthInfo.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;lblGistOAuthInfo.Parent" xml:space="preserve">
<value>tpGist</value>
</data>
<data name="&gt;&gt;lblGistOAuthInfo.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="lblGistCustomURL.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lblGistCustomURL.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lblGistCustomURL.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 327</value>
</data>
<data name="lblGistCustomURL.Size" type="System.Drawing.Size, System.Drawing">
<value>82, 13</value>
</data>
<data name="lblGistCustomURL.TabIndex" type="System.Int32, mscorlib">
<value>22</value>
</data>
<data name="lblGistCustomURL.Text" xml:space="preserve">
<value>Custom domain:</value>
</data>
<data name="&gt;&gt;lblGistCustomURL.Name" xml:space="preserve">
<value>lblGistCustomURL</value>
</data>
<data name="&gt;&gt;lblGistCustomURL.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;lblGistCustomURL.Parent" xml:space="preserve">
<value>tpGist</value>
</data>
<data name="&gt;&gt;lblGistCustomURL.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="txtGistCustomURL.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 343</value>
</data>
<data name="txtGistCustomURL.Size" type="System.Drawing.Size, System.Drawing">
<value>200, 20</value>
</data>
<data name="txtGistCustomURL.TabIndex" type="System.Int32, mscorlib">
<value>21</value>
</data>
<data name="&gt;&gt;txtGistCustomURL.Name" xml:space="preserve">
<value>txtGistCustomURL</value>
</data>
<data name="&gt;&gt;txtGistCustomURL.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;txtGistCustomURL.Parent" xml:space="preserve">
<value>tpGist</value>
</data>
<data name="&gt;&gt;txtGistCustomURL.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="cbGistUseRawURL.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@ -11696,7 +11774,7 @@ Using an encrypted library disables sharing.</value>
<value>NoControl</value>
</data>
<data name="cbGistUseRawURL.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 296</value>
<value>16, 307</value>
</data>
<data name="cbGistUseRawURL.Size" type="System.Drawing.Size, System.Drawing">
<value>90, 17</value>
@ -11717,7 +11795,7 @@ Using an encrypted library disables sharing.</value>
<value>tpGist</value>
</data>
<data name="&gt;&gt;cbGistUseRawURL.ZOrder" xml:space="preserve">
<value>0</value>
<value>3</value>
</data>
<data name="cbGistPublishPublic.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -11726,7 +11804,7 @@ Using an encrypted library disables sharing.</value>
<value>NoControl</value>
</data>
<data name="cbGistPublishPublic.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 272</value>
<value>16, 283</value>
</data>
<data name="cbGistPublishPublic.Size" type="System.Drawing.Size, System.Drawing">
<value>109, 17</value>
@ -11747,13 +11825,13 @@ Using an encrypted library disables sharing.</value>
<value>tpGist</value>
</data>
<data name="&gt;&gt;cbGistPublishPublic.ZOrder" xml:space="preserve">
<value>1</value>
<value>4</value>
</data>
<data name="oAuth2Gist.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="oAuth2Gist.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 64</value>
<value>16, 75</value>
</data>
<data name="oAuth2Gist.Size" type="System.Drawing.Size, System.Drawing">
<value>328, 205</value>
@ -11771,7 +11849,7 @@ Using an encrypted library disables sharing.</value>
<value>tpGist</value>
</data>
<data name="&gt;&gt;oAuth2Gist.ZOrder" xml:space="preserve">
<value>2</value>
<value>5</value>
</data>
<data name="atcGistAccountType.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 16</value>
@ -11792,7 +11870,7 @@ Using an encrypted library disables sharing.</value>
<value>tpGist</value>
</data>
<data name="&gt;&gt;atcGistAccountType.ZOrder" xml:space="preserve">
<value>3</value>
<value>6</value>
</data>
<data name="tpGist.Location" type="System.Drawing.Point, System.Drawing">
<value>4, 22</value>

View file

@ -55,7 +55,8 @@ public override GenericUploader CreateUploader(UploadersConfig config, TaskRefer
return new GitHubGist(oauth)
{
PublicUpload = config.GistPublishPublic,
RawURL = config.GistRawURL
RawURL = config.GistRawURL,
URLAPI = config.GistCustomURL
};
}
@ -64,13 +65,11 @@ public override GenericUploader CreateUploader(UploadersConfig config, TaskRefer
public sealed class GitHubGist : TextUploader, IOAuth2Basic
{
private const string URLAPI = "https://api.github.com/";
private const string URLGists = URLAPI + "gists";
public OAuth2Info AuthInfo { get; private set; }
public bool PublicUpload { get; set; }
public bool RawURL { get; set; }
public string URLAPI { get; set; }
public GitHubGist()
{
@ -134,7 +133,7 @@ public override UploadResult UploadText(string text, string fileName)
string json = JsonConvert.SerializeObject(gistUploadObject);
string url = URLGists;
string url = $"{URLAPI}/gists";
if (AuthInfo != null)
{

View file

@ -107,6 +107,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
public OAuth2Info GistOAuth2Info = null;
public bool GistPublishPublic = false;
public bool GistRawURL = false;
public string GistCustomURL = "https://api.github.com";
// uPaste