diff --git a/admin/index.html b/admin/index.html
index 6267cfa..1a55db4 100644
--- a/admin/index.html
+++ b/admin/index.html
@@ -8,7 +8,7 @@
- Admin Page
+
diff --git a/src/components/Channel_Table.vue b/src/components/Channel_Table.vue
index 53fa098..ef89ba0 100644
--- a/src/components/Channel_Table.vue
+++ b/src/components/Channel_Table.vue
@@ -6,6 +6,7 @@
Title |
Description |
Tags |
+ Delete |
@@ -14,6 +15,7 @@
{{channel.Title}} |
{{channel.Description}} |
{{channel.User_Tags}} |
+ |
diff --git a/src/components/Favorite_Channels.vue b/src/components/Favorite_Channels.vue
new file mode 100644
index 0000000..a998747
--- /dev/null
+++ b/src/components/Favorite_Channels.vue
@@ -0,0 +1,60 @@
+
+
+
High Priority Videos
+
+
+
+
![]()
+
+
{{ video.Title }}
+
{{ video.Channel }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Search.vue b/src/components/Search.vue
index 44a4cfb..ecfe9c5 100644
--- a/src/components/Search.vue
+++ b/src/components/Search.vue
@@ -1,6 +1,6 @@
-
@@ -25,7 +25,7 @@ export default Vue.extend({
searchbox_str (s: string) {
var v = _.debounce((s) => {
DumbYT.API.search_videos(s).then(videos => {
- this.$emit('search_complete', videos)
+ this.$emit('search_complete', s, videos)
});
}, 400)
v(s);
@@ -40,6 +40,5 @@ export default Vue.extend({
max-width: 40em;
margin-left: auto;
margin-right: auto;
- margin-top: 2em;
}
diff --git a/src/dumbyt.ts b/src/dumbyt.ts
index 471a189..580102e 100644
--- a/src/dumbyt.ts
+++ b/src/dumbyt.ts
@@ -58,12 +58,14 @@ export namespace API {
}
// Search for channels based on a search string.
- export async function search_channels(searchstr : string): Promise> {
+ export async function search_channels(searchstr : string, highpriority?: boolean): Promise> {
// Temporary holder for data.
let Channels : Array = [];
// Ask server for data.
- let resp = await Axios.get(API.Base_URL + '/Channels/' + searchstr).catch(e => console.log(e));
+ let resp = await Axios
+ .get(API.Base_URL + '/Channels/' + searchstr, {params: {High_Priority: highpriority}})
+ .catch(e => console.log(e));
// Handle all our nulls.
if (resp == null || resp.data == null)
@@ -78,12 +80,14 @@ export namespace API {
}
// Search for videos based on a search string.
- export async function search_videos(searchstr : string): Promise> {
+ export async function search_videos(searchstr : string, highpriority?: boolean): Promise> {
// Temporary holder for videos.
let Videos : Array