mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix types
This commit is contained in:
3 files changed
+6
-3
No files matched your search
@@ -13,7 +13,7 @@ import ScratchpadPretest from './ScratchpadPretestContainer';
|
|||||||
import ScratchpadRecords from './ScratchpadRecordsContainer';
|
import ScratchpadRecords from './ScratchpadRecordsContainer';
|
||||||
import ScratchpadToolbar from './ScratchpadToolbarContainer';
|
import ScratchpadToolbar from './ScratchpadToolbarContainer';
|
||||||
|
|
||||||
function buildNestedPane([a, ...panes], mode = 'horizontal') {
|
function buildNestedPane([a, ...panes], mode: 'horizontal' | 'vertical' = 'horizontal') {
|
||||||
const elements = [
|
const elements = [
|
||||||
a,
|
a,
|
||||||
...panes.filter((p) => p.props.visible),
|
...panes.filter((p) => p.props.visible),
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import * as bus from './bus';
|
|
||||||
|
|
||||||
window.Hydro = {
|
window.Hydro = {
|
||||||
extraPages: [],
|
extraPages: [],
|
||||||
@@ -7,7 +6,6 @@ window.Hydro = {
|
|||||||
utils: {},
|
utils: {},
|
||||||
node_modules: {},
|
node_modules: {},
|
||||||
version: process.env.VERSION,
|
version: process.env.VERSION,
|
||||||
bus,
|
|
||||||
};
|
};
|
||||||
window.externalModules = {};
|
window.externalModules = {};
|
||||||
window.lazyModuleResolver = {};
|
window.lazyModuleResolver = {};
|
||||||
|
|||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
declare module '*.svg?react' {
|
||||||
|
import { ComponentType } from 'react'
|
||||||
|
const content: ComponentType
|
||||||
|
export default content
|
||||||
|
}
|
||||||
Reference in new issue
Block a user