From 8bb10266b0d14c0cf44ca9adaba1d57f2f97f7e7 Mon Sep 17 00:00:00 2001 From: Markus Thielen Date: Tue, 16 May 2023 12:25:44 +0200 Subject: [PATCH] Auth0 related changes --- bbconf/bb_todo-resolver.toml | 162 +++++++++++++++++------------------ src/App.vue | 2 +- src/components/Lists.vue | 2 +- src/components/Todo.vue | 2 +- src/components/Welcome.vue | 2 +- src/store.js | 31 +++++-- 6 files changed, 109 insertions(+), 92 deletions(-) diff --git a/bbconf/bb_todo-resolver.toml b/bbconf/bb_todo-resolver.toml index 7a6a583..76288ff 100644 --- a/bbconf/bb_todo-resolver.toml +++ b/bbconf/bb_todo-resolver.toml @@ -1,33 +1,62 @@ -[resolvers.createTask] -operation_name = "createTask" +[resolvers.getUser] +operation_name = "getUser" -[resolvers.createTask.resolver] +[resolvers.getUser.resolver] +command_type = "SQLSelect" + +[resolvers.getUser.resolver.command] +table = "User" +columns = [] +modify_values = [] +nested_modify_tables = [] +aggregate_result = true + +[[resolvers.getUser.resolver.command.where_clauses]] +table = "User" +column = "username" +condition_str = "= '$username'" +index = "" + +[resolvers.updateList] +operation_name = "updateList" + +[resolvers.updateList.resolver] +command_type = "SQLUpdate" + +[resolvers.updateList.resolver.command] +table = "List" +columns = [] +nested_modify_tables = [] +aggregate_result = true + +[[resolvers.updateList.resolver.command.modify_values]] +column = "title" +value = "'$title'" + +[[resolvers.updateList.resolver.command.where_clauses]] +table = "List" +column = "id" +condition_str = "= '$id'" +index = "" + +[resolvers.createList] +operation_name = "createList" + +[resolvers.createList.resolver] command_type = "SQLInsert" -[resolvers.createTask.resolver.command] -table = "Task" +[resolvers.createList.resolver.command] +table = "List" columns = [] nested_modify_tables = [] where_clauses = [] aggregate_result = true -[[resolvers.createTask.resolver.command.modify_values]] +[[resolvers.createList.resolver.command.modify_values]] column = "title" value = "'$title'" -[[resolvers.createTask.resolver.command.modify_values]] -column = "description" -value = "'$description'" - -[[resolvers.createTask.resolver.command.modify_values]] -column = "completed" -value = "'$completed'" - -[[resolvers.createTask.resolver.command.modify_values]] -column = "list_id" -value = "'$list.$id'" - -[[resolvers.createTask.resolver.command.modify_values]] +[[resolvers.createList.resolver.command.modify_values]] column = "user_username" value = "'$user.$username'" @@ -71,6 +100,39 @@ column = "id" condition_str = "= '$id'" index = "" +[resolvers.createTask] +operation_name = "createTask" + +[resolvers.createTask.resolver] +command_type = "SQLInsert" + +[resolvers.createTask.resolver.command] +table = "Task" +columns = [] +nested_modify_tables = [] +where_clauses = [] +aggregate_result = true + +[[resolvers.createTask.resolver.command.modify_values]] +column = "title" +value = "'$title'" + +[[resolvers.createTask.resolver.command.modify_values]] +column = "description" +value = "'$description'" + +[[resolvers.createTask.resolver.command.modify_values]] +column = "completed" +value = "'$completed'" + +[[resolvers.createTask.resolver.command.modify_values]] +column = "list_id" +value = "'$list.$id'" + +[[resolvers.createTask.resolver.command.modify_values]] +column = "user_username" +value = "'$user.$username'" + [resolvers.deleteList] operation_name = "deleteList" @@ -90,27 +152,6 @@ column = "id" condition_str = "= '$id'" index = "" -[resolvers.createList] -operation_name = "createList" - -[resolvers.createList.resolver] -command_type = "SQLInsert" - -[resolvers.createList.resolver.command] -table = "List" -columns = [] -nested_modify_tables = [] -where_clauses = [] -aggregate_result = true - -[[resolvers.createList.resolver.command.modify_values]] -column = "title" -value = "'$title'" - -[[resolvers.createList.resolver.command.modify_values]] -column = "user_username" -value = "'$user.$username'" - [resolvers.updateTask] operation_name = "updateTask" @@ -144,44 +185,3 @@ table = "Task" column = "id" condition_str = "= '$id'" index = "" - -[resolvers.getUser] -operation_name = "getUser" - -[resolvers.getUser.resolver] -command_type = "SQLSelect" - -[resolvers.getUser.resolver.command] -table = "User" -columns = [] -modify_values = [] -nested_modify_tables = [] -aggregate_result = true - -[[resolvers.getUser.resolver.command.where_clauses]] -table = "User" -column = "username" -condition_str = "= '$username'" -index = "" - -[resolvers.updateList] -operation_name = "updateList" - -[resolvers.updateList.resolver] -command_type = "SQLUpdate" - -[resolvers.updateList.resolver.command] -table = "List" -columns = [] -nested_modify_tables = [] -aggregate_result = true - -[[resolvers.updateList.resolver.command.modify_values]] -column = "title" -value = "'$title'" - -[[resolvers.updateList.resolver.command.where_clauses]] -table = "List" -column = "id" -condition_str = "= '$id'" -index = "" diff --git a/src/App.vue b/src/App.vue index b3bd6a2..6e4b6c2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -46,7 +46,7 @@ function dismissError() {