Skip to content

Commit

Permalink
feat(common): 新增common模块 (#485)
Browse files Browse the repository at this point in the history
* feat(common): 新增common模块

* feat(common): 新增common模块
  • Loading branch information
unknowIfGuestInDream committed Apr 16, 2023
1 parent e6c8556 commit 3596fb8
Show file tree
Hide file tree
Showing 17 changed files with 635 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ core:
qe:
- qe/**

common:
- common/**

test:
- smc/src/test/**
- core/src/test/**
- qe/src/test/**
- common/src/test/**

workflow:
- .github/**
Expand All @@ -38,6 +42,7 @@ dependencies:
- smc/pom.xml
- core/pom.xml
- qe/pom.xml
- common/pom.xml

i18ns:
- any: ['**/i18n/*.properties']
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ frame: 应用主体框架(提供SPI接口)
core: 应用核心组件,包含一些共同功能
login: 登录模块(提供SPI接口)
demo: demo示例
common: 通用组件模块,用于应用模块使用
smc, qe: 个人应用(无需参考)

## 接口
Expand Down
37 changes: 37 additions & 0 deletions common/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>javafxTool</artifactId>
<groupId>com.tlcsdm</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>javafxTool-common</artifactId>
<name>common</name>
<packaging>jar</packaging>
<description>common组件</description>

<dependencies>
<dependency>
<groupId>com.tlcsdm</groupId>
<artifactId>javafxTool-frame</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
21 changes: 21 additions & 0 deletions common/src/main/java/com/tlcsdm/jfxcommon/CommonSample.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.tlcsdm.jfxcommon;

import com.tlcsdm.frame.SampleBase;

/**
* @author: unknowIfGuestInDream
* @date: 2023/4/16 11:22
*/
public abstract class CommonSample extends SampleBase {

@Override
public String getProjectName() {
return "common";
}

@Override
public String getProjectVersion() {
return "1.0.0";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* Copyright (c) 2019, 2023 unknowIfGuestInDream
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of unknowIfGuestInDream, any associated website, nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL UNKNOWIFGUESTINDREAM BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package com.tlcsdm.jfxcommon.provider;

import com.tlcsdm.frame.model.WelcomePage;
import com.tlcsdm.frame.service.FXSamplerProject;

/**
* @author unknowIfGuestInDream
*/
public class CommonSamplerProjectProvider implements FXSamplerProject {

/**
* {@inheritDoc}
*/
@Override
public String getProjectName() {
return "Common";
}

/**
* {@inheritDoc}
*/
@Override
public String getSampleBasePackage() {
return "com.tlcsdm.jfxcommon";
}

/**
* {@inheritDoc}
*/
@Override
public String getModuleName() {
return "com.tlcsdm.jfxcommon";
}

/**
* {@inheritDoc}
*/
@Override
public WelcomePage getWelcomePage() {
return null;
}

}
Loading

0 comments on commit 3596fb8

Please sign in to comment.