Skip to content

Commit d5f8e5a

Browse files
Cleaning up
1 parent 4b5e08e commit d5f8e5a

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

src/App.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@
3737

3838
<script setup lang="ts">
3939
import { provide, ref } from 'vue';
40-
import AppBar from '@/layout/AppBar.vue';
41-
import MenuComponent from '@/components/MenuComponent.vue';
42-
import DocsComponent from '@/components/DocsComponent.vue';
43-
import { useCoreStore } from '@/stores/index';
44-
import { DrawerOptions } from '@/components/types';
40+
import AppBar from './layout/AppBar.vue';
41+
import MenuComponent from './components/MenuComponent.vue';
42+
import DocsComponent from './components/DocsComponent.vue';
43+
import { useCoreStore } from './stores/index';
4544
46-
const store = useCoreStore();
4745
46+
const store = useCoreStore();
4847
const drawer = ref<boolean>(true);
49-
const drawerOptions = ref<DrawerOptions>({
48+
const drawerOptions = ref({
5049
absolute: true,
5150
color: '',
5251
elevation: 10,

src/types/types.d.ts

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ interface CellRender {
4242
index?: number,
4343
): void;
4444
};
45+
4546
interface ItemCellRender {
4647
(
4748
itemValue?: string,
@@ -176,6 +177,7 @@ export type Props = {
176177
required: boolean;
177178
type: PropType<boolean>;
178179
};
180+
// * Custom Property //
179181
item: {
180182
default: DataTableItem | object;
181183
required: boolean;
@@ -221,6 +223,7 @@ export type Props = {
221223
type?: PropType<SearchProps>;
222224
};
223225
// * Custom Property //
226+
// TODO: Maybe add this //
224227
separator?: {
225228
default: string;
226229
required: boolean;
@@ -242,61 +245,60 @@ export type Props = {
242245

243246
// -------------------------------------------------- Drilldown //
244247
export type LoadedDrilldown = {
245-
colors?: ColorsObject; // * Custom Property
248+
colors?: ColorsObject; // * Custom Property
246249
customFilter?: FilterFunction | undefined;
247250
customKeyFilter?: FilterKeyFunctions | undefined;
248-
debounceDelay?: number | undefined; // * Custom Property
249-
// dense?: boolean; // ! Missing Vuetify Prop
251+
debounceDelay?: number | undefined; // * Custom Property
250252
density?: Density;
251-
drilldown?: object; // * Custom Property
252-
drilldownKey: string; // * Custom Property
253-
elevation?: string | number | undefined; // * Custom Property
253+
drilldown?: object; // * Custom Property
254+
drilldownKey: string; // * Custom Property
255+
elevation?: string | number | undefined; // * Custom Property
254256
expandOnClick?: boolean;
255257
expanded?: string[];
256-
// filterKeys?: string[]; // ! Need more info/testing
258+
// filterKeys?: string[]; // ! Need more info/testing
257259
filterMode?: FilterMode;
258260
fixedFooter?: boolean;
259261
fixedHeader?: boolean;
260-
// footerProps?: object; // ! Missing Vuetify Prop (maybe v2 only?)
261-
// groupBy?: string[]; // ? Most likely this will not be used
262+
// footerProps?: object; // ! Missing Vuetify Prop (maybe v2 only?)
263+
// groupBy?: string[]; // ? Most likely this will not be used
262264
footers?: DataTableHeader[] | DataTableHeader[][];
263265
headers?: DataTableHeader[] | DataTableHeader[][];
264266
height?: string | number | undefined;
265-
// hideDefaultFooter?: boolean; // ? Custom Property - Need to add/test
266-
// hideDefaultHeader?: boolean; // ? Custom Property - Need to add/test
267+
// hideDefaultFooter?: boolean; // ? Custom Property - Need to add/test
268+
// hideDefaultHeader?: boolean; // ? Custom Property - Need to add/test
267269
hideNoData?: boolean;
268270
hover?: boolean;
269-
isDrilldown?: boolean; // * Custom Property
270-
item?: object; // * Custom Property
271+
isDrilldown?: boolean; // * Custom Property
272+
item?: object; // * Custom Property
271273
itemChildren?: SelectItemKey;
272-
itemChildrenKey?: string; // * Custom Property
274+
itemChildrenKey?: string; // * Custom Property
273275
itemProps?: SelectItemKey;
274276
itemTitle?: SelectItemKey;
275277
itemValue?: NonNullable<SelectItemKey>;
276278
items: unknown[];
277279
itemsLength?: number;
278280
itemsPerPage?: string | number;
279-
level: number; // * Custom Property
280-
levels: number; // * Custom Property
281-
// loading?: boolean; // ! Not working properly
282-
// loadingText?: string; // ! Not working properly
281+
level: number; // * Custom Property
282+
levels: number; // * Custom Property
283+
// loading?: boolean; // ! Not working properly
284+
// loadingText?: string; // ! Not working properly
283285
modelValue?: unknown[];
284286
multiSort?: boolean;
285287
mustSort?: boolean;
286288
noDataText?: string;
287289
noFilter?: boolean;
288290
page?: string | number;
289-
// pageCount?: number; // ? Need to test (maybe v2 only?)
291+
// pageCount?: number; // ? Need to test (maybe v2 only?)
290292
returnObject?: boolean;
291293
search?: string | undefined;
292-
searchProps: SearchProps; // * Custom Property
293-
server?: boolean; // ? Custom Property - Not sure if I'll use this
294+
searchProps: SearchProps; // * Custom Property
295+
server?: boolean; // ? Custom Property - Not sure if I'll use this
294296
showExpand?: boolean;
295-
showFooterRow?: boolean; // * Custom Property
296-
showSearch?: boolean; // * Custom Property
297+
showFooterRow?: boolean; // * Custom Property
298+
showSearch?: boolean; // * Custom Property
297299
showSelect?: boolean;
298300
sortBy?: SortItem[];
299-
// sortDesc?: boolean; // ! Missing Vuetify Prop (maybe v2 only?)
301+
// sortDesc?: boolean; // ! Missing Vuetify Prop (maybe v2 only?)
300302
width?: string | number | undefined;
301303
};
302304

0 commit comments

Comments
 (0)