Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Tynab/YANLib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.2
Choose a base ref
...
head repository: Tynab/YANLib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Dec 3, 2023

  1. v3.2.2

    Tynab committed Dec 3, 2023
    Copy the full SHA
    dcfa87e View commit details
  2. Merge pull request #54 from Tynab/develop

    v3.2.2
    Tynab authored Dec 3, 2023
    Copy the full SHA
    f6d8718 View commit details
  3. v3.2.3

    Tynab committed Dec 3, 2023
    Copy the full SHA
    7565296 View commit details
  4. Merge pull request #55 from Tynab/develop

    v3.2.3
    Tynab authored Dec 3, 2023
    Copy the full SHA
    b3f4e4d View commit details

Commits on Dec 15, 2023

  1. dt norm

    Tynab committed Dec 15, 2023
    Copy the full SHA
    45da212 View commit details

Commits on Dec 17, 2023

  1. Merge pull request #56 from Tynab/main

    merge dev
    Tynab authored Dec 17, 2023
    Copy the full SHA
    63c9de2 View commit details

Commits on Dec 18, 2023

  1. 231218

    Tynab committed Dec 18, 2023
    Copy the full SHA
    67c9dce View commit details
  2. Merge pull request #57 from Tynab/develop

    Develop
    Tynab authored Dec 18, 2023
    Copy the full SHA
    c2a83f4 View commit details

Commits on Dec 20, 2023

  1. 231220

    Tynab committed Dec 20, 2023
    Copy the full SHA
    826fc42 View commit details
  2. Merge pull request #58 from Tynab/develop

    231220
    Tynab authored Dec 20, 2023
    Copy the full SHA
    ecac2ef View commit details
  3. test bool

    Tynab committed Dec 20, 2023
    Copy the full SHA
    650fa24 View commit details

Commits on Dec 22, 2023

  1. 231222

    Tynab committed Dec 22, 2023
    Copy the full SHA
    b21b256 View commit details

Commits on Jan 8, 2024

  1. todo summary

    Tynab committed Jan 8, 2024
    Copy the full SHA
    877c674 View commit details
  2. Merge pull request #59 from Tynab/develop

    Develop
    Tynab authored Jan 8, 2024
    Copy the full SHA
    534dfc7 View commit details

Commits on Jan 9, 2024

  1. todo decimal

    Tynab committed Jan 9, 2024
    Copy the full SHA
    3909ea6 View commit details
  2. Merge pull request #60 from Tynab/develop

    todo decimal
    Tynab authored Jan 9, 2024
    Copy the full SHA
    85d57d5 View commit details

Commits on Jan 17, 2024

  1. 240117

    Tynab committed Jan 17, 2024
    Copy the full SHA
    92aa325 View commit details
  2. Merge pull request #61 from Tynab/develop

    240117
    Tynab authored Jan 17, 2024
    Copy the full SHA
    c2b7b8e View commit details
  3. fix using

    Tynab committed Jan 17, 2024
    Copy the full SHA
    e990144 View commit details
  4. v4.0.0

    Tynab committed Jan 17, 2024
    Copy the full SHA
    fb8b3ac View commit details
  5. Merge pull request #62 from Tynab/develop

    Develop
    Tynab authored Jan 17, 2024
    Copy the full SHA
    c9a30c7 View commit details
  6. v4.0.1

    Tynab committed Jan 17, 2024
    Copy the full SHA
    c8ee50f View commit details

Commits on Jan 25, 2024

  1. 240125

    Tynab committed Jan 25, 2024
    Copy the full SHA
    fbaabc3 View commit details

Commits on Jan 30, 2024

  1. 230130

    Tynab committed Jan 30, 2024
    Copy the full SHA
    2c116a1 View commit details
  2. Merge pull request #63 from Tynab/develop

    Develop
    Tynab authored Jan 30, 2024
    Copy the full SHA
    46cb750 View commit details

Commits on Jan 31, 2024

  1. 240131

    Tynab committed Jan 31, 2024
    Copy the full SHA
    9b32562 View commit details
  2. Merge pull request #64 from Tynab/develop

    240131
    Tynab authored Jan 31, 2024
    Copy the full SHA
    03cbe59 View commit details
  3. roll 7

    Tynab committed Jan 31, 2024
    Copy the full SHA
    9533105 View commit details
  4. Merge pull request #65 from Tynab/develop

    roll 7
    Tynab authored Jan 31, 2024
    Copy the full SHA
    62b7ae4 View commit details
  5. Update Jenkinsfile

    Tynab committed Jan 31, 2024
    Copy the full SHA
    84efc7b View commit details
  6. Merge pull request #66 from Tynab/develop

    Update Jenkinsfile
    Tynab authored Jan 31, 2024
    Copy the full SHA
    95b423f View commit details
  7. Update Jenkinsfile

    Tynab committed Jan 31, 2024
    Copy the full SHA
    1387fcc View commit details
  8. Merge pull request #67 from Tynab/develop

    Update Jenkinsfile
    Tynab authored Jan 31, 2024
    Copy the full SHA
    e94f8c5 View commit details
  9. checkpoint

    Tynab committed Jan 31, 2024
    Copy the full SHA
    6791531 View commit details
  10. clean

    Tynab committed Jan 31, 2024
    Copy the full SHA
    7807fb6 View commit details
  11. refact server

    Tynab committed Jan 31, 2024
    Copy the full SHA
    33a8bda View commit details
  12. Merge pull request #68 from Tynab/develop

    Develop
    Tynab authored Jan 31, 2024
    Copy the full SHA
    9477b5a View commit details
  13. Copy the full SHA
    f7bb279 View commit details
  14. Merge pull request #69 from Tynab/develop

    Update YANLibHttpApiHostModule.cs
    Tynab authored Jan 31, 2024
    Copy the full SHA
    07c3d54 View commit details

Commits on Feb 1, 2024

  1. Copy the full SHA
    e3bda2a View commit details
  2. Merge pull request #70 from Tynab/develop

    Update appsettings.Production.json
    Tynab authored Feb 1, 2024
    Copy the full SHA
    6be1bd8 View commit details
  3. test cap

    Tynab committed Feb 1, 2024
    Copy the full SHA
    1fd22a7 View commit details
  4. Merge pull request #71 from Tynab/develop

    test cap
    Tynab authored Feb 1, 2024
    Copy the full SHA
    6b9180e View commit details
  5. qq

    Tynab committed Feb 1, 2024
    Copy the full SHA
    733de7f View commit details
  6. cc

    Tynab committed Feb 1, 2024
    Copy the full SHA
    b68c07b View commit details
  7. Merge pull request #72 from Tynab/main

    rebase
    Tynab authored Feb 1, 2024
    Copy the full SHA
    6716b79 View commit details
  8. try base

    Tynab committed Feb 1, 2024
    Copy the full SHA
    b179e31 View commit details
  9. Merge pull request #73 from Tynab/develop

    Develop
    Tynab authored Feb 1, 2024
    Copy the full SHA
    ea1d3b4 View commit details
  10. Update Dockerfile

    Tynab committed Feb 1, 2024
    Copy the full SHA
    9bf5438 View commit details
  11. Merge pull request #74 from Tynab/develop

    Update Dockerfile
    Tynab authored Feb 1, 2024
    Copy the full SHA
    073a948 View commit details
Showing with 9,456 additions and 6,578 deletions.
  1. +2 −1 .github/FUNDING.yml
  2. +43 −1 Jenkinsfile
  3. +23 −12 README.md
  4. +49 −0 azure-pipelines.yml
  5. +1 −0 console/YANLib.Benchmarks/Process/Library/JsonDeserializeBenchmark.cs
  6. +1 −0 console/YANLib.Benchmarks/Process/Library/JsonSerializeBenchmark.cs
  7. +5 −3 console/YANLib.Benchmarks/Program.cs
  8. +2 −3 console/YANLib.Benchmarks/YANLib.Benchmarks.csproj
  9. +46 −0 host/YANLib.HttpApi.Host/Middlewares/SwaggerBasicAuthMiddleware.cs
  10. +0 −60 host/YANLib.HttpApi.Host/Middlewares/UnauthorizedHandlerMiddleware.cs
  11. +15 −15 host/YANLib.HttpApi.Host/YANLib.HttpApi.Host.csproj
  12. +38 −86 host/YANLib.HttpApi.Host/YANLibHttpApiHostModule.cs
  13. +8 −7 host/YANLib.HttpApi.Host/appsettings.Development.json
  14. +8 −7 host/YANLib.HttpApi.Host/appsettings.Production.json
  15. +5 −0 host/YANLib.HttpApi.Host/package.json
  16. +72 −0 lib/YANLib/Core/YANBool.cs
  17. +81 −0 lib/YANLib/Core/YANBytes.cs
  18. +421 −0 lib/YANLib/Core/YANDateTime.cs
  19. +39 −0 lib/YANLib/Core/YANEnum.cs
  20. +375 −0 lib/YANLib/Core/YANEnumerable.cs
  21. +319 −0 lib/YANLib/Core/YANJson.cs
  22. +83 −0 lib/YANLib/Core/YANNum.Byte.cs
  23. +76 −0 lib/YANLib/Core/YANNum.Decimal.cs
  24. +76 −0 lib/YANLib/Core/YANNum.Double.cs
  25. +76 −0 lib/YANLib/Core/YANNum.Float.cs
  26. +83 −0 lib/YANLib/Core/YANNum.Int.cs
  27. +83 −0 lib/YANLib/Core/YANNum.Long.cs
  28. +83 −0 lib/YANLib/Core/YANNum.Nint.cs
  29. +84 −0 lib/YANLib/Core/YANNum.Nuint.cs
  30. +83 −0 lib/YANLib/Core/YANNum.Sbyte.cs
  31. +34 −0 lib/YANLib/Core/YANNum.Short.cs
  32. +34 −0 lib/YANLib/Core/YANNum.Uint.cs
  33. +35 −0 lib/YANLib/Core/YANNum.Ulong.cs
  34. +34 −0 lib/YANLib/Core/YANNum.Ushort.cs
  35. +60 −0 lib/YANLib/Core/YANNum.cs
  36. +459 −0 lib/YANLib/Core/YANObject.Property.cs
  37. +277 −0 lib/YANLib/Core/YANObject.cs
  38. +379 −0 lib/YANLib/Core/YANText.Char.cs
  39. +227 −0 lib/YANLib/Core/YANText.String.cs
  40. +271 −0 lib/YANLib/Core/YANText.cs
  41. +0 −44 lib/YANLib/Nullable/YANBool.Nullable.cs
  42. +17 −44 lib/YANLib/Nullable/YANBool.cs
  43. +0 −138 lib/YANLib/Nullable/YANDateTime.Nullable.cs
  44. +246 −79 lib/YANLib/Nullable/YANDateTime.cs
  45. +0 −101 lib/YANLib/Nullable/YANNum.Byte.Nullable.cs
  46. +9 −74 lib/YANLib/Nullable/YANNum.Byte.cs
  47. +0 −101 lib/YANLib/Nullable/YANNum.Decimal.Nullable.cs
  48. +9 −65 lib/YANLib/Nullable/YANNum.Decimal.cs
  49. +0 −101 lib/YANLib/Nullable/YANNum.Double.Nullable.cs
  50. +9 −65 lib/YANLib/Nullable/YANNum.Double.cs
  51. +0 −101 lib/YANLib/Nullable/YANNum.Float.Nullable.cs
  52. +9 −65 lib/YANLib/Nullable/YANNum.Float.cs
  53. +0 −101 lib/YANLib/Nullable/YANNum.Int.Nullable.cs
  54. +9 −65 lib/YANLib/Nullable/YANNum.Int.cs
  55. +0 −101 lib/YANLib/Nullable/YANNum.Long.Nullable.cs
  56. +9 −65 lib/YANLib/Nullable/YANNum.Long.cs
  57. +0 −101 lib/YANLib/Nullable/YANNum.Nint.Nullable.cs
  58. +9 −65 lib/YANLib/Nullable/YANNum.Nint.cs
  59. +0 −101 lib/YANLib/Nullable/YANNum.Nuint.Nullable.cs
  60. +7 −65 lib/YANLib/Nullable/YANNum.Nuint.cs
  61. +0 −101 lib/YANLib/Nullable/YANNum.Sbyte.Nullable.cs
  62. +9 −65 lib/YANLib/Nullable/YANNum.Sbyte.cs
  63. +0 −101 lib/YANLib/Nullable/YANNum.Short.Nullable.cs
  64. +9 −65 lib/YANLib/Nullable/YANNum.Short.cs
  65. +0 −101 lib/YANLib/Nullable/YANNum.Uint.Nullable.cs
  66. +9 −65 lib/YANLib/Nullable/YANNum.Uint.cs
  67. +0 −101 lib/YANLib/Nullable/YANNum.Ulong.Nullable.cs
  68. +7 −65 lib/YANLib/Nullable/YANNum.Ulong.cs
  69. +0 −101 lib/YANLib/Nullable/YANNum.Ushort.Nullable.cs
  70. +9 −64 lib/YANLib/Nullable/YANNum.Ushort.cs
  71. +342 −0 lib/YANLib/Nullable/YANText.Char.cs
  72. +83 −0 lib/YANLib/Ultimate/Core/YANBool.cs
  73. +126 −0 lib/YANLib/Ultimate/Core/YANBytes.cs
  74. +548 −0 lib/YANLib/Ultimate/Core/YANDateTime.cs
  75. +69 −0 lib/YANLib/Ultimate/Core/YANEnum.cs
  76. +411 −0 lib/YANLib/Ultimate/Core/YANEnumerable.cs
  77. +331 −0 lib/YANLib/Ultimate/Core/YANJson.cs
  78. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Byte.cs
  79. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Decimal.cs
  80. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Double.cs
  81. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Float.cs
  82. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Int.cs
  83. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Long.cs
  84. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Nint.cs
  85. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Nuint.cs
  86. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Sbyte.cs
  87. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Short.cs
  88. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Uint.cs
  89. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Ulong.cs
  90. +53 −0 lib/YANLib/Ultimate/Core/YANNum.Ushort.cs
  91. +75 −0 lib/YANLib/Ultimate/Core/YANObject.cs
  92. +170 −0 lib/YANLib/Ultimate/Core/YANText.Char.cs
  93. +162 −0 lib/YANLib/Ultimate/Core/YANText.String.cs
  94. +279 −0 lib/YANLib/Ultimate/Core/YANText.cs
  95. +69 −0 lib/YANLib/Ultimate/Nullable/YANBool.cs
  96. +0 −125 lib/YANLib/Ultimate/Nullable/YANDateTime.Nullable.cs
  97. +278 −59 lib/YANLib/Ultimate/Nullable/YANDateTime.cs
  98. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Byte.cs
  99. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Decimal.cs
  100. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Double.cs
  101. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Float.cs
  102. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Int.cs
  103. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Long.cs
  104. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Nint.cs
  105. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Nuint.cs
  106. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Sbyte.cs
  107. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Short.cs
  108. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Uint.cs
  109. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Ulong.cs
  110. +45 −0 lib/YANLib/Ultimate/Nullable/YANNum.Ushort.cs
  111. +162 −0 lib/YANLib/Ultimate/Nullable/YANText.Char.cs
  112. +0 −12 lib/YANLib/Ultimate/YANBool.cs
  113. +0 −30 lib/YANLib/Ultimate/YANBytes.cs
  114. +0 −216 lib/YANLib/Ultimate/YANDateTime.Nullable.cs
  115. +0 −111 lib/YANLib/Ultimate/YANDateTime.cs
  116. +0 −56 lib/YANLib/Ultimate/YANJson.cs
  117. +0 −78 lib/YANLib/Ultimate/YANNum.Byte.Nullable.cs
  118. +0 −51 lib/YANLib/Ultimate/YANNum.Byte.cs
  119. +0 −78 lib/YANLib/Ultimate/YANNum.Decimal.Nullable.cs
  120. +0 −51 lib/YANLib/Ultimate/YANNum.Decimal.cs
  121. +0 −78 lib/YANLib/Ultimate/YANNum.Double.Nullable.cs
  122. +0 −51 lib/YANLib/Ultimate/YANNum.Double.cs
  123. +0 −78 lib/YANLib/Ultimate/YANNum.Float.Nullable.cs
  124. +0 −51 lib/YANLib/Ultimate/YANNum.Float.cs
  125. +0 −25 lib/YANLib/YANBool.cs
  126. +0 −14 lib/YANLib/YANBytes.cs
  127. +0 −119 lib/YANLib/YANDateTime.Nullable.cs
  128. +0 −113 lib/YANLib/YANDateTime.cs
  129. +0 −10 lib/YANLib/YANEnum.cs
  130. +0 −87 lib/YANLib/YANEnumerable.cs
  131. +0 −87 lib/YANLib/YANJson.cs
  132. +3 −18 lib/YANLib/YANLib.csproj
  133. +0 −271 lib/YANLib/YANModel.Property.cs
  134. +0 −339 lib/YANLib/YANModel.cs
  135. +0 −31 lib/YANLib/YANNum.Byte.cs
  136. +0 −24 lib/YANLib/YANNum.Decimal.cs
  137. +0 −24 lib/YANLib/YANNum.Double.cs
  138. +0 −24 lib/YANLib/YANNum.Float.cs
  139. +0 −30 lib/YANLib/YANNum.Int.cs
  140. +0 −30 lib/YANLib/YANNum.Long.cs
  141. +0 −30 lib/YANLib/YANNum.Nint.cs
  142. +0 −31 lib/YANLib/YANNum.Nuint.cs
  143. +0 −30 lib/YANLib/YANNum.Sbyte.cs
  144. +0 −30 lib/YANLib/YANNum.Short.cs
  145. +0 −30 lib/YANLib/YANNum.Uint.cs
  146. +0 −31 lib/YANLib/YANNum.Ulong.cs
  147. +0 −30 lib/YANLib/YANNum.Ushort.cs
  148. +0 −47 lib/YANLib/YANNum.cs
  149. +0 −145 lib/YANLib/YANPass.cs
  150. +35 −18 lib/YANLib/YANProcess.cs
  151. +9 −7 lib/YANLib/YANRandom.cs
  152. +187 −18 lib/YANLib/YANTask.cs
  153. +0 −262 lib/YANLib/YANText.Char.cs
  154. +0 −191 lib/YANLib/YANText.String.cs
  155. +0 −251 lib/YANLib/YANText.cs
  156. +11 −0 src/YANLib.Application.Contracts/RemoteService/IRemoteService.cs
  157. +12 −0 src/YANLib.Application.Contracts/Requests/EcommerceLoginRequest.cs
  158. +5 −0 src/YANLib.Application.Contracts/Responses/CertificateResponse.cs
  159. +9 −0 src/YANLib.Application.Contracts/Responses/DeveloperResponse.cs
  160. +4 −0 src/YANLib.Application.Contracts/Responses/DeveloperTypeResponse.cs
  161. +12 −0 src/YANLib.Application.Contracts/Services/IEcommerceService.cs
  162. +4 −3 src/YANLib.Application.Contracts/YANLib.Application.Contracts.csproj
  163. +0 −6 src/YANLib.Application.Redis/Redis/ConnectionFactory/Implements/RedisConnectionFactory.cs
  164. +4 −9 src/YANLib.Application.Redis/Services/Implements/DeveloperTypeRedisService.cs
  165. +3 −2 src/YANLib.Application.Redis/YANLib.Application.Redis.csproj
  166. +1 −4 src/YANLib.Application/EsServices/DeveloperEsService.cs
  167. +1 −4 src/YANLib.Application/Handlers/AdjustCertificateHandler.cs
  168. +1 −0 src/YANLib.Application/Mappers/DeveloperTypeMapper.cs
  169. +99 −0 src/YANLib.Application/RemoteService/RemoteService.cs
  170. +1 −4 src/YANLib.Application/Services/CertificateService.cs
  171. +1 −4 src/YANLib.Application/Services/DeveloperService.cs
  172. +1 −4 src/YANLib.Application/Services/DeveloperTypeService.cs
  173. +58 −0 src/YANLib.Application/Services/EcommerceService.cs
  174. +1 −4 src/YANLib.Application/Services/YANJsonService.cs
  175. +1 −4 src/YANLib.Application/Subscribers/CreateCertificateSubscriber.cs
  176. +1 −4 src/YANLib.Application/Utilities/ElasticsearchUtil.cs
  177. +1 −4 src/YANLib.Application/Validations/CertificateValidation.cs
  178. +1 −4 src/YANLib.Application/Validations/DeveloperTypeValidation.cs
  179. +1 −12 src/YANLib.Application/Validations/DeveloperValidation.cs
  180. +35 −0 src/YANLib.Application/Validations/EcommerceValidation.cs
  181. +1 −4 src/YANLib.Application/Validations/SampleValidation.cs
  182. +5 −4 src/YANLib.Application/YANLib.Application.csproj
  183. +2 −0 src/YANLib.Domain.Shared/Localization/YANLib/vi.json
  184. +3 −3 src/YANLib.Domain.Shared/YANLib.Domain.Shared.csproj
  185. +2 −0 src/YANLib.Domain.Shared/YANLibDomainErrorCodes.cs
  186. +2 −0 src/YANLib.Domain.Shared/YANLibDomainErrorMessages.cs
  187. +2 −2 src/YANLib.Domain/YANLib.Domain.csproj
  188. +11 −0 src/YANLib.Domain/YANLibConsts.cs
  189. +0 −4 src/YANLib.EntityFrameworkCore/EntityFrameworkCore/DbContext/Implements/YANLibDbContext.cs
  190. +1 −4 src/YANLib.EntityFrameworkCore/Repositories/CertificateRepository.cs
  191. +1 −4 src/YANLib.EntityFrameworkCore/Repositories/DeveloperRepository.cs
  192. +3 −3 src/YANLib.EntityFrameworkCore/YANLib.EntityFrameworkCore.csproj
  193. +2 −2 src/YANLib.HttpApi.Client/YANLib.HttpApi.Client.csproj
  194. +2 −5 src/YANLib.HttpApi/Controllers/DeveloperController.cs
  195. +3 −6 src/YANLib.HttpApi/Controllers/DeveloperTypeController.cs
  196. +38 −0 src/YANLib.HttpApi/Controllers/EcommerceController.cs
  197. +2 −5 src/YANLib.HttpApi/Controllers/ElasticsearchController.cs
  198. +1 −5 src/YANLib.HttpApi/Controllers/IdSnowflakeController.cs
  199. +1 −5 src/YANLib.HttpApi/Controllers/YANJsonController.cs
  200. +2 −2 src/YANLib.HttpApi/YANLib.HttpApi.csproj
  201. +2 −2 src/YANLib.MongoDB/YANLib.MongoDB.csproj
  202. +0 −1 test/YANLib.Test/GlobalUsings.cs
  203. +0 −58 test/YANLib.Test/YANBoolTest.cs
  204. +23 −22 test/YANLib.Test/YANLib.Test.csproj
  205. +0 −58 test/YANLib.Test/YANNumDecimalTest.cs
  206. +0 −58 test/YANLib.Test/YANNumIntTest.cs
  207. +0 −61 test/YANLib.Test/YANNumTest.cs
3 changes: 2 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: tynab
patreon: yamiannephilim
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
@@ -10,4 +10,5 @@ liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
custom: paypal.me/yamiannephilim
44 changes: 43 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
pipeline {
agent any


environment {
// Telegram configre
TOKEN = credentials('telegram_token')
CHAT_ID = credentials('telegram_chatid')

// Telegram message
GIT_MESSAGE = sh(returnStdout: true, script: "git log -n 1 --format=%s ${GIT_COMMIT}").trim()
GIT_AUTHOR = sh(returnStdout: true, script: "git log -n 1 --format=%ae ${GIT_COMMIT}").trim()
GIT_COMMIT_SHORT = sh(returnStdout: true, script: "git rev-parse --short ${GIT_COMMIT}").trim()
GIT_INFO = "Branch: ${GIT_BRANCH}\nLast Message: ${GIT_MESSAGE}\nAuthor: ${GIT_AUTHOR}\nCommit: ${GIT_COMMIT_SHORT}"
TEXT_BREAK = '----------------------------------------'
TEXT_PRE = "${TEXT_BREAK}\n${GIT_INFO}"
TEXT_BUILD = "${JOB_NAME} is Building"
TEXT_PUSH = "${JOB_NAME} is Pushing"
TEXT_CLEAN = "${JOB_NAME} is Cleaning"
TEXT_RUN = "${JOB_NAME} is Running"

// Telegram parameters
TEXT_SUCCESS_BUILD = "${JOB_NAME} is Success"
TEXT_FAILURE_BUILD = "${JOB_NAME} is Failure"
}

stages {
stage('Build') {
steps {
sh "curl --location --request POST 'https://api.telegram.org/bot${TOKEN}/sendMessage' --form text='${TEXT_PRE}' --form chat_id='${CHAT_ID}'"
sh "curl --location --request POST 'https://api.telegram.org/bot${TOKEN}/sendMessage' --form text='${TEXT_BUILD}' --form chat_id='${CHAT_ID}'"
sh 'docker build -t yamiannephilim/yanlib:latest .'
}
}

stage('Push') {
steps {
sh "curl --location --request POST 'https://api.telegram.org/bot${TOKEN}/sendMessage' --form text='${TEXT_PUSH}' --form chat_id='${CHAT_ID}'"

withDockerRegistry(credentialsId: 'docker_hub', url: 'https://index.docker.io/v1/') {
sh 'docker push yamiannephilim/yanlib'
}
@@ -18,8 +44,11 @@ pipeline {

stage('Clean') {
steps {
sh "curl --location --request POST 'https://api.telegram.org/bot${TOKEN}/sendMessage' --form text='${TEXT_CLEAN}' --form chat_id='${CHAT_ID}'"

script {
def containerId = sh(returnStdout: true, script: 'docker ps -aqf "name=yanlib"').trim()

if (containerId) {
sh "docker stop $containerId"
sh "docker rm $containerId"
@@ -30,6 +59,7 @@ pipeline {

stage('Run') {
steps {
sh "curl --location --request POST 'https://api.telegram.org/bot${TOKEN}/sendMessage' --form text='${TEXT_RUN}' --form chat_id='${CHAT_ID}'"
sh 'docker container stop yanlib || echo "this container does not exist"'
sh 'docker network create yan || echo "this network exist"'
sh 'echo y | docker container prune'
@@ -42,5 +72,17 @@ pipeline {
always {
cleanWs()
}

success {
script {
sh "curl --location --request POST 'https://api.telegram.org/bot${TOKEN}/sendMessage' --form text='${TEXT_SUCCESS_BUILD}' --form chat_id='${CHAT_ID}'"
}
}

failure {
script {
sh "curl --location --request POST 'https://api.telegram.org/bot${TOKEN}/sendMessage' --form text='${TEXT_FAILURE_BUILD}' --form chat_id='${CHAT_ID}'"
}
}
}
}
35 changes: 23 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# YAMI AN NEPHILIM LIBRARY
YANLib is based on .NET 6.0 (LTS)
YANLib is based on .NET 6.0 (LTS).

### INSTALL
https://www.nuget.org/packages/Tynab.YANLib
@@ -8,21 +8,19 @@ PM> NuGet\Install-Package Tynab.YANLib
```

### EXTENSION
- Numeric
- Text
- Bool
- Bytes
- DateTime
- Nullable
- Model
- JSON
- Enum
- Enumerable
- Random
- JSON
- Numeric
- Text
- Object
- Nullable
- Process
- Random
- Task
- Bytes

### OTHER
- Password

[See wiki for more details](https://github.com/Tynab/YANLib/wiki)

@@ -62,7 +60,7 @@ Here are some options for configuring performance when using JsonSerializerOptio

## TEST

https://yanlib.yamiannephilim.com/api/tynab/yanlib/yanjson/yan-vs-standards?quantity=10000&hideSystem=true
https://yanlib.yamiannephilim.com/api/json/yan-vs-standards?quantity=10000&hideSystem=true

<p align='center'>
<img src='pic/0.jpg'></img>
@@ -72,3 +70,16 @@ https://yanlib.yamiannephilim.com/api/tynab/yanlib/yanjson/yan-vs-standards?quan
```c#
var dto = json.Deserialize<JsonDto>();
```

### NOTE

- Elastic.Apm... (v.1.24.x and above) is spam logs.
- DotNetCap.CAP... (v.7.x.x and above) is MongoDB error.
- Do not [Remove Unused References...] in layers:
- Host:
- Microsoft.EntityFrameworkCore.Tools
- DotNetCap.CAP...
- Serilog...
- Volo.Abp.EntityFrameworkCore.SqlServer
- Domain.Shared:
- Microsoft.Extensions.FileProviders.Embedded
49 changes: 49 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Docker
# Build and push an image to Azure Container Registry
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
- main

resources:
- repo: self

variables:
azureSubscription: 'AzureSubscription'
appName: 'yanlib'

# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: 'ce9f9676-fd62-44d0-b5f0-edbfe9efa601'
imageRepository: 'yanlib'
containerRegistry: 'yanlib.azurecr.io'
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
tag: '$(Build.BuildId)'

# Agent VM image name
vmImageName: 'ubuntu-latest'

stages:
- stage: Build
displayName: Build and push stage
jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
steps:
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
- task: AzureWebAppContainer@1
displayName: 'Azure Web App on Container Deploy'
inputs:
azureSubscription: $(azureSubscription)
appName: $(appName)
containers: $(containerRegistry)/$(imageRepository):$(tag)
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using BenchmarkDotNet.Attributes;
using YANLib.Benchmarks.Models;
using YANLib.Core;
using static Newtonsoft.Json.JsonConvert;
using static System.Guid;
using static System.Threading.Tasks.Parallel;
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using BenchmarkDotNet.Attributes;
using YANLib.Benchmarks.Models;
using YANLib.Core;
using static Newtonsoft.Json.JsonConvert;
using static System.Guid;
using static System.Threading.Tasks.Parallel;
8 changes: 5 additions & 3 deletions console/YANLib.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using static System.Console;

#if RELEASE
#if RELEASE
using YANLib.Benchmarks.Process.Common;
using YANLib.Benchmarks.Process.Library;
using static BenchmarkDotNet.Running.BenchmarkRunner;
@@ -37,4 +35,8 @@
}
#endif

#if DEBUG
using static System.Console;

_ = ReadLine();
#endif
5 changes: 2 additions & 3 deletions console/YANLib.Benchmarks/YANLib.Benchmarks.csproj
Original file line number Diff line number Diff line change
@@ -2,14 +2,13 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.10" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

46 changes: 46 additions & 0 deletions host/YANLib.HttpApi.Host/Middlewares/SwaggerBasicAuthMiddleware.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using System.Threading.Tasks;
using YANLib.Core;
using static System.Convert;
using static System.DateTime;
using static System.Net.HttpStatusCode;
using static System.StringSplitOptions;
using static System.Text.Encoding;

namespace YANLib.Middlewares;

public class SwaggerBasicAuthMiddleware(RequestDelegate next, IConfiguration configuration)
{
private readonly RequestDelegate _next = next;
private readonly IConfiguration _configuration = configuration;

public async Task Invoke(HttpContext context)
{
if (context.Request.Path.StartsWithSegments("/swagger"))
{
string authHeader = context.Request.Headers["Authorization"];

if (authHeader.IsNotWhiteSpaceAndNull() && authHeader.StartsWith("Basic "))
{
var decoded = UTF8.GetString(FromBase64String(authHeader.Split(' ', 2, RemoveEmptyEntries)[1]?.Trim()))?.Split(':', 2);

if (IsAuthorized(decoded[0], decoded[1]))
{
await _next.Invoke(context);

return;
}
}

context.Response.Headers["WWW-Authenticate"] = "Basic";
context.Response.StatusCode = Unauthorized.ToInt();
}
else
{
await _next.Invoke(context);
}
}

private bool IsAuthorized(string username, string password) => username.Equals($"{_configuration["Auth:Username"]}{Today.Day}") && password.Equals($"{_configuration["Auth:Password"]}{Now.Minute}");
}

This file was deleted.

Loading