Codebase cleanup: remove dead code, fix docker, update docs
app.py: - Remove 'raw' field from export dict entries (only comment/blank kinds need raw; export entries are always reconstructed from path/rest/enabled when writing back) - Remove extra blank line shares.js: - Remove unused pathJson variable in SMB row (was only needed for the quota button, which was removed) docker-compose.yml: - Deleted entirely: was missing templates/ and static/ mounts so the Flask app couldn't serve pages; SYS_ADMIN cap_add was only needed for quotas; deployment is systemd, not Docker README.md: - Remove quota package from apt install command - Remove quota setup section (feature removed) - Remove docker-compose from Dev section CLAUDE.md / PLANNING.md: - Remove docker-compose.yml references and quotas.js from file tree .gitignore: - Remove redundant micronas.env entry (already covered by *.env) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
bf7daf1c2c
commit
96055e6375
7 files changed
+7
-73
No files matched your search
@@ -157,15 +157,13 @@ def _parse_exports():
|
||||
if inner.startswith('/'):
|
||||
parts = inner.split(None, 1)
|
||||
entries.append({'kind': 'export', 'enabled': False,
|
||||
'path': parts[0], 'rest': parts[1] if len(parts) > 1 else '',
|
||||
'raw': raw})
|
||||
'path': parts[0], 'rest': parts[1] if len(parts) > 1 else ''})
|
||||
else:
|
||||
entries.append({'kind': 'comment', 'raw': raw})
|
||||
continue
|
||||
parts = stripped.split(None, 1)
|
||||
entries.append({'kind': 'export', 'enabled': True,
|
||||
'path': parts[0], 'rest': parts[1] if len(parts) > 1 else '',
|
||||
'raw': raw})
|
||||
'path': parts[0], 'rest': parts[1] if len(parts) > 1 else ''})
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
return entries
|
||||
@@ -562,7 +560,6 @@ def _shares_with_usage():
|
||||
|
||||
|
||||
|
||||
|
||||
@app.route('/api/dashboard', methods=['GET'])
|
||||
@require_auth
|
||||
def get_dashboard():
|
||||
|
||||
Reference in new issue
Block a user