From: Adam Dullage Date: Wed, 21 Sep 2022 11:49:16 +0000 (+0100) Subject: Removed notes page X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=95f3f8a3e05bc0f26526349a1e71374a1c4af358;p=flatnotes.git Removed notes page --- diff --git a/flatnotes/main.py b/flatnotes/main.py index f362f4f..8b29ac5 100644 --- a/flatnotes/main.py +++ b/flatnotes/main.py @@ -52,7 +52,6 @@ async def token(data: LoginModel): @app.get("/login") @app.get("/search") @app.get("/new") -@app.get("/notes") @app.get("/note/{title}") async def root(title: str = ""): with open("flatnotes/dist/index.html", "r", encoding="utf-8") as f: diff --git a/flatnotes/src/components/App.js b/flatnotes/src/components/App.js index d955028..7644cf4 100644 --- a/flatnotes/src/components/App.js +++ b/flatnotes/src/components/App.js @@ -33,7 +33,6 @@ export default { home: 1, note: 2, search: 3, - notes: 4, }, currentView: 1, @@ -78,12 +77,6 @@ export default { this.currentView = this.views.note; } - // Notes - else if (basePath == constants.basePaths.notes) { - this.updateDocumentTitle(); - this.currentView = this.views.notes; - } - // Login else if (basePath == constants.basePaths.login) { this.updateDocumentTitle("Log In"); diff --git a/flatnotes/src/components/App.vue b/flatnotes/src/components/App.vue index d532190..fc3419a 100644 --- a/flatnotes/src/components/App.vue +++ b/flatnotes/src/components/App.vue @@ -61,14 +61,6 @@ > - - -