Compare commits

..

322 Commits

Author SHA1 Message Date
Łukasz Domeradzki
d3dbfc5e9e Closes #3262 2024-08-03 15:36:45 +02:00
renovate[bot]
30c84efb57 chore(deps): update asf-ui digest to 2985427 2024-08-03 01:40:41 +00:00
renovate[bot]
3ba8602156 chore(deps): update actions/upload-artifact action to v4.3.5 2024-08-02 19:48:01 +00:00
renovate[bot]
9d2aacab58 chore(deps): update swashbuckle-aspnetcore monorepo to v6.7.0 2024-08-01 19:50:26 +00:00
Łukasz Domeradzki
c7b9751e0e Bump, remove obsolete prop 2024-08-01 19:18:35 +02:00
renovate[bot]
9cfbc35ac4 chore(deps): update asf-ui digest to 540ac67 2024-07-31 22:58:09 +00:00
ArchiBot
ba618dc2b6 Automatic translations update 2024-07-31 02:01:32 +00:00
renovate[bot]
f3c870b8c7 chore(deps): update actions/attest-build-provenance action to v1.4.0 2024-07-30 22:15:50 +00:00
renovate[bot]
46ec3e51b0 chore(deps): update asf-ui digest to 745b067 2024-07-30 06:48:35 +00:00
ArchiBot
4ca93c3c45 Automatic translations update 2024-07-30 02:12:35 +00:00
renovate[bot]
7ab499e2c0 chore(deps): update docker/setup-buildx-action action to v3.6.1 2024-07-29 18:19:14 +00:00
renovate[bot]
102f3de120 chore(deps): update wiki digest to d8213b7 2024-07-29 15:49:53 +00:00
renovate[bot]
01fd6f3ad6 chore(deps): update asf-ui digest to 07ceace 2024-07-29 03:52:32 +00:00
ArchiBot
cca465d30d Automatic translations update 2024-07-29 02:14:46 +00:00
renovate[bot]
dc7f2acc50 chore(deps): update wiki digest to d2c0479 2024-07-28 17:25:29 +00:00
renovate[bot]
79a15ad781 chore(deps): update asf-ui digest to a138b8c 2024-07-27 14:45:36 +00:00
Łukasz Domeradzki
4e6905d562 Bump 2024-07-27 16:44:55 +02:00
renovate[bot]
03a5853a91 chore(deps): update github/codeql-action action to v3.25.15 2024-07-26 19:15:33 +00:00
renovate[bot]
f3fae74bde chore(deps): update crowdin/github-action action to v2.1.1 2024-07-26 15:05:06 +00:00
Łukasz Domeradzki
8bbff388d2 Misc fix against case-sensitivity for 2fafinalized 2024-07-26 16:20:31 +02:00
renovate[bot]
40d5fe75e7 chore(deps): update asf-ui digest to 74f0f71 2024-07-26 10:44:35 +00:00
ArchiBot
cdbabc0a0b Automatic translations update 2024-07-26 02:12:12 +00:00
renovate[bot]
97ecfc03c8 chore(deps): update github/codeql-action action to v3.25.14 2024-07-25 10:46:48 +00:00
ArchiBot
70d35bfeb8 Automatic translations update 2024-07-25 02:12:20 +00:00
renovate[bot]
a11866c544 chore(deps): update asf-ui digest to 62a5689 2024-07-24 04:31:10 +00:00
ArchiBot
5aaf5476e0 Automatic translations update 2024-07-24 02:11:50 +00:00
renovate[bot]
7e78922056 chore(deps): update crowdin/github-action action to v2.1.0 2024-07-23 12:47:54 +00:00
renovate[bot]
e7dad02c63 chore(deps): update dependency microsoft.identitymodel.jsonwebtokens to v8.0.1 2024-07-23 01:16:03 +00:00
renovate[bot]
da5fb391a4 chore(deps): update docker/setup-buildx-action action to v3.5.0 2024-07-22 17:54:28 +00:00
renovate[bot]
3b48b79997 chore(deps): update docker/login-action action to v3.3.0 2024-07-22 14:38:23 +00:00
renovate[bot]
30e887a85b chore(deps): update docker/build-push-action action to v6.5.0 2024-07-22 11:18:24 +00:00
Łukasz Domeradzki
c737c792f6 Misc SK2 improvements 2024-07-21 18:09:47 +02:00
renovate[bot]
64f4853b13 chore(deps): update dependency steamkit2 to v3.0.0-alpha.2 2024-07-21 11:22:10 +00:00
Łukasz Domeradzki
0c890e590c Misc 2024-07-20 01:21:06 +02:00
Łukasz Domeradzki
b664b85495 Remove ConfigureAwaitChecker.Analyzer
Appropriate detecion is now available in Roslyn
2024-07-20 01:01:45 +02:00
renovate[bot]
3894a6a2d1 chore(deps): update github/codeql-action action to v3.25.13 2024-07-19 16:11:56 +00:00
renovate[bot]
ae8224b734 chore(deps): update docker/build-push-action action to v6.4.1 2024-07-17 11:06:17 +00:00
renovate[bot]
bd5739d7a0 chore(deps): update asf-ui digest to a1d6bea 2024-07-17 01:52:28 +00:00
renovate[bot]
3a8a8efbd1 chore(deps): update dependency mstest to v3.5.0 2024-07-16 20:39:31 +00:00
renovate[bot]
4fc1f4c60e chore(deps): update dependency microsoft.identitymodel.jsonwebtokens to v8 (#3252)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-16 12:58:46 +02:00
renovate[bot]
079bbc8e78 chore(deps): update asf-ui digest to bd5cdf0 2024-07-16 04:30:34 +00:00
ArchiBot
70bfbd7d8e Automatic translations update 2024-07-16 02:12:58 +00:00
renovate[bot]
f0c7222055 chore(deps): update docker/build-push-action action to v6.4.0 2024-07-15 14:33:35 +00:00
Łukasz Domeradzki
7b1b3d4d8e Misc 2024-07-14 21:19:08 +02:00
Łukasz Domeradzki
7d6b4b7a23 Bump 2024-07-14 21:14:11 +02:00
Łukasz Domeradzki
a4d0b7d1cb Merge branch 'main' of https://github.com/JustArchiNET/ArchiSteamFarm 2024-07-14 21:13:28 +02:00
Łukasz Domeradzki
62e786b9b8 Bring back deprecated function 2024-07-14 21:13:26 +02:00
Sebastian Göls
38ae309285 Monitoring (#3251)
* Add more plugin metrics

* Update dashboard to account for changed labels in upstream library and new plugin metrics
2024-07-14 21:11:07 +02:00
Łukasz Domeradzki
f87b63d6ee Merge branch 'main' of https://github.com/JustArchiNET/ArchiSteamFarm 2024-07-14 17:25:05 +02:00
Łukasz Domeradzki
3b3f1caf84 Misc 2024-07-14 17:25:03 +02:00
ArchiBot
724be4c1cf Automatic translations update 2024-07-14 02:11:19 +00:00
ArchiBot
b4ab287994 Automatic translations update 2024-07-13 02:11:00 +00:00
renovate[bot]
19d17940c0 chore(deps): update wiki digest to 0b5412c 2024-07-12 21:22:38 +00:00
renovate[bot]
aa46079ed4 chore(deps): update github/codeql-action action to v3.25.12 2024-07-12 09:07:51 +00:00
renovate[bot]
5e81e3a6a6 chore(deps): update asf-ui digest to 6df84ff 2024-07-12 03:14:56 +00:00
ArchiBot
e2f2b6aa5d Automatic translations update 2024-07-12 02:10:43 +00:00
renovate[bot]
a7c67b04ca chore(deps): update asf-ui digest to 3aab5a4 2024-07-11 23:03:27 +00:00
Łukasz Domeradzki
465207034d Misc 2024-07-11 22:45:58 +02:00
ArchiBot
93b9cf4b76 Automatic translations update 2024-07-11 02:13:17 +00:00
Łukasz Domeradzki
dc57860f0d Misc optimization 2024-07-11 01:34:49 +02:00
renovate[bot]
f71b0bc945 chore(deps): update dependency microsoft.identitymodel.jsonwebtokens to v7.6.3 2024-07-10 12:24:48 +00:00
renovate[bot]
1c9132627b chore(deps): update actions/setup-node action to v4.0.3 2024-07-10 11:08:35 +00:00
Vita Chumakova
b14d5de641 Fix struct reordering (#3247) 2024-07-10 13:08:06 +02:00
renovate[bot]
530743cf97 chore(deps): update actions/attest-build-provenance action to v1.3.3 2024-07-10 06:56:06 +00:00
renovate[bot]
d1ab859621 chore(deps): update asf-ui digest to 329c79b 2024-07-10 03:26:55 +00:00
ArchiBot
fe76ada8d0 Automatic translations update 2024-07-10 02:11:36 +00:00
renovate[bot]
e096f4f081 chore(deps): update asf-ui digest to 29f16e8 2024-07-09 22:59:45 +00:00
Łukasz Domeradzki
0d8f7b854d Misc 2024-07-10 00:21:56 +02:00
Łukasz Domeradzki
b9beb6ec16 Fix ASF trying to create www folder if it doesn't exist yet
It seems that ASP.NET is trying to create initialized WebRootPath if it doesn't exist yet. This might be unwanted, as user might want to explicitly disable www directory while still having interest in IPC. On top of that, ASF will outright crash if creating such directory will be impossible, e.g. because of insufficient permission.

It makes sense for us to check first if the directory exists - if not, we can omit it entirely, so ASP.NET will default to NullFileProvider and simply respond 404 to everything unhandled from the code perspective.

@SuperSandro2000 will resolve https://github.com/NixOS/nixpkgs/issues/312242 without a need of disabling IPC. In other words, you can use IPC with no www folder attached in order to still have ASF API and /swagger available. ASF will no longer crash in this scenario, it also won't try to create a directory on read-only filesystem.
2024-07-10 00:18:44 +02:00
Łukasz Domeradzki
7afcf82c32 Update config.yml 2024-07-09 23:32:26 +02:00
Łukasz Domeradzki
b27dd345af Misc 2024-07-09 23:02:29 +02:00
renovate[bot]
9fdf8c6a75 chore(deps): update actions/setup-dotnet action to v4.0.1 2024-07-09 16:12:12 +00:00
ArchiBot
1010f270a0 Automatic translations update 2024-07-09 02:12:18 +00:00
Łukasz Domeradzki
0db051a251 Misc 2024-07-09 01:36:55 +02:00
Łukasz Domeradzki
890a431e24 Cleanup main csproj file 2024-07-08 17:28:44 +02:00
ArchiBot
173e0ea157 Automatic translations update 2024-07-08 02:12:23 +00:00
renovate[bot]
4c99ce4ab2 chore(deps): update wiki digest to 7539ff8 2024-07-07 20:14:46 +00:00
renovate[bot]
6f98228c41 chore(deps): update wiki digest to 469c6c7 2024-07-07 02:56:47 +00:00
Łukasz Domeradzki
95d15aa107 Bump 2024-07-07 04:56:15 +02:00
Łukasz Domeradzki
2f09e74f1a Update prometheus exporter to fixed version
Apparently all of our issues should be resolved by now
2024-07-07 04:52:10 +02:00
ArchiBot
f30fcb3941 Automatic translations update 2024-07-07 02:14:46 +00:00
renovate[bot]
06254a9afc chore(deps): update dependency jetbrains.annotations to v2024 (#3243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-06 23:29:44 +02:00
renovate[bot]
fd95c6cac7 chore(deps): update asf-ui digest to cd60876 2024-07-06 03:38:32 +00:00
ArchiBot
2196bccda5 Automatic translations update 2024-07-06 02:08:42 +00:00
renovate[bot]
b0ac2b4147 chore(deps): update actions/upload-artifact action to v4.3.4 2024-07-05 18:17:25 +00:00
renovate[bot]
5322321944 chore(deps): update actions/download-artifact action to v4.1.8 2024-07-05 16:24:38 +00:00
renovate[bot]
2f951e0ef6 chore(deps): update wiki digest to 743294a 2024-07-05 14:26:37 +00:00
renovate[bot]
1e6dcc88d2 chore(deps): update docker/setup-buildx-action action to v3.4.0 2024-07-04 11:47:22 +00:00
ArchiBot
8bbcfc40dc Automatic translations update 2024-07-04 02:10:45 +00:00
Łukasz Domeradzki
811ea46523 Remove deprecated functionality, bump 2024-07-04 01:33:45 +02:00
renovate[bot]
c37e54cf9b chore(deps): update jetbrains/qodana-action action to v2024.1.8 2024-07-03 16:30:15 +00:00
renovate[bot]
4c095e8eb5 chore(deps): update docker/build-push-action action to v6.3.0 2024-07-03 09:04:29 +00:00
ArchiBot
c580ec7b92 Automatic translations update 2024-07-03 02:09:58 +00:00
renovate[bot]
0c45d3c5ba chore(deps): update asf-ui digest to 6a4b92a 2024-07-02 21:48:17 +00:00
ArchiBot
2bc8a4cefd Automatic translations update 2024-07-02 02:10:59 +00:00
ArchiBot
92d28adb07 Automatic translations update 2024-06-30 02:14:26 +00:00
renovate[bot]
cc2b1dbbaa chore(deps): update asf-ui digest to 91c39f3 2024-06-29 03:30:07 +00:00
ArchiBot
bd98cadab3 Automatic translations update 2024-06-29 02:08:57 +00:00
renovate[bot]
c417f88e3b chore(deps): update github/codeql-action action to v3.25.11 2024-06-28 19:30:05 +00:00
renovate[bot]
b26a9af49b chore(deps): update docker/build-push-action action to v6.2.0 2024-06-26 15:51:30 +00:00
Łukasz Domeradzki
e4b00b35f2 Bump 2024-06-26 17:50:58 +02:00
Łukasz Domeradzki
11bab46b8b Add deprecation helper 2024-06-26 13:53:48 +02:00
ArchiBot
7eb24d7bd6 Automatic translations update 2024-06-25 02:10:23 +00:00
Łukasz Domeradzki
9a26366ff8 Misc 2024-06-25 00:34:13 +02:00
Łukasz Domeradzki
0058bc6fa5 Move dockerfiles from legacy KV format
https://docs.docker.com/reference/build-checks/legacy-key-value-format/
2024-06-25 00:32:15 +02:00
Łukasz Domeradzki
ca3f3e0cab Resolve selected .NET 9 analyzer warnings 2024-06-25 00:18:38 +02:00
ArchiBot
cf51ca454d Automatic translations update 2024-06-24 02:11:32 +00:00
ArchiBot
35c3c2a2b3 Automatic translations update 2024-06-23 02:12:06 +00:00
renovate[bot]
12bb61c23d chore(deps): update docker/build-push-action action to v6.1.0 2024-06-21 09:36:21 +00:00
ArchiBot
2e5a2a1393 Automatic translations update 2024-06-21 02:09:19 +00:00
Łukasz Domeradzki
4259bb088e Bump 2024-06-21 02:36:20 +02:00
Jack Nolddor
0768765f21 chore: blacklist summer sale 2024 appid (#3226)
refers to https://steamcommunity.com/my/gamecards/2861690
2024-06-21 00:22:06 +02:00
renovate[bot]
dc7ee7fadc Update docker/build-push-action action to v6.0.2 2024-06-20 15:04:34 +00:00
Łukasz Domeradzki
7665a1c339 Bump 2024-06-20 12:44:15 +02:00
renovate[bot]
6015cd5cb7 Update dependency Microsoft.IdentityModel.JsonWebTokens to v7.6.2 2024-06-20 08:03:03 +00:00
renovate[bot]
08aa8f2136 Update ASF-ui digest to 3ae4df4 2024-06-20 04:09:34 +00:00
ArchiBot
c27e447f57 Automatic translations update 2024-06-20 02:08:54 +00:00
Łukasz Domeradzki
9f1a3a0304 Add support for selected bot groups 2024-06-19 23:46:03 +02:00
renovate[bot]
7714478fdc Update docker/build-push-action action to v6.0.1 2024-06-18 16:00:11 +00:00
renovate[bot]
91bca33a54 Update dependency OpenTelemetry.Instrumentation.Runtime to v1.9.0 2024-06-18 11:13:05 +00:00
renovate[bot]
c67b967817 Update ASF-ui digest to 1c49bcf 2024-06-18 07:00:45 +00:00
renovate[bot]
150ed2c733 Update dependency Microsoft.IdentityModel.JsonWebTokens to v7.6.1 2024-06-18 04:30:51 +00:00
renovate[bot]
1c23e4b5b3 Update opentelemetry-dotnet-contrib monorepo to v1.9.0 2024-06-18 01:47:02 +00:00
renovate[bot]
77c4dee6a8 Update actions/attest-build-provenance action to v1.3.2 2024-06-17 18:19:05 +00:00
renovate[bot]
d6fe8eec38 Update docker/build-push-action action to v6 (#3222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 12:18:15 +02:00
Łukasz Domeradzki
c12d83bbf0 Bump 2024-06-17 09:22:34 +02:00
Łukasz Domeradzki
0e6b75aa5c Update IBotTradeOffer2.cs 2024-06-17 09:19:54 +02:00
Łukasz Domeradzki
dd1dfdcf34 Closes #3221 2024-06-17 09:17:14 +02:00
ArchiBot
792d8dab34 Automatic translations update 2024-06-16 02:13:31 +00:00
Łukasz Domeradzki
4f23434f81 Update renovate.json5 2024-06-15 21:54:23 +02:00
renovate[bot]
7797c4e0b0 Update dependency OpenTelemetry.Extensions.Hosting to v1.9.0 2024-06-14 21:20:44 +00:00
renovate[bot]
6463a2be2d Update actions/attest-build-provenance action to v1.3.1 2024-06-13 22:55:17 +00:00
renovate[bot]
972a46ac2e Update github/codeql-action action to v3.25.10 2024-06-13 16:58:07 +00:00
renovate[bot]
db3091b21b Update ASF-ui digest to 51952a3 2024-06-13 01:16:01 +00:00
renovate[bot]
476733ca19 Update github/codeql-action action to v3.25.9 2024-06-12 22:57:22 +00:00
renovate[bot]
d0c302c1f1 Update actions/checkout action to v4.1.7 2024-06-12 20:57:14 +00:00
renovate[bot]
164deb1096 Update ASF-ui digest to 7efd77d 2024-06-12 06:22:34 +00:00
ArchiBot
b39ea679e7 Automatic translations update 2024-06-12 02:09:52 +00:00
renovate[bot]
062a5f470c Update ASF-ui digest to 185cc47 2024-06-11 22:28:20 +00:00
Łukasz Domeradzki
48fb388da2 Make PICS changes happen a bit more often 2024-06-11 10:11:15 +02:00
ArchiBot
a23cdc9605 Automatic translations update 2024-06-11 02:09:42 +00:00
renovate[bot]
1c7eb0f5a1 Update docker/build-push-action action to v5.4.0 2024-06-10 11:56:11 +00:00
Łukasz Domeradzki
58050c9ec3 CI: Fix failure when in PR mode 2024-06-10 13:55:47 +02:00
ArchiBot
5908cc40a8 Automatic translations update 2024-06-09 02:13:14 +00:00
Łukasz Domeradzki
bffb5e53bf Bump 2024-06-08 00:08:14 +02:00
Łukasz Domeradzki
4a0b79f1a1 Misc
Paused could be flipped in the meantime between starting the background check and finishing it, we can check it again after having games to farm.
2024-06-08 00:07:11 +02:00
renovate[bot]
3ddb77e9f8 Update ASF-ui digest to c5a2ac4 2024-06-07 11:09:07 +00:00
renovate[bot]
16f7bccb11 Update dependency Humanizer to v3.0.0-beta.54 2024-06-06 19:53:34 +00:00
ArchiBot
ecec5cdde2 Automatic translations update 2024-06-06 02:08:48 +00:00
renovate[bot]
cf4fca9836 Update ASF-ui digest to 1e68294 2024-06-05 16:44:47 +00:00
ArchiBot
e5d61b2796 Automatic translations update 2024-06-05 02:08:55 +00:00
renovate[bot]
fc493ea510 Update github/codeql-action action to v3.25.8 2024-06-04 17:07:49 +00:00
ArchiBot
7983dc01f1 Automatic translations update 2024-06-04 02:09:03 +00:00
renovate[bot]
09f914cecd Update actions/attest-build-provenance action to v1.2.0 2024-06-03 18:21:05 +00:00
renovate[bot]
9968b0ac36 Update wiki digest to f05654b 2024-06-03 10:46:12 +00:00
ArchiBot
969a5f711c Automatic translations update 2024-06-03 02:09:44 +00:00
Łukasz Domeradzki
ccb4601c85 Bump 2024-06-03 00:19:16 +02:00
Łukasz Domeradzki
25aabe7553 Use native Rfc2898DeriveBytes for Pbkdf2 instead of CryptSharp implementation
I've verified it generates the same results
2024-06-02 21:54:45 +02:00
Łukasz Domeradzki
13755d4d06 Make ASF compatible with global invariant mode
Requires Humanizer update
2024-06-02 21:33:44 +02:00
Łukasz Domeradzki
1d6e87d103 Bump 2024-05-31 23:22:59 +02:00
Łukasz Domeradzki
8673ef8420 Closes #3210 2024-05-31 23:21:33 +02:00
renovate[bot]
ab1fb70f4c Update github/codeql-action action to v3.25.7 2024-05-31 11:07:58 +00:00
renovate[bot]
31fe6923ff Update ASF-ui digest to 7818887 2024-05-31 03:38:49 +00:00
renovate[bot]
0b07b7c4a7 Update ASF-ui digest to 605cbf7 2024-05-30 19:23:31 +00:00
renovate[bot]
0abe05b7bd Update dependency MSTest to v3.4.3 2024-05-30 15:29:53 +00:00
renovate[bot]
45ff19f9ae Update dependency MSTest to v3.4.2 2024-05-30 11:07:17 +00:00
renovate[bot]
d25883ff1b Update ASF-ui digest to a72c668 2024-05-29 12:29:08 +00:00
Łukasz Domeradzki
d2f43e4e50 CI: Misc 2024-05-29 14:28:18 +02:00
Łukasz Domeradzki
792167a71c CI: Misc 2024-05-29 11:21:39 +02:00
renovate[bot]
f2586d7cb0 Update crowdin/github-action action to v2 (#3209)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-29 11:21:17 +02:00
Łukasz Domeradzki
c37846b4cd Bump 2024-05-28 22:50:04 +02:00
Łukasz Domeradzki
17c4ec6790 Fix observable counters 2024-05-28 21:38:56 +02:00
Łukasz Domeradzki
7023040882 Add initial support for build attestations 2024-05-28 19:34:47 +02:00
Łukasz Domeradzki
8c38de1b26 Downgrade prometheus exporter again 2024-05-28 19:10:34 +02:00
Łukasz Domeradzki
1917c9da95 Misc 2024-05-28 19:07:48 +02:00
Sebastian Göls
668bf5009b Monitor incoming trades (#3201)
* Monitor incoming trades

* Apply feedback

* Misc.
2024-05-28 19:03:52 +02:00
renovate[bot]
e9ca1e3537 Update docker/login-action action to v3.2.0 2024-05-28 09:56:27 +00:00
renovate[bot]
ebdb412adf Update dependency Microsoft.IdentityModel.JsonWebTokens to v7.6.0 2024-05-28 02:07:48 +00:00
renovate[bot]
e73c72d148 Update dependency MSTest to v3.4.1 2024-05-27 17:05:17 +00:00
ArchiBot
d1d843c583 Automatic translations update 2024-05-27 02:08:42 +00:00
renovate[bot]
464e375529 Update ASF-ui digest to 8e361ae 2024-05-26 01:02:04 +00:00
Łukasz Domeradzki
2b12f8a294 Update donation options 2024-05-26 01:19:53 +02:00
renovate[bot]
b305e98519 Update ASF-ui digest to 491227c 2024-05-24 16:36:11 +00:00
renovate[bot]
5431e49c2a Update ASF-ui digest to b1521b7 2024-05-23 22:01:31 +00:00
Łukasz Domeradzki
6098cdc31d Bump 2024-05-23 20:10:29 +02:00
Łukasz Domeradzki
308d7c2c1c Merge branch 'main' of https://github.com/JustArchiNET/ArchiSteamFarm 2024-05-23 20:06:11 +02:00
Łukasz Domeradzki
454f40ffb9 CI: Divide environments further 2024-05-23 20:06:09 +02:00
renovate[bot]
dd3b3dec33 Update ASF-ui digest to 63254c3 2024-05-23 13:49:00 +00:00
renovate[bot]
bc2831c066 Update dependency MSTest to v3.4.0 2024-05-23 10:20:09 +00:00
renovate[bot]
905d2acdbd Update swashbuckle-aspnetcore monorepo to v6.6.2 2024-05-22 12:27:49 +00:00
renovate[bot]
54c2b6b6d5 Update github/codeql-action action to v3.25.6 2024-05-22 05:05:58 +00:00
ArchiBot
b6a4ccac7f Automatic translations update 2024-05-22 02:08:08 +00:00
Łukasz Domeradzki
3fce1cc934 Monitoring: Bump OpenTelemetry dependencies, since the upstream issue is fixed 2024-05-21 22:57:13 +02:00
Łukasz Domeradzki
375a888a37 CI: Run first part of publish in test environment 2024-05-21 22:25:29 +02:00
Łukasz Domeradzki
0d62034f32 CI: Run qodana in different environment 2024-05-21 22:21:47 +02:00
Łukasz Domeradzki
f7d722aaf0 CI: Switch to using environment variables 2024-05-21 22:18:55 +02:00
Łukasz Domeradzki
56759bc710 Make some inventory description properties public 2024-05-21 12:12:31 +02:00
renovate[bot]
d27b5c28ef chore(deps): update asf-ui digest to fe1f167 2024-05-20 19:33:05 +00:00
renovate[bot]
a0d1cada54 chore(deps): update asf-ui digest to 2b02ee9 2024-05-20 00:29:51 +00:00
Łukasz Domeradzki
ca7e1da585 CI: Misc 2024-05-20 02:29:23 +02:00
Łukasz Domeradzki
5f097c4002 CI: Split crowdin to standalone action 2024-05-20 02:25:35 +02:00
Łukasz Domeradzki
203dc6daf6 Misc 2024-05-19 21:36:37 +02:00
Łukasz Domeradzki
e895850f17 Misc 2024-05-19 21:35:20 +02:00
Łukasz Domeradzki
f776e7947c Misc corrections of ASF API structures 2024-05-19 20:07:52 +02:00
Łukasz Domeradzki
416ec920cb Add AddLicense to ASF API 2024-05-19 20:07:41 +02:00
renovate[bot]
b5da72eb40 chore(deps): update asf-ui digest to a885733 2024-05-18 05:56:09 +00:00
ArchiBot
3dde77608e Automatic translations update 2024-05-18 02:07:36 +00:00
renovate[bot]
a0407553ec chore(deps): update jetbrains/qodana-action action to v2024.1.5 (#3207)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-18 03:37:15 +02:00
renovate[bot]
8d594fe0b6 chore(deps): update crowdin/github-action action to v1.20.4 2024-05-17 09:18:01 +00:00
renovate[bot]
e68e87d388 chore(deps): update actions/checkout action to v4.1.6 2024-05-17 02:23:30 +00:00
ArchiBot
4cabd42c0b Automatic translations update 2024-05-17 02:07:31 +00:00
ArchiBot
df33f7d0fc Automatic translations update 2024-05-16 02:07:07 +00:00
Łukasz Domeradzki
d6b5e3981c Misc swagger UI enhancements 2024-05-15 15:59:09 +02:00
ArchiBot
6aa0300c85 Automatic translations update 2024-05-15 02:09:46 +00:00
renovate[bot]
264ca84513 chore(deps): update swashbuckle-aspnetcore monorepo to v6.6.1 2024-05-14 12:02:17 +00:00
Łukasz Domeradzki
816306872d Misc 2024-05-14 13:14:14 +02:00
renovate[bot]
13aced705a chore(deps): update github/codeql-action action to v3.25.5 2024-05-14 05:03:02 +00:00
ArchiBot
95d0f879ca Automatic translations update 2024-05-14 02:07:17 +00:00
renovate[bot]
f37d2297bb chore(deps): update dependency microsoft.identitymodel.jsonwebtokens to v7.5.2 2024-05-13 22:47:12 +00:00
renovate[bot]
0d90a53b8e chore(deps): update wiki digest to fa6284b 2024-05-13 16:10:04 +00:00
Łukasz Domeradzki
f91dfe7efa Misc optimization 2024-05-13 17:01:33 +02:00
Łukasz Domeradzki
ec757e3ef8 Bump 2024-05-13 09:53:14 +02:00
Łukasz Domeradzki
3b2ca10b05 Closes #3203
When excessive amount of "missing amounts", so items in the set was missing on our side, there was a possibility for our logic to classify a good trade as bad one, because we didn't fill in enough holes, as the subtraction in the condition was calculated on each loop rather than once initially.

Since this could only worsen the neutrality score, but never improve it (as the amounts were sorted ascending), there was no abusive possibility due to that, only ignoring otherwise valid trades classifying them as worse than they were in reality.
2024-05-13 09:29:30 +02:00
ArchiBot
b438e38268 Automatic translations update 2024-05-12 02:08:51 +00:00
renovate[bot]
bb405f2824 chore(deps): update asf-ui digest to eae2d67 2024-05-11 08:24:00 +00:00
ArchiBot
1d640fbec0 Automatic translations update 2024-05-11 02:06:27 +00:00
renovate[bot]
ecc820333e chore(deps): update asf-ui digest to f09861b 2024-05-10 18:35:22 +00:00
Łukasz Domeradzki
9cc227aa61 Misc 2024-05-10 19:40:46 +02:00
Łukasz Domeradzki
93420eebc0 Misc 2024-05-10 19:40:02 +02:00
Łukasz Domeradzki
6014b3bdc6 Add missing LicenseID inheritance from current 2024-05-10 13:27:49 +02:00
Sebastian Göls
81789c717f Misc. security improvements (#3200)
* Add x-security-critical to swagger schema and do not serialize LicenseID on IPC

* Apply feedback

* Misc.
2024-05-10 13:22:26 +02:00
renovate[bot]
dfa6330821 chore(deps): update crowdin/github-action action to v1.20.3 2024-05-10 07:54:33 +00:00
renovate[bot]
1d5d9c12a7 chore(deps): update actions/checkout action to v4.1.5 2024-05-08 23:34:56 +00:00
renovate[bot]
2cbbbe7359 chore(deps): update github/codeql-action action to v3.25.4 2024-05-08 14:36:22 +00:00
renovate[bot]
4706cedbf9 chore(deps): update jetbrains/qodana-action action to v2024.1.4 2024-05-07 21:52:16 +00:00
renovate[bot]
a11b955a9d chore(deps): update dependency nlog.web.aspnetcore to v5.3.11 2024-05-07 20:25:51 +00:00
renovate[bot]
e1366f6267 chore(deps): update asf-ui digest to 34bbcc9 2024-05-07 11:50:49 +00:00
ArchiBot
6bff839821 Automatic translations update 2024-05-07 02:08:46 +00:00
renovate[bot]
0b37acf16e chore(deps): update asf-ui digest to 073867b 2024-05-05 03:11:22 +00:00
ArchiBot
70c39eef0a Automatic translations update 2024-05-05 02:07:59 +00:00
ArchiBot
1988b18053 Automatic translations update 2024-05-04 02:06:04 +00:00
renovate[bot]
67f87396e8 chore(deps): update wiki digest to 4029f5f 2024-05-03 16:17:08 +00:00
Łukasz Domeradzki
3734721c58 Bump 2024-05-03 15:52:00 +02:00
Łukasz Domeradzki
0f6a3f2ec8 Misc 2024-05-03 15:18:17 +02:00
Łukasz Domeradzki
ab9ca4b9c3 Bump 2024-05-03 13:52:55 +02:00
ArchiBot
c05cffbd88 Automatic translations update 2024-05-03 02:07:39 +00:00
renovate[bot]
0e3f3d1143 chore(deps): update jetbrains/qodana-action action to v2024.1.3 2024-05-02 19:55:25 +00:00
Łukasz Domeradzki
ff02a4a8d4 Remove zxcvbn dependency
Pushing external lib purely to save user's from eventual stupidity is just simply not worth the bytes in the final zip archive.
2024-05-02 21:54:54 +02:00
renovate[bot]
c8c35b5bf7 chore(deps): update asf-ui digest to f537840 2024-05-01 09:33:49 +00:00
renovate[bot]
18daa6a8c7 chore(deps): update dependency nlog.web.aspnetcore to v5.3.10 2024-04-30 23:00:34 +00:00
renovate[bot]
c95b58852c chore(deps): update asf-ui digest to d857ce5 2024-04-30 02:25:57 +00:00
ArchiBot
80ccceb9b0 Automatic translations update 2024-04-29 02:06:57 +00:00
renovate[bot]
eaa308d3ce chore(deps): update asf-ui digest to 491c89d 2024-04-28 03:10:41 +00:00
ArchiBot
d05ac7e10d Automatic translations update 2024-04-28 02:08:21 +00:00
renovate[bot]
a80aef16a0 chore(deps): update dependency nlog.web.aspnetcore to v5.3.9 2024-04-27 19:55:05 +00:00
ArchiBot
338560fedb Automatic translations update 2024-04-27 02:06:20 +00:00
Łukasz Domeradzki
632830278f Misc 2024-04-26 20:57:57 +02:00
Łukasz Domeradzki
8b614bd3c4 Misc 2024-04-26 20:56:17 +02:00
renovate[bot]
657354c2e8 chore(deps): update jetbrains/qodana-action action to v2024.1.2 2024-04-26 04:07:53 +00:00
renovate[bot]
7a0d9f2325 chore(deps): update github/codeql-action action to v3.25.3 2024-04-26 02:14:43 +00:00
ArchiBot
ae45c0c7ae Automatic translations update 2024-04-26 02:06:28 +00:00
renovate[bot]
c3b0e31a0a chore(deps): update asf-ui digest to 6dd170c 2024-04-25 20:28:00 +00:00
renovate[bot]
f7207c1326 chore(deps): update actions/checkout action to v4.1.4 2024-04-25 14:19:37 +00:00
ArchiBot
9a9817c6b3 Automatic translations update 2024-04-25 02:06:39 +00:00
Łukasz Domeradzki
1b4ac9da8b Squashed commit of the following:
commit 2f206cd822f615ad215c6e09f83ceb653c0dbd75
Author: Łukasz Domeradzki <JustArchi@JustArchi.net>
Date:   Wed Apr 24 20:16:24 2024 +0200

    Further improvements

commit 66b60c028c652db1644c3efd400dd00f6559ba40
Author: Łukasz Domeradzki <JustArchi@JustArchi.net>
Date:   Wed Apr 24 20:00:13 2024 +0200

    Try new heredoc syntax
2024-04-24 20:27:22 +02:00
renovate[bot]
d98310fc0e chore(deps): update actions/download-artifact action to v4.1.7 2024-04-24 15:25:40 +00:00
Łukasz Domeradzki
3240fca63e Misc qodana improvements 2024-04-24 15:22:38 +02:00
renovate[bot]
f1631b7f06 chore(deps): update jetbrains/qodana-action action to v2024 (#3195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-24 15:14:48 +02:00
ArchiBot
30e5c5f91b Automatic translations update 2024-04-24 02:06:35 +00:00
Łukasz Domeradzki
257026144d Misc 2024-04-23 21:15:40 +02:00
Łukasz Domeradzki
9f786dce97 Misc 2024-04-23 21:11:32 +02:00
Łukasz Domeradzki
c2f582164c Misc 2024-04-23 20:54:07 +02:00
Łukasz Domeradzki
464ed3b614 Misc 2024-04-23 19:27:39 +02:00
renovate[bot]
5bb9494ecc chore(deps): update github/codeql-action action to v3.25.2 2024-04-23 08:22:38 +00:00
renovate[bot]
0fb583a094 chore(deps): update actions/upload-artifact action to v4.3.3 2024-04-23 04:51:37 +00:00
ArchiBot
358b1a7dbe Automatic translations update 2024-04-23 02:06:47 +00:00
renovate[bot]
bd91f439c8 chore(deps): update asf-ui digest to d7e3ef5 2024-04-22 23:04:12 +00:00
renovate[bot]
4181ada887 chore(deps): update actions/download-artifact action to v4.1.6 2024-04-22 19:50:54 +00:00
renovate[bot]
32d116d106 chore(deps): update actions/checkout action to v4.1.3 2024-04-22 16:27:01 +00:00
Łukasz Domeradzki
30c27f9faf Misc, documentation day! 2024-04-22 16:29:02 +02:00
Łukasz Domeradzki
b332d576ab Misc 2024-04-22 15:20:01 +02:00
Łukasz Domeradzki
9def43cef0 Update README.md 2024-04-22 15:03:29 +02:00
ArchiBot
0820b39a35 Automatic translations update 2024-04-22 02:06:52 +00:00
Łukasz Domeradzki
2a0be85d14 Bump 2024-04-21 21:35:22 +02:00
Łukasz Domeradzki
efb7262113 Prevent official plugins from updating to unmatched versions 2024-04-21 21:31:37 +02:00
renovate[bot]
1a732bbb93 chore(deps): update wiki digest to 74ee175 2024-04-21 16:10:17 +00:00
Łukasz Domeradzki
b8fe380b61 Bump 2024-04-21 18:09:47 +02:00
Łukasz Domeradzki
8670cea7a3 Misc 2024-04-21 18:09:21 +02:00
Sebastian Göls
e2a5ec3616 Fix monitoring plugin (#3191)
* Misc.

* Fix ASF crash

* Remove warning about automatic update of custom plugins if there is only official plugins enabled

* Fix previous mistake

* Revert "Fix ASF crash"

This reverts commit 42209e93ce.
2024-04-21 16:21:33 +02:00
renovate[bot]
d013366c9a chore(deps): update asf-ui digest to d64880d 2024-04-21 03:05:41 +00:00
ArchiBot
e9093cda6d Automatic translations update 2024-04-21 02:07:18 +00:00
Łukasz Domeradzki
0f30a0ef3d Fix IWebInterface with root WebPath 2024-04-20 23:37:57 +02:00
ArchiBot
b1a64e346c Automatic translations update 2024-04-20 02:05:36 +00:00
ArchiBot
c524a89c5e Automatic translations update 2024-04-19 02:06:39 +00:00
renovate[bot]
e73d90e697 chore(deps): update asf-ui digest to 0714df0 2024-04-18 21:40:19 +00:00
renovate[bot]
ee470d9ce9 chore(deps): update actions/upload-artifact action to v4.3.2 2024-04-18 20:16:48 +00:00
renovate[bot]
aab5b3aaab chore(deps): update actions/download-artifact action to v4.1.5 2024-04-18 17:09:08 +00:00
renovate[bot]
86281b5fdb chore(deps): update dependency opentelemetry.extensions.hosting to v1.8.1 2024-04-18 04:45:31 +00:00
ArchiBot
ddabf7db49 Automatic translations update 2024-04-18 02:06:09 +00:00
Łukasz Domeradzki
1c7523e98e Modernize docker builds, add attestations 2024-04-18 01:46:49 +02:00
Łukasz Domeradzki
120d084b12 Misc CI 2024-04-18 01:04:54 +02:00
renovate[bot]
1e69ec4634 chore(deps): update github/codeql-action action to v3.25.1 2024-04-17 15:33:32 +00:00
renovate[bot]
31a680ce1c chore(deps): update wiki digest to 7ec0ec5 2024-04-17 14:36:06 +00:00
Łukasz Domeradzki
3bad19530e Bump 2024-04-17 12:14:38 +02:00
Łukasz Domeradzki
10986289e6 Make --process-required default, add ShutdownIfPossible instead 2024-04-17 12:02:26 +02:00
ArchiBot
656c1b8d5d Automatic translations update 2024-04-17 02:06:21 +00:00
renovate[bot]
ef0037aa25 chore(deps): update asf-ui digest to 46a15c5 2024-04-16 22:20:35 +00:00
renovate[bot]
af02ccbd6f chore(deps): update wiki digest to dc78a43 2024-04-16 14:20:48 +00:00
Łukasz Domeradzki
978f3f63bd Bump 2024-04-16 11:39:51 +02:00
Łukasz Domeradzki
e550cc0f43 Misc 2024-04-16 10:39:03 +02:00
Łukasz Domeradzki
5894226e93 Add optional health checks to ASF API 2024-04-16 10:37:32 +02:00
ArchiBot
d50fa8eeb7 Automatic translations update 2024-04-16 02:05:41 +00:00
renovate[bot]
6efd333684 chore(deps): update github/codeql-action action to v3.25.0 2024-04-15 16:57:49 +00:00
renovate[bot]
05701b60c1 chore(deps): update wiki digest to 60a1965 2024-04-15 12:55:35 +00:00
ArchiBot
f8e7e55a00 Automatic translations update 2024-04-15 02:52:50 +00:00
renovate[bot]
20663f0226 chore(deps): update wiki digest to 05e8868 2024-04-14 22:52:10 +00:00
renovate[bot]
ad175ba2ac chore(deps): update asf-ui digest to 58779f5 2024-04-14 16:09:13 +00:00
Łukasz Domeradzki
bdf90a5e51 Enable ArchiSteamFarm.OfficialPlugins.Monitoring for publishing 2024-04-14 16:58:05 +02:00
Łukasz Domeradzki
49618534ce Ship grafana dashboard together with the plugin 2024-04-14 16:54:57 +02:00
Łukasz Domeradzki
f2bb2a6bee Create grafana_dashboard.json 2024-04-14 16:46:48 +02:00
ArchiBot
ba4f3aea7b Automatic translations update 2024-04-14 02:27:34 +00:00
Łukasz Domeradzki
b30068103b Bump 2024-04-13 23:54:05 +02:00
150 changed files with 6258 additions and 1229 deletions

4
.github/FUNDING.yml vendored
View File

@@ -1,4 +1,2 @@
# These are supported funding model platforms
github: JustArchi
custom: ["https://paypal.me/JustArchi", "https://pay.revolut.com/justarchi", "https://commerce.coinbase.com/checkout/0c23b844-c51b-45f4-9135-8db7c6fcf98e", "https://steamcommunity.com/tradeoffer/new/?partner=46697991&token=0ix2Ruv_"]
custom: ["https://paypal.me/JustArchi", "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HD2P2P3WGS5Y4", "https://pay.revolut.com/justarchi", "https://steamcommunity.com/tradeoffer/new/?partner=46697991&token=0ix2Ruv_"]

View File

@@ -7,8 +7,8 @@ contact_links:
url: https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Localization
about: Please use our crowdin platform
- name: ❓ Support question or technical issue
url: https://github.com/JustArchiNET/ArchiSteamFarm/blob/main/.github/SUPPORT.md
about: Please review our support guidelines
url: https://github.com/JustArchiNET/ArchiSteamFarm/discussions/categories/support-english
about: Please use GitHub discussions or other support channels
- name: 🗯️ Negative feedback, complaints and demands
url: https://www.youtube.com/watch?v=dQw4w9WgXcQ
about: We're taking those very seriously

View File

@@ -14,4 +14,6 @@ This is automated GitHub deployment, human-readable changelog should be availabl
ASF is available for free, this release was made possible thanks to the people that decided to support the project. If you're grateful for what we're doing, please consider a donation. Developing ASF requires massive amount of time and knowledge, especially when it comes to Steam (and its problems). Even $1 is highly appreciated and shows that you care. Thank you!
[![GitHub sponsor](https://img.shields.io/badge/GitHub-sponsor-ea4aaa.svg?logo=github-sponsors)](https://github.com/sponsors/JustArchi) [![Crypto donate](https://img.shields.io/badge/Crypto-donate-f7931a.svg?logo=bitcoin)](https://commerce.coinbase.com/checkout/0c23b844-c51b-45f4-9135-8db7c6fcf98e) [![PayPal.me donate](https://img.shields.io/badge/PayPal.me-donate-00457c.svg?logo=paypal)](https://paypal.me/JustArchi) [![PayPal donate](https://img.shields.io/badge/PayPal-donate-00457c.svg?logo=paypal)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HD2P2P3WGS5Y4) [![Revolut donate](https://img.shields.io/badge/Revolut-donate-0075eb.svg?logo=revolut)](https://pay.revolut.com/justarchi) [![Steam donate](https://img.shields.io/badge/Steam-donate-000000.svg?logo=steam)](https://steamcommunity.com/tradeoffer/new/?partner=46697991&token=0ix2Ruv_)
[![GitHub sponsor](https://img.shields.io/badge/GitHub-sponsor-ea4aaa.svg?logo=github-sponsors)](https://github.com/sponsors/JustArchi) [![PayPal.me donate](https://img.shields.io/badge/PayPal.me-donate-00457c.svg?logo=paypal)](https://paypal.me/JustArchi) [![PayPal donate](https://img.shields.io/badge/PayPal-donate-00457c.svg?logo=paypal)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HD2P2P3WGS5Y4) [![Revolut donate](https://img.shields.io/badge/Revolut-donate-0075eb.svg?logo=revolut)](https://pay.revolut.com/justarchi) [![Steam donate](https://img.shields.io/badge/Steam-donate-000000.svg?logo=steam)](https://steamcommunity.com/tradeoffer/new/?partner=46697991&token=0ix2Ruv_)
[![BTC donate](https://img.shields.io/badge/BTC-donate-f7931a.svg?logo=bitcoin)](https://www.blockchain.com/explorer/addresses/btc/3HwcgZbtoF5vSxJkNUvThVSJipKi7r5EqU) [![ETH donate](https://img.shields.io/badge/ETH-donate-3c3c3d.svg?logo=ethereum)](https://www.blockchain.com/explorer/addresses/eth/0xA1F7Ba62C5a3A8b93Fe6656936192432F328a366) [![LTC donate](https://img.shields.io/badge/LTC-donate-a6a9aa.svg?logo=litecoin)](https://live.blockcypher.com/ltc/address/MJCeBEZUsNgDhRhqbLFfPiDcf7CSrdvmZ3) [![USDC donate](https://img.shields.io/badge/USDC-donate-2775ca.svg?logo=cashapp)](https://etherscan.io/address/0xCf42D9F53F974CBd7c304eF0243CAe8e029885A8) [![USDT donate](https://img.shields.io/badge/USDT-donate-50af95.svg?logo=tether)](https://etherscan.io/address/0x985FDdD3AD00838A2049B07A33b783104d60f776)

View File

View File

@@ -12,13 +12,5 @@
],
"git-submodules": {
"enabled": true
},
"packageRules": [
{
// TODO: <= 1.7.0-rc.1 for invalid response on monitoring endpoint, last failed version 1.8.0-rc.1 - https://github.com/open-telemetry/opentelemetry-dotnet/issues/5506
"allowedVersions": "<= 1.7.0-rc.1",
"matchManagers": [ "nuget" ],
"matchPackageNames": [ "OpenTelemetry.Exporter.Prometheus.AspNetCore" ]
}
]
}
}

View File

@@ -21,13 +21,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.0
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
@@ -39,12 +39,3 @@ jobs:
- name: Run ${{ matrix.configuration }} ArchiSteamFarm.Tests
run: dotnet test ArchiSteamFarm.Tests -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
- name: Upload latest strings for translation on Crowdin
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.configuration == 'Release' && startsWith(matrix.os, 'ubuntu-') }}
uses: crowdin/github-action@v1.20.2
with:
crowdin_branch_name: main
config: '.github/crowdin.yml'
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}

View File

@@ -1,6 +1,7 @@
name: ASF-code-quality
on: [push, pull_request]
on:
- push
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
@@ -14,32 +15,25 @@ permissions:
jobs:
main:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
environment: qa-qodana
runs-on: ubuntu-latest
steps:
- name: Checkout code
if: github.event_name != 'pull_request'
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
- name: Checkout code (for PR)
if: github.event_name == 'pull_request'
uses: actions/checkout@v4.1.1
with:
fetch-depth: 100 # History is required for pull request analysis
ref: ${{ github.event.pull_request.head.sha }} # To check out the actual pull request commit, not the merge commit
show-progress: false
- name: Run Qodana scan
uses: JetBrains/qodana-action@v2023.3.2
uses: JetBrains/qodana-action@v2024.1.8
with:
args: --property=idea.headless.enable.statistics=false
args: --config,.github/qodana.yaml,--property=idea.headless.enable.statistics=false
pr-mode: false
upload-result: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
- name: Report Qodana results to GitHub
uses: github/codeql-action/upload-sarif@v3.24.10
uses: github/codeql-action/upload-sarif@v3.25.15
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json

28
.github/workflows/crowdin-ci.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: ASF-crowdin-ci
on:
push:
branches:
- main
permissions: {}
jobs:
upload:
environment: dev-crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Upload latest strings for translation on Crowdin
uses: crowdin/github-action@v2.1.1
with:
crowdin_branch_name: main
config: '.github/crowdin.yml'
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}

View File

@@ -19,20 +19,20 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
uses: docker/setup-buildx-action@v3.6.1
- name: Build ${{ matrix.configuration }} Docker image from ${{ matrix.file }}
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v6.5.0
with:
build-args: CONFIGURATION=${{ matrix.configuration }}
context: .
file: ${{ matrix.file }}
platforms: ${{ env.PLATFORMS }}
build-args: |
CONFIGURATION=${{ matrix.configuration }}
STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
provenance: true
sbom: true

View File

@@ -5,7 +5,6 @@ on:
types: [released]
env:
ASF_PRIVATE_SNK: ${{ secrets.ASF_PRIVATE_SNK }}
PLATFORMS: linux/amd64,linux/arm,linux/arm64
TAG: latest
@@ -14,40 +13,32 @@ permissions:
jobs:
main:
environment: release-docker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
uses: docker/setup-buildx-action@v3.6.1
- name: Login to ghcr.io
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Prepare private key for signing
shell: sh
run: |
set -eu
if [ -n "${ASF_PRIVATE_SNK-}" ]; then
echo "$ASF_PRIVATE_SNK" | base64 -d > "resources/ArchiSteamFarm.snk"
fi
- name: Prepare environment outputs
shell: sh
run: |
@@ -59,12 +50,16 @@ jobs:
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
- name: Build and publish Docker image from Dockerfile.Service
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v6.5.0
with:
context: .
file: Dockerfile.Service
platforms: ${{ env.PLATFORMS }}
build-args: STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
provenance: true
sbom: true
secrets: |
ASF_PRIVATE_SNK=${{ secrets.ASF_PRIVATE_SNK }}
STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
labels: |
org.opencontainers.image.created=${{ env.DATE_ISO8601 }}
org.opencontainers.image.version=${{ env.FIXED_TAG }}

View File

@@ -6,7 +6,6 @@ on:
- main
env:
ASF_PRIVATE_SNK: ${{ secrets.ASF_PRIVATE_SNK }}
PLATFORMS: linux/amd64,linux/arm,linux/arm64
TAG: main
@@ -15,40 +14,32 @@ permissions:
jobs:
main:
environment: release-docker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
uses: docker/setup-buildx-action@v3.6.1
- name: Login to ghcr.io
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Prepare private key for signing
shell: sh
run: |
set -eu
if [ -n "${ASF_PRIVATE_SNK-}" ]; then
echo "$ASF_PRIVATE_SNK" | base64 -d > "resources/ArchiSteamFarm.snk"
fi
- name: Prepare environment outputs
shell: sh
run: |
@@ -59,11 +50,15 @@ jobs:
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
- name: Build and publish Docker image from Dockerfile
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v6.5.0
with:
context: .
platforms: ${{ env.PLATFORMS }}
build-args: STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
provenance: true
sbom: true
secrets: |
ASF_PRIVATE_SNK=${{ secrets.ASF_PRIVATE_SNK }}
STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
labels: |
org.opencontainers.image.created=${{ env.DATE_ISO8601 }}
org.opencontainers.image.version=${{ github.sha }}
@@ -77,6 +72,6 @@ jobs:
uses: peter-evans/dockerhub-description@v4.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ env.DH_REPOSITORY }}
short-description: ${{ github.event.repository.description }}

View File

@@ -6,7 +6,6 @@ on:
- '*'
env:
ASF_PRIVATE_SNK: ${{ secrets.ASF_PRIVATE_SNK }}
PLATFORMS: linux/amd64,linux/arm,linux/arm64
TAG: released
@@ -15,40 +14,32 @@ permissions:
jobs:
main:
environment: release-docker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
uses: docker/setup-buildx-action@v3.6.1
- name: Login to ghcr.io
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Prepare private key for signing
shell: sh
run: |
set -eu
if [ -n "${ASF_PRIVATE_SNK-}" ]; then
echo "$ASF_PRIVATE_SNK" | base64 -d > "resources/ArchiSteamFarm.snk"
fi
- name: Prepare environment outputs
shell: sh
run: |
@@ -60,11 +51,15 @@ jobs:
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
- name: Build and publish Docker image from Dockerfile
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v6.5.0
with:
context: .
platforms: ${{ env.PLATFORMS }}
build-args: STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
provenance: true
sbom: true
secrets: |
ASF_PRIVATE_SNK=${{ secrets.ASF_PRIVATE_SNK }}
STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
labels: |
org.opencontainers.image.created=${{ env.DATE_ISO8601 }}
org.opencontainers.image.version=${{ env.FIXED_TAG }}

View File

@@ -19,13 +19,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Setup Node.js with npm
uses: actions/setup-node@v4.0.2
uses: actions/setup-node@v4.0.3
with:
check-latest: true
node-version: ${{ env.NODE_JS_VERSION }}
@@ -43,7 +43,7 @@ jobs:
run: npm run-script deploy --no-progress --prefix ASF-ui
- name: Upload ASF-ui
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@v4.3.5
with:
if-no-files-found: error
name: ASF-ui
@@ -73,16 +73,21 @@ jobs:
- os: windows-latest
variant: win-x64
environment: build
runs-on: ${{ matrix.os }}
permissions:
attestations: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.0
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
@@ -90,7 +95,7 @@ jobs:
run: dotnet --info
- name: Download previously built ASF-ui
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: ASF-ui
path: ASF-ui/dist
@@ -355,8 +360,14 @@ jobs:
}
}
- name: Generate artifact attestation for ASF-${{ matrix.variant }}.zip
if: ${{ github.event_name == 'push' }}
uses: actions/attest-build-provenance@v1.4.0
with:
subject-path: out/ASF-${{ matrix.variant }}.zip
- name: Upload ASF-${{ matrix.variant }}
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@v4.3.5
with:
if-no-files-found: error
name: ${{ matrix.os }}_ASF-${{ matrix.variant }}
@@ -396,9 +407,15 @@ jobs:
fi
done
- name: Generate artifact attestation for ArchiSteamFarm.OfficialPlugins.Monitoring
if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.variant == 'generic' }}
uses: actions/attest-build-provenance@v1.4.0
with:
subject-path: out/ArchiSteamFarm.OfficialPlugins.Monitoring.zip
- name: Upload ArchiSteamFarm.OfficialPlugins.Monitoring
if: ${{ matrix.os == 'ubuntu-latest' && matrix.variant == 'generic' }}
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@v4.3.5
with:
if-no-files-found: error
name: ArchiSteamFarm.OfficialPlugins.Monitoring
@@ -407,71 +424,73 @@ jobs:
release:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
needs: publish-asf
environment: release-github
runs-on: ubuntu-latest
permissions:
attestations: write
contents: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
- name: Download ASF-generic artifact from ubuntu-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: ubuntu-latest_ASF-generic
path: out
- name: Download ASF-linux-arm artifact from ubuntu-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: ubuntu-latest_ASF-linux-arm
path: out
- name: Download ASF-linux-arm64 artifact from ubuntu-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: ubuntu-latest_ASF-linux-arm64
path: out
- name: Download ASF-linux-x64 artifact from ubuntu-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: ubuntu-latest_ASF-linux-x64
path: out
- name: Download ASF-osx-arm64 artifact from macos-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: macos-latest_ASF-osx-arm64
path: out
- name: Download ASF-osx-x64 artifact from macos-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: macos-latest_ASF-osx-x64
path: out
- name: Download ASF-win-arm64 artifact from windows-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: windows-latest_ASF-win-arm64
path: out
- name: Download ASF-win-x64 artifact from windows-latest
uses: actions/download-artifact@v4.1.4
uses: actions/download-artifact@v4.1.8
with:
name: windows-latest_ASF-win-x64
path: out
# TODO: Enable me when documentation is ready and plugin is stable for usage
# - name: Download ArchiSteamFarm.OfficialPlugins.Monitoring artifact
# uses: actions/download-artifact@v4.1.4
# with:
# name: ArchiSteamFarm.OfficialPlugins.Monitoring
# path: out
- name: Download ArchiSteamFarm.OfficialPlugins.Monitoring artifact
uses: actions/download-artifact@v4.1.8
with:
name: ArchiSteamFarm.OfficialPlugins.Monitoring
path: out
- name: Import GPG key for signing
uses: crazy-max/ghaction-import-gpg@v6.1.0
@@ -480,25 +499,32 @@ jobs:
- name: Generate SHA-512 checksums and signature
shell: sh
working-directory: out
run: |
set -eu
(
cd "out"
sha512sum *.zip > SHA512SUMS
gpg -a -b -o SHA512SUMS.sign SHA512SUMS
sha512sum *.zip > SHA512SUMS
gpg -a -b -o SHA512SUMS.sign SHA512SUMS
)
- name: Generate artifact attestation for SHA512SUMS
uses: actions/attest-build-provenance@v1.4.0
with:
subject-path: out/SHA512SUMS
- name: Upload SHA512SUMS
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@v4.3.5
with:
if-no-files-found: error
name: SHA512SUMS
path: out/SHA512SUMS
- name: Generate artifact attestation for SHA512SUMS.sign
uses: actions/attest-build-provenance@v1.4.0
with:
subject-path: out/SHA512SUMS.sign
- name: Upload SHA512SUMS.sign
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@v4.3.5
with:
if-no-files-found: error
name: SHA512SUMS.sign

View File

@@ -10,11 +10,12 @@ permissions:
jobs:
update:
environment: dev-crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
@@ -22,16 +23,15 @@ jobs:
- name: Reset wiki to follow origin
shell: sh
working-directory: wiki
run: |
set -eu
cd wiki
git fetch --depth=1 origin master
git reset --hard origin/master
- name: Download latest translations from Crowdin
uses: crowdin/github-action@v1.20.2
uses: crowdin/github-action@v2.1.1
with:
upload_sources: false
download_translations: true
@@ -52,11 +52,10 @@ jobs:
- name: Commit the changes to wiki
shell: sh
working-directory: wiki
run: |
set -eu
cd wiki
git add -A "locale"
if ! git diff --cached --quiet; then

2
ASF-ui

Submodule ASF-ui updated: d3082d36c1...29854276ef

View File

@@ -4,7 +4,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="SteamKit2" IncludeAssets="compile" />
<PackageReference Include="System.Composition.AttributedModel" IncludeAssets="compile" />

View File

@@ -34,6 +34,7 @@ using ArchiSteamFarm.Core;
using ArchiSteamFarm.Plugins.Interfaces;
using ArchiSteamFarm.Steam;
using ArchiSteamFarm.Steam.Data;
using ArchiSteamFarm.Steam.Exchange;
using SteamKit2;
namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin;
@@ -45,7 +46,7 @@ namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin;
// If you do not want to handle a particular action (e.g. OnBotMessage that is offered in IBotMessage), it's the best idea to not inherit it at all
// This will keep your code compact, efficient and less dependent. You can always add additional interfaces when you'll need them, this example project will inherit quite a bit of them to show you potential usage
[SuppressMessage("ReSharper", "MemberCanBeFileLocal")]
internal sealed class ExamplePlugin : IASF, IBot, IBotCommand2, IBotConnection, IBotFriendRequest, IBotMessage, IBotModules, IBotTradeOffer {
internal sealed class ExamplePlugin : IASF, IBot, IBotCommand2, IBotConnection, IBotFriendRequest, IBotMessage, IBotModules, IBotTradeOffer2 {
// This is used for identification purposes, typically you want to use a friendly name of your plugin here, such as the name of your main class
// Please note that this property can have direct dependencies only on structures that were initialized by the constructor, as it's possible to be called before OnLoaded() takes place
[JsonInclude]
@@ -180,7 +181,7 @@ internal sealed class ExamplePlugin : IASF, IBot, IBotCommand2, IBotConnection,
// It allows you not only to analyze such trades, but generate a response whether ASF should accept it (true), or proceed like usual (false)
// Thanks to that, you can implement custom rules for all trades that aren't handled by ASF, for example cross-set trading on your own custom rules
// You'd implement your own logic here, as an example we'll allow all trades to be accepted if the bot's name starts from "TrashBot"
public Task<bool> OnBotTradeOffer(Bot bot, TradeOffer tradeOffer) => Task.FromResult(bot.BotName.StartsWith("TrashBot", StringComparison.OrdinalIgnoreCase));
public Task<bool> OnBotTradeOffer(Bot bot, TradeOffer tradeOffer, ParseTradeResult.EResult asfResult) => Task.FromResult(bot.BotName.StartsWith("TrashBot", StringComparison.OrdinalIgnoreCase));
// This is the earliest method that will be called, right after loading the plugin, long before any bot initialization takes place
// It's a good place to initialize all potential (non-bot-specific) structures that you will need across lifetime of your plugin, such as global timers, concurrent dictionaries and alike

View File

@@ -4,7 +4,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="System.Composition.AttributedModel" IncludeAssets="compile" />
</ItemGroup>

View File

@@ -5,7 +5,6 @@
<ItemGroup>
<PackageReference Include="AngleSharp.XPath" IncludeAssets="compile" />
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="System.Composition.AttributedModel" IncludeAssets="compile" />
</ItemGroup>

View File

@@ -4,7 +4,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="SteamKit2" IncludeAssets="compile" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" IncludeAssets="compile" />

View File

@@ -64,6 +64,18 @@
<value>{0} sets ont été matché pendant ce round.</value>
<comment>{0} will be replaced by number of sets traded</comment>
</data>
<data name="ListingAnnouncing" xml:space="preserve">
<value>Annonce de {0} ({1}) avec l'inventaire réalisé à partir de {2} au total sur la liste...</value>
<comment>{0} will be replaced by steam ID (number), {1} will be replaced by user's nickname, {2} will be replaced with number of items in the inventory</comment>
</data>
<data name="MatchingFound" xml:space="preserve">
<value>Correspondance totale de {0} éléments avec le bot {1} ({2}), envoi de l'offre d'échange...</value>
<comment>{0} will be replaced by number of items matched, {1} will be replaced by steam ID (number), {2} will be replaced by user's nickname</comment>
</data>
<data name="TradeOfferFailed" xml:space="preserve">
<value>Impossible d'envoyer une offre d'échange au bot {0} ({1}), en cours ...</value>
<comment>{0} will be replaced by steam ID (number), {1} will be replaced by user's nickname'</comment>
</data>
<data name="ActivelyMatchingSomeConfirmationsFailed" xml:space="preserve">
<value>Certaines confirmations ont échoué, environ {0} sur les transactions {1} ont été envoyées avec succès.</value>
<comment>{0} will be replaced by amount of the trade offers that succeeded (number), {1} will be replaced by amount of the trade offers that were supposed to be sent in total (number)</comment>

View File

@@ -64,4 +64,20 @@
<value>Potivim un total de {0} in această rundă.</value>
<comment>{0} will be replaced by number of sets traded</comment>
</data>
<data name="ListingAnnouncing" xml:space="preserve">
<value>Anunțând {0} ({1}) cu inventarul făcut din {2} articole în total pe listă...</value>
<comment>{0} will be replaced by steam ID (number), {1} will be replaced by user's nickname, {2} will be replaced with number of items in the inventory</comment>
</data>
<data name="MatchingFound" xml:space="preserve">
<value>Se potrivește cu un total de {0} elemente cu botul {1} ({2}), se trimite oferta de schimb...</value>
<comment>{0} will be replaced by number of items matched, {1} will be replaced by steam ID (number), {2} will be replaced by user's nickname</comment>
</data>
<data name="TradeOfferFailed" xml:space="preserve">
<value>Nu s-a putut trimite o cerere de schimb bot-ului {0} ({1}), trecem peste...</value>
<comment>{0} will be replaced by steam ID (number), {1} will be replaced by user's nickname'</comment>
</data>
<data name="ActivelyMatchingSomeConfirmationsFailed" xml:space="preserve">
<value>Unele confirmări au eșuat, aproximativ {0} din {1} de schimburi au fost trimise cu succes.</value>
<comment>{0} will be replaced by amount of the trade offers that succeeded (number), {1} will be replaced by amount of the trade offers that were supposed to be sent in total (number)</comment>
</data>
</root>

View File

@@ -1164,7 +1164,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable {
}
}
private async Task<bool> MatchActively(IReadOnlyCollection<ListedUser> listedUsers, IReadOnlyCollection<Asset> ourAssets, IReadOnlyCollection<EAssetType> acceptedMatchableTypes) {
private async Task<bool> MatchActively(ImmutableHashSet<ListedUser> listedUsers, HashSet<Asset> ourAssets, HashSet<EAssetType> acceptedMatchableTypes) {
if ((listedUsers == null) || (listedUsers.Count == 0)) {
throw new ArgumentNullException(nameof(listedUsers));
}
@@ -1439,7 +1439,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable {
Bot.ArchiLogger.LogGenericTrace($"{Bot.SteamID} <- {string.Join(", ", itemsToReceive.Select(static item => $"{item.RealAppID}/{item.Type}/{item.Rarity}/{item.ClassID} #{item.Amount}"))} | {string.Join(", ", itemsToGive.Select(static item => $"{item.RealAppID}/{item.Type}/{item.Rarity}/{item.ClassID} #{item.Amount}"))} -> {listedUser.SteamID}");
(bool success, HashSet<ulong>? tradeOfferIDs, HashSet<ulong>? mobileTradeOfferIDs) = await Bot.ArchiWebHandler.SendTradeOffer(listedUser.SteamID, itemsToGive, itemsToReceive, listedUser.TradeToken, true).ConfigureAwait(false);
(bool success, HashSet<ulong>? tradeOfferIDs, HashSet<ulong>? mobileTradeOfferIDs) = await Bot.ArchiWebHandler.SendTradeOffer(listedUser.SteamID, itemsToGive, itemsToReceive, listedUser.TradeToken, nameof(MatchActively), true).ConfigureAwait(false);
if (tradeOfferIDs?.Count > 0) {
matchActivelyTradeOfferIDs.UnionWith(tradeOfferIDs);

View File

@@ -4,7 +4,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="SteamKit2" IncludeAssets="compile" />
<PackageReference Include="System.Composition.AttributedModel" IncludeAssets="compile" />

View File

@@ -251,7 +251,11 @@ internal static class Commands {
if (!string.IsNullOrEmpty(activationCode)) {
string? generatedCode = await mobileAuthenticator.GenerateToken().ConfigureAwait(false);
if (generatedCode != activationCode) {
if (string.IsNullOrEmpty(generatedCode)) {
return bot.Commands.FormatBotResponse(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, nameof(generatedCode)));
}
if (!generatedCode.Equals(activationCode, StringComparison.OrdinalIgnoreCase)) {
return bot.Commands.FormatBotResponse(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, $"{generatedCode} != {activationCode}"));
}
}

View File

@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);overlay/**</DefaultItemExcludes>
<OutputType>Library</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
@@ -18,4 +18,12 @@
<ItemGroup>
<ProjectReference Include="..\ArchiSteamFarm\ArchiSteamFarm.csproj" ExcludeAssets="all" Private="false" />
</ItemGroup>
<ItemGroup>
<Content Include="overlay\all\**\*.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
</Project>

View File

@@ -22,6 +22,8 @@
// limitations under the License.
using System;
using System.Collections.Concurrent;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Composition;
@@ -35,6 +37,7 @@ using ArchiSteamFarm.IPC.Integration;
using ArchiSteamFarm.Plugins;
using ArchiSteamFarm.Plugins.Interfaces;
using ArchiSteamFarm.Steam;
using ArchiSteamFarm.Steam.Exchange;
using ArchiSteamFarm.Storage;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
@@ -45,7 +48,7 @@ namespace ArchiSteamFarm.OfficialPlugins.Monitoring;
[Export(typeof(IPlugin))]
[SuppressMessage("ReSharper", "MemberCanBeFileLocal")]
internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IGitHubPluginUpdates, IDisposable {
internal sealed class MonitoringPlugin : OfficialPlugin, IDisposable, IOfficialGitHubPluginUpdates, IWebInterface, IWebServiceProvider, IBotTradeOfferResults {
private const string MeterName = SharedInfo.AssemblyName;
private const string MetricNamePrefix = "asf";
@@ -67,6 +70,8 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IG
private static bool Enabled => ASF.GlobalConfig?.IPC ?? GlobalConfig.DefaultIPC;
private static FrozenSet<Measurement<int>>? PluginMeasurements;
[JsonInclude]
[Required]
public override string Name => nameof(MonitoringPlugin);
@@ -77,10 +82,25 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IG
[Required]
public override Version Version => typeof(MonitoringPlugin).Assembly.GetName().Version ?? throw new InvalidOperationException(nameof(Version));
private readonly ConcurrentDictionary<Bot, TradeStatistics> TradeStatistics = new();
private Meter? Meter;
public void Dispose() => Meter?.Dispose();
public Task OnBotTradeOfferResults(Bot bot, IReadOnlyCollection<ParseTradeResult> tradeResults) {
ArgumentNullException.ThrowIfNull(bot);
ArgumentNullException.ThrowIfNull(tradeResults);
TradeStatistics statistics = TradeStatistics.GetOrAdd(bot, static _ => new TradeStatistics());
foreach (ParseTradeResult result in tradeResults) {
statistics.Include(result);
}
return Task.CompletedTask;
}
public void OnConfiguringEndpoints(IApplicationBuilder app) {
ArgumentNullException.ThrowIfNull(app);
@@ -119,6 +139,12 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IG
return;
}
PluginMeasurements = new HashSet<Measurement<int>>(3) {
new(PluginsCore.ActivePlugins.Count),
new(PluginsCore.ActivePlugins.Count(static plugin => plugin is OfficialPlugin), new KeyValuePair<string, object?>(TagNames.PluginType, "official")),
new(PluginsCore.ActivePlugins.Count(static plugin => plugin is not OfficialPlugin), new KeyValuePair<string, object?>(TagNames.PluginType, "custom"))
}.ToFrozenSet();
Meter = new Meter(MeterName, Version.ToString());
Meter.CreateObservableGauge(
@@ -141,7 +167,7 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IG
Meter.CreateObservableGauge(
$"{MetricNamePrefix}_active_plugins",
static () => PluginsCore.ActivePluginsCount,
static () => PluginMeasurements,
description: "Number of plugins currently loaded in ASF"
);
@@ -198,7 +224,7 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IG
$"{MetricNamePrefix}_bot_farming_time_remaining_{Units.Minutes}", static () => {
IEnumerable<Bot> bots = Bot.Bots?.Values ?? [];
return bots.Select(static bot => new Measurement<double>(bot.CardsFarmer.TimeRemaining.TotalMinutes, new KeyValuePair<string, object?>(TagNames.BotName, bot.BotName), new KeyValuePair<string, object?>(TagNames.SteamID, bot.SteamID)));
return bots.Where(static bot => bot.IsConnectedAndLoggedOn).Select(static bot => new Measurement<double>(bot.CardsFarmer.TimeRemaining.TotalMinutes, new KeyValuePair<string, object?>(TagNames.BotName, bot.BotName), new KeyValuePair<string, object?>(TagNames.SteamID, bot.SteamID)));
},
Units.Minutes,
"Approximate number of minutes remaining until each bot has finished farming all cards"
@@ -230,5 +256,53 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IG
},
description: "Remaining games to redeem in background per bot"
);
Meter.CreateObservableCounter(
$"{MetricNamePrefix}_bot_trades", () => TradeStatistics.SelectMany<KeyValuePair<Bot, TradeStatistics>, Measurement<int>>(
static kv => [
new Measurement<int>(
kv.Value.AcceptedOffers,
new KeyValuePair<string, object?>(TagNames.BotName, kv.Key.BotName),
new KeyValuePair<string, object?>(TagNames.SteamID, kv.Key.SteamID),
new KeyValuePair<string, object?>(TagNames.TradeOfferResult, "accepted")
),
new Measurement<int>(
kv.Value.RejectedOffers,
new KeyValuePair<string, object?>(TagNames.BotName, kv.Key.BotName),
new KeyValuePair<string, object?>(TagNames.SteamID, kv.Key.SteamID),
new KeyValuePair<string, object?>(TagNames.TradeOfferResult, "rejected")
),
new Measurement<int>(
kv.Value.IgnoredOffers,
new KeyValuePair<string, object?>(TagNames.BotName, kv.Key.BotName),
new KeyValuePair<string, object?>(TagNames.SteamID, kv.Key.SteamID),
new KeyValuePair<string, object?>(TagNames.TradeOfferResult, "ignored")
),
new Measurement<int>(
kv.Value.BlacklistedOffers,
new KeyValuePair<string, object?>(TagNames.BotName, kv.Key.BotName),
new KeyValuePair<string, object?>(TagNames.SteamID, kv.Key.SteamID),
new KeyValuePair<string, object?>(TagNames.TradeOfferResult, "blacklisted")
),
new Measurement<int>(
kv.Value.ConfirmedOffers,
new KeyValuePair<string, object?>(TagNames.BotName, kv.Key.BotName),
new KeyValuePair<string, object?>(TagNames.SteamID, kv.Key.SteamID),
new KeyValuePair<string, object?>(TagNames.TradeOfferResult, "confirmed")
)
]
),
description: "Trade offers per bot and action taken by ASF"
);
Meter.CreateObservableCounter(
$"{MetricNamePrefix}_bot_items_given", () => TradeStatistics.Select(static kv => new Measurement<int>(kv.Value.ItemsGiven, new KeyValuePair<string, object?>(TagNames.BotName, kv.Key.BotName), new KeyValuePair<string, object?>(TagNames.SteamID, kv.Key.SteamID))),
description: "Items given per bot"
);
Meter.CreateObservableCounter(
$"{MetricNamePrefix}_bot_items_received", () => TradeStatistics.Select(static kv => new Measurement<int>(kv.Value.ItemsReceived, new KeyValuePair<string, object?>(TagNames.BotName, kv.Key.BotName), new KeyValuePair<string, object?>(TagNames.SteamID, kv.Key.SteamID))),
description: "Items received per bot"
);
}
}

View File

@@ -29,8 +29,10 @@ internal static class TagNames {
internal const string CurrencyCode = "currency";
internal const string Framework = "framework";
internal const string OS = "operating_system";
internal const string PluginType = "type";
internal const string Runtime = "runtime";
internal const string SteamID = "steamid";
internal const string TradeOfferResult = "result";
internal const string Variant = "variant";
internal const string Version = "version";
}

View File

@@ -0,0 +1,71 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using ArchiSteamFarm.Steam.Exchange;
namespace ArchiSteamFarm.OfficialPlugins.Monitoring;
internal sealed class TradeStatistics {
private readonly object Lock = new();
internal int AcceptedOffers { get; private set; }
internal int BlacklistedOffers { get; private set; }
internal int ConfirmedOffers { get; private set; }
internal int IgnoredOffers { get; private set; }
internal int ItemsGiven { get; private set; }
internal int ItemsReceived { get; private set; }
internal int RejectedOffers { get; private set; }
internal void Include(ParseTradeResult result) {
ArgumentNullException.ThrowIfNull(result);
lock (Lock) {
switch (result.Result) {
case ParseTradeResult.EResult.Accepted when result.Confirmed:
ConfirmedOffers++;
ItemsGiven += result.ItemsToGive?.Count ?? 0;
ItemsReceived += result.ItemsToReceive?.Count ?? 0;
goto case ParseTradeResult.EResult.Accepted;
case ParseTradeResult.EResult.Accepted:
AcceptedOffers++;
break;
case ParseTradeResult.EResult.Rejected:
RejectedOffers++;
break;
case ParseTradeResult.EResult.Blacklisted:
BlacklistedOffers++;
break;
case ParseTradeResult.EResult.Ignored:
IgnoredOffers++;
break;
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="SteamKit2" IncludeAssets="compile" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" IncludeAssets="compile" />

View File

@@ -327,11 +327,17 @@ internal sealed class GlobalCache : SerializableFile {
StreamResponse? response = await ASF.WebBrowser.UrlGetToStream(request, cancellationToken: cancellationToken).ConfigureAwait(false);
if (response?.Content == null) {
if (response == null) {
return (false, null);
}
HashSet<uint> result;
await using (response.ConfigureAwait(false)) {
if (response.Content == null) {
return (false, null);
}
try {
using StreamReader reader = new(response.Content);
@@ -343,7 +349,7 @@ internal sealed class GlobalCache : SerializableFile {
return (false, null);
}
HashSet<uint> result = new(count);
result = new HashSet<uint>(count);
while (await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false) is { Length: > 0 } line) {
if (!uint.TryParse(line, out uint depotID) || (depotID == 0)) {
@@ -354,13 +360,13 @@ internal sealed class GlobalCache : SerializableFile {
result.Add(depotID);
}
return (result.Count > 0, result.ToFrozenSet());
} catch (Exception e) {
ASF.ArchiLogger.LogGenericWarningException(e);
return (false, null);
}
}
return (result.Count > 0, result.ToFrozenSet());
}
}

View File

@@ -60,28 +60,80 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<data name="PluginDisabledMissingBuildToken" xml:space="preserve">
<value>{0} a fost dezactivat din cauza unui build token lipsă</value>
<comment>{0} will be replaced by the name of the plugin (e.g. "SteamTokenDumperPlugin")</comment>
</data>
<data name="PluginDisabledInConfig" xml:space="preserve">
<value>{0} este momentan dezactivat în funcție de configurația ta. Dacă doriți să ajutați SteamDB în transmiterea de date, vă rugăm să consultați wiki-ul.</value>
<comment>{0} will be replaced by the name of the plugin (e.g. "SteamTokenDumperPlugin")</comment>
</data>
<data name="PluginInitializedAndEnabled" xml:space="preserve">
<value>{0} a fost inițializat cu succes, mulțumim anticipat pentru ajutor. Prima depunere se va întâmpla în aproximativ {1} de acum.</value>
<comment>{0} will be replaced by the name of the plugin (e.g. "SteamTokenDumperPlugin"), {1} will be replaced by translated TimeSpan string (such as "53 minutes")</comment>
</data>
<data name="FileCouldNotBeLoadedFreshInit" xml:space="preserve">
<value>{0} nu a putut fi încărcat, o nouă instanță va fi inițializată...</value>
<comment>{0} will be replaced by the name of the file (e.g. "GlobalCache")</comment>
</data>
<data name="BotNoAppsToRefresh" xml:space="preserve">
<value>Nu există aplicații care să necesite o reîmprospătare la acest bot.</value>
</data>
<data name="BotRetrievingTotalAppAccessTokens" xml:space="preserve">
<value>Preluarea unui total de {0} tokeni de acces...</value>
<comment>{0} will be replaced by the number (total count) of app access tokens being retrieved</comment>
</data>
<data name="BotRetrievingAppAccessTokens" xml:space="preserve">
<value>Preluarea unui total de {0} tokeni de acces...</value>
<comment>{0} will be replaced by the number (count this batch) of app access tokens being retrieved</comment>
</data>
<data name="BotFinishedRetrievingAppAccessTokens" xml:space="preserve">
<value>S-a terminat preluarea a {0} tokene de acces ale aplicației.</value>
<comment>{0} will be replaced by the number (count this batch) of app access tokens retrieved</comment>
</data>
<data name="BotFinishedRetrievingTotalAppAccessTokens" xml:space="preserve">
<value>S-a terminat preluarea a {0} tokene de acces ale aplicației.</value>
<comment>{0} will be replaced by the number (total count) of app access tokens retrieved</comment>
</data>
<data name="BotRetrievingTotalDepots" xml:space="preserve">
<value>Se obțin toate depozitele pentru un total de {0} aplicații</value>
<comment>{0} will be replaced by the number (total count) of apps being retrieved</comment>
</data>
<data name="BotRetrievingAppInfos" xml:space="preserve">
<value>Se preiau {0} informații despre aplicații...</value>
<comment>{0} will be replaced by the number (count this batch) of app infos being retrieved</comment>
</data>
<data name="BotFinishedRetrievingAppInfos" xml:space="preserve">
<value>S-a terminat preluarea a {0} informații despre aplicații.</value>
<comment>{0} will be replaced by the number (count this batch) of app infos retrieved</comment>
</data>
<data name="BotFinishedRetrievingDepotKeys" xml:space="preserve">
<value>{0} din {1} chei de depozit au fost recuperate cu succes.</value>
<comment>{0} will be replaced by the number (count this batch) of depot keys that were successfully retrieved, {1} will be replaced by the number (count this batch) of depot keys that were supposed to be retrieved</comment>
</data>
<data name="BotFinishedRetrievingTotalDepots" xml:space="preserve">
<value>S-a terminat preluarea tuturor depot keys pentru un total de {0} aplicații.</value>
<comment>{0} will be replaced by the number (total count) of apps retrieved</comment>
</data>
<data name="SubmissionNoNewData" xml:space="preserve">
<value>Nu există date noi de trimis, totul este actualizat.</value>
</data>
<data name="SubmissionNoContributorSet" xml:space="preserve">
<value>Nu s-au putut trimite datele deoarece nu există un set SteamID valid pe care să îl putem clasifica ca contributor. Luați în considerare configurarea proprietății {0}.</value>
<comment>{0} will be replaced by the name of the config property (e.g. "SteamOwnerID") that the user is expected to set</comment>
</data>
<data name="SubmissionInProgress" xml:space="preserve">
<value>Trimiterea unui total de aplicații/pachete/depot-uri înregistrate: {0}/{1}/{2}...</value>
<comment>{0} will be replaced by the number of app access tokens being submitted, {1} will be replaced by the number of package access tokens being submitted, {2} will be replaced by the number of depot keys being submitted</comment>
</data>
<data name="SubmissionFailedTooManyRequests" xml:space="preserve">
<value>Trimiterea a eșuat din cauza numărului prea mare de cereri trimise, vom încerca din nou în aproximativ {0} de acum.</value>
<comment>{0} will be replaced by translated TimeSpan string (such as "53 minutes")</comment>
</data>
<data name="SubmissionSuccessful" xml:space="preserve">
<value>Datele au fost trimise cu succes. Serverul a înregistrat un total de aplicații/pachete/depot-uri noi: {0} ({1} verificat)/{2} ({3} verificat)/{4} ({5} verificat).</value>
<comment>{0} will be replaced by the number of new app access tokens that the server has registered, {1} will be replaced by the number of verified app access tokens that the server has registered, {2} will be replaced by the number of new package access tokens that the server has registered, {3} will be replaced by the number of verified package access tokens that the server has registered, {4} will be replaced by the number of new depot keys that the server has registered, {5} will be replaced by the number of verified depot keys that the server has registered</comment>
</data>
<data name="SubmissionSuccessfulNewApps" xml:space="preserve">
<value>Aplicații noi: {0}</value>
<comment>{0} will be replaced by list of the apps (IDs, numbers), separated by a comma</comment>
@@ -102,9 +154,21 @@
<value>Depozite noi: {0}</value>
<comment>{0} will be replaced by list of the depots (IDs, numbers), separated by a comma</comment>
</data>
<data name="SubmissionSuccessfulVerifiedDepots" xml:space="preserve">
<value>Depot-uri verificate: {0}</value>
<comment>{0} will be replaced by list of the depots (IDs, numbers), separated by a comma</comment>
</data>
<data name="PluginSecretListInitialized" xml:space="preserve">
<value>{0} inițializat, plugin-ul nu va rezolva niciuna dintre acestea: {1}.</value>
<comment>{0} will be replaced by the name of the config property (e.g. "SecretPackageIDs"), {1} will be replaced by list of the objects (IDs, numbers), separated by a comma</comment>
</data>
<data name="LoadingGlobalCache" xml:space="preserve">
<value>Se încarcă cache-ul global STD...</value>
</data>
<data name="ValidatingGlobalCacheIntegrity" xml:space="preserve">
<value>Se validează integritatea globală STD...</value>
</data>
<data name="GlobalCacheIntegrityValidationFailed" xml:space="preserve">
<value>Nu s-a putut verifica integritatea globală STD a cache-ului. Acest lucru sugerează o potențială corupție de fișiere/memorie, o nouă instanță va fi inițializată în schimb.</value>
</data>
</root>

View File

@@ -4,7 +4,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
<PackageReference Include="MSTest" />
</ItemGroup>

View File

@@ -25,4 +25,5 @@ using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[assembly: CLSCompliant(false)]
[assembly: DiscoverInternals]
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

View File

@@ -23,6 +23,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using ArchiSteamFarm.Steam.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -30,10 +31,11 @@ using static ArchiSteamFarm.Steam.Bot;
namespace ArchiSteamFarm.Tests;
#pragma warning disable CA1812 // False positive, the class is used during MSTest
[TestClass]
public sealed class Bot {
internal sealed class Bot {
[TestMethod]
public void MaxItemsBarelyEnoughForOneSet() {
internal void MaxItemsBarelyEnoughForOneSet() {
const uint relevantAppID = 42;
Dictionary<uint, byte> itemsPerSet = new() {
@@ -57,7 +59,7 @@ public sealed class Bot {
}
[TestMethod]
public void MaxItemsTooSmall() {
internal void MaxItemsTooSmall() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -69,7 +71,7 @@ public sealed class Bot {
}
[TestMethod]
public void MoreCardsThanNeeded() {
internal void MoreCardsThanNeeded() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -91,7 +93,7 @@ public sealed class Bot {
}
[TestMethod]
public void MultipleSets() {
internal void MultipleSets() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -112,7 +114,7 @@ public sealed class Bot {
}
[TestMethod]
public void MultipleSetsDifferentAmount() {
internal void MultipleSetsDifferentAmount() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -132,7 +134,7 @@ public sealed class Bot {
}
[TestMethod]
public void MutliRarityAndType() {
internal void MutliRarityAndType() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -173,7 +175,7 @@ public sealed class Bot {
}
[TestMethod]
public void NotAllCardsPresent() {
internal void NotAllCardsPresent() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -188,7 +190,7 @@ public sealed class Bot {
}
[TestMethod]
public void OneSet() {
internal void OneSet() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -207,7 +209,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherAppIDFullSets() {
internal void OtherAppIDFullSets() {
const uint appID0 = 42;
const uint appID1 = 43;
@@ -232,7 +234,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherAppIDNoSets() {
internal void OtherAppIDNoSets() {
const uint appID0 = 42;
const uint appID1 = 43;
@@ -254,7 +256,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherAppIDOneSet() {
internal void OtherAppIDOneSet() {
const uint appID0 = 42;
const uint appID1 = 43;
const uint appID2 = 44;
@@ -286,7 +288,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherRarityFullSets() {
internal void OtherRarityFullSets() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -304,7 +306,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherRarityNoSets() {
internal void OtherRarityNoSets() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -320,7 +322,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherRarityOneSet() {
internal void OtherRarityOneSet() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -343,7 +345,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherTypeFullSets() {
internal void OtherTypeFullSets() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -361,7 +363,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherTypeNoSets() {
internal void OtherTypeNoSets() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -377,7 +379,7 @@ public sealed class Bot {
}
[TestMethod]
public void OtherTypeOneSet() {
internal void OtherTypeOneSet() {
const uint appID = 42;
HashSet<Asset> items = [
@@ -400,7 +402,7 @@ public sealed class Bot {
}
[TestMethod]
public void TooHighAmount() {
internal void TooHighAmount() {
const uint appID0 = 42;
HashSet<Asset> items = [
@@ -419,7 +421,7 @@ public sealed class Bot {
}
[TestMethod]
public void TooManyCardsForSingleTrade() {
internal void TooManyCardsForSingleTrade() {
const uint appID = 42;
HashSet<Asset> items = [];
@@ -435,7 +437,7 @@ public sealed class Bot {
}
[TestMethod]
public void TooManyCardsForSingleTradeMultipleAppIDs() {
internal void TooManyCardsForSingleTradeMultipleAppIDs() {
const uint appID0 = 42;
const uint appID1 = 43;
@@ -459,7 +461,7 @@ public sealed class Bot {
}
[TestMethod]
public void TooManyCardsPerSet() {
internal void TooManyCardsPerSet() {
const uint appID0 = 42;
const uint appID1 = 43;
const uint appID2 = 44;
@@ -482,7 +484,7 @@ public sealed class Bot {
);
}
private static void AssertResultMatchesExpectation(IReadOnlyDictionary<(uint RealAppID, ulong ContextID, ulong ClassID), uint> expectedResult, IReadOnlyCollection<Asset> itemsToSend) {
private static void AssertResultMatchesExpectation(Dictionary<(uint RealAppID, ulong ContextID, ulong ClassID), uint> expectedResult, IReadOnlyCollection<Asset> itemsToSend) {
ArgumentNullException.ThrowIfNull(expectedResult);
ArgumentNullException.ThrowIfNull(itemsToSend);
@@ -495,9 +497,10 @@ public sealed class Bot {
private static HashSet<Asset> GetItemsForFullBadge(IReadOnlyCollection<Asset> inventory, byte cardsPerSet, uint appID, ushort maxItems = Steam.Exchange.Trading.MaxItemsPerTrade) => GetItemsForFullBadge(inventory, new Dictionary<uint, byte> { { appID, cardsPerSet } }, maxItems);
private static HashSet<Asset> GetItemsForFullBadge(IReadOnlyCollection<Asset> inventory, IDictionary<uint, byte> cardsPerSet, ushort maxItems = Steam.Exchange.Trading.MaxItemsPerTrade) {
private static HashSet<Asset> GetItemsForFullBadge(IReadOnlyCollection<Asset> inventory, [SuppressMessage("ReSharper", "SuggestBaseTypeForParameter")] Dictionary<uint, byte> cardsPerSet, ushort maxItems = Steam.Exchange.Trading.MaxItemsPerTrade) {
Dictionary<(uint RealAppID, EAssetType Type, EAssetRarity Rarity), List<uint>> inventorySets = Steam.Exchange.Trading.GetInventorySets(inventory);
return GetItemsForFullSets(inventory, inventorySets.ToDictionary(static kv => kv.Key, kv => (SetsToExtract: inventorySets[kv.Key][0], cardsPerSet[kv.Key.RealAppID])), maxItems).ToHashSet();
}
}
#pragma warning restore CA1812 // False positive, the class is used during MSTest

View File

@@ -31,10 +31,11 @@ using static ArchiSteamFarm.Steam.Integration.SteamChatMessage;
namespace ArchiSteamFarm.Tests;
#pragma warning disable CA1812 // False positive, the class is used during MSTest
[TestClass]
public sealed class SteamChatMessage {
internal sealed class SteamChatMessage {
[TestMethod]
public async Task CanSplitEvenWithStupidlyLongPrefix() {
internal async Task CanSplitEvenWithStupidlyLongPrefix() {
string prefix = new('x', MaxMessagePrefixBytes);
const string emoji = "😎";
@@ -51,10 +52,10 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public void ContinuationCharacterSizeIsProperlyCalculated() => Assert.AreEqual(ContinuationCharacterBytes, Encoding.UTF8.GetByteCount(ContinuationCharacter.ToString()));
internal void ContinuationCharacterSizeIsProperlyCalculated() => Assert.AreEqual(ContinuationCharacterBytes, Encoding.UTF8.GetByteCount(ContinuationCharacter.ToString()));
[TestMethod]
public async Task DoesntSkipEmptyNewlines() {
internal async Task DoesntSkipEmptyNewlines() {
string message = $"asdf{Environment.NewLine}{Environment.NewLine}asdf";
List<string> output = await GetMessageParts(message).ToListAsync().ConfigureAwait(false);
@@ -66,7 +67,7 @@ public sealed class SteamChatMessage {
[DataRow(false)]
[DataRow(true)]
[DataTestMethod]
public async Task DoesntSplitInTheMiddleOfMultiByteChar(bool isAccountLimited) {
internal async Task DoesntSplitInTheMiddleOfMultiByteChar(bool isAccountLimited) {
int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts;
int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes;
@@ -84,7 +85,7 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public async Task DoesntSplitJustBecauseOfLastEscapableCharacter() {
internal async Task DoesntSplitJustBecauseOfLastEscapableCharacter() {
const string message = "abcdef[";
const string escapedMessage = @"abcdef\[";
@@ -97,7 +98,7 @@ public sealed class SteamChatMessage {
[DataRow(false)]
[DataRow(true)]
[DataTestMethod]
public async Task DoesntSplitOnBackslashNotUsedForEscaping(bool isAccountLimited) {
internal async Task DoesntSplitOnBackslashNotUsedForEscaping(bool isAccountLimited) {
int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts;
int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes;
@@ -113,7 +114,7 @@ public sealed class SteamChatMessage {
[DataRow(false)]
[DataRow(true)]
[DataTestMethod]
public async Task DoesntSplitOnEscapeCharacter(bool isAccountLimited) {
internal async Task DoesntSplitOnEscapeCharacter(bool isAccountLimited) {
int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts;
int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes;
@@ -129,7 +130,7 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public async Task NoNeedForAnySplittingWithNewlines() {
internal async Task NoNeedForAnySplittingWithNewlines() {
string message = $"abcdef{Environment.NewLine}ghijkl{Environment.NewLine}mnopqr";
List<string> output = await GetMessageParts(message).ToListAsync().ConfigureAwait(false);
@@ -139,7 +140,7 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public async Task NoNeedForAnySplittingWithoutNewlines() {
internal async Task NoNeedForAnySplittingWithoutNewlines() {
const string message = "abcdef";
List<string> output = await GetMessageParts(message).ToListAsync().ConfigureAwait(false);
@@ -149,10 +150,10 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public void ParagraphCharacterSizeIsLessOrEqualToContinuationCharacterSize() => Assert.IsTrue(ContinuationCharacterBytes >= Encoding.UTF8.GetByteCount(ParagraphCharacter.ToString()));
internal void ParagraphCharacterSizeIsLessOrEqualToContinuationCharacterSize() => Assert.IsTrue(ContinuationCharacterBytes >= Encoding.UTF8.GetByteCount(ParagraphCharacter.ToString()));
[TestMethod]
public async Task ProperlyEscapesCharacters() {
internal async Task ProperlyEscapesCharacters() {
const string message = @"[b]bold[/b] \n";
const string escapedMessage = @"\[b]bold\[/b] \\n";
@@ -163,7 +164,7 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public async Task ProperlyEscapesSteamMessagePrefix() {
internal async Task ProperlyEscapesSteamMessagePrefix() {
const string prefix = "/pre []";
const string escapedPrefix = @"/pre \[]";
@@ -178,7 +179,7 @@ public sealed class SteamChatMessage {
[DataRow(false)]
[DataRow(true)]
[DataTestMethod]
public async Task ProperlySplitsLongSingleLine(bool isAccountLimited) {
internal async Task ProperlySplitsLongSingleLine(bool isAccountLimited) {
int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts;
int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes;
@@ -196,10 +197,10 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public void ReservedSizeForEscapingIsProperlyCalculated() => Assert.AreEqual(ReservedEscapeMessageBytes, Encoding.UTF8.GetByteCount(@"\") + 4); // Maximum amount of bytes per single UTF-8 character is 4, not 6 as from Encoding.UTF8.GetMaxByteCount(1)
internal void ReservedSizeForEscapingIsProperlyCalculated() => Assert.AreEqual(ReservedEscapeMessageBytes, Encoding.UTF8.GetByteCount(@"\") + 4); // Maximum amount of bytes per single UTF-8 character is 4, not 6 as from Encoding.UTF8.GetMaxByteCount(1)
[TestMethod]
public async Task RyzhehvostInitialTestForSplitting() {
internal async Task RyzhehvostInitialTestForSplitting() {
const string prefix = "/me ";
const string message = """
@@ -285,7 +286,7 @@ public sealed class SteamChatMessage {
[DataRow(false)]
[DataRow(true)]
[DataTestMethod]
public async Task SplitsOnNewlinesWithParagraphCharacter(bool isAccountLimited) {
internal async Task SplitsOnNewlinesWithParagraphCharacter(bool isAccountLimited) {
int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts;
StringBuilder newlinePartBuilder = new();
@@ -314,7 +315,7 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public async Task ThrowsOnTooLongNewlinesPrefix() {
internal async Task ThrowsOnTooLongNewlinesPrefix() {
string prefix = new('\n', (MaxMessagePrefixBytes / NewlineWeight) + 1);
const string message = "asdf";
@@ -323,7 +324,7 @@ public sealed class SteamChatMessage {
}
[TestMethod]
public async Task ThrowsOnTooLongPrefix() {
internal async Task ThrowsOnTooLongPrefix() {
string prefix = new('x', MaxMessagePrefixBytes + 1);
const string message = "asdf";
@@ -331,3 +332,4 @@ public sealed class SteamChatMessage {
await Assert.ThrowsExceptionAsync<ArgumentOutOfRangeException>(async () => await GetMessageParts(message, prefix).ToListAsync().ConfigureAwait(false)).ConfigureAwait(false);
}
}
#pragma warning restore CA1812 // False positive, the class is used during MSTest

View File

@@ -28,10 +28,11 @@ using static ArchiSteamFarm.Steam.Exchange.Trading;
namespace ArchiSteamFarm.Tests;
#pragma warning disable CA1812 // False positive, the class is used during MSTest
[TestClass]
public sealed class Trading {
internal sealed class Trading {
[TestMethod]
public void ExploitingNewSetsIsFairButNotNeutral() {
internal void ExploitingNewSetsIsFairButNotNeutral() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 40),
CreateItem(2, amount: 10),
@@ -53,7 +54,31 @@ public sealed class Trading {
}
[TestMethod]
public void MismatchRarityIsNotFair() {
internal void Issue3203() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 2),
CreateItem(2, amount: 6),
CreateItem(3),
CreateItem(4)
];
HashSet<Asset> itemsToGive = [
CreateItem(1),
CreateItem(2, amount: 2)
];
HashSet<Asset> itemsToReceive = [
CreateItem(5),
CreateItem(6),
CreateItem(7)
];
Assert.IsTrue(IsFairExchange(itemsToGive, itemsToReceive));
Assert.IsTrue(IsTradeNeutralOrBetter(inventory, itemsToGive, itemsToReceive));
}
[TestMethod]
internal void MismatchRarityIsNotFair() {
HashSet<Asset> itemsToGive = [
CreateItem(1, rarity: EAssetRarity.Rare)
];
@@ -66,7 +91,7 @@ public sealed class Trading {
}
[TestMethod]
public void MismatchRealAppIDsIsNotFair() {
internal void MismatchRealAppIDsIsNotFair() {
HashSet<Asset> itemsToGive = [
CreateItem(1, realAppID: 570)
];
@@ -79,7 +104,7 @@ public sealed class Trading {
}
[TestMethod]
public void MismatchTypesIsNotFair() {
internal void MismatchTypesIsNotFair() {
HashSet<Asset> itemsToGive = [
CreateItem(1, type: EAssetType.Emoticon)
];
@@ -92,7 +117,7 @@ public sealed class Trading {
}
[TestMethod]
public void MultiGameMultiTypeBadReject() {
internal void MultiGameMultiTypeBadReject() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 9),
CreateItem(3, amount: 9, realAppID: 730, type: EAssetType.Emoticon),
@@ -114,7 +139,7 @@ public sealed class Trading {
}
[TestMethod]
public void MultiGameMultiTypeNeutralAccept() {
internal void MultiGameMultiTypeNeutralAccept() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 9),
CreateItem(3, realAppID: 730, type: EAssetType.Emoticon)
@@ -135,7 +160,7 @@ public sealed class Trading {
}
[TestMethod]
public void MultiGameSingleTypeBadReject() {
internal void MultiGameSingleTypeBadReject() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 9),
CreateItem(3, realAppID: 730),
@@ -157,7 +182,7 @@ public sealed class Trading {
}
[TestMethod]
public void MultiGameSingleTypeNeutralAccept() {
internal void MultiGameSingleTypeNeutralAccept() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 2),
CreateItem(3, realAppID: 730)
@@ -178,7 +203,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameAbrynosWasWrongNeutralAccept() {
internal void SingleGameAbrynosWasWrongNeutralAccept() {
HashSet<Asset> inventory = [
CreateItem(1),
CreateItem(2, amount: 2),
@@ -200,7 +225,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameDonationAccept() {
internal void SingleGameDonationAccept() {
HashSet<Asset> inventory = [
CreateItem(1)
];
@@ -219,7 +244,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameMultiTypeBadReject() {
internal void SingleGameMultiTypeBadReject() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 9),
CreateItem(3, amount: 9, type: EAssetType.Emoticon),
@@ -241,7 +266,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameMultiTypeNeutralAccept() {
internal void SingleGameMultiTypeNeutralAccept() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 9),
CreateItem(3, type: EAssetType.Emoticon)
@@ -262,7 +287,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameQuantityBadReject() {
internal void SingleGameQuantityBadReject() {
HashSet<Asset> inventory = [
CreateItem(1),
CreateItem(2),
@@ -284,7 +309,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameQuantityBadReject2() {
internal void SingleGameQuantityBadReject2() {
HashSet<Asset> inventory = [
CreateItem(1),
CreateItem(2, amount: 2)
@@ -304,7 +329,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameQuantityNeutralAccept() {
internal void SingleGameQuantityNeutralAccept() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 2),
CreateItem(2)
@@ -324,7 +349,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameSingleTypeBadReject() {
internal void SingleGameSingleTypeBadReject() {
HashSet<Asset> inventory = [
CreateItem(1),
CreateItem(2)
@@ -343,7 +368,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameSingleTypeBadWithOverpayingReject() {
internal void SingleGameSingleTypeBadWithOverpayingReject() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 2),
CreateItem(2, amount: 2),
@@ -364,7 +389,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameSingleTypeBigDifferenceAccept() {
internal void SingleGameSingleTypeBigDifferenceAccept() {
HashSet<Asset> inventory = [
CreateItem(1),
CreateItem(2, amount: 5),
@@ -384,7 +409,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameSingleTypeBigDifferenceReject() {
internal void SingleGameSingleTypeBigDifferenceReject() {
HashSet<Asset> inventory = [
CreateItem(1),
CreateItem(2, amount: 2),
@@ -408,7 +433,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameSingleTypeGoodAccept() {
internal void SingleGameSingleTypeGoodAccept() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 2)
];
@@ -426,7 +451,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameSingleTypeNeutralAccept() {
internal void SingleGameSingleTypeNeutralAccept() {
HashSet<Asset> inventory = [
CreateItem(1)
];
@@ -444,7 +469,7 @@ public sealed class Trading {
}
[TestMethod]
public void SingleGameSingleTypeNeutralWithOverpayingAccept() {
internal void SingleGameSingleTypeNeutralWithOverpayingAccept() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 2),
CreateItem(2, amount: 2)
@@ -464,7 +489,7 @@ public sealed class Trading {
}
[TestMethod]
public void TakingExcessiveAmountOfSingleCardCanStillBeFairAndNeutral() {
internal void TakingExcessiveAmountOfSingleCardCanStillBeFairAndNeutral() {
HashSet<Asset> inventory = [
CreateItem(1, amount: 52),
CreateItem(2, amount: 73),
@@ -491,3 +516,4 @@ public sealed class Trading {
private static Asset CreateItem(ulong classID, ulong instanceID = 0, uint amount = 1, bool marketable = false, bool tradable = false, uint realAppID = Asset.SteamAppID, EAssetType type = EAssetType.TradingCard, EAssetRarity rarity = EAssetRarity.Common) => new(Asset.SteamAppID, Asset.SteamCommunityContextID, classID, amount, new InventoryDescription(Asset.SteamAppID, classID, instanceID, marketable, tradable, realAppID, type, rarity));
}
#pragma warning restore CA1812 // False positive, the class is used during MSTest

View File

@@ -1,82 +0,0 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static ArchiSteamFarm.Core.Utilities;
namespace ArchiSteamFarm.Tests;
[TestClass]
#pragma warning disable CA1724 // We don't care about the potential conflict, as ASF class name has a priority
public sealed class Utilities {
[TestMethod]
public void AdditionallyForbiddenWordsWeakenPassphrases() => Assert.IsTrue(TestPasswordStrength("10chars<!>asdf", new HashSet<string> { "chars<!>" }).IsWeak);
[TestMethod]
public void ContextSpecificWordsWeakenPassphrases() => Assert.IsTrue(TestPasswordStrength("archisteamfarmpassword").IsWeak);
[TestMethod]
public void EasyPasswordsHaveMeaningfulReason() {
(bool isWeak, string? reason) = TestPasswordStrength("CorrectHorse");
Assert.IsTrue(isWeak);
Assert.IsTrue(reason?.Contains("Capitalization doesn't help very much", StringComparison.OrdinalIgnoreCase));
}
[TestMethod]
public void LongPassphraseIsNotWeak() => Assert.IsFalse(TestPasswordStrength("10chars<!>asdf").IsWeak);
[TestMethod]
public void MemePasswordIsNotWeak() => Assert.IsFalse(TestPasswordStrength("correcthorsebatterystaple").IsWeak);
[TestMethod]
public void RepeatedPasswordsHaveMeaningfulReason() {
(bool isWeak, string? reason) = TestPasswordStrength("abcabcabc");
Assert.IsTrue(isWeak);
Assert.IsTrue(reason?.Contains("Avoid repeated words and characters", StringComparison.OrdinalIgnoreCase));
}
[TestMethod]
public void RepetitiveCharactersWeakenPassphrases() => Assert.IsTrue(TestPasswordStrength("testaaaatest").IsWeak);
[TestMethod]
public void SequentialCharactersWeakenPassphrases() => Assert.IsTrue(TestPasswordStrength("testabcdtest").IsWeak);
[TestMethod]
public void SequentialDescendingCharactersWeakenPassphrases() => Assert.IsTrue(TestPasswordStrength("testdcbatest").IsWeak);
[TestMethod]
public void ShortPassphraseIsWeak() => Assert.IsTrue(TestPasswordStrength("four").IsWeak);
[TestMethod]
public void StraightRowsPasswordsHaveMeaningfulReason() {
(bool isWeak, string? reason) = TestPasswordStrength("`1234567890-=");
Assert.IsTrue(isWeak);
Assert.IsTrue(reason?.Contains("Straight rows of keys are easy to guess", StringComparison.OrdinalIgnoreCase));
}
}
#pragma warning restore CA1724 // We don't care about the potential conflict, as ASF class name has a priority

View File

@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchiSteamFarm", "ArchiSteamFarm\ArchiSteamFarm.csproj", "{1501FF07-0114-473F-BDF2-7F8BA34C2948}"
EndProject

View File

@@ -166,6 +166,7 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CA5384/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CA5385/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CA5397/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CanSimplifyStringEscapeSequence/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ClassCanBeSealed_002EGlobal/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ClassCanBeSealed_002ELocal/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CommentTypo/@EntryIndexedValue">HINT</s:String>
@@ -194,6 +195,7 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EnforceUsingStatementBraces/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EnforceWhileStatementBraces/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EntityFramework_002EModelValidation_002ECircularDependency/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ExtractCommonBranchingCode/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ExtractCommonPropertyPattern/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ForeachCanBeConvertedToQueryUsingAnotherGetEnumerator/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ForeachCanBePartlyConvertedToQueryUsingAnotherGetEnumerator/@EntryIndexedValue">SUGGESTION</s:String>
@@ -252,7 +254,8 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=PlaceAssignmentExpressionIntoBlock/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=PropertyNotResolved/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RawStringCanBeSimplified/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantArrayCreationExpression/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantArrayCreationExpression/@EntryIndexedValue"></s:String>
<s:Boolean x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantArrayCreationExpression/@EntryIndexRemoved">True</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantAttributeParentheses/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantBlankLines/@EntryIndexedValue">SUGGESTION</s:String>
@@ -336,6 +339,9 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=WrongMetadataUse/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=Xaml_002EIgnoredPathHighlighting/@EntryIndexedValue">WARNING</s:String>
<s:Boolean x:Key="/Default/CodeInspection/Highlighting/RunLongAnalysisInSwa/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/Highlighting/UsageOfDefaultStructEquality/CheckNonUserTypes/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/UseCollectionExpression/ConvertEmptyCollection/@EntryValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/UseStringInterpolation/ConvertToStringInterpolationWhenPossible/@EntryValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/PencilsConfiguration/ActualSeverity/@EntryValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/PencilsConfiguration/FiltersState/=CodeStyle/@EntryIndexedValue">Default</s:String>
<s:String x:Key="/Default/CodeInspection/PencilsConfiguration/FiltersState/=NamingFilter/@EntryIndexedValue">Default</s:String>
@@ -518,6 +524,22 @@
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/XmlFormatter/WRAP_LINES/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CSharpFileLayoutPatterns/Pattern/@EntryValue">&lt;?xml version="1.0" encoding="utf-16"?&gt;&#xD;
&lt;Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"&gt;&#xD;
&lt;TypePattern DisplayName=&quot;Non-reorderable types&quot; Priority=&quot;99999999&quot;&gt;
&lt;TypePattern.Match&gt;
&lt;Or&gt;
&lt;And&gt;
&lt;Kind Is=&quot;Interface&quot; /&gt;
&lt;Or&gt;
&lt;HasAttribute Name=&quot;System.Runtime.InteropServices.InterfaceTypeAttribute&quot; /&gt;
&lt;HasAttribute Name=&quot;System.Runtime.InteropServices.ComImport&quot; /&gt;
&lt;/Or&gt;
&lt;/And&gt;
&lt;Kind Is=&quot;Struct&quot; /&gt;
&lt;HasAttribute Name=&quot;System.Runtime.InteropServices.StructLayoutAttribute&quot; /&gt;
&lt;HasAttribute Name=&quot;JetBrains.Annotations.NoReorderAttribute&quot; /&gt;
&lt;/Or&gt;
&lt;/TypePattern.Match&gt;
&lt;/TypePattern&gt;
&lt;TypePattern DisplayName="ArchiPattern" Priority="150"&gt;&#xD;
&lt;Entry DisplayName="Public (Events and Delegates)"&gt;&#xD;
&lt;Entry.Match&gt;&#xD;

View File

@@ -2,16 +2,11 @@
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);config/**;debug/**;logs/**;overlay/**</DefaultItemExcludes>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<OpenApiGenerateDocuments>false</OpenApiGenerateDocuments>
<OutputType>Exe</OutputType>
<!-- TODO: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2550 -->
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AngleSharp.XPath" />
<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="all" />
<PackageReference Include="CryptSharpStandard" />
<PackageReference Include="Humanizer" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
@@ -25,7 +20,6 @@
<PackageReference Include="System.Composition" />
<PackageReference Include="System.Linq.Async" />
<PackageReference Include="System.Security.Cryptography.ProtectedData" />
<PackageReference Include="zxcvbn-core" />
</ItemGroup>
<ItemGroup>

View File

@@ -105,6 +105,7 @@ public sealed class ConcurrentHashSet<T> : IReadOnlySet<T>, ISet<T> where T : no
}
}
[MustDisposeResource]
public IEnumerator<T> GetEnumerator() => BackingCollection.Keys.GetEnumerator();
public void IntersectWith(IEnumerable<T> other) {
@@ -207,6 +208,7 @@ public sealed class ConcurrentHashSet<T> : IReadOnlySet<T>, ISet<T> where T : no
Add(item);
}
[MustDisposeResource]
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
[PublicAPI]

View File

@@ -113,6 +113,7 @@ public sealed class ConcurrentList<T> : IList<T>, IReadOnlyList<T> where T : not
}
}
[MustDisposeResource]
public IEnumerator<T> GetEnumerator() => new ConcurrentEnumerator<T>(BackingCollection, Lock.ReaderLock());
public int IndexOf(T item) {
@@ -158,6 +159,7 @@ public sealed class ConcurrentList<T> : IList<T>, IReadOnlyList<T> where T : not
OnModified?.Invoke(this, EventArgs.Empty);
}
[MustDisposeResource]
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
[PublicAPI]

View File

@@ -25,6 +25,7 @@ using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Collections;
@@ -51,7 +52,10 @@ internal sealed class FixedSizeConcurrentQueue<T> : IEnumerable<T> where T : not
MaxCount = maxCount;
}
[MustDisposeResource]
public IEnumerator<T> GetEnumerator() => BackingQueue.GetEnumerator();
[MustDisposeResource]
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
internal void Enqueue(T obj) {

View File

@@ -124,6 +124,7 @@ public sealed class ObservableConcurrentDictionary<TKey, TValue> : IDictionary<T
((ICollection<KeyValuePair<TKey, TValue>>) BackingDictionary).CopyTo(array, arrayIndex);
}
[MustDisposeResource]
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => BackingDictionary.GetEnumerator();
public bool Remove(KeyValuePair<TKey, TValue> item) {
@@ -162,6 +163,7 @@ public sealed class ObservableConcurrentDictionary<TKey, TValue> : IDictionary<T
return BackingDictionary.ContainsKey(key);
}
[MustDisposeResource]
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
bool IReadOnlyDictionary<TKey, TValue>.TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value) {

View File

@@ -25,12 +25,15 @@ using System.Linq;
using System.Threading.Tasks;
using ArchiSteamFarm.Localization;
using ArchiSteamFarm.Steam;
using ArchiSteamFarm.Storage;
namespace ArchiSteamFarm.Core;
internal static class Events {
internal static async Task OnBotShutdown() {
if (Program.ProcessRequired || ((Bot.Bots != null) && Bot.Bots.Values.Any(static bot => bot.KeepRunning))) {
bool shutdownIfPossible = ASF.GlobalConfig?.ShutdownIfPossible ?? GlobalConfig.DefaultShutdownIfPossible;
if (!shutdownIfPossible || (Bot.Bots?.Values.Any(static bot => bot.KeepRunning) == true)) {
return;
}
@@ -39,7 +42,7 @@ internal static class Events {
// We give user extra 5 seconds for eventual config changes
await Task.Delay(5000).ConfigureAwait(false);
if (Program.ProcessRequired || ((Bot.Bots != null) && Bot.Bots.Values.Any(static bot => bot.KeepRunning))) {
if (Bot.Bots?.Values.Any(static bot => bot.KeepRunning) == true) {
return;
}

View File

@@ -108,12 +108,10 @@ internal static partial class NativeMethods {
[StructLayout(LayoutKind.Sequential)]
[SupportedOSPlatform("Windows")]
internal struct FlashWindowInfo {
#pragma warning disable Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
public uint StructSize;
public nint WindowHandle;
public EFlashFlags Flags;
public uint Count;
public uint TimeoutBetweenFlashes;
#pragma warning restore Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
}
}

View File

@@ -41,11 +41,9 @@ using ArchiSteamFarm.Localization;
using ArchiSteamFarm.NLog;
using ArchiSteamFarm.Storage;
using Humanizer;
using Humanizer.Localisation;
using JetBrains.Annotations;
using Microsoft.IdentityModel.JsonWebTokens;
using SteamKit2;
using Zxcvbn;
namespace ArchiSteamFarm.Core;
@@ -57,9 +55,6 @@ public static class Utilities {
private static readonly FrozenSet<char> DirectorySeparators = new HashSet<char>(2) { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }.ToFrozenSet();
// normally we'd just use words like "steam" and "farm", but the library we're currently using is a bit iffy about banned words, so we need to also add combinations such as "steamfarm"
private static readonly FrozenSet<string> ForbiddenPasswordPhrases = new HashSet<string>(10, StringComparer.InvariantCultureIgnoreCase) { "archisteamfarm", "archi", "steam", "farm", "archisteam", "archifarm", "steamfarm", "asf", "asffarm", "password" }.ToFrozenSet(StringComparer.InvariantCultureIgnoreCase);
[PublicAPI]
public static string GenerateChecksumFor(byte[] source) {
ArgumentNullException.ThrowIfNull(source);
@@ -293,40 +288,6 @@ public static class Utilities {
ASF.ArchiLogger.LogGenericDebug($"{fileName} {progressPercentage}%...");
}
internal static (bool IsWeak, string? Reason) TestPasswordStrength(string password, IEnumerable<string>? additionallyForbiddenPhrases = null) {
ArgumentException.ThrowIfNullOrEmpty(password);
HashSet<string> forbiddenPhrases = ForbiddenPasswordPhrases.ToHashSet(StringComparer.InvariantCultureIgnoreCase);
if (additionallyForbiddenPhrases != null) {
forbiddenPhrases.UnionWith(additionallyForbiddenPhrases);
}
Result result = Zxcvbn.Core.EvaluatePassword(password, forbiddenPhrases);
IList<string>? suggestions = result.Feedback.Suggestions;
if (!string.IsNullOrEmpty(result.Feedback.Warning)) {
suggestions ??= new List<string>(1);
suggestions.Insert(0, result.Feedback.Warning);
}
if (suggestions != null) {
for (byte i = 0; i < suggestions.Count; i++) {
string suggestion = suggestions[i];
if ((suggestion.Length == 0) || (suggestion[^1] == '.')) {
continue;
}
suggestions[i] = $"{suggestion}.";
}
}
return (result.Score < 4, suggestions is { Count: > 0 } ? string.Join(' ', suggestions.Where(static suggestion => suggestion.Length > 0)) : null);
}
internal static async Task<bool> UpdateCleanup(string targetDirectory) {
ArgumentException.ThrowIfNullOrEmpty(targetDirectory);

View File

@@ -22,7 +22,6 @@
// limitations under the License.
using System;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
@@ -47,8 +46,6 @@ public static class ArchiCryptoHelper {
internal static bool HasDefaultCryptKey { get; private set; } = true;
private static readonly FrozenSet<string> ForbiddenCryptKeyPhrases = new HashSet<string>(3, StringComparer.InvariantCultureIgnoreCase) { "crypt", "key", "cryptkey" }.ToFrozenSet(StringComparer.InvariantCultureIgnoreCase);
private static IEnumerable<byte> SteamParentalCharacters => Enumerable.Range('0', 10).Select(static character => (byte) character);
private static IEnumerable<byte[]> SteamParentalCodes {
@@ -127,18 +124,12 @@ public static class ArchiCryptoHelper {
throw new InvalidEnumArgumentException(nameof(hashingMethod), (int) hashingMethod, typeof(EHashingMethod));
}
switch (hashingMethod) {
case EHashingMethod.PlainText:
return password;
case EHashingMethod.SCrypt:
return SCrypt.ComputeDerivedKey(password, salt, SteamParentalSCryptIterations, SteamParentalSCryptBlocksCount, 1, null, hashLength);
case EHashingMethod.Pbkdf2:
using (HMACSHA256 hashAlgorithm = new(password)) {
return Pbkdf2.ComputeDerivedKey(hashAlgorithm, salt, SteamParentalPbkdf2Iterations, hashLength);
}
default:
throw new InvalidOperationException(nameof(hashingMethod));
}
return hashingMethod switch {
EHashingMethod.PlainText => password,
EHashingMethod.SCrypt => SCrypt.ComputeDerivedKey(password, salt, SteamParentalSCryptIterations, SteamParentalSCryptBlocksCount, 1, null, hashLength),
EHashingMethod.Pbkdf2 => Rfc2898DeriveBytes.Pbkdf2(password, salt, SteamParentalPbkdf2Iterations, HashAlgorithmName.SHA256, hashLength),
_ => throw new InvalidOperationException(nameof(hashingMethod))
};
}
internal static bool HasTransformation(this ECryptoMethod cryptoMethod) =>
@@ -179,16 +170,6 @@ public static class ArchiCryptoHelper {
return;
}
Utilities.InBackground(
() => {
(bool isWeak, string? reason) = Utilities.TestPasswordStrength(key, ForbiddenCryptKeyPhrases);
if (isWeak) {
ASF.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.WarningWeakCryptKey, reason));
}
}
);
byte[] encryptionKey = Encoding.UTF8.GetBytes(key);
if (encryptionKey.Length < MinimumRecommendedCryptKeyBytes) {

View File

@@ -123,7 +123,7 @@ internal static class ArchiKestrel {
ArgumentNullException.ThrowIfNull(configuration);
ArgumentNullException.ThrowIfNull(app);
// The order of dependency injection is super important, doing things in wrong order will break everything
// The order of dependency injection is super important, doing things in wrong order will most likely break everything
// https://docs.microsoft.com/aspnet/core/fundamentals/middleware
// This one is easy, it's always in the beginning
@@ -134,8 +134,9 @@ internal static class ArchiKestrel {
// Add support for proxies, this one comes usually after developer exception page, but could be before
app.UseForwardedHeaders();
// Add support for response caching - must be called before static files as we want to cache those as well
if (ASF.GlobalConfig?.OptimizationMode != GlobalConfig.EOptimizationMode.MinMemoryUsage) {
// Add support for response caching - must be called before static files as we want to cache those as well
// As previously in services, we skip it if memory usage is super important for us
app.UseResponseCaching();
}
@@ -157,50 +158,65 @@ internal static class ArchiKestrel {
// Add support for default root path redirection (GET / -> GET /index.html), must come before static files
app.UseDefaultFiles();
// Add support for additional default files provided by plugins
Dictionary<string, string> pluginPaths = new(StringComparer.Ordinal);
if (PluginsCore.ActivePlugins.Count > 0) {
foreach (IWebInterface plugin in PluginsCore.ActivePlugins.OfType<IWebInterface>()) {
if (string.IsNullOrEmpty(plugin.PhysicalPath) || string.IsNullOrEmpty(plugin.WebPath)) {
// Invalid path provided
continue;
foreach (IWebInterface plugin in PluginsCore.ActivePlugins.OfType<IWebInterface>()) {
string physicalPath = plugin.PhysicalPath;
if (string.IsNullOrEmpty(physicalPath)) {
// Invalid path provided
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorObjectIsNull, $"{nameof(physicalPath)} ({plugin.Name})"));
continue;
}
string webPath = plugin.WebPath;
if (string.IsNullOrEmpty(webPath)) {
// Invalid path provided
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorObjectIsNull, $"{nameof(webPath)} ({plugin.Name})"));
continue;
}
if (!Path.IsPathRooted(physicalPath)) {
// Relative path
string? assemblyDirectory = Path.GetDirectoryName(plugin.GetType().Assembly.Location);
if (string.IsNullOrEmpty(assemblyDirectory)) {
throw new InvalidOperationException(nameof(assemblyDirectory));
}
string physicalPath = plugin.PhysicalPath;
physicalPath = Path.Combine(assemblyDirectory, physicalPath);
}
if (!Path.IsPathRooted(physicalPath)) {
// Relative path
string? assemblyDirectory = Path.GetDirectoryName(plugin.GetType().Assembly.Location);
if (!Directory.Exists(physicalPath)) {
// Non-existing path provided
ASF.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.ErrorIsInvalid, $"{nameof(physicalPath)} ({plugin.Name})"));
if (string.IsNullOrEmpty(assemblyDirectory)) {
throw new InvalidOperationException(nameof(assemblyDirectory));
}
continue;
}
physicalPath = Path.Combine(assemblyDirectory, plugin.PhysicalPath);
}
pluginPaths[physicalPath] = webPath;
if (!Directory.Exists(physicalPath)) {
// Non-existing path provided
continue;
}
pluginPaths[physicalPath] = plugin.WebPath;
if (plugin.WebPath != "/") {
app.UseDefaultFiles(plugin.WebPath);
}
if (webPath != "/") {
app.UseDefaultFiles(webPath);
}
}
// Add support for static files from custom plugins (e.g. HTML, CSS and JS)
// Add support for additional static files from custom plugins (e.g. HTML, CSS and JS)
foreach ((string physicalPath, string webPath) in pluginPaths) {
app.UseStaticFiles(
new StaticFileOptions {
FileProvider = new PhysicalFileProvider(physicalPath),
OnPrepareResponse = OnPrepareResponse,
RequestPath = webPath
}
);
StaticFileOptions options = new() {
FileProvider = new PhysicalFileProvider(physicalPath),
OnPrepareResponse = OnPrepareResponse
};
if (webPath != "/") {
options.RequestPath = webPath;
}
app.UseStaticFiles(options);
}
// Add support for static files (e.g. HTML, CSS and JS from IPC GUI)
@@ -216,10 +232,10 @@ internal static class ArchiKestrel {
// We want to protect our API with IPCPassword and additional security, this should be called after routing, so the middleware won't have to deal with API endpoints that do not exist
app.UseWhen(static context => context.Request.Path.StartsWithSegments("/Api", StringComparison.OrdinalIgnoreCase), static appBuilder => appBuilder.UseMiddleware<ApiAuthenticationMiddleware>());
// Add support for CORS policy in order to allow userscripts and other third-party integrations to communicate with ASF API
string? ipcPassword = ASF.GlobalConfig != null ? ASF.GlobalConfig.IPCPassword : GlobalConfig.DefaultIPCPassword;
if (!string.IsNullOrEmpty(ipcPassword)) {
// We want to apply CORS policy in order to allow userscripts and other third-party integrations to communicate with ASF API, this should be called before response compression, but can't be due to how our flow works
// We apply CORS policy only with IPCPassword set as an extra authentication measure
app.UseCors();
}
@@ -227,19 +243,18 @@ internal static class ArchiKestrel {
// Add support for websockets that we use e.g. in /Api/NLog
app.UseWebSockets();
// Finally register proper API endpoints once we're done with routing
app.UseEndpoints(static endpoints => endpoints.MapControllers());
if (PluginsCore.ActivePlugins.Count > 0) {
foreach (IWebServiceProvider plugin in PluginsCore.ActivePlugins.OfType<IWebServiceProvider>()) {
try {
plugin.OnConfiguringEndpoints(app);
} catch (Exception e) {
ASF.ArchiLogger.LogGenericException(e);
}
// Add additional endpoints provided by plugins
foreach (IWebServiceProvider plugin in PluginsCore.ActivePlugins.OfType<IWebServiceProvider>()) {
try {
plugin.OnConfiguringEndpoints(app);
} catch (Exception e) {
ASF.ArchiLogger.LogGenericException(e);
}
}
// Finally register proper API endpoints once we're done with routing
app.UseEndpoints(static endpoints => endpoints.MapControllers());
// Add support for swagger, responsible for automatic API documentation generation, this should be on the end, once we're done with API
app.UseSwagger();
@@ -248,6 +263,8 @@ internal static class ArchiKestrel {
static options => {
options.DisplayRequestDuration();
options.EnableDeepLinking();
options.EnableTryItOutByDefault();
options.ShowCommonExtensions();
options.ShowExtensions();
options.SwaggerEndpoint($"{SharedInfo.ASF}/swagger.json", $"{SharedInfo.ASF} API");
}
@@ -259,8 +276,8 @@ internal static class ArchiKestrel {
ArgumentNullException.ThrowIfNull(configuration);
ArgumentNullException.ThrowIfNull(services);
// The order of dependency injection is super important, doing things in wrong order will break everything
// Order in Configure() method is a good start
// The order of dependency injection is super important, doing things in wrong order will most likely break everything
// https://docs.microsoft.com/aspnet/core/fundamentals/middleware
// Prepare knownNetworks that we'll use in a second
HashSet<string>? knownNetworksTexts = configuration.GetSection("Kestrel:KnownNetworks").Get<HashSet<string>>();
@@ -269,7 +286,7 @@ internal static class ArchiKestrel {
if (knownNetworksTexts?.Count > 0) {
// Use specified known networks
knownNetworks = new HashSet<IPNetwork>();
knownNetworks = [];
foreach (string knownNetworkText in knownNetworksTexts) {
string[] addressParts = knownNetworkText.Split('/', 3, StringSplitOptions.RemoveEmptyEntries);
@@ -298,18 +315,19 @@ internal static class ArchiKestrel {
}
);
// Add support for response caching
if (ASF.GlobalConfig?.OptimizationMode != GlobalConfig.EOptimizationMode.MinMemoryUsage) {
// Add support for response caching
// We can skip it if memory usage is super important for us
services.AddResponseCaching();
}
// Add support for response compression
services.AddResponseCompression(static options => options.EnableForHttps = true);
// Add support for CORS policy in order to allow userscripts and other third-party integrations to communicate with ASF API
string? ipcPassword = ASF.GlobalConfig != null ? ASF.GlobalConfig.IPCPassword : GlobalConfig.DefaultIPCPassword;
if (!string.IsNullOrEmpty(ipcPassword)) {
// We want to apply CORS policy in order to allow userscripts and other third-party integrations to communicate with ASF API
// We apply CORS policy only with IPCPassword set as an extra authentication measure
services.AddCors(static options => options.AddDefaultPolicy(static policyBuilder => policyBuilder.AllowAnyOrigin()));
}
@@ -377,30 +395,34 @@ internal static class ArchiKestrel {
}
);
// We need MVC for /Api, but we're going to use only a small subset of all available features
IMvcBuilder mvc = services.AddControllers();
// Add support for optional healtchecks
services.AddHealthChecks();
// Add support for controllers declared in custom plugins
if (PluginsCore.ActivePlugins.Count > 0) {
HashSet<Assembly>? assemblies = PluginsCore.LoadAssemblies();
if (assemblies != null) {
foreach (Assembly assembly in assemblies) {
mvc.AddApplicationPart(assembly);
}
}
foreach (IWebServiceProvider plugin in PluginsCore.ActivePlugins.OfType<IWebServiceProvider>()) {
try {
plugin.OnConfiguringServices(services);
} catch (Exception e) {
ASF.ArchiLogger.LogGenericException(e);
}
// Add support for additional services provided by plugins
foreach (IWebServiceProvider plugin in PluginsCore.ActivePlugins.OfType<IWebServiceProvider>()) {
try {
plugin.OnConfiguringServices(services);
} catch (Exception e) {
ASF.ArchiLogger.LogGenericException(e);
}
}
// We need MVC for /Api, but we're going to use only a small subset of all available features
IMvcBuilder mvc = services.AddControllers();
// Add support for additional controllers provided by plugins
HashSet<Assembly>? assemblies = PluginsCore.LoadAssemblies();
if (assemblies != null) {
foreach (Assembly assembly in assemblies) {
mvc.AddApplicationPart(assembly);
}
}
// Register discovered controllers
mvc.AddControllersAsServices();
// Modify default JSON options
mvc.AddJsonOptions(
static options => {
JsonSerializerOptions jsonSerializerOptions = Debugging.IsUserDebugging ? JsonUtilities.IndentedJsonSerialierOptions : JsonUtilities.DefaultJsonSerialierOptions;
@@ -413,15 +435,25 @@ internal static class ArchiKestrel {
}
private static async Task<WebApplication> CreateWebApplication() {
string customDirectory = Path.Combine(Directory.GetCurrentDirectory(), SharedInfo.WebsiteDirectory);
string websiteDirectory = Directory.Exists(customDirectory) ? customDirectory : Path.Combine(AppContext.BaseDirectory, SharedInfo.WebsiteDirectory);
// Try to initialize to custom www folder first
string? webRootPath = Path.Combine(Directory.GetCurrentDirectory(), SharedInfo.WebsiteDirectory);
if (!Directory.Exists(webRootPath)) {
// Try to initialize to standard www folder next
webRootPath = Path.Combine(AppContext.BaseDirectory, SharedInfo.WebsiteDirectory);
if (!Directory.Exists(webRootPath)) {
// Do not attempt to create a new directory, user has explicitly removed it
webRootPath = null;
}
}
// The order of dependency injection matters, pay attention to it
WebApplicationBuilder builder = WebApplication.CreateEmptyBuilder(
new WebApplicationOptions {
ApplicationName = SharedInfo.AssemblyName,
ContentRootPath = SharedInfo.HomeDirectory,
WebRootPath = websiteDirectory
WebRootPath = webRootPath
}
);

View File

@@ -121,6 +121,10 @@ public sealed class ASFController : ArchiController {
request.GlobalConfig.IPCPassword = ASF.GlobalConfig.IPCPassword;
}
if (!request.GlobalConfig.IsLicenseIDSet && ASF.GlobalConfig.IsLicenseIDSet) {
request.GlobalConfig.LicenseID = ASF.GlobalConfig.LicenseID;
}
if (!request.GlobalConfig.IsWebProxyPasswordSet && ASF.GlobalConfig.IsWebProxyPasswordSet) {
request.GlobalConfig.WebProxyPassword = ASF.GlobalConfig.WebProxyPassword;
}

View File

@@ -36,12 +36,45 @@ using ArchiSteamFarm.Localization;
using ArchiSteamFarm.Steam;
using ArchiSteamFarm.Steam.Storage;
using Microsoft.AspNetCore.Mvc;
using SteamKit2;
using SteamKit2.Internal;
namespace ArchiSteamFarm.IPC.Controllers.Api;
[Route("Api/Bot")]
public sealed class BotController : ArchiController {
/// <summary>
/// Adds (free) licenses on given bots.
/// </summary>
[Consumes("application/json")]
[HttpPost("{botNames:required}/AddLicense")]
[ProducesResponseType<GenericResponse<IReadOnlyDictionary<string, BotAddLicenseResponse>>>((int) HttpStatusCode.OK)]
[ProducesResponseType<GenericResponse>((int) HttpStatusCode.BadRequest)]
public async Task<ActionResult<GenericResponse>> AddLicensePost(string botNames, [FromBody] BotAddLicenseRequest request) {
ArgumentException.ThrowIfNullOrEmpty(botNames);
ArgumentNullException.ThrowIfNull(request);
if ((request.Apps?.IsEmpty != false) && (request.Packages?.IsEmpty != false)) {
return BadRequest(new GenericResponse(false, string.Format(CultureInfo.CurrentCulture, Strings.ErrorIsEmpty, $"{nameof(request.Apps)} && {nameof(request.Packages)}")));
}
HashSet<Bot>? bots = Bot.GetBots(botNames);
if ((bots == null) || (bots.Count == 0)) {
return BadRequest(new GenericResponse(false, string.Format(CultureInfo.CurrentCulture, Strings.BotNotFound, botNames)));
}
IList<BotAddLicenseResponse> results = await Utilities.InParallel(bots.Select(bot => AddLicense(bot, request))).ConfigureAwait(false);
Dictionary<string, BotAddLicenseResponse> result = new(bots.Count, Bot.BotsComparer);
foreach (Bot bot in bots) {
result[bot.BotName] = results[result.Count];
}
return Ok(new GenericResponse<IReadOnlyDictionary<string, BotAddLicenseResponse>>(result));
}
/// <summary>
/// Deletes all files related to given bots.
/// </summary>
@@ -416,4 +449,46 @@ public sealed class BotController : ArchiController {
return Ok(new GenericResponse(results.All(static result => result.Success), string.Join(Environment.NewLine, results.Select(static result => result.Message))));
}
private static async Task<BotAddLicenseResponse> AddLicense(Bot bot, BotAddLicenseRequest request) {
ArgumentNullException.ThrowIfNull(bot);
ArgumentNullException.ThrowIfNull(request);
Dictionary<uint, AddLicenseResult>? apps = null;
Dictionary<uint, AddLicenseResult>? packages = null;
if (request.Apps != null) {
apps = new Dictionary<uint, AddLicenseResult>(request.Apps.Count);
foreach (uint appID in request.Apps) {
if (!bot.IsConnectedAndLoggedOn) {
apps[appID] = new AddLicenseResult(EResult.Timeout, EPurchaseResultDetail.Timeout);
continue;
}
(EResult result, IReadOnlyCollection<uint>? grantedApps, IReadOnlyCollection<uint>? grantedPackages) = await bot.Actions.AddFreeLicenseApp(appID).ConfigureAwait(false);
apps[appID] = new AddLicenseResult(result, (grantedApps?.Count > 0) || (grantedPackages?.Count > 0) ? EPurchaseResultDetail.NoDetail : EPurchaseResultDetail.InvalidData);
}
}
if (request.Packages != null) {
packages = new Dictionary<uint, AddLicenseResult>(request.Packages.Count);
foreach (uint subID in request.Packages) {
if (!bot.IsConnectedAndLoggedOn) {
packages[subID] = new AddLicenseResult(EResult.Timeout, EPurchaseResultDetail.Timeout);
continue;
}
(EResult result, EPurchaseResultDetail purchaseResultDetail) = await bot.Actions.AddFreeLicensePackage(subID).ConfigureAwait(false);
packages[subID] = new AddLicenseResult(result, purchaseResultDetail);
}
}
return new BotAddLicenseResponse(apps, packages);
}
}

View File

@@ -0,0 +1,58 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using ArchiSteamFarm.IPC.Responses;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Diagnostics.HealthChecks;
namespace ArchiSteamFarm.IPC.Controllers.Api;
[ApiController]
[Produces("application/json")]
[Route("/HealthCheck")]
public sealed class HealthCheckController : ControllerBase {
private readonly HealthCheckService HealthCheckService;
public HealthCheckController(HealthCheckService healthCheckService) {
ArgumentNullException.ThrowIfNull(healthCheckService);
HealthCheckService = healthCheckService;
}
[HttpGet]
[ProducesResponseType(typeof(HealthCheckResponse), (int) HttpStatusCode.OK)]
[ProducesResponseType(typeof(HealthCheckResponse), (int) HttpStatusCode.ServiceUnavailable)]
public async Task<IActionResult> Get() {
CancellationToken cancellationToken = HttpContext.RequestAborted;
HealthReport report = await HealthCheckService.CheckHealthAsync(cancellationToken).ConfigureAwait(false);
HealthCheckResponse response = new(report);
return response.Status == HealthStatus.Healthy ? Ok(response) : StatusCode((int) HttpStatusCode.ServiceUnavailable, response);
}
}

View File

@@ -0,0 +1,45 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using JetBrains.Annotations;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Models;
namespace ArchiSteamFarm.IPC.Integration;
[PublicAPI]
public sealed class SwaggerSecurityCriticalAttribute : CustomSwaggerAttribute {
private const string ExtensionName = "x-security-critical";
public override void Apply(OpenApiSchema schema) {
ArgumentNullException.ThrowIfNull(schema);
if (schema.Items is { Reference: null }) {
schema.Items.AddExtension(ExtensionName, new OpenApiBoolean(true));
} else {
schema.AddExtension(ExtensionName, new OpenApiBoolean(true));
}
}
}

View File

@@ -0,0 +1,46 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
namespace ArchiSteamFarm.IPC.Requests;
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
public sealed class BotAddLicenseRequest {
/// <summary>
/// A collection (set) of apps (appIDs) to ask license for.
/// </summary>
[JsonInclude]
public ImmutableList<uint>? Apps { get; private init; }
/// <summary>
/// A collection (set) of packages (subIDs) to ask license for.
/// </summary>
[JsonInclude]
public ImmutableList<uint>? Packages { get; private init; }
[JsonConstructor]
private BotAddLicenseRequest() { }
}

View File

@@ -36,7 +36,7 @@ public sealed class BotRedeemRequest {
[JsonInclude]
[JsonRequired]
[Required]
public ImmutableHashSet<string> KeysToRedeem { get; private init; } = [];
public ImmutableList<string> KeysToRedeem { get; private init; } = [];
[JsonConstructor]
private BotRedeemRequest() { }

View File

@@ -0,0 +1,55 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using SteamKit2;
namespace ArchiSteamFarm.IPC.Responses;
public sealed class AddLicenseResult {
[JsonInclude]
[JsonRequired]
[Required]
public EPurchaseResultDetail PurchaseResultDetail { get; private init; }
[JsonInclude]
[JsonRequired]
[Required]
public EResult Result { get; private init; }
internal AddLicenseResult(EResult result, EPurchaseResultDetail purchaseResultDetail) {
if (!Enum.IsDefined(result)) {
throw new InvalidEnumArgumentException(nameof(result), (int) result, typeof(EResult));
}
if (!Enum.IsDefined(purchaseResultDetail)) {
throw new InvalidEnumArgumentException(nameof(purchaseResultDetail), (int) purchaseResultDetail, typeof(EPurchaseResultDetail));
}
Result = result;
PurchaseResultDetail = purchaseResultDetail;
}
}

View File

@@ -0,0 +1,47 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
namespace ArchiSteamFarm.IPC.Responses;
public sealed class BotAddLicenseResponse {
/// <summary>
/// A collection (set) of apps (appIDs) to ask license for.
/// </summary>
[JsonInclude]
public ImmutableDictionary<uint, AddLicenseResult>? Apps { get; private init; }
/// <summary>
/// A collection (set) of packages (subIDs) to ask license for.
/// </summary>
[JsonInclude]
public ImmutableDictionary<uint, AddLicenseResult>? Packages { get; private init; }
internal BotAddLicenseResponse(IReadOnlyDictionary<uint, AddLicenseResult>? apps, IReadOnlyDictionary<uint, AddLicenseResult>? packages) {
Apps = apps?.ToImmutableDictionary();
Packages = packages?.ToImmutableDictionary();
}
}

View File

@@ -22,6 +22,7 @@
// limitations under the License.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
namespace ArchiSteamFarm.IPC.Responses;
@@ -31,16 +32,16 @@ public sealed class GamesToRedeemInBackgroundResponse {
/// Keys that were redeemed and not used during the process, if available.
/// </summary>
[JsonInclude]
public Dictionary<string, string>? UnusedKeys { get; private init; }
public ImmutableDictionary<string, string>? UnusedKeys { get; private init; }
/// <summary>
/// Keys that were redeemed and used during the process, if available.
/// </summary>
[JsonInclude]
public Dictionary<string, string>? UsedKeys { get; private init; }
public ImmutableDictionary<string, string>? UsedKeys { get; private init; }
internal GamesToRedeemInBackgroundResponse(Dictionary<string, string>? unusedKeys = null, Dictionary<string, string>? usedKeys = null) {
UnusedKeys = unusedKeys;
UsedKeys = usedKeys;
internal GamesToRedeemInBackgroundResponse(IReadOnlyDictionary<string, string>? unusedKeys = null, IReadOnlyDictionary<string, string>? usedKeys = null) {
UnusedKeys = unusedKeys?.ToImmutableDictionary();
UsedKeys = usedKeys?.ToImmutableDictionary();
}
}

View File

@@ -0,0 +1,46 @@
// ----------------------------------------------------------------------------------------------
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|
// ----------------------------------------------------------------------------------------------
// |
// Copyright 2015-2024 Łukasz "JustArchi" Domeradzki
// Contact: JustArchi@JustArchi.net
// |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// |
// http://www.apache.org/licenses/LICENSE-2.0
// |
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using Microsoft.Extensions.Diagnostics.HealthChecks;
namespace ArchiSteamFarm.IPC.Responses;
public sealed class HealthCheckResponse {
[JsonInclude]
[Required]
public string StatusText => Status.ToString();
[JsonInclude]
[JsonRequired]
[Required]
public HealthStatus Status { get; private init; }
internal HealthCheckResponse(HealthReport report) {
ArgumentNullException.ThrowIfNull(report);
Status = report.Status;
}
}

View File

@@ -23,6 +23,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
@@ -35,7 +36,7 @@ public sealed class LogResponse {
[JsonInclude]
[JsonRequired]
[Required]
public IReadOnlyList<string> Content { get; private init; }
public ImmutableList<string> Content { get; private init; }
/// <summary>
/// Total number of lines of the log file returned, can be used as an index for future requests.
@@ -50,6 +51,6 @@ public sealed class LogResponse {
ArgumentNullException.ThrowIfNull(content);
TotalLines = totalLines;
Content = content;
Content = content.ToImmutableList();
}
}

View File

@@ -23,6 +23,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
namespace ArchiSteamFarm.IPC.Responses;
@@ -44,7 +45,7 @@ public sealed class TypeProperties {
/// This can be used for determining main enum type if <see cref="BaseType" /> is <see cref="Enum" />.
/// </remarks>
[JsonInclude]
public HashSet<string>? CustomAttributes { get; private init; }
public ImmutableHashSet<string>? CustomAttributes { get; private init; }
/// <summary>
/// Underlying type of given type, if available.
@@ -55,9 +56,9 @@ public sealed class TypeProperties {
[JsonInclude]
public string? UnderlyingType { get; private init; }
internal TypeProperties(string? baseType = null, HashSet<string>? customAttributes = null, string? underlyingType = null) {
internal TypeProperties(string? baseType = null, IEnumerable<string>? customAttributes = null, string? underlyingType = null) {
BaseType = baseType;
CustomAttributes = customAttributes;
CustomAttributes = customAttributes?.ToImmutableHashSet();
UnderlyingType = underlyingType;
}
}

View File

@@ -23,6 +23,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
@@ -40,7 +41,7 @@ public sealed class TypeResponse {
[JsonInclude]
[JsonRequired]
[Required]
public Dictionary<string, string> Body { get; private init; }
public ImmutableDictionary<string, string> Body { get; private init; }
/// <summary>
/// Metadata of given type.
@@ -50,11 +51,11 @@ public sealed class TypeResponse {
[Required]
public TypeProperties Properties { get; private init; }
internal TypeResponse(Dictionary<string, string> body, TypeProperties properties) {
internal TypeResponse(IReadOnlyDictionary<string, string> body, TypeProperties properties) {
ArgumentNullException.ThrowIfNull(body);
ArgumentNullException.ThrowIfNull(properties);
Body = body;
Body = body.ToImmutableDictionary();
Properties = properties;
}
}

View File

@@ -1119,24 +1119,6 @@ namespace ArchiSteamFarm.Localization {
}
}
public static string WarningWeakIPCPassword {
get {
return ResourceManager.GetString("WarningWeakIPCPassword", resourceCulture);
}
}
public static string WarningWeakSteamPassword {
get {
return ResourceManager.GetString("WarningWeakSteamPassword", resourceCulture);
}
}
public static string WarningWeakCryptKey {
get {
return ResourceManager.GetString("WarningWeakCryptKey", resourceCulture);
}
}
public static string WarningTooShortCryptKey {
get {
return ResourceManager.GetString("WarningTooShortCryptKey", resourceCulture);

View File

@@ -552,9 +552,6 @@ StackTrace:
<data name="PatchingFiles" xml:space="preserve">
<value>Выпраўленне файлаў ASF...</value>
</data>

View File

@@ -684,18 +684,6 @@
<value>{0} config file ще бъде прехвърлен на последния синтаксис...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Вашата IPC парола изглежда много слаба. Помислете за избиране на по-сложна за увеличаване на сигурността. Детайли: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Вашата Steam парола за {0} изглежда много слаба. Помислете за избиране на по-сложна за увеличаване на сигурността. Детайли: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Вашият криптиращ ключ изглежда много слаб. Помислете за избиране на по-сложна за увеличаване на сигурността. Детайли: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Вашият криптиращ ключ е много къс. Препоръчваме да ползвате някой, който е поне {0} байта (символа) голям.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -451,9 +451,6 @@

View File

@@ -87,7 +87,10 @@ StackTrace:
{2}</value>
<comment>{0} will be replaced by function name, {1} will be replaced by exception message, {2} will be replaced by entire stack trace. Please note that this string should include newlines for formatting.</comment>
</data>
<data name="ErrorExitingWithNonZeroErrorCode" xml:space="preserve">
<value>Aplikace byla ukončena s chybovým kódem {0}!</value>
<comment>{0} will be replaced by error code (number)</comment>
</data>
<data name="ErrorFailingRequest" xml:space="preserve">
<value>Požadavek selhal: {0}</value>
<comment>{0} will be replaced by URL of the request</comment>
@@ -687,23 +690,14 @@ StackTrace:
<value>{0} konfigurační soubor bude převeden na nejnovější syntaxi...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Vaše IPC heslo se zdá být slabé. Zvažte výběr silnějšího hesla pro zvýšení bezpečnosti. Detaily: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Vaše Steam heslo pro '{0}' se zdá být slabé. Pro větší zabezpečení zvažte změnu hesla na silnější variantu. Detaily: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Váš šifrovací klíč se zdá být slabý. Zvažte výběr silnější varianty pro zvýšení bezpečnosti. Detaily: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Váš šifrovací klíč je příliš krátký. Doporučujeme použít ten, který je alespoň {0} bajtů (znaků) dlouhý.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>
</data>
<data name="WarningDefaultCryptKeyUsedForHashing" xml:space="preserve">
<value>Používáte {0} nastavení {1} vlastnosti, ale neposkytli jste vlastní --cryptkey. Pro zvýšení bezpečnosti byste měli poskytnout vlastní --cryptkey.</value>
<comment>{0} will be replaced by the name of a particular setting (e.g. "SCrypt"), {1} will be replaced by the name of the property (e.g. "IPCPassword")</comment>
</data>
<data name="WarningDefaultCryptKeyUsedForEncryption" xml:space="preserve">
<value>Používáte {0} nastavení vlastnosti {1}, ale neposkytuješ vlastní --cryptkey. To zcela ruší ochranu, protože ASF je nucen použít svůj vlastní (známý) klíč. Pro využití bezpečnostního přínosu nabízeného tímto nastavením, byste měli poskytnout vlastní --cryptkey.</value>
<comment>{0} will be replaced by the name of a particular setting (e.g. "AES"), {1} will be replaced by the name of the property (e.g. "SteamPassword")</comment>
@@ -749,17 +743,48 @@ StackTrace:
<data name="WarningSkipping" xml:space="preserve">
<value>Přeskakování: {0}...</value>
<comment>{0} will be replaced by text value (string) of entry being skipped.</comment>
</data>
<data name="PluginUpdatesChecking" xml:space="preserve">
<value>Kontrola aktualizací zásuvných modulů...</value>
</data>
<data name="PluginUpdateChecking" xml:space="preserve">
<value>Kontrola aktualizace zásuvného modulu {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateNotFound" xml:space="preserve">
<value>Není dostupná žádná aktualizace pro zásuvný modul {0}: {1} ≥ {2}.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNewVersionAvailable" xml:space="preserve">
<value>Nová verze zásuvného modulu {0} je k dispozici. Zvažte aktualizaci!</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFound" xml:space="preserve">
<value>Nalezena aktualizace pro zásuvný modul {0} z verze {1} na {2}...</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateInProgress" xml:space="preserve">
<value>Aktualizuji zásuvný modul {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFinished" xml:space="preserve">
<value>Aktualizace zásuvného modulu {0} byla provedena úspěšně, změny se projeví až při opětovném spuštění ASF.</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateEnabled" xml:space="preserve">
<value>Zásuvný modul {0}/{1} byl zaregistrován a je mu umožněno provádět automatické aktualizace.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="PluginUpdateDisabled" xml:space="preserve">
<value>Zásuvnému modulu {0} ({1}) byly zakázány automatické aktualizace, přestože tuto funkci podporuje.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="CustomPluginUpdatesEnabled" xml:space="preserve">
<value>Vlastní zásuvné moduly byly zaregistrovány pro automatické aktualizace. Tým ASF by vám rád připomněl, že pro vaši vlastní bezpečnost byste měli povolit automatické aktualizace pouze od důvěryhodných stran. Pokud jste to nechtěli udělat, můžete aktualizace zásuvných modulů zakázat v globální konfiguraci ASF.</value>
</data>
</root>

View File

@@ -652,9 +652,6 @@ Processens oppetid: {1}</value>
<data name="WarningRunningAsRoot" xml:space="preserve">
<value>Du forsøger at køre ASF som administrator (root). Dette medfører en betydelig sikkerhedsrisiko for din maskine, og da ASF ikke kræver root-adgang for dens drift, vi anbefaler at køre det som ikke-administrator bruger hvis det er muligt.</value>
</data>

View File

@@ -691,18 +691,6 @@ Prozesslaufzeit: {1}</value>
<value>Die Konfigurationsdatei {0} wird zur neuesten Version migriert...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Ihr IPC-Passwort scheint schwach zu sein. Für erhöhte Sicherheit sollten Sie überlegen, ein Stärkeres auszusuchen. Details: {0} Ihr</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Ihr Steam-Passwort für '{0}' scheint schwach zu sein. Für erhöhte Sicherheit sollten Sie überlegen, ein Stärkeres auszusuchen. Details: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Ihr kryptografischer Schlüssel scheint schwach zu sein. Für erhöhte Sicherheit sollten Sie überlegen, einen Stärkeren auszusuchen. Details: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Ihr kryptografischer Schlüssel ist zu kurz. Wir empfehlen einen zu verwenden, der mindestens {0} Bytes (Zeichen) lang ist.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -687,18 +687,6 @@ StackTrace:
<value>{0} αρχείο ρυθμίσεων θα μεταφερθεί στην τελευταία σύνταξη...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Ο κωδικός πρόσβασης IPC φαίνεται να είναι αδύναμος. Εξετάστε το ενδεχόμενο να επιλέξετε έναν ισχυρότερο για αυξημένη ασφάλεια. Λεπτομέρειες: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Ο κωδικός πρόσβασης Steam για το '{0}' φαίνεται να είναι αδύναμος. Εξετάστε το ενδεχόμενο να επιλέξετε έναν ισχυρότερο για αυξημένη ασφάλεια. Λεπτομέρειες: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Το κλειδί κρυπτογράφησής σας φαίνεται να είναι αδύναμο. Εξετάστε το ενδεχόμενο να επιλέξετε ένα ισχυρότερο για αυξημένη ασφάλεια. Λεπτομέρειες: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Το κλειδί κρυπτογράφησης σας είναι πολύ μικρό. Σας συνιστούμε να χρησιμοποιήσετε ένα που είναι τουλάχιστον {0} bytes (χαρακτήρες).</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -689,18 +689,6 @@ Tiempo de actividad del proceso: {1}</value>
<value>El archivo de configuración {0} será migrado a la sintaxis más reciente...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Parece que tu contraseña IPC es débil. Considera elegir una más fuerte para mayor seguridad. Detalles: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Parece que tu contraseña de Steam para '{0}' es débil. Considera elegir una más fuerte para mayor seguridad. Detalles: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Parece que tu clave de cifrado es débil. Considera elegir una más fuerte para mayor seguridad. Detalles: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Tu clave de cifrado es muy corta. Recomendamos usar una que tenga al menos {0} bytes (caracteres) de largo.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -266,9 +266,6 @@

View File

@@ -687,18 +687,6 @@ Prosessin käyttöaika: {1}</value>
<value>{0} asetustiedosto muutetaan uusimpaan syntaksiin...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>IPC-salasanasi näyttää olevan heikko. Harkitse vahvemman salasanan valitsemista turvallisuuden parantamiseksi. Yksityiskohdat: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Steam-salasanasi '{0}' näyttää olevan heikko. Harkitse vahvemman salasanan valitsemista turvallisuuden lisäämiseksi. Yksityiskohdat: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Salausavaimesi näyttää olevan heikko. Harkitse vahvemman valintaa turvallisuuden parantamiseksi. Yksityiskohdat: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Salausavaimesi on liian lyhyt. Suosittelemme käyttämään salausavainta, joka on vähintään {0} tavua (merkkiä) pitkä.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -87,7 +87,10 @@ StackTrace :
{2}</value>
<comment>{0} will be replaced by function name, {1} will be replaced by exception message, {2} will be replaced by entire stack trace. Please note that this string should include newlines for formatting.</comment>
</data>
<data name="ErrorExitingWithNonZeroErrorCode" xml:space="preserve">
<value>Erreur : Sortie avec un code d'erreur non nul {0}!</value>
<comment>{0} will be replaced by error code (number)</comment>
</data>
<data name="ErrorFailingRequest" xml:space="preserve">
<value>Échec de la requête : {0}</value>
<comment>{0} will be replaced by URL of the request</comment>
@@ -687,23 +690,14 @@ Durée de fonctionnement : {1}</value>
<value>Le fichier de configuration de {0} sera migré vers la dernière syntaxe...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Votre mot de passe IPC semble faible. Pensez à en choisir un plus fort pour plus de sécurité. Détails: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Votre mot de passe Steam pour '{0}' semble faible. Pensez à choisir un mot de passe plus fort pour plus de sécurité. Détails: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Votre clé de chiffrement semble faible. Pensez à en choisir une plus forte pour plus sécurité. Détails: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Votre clé de chiffrement est trop courte. Nous vous recommandons d'en utiliser une longue d'au moins {0} octets (caractères).</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>
</data>
<data name="WarningDefaultCryptKeyUsedForHashing" xml:space="preserve">
<value>Vous utilisez le paramètre {0} de la propriété {1} , mais vous n'avez pas fourni de --cryptkey personnalisé. Vous devriez fournir une --cryptkey personnalisée pour plus de sécurité.</value>
<comment>{0} will be replaced by the name of a particular setting (e.g. "SCrypt"), {1} will be replaced by the name of the property (e.g. "IPCPassword")</comment>
</data>
<data name="WarningDefaultCryptKeyUsedForEncryption" xml:space="preserve">
<value>Vous utilisez le paramètre {0} de la propriété {1} , mais vous n'avez pas fourni de --cryptkey personnalisé. Cela casse complètement la protection, car ASF est forcé dutiliser sa propre clé (connue). Vous devez fournir une --cryptkey personnalisée pour utiliser les avantages de sécurité offerts par ce paramètre.</value>
<comment>{0} will be replaced by the name of a particular setting (e.g. "AES"), {1} will be replaced by the name of the property (e.g. "SteamPassword")</comment>
@@ -723,7 +717,9 @@ Durée de fonctionnement : {1}</value>
<data name="ChecksumMissing" xml:space="preserve">
<value>Le serveur distant n'a pas d'informations sur la version vers laquelle nous mettons à jour. Il est possible que la version ai été publiée récemment. Refus de procéder à la mise à jour pour plus de sécurité.</value>
</data>
<data name="ChecksumTimeout" xml:space="preserve">
<value>Impossible de récupérer la somme de contrôle du binaire téléchargé - refusant de procéder à la procédure de mise à jour en ce moment comme mesure de sécurité supplémentaire.</value>
</data>
<data name="ChecksumWrong" xml:space="preserve">
<value>Le serveur distant a répondu avec une somme de contrôle différente, ce qui pourrait indiquer un téléchargement corrompu ou une attaque de type MITM. Refus de procéder à la mise à jour !</value>
</data>
@@ -746,20 +742,65 @@ Durée de fonctionnement : {1}</value>
<value>ASF ne peut pas jouer l'application {0} car elle a une restriction relative à la région pour le pays {1} qui dure jusqu'à {2}.</value>
<comment>{0} will be replaced by app ID (number), {1} will be replaced by short country code (string, such as "PL"), {2} will be replaced by human-readable date (string).</comment>
</data>
<data name="WarningUnsupportedOfficialPlugins" xml:space="preserve">
<value>Vous essayez d'exécuter le plugin officiel {0} en ne correspondant pas à la version ASF: {1} (attendu {2}). Cela suggère que vous fassiez quelque chose d'horriblement mauvais, que ce soit pour réparer votre configuration ou pour fournir --ignore-unsupported-environment argument si vous savez vraiment ce que vous faites.</value>
<comment>{0} will be replaced by plugin name, {1} will be replaced by plugin's version number, {2} will be replaced by ASF's version number.</comment>
</data>
<data name="ErrorTooManyCrashes" xml:space="preserve">
<value>Votre ASF a planté trop de fois récemment, et en raison de cela l'initialisation du processus a été désactivée. Recherchez, corrigez votre configuration, puis supprimez ASF. rash file from your config directory, or supply --ignore-unsupported-environment argument si vous savez vraiment ce que vous faites.</value>
</data>
<data name="IdlingGameNotPossiblePrivate" xml:space="preserve">
<value>L'agriculture {0} ({1}) est désactivée, car ce jeu est actuellement marqué comme privé. Si vous avez l'intention d'ASF de cultiver ce jeu, alors envisagez de modifier ses paramètres de confidentialité.</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
<data name="WarningSkipping" xml:space="preserve">
<value>Ignorer : {0}...</value>
<comment>{0} will be replaced by text value (string) of entry being skipped.</comment>
</data>
<data name="PluginUpdatesChecking" xml:space="preserve">
<value>Vérification des mises à jour du plugin...</value>
</data>
<data name="PluginUpdateChecking" xml:space="preserve">
<value>Vérification de la mise à jour du plugin {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateNotFound" xml:space="preserve">
<value>Aucune mise à jour disponible pour le plugin {0} : {1} † {2}.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNewVersionAvailable" xml:space="preserve">
<value>La nouvelle version du plugin {0} est disponible! Pensez à vous mettre à jour !</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFound" xml:space="preserve">
<value>Mise à jour du plugin {0} trouvée de la version {1} à {2}...</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNoAssetFound" xml:space="preserve">
<value>Aucune ressource disponible pour la mise à jour du plugin {0} de la version {1} vers {2}, cela signifie généralement que la mise à jour sera disponible plus tard.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateConflictingAssetsFound" xml:space="preserve">
<value>Aucune ressource n'a pu être déterminée pour la mise à jour du plugin {0} de la version {1} à {2}. Cela peut se produire si la version n'est pas encore terminée - si cela continue de se produire, vous devriez en informer le créateur du plugin.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateInProgress" xml:space="preserve">
<value>Mise à jour du plugin {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFinished" xml:space="preserve">
<value>La mise à jour du plugin {0} a réussi, les modifications seront chargées au prochain lancement d'ASF.</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateEnabled" xml:space="preserve">
<value>Le plugin {0}/{1} a été enregistré et activé pour les mises à jour automatiques.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="PluginUpdateDisabled" xml:space="preserve">
<value>Le plugin {0} ({1}) a été désactivé à partir des mises à jour automatiques, malgré la prise en charge de cette fonctionnalité.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="CustomPluginUpdatesEnabled" xml:space="preserve">
<value>Les plugins personnalisés ont été enregistrés pour les mises à jour automatiques. L'équipe ASF voudrait vous rappeler que, pour votre propre sécurité, vous ne devriez activer les mises à jour automatiques que des groupes de confiance. Si vous n'aviez pas l'intention de le faire, vous pouvez désactiver les mises à jour de plugin dans la configuration globale d'ASF.</value>
</data>
</root>

View File

@@ -687,18 +687,6 @@ StackTrace:
<value>קובץ ה-config שמיקומו {0} יועבר לתחביר העדכני ביותר...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>נראה שסיסמת ה-IPC שלך חלשה. שקול לבחור חזק יותר להגברת האבטחה. פרטים: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>נראה שהסיסמה שלך ב-Steam עבור '{0}' חלשה. שקול לבחור חזק יותר להגברת האבטחה. פרטים: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>מפתח ההצפנה שלך נראה חלש. שקול לבחור חזק יותר להגברת האבטחה. פרטים: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>מפתח ההצפנה שלך קצר מדי. אנו ממליצים להשתמש באחד שאורכו לפחות {0} בייטים (תווים).</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -682,18 +682,6 @@ Ennyi ideje fut: {1}</value>
<value>A(z) {0} konfigurációs fájl a legújabb szintaxisra kerül áttelepítésre...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Úgy tűnik, hogy az IPC jelszava gyenge. Fontolja meg, hogy erősebbet válasszon a nagyobb biztonság érdekében. Részletek: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Úgy tűnik, hogy a(z) '{0}' Steam jelszava gyenge. Fontolja meg, hogy erősebbet válasszon a nagyobb biztonság érdekében. Részletek: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Úgy tűnik, hogy a titkosítási kulcsa gyenge. Fontolja meg, hogy erősebbet válasszon a nagyobb biztonság érdekében. Részletek: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>A titkosítási kulcs túl rövid. Azt javasoljuk, hogy legalább {0} bájt (karakter) hosszúságú legyen.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -686,9 +686,6 @@ Waktu aktif proses: {1}</value>
<data name="ErrorIPNotBanned" xml:space="preserve">
<value>Alamat IP {0} tidak diblokir!</value>
<comment>{0} will be replaced by an IP address which was requested to be unbanned from using IPC</comment>

View File

@@ -688,18 +688,6 @@ Tempo di attività: {1}</value>
<value>Il file di configurazione {0} verrà migrato all'ultima sintassi...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>La tua password IPC sembra essere debole. Considera di sceglierne una più forte per una maggiore sicurezza. Dettagli: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>La tua password di Steam per '{0}' sembra essere debole. Considera di sceglierne una più forte per una maggiore sicurezza. Dettagli: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>La tua chiave di crittografia sembra essere debole. Considera di sceglierne una più forte per una maggiore sicurezza. Dettagli: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>La chiave di crittografia è troppo corta. Si consiglia di utilizzarne una lunga almeno {0} byte (caratteri).</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -684,18 +684,6 @@ Process uptime: {1}</value>
<value>{0} 設定ファイルは最新の構文に移行されます...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>IPCパスワードが弱いようです。セキュリティを強化するためにもっと強力なパスワードを選択してください。詳細: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>あなたのSteamパスワード '{0}' は脆弱なようです。セキュリティを強化するために、より強力なパスワードを選択することを検討してください。詳細: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>暗号化キーが弱いようです。セキュリティを強化するために強力なキーを選択することを検討してください。詳細: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>暗号化キーが短すぎます。少なくとも {0} バイト (文字) の長いものを使用することをお勧めします。</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -280,9 +280,6 @@

View File

@@ -690,18 +690,6 @@ StackTrace:
<value>{0} 설정 파일이 최신 버전으로 업데이트 됩니다</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>IPC 비밀번호가 쉬워 보입니다. 보안을 강화하기 위하여 더 복잡한 비밀번호를 사용하는 것을 고려해 보세요. 자세한 설명: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>'{0}'을(를) 위한 Steam 비밀번호가 쉬워 보입니다. 보안을 강화하기 위하여 더 복잡한 비밀번호를 사용하는 것을 고려해 보세요. 자세한 설명: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>암호키가 쉬워 보입니다. 보안을 강화하기 위하여 더 복잡한 암호키를 사용하는 것을 고려해 보세요. 자세한 설명: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>암호키가 너무 짧습니다. 최소한 {0} 바이트(글자수) 길이 이상의 암호키를 사용하는 것을 추천합니다.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -687,18 +687,6 @@ Proceso veikimo laikas: {1}</value>
<value>{0} konfigūracinis failas bus migruojamas į naujausią sintaksę...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Jūsų IPC aplinkos slaptažodis yra silpnas. Pagalvokite pasirinkti stipresnį slaptažodį, kad geriau apsisaugotumėte. Detalės {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Jūsų „Steam“ slaptažodis paskyrai '{0}' yra silpnas. Pagalvokite pasirinkti stipresnį slaptažodį, kad geriau apsisaugotumėte. Detalės: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Jūsų šifravimo raktas yra silpnas. Pagalvokite pasirinkti stipresnį šifravimo raktą, kad geriau apsisaugotumėte. Detalės {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Jūsų šifravimo raktas yra per trumpas. Rekomenduojame naudoti raktą, kuris yra bent {0} baitų (simbolių) ilgio.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -687,18 +687,6 @@ Darbspējas laiks: {1}</value>
<value>{0} konfigurācijas fails tiks migrēts uz jaunāko sintaksi...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>IPC parole ir vāja. Apsver iespēju izvēlēties stiprāku paroli papildu drošībai. Detaļas: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Steam parole lietotājam '{0}' ir vāja. Apsver iespēju izvēlēties stiprāku paroli papildu drošībai. Detaļas: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Šifrēšanas atslēga ir vāja. Apsver iespēju izvēlēties stiprāku paroli papildu drošībai. Detaļas: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Šifrēšanas atslēga ir pārāk īsa. Mēs iesakām izmantot tādu, kas ir vismaz {0} baitus (simbolus) gara.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -683,18 +683,6 @@ Proces uptime: {1}</value>
<value>{0} configuratiebestand zal worden gemigreerd naar de laatste syntaxis...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Uw IPC wachtwoord is zwak. Vanwege beveiliging redenen zal het veiliger zijn om een sterker wachtwoord te kiezen. Details: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Je Steam wachtwoord voor '{0}' lijkt zwak te zijn. Overweeg om een sterker wachtwoord te kiezen voor betere veiligheid. Details: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Uw IPC wachtwoord is zwak. Vanwege beveiliging redenen zal het veiliger zijn om een sterker wachtwoord te kiezen. Details: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Uw encryptiesleutel is te kort. We raden u aan om er één te gebruiken die minstens {0} bytes (tekens) lang is.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -87,37 +87,79 @@ StackTrace:
{2}</value>
<comment>{0} will be replaced by function name, {1} will be replaced by exception message, {2} will be replaced by entire stack trace. Please note that this string should include newlines for formatting.</comment>
</data>
<data name="ErrorExitingWithNonZeroErrorCode" xml:space="preserve">
<value>Avslutter med {0} feilkode!</value>
<comment>{0} will be replaced by error code (number)</comment>
</data>
<data name="ErrorFailingRequest" xml:space="preserve">
<value>Forespørsel feiler: {0}</value>
<comment>{0} will be replaced by URL of the request</comment>
</data>
<data name="ErrorGlobalConfigNotLoaded" xml:space="preserve">
<value>Global konfigurasjon kunne ikke lastes. Kontroller at {0} eksisterer og er gyldig! Følg "setting up" guide på wiki hvis du er forvirret.</value>
<comment>{0} will be replaced by file's path</comment>
</data>
<data name="ErrorIsInvalid" xml:space="preserve">
<value>{0} er ugyldig!</value>
<comment>{0} will be replaced by object's name</comment>
</data>
<data name="ErrorNoBotsDefined" xml:space="preserve">
<value>Ingen bots er definert. Har du glemt å konfigurere din ASF? Følg "setting up"-guide på wikien dersom du er forvirret.</value>
</data>
<data name="ErrorObjectIsNull" xml:space="preserve">
<value>{0} er null!</value>
<comment>{0} will be replaced by object's name</comment>
</data>
<data name="ErrorParsingObject" xml:space="preserve">
<value>Parsing {0} feilet!</value>
<comment>{0} will be replaced by object's name</comment>
</data>
<data name="ErrorRequestFailedTooManyTimes" xml:space="preserve">
<value>Forespørsel mislyktes etter {0} forsøk!</value>
<comment>{0} will be replaced by maximum number of tries</comment>
</data>
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Kunne ikke sjekke den nyeste versjonen!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Kunne ikke fortsette med oppdateringen fordi det ikke er noen ressurs tilknyttet den kjørende versjonen! Automatisk oppdatering til den versjonen er ikke mulig.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Kunne ikke fortsette med en oppdatering fordi den versjonen inkluderer ingen ressurser!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Mottok en forespørsel for brukerinnputt, men prosessen kjører i hodeløs-modus!</value>
</data>
<data name="Exiting" xml:space="preserve">
<value>Avslutter...</value>
</data>
<data name="WarningFailed" xml:space="preserve">
<value>Mislykket!</value>
</data>
<data name="GlobalConfigChanged" xml:space="preserve">
<value>Global konfigurasjonsfil er endret!</value>
</data>
<data name="ErrorGlobalConfigRemoved" xml:space="preserve">
<value>Global konfigurasjonsfil er fjernet!</value>
</data>
<data name="IgnoringTrade" xml:space="preserve">
<value>Ignorerer handel: {0}</value>
<comment>{0} will be replaced by trade number</comment>
</data>
<data name="LoggingIn" xml:space="preserve">
<value>Logger inn på {0}...</value>
<comment>{0} will be replaced by service's name</comment>
</data>
<data name="NoBotsAreRunning" xml:space="preserve">
<value>Ingen bots kjører, avslutter...</value>
</data>
<data name="RefreshingOurSession" xml:space="preserve">
<value>Oppdaterer økten!</value>
</data>
<data name="RejectingTrade" xml:space="preserve">
<value>Avviser handel: {0}</value>
<comment>{0} will be replaced by trade number</comment>
</data>
<data name="Restarting" xml:space="preserve">
<value>Restarter...</value>
</data>
@@ -127,15 +169,22 @@ StackTrace:
<data name="Success" xml:space="preserve">
<value>Suksess!</value>
</data>
<data name="UnlockingParentalAccount" xml:space="preserve">
<value>Låse opp foreldrekonto...</value>
</data>
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Ser etter ny versjon...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Laster ned ny versjon: {0} ({1} MB)... Mens du venter kan du kanskje vurdere å donere om du setter pris på arbeidet vårt! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Oppdateringsprosessen er ferdig!</value>
</data>
<data name="UpdateNewVersionAvailable" xml:space="preserve">
<value>Ny ASF-versjon er tilgjengelig! Vurder å oppdatere!</value>
</data>
@@ -344,9 +393,6 @@ StackTrace:

View File

@@ -690,18 +690,6 @@ Czas procesu: {1}</value>
<value>{0} plik konfiguracyjny zostanie przeniesiony do najnowszej składni...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Twoje hasło IPC wydaje się słabe. Rozważ wybór silniejszego dla zwiększenia bezpieczeństwa. Szczegóły: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Twoje hasło Steam dla '{0}' wydaje się słabe. Rozważ wybór silniejszego dla zwiększenia bezpieczeństwa. Szczegóły: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Twój klucz szyfrowania wydaje się słaby. Rozważ wybór silniejszego dla zwiększenia bezpieczeństwa. Szczegóły: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Twój klucz szyfrowania jest zbyt krótki. Zalecamy użyć takiego, który ma co najmniej {0} bajtów (znaków).</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -690,18 +690,6 @@ Tempo de execução: {1}</value>
<value>O arquivo de configuração {0} será migrado para a última sintaxe...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>A senha do servidor IPC é muito fraca. Escolha uma senha mais forte para aumentar a segurança. Detalhes: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>A senha da conta Steam "{0}" é muito fraca. Escolha uma senha mais forte para aumentar a segurança. Detalhes: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>A chave de criptografia é muito fraca. Escolha uma senha mais forte para aumentar a segurança. Detalhes: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>A chave de criptografia é muito curta. Recomendamos usar uma chave que tenha pelo menos {0} bytes (caracteres) de comprimento.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>
@@ -770,10 +758,10 @@ Tempo de execução: {1}</value>
<comment>{0} will be replaced by text value (string) of entry being skipped.</comment>
</data>
<data name="PluginUpdatesChecking" xml:space="preserve">
<value>Procurando por atualizações dos plugins...</value>
<value>Procurando por atualizações de plugins...</value>
</data>
<data name="PluginUpdateChecking" xml:space="preserve">
<value>Verificando atualizações para o plugin {0}...</value>
<value>Verificando atualização para o plugin {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateNotFound" xml:space="preserve">
@@ -793,7 +781,7 @@ Tempo de execução: {1}</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateConflictingAssetsFound" xml:space="preserve">
<value>Nenhum recurso pôde ser determinado para a atualização do plugin {0} da versão {1} para {2}. Isso pode acontecer se a atualização ainda não estiver concluída - se isso continuar acontecendo, você deve notificar o criador do plugin sobre isso.</value>
<value>Nenhum recurso pôde ser determinado para a atualização do plugin {0} da versão {1} para {2}. Isso pode acontecer caso a atualização ainda não estiver concluída - se isso continuar acontecendo, você deve notificar o criador do plugin sobre isso.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateInProgress" xml:space="preserve">
@@ -801,7 +789,7 @@ Tempo de execução: {1}</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFinished" xml:space="preserve">
<value>A atualização do plugin {0} foi bem-sucedida. As alterações serão carregadas na próxima inicialização do ASF.</value>
<value>A atualização do plugin {0} foi bem-sucedida, as alterações serão carregadas na próxima inicialização do ASF.</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateEnabled" xml:space="preserve">

View File

@@ -687,18 +687,6 @@ Tempo de execução: {1}</value>
<value>{0} ficheiro de configuração vai ser migrado para a sintaxe mais recente...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>A tua senha IPC parece ser fraca. Considera escolher uma mais forte para uma melhor segurança. Detalhes: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>A tua senha do Steam para '{0}' parece ser fraca. Considera escolher uma mais forte para uma melhor segurança. Detalhes: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>A tua chave de encriptação parece ser fraca. Considera escolher uma mais forte para uma melhor segurança. Detalhes: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>A tua chave de encriptação é demasiado curta. Recomendamos uma que seja pelo menos {0} bytes (carateres) de comprimento.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -690,18 +690,6 @@ PROCES UPTIME: {1}</value>
<value>{0} CONFIG FILE WILL BE MIGRATD 2 TEH LATEST SYNTAX...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>UR IPC PASWORD SEEMS 2 BE WEAK. CONSIDR CHOOSIN STRONGR WAN 4 INCREASD SECURITY. DETAILS: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>UR STEAM PASWORD 4 '{0}' SEEMS 2 BE WEAK. CONSIDR CHOOSIN STRONGR WAN 4 INCREASD SECURITY. DETAILS: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>UR ENCRYPSHUN KEY SEEMS 2 BE WEAK. CONSIDR CHOOSIN STRONGR WAN 4 INCREASD SECURITY. DETAILS: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>UR ENCRYPSHUN KEY IZ 2 SHORT. WE RECOMMEND 2 USE WAN DAT IZ AT LEAST {0} BYTEZ (CHARACTERS) LONG.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -690,18 +690,6 @@ Process uptime: {1}</value>
<value>{0} config file will be migrated to the latest syntax...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Your IPC password seems to be weak. Consider choosing a stronger one for increased security. Details: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Your Steam password for '{0}' seems to be weak. Consider choosing a stronger one for increased security. Details: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Your encryption key seems to be weak. Consider choosing a stronger one for increased security. Details: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Your encryption key is too short. We recommend to use one that is at least {0} bytes (characters) long.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -87,7 +87,10 @@ StackTrace:
{2}</value>
<comment>{0} will be replaced by function name, {1} will be replaced by exception message, {2} will be replaced by entire stack trace. Please note that this string should include newlines for formatting.</comment>
</data>
<data name="ErrorExitingWithNonZeroErrorCode" xml:space="preserve">
<value>Ieşire cu codul de eroare {0}!</value>
<comment>{0} will be replaced by error code (number)</comment>
</data>
<data name="ErrorFailingRequest" xml:space="preserve">
<value>Cerere eșuată: {0}</value>
<comment>{0} will be replaced by URL of the request</comment>
@@ -186,7 +189,10 @@ StackTrace:
<value>Versiunea locală: {0} | Ultima versiune: {1}</value>
<comment>{0} will be replaced by current version, {1} will be replaced by remote version</comment>
</data>
<data name="UserInputDeviceConfirmation" xml:space="preserve">
<value>Vă rugăm să verificați aplicația mobilă Steam, ar fi trebuit să primiți o notificare de aprobare a autentificării. Tastați Y dacă ați primit și aprobat notificarea, N dacă doriți să furnizați codul: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="UserInputSteam2FA" xml:space="preserve">
<value>Te rog să introduci codul 2FA de pe autentificatorul Steam: </value>
<comment>Please note that this translation should end with space</comment>
@@ -684,35 +690,39 @@ Proces: {1}</value>
<value>Fișierul de configurare {0} va fi migrat la cea mai recentă sintaxă...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Parola dvs. IPC pare a fi slaba. Va rugam sa considerați sa alegeți o parola mai complexa. Detail: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Parola dvs. de Steam este slaba. Va rugam sa considerați sa alegeți o parola mai complexa. Detail</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Cheia dvs. de encripție este slaba. Va rugam sa considerați sa alegeți o cheie mai complexa. Detail: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Cheia dvs. de encripție este prea scurta. Va recomandam sa folosii o parola cu minim {0} caractere.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>
</data>
<data name="WarningDefaultCryptKeyUsedForHashing" xml:space="preserve">
<value>Se utilizează setarea {0} pentru proprietatea {1}, dar nu ați furnizat un --cryptkey personalizat. Puteți oferi un particularizat --cryptkey pentru o securitate sporită dacă doriți.</value>
<comment>{0} will be replaced by the name of a particular setting (e.g. "SCrypt"), {1} will be replaced by the name of the property (e.g. "IPCPassword")</comment>
</data>
<data name="WarningDefaultCryptKeyUsedForEncryption" xml:space="preserve">
<value>Utilizați setarea {0} pentru proprietatea {1}, dar nu ați furnizat un --cryptkey. Acest lucru contravine în totalitate protecției, întrucât ASF este forțat să își utilizeze propria cheie (cunoscută). Ar trebui să furnizați un --cryptkey pentru utilizarea beneficiului de securitate oferit de această setare.</value>
<comment>{0} will be replaced by the name of a particular setting (e.g. "AES"), {1} will be replaced by the name of the property (e.g. "SteamPassword")</comment>
</data>
<data name="WarningRunningAsRoot" xml:space="preserve">
<value>Dvs încercați sa rulați ASF ca administrator, ASF nu are nevoie de elevație la nivel de administrator. Pentru securitatea calculatorului dvs, va recomandam sa rulați aplicația fără permisi de administrator.</value>
</data>
<data name="WarningRunningInUnsupportedEnvironment" xml:space="preserve">
<value>Se rulează ASF într-un mediu nesuportat cu argumentul--ignore-unsupported-environment. Rețineți că nu oferim niciun fel de sprijin în acest scenariu și că îl faceți pe propriul risc. Ați fost avertizat.</value>
</data>
<data name="FetchingChecksumFromRemoteServer" xml:space="preserve">
<value>Se preia "checksum" de la serverul de la distanta...</value>
</data>
<data name="VerifyingChecksumWithRemoteServer" xml:space="preserve">
<value>Verificarea checksum al binarului descărcat în fața celui de pe serverul de la distanță...</value>
</data>
<data name="ChecksumMissing" xml:space="preserve">
<value>Serverul de la distanţă nu ştie nimic despre versiunea la care actualizăm. Această situație este posibilă în cazul în care versiunea a fost publicată recent - refuzul de a continua imediat procedura de actualizare este ca măsură de securitate suplimentară.</value>
</data>
<data name="ChecksumTimeout" xml:space="preserve">
<value>Nu s-a reușit preluarea sumei de verificare a binarului descărcat - refuzul de a continua procedura de actualizare în acest moment ca măsură suplimentară de securitate.</value>
</data>
<data name="ChecksumWrong" xml:space="preserve">
<value>Serverul de la distanță a răspuns cu un alt checksum. Acest lucru ar putea indica un atac de tip MITM. Se refuză continuarea actualizării!</value>
</data>
<data name="PatchingFiles" xml:space="preserve">
<value>Se repara fișierele ASF...</value>
</data>
@@ -724,22 +734,73 @@ Proces: {1}</value>
<value>Adresa IP {0} nu este interzisă!</value>
<comment>{0} will be replaced by an IP address which was requested to be unbanned from using IPC</comment>
</data>
<data name="WarningNoLicense" xml:space="preserve">
<value>Ați încercat să utilizați caracteristica {0} plătită, dar nu aveți un cod valid de LicenseID în configurația globală ASF. Vă rugăm să examinați configurația, deoarece funcționalitatea nu va funcționa fără detalii suplimentare.</value>
<comment>{0} will be replaced by feature name (e.g. MatchActively)</comment>
</data>
<data name="WarningRegionRestrictedPackage" xml:space="preserve">
<value>ASF nu poate juca aplicația {0} deoarece are restricții legate de regiune pentru țara {1} care durează până la {2}.</value>
<comment>{0} will be replaced by app ID (number), {1} will be replaced by short country code (string, such as "PL"), {2} will be replaced by human-readable date (string).</comment>
</data>
<data name="WarningUnsupportedOfficialPlugins" xml:space="preserve">
<value>Încercaţi să rulaţi plugin-ul oficial {0} în neconcordanţă cu versiunea ASF: {1} (aşteptat {2}). Asta sugerează că faci ceva îngrozitor de greșit, fie repară-ți configurarea sau aprovizionarea, argumentul ignorat pentru mediu dacă știi cu adevărat ce faci.</value>
<comment>{0} will be replaced by plugin name, {1} will be replaced by plugin's version number, {2} will be replaced by ASF's version number.</comment>
</data>
<data name="ErrorTooManyCrashes" xml:space="preserve">
<value>ASF-ul tău s-a bușit de prea multe ori recent, și din cauza faptului că inițializarea procesului a fost dezactivată. Fie investigați, reparați configurarea, apoi eliminați ASF.crash din directorul de configurare, sau furnizați argumentul --ignore-unsupported-environment dacă știi cu adevărat ce faci.</value>
</data>
<data name="IdlingGameNotPossiblePrivate" xml:space="preserve">
<value>Agricultura {0} ({1}) este dezactivată, deoarece jocul este în prezent marcat ca privat. Dacă intenționezi de la ASF la ferma acel joc, atunci ia în considerare schimbarea setărilor de confidențialitate.</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
<data name="WarningSkipping" xml:space="preserve">
<value>Omitere: {0}...</value>
<comment>{0} will be replaced by text value (string) of entry being skipped.</comment>
</data>
<data name="PluginUpdatesChecking" xml:space="preserve">
<value>Se caută actualizări ale plugin-ului...</value>
</data>
<data name="PluginUpdateChecking" xml:space="preserve">
<value>Se caută actualizări pentru plugin-ul {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateNotFound" xml:space="preserve">
<value>Nu este disponibilă nicio actualizare pentru plugin-ul {0}: {1} ≥ {2}.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNewVersionAvailable" xml:space="preserve">
<value>Este disponibila o noua versiune de plugin {0}! Luati in considerare actualizarea!</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFound" xml:space="preserve">
<value>S-a găsit o actualizare {0} plugin de la versiunea {1} la {2}...</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNoAssetFound" xml:space="preserve">
<value>Nici o resursă disponibilă pentru {0} actualizare plugin de la versiunea {1} la {2}, aceasta înseamnă de obicei că actualizarea va fi disponibilă mai târziu.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateConflictingAssetsFound" xml:space="preserve">
<value>Nicio resursă nu a putut fi determinată pentru actualizarea plugin-ului {0} de la versiunea {1} la {2}. Acest lucru se poate întâmpla în cazul în care versiunea nu este finalizată încă - dacă se continuă să se întâmple, trebuie să notificați creatorul plugin-ului despre acest lucru.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateInProgress" xml:space="preserve">
<value>Se actualizează plugin-ul {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFinished" xml:space="preserve">
<value>Actualizarea plugin-ului {0} a reușit, modificările vor fi încărcate la următoarea lansare ASF.</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateEnabled" xml:space="preserve">
<value>Plugin-ul {0}/{1} a fost înregistrat şi activat pentru actualizări automate.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="PluginUpdateDisabled" xml:space="preserve">
<value>Plugin-ul {0} ({1}) a fost dezactivat din actualizările automate, în ciuda susţinerii unei astfel de funcţii.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="CustomPluginUpdatesEnabled" xml:space="preserve">
<value>Au fost înregistrate plugin-uri personalizate pentru actualizări automate. Echipa ASF ar dori să vă reamintească că, pentru siguranța proprie, ar trebui să activați actualizările automate doar de la sursele de încredere. Dacă nu intenționați să faceți acest lucru, puteți dezactiva actualizările plugin-urilor în configurarea globală ASF.</value>
</data>
</root>

View File

@@ -690,18 +690,6 @@
<value>{0} файл конфигурации будет переведет на последнюю версию синтаксиса...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Ваш пароль IPC кажется ненадежным. Подумайте о том, чтобы использовать более надежный вариант для повышения безопасности. Подробности: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Ваш пароль Steam для '{0}' кажется ненадежным. Подумайте о том, чтобы использовать более надежный пароль для повышения безопасности. Подробности: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Ваш ключ шифрования кажется слабым. Подумайте о том, чтобы использовать более надежный вариант для повышения безопасности. Подробности: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Ваш ключ шифрования слишком короткий. Мы рекомендуем использовать тот, который имеет длину не менее {0} байт (символов).</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>
@@ -729,7 +717,9 @@
<data name="ChecksumMissing" xml:space="preserve">
<value>Удаленный сервер ничего не знает о выпуске, до которого мы обновляем. Такая ситуация возможна, если релиз был опубликован недавно - обновление отложено на некоторое время в качестве дополнительной меры безопасности.</value>
</data>
<data name="ChecksumTimeout" xml:space="preserve">
<value>Не удалось получить чексумму скачанного бинарника - обновление не будет продолжено в целях безопасности.</value>
</data>
<data name="ChecksumWrong" xml:space="preserve">
<value>Удаленный сервер ответил с другой контрольной суммой, это может означать поврежденную загрузку или Атаку посредника-MITM, отказ от процедуры обновления!</value>
</data>

View File

@@ -691,18 +691,6 @@ Interaktívna konzola je teraz aktívna, napíšte "c" pre vstup do príkazovéh
<value>{0} konfiguračný súbor bude prevedený na najnovšiu syntax...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Vaše IPC heslo sa zdá byť slabé. Zvážte výber silnejšieho hesla pre zvýšenie bezpečnosti. Detaily: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Vaše Steam heslo pre '{0}' se zdá byť slabé. Zvážte výber silnejšieho hesla pre zvýšenie bezpečnosti. Detaily: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Váš šifrovací kľuč se zdá byť slabý. Zvážte výber silnejšej varianty pre zvýšenie bezpečnosti. Detaily: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Váš šifrovací kľuč je príliš krátky. Doporučujeme použiť ten, ktorý je aspoň {0} bajtu (znakov) dlhý.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>

View File

@@ -690,9 +690,6 @@ Vrijeme rada procesa: {1}</value>

View File

@@ -553,9 +553,6 @@ StackTrace:

View File

@@ -558,9 +558,6 @@ StackTrace:
<data name="FetchingChecksumFromRemoteServer" xml:space="preserve">
<value>กำลังดึงข้อมูล checksum จากเซิร์ฟเวอร์ระยะไกล...</value>
</data>

View File

@@ -687,21 +687,9 @@ Süreç çalışma zamanı: {1}</value>
<comment>{0} will be replaced by internal name of the config property (e.g. "GamesPlayedWhileIdle"), {1} will be replaced by comma-separated list of appIDs that user has chosen</comment>
</data>
<data name="AutomaticFileMigration" xml:space="preserve">
<value>{0} yapılandırma dosyası en sondaki söz dizimine taşınacak...</value>
<value>{0} yapılandırma dosyası en son sürüm söz dizimine aktarılacak...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>IPC parolanız zayıf görünüyor. Daha fazla güvenlik için daha güçlü bir tane seçmeyi düşünün. Ayrıntılar: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>'{0}' için Steam parolanız zayıf görünüyor. Daha fazla güvenlik için daha güçlü bir tane seçmeyi düşünün. Ayrıntılar: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Şifreleme anahtarınız zayıf görünüyor. Daha fazla güvenlik için daha güçlü bir tane seçmeyi düşünün. Ayrıntılar: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Şifreleme anahtarınız çok kısa. En az {0} bayt (karakter) uzunluğunda bir tane kullanmanızı öneririz.</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>
@@ -729,7 +717,9 @@ Süreç çalışma zamanı: {1}</value>
<data name="ChecksumMissing" xml:space="preserve">
<value>Uzak sunucu, güncelleme yaptığımız sürüm hakkında hiçbir şey bilmiyor. Bu durum, sürüm yakın zamanda yayınlandıysa mümkündür - ek bir güvenlik önlemi olarak güncelleme prosedürüne hemen devam etmeyi reddeder.</value>
</data>
<data name="ChecksumTimeout" xml:space="preserve">
<value>İndirilen ikili dosyanın sağlama toplamı alınamadı; ek bir güvenlik önlemi olarak şu anda güncelleme prosedürüne devam etmeyi reddediyoruz.</value>
</data>
<data name="ChecksumWrong" xml:space="preserve">
<value>Uzak sunucu farklı bir sağlama sayısı ile yanıt verdi, bu güncelleme dosyalarının bozuk indiğine veya MITM saldırısına işaret olabilir, güncelleme durduruluyor!</value>
</data>
@@ -774,14 +764,43 @@ Süreç çalışma zamanı: {1}</value>
<value>{0} eklentisi için güncellemesi denetleniyor...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateNotFound" xml:space="preserve">
<value>{0} eklentisi için güncelleme mevcut değil: {1} ≥ {2}.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNewVersionAvailable" xml:space="preserve">
<value>{0} eklentisinin yeni sürümü mevcut! Güncellemeyi düşünün!</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFound" xml:space="preserve">
<value>{1} sürümünden {2} sürümüne {0} eklentisinin güncellemesi bulundu...</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNoAssetFound" xml:space="preserve">
<value>{1} sürümünden {2} sürümüne {0} eklentisinin güncellemesi için öğe mevcut değil; bu genellikle güncellemenin daha sonra mevcut olacağı anlamına gelir.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateConflictingAssetsFound" xml:space="preserve">
<value>{0} eklentisinin {1} sürümünden {2} sürümüne güncellemesi için hiçbir öğe belirlenemedi. Sürüm henüz tamamlanmadıysa bu durum meydana gelebilir; bu durum devam ederse eklentiyi oluşturan kişiye bu konuda bilgi vermelisiniz.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateInProgress" xml:space="preserve">
<value>{0} eklentisi güncelleniyor...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFinished" xml:space="preserve">
<value>{0} eklentisinin güncellenmesi başarılı oldu, değişiklikler bir sonraki ASF açılışında yüklenecek.</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateEnabled" xml:space="preserve">
<value>{0}/{1} eklentisi kaydedildi ve otomatik güncellemeler için etkinleştirildi.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="PluginUpdateDisabled" xml:space="preserve">
<value>{0} ({1}) eklentisi, bu özelliği desteklemesine rağmen otomatik güncellemelerden devre dışı bırakıldı.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="CustomPluginUpdatesEnabled" xml:space="preserve">
<value>Otomatik güncellemeler için özel eklentiler kaydedildi. ASF ekibi, kendi güvenliğiniz için yalnızca güvenilir taraflardan gelen otomatik güncellemeleri etkinleştirmeniz gerektiğini hatırlatmak ister. Bunu yapmayı planlamadıysanız ASF global yapılandırmasında eklenti güncellemelerini devre dışı bırakabilirsiniz.</value>
</data>
</root>

View File

@@ -690,18 +690,6 @@
<value>Файл конфігурації {0} буде оновлено до поточного синтаксису...</value>
<comment>{0} will be replaced with the relative path to the affected config file</comment>
</data>
<data name="WarningWeakIPCPassword" xml:space="preserve">
<value>Ваш IPC-пароль здається слабким. Подумайте про вибір міцнішого для підвищення безпеки. Подробиці: {0}</value>
<comment>{0} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakSteamPassword" xml:space="preserve">
<value>Здається, ваш пароль Steam для '{0}' ненадійний. Подумайте про вибір міцнішого для підвищення безпеки. Подробиці: {1}</value>
<comment>{0} will be replaced by the affected bot name, {1} will be replaced by additional details about the password being considered weak</comment>
</data>
<data name="WarningWeakCryptKey" xml:space="preserve">
<value>Здається, ваш ключ шифрування слабкий. Подумайте про вибір міцнішого для підвищення безпеки. Подробиці: {0}</value>
<comment>{0} will be replaced by additional details about the encryption key being considered weak</comment>
</data>
<data name="WarningTooShortCryptKey" xml:space="preserve">
<value>Ваш ключ шифрування закороткий. Ми рекомендуємо використовувати довжину принаймні {0} байтів (символів).</value>
<comment>{0} will be replaced by the number of bytes (characters) recommended</comment>
@@ -729,7 +717,9 @@
<data name="ChecksumMissing" xml:space="preserve">
<value>Віддалений сервер нічого не знає про версію, на яку ми оновлюємось. Це можливо якщо ця версія нещодавно опублікована - відмовляємось від оновлення в якості додаткового заходу безпеки.</value>
</data>
<data name="ChecksumTimeout" xml:space="preserve">
<value>Не вдалося отримати контрольну суму завантаженого бінарного файлу - відмовляємось продовжувати процедуру оновлення на цей час як додатковий захід безпеки.</value>
</data>
<data name="ChecksumWrong" xml:space="preserve">
<value>Віддалений сервер відповів з іншою контрольною сумою, це може свідчити про пошкоджене завантаження або атаку MITM, відмовляємось від процедури оновлення!</value>
</data>
@@ -763,17 +753,54 @@
<value>Фермерство {0} ({1}) вимкнено, оскільки ця гра наразі позначена як приватна. Якщо ви маєте намір з ASF фермерувати цю гру, то змініть її налаштування приватності.</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
<data name="WarningSkipping" xml:space="preserve">
<value>Пропускається: {0}...</value>
<comment>{0} will be replaced by text value (string) of entry being skipped.</comment>
</data>
<data name="PluginUpdatesChecking" xml:space="preserve">
<value>Перевірка оновлень плагінів...</value>
</data>
<data name="PluginUpdateChecking" xml:space="preserve">
<value>Перевірка оновлення для плагіна {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateNotFound" xml:space="preserve">
<value>Оновлення для плагіна {0} недоступне: {1} ≥ {2}.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNewVersionAvailable" xml:space="preserve">
<value>Доступна нова версія плагіна {0}! Рекомендуємо оновитися!</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFound" xml:space="preserve">
<value>Знайдено оновлення для плагіна {0} з версії {1} до {2}...</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateNoAssetFound" xml:space="preserve">
<value>Немає доступних ресурсів для оновлення плагіна {0} з версії {1} до {2}, що зазвичай означає, що оновлення буде доступне пізніше.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateConflictingAssetsFound" xml:space="preserve">
<value>Не вдалося визначити ресурс для оновлення плагіна {0} з версії {1} до {2}. Це може статися, якщо випуск ще не завершено - якщо ця помилка повторюється, ви повинні повідомити про це автора плагіна.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by current plugin's version, {2} will be replaced by remote plugin's version.</comment>
</data>
<data name="PluginUpdateInProgress" xml:space="preserve">
<value>Оновлення плагіна {0}...</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateFinished" xml:space="preserve">
<value>Оновлення плагіна {0} вдалося. Зміни будуть завантажені при наступному запуску ASF.</value>
<comment>{0} will be replaced by plugin name (string).</comment>
</data>
<data name="PluginUpdateEnabled" xml:space="preserve">
<value>Плагін {0}/{1} було зареєстровано і ввімкнено для автоматичних оновлень.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="PluginUpdateDisabled" xml:space="preserve">
<value>Плагін {0} ({1}) було вимкнено від автоматичних оновлень, хоча він підтримує цю функцію.</value>
<comment>{0} will be replaced by plugin name (string), {1} will be replaced by plugin assembly name (string).</comment>
</data>
<data name="CustomPluginUpdatesEnabled" xml:space="preserve">
<value>Були зареєстровані власні плагіни для автоматичних оновлень. Команда ASF хоче нагадати вам, що з метою вашої безпеки слід увімкнути автоматичні оновлення лише від довірених джерел. Якщо ви не мали на це наміру, ви можете вимкнути оновлення плагінів у загальному конфігураційному файлі ASF.</value>
</data>
</root>

Some files were not shown because too many files have changed in this diff Show More