mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
Add files to empty repository (#1717)
It should also be possible to create new files in empty non-initiated repositories with the help of scm-manager/scm-editor-plugin/pull/39. So that the plugin can mount itself, a new endpoint was provided hereby. Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
This commit is contained in:
@@ -22,14 +22,16 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
import { ExtensionPointDefinition } from "./binder";
|
||||
import React from "react";
|
||||
import {
|
||||
Branch,
|
||||
IndexResources,
|
||||
NamespaceStrategies,
|
||||
Repository,
|
||||
RepositoryCreation,
|
||||
RepositoryTypeCollection,
|
||||
} from "@scm-manager/ui-types";
|
||||
import { ExtensionPointDefinition } from "./binder";
|
||||
|
||||
type RepositoryCreatorSubFormProps = {
|
||||
repository: RepositoryCreation;
|
||||
@@ -58,3 +60,24 @@ export type RepositoryCreatorExtension = {
|
||||
export type RepositoryCreator = ExtensionPointDefinition<"repos.creator", RepositoryCreatorExtension>;
|
||||
|
||||
export type RepositoryFlags = ExtensionPointDefinition<"repository.flags", { repository: Repository }>;
|
||||
|
||||
export type ReposSourcesActionbarExtensionProps = {
|
||||
baseUrl: string;
|
||||
revision: string;
|
||||
branch: Branch | undefined;
|
||||
path: string;
|
||||
sources: File;
|
||||
repository: Repository;
|
||||
};
|
||||
export type ReposSourcesActionbarExtension = React.ComponentType<ReposSourcesActionbarExtensionProps>;
|
||||
export type ReposSourcesActionbar = ExtensionPointDefinition<"repos.sources.actionbar", ReposSourcesActionbarExtension>;
|
||||
|
||||
export type ReposSourcesEmptyActionbarExtensionProps = {
|
||||
sources: File;
|
||||
repository: Repository;
|
||||
};
|
||||
export type ReposSourcesEmptyActionbarExtension = ReposSourcesActionbarExtension;
|
||||
export type ReposSourcesEmptyActionbar = ExtensionPointDefinition<
|
||||
"repos.sources.empty.actionbar",
|
||||
ReposSourcesEmptyActionbarExtension
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user