mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
code refactor
This commit is contained in:
@@ -15,7 +15,7 @@ export interface ClipboardEvent {
|
|||||||
export class ClipboardTextHolder {
|
export class ClipboardTextHolder {
|
||||||
private text: string;
|
private text: string;
|
||||||
|
|
||||||
constructor(text: string) {
|
public constructor(text: string) {
|
||||||
this.text = text;
|
this.text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ export class AmapMapInstance implements MapInstance {
|
|||||||
private amapCenterPosition: unknown = null;
|
private amapCenterPosition: unknown = null;
|
||||||
private amapCenterMarker: unknown | null;
|
private amapCenterMarker: unknown | null;
|
||||||
|
|
||||||
constructor() {
|
public constructor() {
|
||||||
this.dependencyLoaded = !!AmapMapProvider.AMap;
|
this.dependencyLoaded = !!AmapMapProvider.AMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export class BaiduMapInstance implements MapInstance {
|
|||||||
private baiduMapCenterPosition: unknown = null;
|
private baiduMapCenterPosition: unknown = null;
|
||||||
private baiduMapCenterMarker: unknown | null;
|
private baiduMapCenterMarker: unknown | null;
|
||||||
|
|
||||||
constructor() {
|
public constructor() {
|
||||||
this.dependencyLoaded = !!BaiduMapProvider.BMap;
|
this.dependencyLoaded = !!BaiduMapProvider.BMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export class GoogleMapInstance implements MapInstance {
|
|||||||
private googleMapInstance: unknown = null;
|
private googleMapInstance: unknown = null;
|
||||||
private googleMapCenterMarker: unknown | null;
|
private googleMapCenterMarker: unknown | null;
|
||||||
|
|
||||||
constructor() {
|
public constructor() {
|
||||||
this.dependencyLoaded = !!GoogleMapProvider.GoogleMap;
|
this.dependencyLoaded = !!GoogleMapProvider.GoogleMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export class LeafletMapInstance implements MapInstance {
|
|||||||
private leafletAttribution: unknown | null;
|
private leafletAttribution: unknown | null;
|
||||||
private leafletCenterMarker: unknown | null;
|
private leafletCenterMarker: unknown | null;
|
||||||
|
|
||||||
constructor(mapProvider: string, mapTileSource: LeafletTileSource) {
|
public constructor(mapProvider: string, mapTileSource: LeafletTileSource) {
|
||||||
this.dependencyLoaded = !!LeafletMapProvider.Leaflet;
|
this.dependencyLoaded = !!LeafletMapProvider.Leaflet;
|
||||||
|
|
||||||
this.mapProvider = mapProvider;
|
this.mapProvider = mapProvider;
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ export class TransactionAmountsRequest {
|
|||||||
public readonly useTransactionTimezone: boolean;
|
public readonly useTransactionTimezone: boolean;
|
||||||
public readonly query: string;
|
public readonly query: string;
|
||||||
|
|
||||||
constructor(useTransactionTimezone: boolean, query: string) {
|
public constructor(useTransactionTimezone: boolean, query: string) {
|
||||||
this.useTransactionTimezone = useTransactionTimezone;
|
this.useTransactionTimezone = useTransactionTimezone;
|
||||||
this.query = query;
|
this.query = query;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user