Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Oct 20, 2023
1 parent 16530d7 commit 5582b3c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 87 deletions.
79 changes: 0 additions & 79 deletions .drone.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
_test-output

# production
/build
/dist

# misc
.DS_Store
Expand Down
3 changes: 1 addition & 2 deletions src/core/react/Clipboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
*/

import * as React from 'react';
import { Types } from './../utils/types';
import { useDocumentEvent } from './hooks';
import { LoadedImage, Types } from '@app/core/utils';
import { useDocumentEvent } from './hooks';

export interface ClipboardCopyEvent {
// Indicates whether the event type is a cut event.
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils/immutable-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ImmutableMap<T> {
}

private constructor(
private readonly items: { [key: string]: T },
private readonly items: Record<string, T>,
) {
Object.freeze(this);
Object.freeze(items);
Expand Down
4 changes: 2 additions & 2 deletions src/core/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ export module Types {
return true;
}

export function equalsObject(lhs: Record<string, object>, rhs: Record<string, object>, options?: EqualsOptions) {
export function equalsObject(lhs: object, rhs: object, options?: EqualsOptions) {
const lhsKeys = Object.keys(lhs);

if (lhsKeys.length !== Object.keys(rhs).length) {
return false;
}

for (const key of lhsKeys) {
if (!equals(lhs[key], rhs[key], options)) {
if (!equals((lhs as any)[key], (rhs as any)[key], options)) {
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/wireframes/components/menu/LoadingMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const LoadingMenu = React.memo(() => {
<MarkerButton />

<Modal title={texts.common.about} visible={isOpen} onCancel={doToggleInfoDialog} onOk={doToggleInfoDialog}>
<div dangerouslySetInnerHTML={{ __html: text.default }} />
<div dangerouslySetInnerHTML={{ __html: text }} />
</Modal>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/wireframes/components/properties/CustomProperties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const CustomProperty = (props: CustomPropertyProps) => {
}

{configurable instanceof ColorConfigurable &&
<ColorPicker activeColorTab={selectedColorTab as ColorTab} value={value}
<ColorPicker activeColorTab={selectedColorTab as any} value={value}
onChange={doChangeColor}
onActiveColorTabChanged={onColorTabChange}
recentColors={recentColors} />
Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export default defineConfig({
}
},

build: {
chunkSizeWarningLimit: 2000,
},

test: {
globals: true,

Expand Down

0 comments on commit 5582b3c

Please sign in to comment.