Comments (4)
I'm currently working on a complete rebuild of the web UI in Vue 3 with Vue Router. As part of this work I should be able to allow for a path prefix to be set at build time.
Unfortunately I can't see a clean way to implement a runtime option but hopefully a build option will suffice for those that need it.
from flatnotes.
Having a maintained way to set the base URL to a subfolder would be great, indeed.
First, I tried to come up with a solution by adding the --root_path
option to the uvicorn
call in entrypoint.sh
but that was not enough. The browser tried to load the front-end assets without the subfolder.
Second, I added the base
option to vite.config.js
. That helped with the JS assets, but all requests to /api/*
are still failing (e.g. /api/config
or /api/notes/[...]
).
from flatnotes.
Also check out #49 (And PR #135), there's been a prior attempt at this but disregarded because of the added complexity
I'd appreciate the addition of such a feature since this is the last missing straw for proper Flatnotes integration in my home server
from flatnotes.
Thank you @Code-Otto for making me aware on the prior work.
As it looks, #135 is probably rendered obsolete by the switch from Parcel to Vite (and #135 was rejected anyway).
from flatnotes.
Related Issues (20)
- Style issues with code blocks HOT 5
- [Feature Request] Attatch Files in Notes HOT 1
- [Feature Request] OCR Software for Pictures and maybe pdf Files
- Images not showing up HOT 1
- [Feature Request] submenu/folders HOT 9
- Searching Bug HOT 2
- Where are all the Notes in the Server File Manager? HOT 4
- Number List issue HOT 1
- Add config option to show "Recently modified" in read-only mode HOT 1
- Multiple Errors HOT 2
- Docker Port revisited HOT 4
- Retain scroll position when switching to edit mode HOT 1
- Install uvloop alongside Uvicorn for performance improvements HOT 4
- Add ability to change port number HOT 2
- [Feature Request] Add cli interface
- /entrypoint.sh: 34: exec: 1000:1000: not found HOT 8
- Keep container in "starting" state HOT 3
- 4.0.4 healthcheck is failing HOT 3
- [Feature] Disable TOAST UI Editor usage statistics HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatnotes.