-import type { BaseConfig } from '@/types/ConfigurationType';
+import type { BaseConfig } from '@/types';
const config: BaseConfig = {
uiServer: {
// import { reactive } from 'vue';
import Button from '../buttons/Button.vue';
// import IdTagInputModal from './IdTagInputModal.vue';
-import type { ConnectorStatus } from '@/types/ChargingStationType';
+import type { ConnectorStatus } from '@/types';
import UIClient from '@/composables/UIClient';
// import Utils from '@/composables/Utils';
<script setup lang="ts">
// import { reactive } from 'vue';
import CSConnector from './CSConnector.vue';
-import type {
- ChargingStationData,
- ChargingStationInfo,
- ConnectorStatus,
-} from '@/types/ChargingStationType';
+import type { ChargingStationData, ChargingStationInfo, ConnectorStatus } from '@/types';
import Utils from '@/composables/Utils';
const props = defineProps<{
</template>
<script setup lang="ts">
-import type { ChargingStationInfo } from '@/types/ChargingStationType';
+import type { ChargingStationInfo } from '@/types';
import Modal from '@/components/Modal.vue';
const props = defineProps<{
<script setup lang="ts">
import CSData from './CSData.vue';
-import type { ChargingStationData } from '@/types/ChargingStationType';
+import type { ChargingStationData } from '@/types';
const props = defineProps<{
chargingStations: ChargingStationData[];
type RequestPayload,
type ResponsePayload,
ResponseStatus,
-} from '@/types/UIProtocol';
+} from '@/types';
import config from '@/assets/config';
type ResponseHandler = {
procedureName: ProcedureName;
resolve: (value: ResponsePayload | PromiseLike<ResponsePayload>) => void;
- reject: (reason?: any) => void;
+ reject: (reason?: unknown) => void;
};
export default class UIClient {
--- /dev/null
+export type {
+ ChargingStationData,
+ ChargingStationInfo,
+ ConnectorStatus,
+} from './ChargingStationType';
+export {
+ ProcedureName,
+ type ProtocolResponse,
+ type RequestPayload,
+ type ResponsePayload,
+ ResponseStatus,
+} from './UIProtocol';
+export type { BaseConfig } from './ConfigurationType';
<script setup lang="ts">
import { onMounted, reactive } from 'vue';
import CSTable from '@/components/charging-stations/CSTable.vue';
-import type { ChargingStationData } from '@/types/ChargingStationType';
+import type { ChargingStationData } from '@/types';
import Container from '@/components/Container.vue';
import ReloadButton from '@/components/buttons/ReloadButton.vue';
import UIClient from '@/composables/UIClient';
import { expect, test } from 'vitest';
import { shallowMount } from '@vue/test-utils';
import CSTable from '@/components/charging-stations/CSTable.vue';
-import type { ChargingStationData } from '@/types/ChargingStationType';
+import type { ChargingStationData } from '@/types';
test('renders CS table columns name', () => {
const chargingStations: ChargingStationData[] = [];