Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YRP2Video
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JoyJ
YRP2Video
Commits
2e537f49
Commit
2e537f49
authored
Feb 15, 2021
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add url in setting
parent
72cb05f0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
3 deletions
+54
-3
YRP2Video/App.config
YRP2Video/App.config
+3
-0
YRP2Video/Properties/Settings.Designer.cs
YRP2Video/Properties/Settings.Designer.cs
+12
-0
YRP2Video/Properties/Settings.settings
YRP2Video/Properties/Settings.settings
+3
-0
YRP2Video/YRP2Video.Designer.cs
YRP2Video/YRP2Video.Designer.cs
+25
-2
YRP2Video/YRP2Video.cs
YRP2Video/YRP2Video.cs
+11
-1
No files found.
YRP2Video/App.config
View file @
2e537f49
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
<
setting
name
=
"AuthKey"
serializeAs
=
"String"
>
<
setting
name
=
"AuthKey"
serializeAs
=
"String"
>
<
value
/>
<
value
/>
</
setting
>
</
setting
>
<
setting
name
=
"ApiUrl"
serializeAs
=
"String"
>
<
value
>
https
://
yunomi
.
mycard
.
moe
</
value
>
</
setting
>
</
YRP2Video
.
Properties
.
Settings
>
</
YRP2Video
.
Properties
.
Settings
>
</
userSettings
>
</
userSettings
>
</
configuration
>
</
configuration
>
\ No newline at end of file
YRP2Video/Properties/Settings.Designer.cs
View file @
2e537f49
...
@@ -34,5 +34,17 @@ namespace YRP2Video.Properties {
...
@@ -34,5 +34,17 @@ namespace YRP2Video.Properties {
this
[
"AuthKey"
]
=
value
;
this
[
"AuthKey"
]
=
value
;
}
}
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
"https://yunomi.mycard.moe"
)]
public
string
ApiUrl
{
get
{
return
((
string
)(
this
[
"ApiUrl"
]));
}
set
{
this
[
"ApiUrl"
]
=
value
;
}
}
}
}
}
}
YRP2Video/Properties/Settings.settings
View file @
2e537f49
...
@@ -5,5 +5,8 @@
...
@@ -5,5 +5,8 @@
<Setting
Name=
"AuthKey"
Type=
"System.String"
Scope=
"User"
>
<Setting
Name=
"AuthKey"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
<Value
Profile=
"(Default)"
/>
</Setting>
</Setting>
<Setting
Name=
"ApiUrl"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
>
https://yunomi.mycard.moe
</Value>
</Setting>
</Settings>
</Settings>
</SettingsFile>
</SettingsFile>
\ No newline at end of file
YRP2Video/YRP2Video.Designer.cs
View file @
2e537f49
...
@@ -42,6 +42,8 @@
...
@@ -42,6 +42,8 @@
this
.
fbdSave
=
new
System
.
Windows
.
Forms
.
FolderBrowserDialog
();
this
.
fbdSave
=
new
System
.
Windows
.
Forms
.
FolderBrowserDialog
();
this
.
txtAuthKey
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtAuthKey
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtApiUrl
=
new
System
.
Windows
.
Forms
.
TextBox
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvData
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvData
)).
BeginInit
();
this
.
statusStrip1
.
SuspendLayout
();
this
.
statusStrip1
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
...
@@ -53,12 +55,12 @@
...
@@ -53,12 +55,12 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
dgvData
.
AutoSizeColumnsMode
=
System
.
Windows
.
Forms
.
DataGridViewAutoSizeColumnsMode
.
Fill
;
this
.
dgvData
.
AutoSizeColumnsMode
=
System
.
Windows
.
Forms
.
DataGridViewAutoSizeColumnsMode
.
Fill
;
this
.
dgvData
.
ColumnHeadersHeightSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnHeadersHeightSizeMode
.
AutoSize
;
this
.
dgvData
.
ColumnHeadersHeightSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnHeadersHeightSizeMode
.
AutoSize
;
this
.
dgvData
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
12
);
this
.
dgvData
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
37
);
this
.
dgvData
.
Name
=
"dgvData"
;
this
.
dgvData
.
Name
=
"dgvData"
;
this
.
dgvData
.
ReadOnly
=
true
;
this
.
dgvData
.
ReadOnly
=
true
;
this
.
dgvData
.
RowTemplate
.
Height
=
23
;
this
.
dgvData
.
RowTemplate
.
Height
=
23
;
this
.
dgvData
.
SelectionMode
=
System
.
Windows
.
Forms
.
DataGridViewSelectionMode
.
FullRowSelect
;
this
.
dgvData
.
SelectionMode
=
System
.
Windows
.
Forms
.
DataGridViewSelectionMode
.
FullRowSelect
;
this
.
dgvData
.
Size
=
new
System
.
Drawing
.
Size
(
960
,
509
);
this
.
dgvData
.
Size
=
new
System
.
Drawing
.
Size
(
960
,
484
);
this
.
dgvData
.
TabIndex
=
3
;
this
.
dgvData
.
TabIndex
=
3
;
//
//
// btnRefresh
// btnRefresh
...
@@ -158,12 +160,31 @@
...
@@ -158,12 +160,31 @@
this
.
label1
.
TabIndex
=
10
;
this
.
label1
.
TabIndex
=
10
;
this
.
label1
.
Text
=
"认证秘钥:"
;
this
.
label1
.
Text
=
"认证秘钥:"
;
//
//
// label2
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
13
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
12
);
this
.
label2
.
TabIndex
=
12
;
this
.
label2
.
Text
=
"API网址:"
;
//
// txtApiUrl
//
this
.
txtApiUrl
.
Location
=
new
System
.
Drawing
.
Point
(
83
,
10
);
this
.
txtApiUrl
.
Name
=
"txtApiUrl"
;
this
.
txtApiUrl
.
Size
=
new
System
.
Drawing
.
Size
(
209
,
21
);
this
.
txtApiUrl
.
TabIndex
=
11
;
this
.
txtApiUrl
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtApiUrl_TextChanged
);
//
// YRP2Video
// YRP2Video
//
//
this
.
AllowDrop
=
true
;
this
.
AllowDrop
=
true
;
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
984
,
603
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
984
,
603
);
this
.
Controls
.
Add
(
this
.
label2
);
this
.
Controls
.
Add
(
this
.
txtApiUrl
);
this
.
Controls
.
Add
(
this
.
label1
);
this
.
Controls
.
Add
(
this
.
label1
);
this
.
Controls
.
Add
(
this
.
txtAuthKey
);
this
.
Controls
.
Add
(
this
.
txtAuthKey
);
this
.
Controls
.
Add
(
this
.
btnDelete
);
this
.
Controls
.
Add
(
this
.
btnDelete
);
...
@@ -200,6 +221,8 @@
...
@@ -200,6 +221,8 @@
private
System
.
Windows
.
Forms
.
FolderBrowserDialog
fbdSave
;
private
System
.
Windows
.
Forms
.
FolderBrowserDialog
fbdSave
;
private
System
.
Windows
.
Forms
.
TextBox
txtAuthKey
;
private
System
.
Windows
.
Forms
.
TextBox
txtAuthKey
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
TextBox
txtApiUrl
;
}
}
}
}
YRP2Video/YRP2Video.cs
View file @
2e537f49
...
@@ -126,6 +126,7 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
...
@@ -126,6 +126,7 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
}
}
dgvData
.
DataSource
=
table
;
dgvData
.
DataSource
=
table
;
txtAuthKey
.
Text
=
Properties
.
Settings
.
Default
.
AuthKey
;
txtAuthKey
.
Text
=
Properties
.
Settings
.
Default
.
AuthKey
;
txtApiUrl
.
Text
=
Properties
.
Settings
.
Default
.
ApiUrl
;
init
=
true
;
init
=
true
;
}
}
...
@@ -395,7 +396,7 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
...
@@ -395,7 +396,7 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
{
{
continue
;
continue
;
}
}
string
url
=
$"
https://yunomi.mycard.moe
/video/task?id=
{
id
}
"
;
string
url
=
$"
{
txtApiUrl
.
Text
}
/video/task?id=
{
id
}
"
;
string
json
=
this
.
HttpGet
(
url
);
string
json
=
this
.
HttpGet
(
url
);
DataRow
row
=
table
.
Rows
[
i
];
DataRow
row
=
table
.
Rows
[
i
];
this
.
RefreshRow
(
ref
row
,
json
);
this
.
RefreshRow
(
ref
row
,
json
);
...
@@ -470,6 +471,15 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
...
@@ -470,6 +471,15 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
Properties
.
Settings
.
Default
.
Save
();
Properties
.
Settings
.
Default
.
Save
();
}
}
}
}
private
void
txtApiUrl_TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
init
)
{
Properties
.
Settings
.
Default
.
ApiUrl
=
txtApiUrl
.
Text
;
Properties
.
Settings
.
Default
.
Save
();
}
}
}
}
public
class
Replay
public
class
Replay
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment