From: Chris Duncan Date: Thu, 10 Oct 2024 21:52:47 +0000 (-0700) Subject: Move shared Item interface up to app root. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=cc206f9a5bdbe0c2e9263f59aa4e273ae3b8227d;p=nemo-wallet.git Move shared Item interface up to app root. --- diff --git a/app/pages/history/history-item-detail/history-item-detail-page.ts b/app/pages/history/history-item-detail/history-item-detail-page.ts index 6964552..6b542a4 100644 --- a/app/pages/history/history-item-detail/history-item-detail-page.ts +++ b/app/pages/history/history-item-detail/history-item-detail-page.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later import { EventData, View, NavigatedData, Page } from '@nativescript/core' -import { Item } from '../shared/item' +import { Item } from '~/shared/item' export function onNavigatingTo (args: NavigatedData) { const page = args.object as Page diff --git a/app/pages/history/history-items-page.ts b/app/pages/history/history-items-page.ts index 6fcc477..713c145 100644 --- a/app/pages/history/history-items-page.ts +++ b/app/pages/history/history-items-page.ts @@ -4,7 +4,7 @@ import { View, ItemEventData, NavigatedData, Page } from '@nativescript/core' import { HistoryViewModel } from './history-view-model' -import { Item } from './shared/item' +import { Item } from '~/shared/item' export function onNavigatingTo (args: NavigatedData) { const page = args.object diff --git a/app/pages/history/history-view-model.ts b/app/pages/history/history-view-model.ts index 1bf6e79..eb8a9da 100644 --- a/app/pages/history/history-view-model.ts +++ b/app/pages/history/history-view-model.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later import { Observable } from '@nativescript/core' -import { Item } from './shared/item' +import { Item } from '~/shared/item' export class HistoryViewModel extends Observable { items: Array diff --git a/app/pages/rolodex/rolodex-item-detail/rolodex-item-detail-page.ts b/app/pages/rolodex/rolodex-item-detail/rolodex-item-detail-page.ts index 6964552..6b542a4 100644 --- a/app/pages/rolodex/rolodex-item-detail/rolodex-item-detail-page.ts +++ b/app/pages/rolodex/rolodex-item-detail/rolodex-item-detail-page.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later import { EventData, View, NavigatedData, Page } from '@nativescript/core' -import { Item } from '../shared/item' +import { Item } from '~/shared/item' export function onNavigatingTo (args: NavigatedData) { const page = args.object as Page diff --git a/app/pages/rolodex/rolodex-items-page.ts b/app/pages/rolodex/rolodex-items-page.ts index 29cd955..443c52a 100644 --- a/app/pages/rolodex/rolodex-items-page.ts +++ b/app/pages/rolodex/rolodex-items-page.ts @@ -4,7 +4,7 @@ import { View, ItemEventData, NavigatedData, Page } from '@nativescript/core' import { RolodexViewModel } from './rolodex-view-model' -import { Item } from './shared/item' +import { Item } from '~/shared/item' export function onNavigatingTo (args: NavigatedData) { const page = args.object diff --git a/app/pages/rolodex/rolodex-view-model.ts b/app/pages/rolodex/rolodex-view-model.ts index bac5b51..92b09c4 100644 --- a/app/pages/rolodex/rolodex-view-model.ts +++ b/app/pages/rolodex/rolodex-view-model.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later import { Observable } from '@nativescript/core' -import { Item } from './shared/item' +import { Item } from '~/shared/item' export class RolodexViewModel extends Observable { items: Array diff --git a/app/pages/rolodex/shared/item.ts b/app/pages/rolodex/shared/item.ts deleted file mode 100644 index dd14792..0000000 --- a/app/pages/rolodex/shared/item.ts +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-FileCopyrightText: 2024 Chris Duncan -// SPDX-License-Identifier: GPL-3.0-or-later - -export interface Item { - name: string - description: string -} diff --git a/app/pages/settings/settings-item-detail/settings-item-detail-page.ts b/app/pages/settings/settings-item-detail/settings-item-detail-page.ts index 6964552..6b542a4 100644 --- a/app/pages/settings/settings-item-detail/settings-item-detail-page.ts +++ b/app/pages/settings/settings-item-detail/settings-item-detail-page.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later import { EventData, View, NavigatedData, Page } from '@nativescript/core' -import { Item } from '../shared/item' +import { Item } from '~/shared/item' export function onNavigatingTo (args: NavigatedData) { const page = args.object as Page diff --git a/app/pages/settings/settings-items-page.ts b/app/pages/settings/settings-items-page.ts index b631d4a..5724812 100644 --- a/app/pages/settings/settings-items-page.ts +++ b/app/pages/settings/settings-items-page.ts @@ -4,7 +4,7 @@ import { View, ItemEventData, NavigatedData, Page } from '@nativescript/core' import { SettingsViewModel } from './settings-view-model' -import { Item } from './shared/item' +import { Item } from '~/shared/item' export function onNavigatingTo (args: NavigatedData) { const page = args.object diff --git a/app/pages/settings/settings-view-model.ts b/app/pages/settings/settings-view-model.ts index 96a4ba1..8a93d04 100644 --- a/app/pages/settings/settings-view-model.ts +++ b/app/pages/settings/settings-view-model.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later import { Observable } from '@nativescript/core' -import { Item } from './shared/item' +import { Item } from '~/shared/item' export class SettingsViewModel extends Observable { items: Array diff --git a/app/pages/settings/shared/item.ts b/app/pages/settings/shared/item.ts deleted file mode 100644 index dd14792..0000000 --- a/app/pages/settings/shared/item.ts +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-FileCopyrightText: 2024 Chris Duncan -// SPDX-License-Identifier: GPL-3.0-or-later - -export interface Item { - name: string - description: string -} diff --git a/app/pages/history/shared/item.ts b/app/shared/item.ts similarity index 100% rename from app/pages/history/shared/item.ts rename to app/shared/item.ts