Removed notes page
authorAdam Dullage <redacted>
Wed, 21 Sep 2022 11:49:16 +0000 (12:49 +0100)
committerAdam Dullage <redacted>
Wed, 21 Sep 2022 11:49:16 +0000 (12:49 +0100)
flatnotes/main.py
flatnotes/src/components/App.js
flatnotes/src/components/App.vue
flatnotes/src/constants.js

index f362f4f70f7e72b7f5a4dc97fc7f7177fd9bfdf9..8b29ac5dc33f47e87fc334d7615ff3c4136e3997 100644 (file)
@@ -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:
index d9550288916e603c8625a72ad0942dba0299f9db..7644cf4f0c798895a942e6937e317f53481277d0 100644 (file)
@@ -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");
index d532190821a219908aaeed1807da808851a8a2b1..fc3419a4ef83836e817502fdfea2bf847512bb37 100644 (file)
       ></SearchResults>
     </div>
 
-    <!-- Notes -->
-    <NoteList
-      v-if="currentView == views.notes"
-      class="flex-grow-1"
-      grouped
-      show-last-modified
-    ></NoteList>
-
     <!-- Note -->
     <NoteViewerEditor
       v-if="currentView == this.views.note"
index d559468676d3e23918adfbbd8fb09dec40d75431..55476e48418c54a2d07932ceb1c4018010534709 100644 (file)
@@ -5,7 +5,6 @@ export const basePaths = {
   note: "/note",
   search: "/search",
   new: "/new",
-  notes: "/notes",
 };
 
 // Params
git clone https://git.99rst.org/PROJECT