// 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
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 = <Page>args.object
// 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<Item>
// 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
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 = <Page>args.object
// 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<Item>
+++ /dev/null
-// SPDX-FileCopyrightText: 2024 Chris Duncan <chris@zoso.dev>
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-export interface Item {
- name: string
- description: string
-}
// 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
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 = <Page>args.object
// 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<Item>
+++ /dev/null
-// SPDX-FileCopyrightText: 2024 Chris Duncan <chris@zoso.dev>
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-export interface Item {
- name: string
- description: string
-}