From dc1937d2f8f5efaff44dbd954b4d5b9d584be429 Mon Sep 17 00:00:00 2001 From: hak8or Date: Tue, 6 Mar 2018 15:58:02 -0500 Subject: [PATCH] Now using proper emit/props for dataflow --- .../frontend/src/components/Channel_Table.vue | 16 +++----- YTManager/frontend/src/components/Search.vue | 11 +++--- .../frontend/src/components/Video_Grid.vue | 37 +++---------------- .../frontend/src/components/Video_Table.vue | 16 +++----- YTManager/frontend/src/dumbyt.ts | 2 +- YTManager/frontend/src/index.ts | 37 ++++++++++++++++--- 6 files changed, 57 insertions(+), 62 deletions(-) diff --git a/YTManager/frontend/src/components/Channel_Table.vue b/YTManager/frontend/src/components/Channel_Table.vue index 4b6ab30..fed1175 100644 --- a/YTManager/frontend/src/components/Channel_Table.vue +++ b/YTManager/frontend/src/components/Channel_Table.vue @@ -20,20 +20,16 @@ diff --git a/YTManager/frontend/src/components/Search.vue b/YTManager/frontend/src/components/Search.vue index bb235a5..f25d10c 100644 --- a/YTManager/frontend/src/components/Search.vue +++ b/YTManager/frontend/src/components/Search.vue @@ -7,7 +7,7 @@ @@ -66,12 +49,4 @@ export default Vue.extend({ font-size: 10px; text-align: right; } - - .searchbox { - font-size: 1.2em; - max-width: 70em; - margin-left: auto; - margin-right: auto; - margin-top: 2em; - } diff --git a/YTManager/frontend/src/components/Video_Table.vue b/YTManager/frontend/src/components/Video_Table.vue index f61a52a..3d3dbfd 100644 --- a/YTManager/frontend/src/components/Video_Table.vue +++ b/YTManager/frontend/src/components/Video_Table.vue @@ -22,20 +22,16 @@ diff --git a/YTManager/frontend/src/dumbyt.ts b/YTManager/frontend/src/dumbyt.ts index 75042da..c3ecba2 100644 --- a/YTManager/frontend/src/dumbyt.ts +++ b/YTManager/frontend/src/dumbyt.ts @@ -1,7 +1,7 @@ import Axios from "axios"; // Base URL for API queries. -const API_BASE_URL = "http://localhost:62214/api"; +const API_BASE_URL = "/api"; // How many chars at most for the description. const max_description_length = 100; diff --git a/YTManager/frontend/src/index.ts b/YTManager/frontend/src/index.ts index 1d30281..16b324f 100644 --- a/YTManager/frontend/src/index.ts +++ b/YTManager/frontend/src/index.ts @@ -5,16 +5,30 @@ import VTBL from "./components/Video_Table.vue"; import CTBL from "./components/Channel_Table.vue"; import CADD from "./components/Channel_Add.vue"; import './index.css'; +import { Video, search_videos, Channel, search_channels } from "./dumbyt"; let MainApp = new Vue({ el: "#app", template: `
- + +
`, components: { + SCH, VGC + }, + data() { + return { + Videos: Array