diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cb1a3ad..064c4e7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ FastExcel 欢迎社区的每一位用户和开发者成为贡献者。无论是 ## 报告问题 -我们鼓励用户在使用 FastExcel 的过程中随时提供反馈。您可以通过 [NEW ISSUE](https://github.com/CodePhiliaX/fastexcel/issues/new/choose) 提交问题。 +我们鼓励用户在使用 FastExcel 的过程中随时提供反馈。您可以通过 [NEW ISSUE](https://github.com/fast-excel/fastexcel/issues/new/choose) 提交问题。 ### 高质量问题报告 @@ -55,14 +55,14 @@ FastExcel 欢迎社区的每一位用户和开发者成为贡献者。无论是 ### 工作区准备 确保您已注册 GitHub 账号,并按照以下步骤完成本地开发环境配置: -1. **Fork 仓库**:在 FastExcel 的 [GitHub 页面](https://github.com/CodePhiliaX/fastexcel) 点击 `Fork` 按钮,将项目复制到您的 GitHub 账户下,例如:`https://github.com//fastexcel`。 +1. **Fork 仓库**:在 FastExcel 的 [GitHub 页面](https://github.com/fast-excel/fastexcel) 点击 `Fork` 按钮,将项目复制到您的 GitHub 账户下,例如:`https://github.com//fastexcel`。 2. **克隆代码库**:运行以下命令将 Fork 的项目克隆到本地: ```bash git clone git@github.com:/fastexcel.git ``` 3. **设置上游仓库**:将官方仓库设置为 `upstream`,方便同步更新: ```bash - git remote add upstream git@github.com:CodePhiliaX/fastexcel.git + git remote add upstream git@github.com:fast-excel/fastexcel.git git remote set-url --push upstream no-pushing ``` 运行 `git remote -v` 可检查配置是否正确。 diff --git a/fastexcel-core/src/main/java/cn/idev/excel/analysis/ExcelAnalyserImpl.java b/fastexcel-core/src/main/java/cn/idev/excel/analysis/ExcelAnalyserImpl.java index 35ffa8a..4d46085 100644 --- a/fastexcel-core/src/main/java/cn/idev/excel/analysis/ExcelAnalyserImpl.java +++ b/fastexcel-core/src/main/java/cn/idev/excel/analysis/ExcelAnalyserImpl.java @@ -174,7 +174,7 @@ public class ExcelAnalyserImpl implements ExcelAnalyser { } // close csv. - // https://github.com/CodePhiliaX/fastexcel/issues/2309 + // https://github.com/fast-excel/fastexcel/issues/2309 try { if ((readWorkbookHolder instanceof CsvReadWorkbookHolder) && ((CsvReadWorkbookHolder) readWorkbookHolder).getCsvParser() != null diff --git a/fastexcel-core/src/main/java/cn/idev/excel/analysis/v03/handlers/DummyRecordHandler.java b/fastexcel-core/src/main/java/cn/idev/excel/analysis/v03/handlers/DummyRecordHandler.java index 8894a27..1c722e4 100644 --- a/fastexcel-core/src/main/java/cn/idev/excel/analysis/v03/handlers/DummyRecordHandler.java +++ b/fastexcel-core/src/main/java/cn/idev/excel/analysis/v03/handlers/DummyRecordHandler.java @@ -34,7 +34,7 @@ public class DummyRecordHandler extends AbstractXlsRecordHandler implements Igno xlsReadSheetHolder.setTempRowType(RowTypeEnum.EMPTY); } else if (record instanceof MissingCellDummyRecord) { MissingCellDummyRecord mcdr = (MissingCellDummyRecord)record; - // https://github.com/CodePhiliaX/fastexcel/issues/2236 + // https://github.com/fast-excel/fastexcel/issues/2236 // Some abnormal XLS, in the case of data already exist, or there will be a "MissingCellDummyRecord" // records, so if the existing data, empty data is ignored xlsReadSheetHolder.getCellMap().putIfAbsent(mcdr.getColumn(), diff --git a/fastexcel-core/src/main/java/cn/idev/excel/read/listener/ModelBuildEventListener.java b/fastexcel-core/src/main/java/cn/idev/excel/read/listener/ModelBuildEventListener.java index d63ad8d..ba6e1df 100644 --- a/fastexcel-core/src/main/java/cn/idev/excel/read/listener/ModelBuildEventListener.java +++ b/fastexcel-core/src/main/java/cn/idev/excel/read/listener/ModelBuildEventListener.java @@ -69,7 +69,7 @@ public class ModelBuildEventListener implements IgnoreExceptionReadListener tempCellData; /** * Read the size of the largest head in sheet head data. - * see https://github.com/CodePhiliaX/fastexcel/issues/2014 + * see https://github.com/fast-excel/fastexcel/issues/2014 */ private Integer maxNotEmptyDataHeadSize; diff --git a/fastexcel-core/src/main/java/cn/idev/excel/util/BeanMapUtils.java b/fastexcel-core/src/main/java/cn/idev/excel/util/BeanMapUtils.java index abd2d1e..1e341b0 100644 --- a/fastexcel-core/src/main/java/cn/idev/excel/util/BeanMapUtils.java +++ b/fastexcel-core/src/main/java/cn/idev/excel/util/BeanMapUtils.java @@ -17,7 +17,7 @@ public class BeanMapUtils { * BeanMap.Generator instead of this static method. * * Custom naming policy to prevent null pointer exceptions. - * see: https://github.com/CodePhiliaX/fastexcel/issues/2064 + * see: https://github.com/fast-excel/fastexcel/issues/2064 * * @param bean the JavaBean underlying the map * @return a new BeanMap instance diff --git a/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteAddExecutor.java b/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteAddExecutor.java index 545d77e..ba8f3de 100644 --- a/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteAddExecutor.java +++ b/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteAddExecutor.java @@ -102,7 +102,7 @@ public class ExcelWriteAddExecutor extends AbstractExcelWriteExecutor { if (dataIndex >= oneRowData.size()) { return; } - // fix https://github.com/CodePhiliaX/fastexcel/issues/1702 + // fix https://github.com/fast-excel/fastexcel/issues/1702 // If there is data, it is written to the next cell maxCellIndex++; @@ -196,7 +196,7 @@ public class ExcelWriteAddExecutor extends AbstractExcelWriteExecutor { writeContext, row, rowIndex, null, maxCellIndex, relativeRowIndex, Boolean.FALSE, excelContentProperty); WriteHandlerUtils.beforeCellCreate(cellWriteHandlerContext); - // fix https://github.com/CodePhiliaX/fastexcel/issues/1870 + // fix https://github.com/fast-excel/fastexcel/issues/1870 // If there is data, it is written to the next cell Cell cell = WorkBookUtil.createCell(row, maxCellIndex); cellWriteHandlerContext.setCell(cell); diff --git a/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteFillExecutor.java b/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteFillExecutor.java index 00bb41d..a52c3f5 100644 --- a/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteFillExecutor.java +++ b/fastexcel-core/src/main/java/cn/idev/excel/write/executor/ExcelWriteFillExecutor.java @@ -428,7 +428,7 @@ public class ExcelWriteFillExecutor extends AbstractExcelWriteExecutor { if (!analysisCell.getFirstRow() || !WriteDirectionEnum.VERTICAL.equals(fillConfig.getDirection())) { return; } - // fix https://github.com/CodePhiliaX/fastexcel/issues/1869 + // fix https://github.com/fast-excel/fastexcel/issues/1869 if (isOriginalCell && PoiUtils.customHeight(row)) { collectionRowHeightCache.put(currentUniqueDataFlag, row.getHeight()); return; @@ -538,7 +538,7 @@ public class ExcelWriteFillExecutor extends AbstractExcelWriteExecutor { analysisCell.getVariableList().add(variable); if (lastPrepareDataIndex == prefixIndex) { analysisCell.getPrepareDataList().add(StringUtils.EMPTY); - // fix https://github.com/CodePhiliaX/fastexcel/issues/2035 + // fix https://github.com/fast-excel/fastexcel/issues/2035 if (lastPrepareDataIndex != 0) { analysisCell.setOnlyOneVariable(Boolean.FALSE); } @@ -550,7 +550,7 @@ public class ExcelWriteFillExecutor extends AbstractExcelWriteExecutor { } lastPrepareDataIndex = suffixIndex + 1; } - // fix https://github.com/CodePhiliaX/fastexcel/issues/1552 + // fix https://github.com/fast-excel/fastexcel/issues/1552 // When read template, XLSX data may be in `is` labels, and set the time set in `v` label, lead to can't set // up successfully, so all data format to empty first. if (analysisCell != null && CollectionUtils.isNotEmpty(analysisCell.getVariableList())) { diff --git a/fastexcel-core/src/main/java/cn/idev/excel/write/handler/impl/DimensionWorkbookWriteHandler.java b/fastexcel-core/src/main/java/cn/idev/excel/write/handler/impl/DimensionWorkbookWriteHandler.java index ea96b42..04c9153 100644 --- a/fastexcel-core/src/main/java/cn/idev/excel/write/handler/impl/DimensionWorkbookWriteHandler.java +++ b/fastexcel-core/src/main/java/cn/idev/excel/write/handler/impl/DimensionWorkbookWriteHandler.java @@ -19,7 +19,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet; /** * Handle the problem of unable to write dimension. * - * https://github.com/CodePhiliaX/fastexcel/issues/1282 + * https://github.com/fast-excel/fastexcel/issues/1282 * * @author Jiaju Zhuang */ diff --git a/fastexcel-test/src/test/java/cn/idev/excel/test/core/compatibility/CompatibilityTest.java b/fastexcel-test/src/test/java/cn/idev/excel/test/core/compatibility/CompatibilityTest.java index b6c6555..2b2ee28 100644 --- a/fastexcel-test/src/test/java/cn/idev/excel/test/core/compatibility/CompatibilityTest.java +++ b/fastexcel-test/src/test/java/cn/idev/excel/test/core/compatibility/CompatibilityTest.java @@ -32,7 +32,7 @@ public class CompatibilityTest { @Test public void t01() { - // https://github.com/CodePhiliaX/fastexcel/issues/2236 + // https://github.com/fast-excel/fastexcel/issues/2236 List> list = EasyExcel.read(TestFileUtil.getPath() + "compatibility/t01.xls").sheet() .doReadSync(); Assertions.assertEquals(2, list.size()); @@ -75,7 +75,7 @@ public class CompatibilityTest { @Test public void t05() { - // https://github.com/CodePhiliaX/fastexcel/issues/1956 + // https://github.com/fast-excel/fastexcel/issues/1956 // Excel read date needs to be rounded List> list = EasyExcel .read(TestFileUtil.getPath() + "compatibility/t05.xlsx") @@ -103,7 +103,7 @@ public class CompatibilityTest { @Test public void t07() { - // https://github.com/CodePhiliaX/fastexcel/issues/2805 + // https://github.com/fast-excel/fastexcel/issues/2805 // Excel read date needs to be rounded List> list = EasyExcel .read(TestFileUtil.getPath() + "compatibility/t07.xlsx") @@ -123,7 +123,7 @@ public class CompatibilityTest { @Test public void t08() { - // https://github.com/CodePhiliaX/fastexcel/issues/2693 + // https://github.com/fast-excel/fastexcel/issues/2693 // Temporary files may be deleted if there is no operation for a long time, so they need to be recreated. File file = TestFileUtil.createNewFile("compatibility/t08.xlsx"); EasyExcel.write(file, SimpleData.class) diff --git a/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/CustomCellWriteHandler.java b/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/CustomCellWriteHandler.java index a491f88..0565e35 100644 --- a/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/CustomCellWriteHandler.java +++ b/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/CustomCellWriteHandler.java @@ -11,7 +11,7 @@ import org.apache.poi.ss.usermodel.CreationHelper; import org.apache.poi.ss.usermodel.Hyperlink; /** - * 自定义拦截器。对第一行第一列的头超链接到:https://github.com/CodePhiliaX/fastexcel + * 自定义拦截器。对第一行第一列的头超链接到:https://github.com/fast-excel/fastexcel * * @author Jiaju Zhuang */ @@ -26,7 +26,7 @@ public class CustomCellWriteHandler implements CellWriteHandler { if (BooleanUtils.isTrue(context.getHead()) && cell.getColumnIndex() == 0) { CreationHelper createHelper = context.getWriteSheetHolder().getSheet().getWorkbook().getCreationHelper(); Hyperlink hyperlink = createHelper.createHyperlink(HyperlinkType.URL); - hyperlink.setAddress("https://github.com/CodePhiliaX/fastexcel"); + hyperlink.setAddress("https://github.com/fast-excel/fastexcel"); cell.setHyperlink(hyperlink); } } diff --git a/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/WriteTest.java b/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/WriteTest.java index e05dc73..096b80d 100644 --- a/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/WriteTest.java +++ b/fastexcel-test/src/test/java/cn/idev/excel/test/demo/write/WriteTest.java @@ -255,7 +255,7 @@ public class WriteTest { imageDemoData.setString(imagePath); imageDemoData.setInputStream(inputStream); imageDemoData.setUrl(new URL( - "https://raw.githubusercontent.com/CodePhiliaX/fastexcel/master/src/test/resources/converter/img.jpg")); + "https://raw.githubusercontent.com/fast-excel/fastexcel/master/src/test/resources/converter/img.jpg")); // 这里演示 // 需要额外放入文字 @@ -328,7 +328,7 @@ public class WriteTest { writeCellDemoData.setHyperlink(hyperlink); HyperlinkData hyperlinkData = new HyperlinkData(); hyperlink.setHyperlinkData(hyperlinkData); - hyperlinkData.setAddress("https://github.com/CodePhiliaX/fastexcel"); + hyperlinkData.setAddress("https://github.com/fast-excel/fastexcel"); hyperlinkData.setHyperlinkType(HyperlinkData.HyperlinkType.URL); // 设置备注 @@ -640,7 +640,7 @@ public class WriteTest { /** * 下拉,超链接等自定义拦截器(上面几点都不符合但是要对单元格进行操作的参照这个) *

- * demo这里实现2点。1. 对第一行第一列的头超链接到:https://github.com/CodePhiliaX/fastexcel 2. 对第一列第一行和第二行的数据新增下拉框,显示 测试1 测试2 + * demo这里实现2点。1. 对第一行第一列的头超链接到:https://github.com/fast-excel/fastexcel 2. 对第一列第一行和第二行的数据新增下拉框,显示 测试1 测试2 *

* 1. 创建excel对应的实体对象 参照{@link DemoData} *

diff --git a/fastexcel-test/src/test/java/cn/idev/excel/test/temp/issue2443/Issue2443Test.java b/fastexcel-test/src/test/java/cn/idev/excel/test/temp/issue2443/Issue2443Test.java index 7e8df08..c85ae93 100644 --- a/fastexcel-test/src/test/java/cn/idev/excel/test/temp/issue2443/Issue2443Test.java +++ b/fastexcel-test/src/test/java/cn/idev/excel/test/temp/issue2443/Issue2443Test.java @@ -17,7 +17,7 @@ import org.junit.jupiter.api.Test; @Slf4j public class Issue2443Test { - //CS304 (manually written) Issue link: https://github.com/CodePhiliaX/fastexcel/issues/2443 + //CS304 (manually written) Issue link: https://github.com/fast-excel/fastexcel/issues/2443 @Test public void IssueTest1() { String fileName = TestFileUtil.getPath() + "temp/issue2443" + File.separator + "date1.xlsx"; @@ -28,7 +28,7 @@ public class Issue2443Test { })).sheet().doRead(); } - //CS304 (manually written) Issue link: https://github.com/CodePhiliaX/fastexcel/issues/2443 + //CS304 (manually written) Issue link: https://github.com/fast-excel/fastexcel/issues/2443 @Test public void IssueTest2() { String fileName = TestFileUtil.getPath() + "temp/issue2443" + File.separator + "date2.xlsx"; diff --git a/pom.xml b/pom.xml index 3c5bf3f..67f10ed 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ fastexcel-parent Fastexcel is an Excel handle tools written in Java - https://github.com/CodePhiliaX/fastexcel + https://github.com/fast-excel/fastexcel 2024