diff --git a/backend/main.py b/backend/main.py index 6ced7a8..a7740a2 100644 --- a/backend/main.py +++ b/backend/main.py @@ -80,8 +80,9 @@ if 'AUTHENTICATION_SECRET_KEY' in os.environ: # Initialize app app = FastAPI( title=config['app']['name'], - description=config['app']['tagline'], - version=config['app']['version'] + version=config['app']['version'], + docs_url=None, # Disable Swagger UI at /docs + redoc_url=None # Disable ReDoc at /redoc ) # CORS middleware configuration @@ -325,8 +326,7 @@ async def api_documentation(): return { "app": { "name": config['app']['name'], - "version": config['app']['version'], - "description": config['app']['tagline'] + "version": config['app']['version'] }, "endpoints": [ { @@ -339,7 +339,7 @@ async def api_documentation(): "method": "GET", "path": "/api/config", "description": "Get application configuration", - "response": "{ name, tagline, version, searchEnabled }" + "response": "{ name, version, searchEnabled }" }, { "method": "GET", @@ -489,7 +489,6 @@ async def get_config(): """Get app configuration for frontend""" return { "name": config['app']['name'], - "tagline": config['app']['tagline'], "version": config['app']['version'], "searchEnabled": config['search']['enabled'], "demoMode": DEMO_MODE, # Expose demo mode flag to frontend diff --git a/config.yaml b/config.yaml index 5e88d3e..d83c30b 100644 --- a/config.yaml +++ b/config.yaml @@ -3,7 +3,7 @@ app: name: "NoteDiscovery" - tagline: "Your Self-Hosted Knowledge Base" + # Tagline is now localized - see locales/*.json files (app.tagline key) server: host: "0.0.0.0" @@ -28,7 +28,7 @@ search: authentication: # Authentication settings # Set enabled to true to require login - enabled: false + enabled: true # ⚠️ SECURITY WARNING: Change these values before exposing to the internet! # Default values below are for LOCAL TESTING ONLY diff --git a/frontend/app.js b/frontend/app.js index 046fd52..facaa34 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -36,7 +36,6 @@ function noteApp() { return { // App state appName: 'NoteDiscovery', - appTagline: 'Your Self-Hosted Knowledge Base', appVersion: '0.0.0', authEnabled: false, notes: [], @@ -568,7 +567,6 @@ function noteApp() { const response = await fetch('/api/config'); const config = await response.json(); this.appName = config.name; - this.appTagline = config.tagline; this.appVersion = config.version || '0.0.0'; this.authEnabled = config.authentication?.enabled || false; } catch (error) { @@ -1441,7 +1439,7 @@ function noteApp() { ${folder.name} - ${folder.notes.length === 0 && (!folder.children || Object.keys(folder.children).length === 0) ? '(empty)' : ''} + ${folder.notes.length === 0 && (!folder.children || Object.keys(folder.children).length === 0) ? `(${this.t('folders.empty')})` : ''}
diff --git a/frontend/index.html b/frontend/index.html index 545dcfc..e8e322c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1394,7 +1394,8 @@
@@ -1763,7 +1764,7 @@

-

+

@@ -1800,11 +1801,11 @@
- + - +