diff --git a/demos/vue-supabase-todolist-completed-tutorial/.gitignore b/demos/vue-supabase-todolist-completed-tutorial/.gitignore new file mode 100644 index 00000000..ac35b418 --- /dev/null +++ b/demos/vue-supabase-todolist-completed-tutorial/.gitignore @@ -0,0 +1,3 @@ +node_modules +.env* +.vscode \ No newline at end of file diff --git a/demos/vue-supabase-todolist-completed-tutorial/package.json b/demos/vue-supabase-todolist-completed-tutorial/package.json index b87b9856..f60c131c 100644 --- a/demos/vue-supabase-todolist-completed-tutorial/package.json +++ b/demos/vue-supabase-todolist-completed-tutorial/package.json @@ -12,9 +12,9 @@ "@headlessui/vue": "^1.7.22", "@heroicons/vue": "^2.1.3", "@journeyapps/wa-sqlite": "^0.2.0", - "@powersync/vue": "^0.1.4", - "@powersync/web": "^0.7.0", - "@supabase/supabase-js": "^2.43.2", + "@powersync/vue": "^0.1.6", + "@powersync/web": "^1.0.0", + "@supabase/supabase-js": "^2.43.4", "js-logger": "^1.6.1", "vite-plugin-top-level-await": "^1.4.1", "vite-plugin-wasm": "^3.3.0", diff --git a/demos/vue-supabase-todolist-completed-tutorial/src/plugins/powerSync.ts b/demos/vue-supabase-todolist-completed-tutorial/src/plugins/powerSync.ts index 062b8cdd..fb41e908 100644 --- a/demos/vue-supabase-todolist-completed-tutorial/src/plugins/powerSync.ts +++ b/demos/vue-supabase-todolist-completed-tutorial/src/plugins/powerSync.ts @@ -1,11 +1,11 @@ // src/plugins/powersync.ts -import { AppSchema } from "../library/AppSchema.ts"; -import { WASQLitePowerSyncDatabaseOpenFactory } from "@powersync/web"; -import { createPowerSyncPlugin } from "@powersync/vue"; +import { AppSchema } from '../library/AppSchema.ts'; +import { WASQLitePowerSyncDatabaseOpenFactory } from '@powersync/web'; +import { createPowerSyncPlugin } from '@powersync/vue'; export const powerSync = new WASQLitePowerSyncDatabaseOpenFactory({ - dbFilename: "vue-todo.db", - schema: AppSchema, + dbFilename: 'vue-todo.db', + schema: AppSchema }).getInstance(); export const powerSyncPlugin = createPowerSyncPlugin({ database: powerSync }); diff --git a/demos/vue-supabase-todolist-completed-tutorial/src/views/TodoList.vue b/demos/vue-supabase-todolist-completed-tutorial/src/views/TodoList.vue index c9b5c909..863bec32 100644 --- a/demos/vue-supabase-todolist-completed-tutorial/src/views/TodoList.vue +++ b/demos/vue-supabase-todolist-completed-tutorial/src/views/TodoList.vue @@ -1,22 +1,11 @@