From 9f0422acf8031d5f447eb0c7a3321fc499d8a577 Mon Sep 17 00:00:00 2001 From: Dan Elbert Date: Tue, 28 Aug 2018 10:39:11 -0500 Subject: [PATCH] start frontend --- app/javascript/components/AppNavbar.vue | 1 + app/javascript/components/TheTaskListList.vue | 25 +++++++++++++++++++ app/javascript/router.js | 7 ++++++ db/schema.rb | 1 - 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 app/javascript/components/TheTaskListList.vue diff --git a/app/javascript/components/AppNavbar.vue b/app/javascript/components/AppNavbar.vue index 4125205..d28460e 100644 --- a/app/javascript/components/AppNavbar.vue +++ b/app/javascript/components/AppNavbar.vue @@ -19,6 +19,7 @@ Calculator Log Notes + Tasks About Admin diff --git a/app/javascript/components/TheTaskListList.vue b/app/javascript/components/TheTaskListList.vue new file mode 100644 index 0000000..666927f --- /dev/null +++ b/app/javascript/components/TheTaskListList.vue @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/app/javascript/router.js b/app/javascript/router.js index 20ad8ef..6facdee 100644 --- a/app/javascript/router.js +++ b/app/javascript/router.js @@ -20,6 +20,8 @@ import TheRecipeEditor from './components/TheRecipeEditor'; import TheRecipeCreator from './components/TheRecipeCreator'; import TheRecipeList from './components/TheRecipeList'; +import TheTaskListList from './components/TheTaskListList'; + import TheUserCreator from './components/TheUserCreator'; import TheUserEditor from './components/TheUserEditor'; @@ -113,6 +115,11 @@ router.addRoutes( name: "notes", component: TheNotesList }, + { + path: "/tasks", + name: "task_lists", + component: TheTaskListList + }, { path: "/logout", name: "logout", diff --git a/db/schema.rb b/db/schema.rb index c5cc620..4d2cb55 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -83,7 +83,6 @@ ActiveRecord::Schema.define(version: 2018_08_27_215102) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.text "preparation" - t.integer "recipe_as_ingredient_id" t.index ["recipe_id"], name: "index_recipe_ingredients_on_recipe_id" end