Add SPDX headers to all source files

This commit is contained in:
Namhyeon Go 2025-05-25 14:56:37 +09:00
parent bd66105504
commit e4e96d566d
35 changed files with 192 additions and 196 deletions

View File

@ -1,3 +1,6 @@
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

View File

@ -1,5 +1,7 @@
Microsoft Reciprocal License (MS-RL)
SPDX Short identifier: MS-RL
SPDX-License-Identifier: MS-RL
SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
Microsoft Reciprocal License (Ms-RL)
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.

View File

@ -1,4 +1,9 @@
using System;
// EnvForm.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

View File

@ -1,4 +1,9 @@
using Microsoft.Win32;
// GlobalSettingsForm.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using Microsoft.Win32;
using System;
using System.Windows.Forms;

View File

@ -1,4 +1,9 @@
using System.Net;
// IResourceTool.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System.Net;
using System.Threading.Tasks;
namespace WelsonJS.Launcher

View File

@ -1,4 +1,9 @@
using System;
// InstancesForm.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.IO;
using System.Threading.Tasks;
using System.Windows.Forms;

View File

@ -1,3 +1,6 @@
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

View File

@ -1,4 +1,9 @@
using System;
// MainForm.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;

View File

@ -1,4 +1,9 @@
using System;
// Program.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;

View File

@ -1,6 +1,6 @@
// ResourceServer.cs
// A resource server of WelsonJS Editor (WelsonJS.Launcher)
// Namhyeon Go <abuse@catswords.net>
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;

View File

@ -1,4 +1,9 @@
using System;
// CitiQuery.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Net.Http;
using System.Net;
using System.Threading.Tasks;

View File

@ -1,4 +1,9 @@
using Microsoft.Win32;
// Completion.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;

View File

@ -1,4 +1,9 @@
using System;
// DevTools.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;

View File

@ -1,4 +1,9 @@
using System;
// DnsQuery.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;

View File

@ -1,4 +1,9 @@
using System;
// Settings.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;

View File

@ -1,4 +1,9 @@
using System;
// Tfa.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Linq;
using System.Security.Cryptography;
using System.Collections.Generic;

View File

@ -1,4 +1,9 @@
using System.Net;
// Whois.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System.Net;
using System.Threading.Tasks;
using System;
using System.Net.Http;

View File

@ -1,6 +1,8 @@
// FileEventMonitor.cs
// Namhyeon Go <abuse@catswords.net>
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using ClamAV.Net.Client;
using ClamAV.Net.Client.Results;
using Microsoft.Extensions.Logging;

View File

@ -1,5 +1,7 @@
Microsoft Reciprocal License (MS-RL)
SPDX Short identifier: MS-RL
SPDX-License-Identifier: MS-RL
SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
Microsoft Reciprocal License (Ms-RL)
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.

View File

@ -1,4 +1,9 @@
using System;
// FileMatchResult.cs
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
namespace WelsonJS.Service.Model
{

View File

@ -1,4 +1,9 @@
using System;
// ScreenMatchResult.cs
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Drawing;
namespace WelsonJS.Service

View File

@ -1,4 +1,9 @@
using Microsoft.Extensions.Logging;
// Program.cs
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using Microsoft.Extensions.Logging;
using System;
using System.IO;
using System.ServiceProcess;

View File

@ -1,4 +1,9 @@
using System;
// ProjectInstaller.cs
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;

View File

@ -1,6 +1,8 @@
// ScreenMatching.cs
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
// https://catswords-oss.rdbl.io/5719744820/8803957194
//
using System;
using System.Collections.Generic;
using System.Diagnostics;

View File

@ -1,29 +1,8 @@
/*
* WelsonJS.Service
*
* filename:
* ServiceMain.cs
*
* description:
* WelsonJS - Build a Windows app on the Windows built-in JavaScript engine
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
*
* author:
* Namhyeon Go <abuse@catswords.net>
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
* references:
* - https://learn.microsoft.com/en-us/dotnet/framework/windows-services/how-to-debug-windows-service-applications
* - https://stackoverflow.com/questions/6490979/how-to-pass-parameters-to-windows-service
* - https://stackoverflow.com/questions/42812333/pass-an-argument-to-a-windows-service-at-automatic-startup
* - https://learn.microsoft.com/ko-kr/windows/win32/api/winuser/nf-winuser-getsystemmetrics
*/
// ServiceMain.cs
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.ServiceProcess;
using System.Timers;
@ -31,7 +10,6 @@ using System.Runtime.InteropServices;
using MSScriptControl;
using System.IO;
using System.Collections.Generic;
using WelsonJS.TinyINIController;
using System.Collections;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
@ -494,3 +472,14 @@ namespace WelsonJS.Service
}
}
}
/* References:
* [1] MSDN - How to: Debug Windows Service Applications
* https://learn.microsoft.com/en-us/dotnet/framework/windows-services/how-to-debug-windows-service-applications
* [2] StackOverflow - How to pass parameters to Windows Service?
* https://stackoverflow.com/questions/6490979/how-to-pass-parameters-to-windows-service
* [3] StackOverflow - Pass an argument to a Windows Service at automatic startup
* https://stackoverflow.com/questions/42812333/pass-an-argument-to-a-windows-service-at-automatic-startup
* [4] MSDN - GetSystemMetrics function (winuser.h)
* https://learn.microsoft.com/ko-kr/windows/win32/api/winuser/nf-winuser-getsystemmetrics
*/

View File

@ -1,4 +1,9 @@
using System.Collections.Generic;
// UserVariables.cs
// SPDX-License-Identifier: MS-RL
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System.Collections.Generic;
using System;
using System.IO;
using System.ServiceProcess;

View File

@ -1,25 +1,8 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* BitmapUtils.cs
*
* description:
* WelsonJS - Build a Windows app on the Windows built-in JavaScript engine
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
*
* author:
* Namhyeon Go <abuse@catswords.net>
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
*/
// BitmapUtils.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Drawing;
using System.Drawing.Imaging;

View File

@ -1,12 +1,14 @@
using System;
// iniFile.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
// TinyINIController
// Original source code: https://github.com/niklyadov/tiny-ini-file-class
namespace WelsonJS.TinyINIController
namespace WelsonJS
{
public class IniFile
{
@ -72,3 +74,8 @@ namespace WelsonJS.TinyINIController
}
}
}
/* References:
* [1] GitHub - A simple class on C# for read/write ini files, niklyadov/tiny-ini-file-class
* https://github.com/niklyadov/tiny-ini-file-class
*/

View File

@ -1,3 +1,6 @@
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

View File

@ -1,24 +1,8 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* NamedSharedMemory.cs
*
* description:
* WelsonJS - Build a Windows app on the Windows built-in JavaScript engine
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
*
* author:
* Namhyeon Go <abuse@catswords.net>
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
*/
// NamedSharedMemory.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

View File

@ -1,24 +1,8 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* ProcessUtils.cs
*
* description:
* WelsonJS - Build a Windows app on the Windows built-in JavaScript engine
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
*
* author:
* Namhyeon Go <abuse@catswords.net>
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
*/
// ProcessUtils.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;

View File

@ -1,24 +1,8 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* Prompt.cs
*
* description:
* WelsonJS - Build a Windows app on the Windows built-in JavaScript engine
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
*
* author:
* Namhyeon Go <abuse@catswords.net>
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
*/
// Prompt.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System.Windows.Forms;
namespace WelsonJS

View File

@ -1,34 +1,8 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* Toolkit.cs
*
* description:
* WelsonJS - Build a Windows app on the Windows built-in JavaScript engine
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
*
* author:
* Namhyeon Go <abuse@catswords.net>
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
* references:
* - https://stackoverflow.com/questions/9004352/call-a-function-in-a-console-app-from-vbscript
* - https://stackoverflow.com/questions/9501022/cannot-create-an-object-from-a-active-x-component
* - https://stackoverflow.com/questions/13547639/return-window-handle-by-its-name-title
* - https://blog.naver.com/zlatmgpdjtiq/222016292758
* - https://stackoverflow.com/questions/5427020/prompt-dialog-in-windows-forms
* - https://stackoverflow.com/questions/31856473/how-to-send-an-enter-press-to-another-application-in-wpf
* - https://stackoverflow.com/questions/11365605/c-sharp-postmessage-syntax-trying-to-post-a-wm-char-to-another-applications-win
* - https://docs.microsoft.com/ko-kr/windows/win32/inputdev/virtual-key-codes?redirectedfrom=MSDN
*/
// Toolkit.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Runtime.InteropServices;
using System.Text;

View File

@ -99,7 +99,7 @@
<Compile Include="ProcessUtils.cs" />
<Compile Include="Prompt.cs" />
<Compile Include="Serialization\KVSerializer.cs" />
<Compile Include="TinyINIController\IniFile.cs" />
<Compile Include="IniFile.cs" />
<Compile Include="Toolkit.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Window.cs" />

View File

@ -1,24 +1,8 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* Window.cs
*
* description:
* WelsonJS - Build a Windows app on the Windows built-in JavaScript engine
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
*
* author:
* Namhyeon Go <abuse@catswords.net>
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
*/
// Window.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;