Skip to content

Commit

Permalink
fix: update tauri api from primitives to core
Browse files Browse the repository at this point in the history
This was a breaking change from the tauri v2 update.
  • Loading branch information
Nicholas Westerhausen authored and nwesterhausen committed Jan 2, 2024
1 parent 43ab440 commit d3f3e00
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/DynamicCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { invoke } from '@tauri-apps/api/primitives';
import { invoke } from '@tauri-apps/api/core';
import {
BiRegularQuestionMark,
BiSolidCat,
Expand Down
2 changes: 1 addition & 1 deletion src/components/SpriteImage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { convertFileSrc, invoke } from '@tauri-apps/api/primitives';
import { convertFileSrc, invoke } from '@tauri-apps/api/core';
import { BiRegularCaretLeft, BiRegularCaretRight, BiRegularImageAlt } from 'solid-icons/bi';
import { Component, Show, createMemo, createResource, createSignal } from 'solid-js';
import { GraphicsResults } from '../definitions/GraphicsResults';
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/AppDrawerContent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { A, useMatch } from '@solidjs/router';
import { getTauriVersion, getVersion } from '@tauri-apps/api/app';
import { invoke } from '@tauri-apps/api/primitives';
import { invoke } from '@tauri-apps/api/core';
import { Component, createMemo, createResource } from 'solid-js';
import { Info } from '../../definitions/Info';
import { COMMAND_GET_BUILD_INFO } from '../../lib/Constants';
Expand Down
2 changes: 1 addition & 1 deletion src/components/plant/PlantDescriptionTable.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { invoke } from '@tauri-apps/api/primitives';
import { invoke } from '@tauri-apps/api/core';
import { Component, For, Show, createResource } from 'solid-js';
import { Plant } from '../../definitions/Plant';
import { COMMAND_GET_BIOME_DESCRIPTION } from '../../lib/Constants';
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/DirectoryOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { invoke } from '@tauri-apps/api/primitives';
import { invoke } from '@tauri-apps/api/core';
import { BiSolidFolderOpen } from 'solid-icons/bi';
import { JSX } from 'solid-js';
import { COMMAND_SHOW_IN_FOLDER } from '../../lib/Constants';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { invoke } from '@tauri-apps/api/core';
import { appDataDir } from '@tauri-apps/api/path';
import { invoke } from '@tauri-apps/api/primitives';
import { BiSolidFolderOpen } from 'solid-icons/bi';
import { JSX, createResource } from 'solid-js';
import RawLocationCheckboxes from '../components/filtering/RawLocationCheckboxes';
Expand Down
2 changes: 1 addition & 1 deletion src/providers/RawsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Settings also provides the number of results per page and the current page.
*/
import { createContextProvider } from '@solid-primitives/context';
import { invoke } from '@tauri-apps/api/primitives';
import { invoke } from '@tauri-apps/api/core';
import { getCurrent } from '@tauri-apps/api/window';
import { createEffect, createResource, createSignal } from 'solid-js';
import { ModuleInfoFile } from '../definitions/ModuleInfoFile';
Expand Down
2 changes: 1 addition & 1 deletion src/providers/UpdateProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createContextProvider } from '@solid-primitives/context';
import { invoke } from '@tauri-apps/api/primitives';
import { invoke } from '@tauri-apps/api/core';
import { relaunch } from '@tauri-apps/plugin-process';
import { check } from '@tauri-apps/plugin-updater';
import { createMemo, createResource, createSignal } from 'solid-js';
Expand Down

0 comments on commit d3f3e00

Please sign in to comment.