diff --git a/LICENCE b/LICENCE index 49d1b85..86f3741 100644 --- a/LICENCE +++ b/LICENCE @@ -1,4 +1,4 @@ -MIT License +MIT Licence Copyright (c) 2026 OnixByte diff --git a/docs/en-gb/projects/onixbyte-toolbox/index.mdx b/docs/en-gb/projects/onixbyte-toolbox/index.mdx index 4063d3c..b392ea8 100644 --- a/docs/en-gb/projects/onixbyte-toolbox/index.mdx +++ b/docs/en-gb/projects/onixbyte-toolbox/index.mdx @@ -2,6 +2,8 @@ title: OnixByte Toolbox --- +import { Tabs, Tab } from "@rspress/core/theme" + ## Introduction OnixByte Toolbox is a Development Kit for Java applications that provides a set of convenient, reusable tools for writing code efficiently. It is designed and maintained by OnixByte as a monorepo containing multiple purpose-built libraries, each addressing a specific development need — from common utilities and cryptography to mathematical computation and identity generation. @@ -10,40 +12,38 @@ The toolkit is available on Maven Central under the `com.onixbyte` group ID. Eac ## Modules -| Module | Artifact ID | Description | -|----------------------|-----------------------|-------------------------------------------------------| -| Common Toolbox | `common-toolbox` | Everyday utilities — AES, hashing, Base64, collections, branching, ranges | -| Crypto Toolbox | `crypto-toolbox` | Public/private key loading for RSA and ECDSA algorithms | -| Math Toolbox | `math-toolbox` | Statistical calculation, percentile analysis, quartile computation | -| Tuple | `tuple` | Generic 2-tuple and 3-tuple with immutable variants | -| Identity Generator | `identity-generator` | Snowflake-style and sequential UUID identity generation | -| Version Catalogue | `version-catalogue` | Centralised Gradle version catalogue for OnixByte projects | +| Module | Artifact ID | Description | +|--------------------|----------------------|---------------------------------------------------------------------------| +| Common Toolbox | `common-toolbox` | Everyday utilities — AES, hashing, Base64, collections, branching, ranges | +| Crypto Toolbox | `crypto-toolbox` | Public/private key loading for RSA and ECDSA algorithms | +| Math Toolbox | `math-toolbox` | Statistical calculation, percentile analysis, quartile computation | +| Tuple | `tuple` | Generic 2-tuple and 3-tuple with immutable variants | +| Identity Generator | `identity-generator` | Snowflake-style and sequential UUID identity generation | +| Version Catalogue | `version-catalogue` | Centralised Gradle version catalogue for OnixByte projects | ## Installation Add the desired module as a dependency in your build config: -**Gradle (Kotlin DSL):** + + + ```kotlin title="build.gradle.kts" + dependencies { + implementation("com.onixbyte:$artefactId:$version") + } + ``` + -```kotlin -implementation("com.onixbyte:common-toolbox:$version") -implementation("com.onixbyte:crypto-toolbox:$version") -implementation("com.onixbyte:math-toolbox:$version") -implementation("com.onixbyte:tuple:$version") -implementation("com.onixbyte:identity-generator:$version") -``` - -**Maven:** - -```xml - - com.onixbyte - common-toolbox - ${version} - -``` - -Refer to the [changelog](https://codecrafters.org.cn/devkit/changelog) for available versions. + + ```xml title="pom.xml" + + com.onixbyte + ${artefactId} + ${version} + + ``` + + ## Requirements @@ -51,4 +51,4 @@ Refer to the [changelog](https://codecrafters.org.cn/devkit/changelog) for avail ## License -OnixByte Toolbox is open-source software released under the MIT License. +OnixByte Toolbox is open-source software released under the MIT Licence. diff --git a/docs/zh-hans/projects/onixbyte-toolbox/index.mdx b/docs/zh-hans/projects/onixbyte-toolbox/index.mdx index bc5ac2d..e42f450 100644 --- a/docs/zh-hans/projects/onixbyte-toolbox/index.mdx +++ b/docs/zh-hans/projects/onixbyte-toolbox/index.mdx @@ -2,6 +2,8 @@ title: OnixByte Toolbox --- +import { Tabs, Tab } from "@rspress/core/theme" + ## 介绍 OnixByte Toolbox 是一个面向 Java 应用的开发工具包,提供了一系列便捷、可复用的工具,帮助开发者高效编写代码。它由 OnixByte 设计和维护,采用 monorepo 架构,包含多个专用库,每个库解决一个特定的开发需求 — 从通用工具类和密码学,到数学计算和标识符生成。 @@ -10,40 +12,38 @@ OnixByte Toolbox 是一个面向 Java 应用的开发工具包,提供了一系 ## 模块 -| 模块 | Artifact ID | 描述 | -|---|---|---| -| Common Toolbox | `common-toolbox` | 日常工具类 — AES 加密、哈希、Base64、集合、分支、范围 | -| Crypto Toolbox | `crypto-toolbox` | RSA 和 ECDSA 算法的公私钥加载 | -| Math Toolbox | `math-toolbox` | 统计计算、百分位数分析、四分位数计算 | -| Tuple | `tuple` | 泛型二元组和三元组,含不可变版本 | -| Identity Generator | `identity-generator` | 雪花算法和顺序 UUID 唯一标识符生成 | -| Version Catalogue | `version-catalogue` | OnixByte 项目的集中式 Gradle 版本目录 | +| 模块 | Artifact ID | 描述 | +|--------------------|----------------------|-----------------------------------| +| Common Toolbox | `common-toolbox` | 日常工具类 — AES 加密、哈希、Base64、集合、分支、范围 | +| Crypto Toolbox | `crypto-toolbox` | RSA 和 ECDSA 算法的公私钥加载 | +| Math Toolbox | `math-toolbox` | 统计计算、百分位数分析、四分位数计算 | +| Tuple | `tuple` | 泛型二元组和三元组,含不可变版本 | +| Identity Generator | `identity-generator` | 雪花算法和顺序 UUID 唯一标识符生成 | +| Version Catalogue | `version-catalogue` | OnixByte 项目的集中式 Gradle 版本目录 | ## 安装 在构建配置中添加所需模块的依赖: -**Gradle (Kotlin DSL):** + + + ```kotlin title="build.gradle.kts" + dependencies { + implementation("com.onixbyte:$artefactId:$version") + } + ``` + -```kotlin -implementation("com.onixbyte:common-toolbox:$version") -implementation("com.onixbyte:crypto-toolbox:$version") -implementation("com.onixbyte:math-toolbox:$version") -implementation("com.onixbyte:tuple:$version") -implementation("com.onixbyte:identity-generator:$version") -``` - -**Maven:** - -```xml - - com.onixbyte - common-toolbox - ${version} - -``` - -可查阅[更新日志](https://codecrafters.org.cn/devkit/changelog)了解可用版本。 + + ```xml title="pom.xml" + + com.onixbyte + ${artefactId} + ${version} + + ``` + + ## 要求 diff --git a/docs/zh-hans/projects/regions4j/index.mdx b/docs/zh-hans/projects/regions4j/index.mdx index 655db38..fdbd104 100644 --- a/docs/zh-hans/projects/regions4j/index.mdx +++ b/docs/zh-hans/projects/regions4j/index.mdx @@ -2,6 +2,8 @@ title: Regions for Java --- +import { Tabs, Tab } from "@rspress/core/theme" + ## 介绍 **regions4j** 是一个轻量级、类型安全的 Java 库,基于 ISO 3166-1 标准提供全面的世界地区元数据。它旨在简化 Java 企业应用中的国际化(i18n)、电信路由和地区数据管理工作。 @@ -30,21 +32,25 @@ title: Regions for Java ## 安装 -**Maven:** + + + ```kotlin title="build.gradle.kts" + dependencies { + implementation("com.onixbyte:regions4j:$version") + } + ``` + -```xml - - com.onixbyte - regions4j - 2025.12 - -``` - -**Gradle (Kotlin DSL):** - -```kotlin -implementation("com.onixbyte:regions4j:2025.12") -``` + + ```xml title="pom.xml" + + com.onixbyte + regions4j + ${version} + + ``` + + > **版本说明:** 该库使用日历化版本管理(`YYYY.MM`)而非语义化版本号。版本字符串如 `2025.12` 可以直观地告诉您地区数据反映的是 2025 年 12 月的 ISO 3166-1 状态。