chore: reorganize package structure in application project (#6691)

* chore: reorganize package structure in application project
pull/6673/head^2
guqing 2024-09-23 17:59:03 +08:00 committed by GitHub
parent 8b3bde050f
commit 03368281cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
147 changed files with 231 additions and 207 deletions

View File

@ -8,8 +8,8 @@ import reactor.core.publisher.Mono;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.content.Comment; import run.halo.app.core.extension.content.Comment;
import run.halo.app.core.extension.content.Reply; import run.halo.app.core.extension.content.Reply;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.metrics.CounterService; import run.halo.app.metrics.CounterService;
import run.halo.app.metrics.MeterUtils; import run.halo.app.metrics.MeterUtils;

View File

@ -17,8 +17,8 @@ import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import reactor.util.retry.Retry; import reactor.util.retry.Retry;
import run.halo.app.core.extension.content.Comment; import run.halo.app.core.extension.content.Comment;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.Extension; import run.halo.app.extension.Extension;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;

View File

@ -22,8 +22,8 @@ import reactor.core.publisher.Mono;
import reactor.util.retry.Retry; import reactor.util.retry.Retry;
import run.halo.app.core.extension.content.Comment; import run.halo.app.core.extension.content.Comment;
import run.halo.app.core.extension.content.Reply; import run.halo.app.core.extension.content.Reply;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.PageRequest; import run.halo.app.extension.PageRequest;

View File

@ -34,7 +34,7 @@ import run.halo.app.core.extension.content.Category;
import run.halo.app.core.extension.content.Post; import run.halo.app.core.extension.content.Post;
import run.halo.app.core.extension.content.Snapshot; import run.halo.app.core.extension.content.Snapshot;
import run.halo.app.core.extension.content.Tag; import run.halo.app.core.extension.content.Tag;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.MetadataOperator; import run.halo.app.extension.MetadataOperator;

View File

@ -28,7 +28,7 @@ import run.halo.app.content.Stats;
import run.halo.app.core.extension.content.Post; import run.halo.app.core.extension.content.Post;
import run.halo.app.core.extension.content.SinglePage; import run.halo.app.core.extension.content.SinglePage;
import run.halo.app.core.extension.content.Snapshot; import run.halo.app.core.extension.content.Snapshot;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.extension.Ref; import run.halo.app.extension.Ref;

View File

@ -6,7 +6,7 @@ import java.nio.file.Path;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
import org.springframework.lang.NonNull; import org.springframework.lang.NonNull;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.attachment.LocalThumbnail; import run.halo.app.core.attachment.extension.LocalThumbnail;
import run.halo.app.infra.ExternalLinkProcessor; import run.halo.app.infra.ExternalLinkProcessor;
import run.halo.app.infra.exception.NotFoundException; import run.halo.app.infra.exception.NotFoundException;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.attachment.endpoint; package run.halo.app.core.attachment.endpoint;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.attachment.endpoint; package run.halo.app.core.attachment.endpoint;
import static java.nio.file.StandardOpenOption.CREATE_NEW; import static java.nio.file.StandardOpenOption.CREATE_NEW;
import static run.halo.app.infra.utils.FileNameUtils.randomFileName; import static run.halo.app.infra.utils.FileNameUtils.randomFileName;
@ -41,6 +41,7 @@ import run.halo.app.core.extension.attachment.Attachment;
import run.halo.app.core.extension.attachment.Attachment.AttachmentSpec; import run.halo.app.core.extension.attachment.Attachment.AttachmentSpec;
import run.halo.app.core.extension.attachment.Constant; import run.halo.app.core.extension.attachment.Constant;
import run.halo.app.core.extension.attachment.Policy; import run.halo.app.core.extension.attachment.Policy;
import run.halo.app.core.extension.attachment.endpoint.AttachmentHandler;
import run.halo.app.extension.ConfigMap; import run.halo.app.extension.ConfigMap;
import run.halo.app.extension.Metadata; import run.halo.app.extension.Metadata;
import run.halo.app.infra.ExternalUrlSupplier; import run.halo.app.infra.ExternalUrlSupplier;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.attachment; package run.halo.app.core.attachment.extension;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.attachment; package run.halo.app.core.attachment.extension;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

View File

@ -38,7 +38,7 @@ import run.halo.app.core.attachment.LocalThumbnailService;
import run.halo.app.core.attachment.ThumbnailGenerator; import run.halo.app.core.attachment.ThumbnailGenerator;
import run.halo.app.core.attachment.ThumbnailSigner; import run.halo.app.core.attachment.ThumbnailSigner;
import run.halo.app.core.attachment.ThumbnailSize; import run.halo.app.core.attachment.ThumbnailSize;
import run.halo.app.core.extension.attachment.LocalThumbnail; import run.halo.app.core.attachment.extension.LocalThumbnail;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.Metadata; import run.halo.app.extension.Metadata;

View File

@ -20,7 +20,7 @@ import run.halo.app.core.attachment.ThumbnailProvider.ThumbnailContext;
import run.halo.app.core.attachment.ThumbnailService; import run.halo.app.core.attachment.ThumbnailService;
import run.halo.app.core.attachment.ThumbnailSigner; import run.halo.app.core.attachment.ThumbnailSigner;
import run.halo.app.core.attachment.ThumbnailSize; import run.halo.app.core.attachment.ThumbnailSize;
import run.halo.app.core.extension.attachment.Thumbnail; import run.halo.app.core.attachment.extension.Thumbnail;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.Metadata; import run.halo.app.extension.Metadata;

View File

@ -1,7 +1,7 @@
package run.halo.app.core.attachment.reconciler; package run.halo.app.core.attachment.reconciler;
import static org.springframework.data.domain.Sort.Order.desc; import static org.springframework.data.domain.Sort.Order.desc;
import static run.halo.app.core.extension.attachment.LocalThumbnail.REQUEST_TO_GENERATE_ANNO; import static run.halo.app.core.attachment.extension.LocalThumbnail.REQUEST_TO_GENERATE_ANNO;
import static run.halo.app.extension.MetadataUtil.nullSafeAnnotations; import static run.halo.app.extension.MetadataUtil.nullSafeAnnotations;
import static run.halo.app.extension.index.query.QueryFactory.and; import static run.halo.app.extension.index.query.QueryFactory.and;
import static run.halo.app.extension.index.query.QueryFactory.equal; import static run.halo.app.extension.index.query.QueryFactory.equal;
@ -23,9 +23,9 @@ import run.halo.app.core.attachment.AttachmentRootGetter;
import run.halo.app.core.attachment.AttachmentUtils; import run.halo.app.core.attachment.AttachmentUtils;
import run.halo.app.core.attachment.LocalThumbnailService; import run.halo.app.core.attachment.LocalThumbnailService;
import run.halo.app.core.attachment.ThumbnailGenerator; import run.halo.app.core.attachment.ThumbnailGenerator;
import run.halo.app.core.attachment.extension.LocalThumbnail;
import run.halo.app.core.extension.attachment.Attachment; import run.halo.app.core.extension.attachment.Attachment;
import run.halo.app.core.extension.attachment.Constant; import run.halo.app.core.extension.attachment.Constant;
import run.halo.app.core.extension.attachment.LocalThumbnail;
import run.halo.app.extension.ExtensionClient; import run.halo.app.extension.ExtensionClient;
import run.halo.app.extension.ExtensionUtil; import run.halo.app.extension.ExtensionUtil;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;

View File

@ -19,7 +19,7 @@ import org.springframework.web.reactive.socket.WebSocketHandler;
import org.springframework.web.server.ServerWebExchange; import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.util.pattern.PathPattern; import org.springframework.web.util.pattern.PathPattern;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.console.WebSocketUtils; import run.halo.app.infra.console.WebSocketUtils;
public class WebSocketHandlerMapping extends AbstractHandlerMapping public class WebSocketHandlerMapping extends AbstractHandlerMapping
implements WebSocketEndpointManager, InitializingBean { implements WebSocketEndpointManager, InitializingBean {

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;
@ -12,6 +12,7 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse; import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.AuthProvider; import run.halo.app.core.extension.AuthProvider;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.security.AuthProviderService; import run.halo.app.security.AuthProviderService;
import run.halo.app.security.ListedAuthProvider; import run.halo.app.security.ListedAuthProvider;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.content.Builder.contentBuilder; import static org.springdoc.core.fn.builders.content.Builder.contentBuilder;
@ -23,6 +23,7 @@ import run.halo.app.content.comment.ReplyRequest;
import run.halo.app.content.comment.ReplyService; import run.halo.app.content.comment.ReplyService;
import run.halo.app.core.extension.content.Comment; import run.halo.app.core.extension.content.Comment;
import run.halo.app.core.extension.content.Reply; import run.halo.app.core.extension.content.Reply;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.infra.utils.HaloUtils; import run.halo.app.infra.utils.HaloUtils;
import run.halo.app.infra.utils.IpAddressUtils; import run.halo.app.infra.utils.IpAddressUtils;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
@ -9,6 +9,7 @@ import org.springframework.web.reactive.function.server.RequestPredicates;
import org.springframework.web.reactive.function.server.RouterFunction; import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerResponse; import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.GroupVersion; import run.halo.app.extension.GroupVersion;
public class CustomEndpointsBuilder { public class CustomEndpointsBuilder {

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
@ -60,15 +60,16 @@ import reactor.core.scheduler.Schedulers;
import reactor.util.retry.Retry; import reactor.util.retry.Retry;
import run.halo.app.core.extension.Plugin; import run.halo.app.core.extension.Plugin;
import run.halo.app.core.extension.Setting; import run.halo.app.core.extension.Setting;
import run.halo.app.core.extension.service.PluginService; import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.core.extension.theme.SettingUtils;
import run.halo.app.extension.ConfigMap; import run.halo.app.extension.ConfigMap;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.extension.router.IListRequest; import run.halo.app.extension.router.IListRequest;
import run.halo.app.extension.router.SortableRequest; import run.halo.app.extension.router.SortableRequest;
import run.halo.app.infra.ReactiveUrlDataBufferFetcher; import run.halo.app.infra.ReactiveUrlDataBufferFetcher;
import run.halo.app.infra.utils.SettingUtils;
import run.halo.app.plugin.PluginNotFoundException; import run.halo.app.plugin.PluginNotFoundException;
import run.halo.app.plugin.PluginService;
@Slf4j @Slf4j
@Component @Component

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.content.Builder.contentBuilder; import static org.springdoc.core.fn.builders.content.Builder.contentBuilder;
@ -37,6 +37,7 @@ import run.halo.app.content.PostQuery;
import run.halo.app.content.PostRequest; import run.halo.app.content.PostRequest;
import run.halo.app.content.PostService; import run.halo.app.content.PostService;
import run.halo.app.core.extension.content.Post; import run.halo.app.core.extension.content.Post;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.MetadataUtil; import run.halo.app.extension.MetadataUtil;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
@ -12,6 +12,7 @@ import run.halo.app.content.comment.ListedReply;
import run.halo.app.content.comment.ReplyQuery; import run.halo.app.content.comment.ReplyQuery;
import run.halo.app.content.comment.ReplyService; import run.halo.app.content.comment.ReplyService;
import run.halo.app.core.extension.content.Reply; import run.halo.app.core.extension.content.Reply;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
/** /**

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.content.Builder.contentBuilder; import static org.springdoc.core.fn.builders.content.Builder.contentBuilder;
@ -33,6 +33,7 @@ import run.halo.app.content.SinglePageRequest;
import run.halo.app.content.SinglePageService; import run.halo.app.content.SinglePageService;
import run.halo.app.core.extension.content.Post; import run.halo.app.core.extension.content.Post;
import run.halo.app.core.extension.content.SinglePage; import run.halo.app.core.extension.content.SinglePage;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.MetadataUtil; import run.halo.app.extension.MetadataUtil;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static run.halo.app.extension.index.query.QueryFactory.and; import static run.halo.app.extension.index.query.QueryFactory.and;
@ -15,6 +15,7 @@ import reactor.core.publisher.Mono;
import run.halo.app.core.extension.Counter; import run.halo.app.core.extension.Counter;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.content.Post; import run.halo.app.core.extension.content.Post;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.PageRequestImpl; import run.halo.app.extension.PageRequestImpl;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
@ -25,6 +25,7 @@ import org.springframework.web.server.ResponseStatusException;
import org.springframework.web.server.ServerWebInputException; import org.springframework.web.server.ServerWebInputException;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import reactor.util.retry.Retry; import reactor.util.retry.Retry;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.ConfigMap; import run.halo.app.extension.ConfigMap;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.infra.InitializationStateGetter; import run.halo.app.infra.InitializationStateGetter;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;
@ -19,6 +19,7 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse; import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.content.Tag; import run.halo.app.core.extension.content.Tag;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.PageRequestImpl; import run.halo.app.extension.PageRequestImpl;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.content.Builder.contentBuilder; import static org.springdoc.core.fn.builders.content.Builder.contentBuilder;
@ -16,6 +16,7 @@ import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerRequest; import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse; import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.event.post.DownvotedEvent; import run.halo.app.event.post.DownvotedEvent;
import run.halo.app.event.post.UpvotedEvent; import run.halo.app.event.post.UpvotedEvent;
import run.halo.app.event.post.VisitedEvent; import run.halo.app.event.post.VisitedEvent;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.endpoint; package run.halo.app.core.endpoint.console;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
@ -70,10 +70,11 @@ import reactor.util.retry.Retry;
import run.halo.app.core.extension.Role; import run.halo.app.core.extension.Role;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.attachment.Attachment; import run.halo.app.core.extension.attachment.Attachment;
import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.core.extension.service.AttachmentService; import run.halo.app.core.extension.service.AttachmentService;
import run.halo.app.core.extension.service.EmailVerificationService; import run.halo.app.core.user.service.EmailVerificationService;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;
import run.halo.app.extension.Metadata; import run.halo.app.extension.Metadata;

View File

@ -1,8 +1,8 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;
import static run.halo.app.theme.endpoint.PublicApiUtils.toAnotherListResult; import static run.halo.app.core.endpoint.theme.PublicApiUtils.toAnotherListResult;
import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.enums.ParameterIn;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
import static org.apache.commons.lang3.BooleanUtils.isFalse; import static org.apache.commons.lang3.BooleanUtils.isFalse;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import org.springdoc.core.fn.builders.operation.Builder; import org.springdoc.core.fn.builders.operation.Builder;
import org.springframework.web.server.ServerWebExchange; import org.springframework.web.server.ServerWebExchange;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
@ -30,9 +30,9 @@ import org.springframework.web.server.ServerWebInputException;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.endpoint.CustomEndpoint; import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.core.extension.service.EmailPasswordRecoveryService; import run.halo.app.core.user.service.EmailPasswordRecoveryService;
import run.halo.app.core.extension.service.EmailVerificationService; import run.halo.app.core.user.service.EmailVerificationService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.GroupVersion; import run.halo.app.extension.GroupVersion;
import run.halo.app.infra.SystemConfigurableEnvironmentFetcher; import run.halo.app.infra.SystemConfigurableEnvironmentFetcher;
import run.halo.app.infra.SystemSetting; import run.halo.app.infra.SystemSetting;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.theme.endpoint; package run.halo.app.core.endpoint.theme;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.endpoint.uc.content; package run.halo.app.core.endpoint.uc;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

View File

@ -1,4 +1,4 @@
package run.halo.app.endpoint.uc.content; package run.halo.app.core.endpoint.uc;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.endpoint.uc.content; package run.halo.app.core.endpoint.uc;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder; import static org.springdoc.core.fn.builders.parameter.Builder.parameterBuilder;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import java.util.Map; import java.util.Map;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.BooleanUtils;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static run.halo.app.extension.ExtensionUtil.addFinalizers; import static run.halo.app.extension.ExtensionUtil.addFinalizers;
import static run.halo.app.extension.ExtensionUtil.removeFinalizers; import static run.halo.app.extension.ExtensionUtil.removeFinalizers;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
import static run.halo.app.extension.ExtensionUtil.addFinalizers; import static run.halo.app.extension.ExtensionUtil.addFinalizers;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import java.time.Duration; import java.time.Duration;
import java.util.Objects; import java.util.Objects;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static run.halo.app.core.extension.Plugin.PluginStatus.nullSafeConditions; import static run.halo.app.core.extension.Plugin.PluginStatus.nullSafeConditions;
import static run.halo.app.extension.ExtensionUtil.addFinalizers; import static run.halo.app.extension.ExtensionUtil.addFinalizers;
@ -44,7 +44,6 @@ import org.springframework.web.util.UriComponentsBuilder;
import run.halo.app.core.extension.Plugin; import run.halo.app.core.extension.Plugin;
import run.halo.app.core.extension.ReverseProxy; import run.halo.app.core.extension.ReverseProxy;
import run.halo.app.core.extension.Setting; import run.halo.app.core.extension.Setting;
import run.halo.app.core.extension.theme.SettingUtils;
import run.halo.app.extension.ConfigMap; import run.halo.app.extension.ConfigMap;
import run.halo.app.extension.ExtensionClient; import run.halo.app.extension.ExtensionClient;
import run.halo.app.extension.ExtensionUtil; import run.halo.app.extension.ExtensionUtil;
@ -59,6 +58,7 @@ import run.halo.app.infra.Condition;
import run.halo.app.infra.ConditionList; import run.halo.app.infra.ConditionList;
import run.halo.app.infra.ConditionStatus; import run.halo.app.infra.ConditionStatus;
import run.halo.app.infra.utils.PathUtils; import run.halo.app.infra.utils.PathUtils;
import run.halo.app.infra.utils.SettingUtils;
import run.halo.app.infra.utils.YamlUnstructuredLoader; import run.halo.app.infra.utils.YamlUnstructuredLoader;
import run.halo.app.plugin.PluginConst; import run.halo.app.plugin.PluginConst;
import run.halo.app.plugin.PluginProperties; import run.halo.app.plugin.PluginProperties;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static run.halo.app.extension.index.query.QueryFactory.startsWith; import static run.halo.app.extension.index.query.QueryFactory.startsWith;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static java.nio.charset.StandardCharsets.UTF_8; import static java.nio.charset.StandardCharsets.UTF_8;
import static org.apache.commons.lang3.BooleanUtils.TRUE; import static org.apache.commons.lang3.BooleanUtils.TRUE;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
import static run.halo.app.extension.ExtensionUtil.addFinalizers; import static run.halo.app.extension.ExtensionUtil.addFinalizers;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static java.util.Objects.deepEquals; import static java.util.Objects.deepEquals;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static java.nio.charset.StandardCharsets.UTF_8; import static java.nio.charset.StandardCharsets.UTF_8;
import static org.springframework.web.util.UriUtils.encodePath; import static org.springframework.web.util.UriUtils.encodePath;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static run.halo.app.extension.ExtensionUtil.addFinalizers; import static run.halo.app.extension.ExtensionUtil.addFinalizers;
import static run.halo.app.extension.ExtensionUtil.removeFinalizers; import static run.halo.app.extension.ExtensionUtil.removeFinalizers;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
@ -17,7 +17,6 @@ import org.springframework.util.FileSystemUtils;
import run.halo.app.core.extension.AnnotationSetting; import run.halo.app.core.extension.AnnotationSetting;
import run.halo.app.core.extension.Setting; import run.halo.app.core.extension.Setting;
import run.halo.app.core.extension.Theme; import run.halo.app.core.extension.Theme;
import run.halo.app.core.extension.theme.SettingUtils;
import run.halo.app.extension.ExtensionClient; import run.halo.app.extension.ExtensionClient;
import run.halo.app.extension.MetadataUtil; import run.halo.app.extension.MetadataUtil;
import run.halo.app.extension.controller.Controller; import run.halo.app.extension.controller.Controller;
@ -30,6 +29,7 @@ import run.halo.app.infra.SystemVersionSupplier;
import run.halo.app.infra.ThemeRootGetter; import run.halo.app.infra.ThemeRootGetter;
import run.halo.app.infra.exception.ThemeUninstallException; import run.halo.app.infra.exception.ThemeUninstallException;
import run.halo.app.infra.utils.JsonUtils; import run.halo.app.infra.utils.JsonUtils;
import run.halo.app.infra.utils.SettingUtils;
import run.halo.app.infra.utils.VersionUtils; import run.halo.app.infra.utils.VersionUtils;
/** /**

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.reconciler; package run.halo.app.core.reconciler;
import static run.halo.app.extension.ExtensionUtil.addFinalizers; import static run.halo.app.extension.ExtensionUtil.addFinalizers;
import static run.halo.app.extension.ExtensionUtil.defaultSort; import static run.halo.app.extension.ExtensionUtil.defaultSort;
@ -23,8 +23,8 @@ import run.halo.app.core.extension.User;
import run.halo.app.core.extension.UserConnection; import run.halo.app.core.extension.UserConnection;
import run.halo.app.core.extension.attachment.Attachment; import run.halo.app.core.extension.attachment.Attachment;
import run.halo.app.core.extension.service.AttachmentService; import run.halo.app.core.extension.service.AttachmentService;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.ExtensionClient; import run.halo.app.extension.ExtensionClient;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.controller.Controller; import run.halo.app.extension.controller.Controller;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service; package run.halo.app.core.user.service;
import static run.halo.app.extension.ExtensionUtil.defaultSort; import static run.halo.app.extension.ExtensionUtil.defaultSort;
import static run.halo.app.extension.ExtensionUtil.notDeleting; import static run.halo.app.extension.ExtensionUtil.notDeleting;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service; package run.halo.app.core.user.service;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.infra.exception.AccessDeniedException; import run.halo.app.infra.exception.AccessDeniedException;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service; package run.halo.app.core.user.service;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.infra.exception.EmailVerificationFailed; import run.halo.app.infra.exception.EmailVerificationFailed;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service; package run.halo.app.core.user.service;
import java.util.Collection; import java.util.Collection;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service; package run.halo.app.core.user.service;
import java.util.Set; import java.util.Set;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service; package run.halo.app.core.user.service;
import static org.springframework.data.domain.Sort.Order.asc; import static org.springframework.data.domain.Sort.Order.asc;
import static org.springframework.data.domain.Sort.Order.desc; import static org.springframework.data.domain.Sort.Order.desc;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service.impl; package run.halo.app.core.user.service.impl;
import java.net.URI; import java.net.URI;
import java.net.URL; import java.net.URL;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service.impl; package run.halo.app.core.user.service.impl;
import com.google.common.cache.Cache; import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheBuilder;
@ -18,8 +18,8 @@ import reactor.util.retry.Retry;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.notification.Reason; import run.halo.app.core.extension.notification.Reason;
import run.halo.app.core.extension.notification.Subscription; import run.halo.app.core.extension.notification.Subscription;
import run.halo.app.core.extension.service.EmailPasswordRecoveryService; import run.halo.app.core.user.service.EmailPasswordRecoveryService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.GroupVersion; import run.halo.app.extension.GroupVersion;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.infra.ExternalLinkProcessor; import run.halo.app.infra.ExternalLinkProcessor;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service.impl; package run.halo.app.core.user.service.impl;
import com.google.common.cache.Cache; import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheBuilder;
@ -19,8 +19,8 @@ import reactor.util.retry.Retry;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.notification.Reason; import run.halo.app.core.extension.notification.Reason;
import run.halo.app.core.extension.notification.Subscription; import run.halo.app.core.extension.notification.Subscription;
import run.halo.app.core.extension.service.EmailVerificationService; import run.halo.app.core.user.service.EmailVerificationService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.GroupVersion; import run.halo.app.extension.GroupVersion;
import run.halo.app.extension.MetadataUtil; import run.halo.app.extension.MetadataUtil;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;

View File

@ -10,10 +10,10 @@ import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.ResourceUtils; import org.springframework.util.ResourceUtils;
import org.springframework.util.StreamUtils; import org.springframework.util.StreamUtils;
import run.halo.app.core.extension.theme.ThemeService;
import run.halo.app.infra.properties.HaloProperties; import run.halo.app.infra.properties.HaloProperties;
import run.halo.app.infra.properties.ThemeProperties; import run.halo.app.infra.properties.ThemeProperties;
import run.halo.app.infra.utils.FileUtils; import run.halo.app.infra.utils.FileUtils;
import run.halo.app.theme.service.ThemeService;
@Slf4j @Slf4j
@Component @Component
@ -44,7 +44,7 @@ public class DefaultThemeInitializer implements ApplicationListener<ApplicationS
// TODO Checking if any themes are installed here in the future might be better? // TODO Checking if any themes are installed here in the future might be better?
if (!FileUtils.isEmpty(themeRoot)) { if (!FileUtils.isEmpty(themeRoot)) {
log.debug("Skipped initializing default theme because there are themes " log.debug("Skipped initializing default theme because there are themes "
+ "inside theme root"); + "inside theme root");
return; return;
} }
log.info("Initializing default theme from {}", location); log.info("Initializing default theme from {}", location);

View File

@ -20,6 +20,8 @@ import org.springframework.context.ApplicationListener;
import org.springframework.lang.NonNull; import org.springframework.lang.NonNull;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import run.halo.app.content.Stats; import run.halo.app.content.Stats;
import run.halo.app.core.attachment.extension.LocalThumbnail;
import run.halo.app.core.attachment.extension.Thumbnail;
import run.halo.app.core.extension.AnnotationSetting; import run.halo.app.core.extension.AnnotationSetting;
import run.halo.app.core.extension.AuthProvider; import run.halo.app.core.extension.AuthProvider;
import run.halo.app.core.extension.Counter; import run.halo.app.core.extension.Counter;
@ -38,10 +40,8 @@ import run.halo.app.core.extension.UserConnection;
import run.halo.app.core.extension.UserConnection.UserConnectionSpec; import run.halo.app.core.extension.UserConnection.UserConnectionSpec;
import run.halo.app.core.extension.attachment.Attachment; import run.halo.app.core.extension.attachment.Attachment;
import run.halo.app.core.extension.attachment.Group; import run.halo.app.core.extension.attachment.Group;
import run.halo.app.core.extension.attachment.LocalThumbnail;
import run.halo.app.core.extension.attachment.Policy; import run.halo.app.core.extension.attachment.Policy;
import run.halo.app.core.extension.attachment.PolicyTemplate; import run.halo.app.core.extension.attachment.PolicyTemplate;
import run.halo.app.core.extension.attachment.Thumbnail;
import run.halo.app.core.extension.content.Category; import run.halo.app.core.extension.content.Category;
import run.halo.app.core.extension.content.Comment; import run.halo.app.core.extension.content.Comment;
import run.halo.app.core.extension.content.Post; import run.halo.app.core.extension.content.Post;

View File

@ -1,4 +1,4 @@
package run.halo.app.actuator; package run.halo.app.infra.actuator;
import io.r2dbc.spi.Connection; import io.r2dbc.spi.Connection;
import io.r2dbc.spi.ConnectionFactory; import io.r2dbc.spi.ConnectionFactory;

View File

@ -1,4 +1,4 @@
package run.halo.app.actuator; package run.halo.app.infra.actuator;
import static org.apache.commons.lang3.BooleanUtils.isTrue; import static org.apache.commons.lang3.BooleanUtils.isTrue;

View File

@ -1,4 +1,4 @@
package run.halo.app.actuator; package run.halo.app.infra.actuator;
import java.io.Closeable; import java.io.Closeable;
import java.io.IOException; import java.io.IOException;

View File

@ -1,4 +1,4 @@
package run.halo.app.config; package run.halo.app.infra.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;

View File

@ -1,4 +1,4 @@
package run.halo.app.config; package run.halo.app.infra.config;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.MapperFeature;

View File

@ -1,4 +1,4 @@
package run.halo.app.config; package run.halo.app.infra.config;
import static org.springdoc.core.utils.Constants.SPRINGDOC_ENABLED; import static org.springdoc.core.utils.Constants.SPRINGDOC_ENABLED;

View File

@ -1,4 +1,4 @@
package run.halo.app.config; package run.halo.app.infra.config;
import static org.springframework.util.ResourceUtils.FILE_URL_PREFIX; import static org.springframework.util.ResourceUtils.FILE_URL_PREFIX;
import static org.springframework.web.reactive.function.server.RequestPredicates.accept; import static org.springframework.web.reactive.function.server.RequestPredicates.accept;
@ -38,16 +38,16 @@ import org.springframework.web.reactive.result.method.annotation.RequestMappingH
import org.springframework.web.reactive.result.view.ViewResolutionResultHandler; import org.springframework.web.reactive.result.view.ViewResolutionResultHandler;
import org.springframework.web.reactive.result.view.ViewResolver; import org.springframework.web.reactive.result.view.ViewResolver;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.console.ProxyFilter;
import run.halo.app.console.WebSocketRequestPredicate;
import run.halo.app.core.endpoint.WebSocketHandlerMapping; import run.halo.app.core.endpoint.WebSocketHandlerMapping;
import run.halo.app.core.endpoint.console.CustomEndpointsBuilder;
import run.halo.app.core.extension.endpoint.CustomEndpoint; import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.core.extension.endpoint.CustomEndpointsBuilder;
import run.halo.app.infra.SecureRequestMappingHandlerAdapter; import run.halo.app.infra.SecureRequestMappingHandlerAdapter;
import run.halo.app.infra.console.ProxyFilter;
import run.halo.app.infra.console.WebSocketRequestPredicate;
import run.halo.app.infra.properties.AttachmentProperties; import run.halo.app.infra.properties.AttachmentProperties;
import run.halo.app.infra.properties.HaloProperties; import run.halo.app.infra.properties.HaloProperties;
import run.halo.app.infra.webfilter.AdditionalWebFilterChainProxy;
import run.halo.app.plugin.extensionpoint.ExtensionGetter; import run.halo.app.plugin.extensionpoint.ExtensionGetter;
import run.halo.app.webfilter.AdditionalWebFilterChainProxy;
@Configuration @Configuration
public class WebFluxConfig implements WebFluxConfigurer { public class WebFluxConfig implements WebFluxConfigurer {

View File

@ -1,4 +1,4 @@
package run.halo.app.config; package run.halo.app.infra.config;
import static org.springframework.security.config.Customizer.withDefaults; import static org.springframework.security.config.Customizer.withDefaults;
import static org.springframework.security.web.server.authentication.ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver.builder; import static org.springframework.security.web.server.authentication.ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver.builder;
@ -22,8 +22,8 @@ import org.springframework.session.MapSession;
import org.springframework.session.config.annotation.web.server.EnableSpringWebSession; import org.springframework.session.config.annotation.web.server.EnableSpringWebSession;
import org.springframework.web.reactive.function.server.RouterFunction; import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerResponse; import org.springframework.web.reactive.function.server.ServerResponse;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.infra.AnonymousUserConst; import run.halo.app.infra.AnonymousUserConst;
import run.halo.app.infra.properties.HaloProperties; import run.halo.app.infra.properties.HaloProperties;

View File

@ -1,4 +1,4 @@
package run.halo.app.console; package run.halo.app.infra.console;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBuffer;

View File

@ -1,6 +1,6 @@
package run.halo.app.console; package run.halo.app.infra.console;
import static run.halo.app.console.WebSocketUtils.isWebSocketUpgrade; import static run.halo.app.infra.console.WebSocketUtils.isWebSocketUpgrade;
import org.springframework.web.reactive.function.server.RequestPredicate; import org.springframework.web.reactive.function.server.RequestPredicate;
import org.springframework.web.reactive.function.server.ServerRequest; import org.springframework.web.reactive.function.server.ServerRequest;

View File

@ -1,8 +1,8 @@
package run.halo.app.console; package run.halo.app.infra.console;
import static org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult.match; import static org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult.match;
import static org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult.notMatch; import static org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult.notMatch;
import static run.halo.app.console.WebSocketUtils.isWebSocketUpgrade; import static run.halo.app.infra.console.WebSocketUtils.isWebSocketUpgrade;
import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher; import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher;
import org.springframework.web.server.ServerWebExchange; import org.springframework.web.server.ServerWebExchange;

View File

@ -1,4 +1,4 @@
package run.halo.app.console; package run.halo.app.infra.console;
import java.util.Objects; import java.util.Objects;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.theme; package run.halo.app.infra.utils;
import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
@ -21,8 +21,6 @@ import run.halo.app.core.extension.Setting;
import run.halo.app.extension.ConfigMap; import run.halo.app.extension.ConfigMap;
import run.halo.app.extension.ExtensionClient; import run.halo.app.extension.ExtensionClient;
import run.halo.app.extension.Metadata; import run.halo.app.extension.Metadata;
import run.halo.app.infra.utils.JsonParseException;
import run.halo.app.infra.utils.JsonUtils;
@UtilityClass @UtilityClass
public class SettingUtils { public class SettingUtils {

View File

@ -1,4 +1,4 @@
package run.halo.app.webfilter; package run.halo.app.infra.webfilter;
import lombok.Setter; import lombok.Setter;
import org.springframework.core.annotation.AnnotationAwareOrderComparator; import org.springframework.core.annotation.AnnotationAwareOrderComparator;

View File

@ -1,4 +1,4 @@
package run.halo.app.webfilter; package run.halo.app.infra.webfilter;
import static run.halo.app.theme.ThemeLocaleContextResolver.LANGUAGE_COOKIE_NAME; import static run.halo.app.theme.ThemeLocaleContextResolver.LANGUAGE_COOKIE_NAME;
import static run.halo.app.theme.ThemeLocaleContextResolver.LANGUAGE_PARAMETER_NAME; import static run.halo.app.theme.ThemeLocaleContextResolver.LANGUAGE_PARAMETER_NAME;

View File

@ -7,8 +7,8 @@ import org.springframework.web.reactive.function.server.RouterFunctions;
import org.springframework.web.reactive.function.server.ServerRequest; import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse; import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.endpoint.console.CustomEndpointsBuilder;
import run.halo.app.core.extension.endpoint.CustomEndpoint; import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.core.extension.endpoint.CustomEndpointsBuilder;
import run.halo.app.infra.SecureServerRequest; import run.halo.app.infra.SecureServerRequest;
/** /**

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service; package run.halo.app.plugin;
import java.nio.file.Path; import java.nio.file.Path;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.service.impl; package run.halo.app.plugin;
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
import static java.nio.file.StandardOpenOption.CREATE; import static java.nio.file.StandardOpenOption.CREATE;
@ -49,7 +49,6 @@ import reactor.core.scheduler.Scheduler;
import reactor.core.scheduler.Schedulers; import reactor.core.scheduler.Schedulers;
import reactor.util.retry.Retry; import reactor.util.retry.Retry;
import run.halo.app.core.extension.Plugin; import run.halo.app.core.extension.Plugin;
import run.halo.app.core.extension.service.PluginService;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.infra.SystemVersionSupplier; import run.halo.app.infra.SystemVersionSupplier;
import run.halo.app.infra.exception.PluginAlreadyExistsException; import run.halo.app.infra.exception.PluginAlreadyExistsException;
@ -60,12 +59,6 @@ import run.halo.app.infra.exception.PluginInstallationException;
import run.halo.app.infra.exception.UnsatisfiedAttributeValueException; import run.halo.app.infra.exception.UnsatisfiedAttributeValueException;
import run.halo.app.infra.utils.FileUtils; import run.halo.app.infra.utils.FileUtils;
import run.halo.app.infra.utils.VersionUtils; import run.halo.app.infra.utils.VersionUtils;
import run.halo.app.plugin.PluginConst;
import run.halo.app.plugin.PluginUtils;
import run.halo.app.plugin.PluginsRootGetter;
import run.halo.app.plugin.SpringPluginManager;
import run.halo.app.plugin.YamlPluginDescriptorFinder;
import run.halo.app.plugin.YamlPluginFinder;
import run.halo.app.plugin.resources.BundleResourceUtils; import run.halo.app.plugin.resources.BundleResourceUtils;
@Slf4j @Slf4j

View File

@ -13,8 +13,8 @@ import org.springframework.security.core.userdetails.ReactiveUserDetailsService;
import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetails;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.infra.exception.UserNotFoundException; import run.halo.app.infra.exception.UserNotFoundException;
import run.halo.app.security.authentication.login.HaloUser; import run.halo.app.security.authentication.login.HaloUser;
import run.halo.app.security.authentication.twofactor.TwoFactorUtils; import run.halo.app.security.authentication.twofactor.TwoFactorUtils;

View File

@ -29,7 +29,7 @@ import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse; import org.springframework.web.reactive.function.server.ServerResponse;
import org.springframework.web.server.ServerWebInputException; import org.springframework.web.server.ServerWebInputException;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.extension.ExtensionUtil; import run.halo.app.extension.ExtensionUtil;
import run.halo.app.extension.Metadata; import run.halo.app.extension.Metadata;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;

View File

@ -25,7 +25,7 @@ import org.springframework.web.util.UriComponentsBuilder;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.endpoint.CustomEndpoint; import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.GroupVersion; import run.halo.app.extension.GroupVersion;
import run.halo.app.extension.ReactiveExtensionClient; import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.infra.ExternalUrlSupplier; import run.halo.app.infra.ExternalUrlSupplier;

View File

@ -7,7 +7,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
/** /**
* @author guqing * @author guqing

View File

@ -8,7 +8,7 @@ import org.springframework.security.authorization.ReactiveAuthorizationManager;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.security.web.server.authorization.AuthorizationContext; import org.springframework.security.web.server.authorization.AuthorizationContext;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
@Slf4j @Slf4j
public class RequestInfoAuthorizationManager public class RequestInfoAuthorizationManager

View File

@ -6,7 +6,7 @@ import java.util.Set;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.http.server.PathContainer; import org.springframework.http.server.PathContainer;
import org.springframework.http.server.reactive.ServerHttpRequest; import org.springframework.http.server.reactive.ServerHttpRequest;
import run.halo.app.console.WebSocketUtils; import run.halo.app.infra.console.WebSocketUtils;
/** /**
* Creates {@link RequestInfo} from {@link ServerHttpRequest}. * Creates {@link RequestInfo} from {@link ServerHttpRequest}.

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.theme; package run.halo.app.theme.endpoint;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder; import static org.springdoc.core.fn.builders.apiresponse.Builder.responseBuilder;
@ -49,6 +49,8 @@ import run.halo.app.infra.ThemeRootGetter;
import run.halo.app.infra.exception.NotFoundException; import run.halo.app.infra.exception.NotFoundException;
import run.halo.app.infra.utils.JsonUtils; import run.halo.app.infra.utils.JsonUtils;
import run.halo.app.theme.TemplateEngineManager; import run.halo.app.theme.TemplateEngineManager;
import run.halo.app.theme.service.ThemeService;
import run.halo.app.theme.service.ThemeUtils;
/** /**
* Endpoint for managing themes. * Endpoint for managing themes.

View File

@ -27,7 +27,7 @@ import run.halo.app.content.comment.OwnerInfo;
import run.halo.app.core.extension.User; import run.halo.app.core.extension.User;
import run.halo.app.core.extension.content.Comment; import run.halo.app.core.extension.content.Comment;
import run.halo.app.core.extension.content.Reply; import run.halo.app.core.extension.content.Reply;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.extension.AbstractExtension; import run.halo.app.extension.AbstractExtension;
import run.halo.app.extension.ListOptions; import run.halo.app.extension.ListOptions;
import run.halo.app.extension.ListResult; import run.halo.app.extension.ListResult;

View File

@ -4,7 +4,7 @@ import java.util.List;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import run.halo.app.core.extension.service.UserService; import run.halo.app.core.user.service.UserService;
import run.halo.app.theme.finders.ContributorFinder; import run.halo.app.theme.finders.ContributorFinder;
import run.halo.app.theme.finders.Finder; import run.halo.app.theme.finders.Finder;
import run.halo.app.theme.finders.vo.ContributorVo; import run.halo.app.theme.finders.vo.ContributorVo;

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.theme; package run.halo.app.theme.service;
import org.reactivestreams.Publisher; import org.reactivestreams.Publisher;
import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBuffer;

View File

@ -1,12 +1,12 @@
package run.halo.app.core.extension.theme; package run.halo.app.theme.service;
import static org.springframework.util.FileSystemUtils.copyRecursively; import static org.springframework.util.FileSystemUtils.copyRecursively;
import static run.halo.app.core.extension.theme.ThemeUtils.loadThemeManifest;
import static run.halo.app.core.extension.theme.ThemeUtils.locateThemeManifest;
import static run.halo.app.core.extension.theme.ThemeUtils.unzipThemeTo;
import static run.halo.app.infra.utils.FileUtils.createTempDir; import static run.halo.app.infra.utils.FileUtils.createTempDir;
import static run.halo.app.infra.utils.FileUtils.deleteRecursivelyAndSilently; import static run.halo.app.infra.utils.FileUtils.deleteRecursivelyAndSilently;
import static run.halo.app.infra.utils.FileUtils.unzip; import static run.halo.app.infra.utils.FileUtils.unzip;
import static run.halo.app.theme.service.ThemeUtils.loadThemeManifest;
import static run.halo.app.theme.service.ThemeUtils.locateThemeManifest;
import static run.halo.app.theme.service.ThemeUtils.unzipThemeTo;
import java.nio.file.Path; import java.nio.file.Path;
import java.time.Duration; import java.time.Duration;
@ -41,6 +41,7 @@ import run.halo.app.infra.SystemVersionSupplier;
import run.halo.app.infra.ThemeRootGetter; import run.halo.app.infra.ThemeRootGetter;
import run.halo.app.infra.exception.ThemeUpgradeException; import run.halo.app.infra.exception.ThemeUpgradeException;
import run.halo.app.infra.exception.UnsatisfiedAttributeValueException; import run.halo.app.infra.exception.UnsatisfiedAttributeValueException;
import run.halo.app.infra.utils.SettingUtils;
import run.halo.app.infra.utils.VersionUtils; import run.halo.app.infra.utils.VersionUtils;
@Slf4j @Slf4j

View File

@ -1,4 +1,4 @@
package run.halo.app.core.extension.theme; package run.halo.app.theme.service;
import static org.springframework.util.FileSystemUtils.copyRecursively; import static org.springframework.util.FileSystemUtils.copyRecursively;
import static run.halo.app.infra.utils.FileUtils.createTempDir; import static run.halo.app.infra.utils.FileUtils.createTempDir;
@ -16,6 +16,7 @@ import java.util.Optional;
import java.util.Set; import java.util.Set;
import java.util.stream.BaseStream; import java.util.stream.BaseStream;
import java.util.stream.Stream; import java.util.stream.Stream;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.reactivestreams.Publisher; import org.reactivestreams.Publisher;
import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.FileSystemResource;
@ -38,11 +39,12 @@ import run.halo.app.infra.utils.FileUtils;
import run.halo.app.infra.utils.YamlUnstructuredLoader; import run.halo.app.infra.utils.YamlUnstructuredLoader;
@Slf4j @Slf4j
class ThemeUtils { @UtilityClass
public class ThemeUtils {
private static final String THEME_TMP_PREFIX = "halo-theme-"; private static final String THEME_TMP_PREFIX = "halo-theme-";
private static final String[] THEME_MANIFESTS = {"theme.yaml", "theme.yml"}; private static final String[] THEME_MANIFESTS = {"theme.yaml", "theme.yml"};
static Flux<Theme> listAllThemesFromThemeDir(Path themesDir) { public static Flux<Theme> listAllThemesFromThemeDir(Path themesDir) {
return walkThemesFromPath(themesDir) return walkThemesFromPath(themesDir)
.filter(Files::isDirectory) .filter(Files::isDirectory)
.map(ThemeUtils::findThemeManifest) .map(ThemeUtils::findThemeManifest)

View File

@ -26,7 +26,7 @@ import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.web.reactive.server.WebTestClient; import org.springframework.test.web.reactive.server.WebTestClient;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;
import run.halo.app.core.extension.Role; import run.halo.app.core.extension.Role;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.extension.ExtensionClient; import run.halo.app.extension.ExtensionClient;
import run.halo.app.extension.FakeExtension; import run.halo.app.extension.FakeExtension;
import run.halo.app.extension.GroupVersionKind; import run.halo.app.extension.GroupVersionKind;

View File

@ -25,7 +25,7 @@ import reactor.core.publisher.Flux;
import reactor.test.StepVerifier; import reactor.test.StepVerifier;
import run.halo.app.core.endpoint.WebSocketEndpoint; import run.halo.app.core.endpoint.WebSocketEndpoint;
import run.halo.app.core.extension.Role; import run.halo.app.core.extension.Role;
import run.halo.app.core.extension.service.RoleService; import run.halo.app.core.user.service.RoleService;
import run.halo.app.extension.GroupVersion; import run.halo.app.extension.GroupVersion;
import run.halo.app.extension.Metadata; import run.halo.app.extension.Metadata;

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