diff --git a/assets/config/config.json b/assets/config/config.json
deleted file mode 100644
index 820b6b9..0000000
--- a/assets/config/config.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Name":"Pogo Podcast","Host":"John Doe","Email":"johndoe@localhost","Description":"A Podcast About Stuff","Image":"localhost:3000/assets/podcastimage.png","PodcastUrl":"http://localhost:3000"}
\ No newline at end of file
diff --git a/assets/web/README.md b/assets/web/README.md
deleted file mode 100644
index c93116f..0000000
--- a/assets/web/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# What is this?!
-
-This is the _development version_ (DeV) of the web interface for Pogo.
-
-It is not recommended you use this for your own deployment, and instead rely on the auto-setup feature of the binary. If you still insist manually deploying your own binary, please consider downloading the latest `webassets.zip` release from [gmemstr/pogo-vue](https://github.com/gmmestr/pogo-vue/releases/latest), which contains the production version of the Vue.js interface. The interface in this repository should be considered "canary" or "nightly", and for testing routes and features during development. Thanks!
-
-~ Gabe
\ No newline at end of file
diff --git a/assets/web/admin.html b/assets/web/admin.html
deleted file mode 100644
index 14f1187..0000000
--- a/assets/web/admin.html
+++ /dev/null
@@ -1 +0,0 @@
-
Pogo LAUNCHPAD (Admin)
\ No newline at end of file
diff --git a/assets/web/index.html b/assets/web/index.html
deleted file mode 100644
index 14ec1c9..0000000
--- a/assets/web/index.html
+++ /dev/null
@@ -1 +0,0 @@
-Pogo (Loading)
\ No newline at end of file
diff --git a/assets/web/login.html b/assets/web/login.html
deleted file mode 100644
index 14bbadf..0000000
--- a/assets/web/login.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
- Login to Pogo Admin Page
-
-
-
- Login
-
-
-
-
-
\ No newline at end of file
diff --git a/assets/web/static/app.js b/assets/web/static/app.js
deleted file mode 100644
index 27b3bdf..0000000
--- a/assets/web/static/app.js
+++ /dev/null
@@ -1,384 +0,0 @@
-const episodepublishform = {
- template: `
-
Publish Episode
-
-`
-}
-
-const message = {
- template: `
{{ this.$route.params.message }} `
-}
-
-const userlist = {
- template: `
-
New
-
-
- Username
- Email
-
-
-
- {{ item.username }}
- {{ item.email }}
-
- Edit
-
-
-
-
`,
- data() {
- return {
- loading: false,
- items: null,
- error: null
- }
- },
- created() {
- // fetch the data when the view is created and the data is
- // already being observed
- this.fetchData()
- },
- watch: {
- // call again the method if the route changes
- '$route': 'fetchData'
- },
- methods: {
- fetchData() {
- this.error = this.items = []
- this.loading = true
-
- get("/admin/listusers", (err, items) => {
- this.loading = false
- if (err) {
- this.error = err.toString()
- } else {
- var t = JSON.parse(items).reverse();
- for (var i = t.length - 1; i >= 0; i--) {
- this.items.push({
- id: t[i].id,
- username: t[i].username,
- email: t[i].email,
- })
- }
- }
- })
- }
- }
-}
-
-const usernew = {
- template: ``
-}
-
-const useredit = {
- template: ``,
- data() {
- return {
- loading: false,
- user: null,
- error: null
- }
- },
- created() {
- // fetch the data when the view is created and the data is
- // already being observed
- this.fetchData()
- },
- watch: {
- // call again the method if the route changes
- '$route': 'fetchData'
- },
- methods: {
- fetchData() {
- this.error = this.user = []
- this.loading = true
-
- get("/admin/listusers", (err, items) => {
- this.loading = false
- if (err) {
- this.error = err.toString()
- } else {
- var t = JSON.parse(items)
- for (var i = t.length - 1; i >= 0; i--) {
- if (t[i].id == this.$route.params.id) {
- this.user = {
- id: t[i].id,
- username: t[i].username,
- email: t[i].email,
- realname: t[i].realname
- }
- }
- }
- }
- })
- }
- }
-}
-
-const episodemanagement = {
- template: `
-
-
- Title
- URL
-
-
-
- {{ item.id }}: {{ item.title }} {{ item.url }} Edit
-
-
-
`,
- data() {
- return {
- loading: false,
- items: null,
- error: null
- }
- },
- created() {
- // fetch the data when the view is created and the data is
- // already being observed
- this.fetchData()
- },
- watch: {
- // call again the method if the route changes
- '$route': 'fetchData'
- },
- methods: {
- fetchData() {
- this.error = this.items = []
- this.loading = true
-
- get("/json", (err, items) => {
- this.loading = false
- if (err) {
- this.error = err.toString()
- } else {
- var t = JSON.parse(items).items
- for (var i = t.length - 1; i >= 0; i--) {
- console.log(i)
- this.items.push({
- title: t[i].title,
- url: t[i].url,
- id: t[i].id
- })
- }
- }
- })
- }
- }
-}
-
-const episodeedit = {
- template: ``,
- data() {
- return {
- loading: false,
- episode: null,
- error: null
- }
- },
- created() {
- // fetch the data when the view is created and the data is
- // already being observed
- this.fetchData()
- },
- watch: {
- // call again the method if the route changes
- '$route': 'fetchData'
- },
- methods: {
- fetchData() {
- this.error = this.episode = {}
- this.loading = true
-
- get("/json", (err, items) => {
- this.loading = false
- if (err) {
- this.error = err.toString()
- } else {
- var t = JSON.parse(items).items
- for (var i = t.length - 1; i >= 0; i--) {
- if (t[i].id == this.$route.params.id) {
- time = t[i].date_published.split("T")
- var prev = time[0] + "_" + t[i].title
- this.episode = {
- title: t[i].title,
- description: t[i].summary,
- url: t[i].url,
- id: t[i].id,
- time: time[0],
- previousfilename: prev
- }
- }
- }
- }
- console.log(this.episode)
- })
- }
- }
-}
-
-const customcss = {
- template: `
-
Theme
-
- {{ css }}
-
-
-
-`,
- data() {
- return {
- loading: false,
- css: null,
- error: null
- }
- },
- created() {
- // fetch the data when the view is created and the data is
- // already being observed
- this.fetchData()
- },
- watch: {
- // call again the method if the route changes
- '$route': 'fetchData'
- },
- methods: {
- fetchData() {
- this.error = this.css = null
- this.loading = true
-
- get("/admin/css", (err, css) => {
- this.loading = false
- if (css == "{}") {
- this.css = "You aren't allowed to edit this CSS!"
- } else {
- if (err) {
- this.error = err.toString()
- } else {
- this.css = css
- }
- }
- })
- }
- }
-}
-
-const routes = [
- {path: '/', redirect: '/publish'},
- { path: '/publish', component: episodepublishform },
- { path: '/manage', component: episodemanagement },
- { path: '/theme', component: customcss },
- { path: '/edit/:id', component: episodeedit },
- { path: '/users/', component: userlist },
- { path: '/msg/:message', component: message },
- { path: '/user/:id', component: useredit },
- { path: '/users/new', component: usernew }
-]
-
-const router = new VueRouter({
- routes
-})
-
-const app = new Vue({
- router,
- data: {
- header: 'Pogo Admin',
- }
-}).$mount('#app')
-
-function get(url,callback) {
- var xmlHttp = new XMLHttpRequest();
- xmlHttp.onreadystatechange = function() {
- if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
- if (xmlHttp.responseText == "Unauthorized") {
- callback(null, "{}")
- } else {
- callback(null, xmlHttp.responseText)
- }
- }
- }
- xmlHttp.open("GET", url, true);
- xmlHttp.send(null);
-}
-
-function logout() {
- document.cookie = "POGO_SESSION=;expires=Thu, 01 Jan 1970 00:00:01 GMT";
- window.location = "/";
-}
\ No newline at end of file
diff --git a/assets/web/static/custom.css b/assets/web/static/custom.css
deleted file mode 100644
index 6202346..0000000
--- a/assets/web/static/custom.css
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * This is the file of custom CSS styling that
- * can be set by the publisher.
- *
- * If you're writing the custom CSS, please see the reference:
- * https://github.com/gmemstr/Pogo/wiki/Custom-CSS/
- */
-
-.container {} /* Basic container from styles.css */
-.title {} /* Page title */
-.adminlink { /* Link to admin interface */
- margin-left:100%;
- display:inline-block;
- margin-bottom: 10px;
- background-color: #397AD6;
- border: none;
- color: white;
- padding: 5px 32px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- -webkit-transition:.52s;
- -moz-transition: .5s;
- -o-transition: .5s;
- -ms-transition: .5s;
- transition:.5s;
-}
-.adminlink:hover {
- background-color: #50B7D5;
-}
-
-.podcastlist {} /* Chronological podcast list */
-
-.podcastitem {} /* Single podcast item (group of elements) */
-.podcasttitle {} /* Title of podcast item */
-.podcastdate {} /* Date podcast item was published */
-.podcastdesc {} /* Podcast item description */
-.podcastaudio {} /* Podcast tag */
\ No newline at end of file
diff --git a/assets/web/static/logo-large.png b/assets/web/static/logo-large.png
deleted file mode 100644
index b413251..0000000
Binary files a/assets/web/static/logo-large.png and /dev/null differ
diff --git a/assets/web/static/logo-med.png b/assets/web/static/logo-med.png
deleted file mode 100644
index a38fa68..0000000
Binary files a/assets/web/static/logo-med.png and /dev/null differ
diff --git a/assets/web/static/logo-sm.png b/assets/web/static/logo-sm.png
deleted file mode 100644
index c4077a1..0000000
Binary files a/assets/web/static/logo-sm.png and /dev/null differ
diff --git a/assets/web/static/logo-xs.png b/assets/web/static/logo-xs.png
deleted file mode 100644
index fd67a3d..0000000
Binary files a/assets/web/static/logo-xs.png and /dev/null differ
diff --git a/assets/web/static/setup.css b/assets/web/static/setup.css
deleted file mode 100644
index 751c6dd..0000000
--- a/assets/web/static/setup.css
+++ /dev/null
@@ -1,24 +0,0 @@
-body {
- font-family: 'Roboto', Monospace;
- background-color: #3c3c3c;
- color: white;
-}
-
-.setupform {
- text-align: center;
-}
-
-label {
- display: block;
-}
-
-input,textarea {
- margin-bottom: 10px;
- padding: 10px;
- border: 1px;
- border-radius: 5px;
-}
-
-textarea {
- resize: none;
-}
\ No newline at end of file
diff --git a/assets/web/static/styles.css b/assets/web/static/styles.css
deleted file mode 100644
index e7ed980..0000000
--- a/assets/web/static/styles.css
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * Basic CSS styling for frontend and admin interface.
- * Overridden by styles in custom.css for the podcast list.
- */
-
-@import url('https://fonts.googleapis.com/css?family=Muli');
-
-body {
- font-family: 'Muli', sans-serif;
- margin:0; padding:0;
-}
-h1,h2,h3,h4,h5 {
- font-weight: 400;
-}
-.podcastlist {
- padding-bottom: 10%;
-}
-.container {
- margin: 0 auto;
- padding: 0 2.0rem;
- position: relative;
- width: 60vw;
- height: 100%;
-}
-button, .button {
- margin-bottom: 10px;
- background-color: #397AD6;
- border: none;
- color: white;
- padding: 5px 32px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- -webkit-transition:.52s;
- -moz-transition: .5s;
- -o-transition: .5s;
- -ms-transition: .5s;
- transition:.5s;
-}
-button:hover, .button:hover {
- background-color: #50B7D5;
-}
-footer {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- padding: .25rem;
- color: #f9f9f9;
- background-color: #397AD6;
- text-align: center;
-}
-table {
- text-align: left;
- width: 100%;
-}
-nav a {
- margin-bottom: 10px;
- background-color: #397AD6;
- border: none;
- color: white;
- padding: 5px 32px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- -webkit-transition:.52s;
- -moz-transition: .5s;
- -o-transition: .5s;
- -ms-transition: .5s;
- transition:.5s;
-}
-nav a:hover {
- background-color: #50B7D5;
-}
-.podcast {
- width:70%;
-}
-label {
- display: block;
-}
-.admin {
- text-align: center;
-}
-hr {
- max-width: 40%;
-}
-
-.notifications {
- margin:0; padding:10px;
- font-size: 130%;
- height: 1.5vw;
- text-align: center;
-
-}
-.css {
- font-family: Monospace;
-}
-
-input[type=text], input[type=date], input[type=file], input[type=password],textarea, select {
- padding:10px;
- border-radius: 4px;
- box-sizing: border-box;
- border: 1px solid #397AD6;
-}
-.publish [type=text],
-.publish input[type=date],
-.publish input[type=file],
-.publish input[type=password],
-.publish textarea {
- width: 100%;
-}
-.publish textarea {
- height: 30vh;
-}
-
-.epdesc {
- font-family: 'Muli', sans-serif;
-}
diff --git a/setup.go b/setup.go
index afa58cb..ac2b2e7 100644
--- a/setup.go
+++ b/setup.go
@@ -37,7 +37,7 @@ func Setup() {
WriteSkeletonConfig()
// Generate neccesary feed files
- go GenerateRss()
+ GenerateRss()
// Create "first run" lockfile when function exits
// defer LockFile()