some updates

This commit is contained in:
Namhyeon Go 2025-03-31 16:59:56 +09:00
parent b21f967a6a
commit 4372bdb09d
5 changed files with 39 additions and 10 deletions

View File

@ -1,5 +1,4 @@
using System;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
@ -196,7 +195,7 @@ namespace WelsonJS.Launcher
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Program.OpenWebBrowser(ConfigurationManager.AppSettings["RepositoryUrl"]);
Program.OpenWebBrowser(Properties.Resources.RepositoryUrl);
}
private void userdefinedVariablesToolStripMenuItem_Click(object sender, EventArgs e)
@ -246,7 +245,7 @@ namespace WelsonJS.Launcher
{
if (Program.resourceServer == null)
{
Program.resourceServer = new ResourceServer(ConfigurationManager.AppSettings["ResourceServerPrefix"], "editor.html");
Program.resourceServer = new ResourceServer(Properties.Resources.ResourceServerPrefix, "editor.html");
}
if (!Program.resourceServer.IsRunning())
@ -274,7 +273,7 @@ namespace WelsonJS.Launcher
private void openCopilotToolStripMenuItem_Click(object sender, EventArgs e)
{
Program.OpenWebBrowser(ConfigurationManager.AppSettings["CopilotUrl"]);
Program.OpenWebBrowser(Properties.Resources.CopilotUrl);
}
}
}

View File

@ -60,6 +60,15 @@ namespace WelsonJS.Launcher.Properties {
}
}
/// <summary>
/// https://copilot.microsoft.com/과(와) 유사한 지역화된 문자열을 찾습니다.
/// </summary>
internal static string CopilotUrl {
get {
return ResourceManager.GetString("CopilotUrl", resourceCulture);
}
}
/// <summary>
/// (아이콘)과(와) 유사한 System.Drawing.Icon 형식의 지역화된 리소스를 찾습니다.
/// </summary>
@ -159,5 +168,23 @@ namespace WelsonJS.Launcher.Properties {
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// https://github.com/gnh1201/welsonjs과(와) 유사한 지역화된 문자열을 찾습니다.
/// </summary>
internal static string RepositoryUrl {
get {
return ResourceManager.GetString("RepositoryUrl", resourceCulture);
}
}
/// <summary>
/// http://localhost:3000과(와) 유사한 지역화된 문자열을 찾습니다.
/// </summary>
internal static string ResourceServerPrefix {
get {
return ResourceManager.GetString("ResourceServerPrefix", resourceCulture);
}
}
}
}

View File

@ -148,4 +148,13 @@
<data name="icon_start_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_start_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="CopilotUrl" xml:space="preserve">
<value>https://copilot.microsoft.com/</value>
</data>
<data name="RepositoryUrl" xml:space="preserve">
<value>https://github.com/gnh1201/welsonjs</value>
</data>
<data name="ResourceServerPrefix" xml:space="preserve">
<value>http://localhost:3000</value>
</data>
</root>

View File

@ -57,7 +57,6 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="ResourceServerPrefix" value="http://localhost:3000"/>
<add key="RepositoryUrl" value="https://github.com/gnh1201/welsonjs"/>
<add key="CopilotUrl" value="https://copilot.microsoft.com/"/>
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>