Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
<script setup>
|
||||
/**
|
||||
* Routes `/account` and `/no-access` (both `meta.requiresSignIn`): the landing
|
||||
* page for a signed-in account that is not an admin, listing the gated
|
||||
* services it has been granted (backend/services/permissions.go) as links.
|
||||
*
|
||||
* `/no-access` is where Caddy's permission gate sends a signed-in visitor who
|
||||
* lacks the permission (`@auth_forbidden`, with the refused address in
|
||||
* `?path=`). It is this same page with a notice on top, since "what can I
|
||||
* open instead" is the useful answer to "you can't open that".
|
||||
*
|
||||
* The links are plain <a href>, not RouterLinks: every service lives in
|
||||
* another container behind Caddy, so it needs a real page load.
|
||||
* `/account` and `/no-access` (Caddy's permission gate refusal): the services
|
||||
* this account may open. Plain <a href>, since they live behind Caddy.
|
||||
*/
|
||||
import { ref, computed, onMounted } from "vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
Reference in New Issue
Block a user