mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-02 19:13:25 +09:00
refactor: improve types in the frontend, misc fixes (#39142)
This commit is contained in:
@@ -18,6 +18,18 @@ import {
|
||||
type RoutedEdge,
|
||||
} from './WorkflowGraph.utils.ts';
|
||||
|
||||
export type WorkflowGraphLocale = {
|
||||
graphJobsCount1: string,
|
||||
graphJobsCountN: string,
|
||||
graphDependenciesCount1: string,
|
||||
graphDependenciesCountN: string,
|
||||
graphSuccessRate: string,
|
||||
graphZoomIn: string,
|
||||
graphZoomMax: string,
|
||||
graphZoomOut: string,
|
||||
graphResetView: string,
|
||||
};
|
||||
|
||||
interface StoredState {
|
||||
scale: number;
|
||||
translateX: number;
|
||||
@@ -32,7 +44,7 @@ const props = defineProps<{
|
||||
workflowId: string;
|
||||
workflowLink?: string;
|
||||
triggerEvent?: string;
|
||||
locale: Record<string, string>;
|
||||
locale: WorkflowGraphLocale;
|
||||
}>();
|
||||
|
||||
const settingKeyStates = 'actions-graph-states';
|
||||
|
||||
Reference in New Issue
Block a user