chore(events): scrub leftover sortir/activities references

Cleanup pass caught by review after the main rename landed. None of
these were live code paths — all were doc-comments, example configs,
or build-script labels.

- nginx.conf.example: path-mode example URLs `/activities/` → `/events/`,
  alias `dist-activities` → `dist-events`, the "Sortir / activities
  standalone" parenthetical dropped, and the subdomain example
  `sortir.<domain>` → `events.<domain>`.
- package.json: `dev:all` concurrently process label `sortir` → `events`
  and `build:demo` `VITE_BASE_PATH=/sortir/` → `/events/`. The build
  script call already used `npm run build:events`; this just aligns the
  path prefix and the process tag.
- src/lib/router-helpers.ts: the standalones-list comment for
  `installLenientAuthGuard` updated `activities` → `events`.
- src/modules/market/composables/useMarket.ts: the VITE_APP_NAME
  example in the comment switched from "Sortir" to "Bouge" — matching
  the deployment direction in vite.events.config.ts.
- vite.events.config.ts: VITE_BASE_PATH doc-comment examples switched
  from `/sortir/` and `sortir.ariege.io` to `/events/` and
  `bouge.ariege.io`; the cfaun branding example now says "Bouge".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-06-09 19:54:55 +02:00
commit bf77d2a95a
5 changed files with 16 additions and 16 deletions

View file

@ -15,7 +15,7 @@ http {
# PATH-MODE deployment (recommended)
#
# demo.<domain>.<com>/ — minimal AIO chakra hub
# demo.<domain>.<com>/activities/ — Sortir / activities standalone
# demo.<domain>.<com>/events/ — events standalone
# demo.<domain>.<com>/market/ — marketplace standalone
# demo.<domain>.<com>/wallet/ — wallet standalone
# demo.<domain>.<com>/chat/ — chat standalone
@ -46,11 +46,11 @@ http {
try_files $uri $uri/ /index.html;
}
# ── Activities (Sortir) ──────────────────────────────────────────
location = /activities { return 301 /activities/$is_args$args; }
location /activities/ {
alias /var/www/aio/dist-activities/;
try_files $uri $uri/ /activities.html;
# ── Events ──────────────────────────────────────────
location = /events { return 301 /events/$is_args$args; }
location /events/ {
alias /var/www/aio/dist-events/;
try_files $uri $uri/ /events.html;
}
# ── Market ───────────────────────────────────────────────────────
@ -107,13 +107,13 @@ http {
# If you want pretty subdomain URLs that funnel into the path-mode
# canonical, add 301 redirects per app. Example:
#
# events.demo.<domain>.<com> → demo.<domain>.<com>/activities/
# events.demo.<domain>.<com> → demo.<domain>.<com>/events/
# market.demo.<domain>.<com> → demo.<domain>.<com>/market/
# ───────────────────────────────────────────────────────────────────────
server {
listen 8080;
server_name events.demo.<domain>.<com>;
return 301 https://demo.<domain>.<com>/activities/$request_uri;
return 301 https://demo.<domain>.<com>/events/$request_uri;
}
server {
listen 8080;
@ -154,7 +154,7 @@ http {
#
# server { server_name app.<domain>; root /var/www/aio/dist; ... }
# server { server_name market.<domain>; root /var/www/aio/dist-market; ... }
# server { server_name sortir.<domain>; root /var/www/aio/dist-activities; ... }
# server { server_name events.<domain>; root /var/www/aio/dist-events; ... }
# server { server_name wallet.<domain>; root /var/www/aio/dist-wallet; ... }
# server { server_name chat.<domain>; root /var/www/aio/dist-chat; ... }
# server { server_name forum.<domain>; root /var/www/aio/dist-forum; ... }

View file

@ -33,8 +33,8 @@
"dev:restaurant": "vite --host --config vite.restaurant.config.ts",
"build:restaurant": "vue-tsc -b && vite build --config vite.restaurant.config.ts",
"preview:restaurant": "vite preview --host --config vite.restaurant.config.ts",
"dev:all": "concurrently -n hub,libra,sortir,wallet,chat,forum,market,tasks,restaurant -c blue,magenta,cyan,yellow,green,blue,red,gray,green \"npm:dev\" \"npm:dev:libra\" \"npm:dev:events\" \"npm:dev:wallet\" \"npm:dev:chat\" \"npm:dev:forum\" \"npm:dev:market\" \"npm:dev:tasks\" \"npm:dev:restaurant\"",
"build:demo": "npm run build && VITE_BASE_PATH=/sortir/ npm run build:events && VITE_BASE_PATH=/libra/ npm run build:libra && VITE_BASE_PATH=/wallet/ npm run build:wallet && VITE_BASE_PATH=/chat/ npm run build:chat && VITE_BASE_PATH=/forum/ npm run build:forum && VITE_BASE_PATH=/market/ npm run build:market && VITE_BASE_PATH=/tasks/ npm run build:tasks && VITE_BASE_PATH=/restaurant/ npm run build:restaurant",
"dev:all": "concurrently -n hub,libra,events,wallet,chat,forum,market,tasks,restaurant -c blue,magenta,cyan,yellow,green,blue,red,gray,green \"npm:dev\" \"npm:dev:libra\" \"npm:dev:events\" \"npm:dev:wallet\" \"npm:dev:chat\" \"npm:dev:forum\" \"npm:dev:market\" \"npm:dev:tasks\" \"npm:dev:restaurant\"",
"build:demo": "npm run build && VITE_BASE_PATH=/events/ npm run build:events && VITE_BASE_PATH=/libra/ npm run build:libra && VITE_BASE_PATH=/wallet/ npm run build:wallet && VITE_BASE_PATH=/chat/ npm run build:chat && VITE_BASE_PATH=/forum/ npm run build:forum && VITE_BASE_PATH=/market/ npm run build:market && VITE_BASE_PATH=/tasks/ npm run build:tasks && VITE_BASE_PATH=/restaurant/ npm run build:restaurant",
"electron:dev": "concurrently \"vite --host\" \"electron-forge start\"",
"electron:build": "vue-tsc -b && vite build && electron-builder",
"electron:package": "electron-builder",

View file

@ -56,7 +56,7 @@ export function installStrictAuthGuard(router: Router): void {
/**
* Lenient guard only routes with meta.requiresAuth === true require auth.
* Used by hub and the public standalones (forum, market, tasks, activities).
* Used by hub and the public standalones (forum, market, tasks, events).
*/
export function installLenientAuthGuard(router: Router): void {
router.beforeEach(async (to) => {

View file

@ -204,7 +204,7 @@ export function useMarket() {
// Logged-in user has no published market event yet — show their
// namespace as "My Market". Avoids leaking VITE_APP_NAME (which
// is the brand of whichever standalone app is bundled, e.g.
// "Sortir" for the events app) into the market label.
// "Bouge" for the events app) into the market label.
name: 'My Market',
description: 'A communal market to sell your goods',
merchants: [],

View file

@ -38,11 +38,11 @@ function eventsHtmlPlugin(): Plugin {
* Vite config for the standalone events app.
*
* Set VITE_BASE_PATH to deploy under a path prefix:
* VITE_BASE_PATH=/sortir/ app.ariege.io/sortir/ (shared auth)
* (default: /) sortir.ariege.io (standalone subdomain)
* VITE_BASE_PATH=/events/ app.ariege.io/events/ (shared auth)
* (default: /) bouge.ariege.io (standalone subdomain)
*
* Set VITE_APP_NAME to brand the standalone (PWA name, HTML title, console
* logs). cfaun sets "Sortir" via NixOS; future deployments can override
* logs). cfaun sets "Bouge" via NixOS; future deployments can override
* (e.g. "Bouge"). Defaults to "Events".
*/
const APP_NAME = process.env.VITE_APP_NAME || 'Events'