mirror of
https://github.com/wekan/wekan.git
synced 2026-11-18 05:45:02 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ab41c8003 | ||
|
|
b2284f577e | ||
|
|
15adf1bb2d | ||
|
|
17161a8355 | ||
|
|
2c23273c11 | ||
|
|
25d33cec36 | ||
|
|
0f2179988b | ||
|
|
d5937f6d38 | ||
|
|
7c0ae509ac | ||
|
|
42b4e51f85 | ||
|
|
66a19c4bd4 | ||
|
|
5e036dc544 | ||
|
|
973c2ad901 | ||
|
|
dd3f71c951 | ||
|
|
6b9086d2a8 | ||
|
|
9ddbc777dd | ||
|
|
65bf215cbe | ||
|
|
e4e73e8b80 | ||
|
|
c83284811c | ||
|
|
643a296595 | ||
|
|
2d76e1cb92 | ||
|
|
4fc918c245 | ||
|
|
d7ca7360ff | ||
|
|
fcce2e1cea | ||
|
|
a91203b158 | ||
|
|
794346e396 | ||
|
|
ed19445d30 | ||
|
|
1193f3a4b5 | ||
|
|
98ba5fcc9d | ||
|
|
b735f23045 | ||
|
|
7491c37feb | ||
|
|
503601515a | ||
|
|
10d5006d2e | ||
|
|
2513c782f7 | ||
|
|
c1cae29544 | ||
|
|
98dae04c2d | ||
|
|
4e15057277 | ||
|
|
f602b9459f | ||
|
|
b3a9b90f22 | ||
|
|
14e6851f01 | ||
|
|
ab1c636e71 | ||
|
|
4e1e661d99 | ||
|
|
a84a88794f | ||
|
|
a5d206e23d | ||
|
|
aadd653b15 | ||
|
|
7d271413bf | ||
|
|
73ad55f696 | ||
|
|
1a4283e598 | ||
|
|
8ec4855d6c | ||
|
|
1088f31a0d | ||
|
|
c032c24065 | ||
|
|
88e692ef43 | ||
|
|
b9a9bf1593 | ||
|
|
8db071f94c | ||
|
|
0ebf34aedc | ||
|
|
3f42d4d3f0 | ||
|
|
3e6a11d7f0 | ||
|
|
3bd9da70d4 | ||
|
|
8e47eca72e | ||
|
|
2c895107a0 | ||
|
|
22a4f419ce | ||
|
|
f2a417047b | ||
|
|
48e47e6687 | ||
|
|
22804fdf38 | ||
|
|
87783b6f15 | ||
|
|
856743baef | ||
|
|
8a958650be | ||
|
|
3cc9dccb3c | ||
|
|
6744fca2b3 | ||
|
|
b9b6a55be6 | ||
|
|
e7ec28b7a6 | ||
|
|
db41dad70f | ||
|
|
dc6839aef6 | ||
|
|
2e39d80cf5 | ||
|
|
220d04e50d | ||
|
|
4ab6b8561f | ||
|
|
97911f3e3e | ||
|
|
c3e36d4a2e | ||
|
|
2676e8d434 | ||
|
|
e5e9f83650 | ||
|
|
96428115f4 | ||
|
|
c6a75de076 | ||
|
|
1a9263326c | ||
|
|
d923166a96 | ||
|
|
0b8564d8c8 | ||
|
|
a1e868384e | ||
|
|
1483c271ff | ||
|
|
53c6d20342 | ||
|
|
434e7dd1e2 | ||
|
|
a4505f9553 | ||
|
|
aa568e8087 | ||
|
|
5894b000a2 | ||
|
|
a7374ff8a4 | ||
|
|
9db870a087 | ||
|
|
88b181c18e | ||
|
|
cc2a317236 | ||
|
|
9f5e459dda | ||
|
|
02b3bed5ce | ||
|
|
ac69e0e171 | ||
|
|
f4d05feb0a | ||
|
|
c21f3d86ef | ||
|
|
5b697f983b | ||
|
|
faf7ff6efa | ||
|
|
3a4f3c896e | ||
|
|
0514a2fa5d | ||
|
|
eb92574650 | ||
|
|
422daa6a0c | ||
|
|
339729fd95 | ||
|
|
f6ba472f67 | ||
|
|
efbd540b48 | ||
|
|
592d803924 | ||
|
|
86142f542c | ||
|
|
a13ce5ef09 | ||
|
|
247522484c | ||
|
|
f1cc8daebf | ||
|
|
06fdede782 | ||
|
|
3c98336445 | ||
|
|
daeaa2b9d8 | ||
|
|
38ce497887 | ||
|
|
9787445fbb | ||
|
|
f68c91d102 | ||
|
|
620b9be180 | ||
|
|
0ed35e00db | ||
|
|
5a90a1987a | ||
|
|
f1f6fecf44 | ||
|
|
6cb4ae2d64 | ||
|
|
3ecb90fc04 | ||
|
|
dc135f6e7d | ||
|
|
5b8e47649e | ||
|
|
fb1df544dd | ||
|
|
f031b885d7 | ||
|
|
a4c1ce3d41 | ||
|
|
5b0ad4d334 | ||
|
|
6b409c5dad | ||
|
|
298ffcfd3b | ||
|
|
cf217784d1 | ||
|
|
bb7fe88bd5 | ||
|
|
ffc6652be0 | ||
|
|
db90fb9e61 | ||
|
|
6784726bac | ||
|
|
0c4b8f4d93 | ||
|
|
b98abe7b00 | ||
|
|
e0c76099f0 | ||
|
|
b4bfc75947 | ||
|
|
dcd5f8fdd5 | ||
|
|
7273220780 | ||
|
|
0d90011aff | ||
|
|
2df6a77072 | ||
|
|
ade9f16db4 | ||
|
|
8cbfe3daee | ||
|
|
1bf68f54b2 | ||
|
|
619eda0a9d | ||
|
|
3d2ab08294 | ||
|
|
6a12d968e0 | ||
|
|
9f23e6384b | ||
|
|
5d44e0b98b | ||
|
|
e65e06865a | ||
|
|
b8bdbcd2d7 | ||
|
|
3476cd17c7 | ||
|
|
cab231ee3a | ||
|
|
d693ae8d7d | ||
|
|
5054dab8b6 | ||
|
|
9c06bd5772 | ||
|
|
beefe441d7 | ||
|
|
0e0a8bbb33 | ||
|
|
5f40f612f5 | ||
|
|
b0703befd7 | ||
|
|
7f42db4670 | ||
|
|
6142396ae9 | ||
|
|
3076f2317e | ||
|
|
62df991532 | ||
|
|
50abd8f95a | ||
|
|
cafbb1761b | ||
|
|
a5bcb2e27c | ||
|
|
0804cd19e8 | ||
|
|
3b109d14e8 | ||
|
|
3f5c70e643 | ||
|
|
455e498482 | ||
|
|
3ab2b9dccb | ||
|
|
d79f90fdfe | ||
|
|
1ca7bd3bb6 | ||
|
|
525cd07eee | ||
|
|
dc8ff6e6ca | ||
|
|
c671a7fc8c | ||
|
|
d5092c9b2d | ||
|
|
68e59ab66f | ||
|
|
11f87c2115 | ||
|
|
21644652e2 | ||
|
|
6f3174b23d | ||
|
|
fb0c7f7f60 | ||
|
|
d5f707fd37 | ||
|
|
be8976ed8c | ||
|
|
b0712e6656 | ||
|
|
ad46cb6102 | ||
|
|
8f11e8ac66 | ||
|
|
bb8233655c | ||
|
|
b5945cf596 | ||
|
|
6e60644bdb | ||
|
|
ccdd1a0846 | ||
|
|
04737bd76e | ||
|
|
7f0706e45f | ||
|
|
ab8da931cf | ||
|
|
013b6b5266 | ||
|
|
0115622a9a | ||
|
|
975316f5cd | ||
|
|
54aad554aa | ||
|
|
60e40199c9 | ||
|
|
ff3f35ac43 | ||
|
|
8549a62c85 | ||
|
|
8b9202d677 | ||
|
|
f4f22bbe24 | ||
|
|
32b561cfbf | ||
|
|
1c28b40fd4 | ||
|
|
7f5cc03ea9 | ||
|
|
60116bc72f | ||
|
|
66d8706c4d | ||
|
|
143607ef22 | ||
|
|
0f52b6a787 | ||
|
|
87f4536e9d | ||
|
|
cdde52392b | ||
|
|
62f93fa46c | ||
|
|
5b3a3fb744 | ||
|
|
349f4aa046 | ||
|
|
ae1f37658c | ||
|
|
df94214798 | ||
|
|
6c22e43be8 | ||
|
|
5e5baf5ed7 | ||
|
|
713c13831b | ||
|
|
e400ecf548 | ||
|
|
e9db3a8c2f | ||
|
|
260a2afacc | ||
|
|
a8cf44cfaa | ||
|
|
d53e7cafbb | ||
|
|
f278d9ae68 | ||
|
|
a700152e58 | ||
|
|
b5f9097681 | ||
|
|
b227a93193 | ||
|
|
52c62021a9 | ||
|
|
692a258758 | ||
|
|
8847798f3c | ||
|
|
087d9fd0d8 | ||
|
|
da55f1c413 | ||
|
|
28b4c6687c | ||
|
|
10db1c3e76 | ||
|
|
1a376b5dde | ||
|
|
e20dd132c1 | ||
|
|
64da38b412 | ||
|
|
2a6bdadc15 | ||
|
|
7598859a47 | ||
|
|
4a94793f68 |
No files matched your search
@@ -0,0 +1,107 @@
|
||||
name: Build meteor-spk bundle
|
||||
|
||||
# Manually triggered. Assembles WeKan's modernized meteor-spk (the Sandstorm packaging
|
||||
# tool + its meteor-spk.deps: Node 24, FerretDB, the Mongo 3.x CLIs and the modern
|
||||
# sandstorm-http-bridge) and zips it as meteor-spk-YYYY-MM-DD_HH_MM_SS.zip — the same kind
|
||||
# of self-contained meteor-spk bundle that https://github.com/sandstorm-io/meteor-spk
|
||||
# releases, but with WeKan's Node 24 / FerretDB deps baked in. Download it to `meteor-spk
|
||||
# pack` WeKan (or any Meteor 3.x app) without re-running build-deps.sh each time.
|
||||
#
|
||||
# gh workflow run meteor-spk.yml
|
||||
#
|
||||
# This only assembles + zips the tool; it does NOT pack or sign a WeKan .spk, so it needs
|
||||
# no SANDSTORM_KEYRING. The .spk itself is built by sandstorm.yml; the Sandstorm App
|
||||
# Market publish is done by sandstorm-store.yml.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: 'Branch, tag or SHA to build the meteor-spk deps from (default: main)'
|
||||
required: false
|
||||
default: 'main'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
NODE_VERSION: '24'
|
||||
|
||||
jobs:
|
||||
meteor-spk:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
ref: ${{ github.event.inputs.ref || 'main' }}
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Enable unprivileged user namespaces (Ubuntu 24.04 restricts them)
|
||||
# Same as sandstorm.yml: Ubuntu 24.04's AppArmor blocks the unprivileged user
|
||||
# namespaces the Sandstorm install relies on; relax it so the install (whose
|
||||
# sandstorm-http-bridge build-deps.sh copies in) can run on the runner.
|
||||
run: |
|
||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
|
||||
sudo sysctl -w kernel.unprivileged_userns_clone=1 2>/dev/null || true
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y p7zip-full wget curl build-essential g++ make python3 unzip xz-utils git zip
|
||||
|
||||
- name: Install Sandstorm (dev, unattended)
|
||||
# build-deps.sh's [bridge] step copies the modern
|
||||
# /opt/sandstorm/latest/bin/sandstorm-http-bridge into the deps, so Sandstorm
|
||||
# must be installed first — same ordering as sandstorm.yml.
|
||||
run: curl https://install.sandstorm.io | sudo bash -s -- -d
|
||||
|
||||
- name: Assemble modern meteor-spk.deps (Node 24 + FerretDB + Mongo 3.x CLIs)
|
||||
# Base = upstream meteor-spk 0.6.0 from dl.sandstorm.io; build-deps.sh swaps in
|
||||
# Node 24, FerretDB, the Mongo 3.x CLIs, the migration launcher/importer, keeps
|
||||
# niscud, and swaps in the modern sandstorm-http-bridge. Produces
|
||||
# $HOME/projects/meteor-spk/meteor-spk-0.6.0 (the meteor-spk tool + deps).
|
||||
run: bash sandstorm-src/build-deps.sh
|
||||
|
||||
- name: Zip the meteor-spk bundle
|
||||
id: zip
|
||||
run: |
|
||||
set -euo pipefail
|
||||
STAMP="$(date +'%Y-%m-%d_%H_%M_%S')"
|
||||
ZIP="meteor-spk-${STAMP}.zip"
|
||||
BUNDLE_DIR="$HOME/projects/meteor-spk"
|
||||
if [ ! -d "$BUNDLE_DIR/meteor-spk-0.6.0" ]; then
|
||||
echo "::error::Expected meteor-spk bundle at $BUNDLE_DIR/meteor-spk-0.6.0 was not produced by build-deps.sh."
|
||||
exit 1
|
||||
fi
|
||||
# Zip so it extracts to a top-level meteor-spk-0.6.0/ directory, like the
|
||||
# upstream meteor-spk release archives. Exclude the base tarball build-deps.sh
|
||||
# downloaded next to it.
|
||||
( cd "$BUNDLE_DIR" && zip -r -y -q "$GITHUB_WORKSPACE/$ZIP" meteor-spk-0.6.0 -x '*.tar.xz' )
|
||||
ZIP_BYTES=$(stat -c%s "$GITHUB_WORKSPACE/$ZIP")
|
||||
echo "Packed $ZIP: $((ZIP_BYTES/1024/1024)) MiB ($ZIP_BYTES bytes)"
|
||||
ls -la "$GITHUB_WORKSPACE/$ZIP"
|
||||
echo "zip=$ZIP" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ steps.zip.outputs.zip }}
|
||||
path: ${{ steps.zip.outputs.zip }}
|
||||
retention-days: 7
|
||||
|
||||
- name: Upload the meteor-spk bundle to the newest WeKan release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
TAG="$(gh release list --limit 1 --json tagName --jq '.[0].tagName' 2>/dev/null || true)"
|
||||
if [ -z "${TAG:-}" ] || [ "$TAG" = "null" ]; then
|
||||
echo "::warning::No existing GitHub Release found; the meteor-spk bundle is available only as a workflow artifact."
|
||||
exit 0
|
||||
fi
|
||||
echo "Uploading ${{ steps.zip.outputs.zip }} to the newest release: $TAG"
|
||||
gh release upload "$TAG" "${{ steps.zip.outputs.zip }}" --clobber
|
||||
+373
-184
@@ -11,9 +11,11 @@ name: Release All Platforms
|
||||
# and arm64 (+ the win64/mac bundles). On every OTHER architecture that has a
|
||||
# Node.js 24 build — ppc64le, s390x, riscv64 — there is no MongoDB, so those
|
||||
# bundles ship FerretDB v1 instead: the wekan/FerretDB fork with its embedded
|
||||
# pure-Go SQLite backend, which speaks the MongoDB wire protocol. The FerretDB
|
||||
# binary is cross-compiled once (build-ferretdb) and baked into EVERY bundle, so
|
||||
# amd64/arm64 users can opt into it too (WEKAN_DB=ferretdb, `snap set wekan
|
||||
# pure-Go SQLite backend, which speaks the MongoDB wire protocol. FerretDB is
|
||||
# built + released SEPARATELY (wekan/FerretDB, its own build.sh) as individual
|
||||
# per-arch binaries; each bundle job downloads ONLY the ferretdb-<arch> binary for
|
||||
# the platform it targets and bakes it in, so amd64/arm64 users can opt into it
|
||||
# too (WEKAN_DB=ferretdb, `snap set wekan
|
||||
# database=ferretdb`, or Docker env). Whichever backend is chosen binds the same
|
||||
# MongoDB port, so MONGO_URL is unchanged. ppc64le/s390x/riscv64 are now covered
|
||||
# by the Docker image as well (self-contained, FerretDB auto-started). riscv64
|
||||
@@ -30,11 +32,11 @@ name: Release All Platforms
|
||||
# - charts: updates and publishes the wekan/charts Helm chart and pushes,
|
||||
# only AFTER the `docker` job has published the image (skipped if
|
||||
# docker fails)
|
||||
# - build-ferretdb: downloads the newest prebuilt ferretdb.zip from the
|
||||
# wekan/FerretDB releases (FerretDB is built + released separately by
|
||||
# its own build.sh — not compiled here); every bundle embeds its own
|
||||
# - build-*: builds the amd64 bundle (full Meteor 3 build), then rebuilds native
|
||||
# modules for arm64 from that amd64 base (each embeds its FerretDB)
|
||||
# modules for arm64 from that amd64 base. Each bundle job downloads
|
||||
# only the ferretdb-<arch> binary it needs from the newest wekan/FerretDB
|
||||
# release (FerretDB is built + released separately by its own build.sh —
|
||||
# not compiled here) and embeds it
|
||||
# - release: creates the GitHub Release with the newest CHANGELOG.md notes and
|
||||
# uploads the core wekan-<version>-{amd64,arm64}.zip bundles
|
||||
# - build-win64 / build-mac-arm64 / build-extra-arches: built AFTER release, each
|
||||
@@ -43,11 +45,21 @@ name: Release All Platforms
|
||||
# its .zip to the Release. Windows/macOS strip the Linux FerretDB back
|
||||
# out (MongoDB-only). Decoupled from `release` so a slow/flaky build
|
||||
# never blocks it
|
||||
# - build-sandstorm: built AFTER release, builds the Sandstorm .spk package
|
||||
# (same steps as the standalone sandstorm.yml workflow, which still
|
||||
# exists for testing the .spk build on its own) and attaches
|
||||
# wekan-<version>-sandstorm.spk to the Release. Non-blocking: the
|
||||
# Sandstorm build is the experimental/fragile part of CI, so it
|
||||
# never fails the release
|
||||
# - docker: builds and pushes the multi-arch image (amd64, arm64, ppc64le, s390x,
|
||||
# riscv64) to Docker Hub, Quay.io, GHCR
|
||||
# - snap: builds the snap on Launchpad (amd64 + arm64), pushes it to the Snap
|
||||
# Store and attaches the .snap files to the GitHub Release. `snap set
|
||||
# wekan database=ferretdb` switches the running backend to FerretDB v1
|
||||
# - snap: builds the snap on Launchpad from the default core24 snapcraft.yaml
|
||||
# (platforms: amd64, arm64, s390x, ppc64el, riscv64), pushes it to the
|
||||
# Snap Store stable + candidate + beta + edge channels and attaches
|
||||
# the .snap files to the GitHub Release. core24 allows stable and
|
||||
# candidate (core26 does not).
|
||||
# `snap set wekan database=ferretdb` switches the running backend to
|
||||
# FerretDB v1 (snapcraft-core26.yaml is the core26 variant)
|
||||
#
|
||||
# Required GitHub Secrets:
|
||||
# GHCR_AUTH - base64("username:token") for ghcr.io
|
||||
@@ -56,6 +68,8 @@ name: Release All Platforms
|
||||
# SNAP_AUTH - Snap Store credentials (output of `snapcraft export-login`)
|
||||
# LP_CREDENTIALS - base64 of the Launchpad credentials file used by
|
||||
# `snapcraft remote-build` (see releases/snap-build.sh notes)
|
||||
# SANDSTORM_KEYRING - base64 of ~/.sandstorm-keyring; meteor-spk signs the .spk
|
||||
# with the WeKan Sandstorm app's private key from this keyring
|
||||
# WEKAN_REPO_TOKEN - Personal Access Token with write access to wekan/wekan.fi
|
||||
# and wekan/charts, used by the website + charts jobs to push
|
||||
# to those repos (the built-in GITHUB_TOKEN only covers
|
||||
@@ -269,7 +283,7 @@ jobs:
|
||||
# The full Meteor build always runs here on x86_64; every other platform then
|
||||
# only rebuilds the native npm modules from this bundle.
|
||||
build-amd64:
|
||||
needs: [prepare, build-ferretdb]
|
||||
needs: [prepare]
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 180
|
||||
env:
|
||||
@@ -295,7 +309,7 @@ jobs:
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential g++ make python3 curl wget zip unzip
|
||||
sudo apt-get install -y build-essential g++ make python3 curl wget zip unzip qemu-user-static
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
@@ -319,11 +333,6 @@ jobs:
|
||||
cd .build/bundle/programs/server
|
||||
npm install
|
||||
|
||||
- name: Download ferretdb.zip
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: ferretdb-zip
|
||||
|
||||
- name: Embed Node.js, FerretDB (amd64) and launcher into the bundle
|
||||
# Make the release .zip self-contained (offline): bundle Node.js + FerretDB
|
||||
# + a start-wekan.sh that runs WeKan on the bundled Node against the bundled
|
||||
@@ -336,13 +345,32 @@ jobs:
|
||||
# matching this base bundle's arch.
|
||||
cp -L "$(command -v node)" .build/bundle/node
|
||||
chmod +x .build/bundle/node
|
||||
# Bundled FerretDB (amd64) from the single-source ferretdb.zip.
|
||||
unzip -o -j ferretdb.zip "ferretdb/amd64/ferretdb-amd64" -d .build/bundle
|
||||
mv .build/bundle/ferretdb-amd64 .build/bundle/ferretdb
|
||||
# Bundled FerretDB (amd64): download only this arch's binary from the
|
||||
# newest wekan/FerretDB release (per-arch assets, no ferretdb.zip).
|
||||
curl -fSL --retry 5 --retry-delay 10 -o .build/bundle/ferretdb \
|
||||
"https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-amd64"
|
||||
chmod +x .build/bundle/ferretdb
|
||||
# Bundled MongoDB Database Tools (amd64) from wekan/mongo-tools (per-arch,
|
||||
# no mongodb.com). This base amd64 bundle is inherited by the other Linux
|
||||
# arches, which overwrite these with their own arch's tools below.
|
||||
MT="https://github.com/wekan/mongo-tools/releases/latest/download"
|
||||
for t in bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop; do
|
||||
curl -fSL --retry 5 --retry-delay 10 -o ".build/bundle/$t" "$MT/$t-amd64"
|
||||
chmod +x ".build/bundle/$t"
|
||||
done
|
||||
# Self-contained launcher (defaults to FerretDB SQLite + WRITABLE_PATH).
|
||||
cp releases/ferretdb/start-wekan.sh .build/bundle/
|
||||
chmod +x .build/bundle/start-wekan.sh
|
||||
# #6458: cpu-exec + same-arch qemu-user. cpu-exec runs any bundled
|
||||
# binary that declares required CPU features (e.g. an external
|
||||
# MongoDB 5+: AVX on x86_64) through qemu-user emulation on CPUs
|
||||
# that lack them — including hypervisors that mask AVX. Every Linux
|
||||
# bundle ships its own arch's qemu-user; other arches overwrite
|
||||
# these below.
|
||||
cp snap-src/bin/cpu-exec .build/bundle/cpu-exec
|
||||
chmod +x .build/bundle/cpu-exec
|
||||
cp /usr/bin/qemu-x86_64-static .build/bundle/qemu-x86_64
|
||||
chmod +x .build/bundle/qemu-x86_64
|
||||
|
||||
- name: Create amd64 zip
|
||||
run: |
|
||||
@@ -357,7 +385,7 @@ jobs:
|
||||
|
||||
# ─── 3. Build arm64 bundle (rebuild native modules natively) ─────────────────
|
||||
build-arm64:
|
||||
needs: [prepare, build-amd64, build-ferretdb]
|
||||
needs: [prepare, build-amd64]
|
||||
runs-on: ubuntu-24.04-arm
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
@@ -366,7 +394,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential g++ make python3 curl unzip zip
|
||||
sudo apt-get install -y build-essential g++ make python3 curl unzip zip qemu-user-static
|
||||
|
||||
- name: Download amd64 bundle
|
||||
uses: actions/download-artifact@v8
|
||||
@@ -396,20 +424,29 @@ jobs:
|
||||
node:${NODE_VERSION}-slim \
|
||||
sh -c "apt-get update -qq && apt-get install -y -q build-essential python3 && npm install"
|
||||
|
||||
- name: Download ferretdb.zip
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: ferretdb-zip
|
||||
|
||||
- name: Embed Node.js + FerretDB (arm64) into the bundle
|
||||
# The launcher (start-wekan.sh) is inherited from the amd64 base bundle;
|
||||
# swap bundle/node (runner is arm64 -> linux-arm64 Node 24) and bundle/ferretdb.
|
||||
run: |
|
||||
cp -L "$(command -v node)" bundle/node
|
||||
chmod +x bundle/node
|
||||
unzip -o -j ferretdb.zip "ferretdb/arm64/ferretdb-arm64" -d bundle
|
||||
mv bundle/ferretdb-arm64 bundle/ferretdb
|
||||
# Download only the arm64 FerretDB binary from the newest wekan/FerretDB release.
|
||||
curl -fSL --retry 5 --retry-delay 10 -o bundle/ferretdb \
|
||||
"https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-arm64"
|
||||
chmod +x bundle/ferretdb
|
||||
# Overwrite the inherited amd64 MongoDB Database Tools with arm64 ones.
|
||||
MT="https://github.com/wekan/mongo-tools/releases/latest/download"
|
||||
for t in bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop; do
|
||||
curl -fSL --retry 5 --retry-delay 10 -o "bundle/$t" "$MT/$t-arm64"
|
||||
chmod +x "bundle/$t"
|
||||
done
|
||||
# #6458: replace the inherited amd64 qemu-user with this arch's own
|
||||
# (cpu-exec is a shell script and stays as inherited). qemu-aarch64
|
||||
# lets ARMv8.0 hosts (Raspberry Pi 4 and older) run binaries that
|
||||
# need ARMv8.2-A, like MongoDB 5+.
|
||||
rm -f bundle/qemu-x86_64
|
||||
cp /usr/bin/qemu-aarch64-static bundle/qemu-aarch64
|
||||
chmod +x bundle/qemu-aarch64
|
||||
|
||||
- name: Create arm64 zip
|
||||
run: |
|
||||
@@ -427,7 +464,6 @@ jobs:
|
||||
- prepare
|
||||
- build-amd64
|
||||
- build-arm64
|
||||
- build-ferretdb
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
VERSION: ${{ needs.prepare.outputs.version }}
|
||||
@@ -444,10 +480,11 @@ jobs:
|
||||
tag_name: v${{ needs.prepare.outputs.version }}
|
||||
name: v${{ needs.prepare.outputs.version }}
|
||||
body: ${{ needs.prepare.outputs.changelog }}
|
||||
# ferretdb.zip is NOT attached here: it already lives on the
|
||||
# wekan/FerretDB releases (https://github.com/wekan/FerretDB/releases),
|
||||
# which is where the WeKan builds fetch it from. The per-arch FerretDB
|
||||
# binaries are embedded inside each wekan-<version>-<arch>.zip bundle.
|
||||
# FerretDB binaries are NOT attached here: the per-arch ferretdb-<arch>
|
||||
# binaries live on the wekan/FerretDB releases
|
||||
# (https://github.com/wekan/FerretDB/releases), which is where the WeKan
|
||||
# builds fetch them from. Each wekan-<version>-<arch>.zip bundle embeds
|
||||
# its own arch's FerretDB binary.
|
||||
files: |
|
||||
wekan-${{ needs.prepare.outputs.version }}-amd64.zip
|
||||
wekan-${{ needs.prepare.outputs.version }}-arm64.zip
|
||||
@@ -462,7 +499,7 @@ jobs:
|
||||
|
||||
# Build win64 bundle (rebuild native modules on Windows).
|
||||
build-win64:
|
||||
needs: [prepare, build-amd64, release, build-ferretdb]
|
||||
needs: [prepare, build-amd64, release]
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
@@ -492,10 +529,14 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
7z x wekan-${VERSION}-amd64.zip
|
||||
# Drop the Linux node + FerretDB binaries + POSIX launcher inherited from
|
||||
# the amd64 base bundle; the Windows node.exe, ferretdb.exe and
|
||||
# start-wekan.bat are added in a later step.
|
||||
# Drop the Linux node + FerretDB binaries + MongoDB Database Tools + POSIX
|
||||
# launcher inherited from the amd64 base bundle; the Windows node.exe,
|
||||
# ferretdb.exe, *.exe tools and start-wekan.bat are added in later steps.
|
||||
rm -f bundle/node bundle/ferretdb bundle/.ferretdb-default bundle/start-wekan.sh
|
||||
rm -f bundle/bsondump bundle/mongodump bundle/mongoexport bundle/mongofiles \
|
||||
bundle/mongoimport bundle/mongorestore bundle/mongostat bundle/mongotop
|
||||
# Linux-only cpu-exec + qemu-user (#6458) make no sense on Windows.
|
||||
rm -f bundle/cpu-exec bundle/qemu-x86_64
|
||||
# Fix: bcrypt 5.0.1 (Meteor accounts-password) ships node-addon-api@3
|
||||
# which fails to compile on Node.js 24. Replace with bcrypt 6.0.0.
|
||||
BCRYPT_DIR="$(pwd)/bundle/programs/server/npm/node_modules/meteor/accounts-password/node_modules/bcrypt"
|
||||
@@ -518,64 +559,43 @@ jobs:
|
||||
rm -rf node_modules
|
||||
npm install
|
||||
|
||||
- name: Add MongoDB tools, mongosh and start-wekan.bat to the bundle
|
||||
- name: Add MongoDB Database Tools to the bundle
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# Use the same MongoDB tools/mongosh versions as the snap, which
|
||||
# releases/version.sh keeps at the newest release for each bundle.
|
||||
TOOLS_VER=$(grep -oE 'mongodb-database-tools-ubuntu2204-\$\{TOOLS_ARCH\}-[0-9]+\.[0-9]+\.[0-9]+' src/snapcraft.yaml \
|
||||
| grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
||||
MONGOSH_VER=$(grep -oE 'mongosh-[0-9]+\.[0-9]+\.[0-9]+-linux' src/snapcraft.yaml \
|
||||
| grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
||||
echo "MongoDB Database Tools: $TOOLS_VER mongosh: $MONGOSH_VER"
|
||||
|
||||
# MongoDB Database Tools (Windows): bsondump, mongodump, mongoexport,
|
||||
# mongofiles, mongoimport, mongorestore, mongostat, mongotop.
|
||||
TOOLS_DIR="mongodb-database-tools-windows-x86_64-${TOOLS_VER}"
|
||||
curl -fL -o tools.zip \
|
||||
"https://fastdl.mongodb.org/tools/db/${TOOLS_DIR}.zip"
|
||||
7z x -y tools.zip > /dev/null
|
||||
cp "${TOOLS_DIR}/bin/"*.exe bundle/
|
||||
|
||||
# mongosh (Windows): mongosh.exe + mongosh_crypt_v1.dll.
|
||||
MONGOSH_DIR="mongosh-${MONGOSH_VER}-win32-x64"
|
||||
curl -fL -o mongosh.zip \
|
||||
"https://downloads.mongodb.com/compass/${MONGOSH_DIR}.zip"
|
||||
7z x -y mongosh.zip > /dev/null
|
||||
cp "${MONGOSH_DIR}/bin/mongosh.exe" bundle/
|
||||
cp "${MONGOSH_DIR}/bin/mongosh_crypt_v1.dll" bundle/
|
||||
|
||||
# Windows launcher from the repo root.
|
||||
cp src/start-wekan.bat bundle/
|
||||
# MongoDB Database Tools (Windows) built by wekan/mongo-tools (pure Go),
|
||||
# one <tool>-win64.exe per tool from that repo's newest release — no
|
||||
# mongodb.com dependency. No mongosh: WeKan no longer bundles the MongoDB
|
||||
# Shell; scripted DB access uses the bundled Node.js 24 + `mongodb` driver.
|
||||
# (The Windows launcher, start-wekan.bat, is added by the FerretDB embed
|
||||
# step below from releases/ferretdb/start-wekan.bat.)
|
||||
BASE="https://github.com/wekan/mongo-tools/releases/latest/download"
|
||||
for tool in bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop; do
|
||||
curl -fL --retry 5 --retry-delay 10 -o "bundle/${tool}.exe" "${BASE}/${tool}-win64.exe"
|
||||
done
|
||||
|
||||
echo "=== bundle contents ==="
|
||||
ls -1 bundle/
|
||||
|
||||
- name: Download ferretdb.zip
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: ferretdb-zip
|
||||
|
||||
- name: Embed Node.js, FerretDB (win64) and launcher into the bundle
|
||||
shell: bash
|
||||
# Make the Windows .zip self-contained: bundle node.exe (from the runner's
|
||||
# win-x64 Node 24), ferretdb.exe (from the single-source ferretdb.zip) and
|
||||
# start-wekan.bat. FerretDB embedding is tolerant: if it did not compile for
|
||||
# windows/amd64 the bundle stays MongoDB-only (start-wekan.bat then won't
|
||||
# find ferretdb.exe).
|
||||
# win-x64 Node 24), ferretdb.exe (downloaded per-arch from the newest
|
||||
# wekan/FerretDB release) and start-wekan.bat. FerretDB embedding is
|
||||
# tolerant: if the win64 asset is missing the bundle stays MongoDB-only
|
||||
# (start-wekan.bat then won't find ferretdb.exe).
|
||||
run: |
|
||||
# Bundled Node.js (win-x64 node.exe from setup-node).
|
||||
NODE_SRC="$(command -v node)"
|
||||
[ -f "$NODE_SRC" ] || NODE_SRC="${NODE_SRC}.exe"
|
||||
cp "$NODE_SRC" bundle/node.exe
|
||||
# Bundled FerretDB (win64).
|
||||
if 7z e -y ferretdb.zip "ferretdb/win64/ferretdb-win64.exe" -obundle > /dev/null 2>&1 \
|
||||
&& [ -f bundle/ferretdb-win64.exe ]; then
|
||||
mv bundle/ferretdb-win64.exe bundle/ferretdb.exe
|
||||
# Bundled FerretDB (win64): download only this arch's binary.
|
||||
if curl -fSL --retry 5 --retry-delay 10 -o bundle/ferretdb.exe \
|
||||
"https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-win64.exe"; then
|
||||
echo "Embedded FerretDB win64 -> bundle/ferretdb.exe"
|
||||
else
|
||||
echo "No win64 FerretDB in ferretdb.zip; Windows bundle stays MongoDB-only."
|
||||
rm -f bundle/ferretdb.exe
|
||||
echo "No win64 FerretDB asset in the release; Windows bundle stays MongoDB-only."
|
||||
fi
|
||||
# Self-contained Windows launcher (defaults to FerretDB SQLite).
|
||||
cp src/releases/ferretdb/start-wekan.bat bundle/
|
||||
@@ -602,7 +622,7 @@ jobs:
|
||||
|
||||
# Build mac-arm64 bundle (rebuild native modules on Apple Silicon).
|
||||
build-mac-arm64:
|
||||
needs: [prepare, build-amd64, release, build-ferretdb]
|
||||
needs: [prepare, build-amd64, release]
|
||||
runs-on: macos-14 # macos-14 runners are Apple Silicon (arm64)
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
@@ -620,10 +640,15 @@ jobs:
|
||||
- name: Rebuild native modules for macOS arm64
|
||||
run: |
|
||||
unzip -q wekan-${VERSION}-amd64.zip
|
||||
# Replace the Linux node + FerretDB binaries inherited from the amd64 base
|
||||
# bundle with the macOS builds (added in a later step). The POSIX launcher
|
||||
# start-wekan.sh works on macOS, so keep it.
|
||||
# Replace the Linux node + FerretDB binaries + MongoDB Database Tools
|
||||
# inherited from the amd64 base bundle with the macOS builds (added in a
|
||||
# later step). The POSIX launcher start-wekan.sh works on macOS, so keep it.
|
||||
rm -f bundle/node bundle/ferretdb bundle/.ferretdb-default
|
||||
# Linux-only cpu-exec + qemu-user (#6458): qemu-user does not exist for
|
||||
# macOS (Apple Silicon needs no AVX emulation anyway).
|
||||
rm -f bundle/cpu-exec bundle/qemu-x86_64
|
||||
rm -f bundle/bsondump bundle/mongodump bundle/mongoexport bundle/mongofiles \
|
||||
bundle/mongoimport bundle/mongorestore bundle/mongostat bundle/mongotop
|
||||
# Fix: bcrypt 5.0.1 (Meteor accounts-password) ships node-addon-api@3
|
||||
# which fails to compile on Node.js 24. Replace with bcrypt 6.0.0.
|
||||
BCRYPT_DIR="$(pwd)/bundle/programs/server/npm/node_modules/meteor/accounts-password/node_modules/bcrypt"
|
||||
@@ -643,28 +668,30 @@ jobs:
|
||||
npm install
|
||||
cd ../../..
|
||||
|
||||
- name: Download ferretdb.zip
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: ferretdb-zip
|
||||
|
||||
- name: Embed Node.js + FerretDB (mac-arm64) into the bundle
|
||||
# Bundle the macOS arm64 Node.js (runner's darwin-arm64 Node 24) and the
|
||||
# macOS FerretDB binary from the single-source ferretdb.zip. FerretDB is
|
||||
# tolerant: if it did not compile for darwin/arm64 the bundle stays
|
||||
# MongoDB-only (start-wekan.sh then won't find ferretdb).
|
||||
# macOS FerretDB binary, downloaded per-arch from the newest wekan/FerretDB
|
||||
# release. FerretDB is tolerant: if the mac-arm64 asset is missing the
|
||||
# bundle stays MongoDB-only (start-wekan.sh then won't find ferretdb).
|
||||
run: |
|
||||
cp -L "$(command -v node)" bundle/node
|
||||
chmod +x bundle/node
|
||||
if unzip -o -j ferretdb.zip "ferretdb/mac-arm64/ferretdb-mac-arm64" -d bundle >/dev/null 2>&1 \
|
||||
&& [ -f bundle/ferretdb-mac-arm64 ]; then
|
||||
mv bundle/ferretdb-mac-arm64 bundle/ferretdb
|
||||
if curl -fSL --retry 5 --retry-delay 10 -o bundle/ferretdb \
|
||||
"https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-mac-arm64"; then
|
||||
chmod +x bundle/ferretdb
|
||||
echo "Embedded FerretDB mac-arm64 -> bundle/ferretdb"
|
||||
else
|
||||
echo "No mac-arm64 FerretDB in ferretdb.zip; macOS bundle stays MongoDB-only."
|
||||
rm -f bundle/ferretdb
|
||||
echo "No mac-arm64 FerretDB asset in the release; macOS bundle stays MongoDB-only."
|
||||
rm -f bundle/start-wekan.sh
|
||||
fi
|
||||
# macOS MongoDB Database Tools (mac-arm64) from wekan/mongo-tools; tolerant
|
||||
# (skip any tool not built for macOS).
|
||||
MT="https://github.com/wekan/mongo-tools/releases/latest/download"
|
||||
for t in bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop; do
|
||||
curl -fSL --retry 5 --retry-delay 10 -o "bundle/$t" "$MT/$t-mac-arm64" \
|
||||
&& chmod +x "bundle/$t" || { rm -f "bundle/$t"; echo "No $t-mac-arm64; skipping"; }
|
||||
done
|
||||
|
||||
- name: Create mac-arm64 zip
|
||||
run: zip -r wekan-${VERSION}-mac-arm64.zip bundle
|
||||
@@ -683,39 +710,6 @@ jobs:
|
||||
GH_REPO: ${{ github.repository }}
|
||||
run: gh release upload "v${VERSION}" "wekan-${VERSION}-mac-arm64.zip" --clobber
|
||||
|
||||
# ─── Fetch the prebuilt standalone FerretDB binaries: ferretdb.zip ───────────
|
||||
# WeKan normally uses MongoDB, but MongoDB Community only ships amd64/arm64
|
||||
# server binaries. On every other platform WeKan can instead use FerretDB v1
|
||||
# (the wekan/FerretDB fork with its embedded pure-Go SQLite backend, which
|
||||
# speaks the MongoDB wire protocol). FerretDB is built + released SEPARATELY in
|
||||
# the wekan/FerretDB repo (its build.sh cross-compiles every platform into
|
||||
# ferretdb.zip and it is attached to a GitHub Release there); this workflow does
|
||||
# NOT build FerretDB with Go. Here we just download the newest released
|
||||
# ferretdb.zip and republish it, so every WeKan build (bundle .zip, snap, docker,
|
||||
# win64, mac) takes its FerretDB binary from that same single source. The zip
|
||||
# layout is ferretdb/<arch>/ferretdb-<arch>[.exe] + ferretdb/README.md.
|
||||
build-ferretdb:
|
||||
needs: prepare
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Download the latest ferretdb.zip from wekan/FerretDB releases
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# /releases/latest/download/<asset> always resolves to the asset on the
|
||||
# newest (non-prerelease) release of wekan/FerretDB.
|
||||
url="https://github.com/wekan/FerretDB/releases/latest/download/ferretdb.zip"
|
||||
echo "Downloading ${url} ..."
|
||||
curl -fSL --retry 5 --retry-delay 10 -o ferretdb.zip "$url"
|
||||
echo "=== ferretdb.zip contents ==="
|
||||
unzip -l ferretdb.zip
|
||||
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ferretdb-zip
|
||||
path: ferretdb.zip
|
||||
retention-days: 1
|
||||
|
||||
# Extra-architecture Linux bundles (ppc64le, s390x, riscv64) — the arches that
|
||||
# have a Node.js 24 build but NO MongoDB server, so they ship FerretDB instead.
|
||||
# ppc64le and s390x use official nodejs.org binaries; riscv64 uses the
|
||||
@@ -725,7 +719,7 @@ jobs:
|
||||
# an armv7 device, regardless of RAM. See https://nodejs.org/dist/latest-v24.x/
|
||||
# (no -linux-armv7l) and https://unofficial-builds.nodejs.org/ (riscv64 only).
|
||||
build-extra-arches:
|
||||
needs: [prepare, build-amd64, release, build-ferretdb]
|
||||
needs: [prepare, build-amd64, release]
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 300
|
||||
strategy:
|
||||
@@ -813,22 +807,39 @@ jobs:
|
||||
# launcher. /bundle is the host bundle/ dir (see -v mount above).
|
||||
cp /opt/node/bin/node /bundle/node
|
||||
chmod +x /bundle/node
|
||||
# #6458: replace the inherited amd64 qemu-user with THIS arch own
|
||||
# same-arch qemu-user (from the target-arch distro, so it runs on
|
||||
# this arch), used by bundle/cpu-exec to emulate CPU features a
|
||||
# binary needs but the host CPU lacks. Tolerant: if the package
|
||||
# is unavailable on this arch, the bundle just ships without it
|
||||
# (cpu-exec then falls back to a system qemu-user, or reports).
|
||||
rm -f /bundle/qemu-x86_64
|
||||
if apt-get install -y -q qemu-user-static >/dev/null 2>&1 && \
|
||||
[ -x "/usr/bin/qemu-$(uname -m)-static" ]; then
|
||||
cp "/usr/bin/qemu-$(uname -m)-static" "/bundle/qemu-$(uname -m)"
|
||||
chmod +x "/bundle/qemu-$(uname -m)"
|
||||
echo "Bundled qemu-$(uname -m) for cpu-exec."
|
||||
else
|
||||
echo "qemu-user-static not available for $(uname -m); bundle ships without a bundled qemu-user."
|
||||
fi
|
||||
'
|
||||
|
||||
- name: Download ferretdb.zip
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: ferretdb-zip
|
||||
|
||||
- name: Embed FerretDB (${{ matrix.arch }}) into the bundle
|
||||
# These arches have no MongoDB server, so FerretDB is their default DB.
|
||||
# The launcher (start-wekan.sh) is inherited from the amd64 base
|
||||
# bundle; swap in this arch's binary from ferretdb.zip. A marker file makes
|
||||
# FerretDB the default backend at runtime (see the launcher + Docker entrypoint).
|
||||
# The launcher (start-wekan.sh) is inherited from the amd64 base bundle;
|
||||
# download only this arch's binary from the newest wekan/FerretDB release.
|
||||
# A marker file makes FerretDB the default backend at runtime (see the
|
||||
# launcher + Docker entrypoint).
|
||||
run: |
|
||||
unzip -o -j ferretdb.zip "ferretdb/${{ matrix.arch }}/ferretdb-${{ matrix.arch }}" -d bundle
|
||||
mv bundle/ferretdb-${{ matrix.arch }} bundle/ferretdb
|
||||
curl -fSL --retry 5 --retry-delay 10 -o bundle/ferretdb \
|
||||
"https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-${{ matrix.arch }}"
|
||||
chmod +x bundle/ferretdb
|
||||
# Overwrite the inherited amd64 MongoDB Database Tools with this arch's ones.
|
||||
MT="https://github.com/wekan/mongo-tools/releases/latest/download"
|
||||
for t in bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop; do
|
||||
curl -fSL --retry 5 --retry-delay 10 -o "bundle/$t" "$MT/$t-${{ matrix.arch }}"
|
||||
chmod +x "bundle/$t"
|
||||
done
|
||||
touch bundle/.ferretdb-default
|
||||
|
||||
- name: Create ${{ matrix.arch }} zip
|
||||
@@ -848,6 +859,128 @@ jobs:
|
||||
GH_REPO: ${{ github.repository }}
|
||||
run: gh release upload "v${VERSION}" "wekan-${VERSION}-${{ matrix.arch }}.zip" --clobber
|
||||
|
||||
# ─── 7c. Build the Sandstorm .spk and attach it to the Release ───────────────
|
||||
# Same steps as the standalone sandstorm.yml workflow (kept for building/testing
|
||||
# the .spk on its own without a full release); here it builds from the release
|
||||
# tag and attaches wekan-<version>-sandstorm.spk to the GitHub Release.
|
||||
#
|
||||
# EXPERIMENTAL in CI (same caveats as sandstorm.yml):
|
||||
# * Sandstorm needs unprivileged user namespaces; GitHub's Ubuntu runners are VMs
|
||||
# that allow them, but this is the fragile part.
|
||||
# * meteor-spk SIGNS the .spk with the app private key from the Sandstorm keyring;
|
||||
# provide it as the SANDSTORM_KEYRING secret (base64 of ~/.sandstorm-keyring).
|
||||
#
|
||||
# continue-on-error: the experimental Sandstorm build must NOT fail the release;
|
||||
# like the other post-`release` bundle jobs it only attaches its artifact.
|
||||
build-sandstorm:
|
||||
needs: [prepare, release]
|
||||
continue-on-error: true
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
VERSION: ${{ needs.prepare.outputs.version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
ref: refs/tags/v${{ needs.prepare.outputs.version }}
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Enable unprivileged user namespaces (Ubuntu 24.04 restricts them)
|
||||
# Ubuntu 24.04's AppArmor defaults kernel.apparmor_restrict_unprivileged_userns=1,
|
||||
# which blocks the unprivileged user namespaces that the Sandstorm install and
|
||||
# the spk supervisor rely on (the "fragile part" noted above). Relax it so
|
||||
# `install.sandstorm.io` and meteor-spk can create sandboxes on the runner.
|
||||
# `|| true`: on kernels/runners without these knobs, setting them is a no-op.
|
||||
run: |
|
||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
|
||||
sudo sysctl -w kernel.unprivileged_userns_clone=1 2>/dev/null || true
|
||||
|
||||
- name: Install system dependencies and Meteor
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y p7zip-full wget curl build-essential g++ make python3 unzip xz-utils git qemu-user-static
|
||||
if [ ! -f "$HOME/.meteor/meteor" ]; then curl https://install.meteor.com/ | sh; fi
|
||||
echo "$HOME/.meteor" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Install Sandstorm (dev, unattended)
|
||||
# Installed BEFORE assembling the deps: build-deps.sh's [bridge] step copies
|
||||
# the modern /opt/sandstorm/latest/bin/sandstorm-http-bridge over the ancient
|
||||
# bundled one, so the Sandstorm install must be in place first.
|
||||
run: curl https://install.sandstorm.io | sudo bash -s -- -d
|
||||
|
||||
- name: Assemble modern meteor-spk.deps (Node 24 + FerretDB + Mongo 3.x CLIs)
|
||||
# Base = upstream meteor-spk 0.6.0 from dl.sandstorm.io (has mongod 3.0 +
|
||||
# niscud). build-deps.sh swaps in Node 24, adds FerretDB + the Mongo 3.x
|
||||
# CLIs + the migration launcher/importer, keeps niscud, and swaps in the
|
||||
# modern sandstorm-http-bridge from the Sandstorm install above. No dependency
|
||||
# on the retired releases.wekan.team or the old projects.7z.
|
||||
run: |
|
||||
bash sandstorm-src/build-deps.sh
|
||||
echo "$HOME/projects/meteor-spk/meteor-spk-0.6.0" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Restore the Sandstorm signing keyring
|
||||
env:
|
||||
SANDSTORM_KEYRING: ${{ secrets.SANDSTORM_KEYRING }}
|
||||
run: |
|
||||
if [ -n "${SANDSTORM_KEYRING:-}" ]; then
|
||||
# meteor-spk / spk read the app signing key from ~/.sandstorm-keyring —
|
||||
# a FILE directly in $HOME (see the pack crash path
|
||||
# "/home/runner/.sandstorm-keyring"). Write it exactly there, NOT to
|
||||
# ~/.sandstorm/sandstorm-keyring, or `meteor-spk pack` aborts with
|
||||
# "open(~/.sandstorm-keyring): No such file or directory".
|
||||
printf '%s' "$SANDSTORM_KEYRING" | base64 -d > "$HOME/.sandstorm-keyring"
|
||||
chmod 600 "$HOME/.sandstorm-keyring"
|
||||
echo "Restored ~/.sandstorm-keyring ($(wc -c < "$HOME/.sandstorm-keyring") bytes)."
|
||||
else
|
||||
echo "::error::SANDSTORM_KEYRING secret is not set. meteor-spk pack signs the .spk with the WeKan Sandstorm app's private key, which lives in this keyring, so packing cannot proceed without it. Add the base64 of your ~/.sandstorm-keyring file as the SANDSTORM_KEYRING repository secret (e.g. 'base64 -w0 ~/.sandstorm-keyring')."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Install Meteor npm dependencies
|
||||
# PUPPETEER_SKIP_DOWNLOAD: puppeteer is a devDependency used only by tests,
|
||||
# not by the server, so it never belongs in the packed .spk. Skipping its
|
||||
# Chromium download (~150 MB) avoids any risk of it bloating the build and
|
||||
# speeds up CI.
|
||||
env:
|
||||
PUPPETEER_SKIP_DOWNLOAD: '1'
|
||||
run: |
|
||||
(meteor update --npm 2>/dev/null || true) && meteor npm install
|
||||
|
||||
- name: Build the Sandstorm .spk
|
||||
id: build
|
||||
env:
|
||||
PUPPETEER_SKIP_DOWNLOAD: '1'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# Version-named (not timestamped like sandstorm.yml): the release re-runs
|
||||
# idempotently with --clobber replacing the same asset.
|
||||
SPK="wekan-${VERSION}-sandstorm.spk"
|
||||
meteor-spk pack "$SPK"
|
||||
# Report the packed size and warn if it exceeds Cloudflare's 100 MB upload
|
||||
# cap (a proxied browser upload to a Cloudflare-fronted Sandstorm 413s above
|
||||
# this; install via a DNS-only host / SSH tunnel, or trim further).
|
||||
SPK_BYTES=$(stat -c%s "$SPK")
|
||||
echo "Packed $SPK: $((SPK_BYTES/1024/1024)) MiB ($SPK_BYTES bytes)"
|
||||
if [ "$SPK_BYTES" -gt $((100*1024*1024)) ]; then
|
||||
echo "::warning::$SPK is $((SPK_BYTES/1024/1024)) MiB — over Cloudflare's 100 MB upload limit. Upload via a DNS-only host / SSH tunnel to Sandstorm, or trim the bundle further."
|
||||
fi
|
||||
ls -la "$SPK"
|
||||
echo "spk=$SPK" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ steps.build.outputs.spk }}
|
||||
path: ${{ steps.build.outputs.spk }}
|
||||
retention-days: 7
|
||||
|
||||
- name: Attach the .spk to the GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh release upload "v${VERSION}" "${{ steps.build.outputs.spk }}" --clobber
|
||||
|
||||
# ─── 8. Build and push the multi-arch Docker image to all registries ────────
|
||||
# Mirrors releases/docker-build.sh step 3 (multi-arch buildx --push).
|
||||
# Needs `release` because the Dockerfile downloads wekan-<version>-<arch>.zip
|
||||
@@ -991,11 +1124,85 @@ jobs:
|
||||
|
||||
# ─── 9. Build the snap on Launchpad, push to the store, attach to release ────
|
||||
# The snap's `wekan` part downloads wekan-<version>-<arch>.zip from the GitHub
|
||||
# Release, so this job runs only after `release` has published those assets.
|
||||
# `snapcraft remote-build` builds every platform listed in snapcraft.yaml
|
||||
# (amd64 + arm64) on Launchpad.
|
||||
snap:
|
||||
# Release, so these jobs run only after `release` has published those assets.
|
||||
#
|
||||
# snap-native + snap-launchpad replace the old single `snap` job. The mainstream
|
||||
# arches (amd64 + arm64) build NATIVELY on GitHub-hosted runners — fast, no
|
||||
# Launchpad queue. The exotic arches (s390x, ppc64el, riscv64) have no native
|
||||
# GitHub runners and snapcraft cannot cross-build, so they stay on Launchpad but
|
||||
# in a NON-BLOCKING, per-arch matrix so a slow/failed arch (riscv64 queues for
|
||||
# hours) never holds up the release or the other arches. Each arch publishes to
|
||||
# the Snap Store (stable + candidate + beta + edge) and attaches to the Release the moment
|
||||
# it finishes — all 5 arches, published independently.
|
||||
snap-native:
|
||||
needs: [prepare, release]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- arch: amd64
|
||||
runner: ubuntu-24.04
|
||||
- arch: arm64
|
||||
runner: ubuntu-24.04-arm
|
||||
runs-on: ${{ matrix.runner }}
|
||||
env:
|
||||
VERSION: ${{ needs.prepare.outputs.version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
ref: refs/tags/v${{ needs.prepare.outputs.version }}
|
||||
|
||||
- name: Verify snapcraft.yaml version matches the release
|
||||
# snapcraft.yaml's `version:` names the produced file (wekan_<version>_<arch>.snap).
|
||||
# Assert it matches the tag so a stale version fails fast here.
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if ! grep -qxF "version: '${VERSION}'" snapcraft.yaml; then
|
||||
echo "::error::snapcraft.yaml is not at version '${VERSION}' ($(grep -m1 '^version:' snapcraft.yaml)). The bump job (releases/version.sh) did not update the tagged commit."
|
||||
exit 1
|
||||
fi
|
||||
echo "snapcraft.yaml is at version '${VERSION}'."
|
||||
|
||||
- name: Build the ${{ matrix.arch }} snap natively
|
||||
# Runs on a native ${{ matrix.arch }} GitHub runner, so snapcraft builds the
|
||||
# platform whose `build-on` matches this host — no Launchpad, no emulation.
|
||||
id: build
|
||||
uses: snapcore/action-build@v1
|
||||
|
||||
- name: Verify the built snap is ${{ matrix.arch }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
snap="${{ steps.build.outputs.snap }}"
|
||||
echo "Built: $snap"
|
||||
case "$snap" in
|
||||
*_${{ matrix.arch }}.snap) : ;;
|
||||
*) echo "::error::Built snap '$snap' is not ${{ matrix.arch }}."; exit 1 ;;
|
||||
esac
|
||||
|
||||
- name: Push ${{ matrix.arch }} to the Snap Store (stable + candidate + beta + edge)
|
||||
uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_AUTH }}
|
||||
with:
|
||||
snap: ${{ steps.build.outputs.snap }}
|
||||
release: stable,candidate,beta,edge
|
||||
|
||||
- name: Attach the ${{ matrix.arch }} snap to the GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh release upload "v${VERSION}" "${{ steps.build.outputs.snap }}" --clobber
|
||||
|
||||
snap-launchpad:
|
||||
needs: [prepare, release]
|
||||
# continue-on-error: the exotic Launchpad arches must NOT hold up or fail the
|
||||
# release. riscv64 in particular queues for hours / can time out; that must not
|
||||
# turn the whole release red. fail-fast: false so one arch never cancels the
|
||||
# others. Each leg publishes the moment it finishes.
|
||||
continue-on-error: true
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
arch: [s390x, ppc64el, riscv64]
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
VERSION: ${{ needs.prepare.outputs.version }}
|
||||
@@ -1007,11 +1214,8 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install snapcraft
|
||||
# The Snap Store intermittently rejects the install with
|
||||
# 'error: cannot install "snapcraft": too many requests' (a 429-style
|
||||
# rate limit) that instantly fails the whole snap job before any build.
|
||||
# Retry a few times so one transient store throttle does not fail the
|
||||
# release (same spirit as the remote-build retry below).
|
||||
# The Snap Store intermittently rejects the install with a 429-style rate
|
||||
# limit; retry so one transient throttle does not fail the build.
|
||||
run: |
|
||||
set -uo pipefail
|
||||
for i in 1 2 3 4 5; do
|
||||
@@ -1031,15 +1235,6 @@ jobs:
|
||||
chmod 600 ~/.local/share/snapcraft/launchpad-credentials
|
||||
|
||||
- name: Verify snapcraft.yaml version matches the release
|
||||
# The `bump` job (releases/version.sh) is the single source of truth for
|
||||
# the snap version and updates snapcraft.yaml before the tag is created.
|
||||
# snapcraft.yaml's `version:` names the produced files
|
||||
# (wekan_<version>_<arch>.snap), so if a stale tag carried the wrong
|
||||
# version the build would produce wekan_<old>_*.snap and the upload/attach
|
||||
# globs (wekan_${VERSION}_*.snap) would match nothing — passing the literal
|
||||
# glob to `snapcraft upload` ("is not a valid file", exit 64). Assert it
|
||||
# here so that mismatch fails fast (before a ~20 min Launchpad build) with
|
||||
# a clear pointer, instead of re-bumping the version inside this build job.
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if ! grep -qxF "version: '${VERSION}'" snapcraft.yaml; then
|
||||
@@ -1048,31 +1243,26 @@ jobs:
|
||||
fi
|
||||
echo "snapcraft.yaml is at version '${VERSION}'."
|
||||
|
||||
- name: Build snaps on Launchpad (amd64 + arm64)
|
||||
# `snapcraft remote-build` is experimental and talks to Launchpad over
|
||||
# HTTPS after pushing the whole repo; it intermittently dies with a
|
||||
# transient TLS drop (e.g. "SSLEOFError: EOF occurred in violation of
|
||||
# protocol", exit 70) that has nothing to do with the build itself.
|
||||
# Retry a few times so one network hiccup doesn't fail the release.
|
||||
- name: Build the ${{ matrix.arch }} snap on Launchpad
|
||||
# --build-for ${{ matrix.arch }}: build ONLY this leg's arch so a slow/failed
|
||||
# arch never blocks the others. remote-build can exit 0 without producing a
|
||||
# .snap (it just downloads logs), so require the file. Retry a few times to
|
||||
# survive transient TLS drops to Launchpad.
|
||||
run: |
|
||||
set -uo pipefail
|
||||
shopt -s nullglob
|
||||
attempts=3
|
||||
for i in $(seq 1 "$attempts"); do
|
||||
echo "::group::Remote build attempt $i/$attempts"
|
||||
snapcraft remote-build --launchpad-accept-public-upload && rc=0 || rc=$?
|
||||
echo "::group::Remote build ${{ matrix.arch }} attempt $i/$attempts"
|
||||
snapcraft remote-build --launchpad-accept-public-upload \
|
||||
--build-for ${{ matrix.arch }} && rc=0 || rc=$?
|
||||
echo "::endgroup::"
|
||||
# snapcraft remote-build can exit 0 even when the Launchpad build
|
||||
# FAILED (it just downloads the build logs and produces no .snap), so
|
||||
# don't trust the exit code alone — require that .snap files exist.
|
||||
snaps=( wekan_${VERSION}_*.snap )
|
||||
snaps=( wekan_${VERSION}_${{ matrix.arch }}.snap )
|
||||
if [ "$rc" -eq 0 ] && [ "${#snaps[@]}" -gt 0 ]; then
|
||||
echo "Remote build succeeded on attempt $i: ${snaps[*]}"
|
||||
echo "Remote build ${{ matrix.arch }} succeeded on attempt $i: ${snaps[*]}"
|
||||
exit 0
|
||||
fi
|
||||
echo "Attempt $i: snapcraft exit=$rc, .snap files produced=${#snaps[@]}."
|
||||
# Surface the Launchpad build logs so a real build failure is
|
||||
# diagnosable here, instead of as a later cryptic upload error.
|
||||
for log in snapcraft-wekan-*.txt; do
|
||||
echo "::group::Launchpad build log: $log (last 150 lines)"
|
||||
tail -n 150 "$log"
|
||||
@@ -1083,34 +1273,33 @@ jobs:
|
||||
sleep 60
|
||||
fi
|
||||
done
|
||||
echo "::error::Remote build failed after $attempts attempts (no wekan_${VERSION}_*.snap produced)." >&2
|
||||
echo "::error::Remote build ${{ matrix.arch }} failed after $attempts attempts (no wekan_${VERSION}_${{ matrix.arch }}.snap produced)." >&2
|
||||
exit 1
|
||||
|
||||
- name: Push snaps to the Snap Store (edge + beta channels)
|
||||
- name: Push ${{ matrix.arch }} to the Snap Store (stable + candidate + beta + edge)
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_AUTH }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
shopt -s nullglob
|
||||
snaps=( wekan_${VERSION}_*.snap )
|
||||
snaps=( wekan_${VERSION}_${{ matrix.arch }}.snap )
|
||||
if [ "${#snaps[@]}" -eq 0 ]; then
|
||||
echo "::error::No wekan_${VERSION}_*.snap files to upload."
|
||||
echo "::error::No wekan_${VERSION}_${{ matrix.arch }}.snap to upload."
|
||||
exit 1
|
||||
fi
|
||||
# base: core24 allows publishing to stable and candidate (core26 does not).
|
||||
for f in "${snaps[@]}"; do
|
||||
echo "Uploading $f to the Snap Store (edge,beta)..."
|
||||
snapcraft upload --release=edge,beta "$f"
|
||||
echo "Uploading $f to the Snap Store (stable,candidate,beta,edge)..."
|
||||
snapcraft upload --release=stable,candidate,beta,edge "$f"
|
||||
done
|
||||
|
||||
- name: Attach snaps to the GitHub Release
|
||||
- name: Attach the ${{ matrix.arch }} snap to the GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
shopt -s nullglob
|
||||
snaps=( wekan_${VERSION}_*.snap )
|
||||
if [ "${#snaps[@]}" -eq 0 ]; then
|
||||
echo "::error::No wekan_${VERSION}_*.snap files to attach."
|
||||
exit 1
|
||||
snaps=( wekan_${VERSION}_${{ matrix.arch }}.snap )
|
||||
if [ "${#snaps[@]}" -gt 0 ]; then
|
||||
gh release upload "v${VERSION}" "${snaps[@]}" --clobber
|
||||
fi
|
||||
gh release upload "v${VERSION}" "${snaps[@]}" --clobber
|
||||
@@ -0,0 +1,145 @@
|
||||
name: Publish .spk to Sandstorm App Market
|
||||
|
||||
# Manually triggered. Takes the Sandstorm .spk that sandstorm.yml already built and
|
||||
# attached to a WeKan GitHub Release, renames it to wekan-<VERSION>.spk (VERSION is the
|
||||
# WeKan release version, e.g. 9.88), and publishes it to the Sandstorm App Market with
|
||||
# spk publish wekan-<VERSION>.spk
|
||||
# exactly like releases/release-sandstorm.sh does locally.
|
||||
#
|
||||
# gh workflow run sandstorm-store.yml
|
||||
# gh workflow run sandstorm-store.yml -f version=9.88
|
||||
# gh workflow run sandstorm-store.yml -f version=9.88 -f tag=v9.88
|
||||
#
|
||||
# Needs SANDSTORM_KEYRING (base64 of ~/.sandstorm-keyring) — `spk publish` proves app
|
||||
# ownership with the WeKan Sandstorm app's private key from that keyring — and installs
|
||||
# Sandstorm + assembles meteor-spk the same way sandstorm.yml does, so `spk` is present.
|
||||
# It does NOT rebuild the .spk; it publishes the one already on the release.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'WeKan version for the store filename wekan-<VERSION>.spk (e.g. 9.88). Default: derived from the release tag.'
|
||||
required: false
|
||||
default: ''
|
||||
tag:
|
||||
description: 'Release tag whose .spk to publish (default: newest release).'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
NODE_VERSION: '24'
|
||||
|
||||
jobs:
|
||||
sandstorm-store:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Enable unprivileged user namespaces (Ubuntu 24.04 restricts them)
|
||||
run: |
|
||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
|
||||
sudo sysctl -w kernel.unprivileged_userns_clone=1 2>/dev/null || true
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y p7zip-full wget curl build-essential g++ make python3 unzip xz-utils git
|
||||
|
||||
- name: Install Sandstorm (dev, unattended)
|
||||
# Provides the `spk` command used to publish, and the sandstorm-http-bridge that
|
||||
# build-deps.sh copies into the meteor-spk deps.
|
||||
run: curl https://install.sandstorm.io | sudo bash -s -- -d
|
||||
|
||||
- name: Assemble modern meteor-spk.deps (same as sandstorm.yml)
|
||||
run: |
|
||||
bash sandstorm-src/build-deps.sh
|
||||
echo "$HOME/projects/meteor-spk/meteor-spk-0.6.0" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Restore the Sandstorm signing keyring
|
||||
env:
|
||||
SANDSTORM_KEYRING: ${{ secrets.SANDSTORM_KEYRING }}
|
||||
run: |
|
||||
if [ -n "${SANDSTORM_KEYRING:-}" ]; then
|
||||
# spk publish reads the app signing key from ~/.sandstorm-keyring (a FILE in
|
||||
# $HOME), same location meteor-spk pack uses.
|
||||
printf '%s' "$SANDSTORM_KEYRING" | base64 -d > "$HOME/.sandstorm-keyring"
|
||||
chmod 600 "$HOME/.sandstorm-keyring"
|
||||
echo "Restored ~/.sandstorm-keyring ($(wc -c < "$HOME/.sandstorm-keyring") bytes)."
|
||||
else
|
||||
echo "::error::SANDSTORM_KEYRING secret is not set. 'spk publish' proves ownership of the WeKan Sandstorm app with the private key from this keyring, so publishing cannot proceed without it. Add the base64 of your ~/.sandstorm-keyring file as the SANDSTORM_KEYRING repository secret (e.g. 'base64 -w0 ~/.sandstorm-keyring')."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Download the newest .spk from the WeKan release and name it wekan-<VERSION>.spk
|
||||
id: fetch
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
IN_TAG: ${{ github.event.inputs.tag }}
|
||||
IN_VERSION: ${{ github.event.inputs.version }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
# 1) Which release to publish from.
|
||||
TAG="${IN_TAG:-}"
|
||||
if [ -z "$TAG" ]; then
|
||||
TAG="$(gh release list --limit 1 --json tagName --jq '.[0].tagName' 2>/dev/null || true)"
|
||||
fi
|
||||
if [ -z "${TAG:-}" ] || [ "$TAG" = "null" ]; then
|
||||
echo "::error::No release found to publish the .spk from."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 2) VERSION for the store filename wekan-<VERSION>.spk. Use the input, else
|
||||
# derive it from the tag (strip a leading 'v', e.g. v9.88 -> 9.88).
|
||||
VERSION="${IN_VERSION:-}"
|
||||
if [ -z "$VERSION" ]; then
|
||||
VERSION="${TAG#v}"
|
||||
fi
|
||||
echo "Release: $TAG -> store filename: wekan-${VERSION}.spk"
|
||||
|
||||
# 3) Download the newest .spk asset on that release. sandstorm.yml attaches it
|
||||
# as wekan-sandstorm-YYYY_MM_DD-HH_MM_SS.spk; if several exist, take the
|
||||
# lexicographically-newest (the timestamp sorts chronologically).
|
||||
ASSET="$(gh release view "$TAG" --json assets \
|
||||
--jq '[.assets[].name | select(endswith(".spk"))] | sort | last' 2>/dev/null || true)"
|
||||
if [ -z "${ASSET:-}" ] || [ "$ASSET" = "null" ]; then
|
||||
echo "::error::Release $TAG has no .spk asset. Run sandstorm.yml first to build and attach one."
|
||||
exit 1
|
||||
fi
|
||||
echo "Downloading .spk asset: $ASSET"
|
||||
gh release download "$TAG" --pattern "$ASSET" --dir . --clobber
|
||||
|
||||
SPK="wekan-${VERSION}.spk"
|
||||
mv -f "$ASSET" "$SPK"
|
||||
ls -la "$SPK"
|
||||
echo "spk=$SPK" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Publish to the Sandstorm App Market
|
||||
env:
|
||||
SPK: ${{ steps.fetch.outputs.spk }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# Resolve the spk binary: prefer PATH, then the Sandstorm install location.
|
||||
SPK_BIN="$(command -v spk || true)"
|
||||
if [ -z "$SPK_BIN" ]; then
|
||||
for c in /opt/sandstorm/latest/bin/spk /opt/sandstorm/spk /usr/local/bin/spk; do
|
||||
[ -x "$c" ] && SPK_BIN="$c" && break
|
||||
done
|
||||
fi
|
||||
if [ -z "$SPK_BIN" ]; then
|
||||
echo "::error::Could not find the 'spk' command from the Sandstorm install."
|
||||
exit 1
|
||||
fi
|
||||
echo "Publishing $SPK with $SPK_BIN ..."
|
||||
# Same command as releases/release-sandstorm.sh: spk publish wekan-<VERSION>.spk
|
||||
"$SPK_BIN" publish "$SPK"
|
||||
@@ -15,6 +15,11 @@ name: Build Sandstorm .spk
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: 'Branch, tag or SHA to build the .spk from (default: main)'
|
||||
required: false
|
||||
default: 'main'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -29,54 +34,92 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
ref: main
|
||||
# Build the dispatched ref so a fix branch can be tested before it is
|
||||
# merged to main; defaults to main for a plain `gh workflow run`.
|
||||
ref: ${{ github.event.inputs.ref || 'main' }}
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Enable unprivileged user namespaces (Ubuntu 24.04 restricts them)
|
||||
# Ubuntu 24.04's AppArmor defaults kernel.apparmor_restrict_unprivileged_userns=1,
|
||||
# which blocks the unprivileged user namespaces that the Sandstorm install and
|
||||
# the spk supervisor rely on (the "fragile part" noted above). Relax it so
|
||||
# `install.sandstorm.io` and meteor-spk can create sandboxes on the runner.
|
||||
# `|| true`: on kernels/runners without these knobs, setting them is a no-op.
|
||||
run: |
|
||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
|
||||
sudo sysctl -w kernel.unprivileged_userns_clone=1 2>/dev/null || true
|
||||
|
||||
- name: Install system dependencies and Meteor
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y p7zip-full wget curl build-essential g++ make python3 unzip xz-utils git
|
||||
sudo apt-get install -y p7zip-full wget curl build-essential g++ make python3 unzip xz-utils git qemu-user-static
|
||||
if [ ! -f "$HOME/.meteor/meteor" ]; then curl https://install.meteor.com/ | sh; fi
|
||||
echo "$HOME/.meteor" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Install Sandstorm (dev, unattended)
|
||||
# Installed BEFORE assembling the deps: build-deps.sh's [bridge] step copies
|
||||
# the modern /opt/sandstorm/latest/bin/sandstorm-http-bridge over the ancient
|
||||
# bundled one, so the Sandstorm install must be in place first.
|
||||
run: curl https://install.sandstorm.io | sudo bash -s -- -d
|
||||
|
||||
- name: Assemble modern meteor-spk.deps (Node 24 + FerretDB + Mongo 3.x CLIs)
|
||||
# Base = upstream meteor-spk 0.6.0 from dl.sandstorm.io (has mongod 3.0 +
|
||||
# niscud). build-deps.sh swaps in Node 24, adds FerretDB + the Mongo 3.x
|
||||
# CLIs + the migration launcher/importer, and keeps niscud. No dependency
|
||||
# CLIs + the migration launcher/importer, keeps niscud, and swaps in the
|
||||
# modern sandstorm-http-bridge from the Sandstorm install above. No dependency
|
||||
# on the retired releases.wekan.team or the old projects.7z.
|
||||
run: |
|
||||
bash sandstorm-src/build-deps.sh
|
||||
echo "$HOME/projects/meteor-spk/meteor-spk-0.6.0" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Install Sandstorm (dev, unattended)
|
||||
run: curl https://install.sandstorm.io | sudo bash -s -- -d
|
||||
|
||||
- name: Restore the Sandstorm signing keyring
|
||||
env:
|
||||
SANDSTORM_KEYRING: ${{ secrets.SANDSTORM_KEYRING }}
|
||||
run: |
|
||||
if [ -n "${SANDSTORM_KEYRING:-}" ]; then
|
||||
mkdir -p "$HOME/.sandstorm"
|
||||
printf '%s' "$SANDSTORM_KEYRING" | base64 -d > "$HOME/.sandstorm/sandstorm-keyring"
|
||||
chmod 600 "$HOME/.sandstorm/sandstorm-keyring"
|
||||
# meteor-spk / spk read the app signing key from ~/.sandstorm-keyring —
|
||||
# a FILE directly in $HOME (see the pack crash path
|
||||
# "/home/runner/.sandstorm-keyring"). Write it exactly there, NOT to
|
||||
# ~/.sandstorm/sandstorm-keyring, or `meteor-spk pack` aborts with
|
||||
# "open(~/.sandstorm-keyring): No such file or directory".
|
||||
printf '%s' "$SANDSTORM_KEYRING" | base64 -d > "$HOME/.sandstorm-keyring"
|
||||
chmod 600 "$HOME/.sandstorm-keyring"
|
||||
echo "Restored ~/.sandstorm-keyring ($(wc -c < "$HOME/.sandstorm-keyring") bytes)."
|
||||
else
|
||||
echo "::warning::SANDSTORM_KEYRING secret not set; meteor-spk pack may fail to sign the app update."
|
||||
echo "::error::SANDSTORM_KEYRING secret is not set. meteor-spk pack signs the .spk with the WeKan Sandstorm app's private key, which lives in this keyring, so packing cannot proceed without it. Add the base64 of your ~/.sandstorm-keyring file as the SANDSTORM_KEYRING repository secret (e.g. 'base64 -w0 ~/.sandstorm-keyring')."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Install Meteor npm dependencies
|
||||
# PUPPETEER_SKIP_DOWNLOAD: puppeteer is a devDependency used only by tests,
|
||||
# not by the server, so it never belongs in the packed .spk. Skipping its
|
||||
# Chromium download (~150 MB) avoids any risk of it bloating the build and
|
||||
# speeds up CI.
|
||||
env:
|
||||
PUPPETEER_SKIP_DOWNLOAD: '1'
|
||||
run: |
|
||||
(meteor update --npm 2>/dev/null || true) && meteor npm install
|
||||
|
||||
- name: Build the Sandstorm .spk
|
||||
id: build
|
||||
env:
|
||||
PUPPETEER_SKIP_DOWNLOAD: '1'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
STAMP="$(date +'%Y_%m_%d-%H_%M_%S')"
|
||||
SPK="wekan-sandstorm-${STAMP}.spk"
|
||||
meteor-spk pack "$SPK"
|
||||
# Report the packed size and warn if it exceeds Cloudflare's 100 MB upload
|
||||
# cap (a proxied browser upload to a Cloudflare-fronted Sandstorm 413s above
|
||||
# this; install via a DNS-only host / SSH tunnel, or trim further).
|
||||
SPK_BYTES=$(stat -c%s "$SPK")
|
||||
echo "Packed $SPK: $((SPK_BYTES/1024/1024)) MiB ($SPK_BYTES bytes)"
|
||||
if [ "$SPK_BYTES" -gt $((100*1024*1024)) ]; then
|
||||
echo "::warning::$SPK is $((SPK_BYTES/1024/1024)) MiB — over Cloudflare's 100 MB upload limit. Upload via a DNS-only host / SSH tunnel to Sandstorm, or trim the bundle further."
|
||||
fi
|
||||
ls -la "$SPK"
|
||||
echo "spk=$SPK" >> "$GITHUB_OUTPUT"
|
||||
|
||||
|
||||
+10
-5
@@ -71,11 +71,16 @@ _build-local-test
|
||||
*/build-assets-local-test
|
||||
*/build-chunks-local-test
|
||||
|
||||
# Local-only working copies used when building the Sandstorm .spk:
|
||||
# - projects/ : unarchived meteor-spk fork (Node/Mongo/FerretDB binaries)
|
||||
# - sandstorm/: clone of sandstorm-io/sandstorm (platform source, for reference)
|
||||
# - FerretDB/ : clone of wekan/FerretDB (for reference when debugging)
|
||||
# These are large and machine-specific; never commit them.
|
||||
# Local-only working copies: other wekan repos cloned under this repo for editing,
|
||||
# and build inputs. These are separate git repos / large machine-specific dirs;
|
||||
# never commit them.
|
||||
# - projects/ : unarchived meteor-spk fork (Node/Mongo/FerretDB binaries)
|
||||
# - sandstorm/ : clone of sandstorm-io/sandstorm (platform source, for reference)
|
||||
# - FerretDB/ : clone of wekan/FerretDB
|
||||
# - mongo-tools/ : clone of wekan/mongo-tools
|
||||
# - mongosh/ : clone of wekan/mongosh
|
||||
/projects/
|
||||
/sandstorm/
|
||||
/FerretDB/
|
||||
/mongo-tools/
|
||||
/mongosh/
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
lang_map = te_IN: te-IN, es_AR: es-AR, es_419: es-LA, es_TX: es-TX, he_IL: he-IL, zh_CN: zh-CN, ar_EG: ar-EG, cs_CZ: cs-CZ, fa_IR: fa-IR, ms_MY: ms-MY, nl_NL: nl-NL, de_CH: de-CH, en_IT: en-IT, uz_UZ: uz-UZ, fr_CH: fr-CH, hi_IN: hi-IN, et_EE: et-EE, es_PE: es-PE, es_MX: es-MX, gl_ES: gl-ES, mn_MN: mn, zh_TW: zh-TW, ast_ES: ast-ES, es_CL: es-CL, ja_JP: ja, lv_LV: lv, ro_RO: ro-RO, az_AZ: az-AZ, cy_GB: cy-GB, gu_IN: gu-IN, pl_PL: pl-PL, vep: ve-PP, en_BR: en-BR, en@ysv: en-YS, hu_HU: hu, ko_KR: ko-KR, pt_BR: pt-BR, zh_HK: zh-HK, zu_ZA: zu-ZA, en_MY: en-MY, ja-Hira: ja-HI, fi_FI: fi, vec: ve-CC, vi_VN: vi-VN, fr_FR: fr-FR, id_ID: id, zh_Hans: zh-Hans, en_DE: en-DE, en_GB: en-GB, el_GR: el-GR, uk_UA: uk-UA, az@latin: az-LA, de_AT: de-AT, uz@Latn: uz-LA, vls: vl-SS, ar_DZ: ar-DZ, bg_BG: bg, es_PY: es-PY, fy_NL: fy-NL, uz@Arab: uz-AR, ru_UA: ru-UA, war: wa-RR, zh_CN.GB2312: zh-GB
|
||||
lang_map = te_IN: te-IN, es_AR: es-AR, es_419: es-LA, es_TX: es-TX, he_IL: he-IL, zh_CN: zh-CN, ar_EG: ar-EG, cs_CZ: cs-CZ, fa_IR: fa-IR, ms_MY: ms-MY, nl_NL: nl-NL, de_CH: de-CH, en_IT: en-IT, uz_UZ: uz-UZ, fr_CH: fr-CH, hi_IN: hi-IN, et_EE: et-EE, es_PE: es-PE, es_MX: es-MX, gl_ES: gl-ES, mn_MN: mn, zh_TW: zh-TW, ast_ES: ast-ES, es_CL: es-CL, ja_JP: ja-JP, lv_LV: lv, ro_RO: ro-RO, az_AZ: az-AZ, cy_GB: cy-GB, gu_IN: gu-IN, pl_PL: pl-PL, vep: ve-PP, en_BR: en-BR, en@ysv: en-YS, hu_HU: hu, ko_KR: ko-KR, pt_BR: pt-BR, zh_HK: zh-HK, zu_ZA: zu-ZA, en_MY: en-MY, ja-Hira: ja-HI, fi_FI: fi, vec: ve-CC, vi_VN: vi-VN, fr_FR: fr-FR, id_ID: id, zh_Hans: zh-Hans, en_DE: en-DE, en_GB: en-GB, el_GR: el-GR, uk_UA: uk-UA, az@latin: az-LA, de_AT: de-AT, uz@Latn: uz-LA, vls: vl-SS, ar_DZ: ar-DZ, bg_BG: bg, es_PY: es-PY, fy_NL: fy-NL, uz@Arab: uz-AR, ru_UA: ru-UA, war: wa-RR, zh_CN.GB2312: zh-GB
|
||||
|
||||
[o:wekan:p:wekan:r:application]
|
||||
file_filter = imports/i18n/data/<lang>.i18n.json
|
||||
|
||||
+1868
-11
File diff suppressed because it is too large.
Load diff
+5
-3
@@ -7,7 +7,7 @@ LABEL org.opencontainers.image.source="https://github.com/wekan/wekan"
|
||||
# TARGETARCH and TARGETVARIANT are automatically provided by Docker Buildx
|
||||
ARG TARGETARCH
|
||||
ARG TARGETVARIANT
|
||||
ARG VERSION=9.85
|
||||
ARG VERSION=9.97
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ENV BUILD_DEPS="apt-utils gnupg wget bzip2 g++ curl libarchive-tools build-essential git ca-certificates python3 unzip"
|
||||
@@ -242,8 +242,10 @@ mv /home/wekan/app/bundle /build
|
||||
|
||||
# The .zip bundle now ships a self-contained launcher + its own Node.js for the
|
||||
# offline downloads; the Docker image installs its own Node and uses
|
||||
# wekan-entrypoint.sh, so drop the redundant bundled node + launchers (keeps
|
||||
# /build/ferretdb, which the entrypoint uses). Saves ~80 MB per arch.
|
||||
# wekan-entrypoint.sh, so drop the redundant bundled node + launchers. Keeps
|
||||
# /build/ferretdb (used by the entrypoint) and the per-arch MongoDB Database Tools
|
||||
# (bsondump, mongodump, mongorestore, … from wekan/mongo-tools, embedded in the
|
||||
# bundle) for backup/restore inside the container. Saves ~80 MB per arch.
|
||||
rm -f /build/node /build/start-wekan.sh /build/start-wekan.bat
|
||||
|
||||
# Restore original tar
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
|
||||
appVersion: "v9.85.0"
|
||||
appVersion: "v9.97.0"
|
||||
files:
|
||||
userUploads:
|
||||
- README.md
|
||||
|
||||
@@ -132,6 +132,16 @@ If *nix: chmod +x api.py => ./api.py users
|
||||
python3 api.py getcardsettings BOARDID # Get board-level card settings (allows* toggles, cardAging, cardAgingDays1/2/3)
|
||||
python3 api.py setcardsetting BOARDID KEY VALUE # Set one board card setting, e.g. allowsDueDate true, cardAging true, cardAgingDays1 5
|
||||
|
||||
Board Automation Rules API (IFTTT, Issue #2674):
|
||||
python3 api.py listrules BOARDID # List automation rules of a board
|
||||
python3 api.py getrule BOARDID RULEID # Get one rule with its trigger and action
|
||||
python3 api.py addrule BOARDID TITLE TRIGGER_JSON ACTION_JSON # Add rule. Missing trigger matching fields default to the '*' wildcard
|
||||
python3 api.py editrule BOARDID RULEID PATCH_JSON # Edit rule: {"title":..,"trigger":{..},"action":{..}}
|
||||
python3 api.py removerule BOARDID RULEID # Remove rule (and its trigger + action)
|
||||
# Example (Issue #2674) - add member when card moved TO list, remove member when moved AWAY FROM list:
|
||||
# python3 api.py addrule BOARDID 'Add on move to Doing' '{"activityType":"moveCard","listName":"Doing"}' '{"actionType":"addMember","username":"someuser"}'
|
||||
# python3 api.py addrule BOARDID 'Remove on move from Doing' '{"activityType":"moveCard","oldListName":"Doing"}' '{"actionType":"removeMember","username":"someuser"}'
|
||||
|
||||
Admin API:
|
||||
python3 api.py newuser USERNAME EMAIL PASSWORD
|
||||
|
||||
@@ -1773,6 +1783,18 @@ if arguments >= 1:
|
||||
# python3 api.py addrule BOARDID 'Archive after 90 days' \
|
||||
# '{"activityType":"scheduledTrigger","scheduleKind":"aging","listName":"Completed","days":90,"atTime":"03:00"}' \
|
||||
# '{"actionType":"archive"}'
|
||||
#
|
||||
# Example (Issue #2674 - add a user to the card when it is moved TO a list, and
|
||||
# remove the user again when the card is moved AWAY FROM that list). Trigger
|
||||
# matching fields that are omitted (userId, swimlaneName, cardTitle, and the
|
||||
# unused one of listName/oldListName) are stored as the '*' wildcard by the
|
||||
# server, so the rules fire for any user/swimlane/card title:
|
||||
# python3 api.py addrule BOARDID 'Add member on move to Doing' \
|
||||
# '{"activityType":"moveCard","listName":"Doing"}' \
|
||||
# '{"actionType":"addMember","username":"someuser"}'
|
||||
# python3 api.py addrule BOARDID 'Remove member on move from Doing' \
|
||||
# '{"activityType":"moveCard","oldListName":"Doing"}' \
|
||||
# '{"actionType":"removeMember","username":"someuser"}'
|
||||
|
||||
if arguments >= 2 and sys.argv[1] == 'listrules':
|
||||
boardid = sys.argv[2]
|
||||
|
||||
@@ -10,7 +10,61 @@ const commentFormIsOpen = new ReactiveVar(false);
|
||||
// Empty string means a new top-level comment.
|
||||
const replyToCommentId = new ReactiveVar('');
|
||||
|
||||
// #5547: persist the comment draft (debounced) into UnsavedEdits while the user
|
||||
// types, so a comment in progress survives closing the card, clicking outside
|
||||
// it, or navigating away — the form prefills from {{getUnsavedValue
|
||||
// 'cardComment' ...}} on the next open. Historical note: the click-open flag
|
||||
// that armed the old escape-time draft save was removed in 2019 (3b3950369)
|
||||
// because the escape handler CLEARED the visible text; since then nothing saved
|
||||
// the draft at all, so any close of the card discarded the comment.
|
||||
let commentDraftTimer = null;
|
||||
let commentDraftPending = null; // { cardId, value }
|
||||
|
||||
function commentDraftWrite({ cardId, value }) {
|
||||
if (!cardId) return;
|
||||
const draftKey = { fieldName: 'cardComment', docId: cardId };
|
||||
if ((value || '').trim()) {
|
||||
UnsavedEdits.set(draftKey, value);
|
||||
} else {
|
||||
UnsavedEdits.reset(draftKey);
|
||||
}
|
||||
}
|
||||
|
||||
function scheduleCommentDraftSave(cardId, value) {
|
||||
commentDraftPending = { cardId, value };
|
||||
if (commentDraftTimer) clearTimeout(commentDraftTimer);
|
||||
commentDraftTimer = setTimeout(() => {
|
||||
commentDraftTimer = null;
|
||||
const pending = commentDraftPending;
|
||||
commentDraftPending = null;
|
||||
if (pending) commentDraftWrite(pending);
|
||||
}, 300);
|
||||
}
|
||||
|
||||
// Run a pending (debounced) save immediately — e.g. the card is closing.
|
||||
function flushCommentDraftSave() {
|
||||
if (commentDraftTimer) {
|
||||
clearTimeout(commentDraftTimer);
|
||||
commentDraftTimer = null;
|
||||
}
|
||||
const pending = commentDraftPending;
|
||||
commentDraftPending = null;
|
||||
if (pending) commentDraftWrite(pending);
|
||||
}
|
||||
|
||||
// Drop any pending save — the comment was submitted, so there is no draft.
|
||||
function cancelCommentDraftSave() {
|
||||
if (commentDraftTimer) {
|
||||
clearTimeout(commentDraftTimer);
|
||||
commentDraftTimer = null;
|
||||
}
|
||||
commentDraftPending = null;
|
||||
}
|
||||
|
||||
Template.commentForm.onDestroyed(function () {
|
||||
// #5547: the card can close without the escape handler ever running (the X
|
||||
// button, a route change); make sure the last keystrokes reach the draft.
|
||||
flushCommentDraftSave();
|
||||
commentFormIsOpen.set(false);
|
||||
$('.note-popover').hide();
|
||||
});
|
||||
@@ -28,6 +82,15 @@ Template.commentForm.helpers({
|
||||
});
|
||||
|
||||
Template.commentForm.events({
|
||||
// #5547: arm the escape handler below (it saves the draft and closes the
|
||||
// form); this flag had no setter since 2019, so the handler never ran.
|
||||
'focus .js-new-comment-input'() {
|
||||
commentFormIsOpen.set(true);
|
||||
},
|
||||
// #5547: keep the draft continuously saved (debounced) while typing.
|
||||
'input .js-new-comment-input'(evt) {
|
||||
scheduleCommentDraftSave(Utils.getCurrentCardId(), evt.currentTarget.value);
|
||||
},
|
||||
'submit .js-new-comment-form'(evt, tpl) {
|
||||
const input = tpl.$('.js-new-comment-input');
|
||||
const text = input.val().trim();
|
||||
@@ -48,6 +111,13 @@ Template.commentForm.events({
|
||||
cardId,
|
||||
parentId: parentId || '',
|
||||
});
|
||||
// #5547: the comment is saved — cancel any debounced draft save still in
|
||||
// flight and remove the stored draft so it does not resurface next open.
|
||||
cancelCommentDraftSave();
|
||||
UnsavedEdits.reset({
|
||||
fieldName: 'cardComment',
|
||||
docId: Utils.getCurrentCardId(),
|
||||
});
|
||||
replyToCommentId.set('');
|
||||
resetCommentInput(input);
|
||||
Tracker.flush();
|
||||
@@ -159,13 +229,20 @@ EscapeActions.register(
|
||||
docId: Utils.getCurrentCardId(),
|
||||
};
|
||||
const commentInput = $('.js-new-comment-input');
|
||||
const draft = commentInput.val().trim();
|
||||
const draft = (commentInput.val() || '').trim();
|
||||
cancelCommentDraftSave();
|
||||
if (draft) {
|
||||
UnsavedEdits.set(draftKey, draft);
|
||||
} else {
|
||||
UnsavedEdits.reset(draftKey);
|
||||
}
|
||||
resetCommentInput(commentInput);
|
||||
// #5547: do NOT clear the input — clearing it on every click outside the
|
||||
// comment box is exactly the "comment text disappearing" bug that got this
|
||||
// handler disarmed in 2019 (3b3950369). The draft is saved above; if the
|
||||
// card stays open, the text stays visible; if the card closes, the next
|
||||
// open prefills the form from the draft.
|
||||
commentInput.blur();
|
||||
commentFormIsOpen.set(false);
|
||||
},
|
||||
() => {
|
||||
return commentFormIsOpen.get();
|
||||
|
||||
@@ -316,7 +316,19 @@ body.desktop-mode .board-wrapper .board-canvas .board-overlay {
|
||||
display: none !important;
|
||||
pointer-events: none !important;
|
||||
}
|
||||
.board-wrapper .board-canvas.is-dragging-active .open-minicard-composer,
|
||||
/* #2877 "Wekan swimlane jumps when moving card": while a card is dragged the
|
||||
"+ Add Card" composer link is hidden, but hiding it with `display: none`
|
||||
collapsed the bottom row of EVERY list at drag start (and restored it on
|
||||
drop). With auto-height swimlanes the whole swimlane shrank/grew by the
|
||||
composer's height, so all swimlanes below visibly jumped up and back down.
|
||||
`visibility: hidden` hides the link just the same but keeps its box in the
|
||||
layout, so nothing moves when a drag starts or ends. */
|
||||
.board-wrapper .board-canvas.is-dragging-active .open-minicard-composer {
|
||||
visibility: hidden;
|
||||
}
|
||||
/* Checked cards of a multi-selection ARE the payload being dragged, so
|
||||
removing them from the flow (showing the list as it will look after the
|
||||
drop) is intentional — keep display: none here. */
|
||||
.board-wrapper .board-canvas.is-dragging-active .minicard-wrapper.is-checked {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -570,11 +570,18 @@ Template.boardBody.onRendered(function () {
|
||||
$swimlanesDom.sortable('option', 'handle', '.swimlane-header');
|
||||
}
|
||||
|
||||
// Disable drag-dropping if the current user is not a board member
|
||||
// #6446: enable swimlane drag-drop — which also carries moving cards BETWEEN
|
||||
// swimlanes — for any board member with write access, not only board admins.
|
||||
// The old !isBoardAdmin() check disabled this sortable for every non-admin, so
|
||||
// a normal member could still move a card WITHIN a swimlane but not BETWEEN
|
||||
// swimlanes (a card crossing swimlanes is received across this sortable), and
|
||||
// could not reorder swimlanes. canModifyCard() is the client write-access
|
||||
// predicate (board member, not comment-only / worker / read-only), matching
|
||||
// the server's allowIsBoardMemberWithWriteAccess.
|
||||
$swimlanesDom.sortable(
|
||||
'option',
|
||||
'disabled',
|
||||
!ReactiveCache.getCurrentUser()?.isBoardAdmin(),
|
||||
!Utils.canModifyCard(),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -23,15 +23,16 @@ template(name="boardHeaderBar")
|
||||
i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
span {{_ currentBoard.permission}}
|
||||
|
||||
a.board-header-btn.js-watch-board(
|
||||
title="{{_ watchLevel }}")
|
||||
if $eq watchLevel "watching"
|
||||
i.fa.fa-eye
|
||||
if $eq watchLevel "tracking"
|
||||
i.fa.fa-bell
|
||||
if $eq watchLevel "muted"
|
||||
i.fa.fa-bell-slash
|
||||
span {{_ watchLevel}}
|
||||
unless watchDisabled
|
||||
a.board-header-btn.js-watch-board(
|
||||
title="{{_ watchLevel }}")
|
||||
if $eq watchLevel "watching"
|
||||
i.fa.fa-eye
|
||||
if $eq watchLevel "tracking"
|
||||
i.fa.fa-bell
|
||||
if $eq watchLevel "muted"
|
||||
i.fa.fa-bell-slash
|
||||
span {{_ watchLevel}}
|
||||
a.board-header-btn.js-star-board(class="{{#if isStarred}}is-active{{/if}}"
|
||||
title="{{#if isStarred}}{{_ 'click-to-unstar'}}{{else}}{{_ 'click-to-star'}}{{/if}} {{_ 'starred-boards-description'}}")
|
||||
i.fa(class="fa-star{{#unless isStarred}}-o{{/unless}}")
|
||||
@@ -67,14 +68,15 @@ template(name="boardHeaderBar")
|
||||
title="{{_ currentBoard.permission}}")
|
||||
i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
|
||||
a.board-header-btn.js-watch-board(
|
||||
title="{{_ watchLevel }}")
|
||||
if $eq watchLevel "watching"
|
||||
i.fa.fa-eye
|
||||
if $eq watchLevel "tracking"
|
||||
i.fa.fa-bell
|
||||
if $eq watchLevel "muted"
|
||||
i.fa.fa-bell-slash
|
||||
unless watchDisabled
|
||||
a.board-header-btn.js-watch-board(
|
||||
title="{{_ watchLevel }}")
|
||||
if $eq watchLevel "watching"
|
||||
i.fa.fa-eye
|
||||
if $eq watchLevel "tracking"
|
||||
i.fa.fa-bell
|
||||
if $eq watchLevel "muted"
|
||||
i.fa.fa-bell-slash
|
||||
a.board-header-btn.js-star-board(class="{{#if isStarred}}is-active{{/if}}"
|
||||
title="{{#if isStarred}}{{_ 'click-to-unstar'}}{{else}}{{_ 'click-to-star'}}{{/if}} {{_ 'starred-boards-description'}}")
|
||||
i.fa(class="fa-star{{#unless isStarred}}-o{{/unless}}")
|
||||
@@ -157,6 +159,12 @@ template(name="boardHeaderBar")
|
||||
i.fa.fa-times-thin
|
||||
|
||||
.separator
|
||||
//- #6465: one-click board settings — the boardMenu popup used to need
|
||||
//- two clicks (open sidebar, then Boardeinstellungen). The click
|
||||
//- handler already exists in boardHeader.js ('click .js-open-board-menu').
|
||||
if currentUser.isBoardMember
|
||||
a.board-header-btn.js-open-board-menu(title="{{_ 'boardMenuPopup-title'}}")
|
||||
i.fa.fa-cog
|
||||
a.board-header-btn.js-toggle-sidebar(title="{{_ 'sidebar-open'}} {{_ 'or'}} {{_ 'sidebar-close'}}")
|
||||
i.fa.fa-bars
|
||||
|
||||
@@ -267,9 +275,10 @@ template(name="createBoard")
|
||||
| {{{_ 'board-private-info'}}}
|
||||
a.js-change-visibility {{_ 'change'}}.
|
||||
input.primary.wide(type="submit" value="{{_ 'create'}}")
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
unless importDisabled
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
span.quiet
|
||||
| /
|
||||
a.js-board-template {{_ 'template'}}
|
||||
@@ -293,9 +302,10 @@ template(name="createBoardPopup")
|
||||
| {{{_ 'board-private-info'}}}
|
||||
a.js-change-visibility {{_ 'change'}}.
|
||||
input.primary.wide(type="submit" value="{{_ 'create'}}")
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
unless importDisabled
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
span.quiet
|
||||
| /
|
||||
a.js-board-template {{_ 'template'}}
|
||||
@@ -319,9 +329,10 @@ template(name="headerBarCreateBoardPopup")
|
||||
| {{{_ 'board-private-info'}}}
|
||||
a.js-change-visibility {{_ 'change'}}.
|
||||
input.primary.wide(type="submit" value="{{_ 'create'}}")
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
unless importDisabled
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
span.quiet
|
||||
| /
|
||||
a.js-board-template {{_ 'template'}}
|
||||
@@ -346,9 +357,10 @@ template(name="createTemplateContainerPopup")
|
||||
| {{{_ 'board-private-info'}}}
|
||||
a.js-change-visibility {{_ 'change'}}.
|
||||
input.primary.wide(type="submit" value="{{_ 'create'}}")
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
unless importDisabled
|
||||
span.quiet
|
||||
| {{_ 'or'}}
|
||||
a.js-import-board {{_ 'import'}}
|
||||
span.quiet
|
||||
| /
|
||||
a.js-board-template {{_ 'template'}}
|
||||
|
||||
@@ -197,14 +197,19 @@ template(name="boardList")
|
||||
span.board-list-item-name(title="{{boardOpenAndMoveHint}}")
|
||||
+viewer
|
||||
= title
|
||||
//- #5174 / #4825: the per-board allows* flags are
|
||||
//- resolved server-side into the one-shot tile data
|
||||
//- (the raw fields are not even published to this
|
||||
//- page), so the show* helpers below gate the whole
|
||||
//- block consistently for every board.
|
||||
unless currentSetting.hideBoardMemberList
|
||||
if allowsBoardMemberList
|
||||
if showBoardMemberList _id
|
||||
.minicard-members
|
||||
each member in boardMembers _id
|
||||
a.name
|
||||
+userAvatar(userId=member noRemove=true)
|
||||
unless currentSetting.hideCardCounterList
|
||||
if allowsCardCounterList
|
||||
if showCardCounterList _id
|
||||
.minicard-lists.flex.flex-wrap
|
||||
each list in boardLists _id
|
||||
.item
|
||||
|
||||
@@ -132,16 +132,6 @@ function saveWorkspace(workspaceId, { name, icon }) {
|
||||
}
|
||||
|
||||
Template.boardList.helpers({
|
||||
hideCardCounterList() {
|
||||
/* Bug Board icons random dance https://github.com/wekan/wekan/issues/4214
|
||||
return Utils.isMiniScreen() && Session.get('currentBoard'); */
|
||||
return true;
|
||||
},
|
||||
hideBoardMemberList() {
|
||||
/* Bug Board icons random dance https://github.com/wekan/wekan/issues/4214
|
||||
return Utils.isMiniScreen() && Session.get('currentBoard'); */
|
||||
return true;
|
||||
},
|
||||
BoardMultiSelection() {
|
||||
return BoardMultiSelection;
|
||||
},
|
||||
@@ -193,6 +183,15 @@ Template.boardList.onCreated(function () {
|
||||
Meteor.call('getMyShareableGroups', (err, res) => {
|
||||
if (!err && res) this.shareableGroups.set(res);
|
||||
});
|
||||
// #5174 / #4825: per-board tile data (per-list card counts + member ids) for
|
||||
// the All Boards tiles, computed server-side and fetched exactly ONCE here —
|
||||
// deliberately NOT inside an autorun and NOT from reactive getLists/getCards
|
||||
// cursors, so the #4214 "icons random dance" (a reactive re-render loop on
|
||||
// this page, which is why the old helpers were stubbed out) cannot return.
|
||||
this.boardTileDataVar = new ReactiveVar({});
|
||||
Meteor.call('getAllBoardsTileData', (err, res) => {
|
||||
if (!err && res) this.boardTileDataVar.set(res);
|
||||
});
|
||||
let currUser = ReactiveCache.getCurrentUser();
|
||||
let userLanguage;
|
||||
if (currUser && currUser.profile) {
|
||||
@@ -598,25 +597,32 @@ Template.boardList.helpers({
|
||||
.slice()
|
||||
.sort((a, b) => (a.title || '').localeCompare(b.title || ''));
|
||||
},
|
||||
// #5174 / #4825: the board tiles' per-list card-count line and member avatar
|
||||
// row. Data comes from the one-shot getAllBoardsTileData method fetch in
|
||||
// onCreated (see there) — NOT from reactive getLists/getCards cursors, which
|
||||
// caused the #4214 "icons random dance" and got these helpers stubbed to []
|
||||
// (hiding the counters/avatars for everyone). The show* helpers resolve the
|
||||
// per-board opt-in flags (allowsCardCounterList / allowsBoardMemberList,
|
||||
// board sidebar "Show at All Boards page"), strictly, server-side — so a
|
||||
// board with the checkbox off (or never set) consistently shows nothing.
|
||||
boardLists(boardId) {
|
||||
/* Bug Board icons random dance https://github.com/wekan/wekan/issues/4214
|
||||
const lists = ReactiveCache.getLists({ 'boardId': boardId, 'archived': false },{sort: ['sort','asc']});
|
||||
const ret = lists.map(list => {
|
||||
let cardCount = ReactiveCache.getCards({ 'boardId': boardId, 'listId': list._id }).length;
|
||||
return `${list.title}: ${cardCount}`;
|
||||
});
|
||||
return ret;
|
||||
*/
|
||||
return [];
|
||||
const tile = (Template.instance().boardTileDataVar.get() || {})[boardId];
|
||||
return (tile && tile.showLists && tile.lists) || [];
|
||||
},
|
||||
|
||||
boardMembers(boardId) {
|
||||
/* Bug Board icons random dance https://github.com/wekan/wekan/issues/4214
|
||||
const lists = ReactiveCache.getBoard(boardId)
|
||||
const boardMembers = lists?.members.map(member => member.userId);
|
||||
return boardMembers;
|
||||
*/
|
||||
return [];
|
||||
const tile = (Template.instance().boardTileDataVar.get() || {})[boardId];
|
||||
return (tile && tile.showMembers && tile.memberIds) || [];
|
||||
},
|
||||
|
||||
showCardCounterList(boardId) {
|
||||
const tile = (Template.instance().boardTileDataVar.get() || {})[boardId];
|
||||
return !!(tile && tile.showLists && tile.lists && tile.lists.length);
|
||||
},
|
||||
|
||||
showBoardMemberList(boardId) {
|
||||
const tile = (Template.instance().boardTileDataVar.get() || {})[boardId];
|
||||
return !!(tile && tile.showMembers && tile.memberIds && tile.memberIds.length);
|
||||
},
|
||||
|
||||
isStarred() {
|
||||
|
||||
@@ -49,7 +49,14 @@ Template.attachmentGallery.events({
|
||||
if (card && card.coverId === this._id) {
|
||||
await card.unsetCover();
|
||||
}
|
||||
await Attachments.removeAsync(this._id);
|
||||
// #5282 (same class as #3252 for comments/checklists): only remove if the
|
||||
// doc is still in the local cache. Under publication churn the attachment
|
||||
// can already be evicted from Minimongo, and removing a missing _id
|
||||
// throws "Removed nonexistent document" even though the delete itself
|
||||
// succeeded on the server.
|
||||
if (this._id && ReactiveCache.getAttachment(this._id)) {
|
||||
await Attachments.removeAsync(this._id);
|
||||
}
|
||||
Popup.back();
|
||||
}),
|
||||
});
|
||||
@@ -432,11 +439,16 @@ export async function handleFileUpload(card, files) {
|
||||
fileName: fileName,
|
||||
meta: Utils.getCommonAttachmentMetaFrom(card),
|
||||
chunkSize: 'dynamic',
|
||||
// Use HTTP transport instead of DDP so file chunks go over a dedicated
|
||||
// fetch POST rather than flooding the WebSocket/DDP channel. DDP
|
||||
// upload causes repeated DDP reconnects in Safari, showing the
|
||||
// "Loading, please wait" offline banner and stalling progress at ~95%.
|
||||
transport: 'http',
|
||||
// Use HTTP transport (a dedicated fetch POST per chunk) rather than DDP,
|
||||
// which floods the WebSocket channel and causes repeated reconnects in
|
||||
// Safari (the "Loading, please wait" offline banner, stalling at ~95%).
|
||||
// EXCEPT on Sandstorm: the grain's sandstorm-http-bridge strips Meteor-Files'
|
||||
// custom upload headers — x-start/x-mtok/x-chunkid/x-fileid/x-eof are not on
|
||||
// Sandstorm's request-header whitelist — so the server never sees x-start,
|
||||
// treats every request as a chunk continuation, and fails with "Can't
|
||||
// continue upload, session expired" [408]. DDP uploads go over method calls
|
||||
// (no custom HTTP headers), so they work through the bridge.
|
||||
transport: Meteor.settings?.public?.sandstorm ? 'ddp' : 'http',
|
||||
};
|
||||
config.meta.fileId = fileId;
|
||||
|
||||
@@ -528,7 +540,9 @@ Template.previewClipboardImagePopup.events({
|
||||
meta: Utils.getCommonAttachmentMetaFrom(card),
|
||||
fileName: file.name || file.type.replace('image/', 'clipboard.'),
|
||||
chunkSize: 'dynamic',
|
||||
transport: 'http',
|
||||
// DDP on Sandstorm (its bridge strips Meteor-Files' x-* upload headers),
|
||||
// HTTP elsewhere — see the note in the other upload handler above.
|
||||
transport: Meteor.settings?.public?.sandstorm ? 'ddp' : 'http',
|
||||
};
|
||||
config.meta.fileId = fileId;
|
||||
const uploader = await Attachments.insertAsync(
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { UnsavedEdits } from '/client/lib/unsavedEdits';
|
||||
|
||||
const descriptionFormIsOpen = new ReactiveVar(false);
|
||||
|
||||
Template.descriptionForm.onDestroyed(function () {
|
||||
@@ -16,6 +18,10 @@ Template.descriptionForm.events({
|
||||
event.preventDefault();
|
||||
const description = tpl.currentComponent ? tpl.currentComponent().getValue() : tpl.$('textarea').val();
|
||||
await this.setDescription(description);
|
||||
// #6455: a successful save means there is no unsaved draft anymore; clear
|
||||
// any pre-existing draft record so the "You have an unsaved description"
|
||||
// warning does not stick around after saving.
|
||||
UnsavedEdits.reset({ fieldName: 'cardDescription', docId: this._id });
|
||||
},
|
||||
// Pressing Ctrl+Enter should submit the form
|
||||
'keydown form textarea'(evt, tpl) {
|
||||
|
||||
@@ -129,50 +129,82 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Desktop mode: position card below board header */
|
||||
/* Desktop mode: position card below board header.
|
||||
#6465: the floating window used to span nearly the whole board (insets
|
||||
20px/20px from BOTH edges, top-left anchored) — right on top of the card it
|
||||
belongs to, with big rounded borders. Dock it to the END edge (right in LTR)
|
||||
like the classic 6.09 side panel instead: the board and the card stay
|
||||
visible, and the drag handle still moves it anywhere. */
|
||||
body.desktop-mode .card-details:not(.card-details-popup) {
|
||||
position: fixed;
|
||||
width: auto;
|
||||
max-width: 800px;
|
||||
flex-basis: auto;
|
||||
border-radius: 8px;
|
||||
border-radius: 3px;
|
||||
z-index: 2001;
|
||||
}
|
||||
|
||||
/* Default position for first card or when dragged */
|
||||
body.desktop-mode .card-details:not(.card-details-popup):not([style*="left"]):not([style*="top"]) {
|
||||
top: 8px;
|
||||
inset-inline-start: 20px;
|
||||
inset-inline-end: 20px;
|
||||
bottom: 20px;
|
||||
inset-inline-start: auto;
|
||||
inset-inline-end: 8px;
|
||||
width: min(650px, 90vw);
|
||||
bottom: 8px;
|
||||
}
|
||||
|
||||
/* Stagger positions for multiple cards using nth-of-type */
|
||||
/* Stagger positions for multiple cards using nth-of-type (from the end edge) */
|
||||
body.desktop-mode .card-details:not(.card-details-popup):nth-of-type(1) {
|
||||
top: 8px;
|
||||
inset-inline-start: 20px;
|
||||
inset-inline-end: 8px;
|
||||
}
|
||||
body.desktop-mode .card-details:not(.card-details-popup):nth-of-type(2) {
|
||||
top: 38px;
|
||||
inset-inline-start: 50px;
|
||||
inset-inline-end: 38px;
|
||||
}
|
||||
body.desktop-mode .card-details:not(.card-details-popup):nth-of-type(3) {
|
||||
top: 68px;
|
||||
inset-inline-start: 80px;
|
||||
inset-inline-end: 68px;
|
||||
}
|
||||
body.desktop-mode .card-details:not(.card-details-popup):nth-of-type(4) {
|
||||
top: 98px;
|
||||
inset-inline-start: 110px;
|
||||
inset-inline-end: 98px;
|
||||
}
|
||||
body.desktop-mode .card-details:not(.card-details-popup):nth-of-type(5) {
|
||||
top: 128px;
|
||||
inset-inline-start: 140px;
|
||||
inset-inline-end: 128px;
|
||||
}
|
||||
|
||||
/* For expanded cards, set dimensions */
|
||||
body.desktop-mode .card-details:not(.card-details-popup):not(.card-details-collapsed) {
|
||||
inset-inline-end: 20px;
|
||||
bottom: 20px;
|
||||
bottom: 8px;
|
||||
}
|
||||
|
||||
/* #4822: the MAXIMIZED card must be anchored to the VIEWPORT (position: fixed
|
||||
with viewport insets), never laid out inside — or measured from — the
|
||||
scrolled swimlane/board container. Historically the maximized pane was an
|
||||
in-flow flex/float item of its swimlane, so after scrolling down in the
|
||||
swimlanes view it rendered at the swimlane's position in the tall scrolled
|
||||
canvas (off-screen) instead of over the viewport.
|
||||
All four insets are !important for two reasons:
|
||||
1. The floating-window rules above (top: 8px / inset-inline-end: 8px /
|
||||
width: min(650px, 90vw), specificity up to 0,5,1) otherwise override the
|
||||
lower-specificity .card-details-maximized geometry entirely, leaving the
|
||||
Maximize button a no-op.
|
||||
2. The drag handle writes inline left/top styles onto the card; a card that
|
||||
was dragged and then maximized must not keep the stale dragged offsets
|
||||
(an off-viewport inline top is exactly the "wrong place" of #4822).
|
||||
Only !important declarations beat inline styles. */
|
||||
body.desktop-mode .card-details.card-details-maximized:not(.card-details-popup):not(.card-details-collapsed) {
|
||||
position: fixed !important;
|
||||
top: 8px !important;
|
||||
inset-inline-start: 8px !important;
|
||||
inset-inline-end: 8px !important;
|
||||
bottom: 8px !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
max-width: none !important;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
/* Collapsed card state - hide content and set height to title row only */
|
||||
@@ -192,7 +224,9 @@ body.desktop-mode .card-details.card-details-collapsed {
|
||||
}
|
||||
.card-details .card-details-canvas {
|
||||
width: auto;
|
||||
padding: 0 2.5vw;
|
||||
/* #6465: fixed 20px as in 6.09 — 2.5vw was ~48px of white border per side
|
||||
on a FullHD screen. */
|
||||
padding: 0 20px;
|
||||
}
|
||||
.card-details .card-details-header {
|
||||
margin: 0 -20px 5px;
|
||||
@@ -300,25 +334,14 @@ body.desktop-mode .card-details.card-details-collapsed {
|
||||
float: inline-end;
|
||||
}
|
||||
|
||||
/* Unify all card text to match title size */
|
||||
/* #6465: the "unify all card text to match title size" block (v8.18) forced
|
||||
EVERY element in card details to the base font size with line-height 1.5,
|
||||
flattening the 6.09 hierarchy where labels/metadata were smaller than body
|
||||
text — a big part of the "card window is WAAAY too big" complaint. Removed:
|
||||
components keep their own sizes again. */
|
||||
.card-details {
|
||||
font-size: 1em;
|
||||
}
|
||||
.card-details p,
|
||||
.card-details span,
|
||||
.card-details div,
|
||||
.card-details a,
|
||||
.card-details label,
|
||||
.card-details input,
|
||||
.card-details textarea,
|
||||
.card-details select,
|
||||
.card-details button,
|
||||
.card-details .card-details-item-title,
|
||||
.card-details .card-label,
|
||||
.card-details .viewer {
|
||||
font-size: inherit;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.card-details .card-details-header .card-details-watch {
|
||||
font-size: 17px;
|
||||
padding-inline-start: 7px;
|
||||
@@ -446,6 +469,12 @@ body.desktop-mode .card-details.card-details-collapsed {
|
||||
flex-shrink: 0;
|
||||
flex-basis: calc(100% - 20px);
|
||||
will-change: flex-basis;
|
||||
/* #4822: declare the position strategy explicitly. The maximized pane must
|
||||
be fixed to the viewport in its own right — never an in-flow flex/float
|
||||
item of the scrolled swimlane container, and never dependent on the
|
||||
sibling .card-details rule (or the body.desktop-mode rules) happening to
|
||||
supply position: fixed. */
|
||||
position: fixed;
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
background: #f7f7f7;
|
||||
|
||||
@@ -867,6 +867,12 @@ Template.cardDetails.events({
|
||||
// permission denial that otherwise vanished with no feedback.
|
||||
try {
|
||||
await card.setDescription(description);
|
||||
// #6455: a successful save means there is no unsaved draft anymore.
|
||||
// Clear the record explicitly instead of relying on the inlined form's
|
||||
// close-time draft/description comparison, which can run before the
|
||||
// updated description is visible and leave a stale "You have an unsaved
|
||||
// description" warning behind.
|
||||
UnsavedEdits.reset({ fieldName: 'cardDescription', docId: card._id });
|
||||
} catch (error) {
|
||||
alert(error?.reason || error?.message || 'Failed to save description');
|
||||
}
|
||||
@@ -1367,10 +1373,24 @@ Template.inlinedCardDescription.onCreated(function () {
|
||||
|
||||
this._close = (isReset = false) => {
|
||||
if (this.isOpen.get() && !isReset) {
|
||||
const draft = (this._getValue() || '').trim();
|
||||
// #6455: normalize BOTH sides the same way before comparing. The textarea
|
||||
// value has per-line trailing whitespace stripped (_getValue), while
|
||||
// getDescription() returns the raw stored text — or null for an empty
|
||||
// description. Comparing them raw made the comparison permanently unequal
|
||||
// for descriptions containing Markdown " \n" hard breaks (or after
|
||||
// emptying the description), re-creating the phantom draft on every save.
|
||||
const normalize = (s) => (s || '').replaceAll(/[ \f\r\t\v]+$/gm, '').trim();
|
||||
const draft = normalize(this._getValue());
|
||||
const card = getCurrentCardFromContext();
|
||||
if (card && draft !== card.getDescription()) {
|
||||
if (card && draft !== normalize(card.getDescription())) {
|
||||
UnsavedEdits.set(this._getUnsavedEditKey(), this._getValue());
|
||||
} else {
|
||||
// #6455: closing with the draft equal to the saved description must
|
||||
// REMOVE any pre-existing unsaved-edits record. Previously this branch
|
||||
// did nothing, so once a draft record existed, pressing Save ("View it"
|
||||
// -> Save) could never clear the "You have an unsaved description"
|
||||
// warning — only Discard could.
|
||||
UnsavedEdits.reset(this._getUnsavedEditKey());
|
||||
}
|
||||
}
|
||||
this.isOpen.set(false);
|
||||
@@ -1467,6 +1487,15 @@ Template.cardDetailsActionsPopup.events({
|
||||
Popup.close();
|
||||
if (!card) return;
|
||||
await card.archive();
|
||||
// #6465 follow-up: archiving must also CLOSE the card's details window.
|
||||
// The card id stayed in the openCards session list, so the floating window
|
||||
// kept rendering above the board — and, docked to the right edge, exactly
|
||||
// over the archives sidebar someone restoring the card would open next,
|
||||
// intercepting its Restore/Delete clicks.
|
||||
Session.set('openCards', (Session.get('openCards') || []).filter((id) => id !== card._id));
|
||||
if (Session.get('currentCard') === card._id) {
|
||||
Session.set('currentCard', null);
|
||||
}
|
||||
Utils.goBoardId(card.boardId);
|
||||
}),
|
||||
'click .js-more': Popup.open('cardMore'),
|
||||
@@ -2217,6 +2246,12 @@ Template.cardMorePopup.events({
|
||||
// verify that there are no linked cards
|
||||
if (ReactiveCache.getCards({ linkedId: card._id }).length === 0) {
|
||||
Cards.remove(card._id);
|
||||
// #6465 follow-up: like archiving, deleting must close the card's
|
||||
// details window (drop it from the openCards session list).
|
||||
Session.set('openCards', (Session.get('openCards') || []).filter((id) => id !== card._id));
|
||||
if (Session.get('currentCard') === card._id) {
|
||||
Session.set('currentCard', null);
|
||||
}
|
||||
} else {
|
||||
// TODO: Maybe later we can list where the linked cards are.
|
||||
// Now here is popup with a hint that the card cannot be deleted
|
||||
|
||||
@@ -17,24 +17,69 @@ export function canNavigateToSubtaskBoard(board) {
|
||||
// the parent card again, and so the behaviour is unit-testable.
|
||||
//
|
||||
// Returns the FlowRouter 'card' route params taken from the subtask, or
|
||||
// undefined when the subtask's board is not loaded yet (see #4762 guard).
|
||||
// undefined for a malformed subtask (no usable card id / board id).
|
||||
//
|
||||
// #1853: "Subtask board id missing: cannot read property _id of undefined".
|
||||
// The subtask often lives on ANOTHER board (the deposit/target board) whose
|
||||
// document is not in minimongo while the parent card's board is open. In that
|
||||
// case subtask.board() yields nothing; instead of crashing (the original
|
||||
// TypeError) or silently doing nothing (the post-#4762 behaviour), fall back
|
||||
// to the subtask's own boardId and the default 'board' slug — the 'card'
|
||||
// route action only uses :boardId/:cardId (config/router.js) and its
|
||||
// subscriptions load the board, so navigation succeeds without a reload.
|
||||
// 'board' is the model's own default slug (models/boards.js).
|
||||
export function subtaskNavTarget(subtask) {
|
||||
if (!subtask) {
|
||||
return undefined;
|
||||
}
|
||||
const board = typeof subtask.board === 'function' ? subtask.board() : undefined;
|
||||
if (!canNavigateToSubtaskBoard(board)) {
|
||||
return undefined;
|
||||
}
|
||||
// Prefer the real card id (resolves linked subtask cards to their source);
|
||||
// fall back to the plain _id when getRealId is unavailable (e.g. in tests).
|
||||
const cardId =
|
||||
typeof subtask.getRealId === 'function' ? subtask.getRealId() : subtask._id;
|
||||
return {
|
||||
boardId: board._id,
|
||||
slug: board.slug,
|
||||
cardId,
|
||||
swimlaneId: subtask.swimlaneId,
|
||||
listId: subtask.listId,
|
||||
};
|
||||
(typeof subtask.getRealId === 'function' ? subtask.getRealId() : undefined) ||
|
||||
subtask._id;
|
||||
if (!cardId) {
|
||||
// Malformed subtask document: nothing sane to navigate to.
|
||||
return undefined;
|
||||
}
|
||||
const board = typeof subtask.board === 'function' ? subtask.board() : undefined;
|
||||
if (canNavigateToSubtaskBoard(board)) {
|
||||
return {
|
||||
boardId: board._id,
|
||||
slug: board.slug,
|
||||
cardId,
|
||||
swimlaneId: subtask.swimlaneId,
|
||||
listId: subtask.listId,
|
||||
};
|
||||
}
|
||||
if (subtask.boardId) {
|
||||
// Board doc missing locally (#1853 / #4762): navigate by id and let the
|
||||
// route load the board. The slug segment is cosmetic for the card route.
|
||||
return {
|
||||
boardId: subtask.boardId,
|
||||
slug: 'board',
|
||||
cardId,
|
||||
swimlaneId: subtask.swimlaneId,
|
||||
listId: subtask.listId,
|
||||
};
|
||||
}
|
||||
// No board reference at all: broken subtask, don't navigate (and don't
|
||||
// throw — the caller shows a warning instead).
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// Same idea for the "Go to board" popup entry (js-go-to-subtask-board):
|
||||
// prefer the loaded board's id/slug, fall back to the subtask's boardId so a
|
||||
// not-yet-subscribed deposit board is still reachable (#1853).
|
||||
export function subtaskBoardNavTarget(subtask) {
|
||||
if (!subtask) {
|
||||
return undefined;
|
||||
}
|
||||
const board = typeof subtask.board === 'function' ? subtask.board() : undefined;
|
||||
if (canNavigateToSubtaskBoard(board)) {
|
||||
return { id: board._id, slug: board.slug };
|
||||
}
|
||||
if (subtask.boardId) {
|
||||
return { id: subtask.boardId, slug: 'board' };
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
@@ -3,7 +3,10 @@ import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
||||
import Cards from '/models/cards';
|
||||
import { Filter } from '/client/lib/filter';
|
||||
import { subtaskStatusLabel } from './subtaskStatusHelpers';
|
||||
import { subtaskNavTarget } from './subtaskViewHelpers';
|
||||
import {
|
||||
subtaskNavTarget,
|
||||
subtaskBoardNavTarget,
|
||||
} from './subtaskViewHelpers';
|
||||
import { Utils } from '/client/lib/utils';
|
||||
|
||||
Template.subtasks.events({
|
||||
@@ -125,20 +128,34 @@ Template.subtaskActionsPopup.events({
|
||||
const subtask = Template.currentData().subtask;
|
||||
// #3743: open the SUBTASK card itself, not the parent/current card.
|
||||
// subtaskNavTarget derives boardId/slug/cardId from the subtask only.
|
||||
// #4762: it also returns undefined while the subtask's board is not
|
||||
// loaded yet (ReactiveCache miss), mirroring js-go-to-subtask-board.
|
||||
// #1853 / #4762: when the subtask's board (often a DIFFERENT deposit
|
||||
// board) is not in minimongo yet, it falls back to the subtask's own
|
||||
// boardId so the route loads the board — no TypeError, no dead button.
|
||||
// It only returns undefined for a truly broken subtask document.
|
||||
const target = subtaskNavTarget(subtask);
|
||||
if (target) {
|
||||
FlowRouter.go('card', target);
|
||||
} else {
|
||||
// Broken subtask (no card id / board id): warn instead of throwing.
|
||||
console.warn(
|
||||
'Cannot view subtask: missing board/card id on subtask',
|
||||
subtask && subtask._id,
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
'click .js-go-to-subtask-board'() {
|
||||
const subtask = Template.currentData().subtask;
|
||||
const board = subtask.board();
|
||||
if (board) {
|
||||
// #1853: fall back to subtask.boardId when the board doc is not loaded.
|
||||
const target = subtaskBoardNavTarget(subtask);
|
||||
if (target) {
|
||||
Popup.close();
|
||||
FlowRouter.go('board', { id: board._id, slug: board.slug });
|
||||
FlowRouter.go('board', target);
|
||||
} else {
|
||||
console.warn(
|
||||
'Cannot go to subtask board: missing board id on subtask',
|
||||
subtask && subtask._id,
|
||||
);
|
||||
}
|
||||
},
|
||||
'click .js-delete-subtask' : Popup.afterConfirm('subtaskDelete', async function () {
|
||||
|
||||
@@ -298,6 +298,25 @@ textarea::-moz-placeholder {
|
||||
font-size: clamp(20px, 4vw, 26px);
|
||||
margin: 0.5vh 1.5vw;
|
||||
}
|
||||
/* CJK (Japanese/Chinese/Korean) labels contain no spaces, so browsers may
|
||||
insert a line break between any two characters. In the narrow add-card /
|
||||
edit footers this made short labels such as "追加" (Add) and "リンク"
|
||||
(Link) wrap mid-word. `word-break: keep-all` forbids breaks inside CJK
|
||||
words while leaving Latin wrapping behavior unchanged, and `flex-wrap`
|
||||
lets the footer wrap between its links instead of inside them.
|
||||
See https://github.com/wekan/wekan/issues/4023 */
|
||||
.edit-controls,
|
||||
.add-controls {
|
||||
flex-wrap: wrap;
|
||||
word-break: keep-all;
|
||||
}
|
||||
.edit-controls button[type=submit],
|
||||
.add-controls button[type=submit] {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.add-controls .quiet {
|
||||
white-space: nowrap;
|
||||
}
|
||||
[type="checkbox"]:not(:checked),
|
||||
[type="checkbox"]:checked {
|
||||
position: absolute;
|
||||
|
||||
+122
-50
@@ -3,6 +3,11 @@ import { TAPi18n } from '/imports/i18n';
|
||||
import { EscapeActions } from '/client/lib/escapeActions';
|
||||
import { MultiSelection } from '/client/lib/multiSelection';
|
||||
import { Utils } from '/client/lib/utils';
|
||||
import Cards from '/models/cards';
|
||||
import {
|
||||
isDegenerateSortGap,
|
||||
computeRepairedDropIndex,
|
||||
} from '/models/lib/cardSortRepair';
|
||||
require('/client/lib/jquery-ui.js')
|
||||
|
||||
const { calculateIndex } = Utils;
|
||||
@@ -19,9 +24,17 @@ const { calculateIndex } = Utils;
|
||||
//
|
||||
// The old per-list "min width / max width / automatic" knobs are gone — the
|
||||
// rendered width is now a single hard value (see list.jade).
|
||||
//
|
||||
// #5659: the default/minimum width and the resolution order live in ONE
|
||||
// Meteor-free module shared with models/users.js, so every path (member,
|
||||
// anonymous public-board visitor, fixed mode) falls back to the SAME default
|
||||
// and all lists render the same width when nothing is customized.
|
||||
// ---------------------------------------------------------------------------
|
||||
const DEFAULT_LIST_WIDTH = 272;
|
||||
const MIN_LIST_WIDTH = 270;
|
||||
import {
|
||||
DEFAULT_LIST_WIDTH,
|
||||
MIN_LIST_WIDTH,
|
||||
resolveListWidth,
|
||||
} from '/models/lib/listWidth';
|
||||
|
||||
function isPersonalListWidth(boardId) {
|
||||
const board = ReactiveCache.getBoard(boardId);
|
||||
@@ -122,25 +135,28 @@ function saveAnonFixedListWidth(boardId, width) {
|
||||
|
||||
function effectiveListWidth(list) {
|
||||
if (!list) return DEFAULT_LIST_WIDTH;
|
||||
// #5729 In fixed width mode every list renders at the single shared value.
|
||||
if (isFixedListWidth(list.boardId)) {
|
||||
return fixedListWidthValue(list.boardId);
|
||||
// #5659: all inputs are gathered here, but the fallback order and the ONE
|
||||
// default width live in models/lib/listWidth.js (shared + unit tested).
|
||||
const fixedEnabled = isFixedListWidth(list.boardId);
|
||||
const personalMode = isPersonalListWidth(list.boardId);
|
||||
let personalWidth = null;
|
||||
if (personalMode) {
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
if (user) {
|
||||
const widths = user.getListWidths();
|
||||
personalWidth = widths[list.boardId] && widths[list.boardId][list._id];
|
||||
} else {
|
||||
personalWidth = readAnonListWidth(list.boardId, list._id);
|
||||
}
|
||||
}
|
||||
const shared =
|
||||
typeof list.width === 'number' && list.width >= MIN_LIST_WIDTH
|
||||
? list.width
|
||||
: DEFAULT_LIST_WIDTH;
|
||||
if (!isPersonalListWidth(list.boardId)) {
|
||||
return shared;
|
||||
}
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
if (user) {
|
||||
const widths = user.getListWidths();
|
||||
const w = widths[list.boardId] && widths[list.boardId][list._id];
|
||||
return typeof w === 'number' && w >= MIN_LIST_WIDTH ? w : shared;
|
||||
}
|
||||
const w = readAnonListWidth(list.boardId, list._id);
|
||||
return w || shared;
|
||||
return resolveListWidth({
|
||||
// #5729 In fixed width mode every list renders at the single shared value.
|
||||
fixedEnabled,
|
||||
fixedWidth: fixedEnabled ? fixedListWidthValue(list.boardId) : null,
|
||||
sharedWidth: list.width,
|
||||
personalMode,
|
||||
personalWidth,
|
||||
});
|
||||
}
|
||||
|
||||
// Can the current user change THIS list's width by dragging?
|
||||
@@ -276,7 +292,35 @@ Template.list.onRendered(function () {
|
||||
const prevCardDom = ui.item.prev('.js-minicard').get(0);
|
||||
const nextCardDom = ui.item.next('.js-minicard').get(0);
|
||||
const nCards = MultiSelection.isActive() ? MultiSelection.count() : 1;
|
||||
const sortIndex = calculateIndex(prevCardDom, nextCardDom, nCards);
|
||||
let sortIndex = calculateIndex(prevCardDom, nextCardDom, nCards);
|
||||
|
||||
// #3826: cards created by the "add subtask" flow were all inserted with
|
||||
// a constant sort of -1, so a list full of subtask cards contains only
|
||||
// ties. No number lies strictly between two equal sorts, so
|
||||
// calculateIndex returns base === neighbour sort with increment 0: the
|
||||
// write is then discarded by Card.move()'s no-op guard and the card
|
||||
// snaps back (and a multi-selection drop would give every selected card
|
||||
// the SAME sort, losing their relative order). When the drop landed in
|
||||
// such a degenerate gap, capture the target list's sibling cards in
|
||||
// their current visual order (before sortable('cancel') reshuffles the
|
||||
// DOM) so their sorts can be repaired below.
|
||||
const prevCardData = prevCardDom ? Blaze.getData(prevCardDom) : null;
|
||||
const nextCardData = nextCardDom ? Blaze.getData(nextCardDom) : null;
|
||||
let orderedSiblingCards = null;
|
||||
if (
|
||||
isDegenerateSortGap(
|
||||
prevCardData ? prevCardData.sort : null,
|
||||
nextCardData ? nextCardData.sort : null,
|
||||
)
|
||||
) {
|
||||
orderedSiblingCards = ui.item
|
||||
.parent()
|
||||
.children(itemsSelector)
|
||||
.not(ui.item)
|
||||
.toArray()
|
||||
.map(el => Blaze.getData(el))
|
||||
.filter(Boolean);
|
||||
}
|
||||
const listData = Blaze.getData(ui.item.parents('.list').get(0));
|
||||
const listId = listData._id;
|
||||
const currentBoard = Utils.getCurrentBoard();
|
||||
@@ -303,6 +347,25 @@ Template.list.onRendered(function () {
|
||||
// Blaze with the below query.
|
||||
$cards.sortable('cancel');
|
||||
|
||||
// #3826: the drop landed between two cards whose sorts do not strictly
|
||||
// increase (duplicate -1 sorts from subtask creation, or legacy data).
|
||||
// Repair the sibling sorts with the minimal bumps that make the visible
|
||||
// order strictly increasing, then recompute the drop index from the
|
||||
// repaired neighbours: base now falls strictly between them and the
|
||||
// increment is strictly positive (distinct sorts for a multi-selection).
|
||||
if (orderedSiblingCards && prevCardData && nextCardData) {
|
||||
const repairedDrop = computeRepairedDropIndex(
|
||||
orderedSiblingCards,
|
||||
prevCardData,
|
||||
nextCardData,
|
||||
nCards,
|
||||
);
|
||||
repairedDrop.updates.forEach(u => {
|
||||
Cards.update(u._id, { $set: { sort: u.sort } });
|
||||
});
|
||||
sortIndex = { base: repairedDrop.base, increment: repairedDrop.increment };
|
||||
}
|
||||
|
||||
if (MultiSelection.isActive()) {
|
||||
ReactiveCache.getCards(MultiSelection.getMongoSelector(), { sort: ['sort'] }).forEach((card, i) => {
|
||||
const newSwimlaneId = targetSwimlaneId
|
||||
@@ -326,37 +389,39 @@ Template.list.onRendered(function () {
|
||||
if (boardComponent) boardComponent.setIsDragging(false);
|
||||
},
|
||||
sort(event, ui) {
|
||||
const $boardCanvas = $('.board-canvas');
|
||||
const boardCanvas = $boardCanvas[0];
|
||||
|
||||
if (event.pageX < 10) { // scroll to the left
|
||||
boardCanvas.scrollLeft -= 15;
|
||||
ui.helper[0].offsetLeft -= 15;
|
||||
// #443: the HORIZONTAL scroller is the .js-lists lane (.swimlane has
|
||||
// overflow: auto), NOT .board-canvas, which only overflows vertically —
|
||||
// the old code compared against a scrollLeftMax of 0 and never fired, so
|
||||
// dragging a card toward an off-screen list never auto-scrolled the board.
|
||||
const { computeEdgeScroll, findLaneUnderPointer } = require('/imports/lib/boardAutoScroll');
|
||||
const lanes = document.querySelectorAll('.js-lists');
|
||||
const rects = Array.prototype.map.call(lanes, el => el.getBoundingClientRect());
|
||||
const laneIndex = findLaneUnderPointer(rects, event.clientX, event.clientY);
|
||||
if (laneIndex !== -1) {
|
||||
const nextLeft = computeEdgeScroll({
|
||||
pointer: event.clientX,
|
||||
lowEdge: rects[laneIndex].left,
|
||||
highEdge: rects[laneIndex].right,
|
||||
scrollPos: lanes[laneIndex].scrollLeft,
|
||||
scrollSize: lanes[laneIndex].scrollWidth,
|
||||
clientSize: lanes[laneIndex].clientWidth,
|
||||
});
|
||||
if (nextLeft !== null) lanes[laneIndex].scrollLeft = nextLeft;
|
||||
}
|
||||
if (
|
||||
event.pageX > boardCanvas.offsetWidth - 10 &&
|
||||
boardCanvas.scrollLeft < $boardCanvas.data('scrollLeftMax') // don't scroll more than possible
|
||||
) { // scroll to the right
|
||||
boardCanvas.scrollLeft += 15;
|
||||
// vertical auto-scroll stays on the board canvas
|
||||
const canvas = document.querySelector('.board-canvas');
|
||||
if (canvas) {
|
||||
const crect = canvas.getBoundingClientRect();
|
||||
const nextTop = computeEdgeScroll({
|
||||
pointer: event.clientY,
|
||||
lowEdge: crect.top,
|
||||
highEdge: crect.bottom,
|
||||
scrollPos: canvas.scrollTop,
|
||||
scrollSize: canvas.scrollHeight,
|
||||
clientSize: canvas.clientHeight,
|
||||
});
|
||||
if (nextTop !== null) canvas.scrollTop = nextTop;
|
||||
}
|
||||
if (
|
||||
event.pageY > boardCanvas.offsetHeight - 10 &&
|
||||
event.pageY + boardCanvas.scrollTop < $boardCanvas.data('scrollTopMax') // don't scroll more than possible
|
||||
) { // scroll to the bottom
|
||||
boardCanvas.scrollTop += 15;
|
||||
}
|
||||
if (event.pageY < 10) { // scroll to the top
|
||||
boardCanvas.scrollTop -= 15;
|
||||
}
|
||||
},
|
||||
activate(event, ui) {
|
||||
const $boardCanvas = $('.board-canvas');
|
||||
const boardCanvas = $boardCanvas[0];
|
||||
// scrollTopMax and scrollLeftMax only available at Firefox (https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTopMax)
|
||||
// https://www.it-swarm.com.de/de/javascript/so-erhalten-sie-den-maximalen-dokument-scrolltop-wert/1069126844/
|
||||
$boardCanvas.data('scrollTopMax', boardCanvas.scrollHeight - boardCanvas.clientTop);
|
||||
// https://stackoverflow.com/questions/5138373/how-do-i-get-the-max-value-of-scrollleft/5704386#5704386
|
||||
$boardCanvas.data('scrollLeftMax', boardCanvas.scrollWidth - boardCanvas.clientWidth);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -384,6 +449,13 @@ Template.list.onRendered(function () {
|
||||
const currentBoardId = Tracker.nonreactive(() => {
|
||||
return Session.get('currentBoard');
|
||||
});
|
||||
// #1554: reactive dependency so newly added / re-rendered minicards are
|
||||
// (re)initialized as droppable for label/member drags. The dependency
|
||||
// (Cards.find(...).fetch()) was dropped in 7673c77c5, so the autorun ran
|
||||
// ONCE per list render and cards added afterwards silently rejected
|
||||
// sidebar label/member drops until the board was re-entered. Re-running
|
||||
// .droppable() on initialized elements is an idempotent option refresh.
|
||||
ReactiveCache.getCards({ boardId: currentBoardId });
|
||||
Tracker.afterFlush(() => {
|
||||
$cards.find(itemsSelector).droppable({
|
||||
hoverClass: 'draggable-hover-card',
|
||||
|
||||
@@ -13,6 +13,10 @@ import { isLinkableCardTarget } from '/models/lib/linkedCardTarget';
|
||||
import { listCardsSelector } from '/models/lib/swimlaneFilter';
|
||||
import { sortCardsByTitle } from '/models/lib/sortCardsByTitle';
|
||||
import { isLazyCards, BoardListCardCounts, windowCountId } from '/client/lib/lazyCards';
|
||||
import {
|
||||
mutationsChangeDragGeometry,
|
||||
findActiveCardDrag,
|
||||
} from '/client/lib/cardDragGeometry';
|
||||
import autosize from 'autosize';
|
||||
|
||||
// SubsManager removed for Meteor 3 migration
|
||||
@@ -453,6 +457,80 @@ Template.listBody.events({
|
||||
},
|
||||
});
|
||||
|
||||
// #2769 Card lands in the WRONG swimlane when it is dropped while a connected
|
||||
// list's layout changed mid-drag. jQuery UI sortable snapshots the geometry
|
||||
// of every connected `.js-minicards` container once at drag start
|
||||
// (_mouseStart runs refreshPositions() BEFORE the `start` callback) and only
|
||||
// re-snapshots after its own placeholder moves — never when Blaze mutates the
|
||||
// DOM. Two such mutations routinely happen during a drag: another user's
|
||||
// newly added card is reactively inserted into the target list (the issue's
|
||||
// "target column where a new card is being added"), and the dragging user's
|
||||
// own open add-card composer is closed by the `start` callback's
|
||||
// EscapeActions call, AFTER the snapshot. Every list/swimlane below the
|
||||
// change then shifts vertically while the cached rectangles stay put, so the
|
||||
// drop resolves against a stale map: the placeholder is parked in the
|
||||
// neighbouring swimlane's copy of the list (hence the reporter's "no drop
|
||||
// shadow in the target column") and the stop handler's
|
||||
// ui.item.parents('.swimlane') (client/components/lists/list.js) faithfully
|
||||
// persists that wrong swimlane.
|
||||
// Fix: watch each list's minicards for REAL DOM changes (Blaze insertions and
|
||||
// removals — not jQuery UI's own placeholder/helper churn, which the library
|
||||
// already follows with its own refresh) and re-cache the active drag's
|
||||
// geometry with sortable('refresh'). The decision helpers are pure and unit
|
||||
// tested in tests/cardDragGeometry.test.cjs.
|
||||
Template.listBody.onRendered(function () {
|
||||
const minicardsEl = this.find('.js-minicards');
|
||||
if (!minicardsEl || typeof MutationObserver === 'undefined') {
|
||||
return;
|
||||
}
|
||||
this.dragGeometryRefreshQueued = false;
|
||||
this.dragGeometryObserver = new MutationObserver(mutations => {
|
||||
// Cheapest gate first: no drag helper on the page means no drag at all
|
||||
// (this observer also fires on every ordinary reactive card update).
|
||||
if (!document.getElementsByClassName('ui-sortable-helper').length) {
|
||||
return;
|
||||
}
|
||||
if (!mutationsChangeDragGeometry(mutations)) {
|
||||
return;
|
||||
}
|
||||
if (this.dragGeometryRefreshQueued) {
|
||||
return;
|
||||
}
|
||||
this.dragGeometryRefreshQueued = true;
|
||||
// Coalesce bursts (Blaze can insert several nodes per flush); by the time
|
||||
// the timeout runs, this tick's layout is final and measurable.
|
||||
setTimeout(() => {
|
||||
this.dragGeometryRefreshQueued = false;
|
||||
const active = findActiveCardDrag(
|
||||
$('.js-minicards')
|
||||
.toArray()
|
||||
.map(el => $.data(el, 'ui-sortable')),
|
||||
);
|
||||
if (active) {
|
||||
try {
|
||||
// Re-collects the items of every connected container and re-measures
|
||||
// all container rectangles, so the pointer is matched against the
|
||||
// CURRENT layout for the rest of the drag.
|
||||
active.refresh();
|
||||
} catch (e) {
|
||||
// A failed re-measure must never break the drag itself.
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
});
|
||||
this.dragGeometryObserver.observe(minicardsEl, {
|
||||
childList: true,
|
||||
subtree: true,
|
||||
});
|
||||
});
|
||||
|
||||
Template.listBody.onDestroyed(function () {
|
||||
if (this.dragGeometryObserver) {
|
||||
this.dragGeometryObserver.disconnect();
|
||||
this.dragGeometryObserver = null;
|
||||
}
|
||||
});
|
||||
|
||||
function toggleValueInReactiveArray(reactiveValue, value) {
|
||||
const array = reactiveValue.get();
|
||||
const valueIndex = array.indexOf(value);
|
||||
|
||||
@@ -208,7 +208,10 @@ template(name="listMorePopup")
|
||||
span {{_ 'link-list'}}
|
||||
= ' '
|
||||
i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
||||
input.inline-input(type="text" readonly value="{{ rootUrl }}")
|
||||
//- #6459: was {{ rootUrl }}, a helper that does not exist anywhere, so the
|
||||
//- link input was always empty. absoluteUrl resolves a URL via a card on
|
||||
//- this list.
|
||||
input.inline-input(type="text" readonly value="{{ absoluteUrl }}")
|
||||
| {{_ 'added'}}
|
||||
span.date(title=list.createdAt) {{ displayDate createdAt 'LLL' }}
|
||||
//unless currentUser.isWorker
|
||||
|
||||
@@ -9,6 +9,13 @@ import { isHexColor, toHex } from '/models/lib/contrastColor';
|
||||
import { MultiSelection } from '/client/lib/multiSelection';
|
||||
import { Utils } from '/client/lib/utils';
|
||||
import { lazyListCardCount } from '/client/lib/lazyCards';
|
||||
// #5659: single source of truth for the default/minimum list width, shared
|
||||
// with client/components/lists/list.js and models/users.js.
|
||||
import {
|
||||
DEFAULT_LIST_WIDTH,
|
||||
MIN_LIST_WIDTH,
|
||||
normalizeListWidth,
|
||||
} from '/models/lib/listWidth';
|
||||
|
||||
let listsColors;
|
||||
Meteor.startup(() => {
|
||||
@@ -562,12 +569,12 @@ function readAnonFixedListWidth(boardId) {
|
||||
if (stored) {
|
||||
const widths = JSON.parse(stored);
|
||||
const w = widths[boardId];
|
||||
if (typeof w === 'number' && w >= 270) return w;
|
||||
if (typeof w === 'number' && w >= MIN_LIST_WIDTH) return w;
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('Error reading fixed list width from localStorage:', e);
|
||||
}
|
||||
return 272;
|
||||
return DEFAULT_LIST_WIDTH;
|
||||
}
|
||||
|
||||
function isFixedListWidth(boardId) {
|
||||
@@ -611,8 +618,7 @@ Template.setListWidthPopup.helpers({
|
||||
if (isFixedListWidth(list.boardId)) {
|
||||
return fixedListWidthValue(list.boardId);
|
||||
}
|
||||
const shared =
|
||||
typeof list.width === 'number' && list.width >= 270 ? list.width : 272;
|
||||
const shared = normalizeListWidth(list.width);
|
||||
if (!isPersonalListWidth(list.boardId)) {
|
||||
return shared;
|
||||
}
|
||||
@@ -620,7 +626,7 @@ Template.setListWidthPopup.helpers({
|
||||
if (user) {
|
||||
const widths = user.getListWidths();
|
||||
const w = widths[list.boardId] && widths[list.boardId][list._id];
|
||||
return typeof w === 'number' && w >= 270 ? w : shared;
|
||||
return normalizeListWidth(w, shared);
|
||||
}
|
||||
return shared;
|
||||
},
|
||||
@@ -702,7 +708,7 @@ Template.setListWidthPopup.events({
|
||||
const boardId = list.boardId;
|
||||
const width = parseInt(tpl.$('.list-width-value').val(), 10);
|
||||
|
||||
if (!width || width < 270) {
|
||||
if (!width || width < MIN_LIST_WIDTH) {
|
||||
tpl.$('.list-width-error').click();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -383,10 +383,29 @@ Blaze.Template.registerHelper(
|
||||
'mentions',
|
||||
new Template('mentions', function() {
|
||||
const view = this;
|
||||
// Admin Panel / Features / Security: read the setting FIRST (a reactive dependency
|
||||
// of this viewer) and push the "always show all code as plain text" flag into the
|
||||
// wekan-markdown package BEFORE rendering the inner markdown below. Doing it here —
|
||||
// not only in the separate startup autorun — removes a re-render race: this viewer
|
||||
// already re-renders whenever the setting doc changes (it reads it for stripLinks),
|
||||
// and the inner markdown helper then reads the up-to-date flag in the SAME
|
||||
// synchronous render, so toggling "always show all code as plain text" takes effect
|
||||
// immediately. Without this the viewer could re-render (setting changed) BEFORE the
|
||||
// startup autorun updated the flag, read the stale value, and never re-render again
|
||||
// since it does not itself depend on that ReactiveVar.
|
||||
const setting = ReactiveCache.getCurrentSetting();
|
||||
if (typeof Markdown !== 'undefined' && Markdown.alwaysShowCodeAsText) {
|
||||
Markdown.alwaysShowCodeAsText.set(!!(setting && setting.alwaysShowCodeAsText));
|
||||
}
|
||||
let content = Blaze.toHTML(view.templateContentBlock);
|
||||
// Admin Panel / Features: when "render links as plain text" is enabled, every
|
||||
// link (markdown [label](url) and raw HTML <a href>) is stripped to plain,
|
||||
// non-clickable text everywhere rich text is shown. Reactive: toggling the
|
||||
// setting re-renders viewers.
|
||||
const stripLinks = !!(setting && setting.renderLinksAsPlainText);
|
||||
const currentBoard = Utils.getCurrentBoard();
|
||||
if (!currentBoard)
|
||||
return HTML.Raw(sanitizeHTML(content));
|
||||
return HTML.Raw(sanitizeHTML(content, { stripLinks }));
|
||||
const knowedUsers = [...new Set([...currentBoard.members
|
||||
.filter(member => member.isActive)
|
||||
.map(member => {
|
||||
@@ -440,7 +459,7 @@ Blaze.Template.registerHelper(
|
||||
content = content.replace(fullMention, Blaze.toHTML(link));
|
||||
}
|
||||
|
||||
return HTML.Raw(sanitizeHTML(content));
|
||||
return HTML.Raw(sanitizeHTML(content, { stripLinks }));
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -473,3 +492,17 @@ Template.viewer.events({
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
// Admin Panel / Features / Security: keep the wekan-markdown package's
|
||||
// "show all code as plain text" flag in sync with the alwaysShowCodeAsText setting.
|
||||
// The package cannot import app code, so we push the setting into the reactive flag
|
||||
// it exposes on the exported Markdown object; the markdown helper reads it reactively
|
||||
// and shows the raw source (escaped, non-clickable, non-running) when enabled.
|
||||
Meteor.startup(() => {
|
||||
Tracker.autorun(() => {
|
||||
const setting = ReactiveCache.getCurrentSetting();
|
||||
if (typeof Markdown !== 'undefined' && Markdown.alwaysShowCodeAsText) {
|
||||
Markdown.alwaysShowCodeAsText.set(!!(setting && setting.alwaysShowCodeAsText));
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -290,15 +290,19 @@ body:not(.board-view) #header #header-main-bar h1 {
|
||||
}
|
||||
|
||||
/* Zoom Controls in Header */
|
||||
/* #6465: compact fixed-pixel pill. The vh/vw padding+shadow made the pill
|
||||
taller than the 28px overflow-hidden quick-access row, so it rendered cut
|
||||
off at every window size. */
|
||||
#header-quick-access .zoom-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5vw;
|
||||
gap: 4px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
padding: 0.5vh 1vw;
|
||||
border-radius: 0.5vw;
|
||||
box-shadow: 0 0.2vh 0.5vh rgba(0,0,0,0.1);
|
||||
margin: 0 1vw;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
||||
margin: 0 8px;
|
||||
max-height: 24px;
|
||||
float: inline-start;
|
||||
}
|
||||
|
||||
|
||||
@@ -157,8 +157,14 @@ input,
|
||||
select,
|
||||
textarea,
|
||||
button {
|
||||
font: clamp(14px, 2.5vw, 18px) Roboto, Poppins, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
line-height: 1.4;
|
||||
/* #6465: back to the WeKan 6.09 desktop density. The clamp() introduced in
|
||||
v7.98 (20e9cf114) and raised in v8.02 (67b078b80) resolved to 18px on any
|
||||
window wider than 720px — +28.5% on EVERY font, input and button versus
|
||||
6.09's 14px — which is the "everything is way too big" regression. Mobile
|
||||
readability is handled by the mobile media queries, not by inflating the
|
||||
desktop base font. */
|
||||
font: 14px Roboto, Poppins, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
line-height: 18px;
|
||||
color: #4d4d4d;
|
||||
/* Improve text rendering */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
@@ -217,8 +223,10 @@ body.mobile-mode #content {
|
||||
margin-top: 30vh;
|
||||
}
|
||||
#content > .wrapper {
|
||||
margin-top: 1vh;
|
||||
padding: 2vh 2vw;
|
||||
/* #6465: 6.09 values; 2vh/2vw padding was ~21x38px on FullHD — the huge
|
||||
empty header band on the All Boards page. */
|
||||
margin-top: 10px;
|
||||
padding: 15px;
|
||||
}
|
||||
#modal {
|
||||
position: absolute;
|
||||
@@ -264,13 +272,15 @@ body.mobile-mode #content {
|
||||
float: inline-end;
|
||||
font-size: clamp(18px, 4vw, 24px);
|
||||
}
|
||||
/* #6465: heading sizes back to the 6.09 values (22/18/16px) — the vw clamps
|
||||
resolved to 24/20/18px on desktop and compounded the density regression. */
|
||||
h1 {
|
||||
font-size: clamp(18px, 4vw, 24px);
|
||||
font-size: 22px;
|
||||
line-height: 1.2em;
|
||||
margin: 0 0 1vh;
|
||||
}
|
||||
h2 {
|
||||
font-size: clamp(16px, 3.5vw, 20px);
|
||||
font-size: 18px;
|
||||
line-height: 1.2em;
|
||||
margin: 0 0 0.8vh;
|
||||
}
|
||||
@@ -278,7 +288,7 @@ h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: clamp(14px, 3vw, 18px);
|
||||
font-size: 16px;
|
||||
line-height: 1.25em;
|
||||
margin: 0 0 0.6vh;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,10 @@ Template.userFormsLayout.onCreated(function () {
|
||||
Meteor.call('isOidcRedirectionEnabled', (_, result) => {
|
||||
if (result) {
|
||||
AccountsTemplates.options.socialLoginStyle = 'redirect';
|
||||
options = {
|
||||
// #5695: this is an ES module, so the body runs in strict mode and
|
||||
// the previous undeclared `options = {...}` assignment threw a
|
||||
// ReferenceError, breaking the OIDC_REDIRECTION_ENABLED auto-login.
|
||||
const options = {
|
||||
loginStyle: AccountsTemplates.options.socialLoginStyle,
|
||||
};
|
||||
Meteor.loginWithOidc(options);
|
||||
|
||||
@@ -134,7 +134,11 @@ Template.boardActions.events({
|
||||
// documents land in minimongo limbo when the wizard subscription stops.
|
||||
Meteor.call('rules.createRule', boardId, ruleName, trigger, {
|
||||
actionType,
|
||||
listTitle: '*',
|
||||
// #6472: was `listTitle: '*'` since the original rules implementation,
|
||||
// but performAction reads action.listName/action.swimlaneName — so every
|
||||
// generic "move to top/bottom" rule created by this wizard did nothing.
|
||||
listName: '*',
|
||||
swimlaneName: '*',
|
||||
boardId,
|
||||
desc,
|
||||
});
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { TAPi18n } from '/imports/i18n';
|
||||
import Papa from 'papaparse';
|
||||
import Actions from '/models/actions';
|
||||
import Rules from '/models/rules';
|
||||
import Triggers from '/models/triggers';
|
||||
|
||||
const RULES_FORMAT = 'wekan-rules-1.0.0';
|
||||
const STRIP_FIELDS = ['_id', 'boardId', 'createdAt', 'modifiedAt', 'updatedAt'];
|
||||
@@ -33,14 +30,43 @@ function collectBoardRules(boardId) {
|
||||
.filter(Boolean);
|
||||
}
|
||||
|
||||
// #6472: the trigger matcher (server/rulesHelper.js buildMatchingFieldsMap)
|
||||
// queries every matching field of the trigger type with {$in: [value, '*']} —
|
||||
// a trigger DOCUMENT that lacks one of those fields can never match. Hand-
|
||||
// written or third-party JSON often omits fields like userId, so default every
|
||||
// known matching field to the '*' wildcard when absent. Extra fields on
|
||||
// trigger types that do not use them are harmless (never queried).
|
||||
const TRIGGER_MATCHING_FIELDS = [
|
||||
'userId', 'username', 'cardTitle', 'listName', 'oldListName',
|
||||
'swimlaneName', 'checklistName', 'checklistItemName', 'labelId',
|
||||
'attachmentName',
|
||||
];
|
||||
|
||||
function normalizeTrigger(trigger) {
|
||||
const out = { ...trigger };
|
||||
TRIGGER_MATCHING_FIELDS.forEach(f => {
|
||||
if (out[f] === undefined || out[f] === null || out[f] === '') out[f] = '*';
|
||||
});
|
||||
return out;
|
||||
}
|
||||
|
||||
// Insert an array of {title, trigger, action} onto the given target board.
|
||||
function importRules(rulesArray, boardId) {
|
||||
let count = 0;
|
||||
(rulesArray || []).forEach(entry => {
|
||||
if (!entry || !entry.trigger || !entry.action) return;
|
||||
const triggerId = Triggers.insert({ ...stripDoc(entry.trigger), boardId });
|
||||
const actionId = Actions.insert({ ...stripDoc(entry.action), boardId });
|
||||
Rules.insert({ title: entry.title || 'Imported rule', triggerId, actionId, boardId });
|
||||
// #6472: create via the rules.createRule server method (like the rules
|
||||
// wizard since #5536) instead of three optimistic client inserts — those
|
||||
// are rejected by the board-admin-only allow() rules for non-admins and
|
||||
// land in minimongo limbo: the imported rule LOOKS created but never
|
||||
// exists on the server, so it silently does nothing until it vanishes.
|
||||
Meteor.call(
|
||||
'rules.createRule',
|
||||
boardId,
|
||||
entry.title || 'Imported rule',
|
||||
normalizeTrigger(stripDoc(entry.trigger)),
|
||||
stripDoc(entry.action),
|
||||
);
|
||||
count += 1;
|
||||
});
|
||||
return count;
|
||||
|
||||
@@ -106,6 +106,9 @@ template(name="boardCardTitlePopup")
|
||||
form
|
||||
label
|
||||
| {{_ 'boardCardTitlePopup-title'}}
|
||||
input.js-card-filter-name(type="text" value=title autofocus)
|
||||
//- #2345: cardTitleFilter is passed as the popup's data context by the
|
||||
//- js-open-card-title-popup handler so reopening the popup shows the
|
||||
//- filter that is already set (it used to always render empty).
|
||||
input.js-card-filter-name(type="text" value=cardTitleFilter autofocus)
|
||||
input.js-card-filter-button.primary.wide(type="submit" value="{{_ 'set-filter'}}")
|
||||
|
||||
@@ -1,4 +1,31 @@
|
||||
import { TAPi18n } from '/imports/i18n';
|
||||
import { Utils } from '/client/lib/utils';
|
||||
import {
|
||||
cardTitleFilterOrWildcard,
|
||||
appendCardTitleFilterToDesc,
|
||||
} from '/models/lib/ruleCardTitleFilter';
|
||||
|
||||
// #2345: fallback reference to the live boardTriggers template instance, so the
|
||||
// card-title-filter popup can still store its value even if the Blaze
|
||||
// data-context walk in Popup.getOpenerComponent() does not resolve (same
|
||||
// module-level pattern as cardActions.js' sharedCardColorButtonValue).
|
||||
let activeBoardTriggersTemplate = null;
|
||||
|
||||
// #2345: the trigger description is assembled from the wizard's DOM text, which
|
||||
// never includes the card-title filter (it lives in a popup). Append it so the
|
||||
// created rule's details actually show the filter.
|
||||
function descWithCardTitleFilter(desc, cardTitle) {
|
||||
let label = 'card title filter';
|
||||
try {
|
||||
const translated = TAPi18n.__('boardCardTitlePopup-title');
|
||||
if (translated && translated !== 'boardCardTitlePopup-title') {
|
||||
label = translated.toLowerCase();
|
||||
}
|
||||
} catch (e) {
|
||||
// keep the English fallback label
|
||||
}
|
||||
return appendCardTitleFilterToDesc(desc, cardTitle, label);
|
||||
}
|
||||
|
||||
Template.boardTriggers.onCreated(function () {
|
||||
this.provaVar = new ReactiveVar('');
|
||||
@@ -7,6 +34,13 @@ Template.boardTriggers.onCreated(function () {
|
||||
this.setNameFilter = (name) => {
|
||||
this.cardTitleFilters[this.currentPopupTriggerId] = name;
|
||||
};
|
||||
activeBoardTriggersTemplate = this;
|
||||
});
|
||||
|
||||
Template.boardTriggers.onDestroyed(function () {
|
||||
if (activeBoardTriggersTemplate === this) {
|
||||
activeBoardTriggersTemplate = null;
|
||||
}
|
||||
});
|
||||
|
||||
Template.boardTriggers.events({
|
||||
@@ -14,16 +48,24 @@ Template.boardTriggers.events({
|
||||
const funct = Popup.open('boardCardTitle');
|
||||
const divId = $(event.currentTarget.parentNode.parentNode).attr('id');
|
||||
tpl.currentPopupTriggerId = divId;
|
||||
funct.call(this, event);
|
||||
// #2345: hand the already-stored filter to the popup as its data context so
|
||||
// reopening it shows the current value instead of an empty input.
|
||||
funct.call({ cardTitleFilter: tpl.cardTitleFilters[divId] || '' }, event);
|
||||
},
|
||||
'click .js-add-create-trigger'(event, tpl) {
|
||||
const desc = Utils.getTriggerActionDesc(event, tpl);
|
||||
const datas = Template.currentData();
|
||||
const listName = tpl.find('#create-list-name').value;
|
||||
const swimlaneName = tpl.find('#create-swimlane-name').value;
|
||||
const boardId = Session.get('currentBoard');
|
||||
const divId = $(event.currentTarget.parentNode).attr('id');
|
||||
const cardTitle = tpl.cardTitleFilters[divId];
|
||||
// #2345: an unset/empty filter is stored as the '*' wildcard so the trigger
|
||||
// document always carries a cardTitle field (the server matches with
|
||||
// cardTitle: { $in: [...] }, which a document missing the field never satisfies).
|
||||
const cardTitle = cardTitleFilterOrWildcard(tpl.cardTitleFilters[divId]);
|
||||
const desc = descWithCardTitleFilter(
|
||||
Utils.getTriggerActionDesc(event, tpl),
|
||||
cardTitle,
|
||||
);
|
||||
// move to generic funciont
|
||||
datas.triggerVar.set({
|
||||
activityType: 'createCard',
|
||||
@@ -36,13 +78,16 @@ Template.boardTriggers.events({
|
||||
},
|
||||
'click .js-add-moved-trigger'(event, tpl) {
|
||||
const datas = Template.currentData();
|
||||
const desc = Utils.getTriggerActionDesc(event, tpl);
|
||||
const swimlaneName = tpl.find('#create-swimlane-name-2').value;
|
||||
const actionSelected = tpl.find('#move-action').value;
|
||||
const listName = tpl.find('#move-list-name').value;
|
||||
const boardId = Session.get('currentBoard');
|
||||
const divId = $(event.currentTarget.parentNode).attr('id');
|
||||
const cardTitle = tpl.cardTitleFilters[divId];
|
||||
const cardTitle = cardTitleFilterOrWildcard(tpl.cardTitleFilters[divId]);
|
||||
const desc = descWithCardTitleFilter(
|
||||
Utils.getTriggerActionDesc(event, tpl),
|
||||
cardTitle,
|
||||
);
|
||||
if (actionSelected === 'moved-to') {
|
||||
datas.triggerVar.set({
|
||||
activityType: 'moveCard',
|
||||
@@ -68,12 +113,22 @@ Template.boardTriggers.events({
|
||||
},
|
||||
'click .js-add-gen-moved-trigger'(event, tpl) {
|
||||
const datas = Template.currentData();
|
||||
const desc = Utils.getTriggerActionDesc(event, tpl);
|
||||
const boardId = Session.get('currentBoard');
|
||||
const divId = $(event.currentTarget.parentNode).attr('id');
|
||||
// #2345: this trigger ignored the card-title-filter popup entirely AND
|
||||
// stored no cardTitle field at all — and since the server matches triggers
|
||||
// with cardTitle: { $in: [...] }, a moveCard trigger without the field
|
||||
// never fired for any card. Store the filter (or the '*' wildcard).
|
||||
const cardTitle = cardTitleFilterOrWildcard(tpl.cardTitleFilters[divId]);
|
||||
const desc = descWithCardTitleFilter(
|
||||
Utils.getTriggerActionDesc(event, tpl),
|
||||
cardTitle,
|
||||
);
|
||||
|
||||
datas.triggerVar.set({
|
||||
activityType: 'moveCard',
|
||||
boardId,
|
||||
cardTitle,
|
||||
swimlaneName: '*',
|
||||
listName: '*',
|
||||
oldListName: '*',
|
||||
@@ -82,13 +137,20 @@ Template.boardTriggers.events({
|
||||
},
|
||||
'click .js-add-arch-trigger'(event, tpl) {
|
||||
const datas = Template.currentData();
|
||||
const desc = Utils.getTriggerActionDesc(event, tpl);
|
||||
const actionSelected = tpl.find('#arch-action').value;
|
||||
const boardId = Session.get('currentBoard');
|
||||
const divId = $(event.currentTarget.parentNode).attr('id');
|
||||
// #2345: the archive/unarchive trigger also dropped the card-title filter.
|
||||
const cardTitle = cardTitleFilterOrWildcard(tpl.cardTitleFilters[divId]);
|
||||
const desc = descWithCardTitleFilter(
|
||||
Utils.getTriggerActionDesc(event, tpl),
|
||||
cardTitle,
|
||||
);
|
||||
if (actionSelected === 'archived') {
|
||||
datas.triggerVar.set({
|
||||
activityType: 'archivedCard',
|
||||
boardId,
|
||||
cardTitle,
|
||||
desc,
|
||||
});
|
||||
}
|
||||
@@ -96,6 +158,7 @@ Template.boardTriggers.events({
|
||||
datas.triggerVar.set({
|
||||
activityType: 'restoredCard',
|
||||
boardId,
|
||||
cardTitle,
|
||||
desc,
|
||||
});
|
||||
}
|
||||
@@ -104,15 +167,27 @@ Template.boardTriggers.events({
|
||||
|
||||
Template.boardCardTitlePopup.events({
|
||||
submit(event) {
|
||||
// #2345: preventDefault FIRST — if anything below throws, a real form
|
||||
// submit would reload the page and silently drop the filter.
|
||||
event.preventDefault();
|
||||
const title = $(event.target)
|
||||
.find('.js-card-filter-name')
|
||||
.val()
|
||||
.trim();
|
||||
const opener = Popup.getOpenerComponent();
|
||||
if (opener?.setNameFilter) {
|
||||
let opener = null;
|
||||
try {
|
||||
opener = Popup.getOpenerComponent();
|
||||
} catch (e) {
|
||||
opener = null;
|
||||
}
|
||||
if (!opener || typeof opener.setNameFilter !== 'function') {
|
||||
// #2345: fall back to the live boardTriggers instance when the Blaze
|
||||
// data-context walk cannot resolve the opener.
|
||||
opener = activeBoardTriggersTemplate;
|
||||
}
|
||||
if (opener && typeof opener.setNameFilter === 'function') {
|
||||
opener.setNameFilter(title);
|
||||
}
|
||||
event.preventDefault();
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
@@ -16,6 +16,16 @@ template(name="adminFeatures")
|
||||
span.emoji-icon
|
||||
i.fa.fa-tachometer
|
||||
| {{_ 'features-performance'}}
|
||||
li(class="{{#if isSecurityActive}}active{{/if}}")
|
||||
a.js-features-menu(data-id="security")
|
||||
span.emoji-icon
|
||||
i.fa.fa-shield
|
||||
| {{_ 'features-security'}}
|
||||
li(class="{{#if isNotificationsActive}}active{{/if}}")
|
||||
a.js-features-menu(data-id="notifications")
|
||||
span.emoji-icon
|
||||
i.fa.fa-bell
|
||||
| {{_ 'features-notifications'}}
|
||||
.main-body
|
||||
if isPerformanceActive
|
||||
ul.setting-detail
|
||||
@@ -30,3 +40,62 @@ template(name="adminFeatures")
|
||||
option(value="{{value}}") {{_ label}}
|
||||
p.description {{_ 'cards-loading-description'}}
|
||||
p.description {{_ 'cards-loading-lazy-note'}}
|
||||
if isSecurityActive
|
||||
ul.setting-detail
|
||||
li
|
||||
a.flex.js-toggle-render-links-as-plain-text
|
||||
.materialCheckBox(class="{{#if renderLinksAsPlainText}}is-checked{{/if}}")
|
||||
span {{_ 'render-links-as-plain-text'}}
|
||||
p.description {{_ 'render-links-as-plain-text-description'}}
|
||||
li
|
||||
a.flex.js-toggle-always-show-code-as-text
|
||||
.materialCheckBox(class="{{#if alwaysShowCodeAsText}}is-checked{{/if}}")
|
||||
span {{_ 'always-show-code-as-text'}}
|
||||
p.description {{_ 'always-show-code-as-text-description'}}
|
||||
li
|
||||
a.flex.js-toggle-disable-all-import
|
||||
.materialCheckBox(class="{{#if disableAllImport}}is-checked{{/if}}")
|
||||
span {{_ 'disable-all-import'}}
|
||||
p.description {{_ 'disable-all-import-description'}}
|
||||
li
|
||||
a.flex.js-toggle-disable-all-export
|
||||
.materialCheckBox(class="{{#if disableAllExport}}is-checked{{/if}}")
|
||||
span {{_ 'disable-all-export'}}
|
||||
p.description {{_ 'disable-all-export-description'}}
|
||||
li
|
||||
a.flex.js-toggle-disable-import-avatars
|
||||
.materialCheckBox(class="{{#if disableImportAvatars}}is-checked{{/if}}")
|
||||
span {{_ 'disable-import-avatars'}}
|
||||
p.description {{_ 'disable-import-avatars-description'}}
|
||||
li
|
||||
a.flex.js-toggle-disable-export-avatars
|
||||
.materialCheckBox(class="{{#if disableExportAvatars}}is-checked{{/if}}")
|
||||
span {{_ 'disable-export-avatars'}}
|
||||
p.description {{_ 'disable-export-avatars-description'}}
|
||||
li
|
||||
a.flex.js-toggle-anonymize-import-users
|
||||
.materialCheckBox(class="{{#if anonymizeImportUsers}}is-checked{{/if}}")
|
||||
span {{_ 'anonymize-import-users'}}
|
||||
p.description {{_ 'anonymize-import-users-description'}}
|
||||
li
|
||||
a.flex.js-toggle-anonymize-export-users
|
||||
.materialCheckBox(class="{{#if anonymizeExportUsers}}is-checked{{/if}}")
|
||||
span {{_ 'anonymize-export-users'}}
|
||||
p.description {{_ 'anonymize-export-users-description'}}
|
||||
if isNotificationsActive
|
||||
ul.setting-detail
|
||||
li
|
||||
a.flex.js-toggle-disable-activities
|
||||
.materialCheckBox(class="{{#if disableActivities}}is-checked{{/if}}")
|
||||
span {{_ 'disable-activities'}}
|
||||
p.description {{_ 'disable-activities-description'}}
|
||||
li
|
||||
a.flex.js-toggle-disable-notifications
|
||||
.materialCheckBox(class="{{#if disableNotifications}}is-checked{{/if}}")
|
||||
span {{_ 'disable-notifications'}}
|
||||
p.description {{_ 'disable-notifications-description'}}
|
||||
li
|
||||
a.flex.js-toggle-disable-watch
|
||||
.materialCheckBox(class="{{#if disableWatch}}is-checked{{/if}}")
|
||||
span {{_ 'disable-watch'}}
|
||||
p.description {{_ 'disable-watch-description'}}
|
||||
@@ -15,6 +15,12 @@ Template.adminFeatures.helpers({
|
||||
isPerformanceActive() {
|
||||
return Template.instance().activePane.get() === 'performance';
|
||||
},
|
||||
isSecurityActive() {
|
||||
return Template.instance().activePane.get() === 'security';
|
||||
},
|
||||
isNotificationsActive() {
|
||||
return Template.instance().activePane.get() === 'notifications';
|
||||
},
|
||||
cardsLoadingOptions() {
|
||||
const current = (ReactiveCache.getCurrentSetting() || {}).cardsLoading || 'all';
|
||||
return [
|
||||
@@ -22,8 +28,49 @@ Template.adminFeatures.helpers({
|
||||
{ value: 'lazy', label: 'cards-loading-lazy', selected: current === 'lazy' },
|
||||
];
|
||||
},
|
||||
renderLinksAsPlainText() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).renderLinksAsPlainText;
|
||||
},
|
||||
alwaysShowCodeAsText() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).alwaysShowCodeAsText;
|
||||
},
|
||||
disableAllImport() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).disableAllImport;
|
||||
},
|
||||
disableAllExport() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).disableAllExport;
|
||||
},
|
||||
disableImportAvatars() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).disableImportAvatars;
|
||||
},
|
||||
disableExportAvatars() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).disableExportAvatars;
|
||||
},
|
||||
anonymizeImportUsers() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).anonymizeImportUsers;
|
||||
},
|
||||
anonymizeExportUsers() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).anonymizeExportUsers;
|
||||
},
|
||||
disableActivities() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).disableActivities;
|
||||
},
|
||||
disableNotifications() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).disableNotifications;
|
||||
},
|
||||
disableWatch() {
|
||||
return (ReactiveCache.getCurrentSetting() || {}).disableWatch;
|
||||
},
|
||||
});
|
||||
|
||||
// Toggle one boolean setting field, saving immediately.
|
||||
function toggleSettingField(field) {
|
||||
const setting = ReactiveCache.getCurrentSetting();
|
||||
if (setting) {
|
||||
Settings.update(setting._id, { $set: { [field]: !setting[field] } });
|
||||
}
|
||||
}
|
||||
|
||||
Template.adminFeatures.events({
|
||||
'click .js-features-menu'(event, tpl) {
|
||||
tpl.activePane.set(event.currentTarget.dataset.id);
|
||||
@@ -35,4 +82,37 @@ Template.adminFeatures.events({
|
||||
Settings.update(setting._id, { $set: { cardsLoading: value } });
|
||||
}
|
||||
},
|
||||
'click .js-toggle-render-links-as-plain-text'() {
|
||||
toggleSettingField('renderLinksAsPlainText');
|
||||
},
|
||||
'click .js-toggle-always-show-code-as-text'() {
|
||||
toggleSettingField('alwaysShowCodeAsText');
|
||||
},
|
||||
'click .js-toggle-disable-all-import'() {
|
||||
toggleSettingField('disableAllImport');
|
||||
},
|
||||
'click .js-toggle-disable-all-export'() {
|
||||
toggleSettingField('disableAllExport');
|
||||
},
|
||||
'click .js-toggle-disable-import-avatars'() {
|
||||
toggleSettingField('disableImportAvatars');
|
||||
},
|
||||
'click .js-toggle-disable-export-avatars'() {
|
||||
toggleSettingField('disableExportAvatars');
|
||||
},
|
||||
'click .js-toggle-anonymize-import-users'() {
|
||||
toggleSettingField('anonymizeImportUsers');
|
||||
},
|
||||
'click .js-toggle-anonymize-export-users'() {
|
||||
toggleSettingField('anonymizeExportUsers');
|
||||
},
|
||||
'click .js-toggle-disable-activities'() {
|
||||
toggleSettingField('disableActivities');
|
||||
},
|
||||
'click .js-toggle-disable-notifications'() {
|
||||
toggleSettingField('disableNotifications');
|
||||
},
|
||||
'click .js-toggle-disable-watch'() {
|
||||
toggleSettingField('disableWatch');
|
||||
},
|
||||
});
|
||||
@@ -31,6 +31,11 @@ template(name="adminReports")
|
||||
i.fa.fa-id-card-o
|
||||
| {{_ 'cardsReportTitle'}}
|
||||
|
||||
li
|
||||
a.js-report-impersonation(data-id="report-impersonation")
|
||||
i.fa.fa-user-secret
|
||||
| {{_ 'impersonationReportTitle'}}
|
||||
|
||||
.main-body
|
||||
if loading.get
|
||||
+spinner
|
||||
@@ -44,6 +49,8 @@ template(name="adminReports")
|
||||
+boardsReport(currentPage=boardsCurrentPage totalPages=boardsTotalPages hasPrevPage=hasBoardsPrevPage hasNextPage=hasBoardsNextPage)
|
||||
else if showCardsReport.get
|
||||
+cardsReport(currentPage=cardsCurrentPage totalPages=cardsTotalPages hasPrevPage=hasCardsPrevPage hasNextPage=hasCardsNextPage)
|
||||
else if showImpersonationReport.get
|
||||
+impersonationReport(currentPage=impersonationCurrentPage totalPages=impersonationTotalPages hasPrevPage=hasImpersonationPrevPage hasNextPage=hasImpersonationNextPage)
|
||||
|
||||
|
||||
template(name="brokenCardsReport")
|
||||
@@ -158,6 +165,43 @@ template(name="cardsReport")
|
||||
else
|
||||
div {{_ 'no-results' }}
|
||||
|
||||
template(name="impersonationReport")
|
||||
h1 {{_ 'impersonationReportTitle'}}
|
||||
.admin-report-search
|
||||
input.js-impersonation-search-input(type="text" placeholder="{{_ 'search'}}")
|
||||
button.js-impersonation-search-button
|
||||
i.fa.fa-search
|
||||
| {{_ 'search'}}
|
||||
.admin-report-pagination
|
||||
button.js-impersonation-prev-page(class="{{#if hasPrevPage}}{{else}}disabled{{/if}}")
|
||||
| <
|
||||
span.admin-report-page-info {{currentPage}} / {{totalPages}}
|
||||
button.js-impersonation-next-page(class="{{#if hasNextPage}}{{else}}disabled{{/if}}")
|
||||
| >
|
||||
if resultsCount
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
th {{_ 'date'}}
|
||||
th {{_ 'impersonation-admin'}}
|
||||
th {{_ 'impersonation-user'}}
|
||||
th {{_ 'board'}}
|
||||
th {{_ 'reason'}}
|
||||
each row in results
|
||||
tbody
|
||||
tr
|
||||
td {{ formatDate row.createdAt }}
|
||||
td
|
||||
if row.adminId
|
||||
a.edit-user.js-impersonation-edit-user(data-user-id="{{ row.adminId }}") {{ userName row.adminId }}
|
||||
td
|
||||
if row.userId
|
||||
a.edit-user.js-impersonation-edit-user(data-user-id="{{ row.userId }}") {{ userName row.userId }}
|
||||
td {{ row.boardId }}
|
||||
td {{ row.reason }}
|
||||
else
|
||||
div {{_ 'no-results' }}
|
||||
|
||||
template(name="boardsReport")
|
||||
h1 {{_ 'boardsReportTitle'}}
|
||||
.admin-report-search
|
||||
|
||||
@@ -6,6 +6,7 @@ import SessionData from '/models/usersessiondata';
|
||||
import Boards from '/models/boards';
|
||||
import Cards from '/models/cards';
|
||||
import Rules from '/models/rules';
|
||||
import ImpersonatedUsers from '/models/impersonatedUsers';
|
||||
const { filesize } = require('filesize');
|
||||
|
||||
// --- Shared helper functions (formerly AdminReport base class methods) ---
|
||||
@@ -60,6 +61,7 @@ function reportConfig(tmpl) {
|
||||
'report-rules': { page: tmpl.rulesPage, count: tmpl.rulesCount, search: tmpl.rulesSearch, pub: 'rulesReport', countMethod: 'getRulesReportCount' },
|
||||
'report-boards': { page: tmpl.boardsPage, count: tmpl.boardsCount, search: tmpl.boardsSearch, pub: 'boardsReport', countMethod: 'getBoardsReportCount' },
|
||||
'report-cards': { page: tmpl.cardsPage, count: tmpl.cardsCount, search: tmpl.cardsSearch, pub: 'cardsReport', countMethod: 'getCardsReportCount' },
|
||||
'report-impersonation': { page: tmpl.impersonationPage, count: tmpl.impersonationCount, search: tmpl.impersonationSearch, pub: 'impersonationReport', countMethod: 'getImpersonationReportCount' },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -71,6 +73,7 @@ Template.adminReports.onCreated(function () {
|
||||
this.showRulesReport = new ReactiveVar(false);
|
||||
this.showCardsReport = new ReactiveVar(false);
|
||||
this.showBoardsReport = new ReactiveVar(false);
|
||||
this.showImpersonationReport = new ReactiveVar(false);
|
||||
this.sessionId = SessionData.getSessionId();
|
||||
this.error = new ReactiveVar('');
|
||||
this.loading = new ReactiveVar(false);
|
||||
@@ -81,15 +84,18 @@ Template.adminReports.onCreated(function () {
|
||||
this.rulesPage = new ReactiveVar(1);
|
||||
this.boardsPage = new ReactiveVar(1);
|
||||
this.cardsPage = new ReactiveVar(1);
|
||||
this.impersonationPage = new ReactiveVar(1);
|
||||
this.filesCount = new ReactiveVar(0);
|
||||
this.rulesCount = new ReactiveVar(0);
|
||||
this.boardsCount = new ReactiveVar(0);
|
||||
this.cardsCount = new ReactiveVar(0);
|
||||
this.impersonationCount = new ReactiveVar(0);
|
||||
// Current search term per report (empty string = no filter).
|
||||
this.filesSearch = new ReactiveVar('');
|
||||
this.rulesSearch = new ReactiveVar('');
|
||||
this.boardsSearch = new ReactiveVar('');
|
||||
this.cardsSearch = new ReactiveVar('');
|
||||
this.impersonationSearch = new ReactiveVar('');
|
||||
|
||||
// (Re)subscribe the given report for its current page and refresh its total
|
||||
// count. Server-side search + limit/skip means only the matching page ever
|
||||
@@ -149,6 +155,9 @@ Template.adminReports.helpers({
|
||||
showBoardsReport() {
|
||||
return Template.instance().showBoardsReport;
|
||||
},
|
||||
showImpersonationReport() {
|
||||
return Template.instance().showImpersonationReport;
|
||||
},
|
||||
loading() {
|
||||
return Template.instance().loading;
|
||||
},
|
||||
@@ -185,6 +194,14 @@ Template.adminReports.helpers({
|
||||
const tpl = Template.instance();
|
||||
return tpl.cardsPage.get() < Math.max(1, Math.ceil((tpl.cardsCount.get() || 0) / REPORTS_PER_PAGE));
|
||||
},
|
||||
|
||||
impersonationCurrentPage() { return Template.instance().impersonationPage.get(); },
|
||||
impersonationTotalPages() { return Math.max(1, Math.ceil((Template.instance().impersonationCount.get() || 0) / REPORTS_PER_PAGE)); },
|
||||
hasImpersonationPrevPage() { return Template.instance().impersonationPage.get() > 1; },
|
||||
hasImpersonationNextPage() {
|
||||
const tpl = Template.instance();
|
||||
return tpl.impersonationPage.get() < Math.max(1, Math.ceil((tpl.impersonationCount.get() || 0) / REPORTS_PER_PAGE));
|
||||
},
|
||||
});
|
||||
|
||||
Template.adminReports.events({
|
||||
@@ -203,6 +220,9 @@ Template.adminReports.events({
|
||||
'click a.js-report-boards'(event) {
|
||||
switchMenu(event, Template.instance());
|
||||
},
|
||||
'click a.js-report-impersonation'(event) {
|
||||
switchMenu(event, Template.instance());
|
||||
},
|
||||
|
||||
// --- Pagination controls (buttons live inside the report sub-templates,
|
||||
// their clicks bubble up to this parent template) ---
|
||||
@@ -214,6 +234,8 @@ Template.adminReports.events({
|
||||
'click .js-boards-next-page'(event, tmpl) { goNextPage(event, tmpl, 'report-boards'); },
|
||||
'click .js-cards-prev-page'(event, tmpl) { goPrevPage(event, tmpl, 'report-cards'); },
|
||||
'click .js-cards-next-page'(event, tmpl) { goNextPage(event, tmpl, 'report-cards'); },
|
||||
'click .js-impersonation-prev-page'(event, tmpl) { goPrevPage(event, tmpl, 'report-impersonation'); },
|
||||
'click .js-impersonation-next-page'(event, tmpl) { goNextPage(event, tmpl, 'report-impersonation'); },
|
||||
|
||||
// --- Search (one input + button per report, mirrors the People panel) ---
|
||||
'click .js-files-search-button'(event, tmpl) { runSearch(tmpl, 'report-files', '.js-files-search-input'); },
|
||||
@@ -224,6 +246,8 @@ Template.adminReports.events({
|
||||
'keydown .js-boards-search-input'(event, tmpl) { if (event.keyCode === 13 && !event.shiftKey) runSearch(tmpl, 'report-boards', '.js-boards-search-input'); },
|
||||
'click .js-cards-search-button'(event, tmpl) { runSearch(tmpl, 'report-cards', '.js-cards-search-input'); },
|
||||
'keydown .js-cards-search-input'(event, tmpl) { if (event.keyCode === 13 && !event.shiftKey) runSearch(tmpl, 'report-cards', '.js-cards-search-input'); },
|
||||
'click .js-impersonation-search-button'(event, tmpl) { runSearch(tmpl, 'report-impersonation', '.js-impersonation-search-input'); },
|
||||
'keydown .js-impersonation-search-input'(event, tmpl) { if (event.keyCode === 13 && !event.shiftKey) runSearch(tmpl, 'report-impersonation', '.js-impersonation-search-input'); },
|
||||
});
|
||||
|
||||
function goPrevPage(event, tmpl, reportId) {
|
||||
@@ -267,6 +291,7 @@ function switchMenu(event, tmpl) {
|
||||
tmpl.showRulesReport.set(false);
|
||||
tmpl.showBoardsReport.set(false);
|
||||
tmpl.showCardsReport.set(false);
|
||||
tmpl.showImpersonationReport.set(false);
|
||||
if (tmpl.subscription) {
|
||||
tmpl.subscription.stop();
|
||||
}
|
||||
@@ -305,6 +330,11 @@ function switchMenu(event, tmpl) {
|
||||
tmpl.cardsPage.set(1);
|
||||
tmpl.cardsSearch.set('');
|
||||
tmpl.loadReport('report-cards');
|
||||
} else if ('report-impersonation' === targetID) {
|
||||
tmpl.showImpersonationReport.set(true);
|
||||
tmpl.impersonationPage.set(1);
|
||||
tmpl.impersonationSearch.set('');
|
||||
tmpl.loadReport('report-impersonation');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -418,6 +448,36 @@ Template.cardsReport.helpers({
|
||||
},
|
||||
});
|
||||
|
||||
// --- impersonationReport template ---
|
||||
|
||||
Template.impersonationReport.helpers({
|
||||
results() {
|
||||
// The publication already paginates + sorts newest-first; mirror that sort.
|
||||
return collectionResults(ImpersonatedUsers, { createdAt: -1 });
|
||||
},
|
||||
resultsCount() {
|
||||
return collectionResultsCount(ImpersonatedUsers);
|
||||
},
|
||||
userName(userId) {
|
||||
if (!userId) return '';
|
||||
return ReactiveCache.getUser(userId)?.username || userId;
|
||||
},
|
||||
formatDate(date) {
|
||||
return date ? new Date(date).toLocaleString() : '';
|
||||
},
|
||||
});
|
||||
|
||||
Template.impersonationReport.events({
|
||||
// Clicking a username opens the same "Edit user" popup as Admin Panel / People.
|
||||
'click .js-impersonation-edit-user'(event) {
|
||||
event.preventDefault();
|
||||
const userId = event.currentTarget.getAttribute('data-user-id');
|
||||
if (userId) {
|
||||
Popup.open('editUser').call({ userId }, event);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
// --- brokenCardsReport template ---
|
||||
|
||||
Template.brokenCardsReport.onCreated(function () {
|
||||
|
||||
@@ -234,6 +234,15 @@ Template.attachments.onCreated(function () {
|
||||
this.activeSection = new ReactiveVar('move');
|
||||
this.storageSettingsSubscription = Meteor.subscribe('attachmentStorageSettings');
|
||||
this.attachmentStorageSettings = new ReactiveVar(null);
|
||||
// #6473: the real storage paths only exist on the SERVER (WRITABLE_PATH is a
|
||||
// server environment variable — process.env in the browser never has it, so
|
||||
// computing the path client-side always showed the misleading "/data").
|
||||
this.storagePaths = new ReactiveVar(null);
|
||||
Meteor.call('getAttachmentStoragePaths', (err, paths) => {
|
||||
if (!err && paths) {
|
||||
this.storagePaths.set(paths);
|
||||
}
|
||||
});
|
||||
this.attachmentLimitUnits = new ReactiveVar({
|
||||
attachmentsUploadMaxBytes: 'mb',
|
||||
attachmentsDownloadMaxBytes: 'mb',
|
||||
@@ -537,16 +546,20 @@ Template.attachments.helpers({
|
||||
isS3Active() {
|
||||
return Template.instance().activeSection.get() === 's3';
|
||||
},
|
||||
// #6473: these paths come from the getAttachmentStoragePaths server method —
|
||||
// WRITABLE_PATH is a server-side environment variable, so reading
|
||||
// process.env here in the browser always produced the misleading "/data".
|
||||
filesystemPath() {
|
||||
return process.env.WRITABLE_PATH || '/data';
|
||||
const paths = Template.instance().storagePaths.get();
|
||||
return paths ? paths.writablePath : '';
|
||||
},
|
||||
attachmentsPath() {
|
||||
const writablePath = process.env.WRITABLE_PATH || '/data';
|
||||
return `${writablePath}/attachments`;
|
||||
const paths = Template.instance().storagePaths.get();
|
||||
return paths ? paths.attachments : '';
|
||||
},
|
||||
avatarsPath() {
|
||||
const writablePath = process.env.WRITABLE_PATH || '/data';
|
||||
return `${writablePath}/avatars`;
|
||||
const paths = Template.instance().storagePaths.get();
|
||||
return paths ? paths.avatars : '';
|
||||
},
|
||||
filesystemEnabled() {
|
||||
const tpl = Template.instance();
|
||||
|
||||
@@ -146,21 +146,27 @@ template(name="orgGeneral")
|
||||
th
|
||||
| {{_ 'org-shared-templates'}}
|
||||
br
|
||||
a.js-org-feature-all(href="#", data-feature="orgSharedTemplates", data-value="true") {{_ 'select-all'}}
|
||||
| /
|
||||
a.js-org-feature-all(href="#", data-feature="orgSharedTemplates", data-value="false") {{_ 'unselect-all'}}
|
||||
a.js-org-feature-all(href="#", data-feature="orgSharedTemplates", data-value="true", title="{{_ 'select-all'}}")
|
||||
i.fa.fa-check-square-o
|
||||
|
|
||||
a.js-org-feature-all(href="#", data-feature="orgSharedTemplates", data-value="false", title="{{_ 'unselect-all'}}")
|
||||
i.fa.fa-square-o
|
||||
th
|
||||
| {{_ 'org-propagate-members-to-boards'}}
|
||||
br
|
||||
a.js-org-feature-all(href="#", data-feature="orgPropagateMembersToBoards", data-value="true") {{_ 'select-all'}}
|
||||
| /
|
||||
a.js-org-feature-all(href="#", data-feature="orgPropagateMembersToBoards", data-value="false") {{_ 'unselect-all'}}
|
||||
a.js-org-feature-all(href="#", data-feature="orgPropagateMembersToBoards", data-value="true", title="{{_ 'select-all'}}")
|
||||
i.fa.fa-check-square-o
|
||||
|
|
||||
a.js-org-feature-all(href="#", data-feature="orgPropagateMembersToBoards", data-value="false", title="{{_ 'unselect-all'}}")
|
||||
i.fa.fa-square-o
|
||||
th
|
||||
| {{_ 'org-sync-members-from-auth'}}
|
||||
br
|
||||
a.js-org-feature-all(href="#", data-feature="orgSyncMembersFromAuth", data-value="true") {{_ 'select-all'}}
|
||||
| /
|
||||
a.js-org-feature-all(href="#", data-feature="orgSyncMembersFromAuth", data-value="false") {{_ 'unselect-all'}}
|
||||
a.js-org-feature-all(href="#", data-feature="orgSyncMembersFromAuth", data-value="true", title="{{_ 'select-all'}}")
|
||||
i.fa.fa-check-square-o
|
||||
|
|
||||
a.js-org-feature-all(href="#", data-feature="orgSyncMembersFromAuth", data-value="false", title="{{_ 'unselect-all'}}")
|
||||
i.fa.fa-square-o
|
||||
tbody
|
||||
tr
|
||||
each org in orgList
|
||||
@@ -187,21 +193,27 @@ template(name="teamGeneral")
|
||||
th
|
||||
| {{_ 'team-shared-templates'}}
|
||||
br
|
||||
a.js-team-feature-all(href="#", data-feature="teamSharedTemplates", data-value="true") {{_ 'select-all'}}
|
||||
| /
|
||||
a.js-team-feature-all(href="#", data-feature="teamSharedTemplates", data-value="false") {{_ 'unselect-all'}}
|
||||
a.js-team-feature-all(href="#", data-feature="teamSharedTemplates", data-value="true", title="{{_ 'select-all'}}")
|
||||
i.fa.fa-check-square-o
|
||||
|
|
||||
a.js-team-feature-all(href="#", data-feature="teamSharedTemplates", data-value="false", title="{{_ 'unselect-all'}}")
|
||||
i.fa.fa-square-o
|
||||
th
|
||||
| {{_ 'team-propagate-members-to-boards'}}
|
||||
br
|
||||
a.js-team-feature-all(href="#", data-feature="teamPropagateMembersToBoards", data-value="true") {{_ 'select-all'}}
|
||||
| /
|
||||
a.js-team-feature-all(href="#", data-feature="teamPropagateMembersToBoards", data-value="false") {{_ 'unselect-all'}}
|
||||
a.js-team-feature-all(href="#", data-feature="teamPropagateMembersToBoards", data-value="true", title="{{_ 'select-all'}}")
|
||||
i.fa.fa-check-square-o
|
||||
|
|
||||
a.js-team-feature-all(href="#", data-feature="teamPropagateMembersToBoards", data-value="false", title="{{_ 'unselect-all'}}")
|
||||
i.fa.fa-square-o
|
||||
th
|
||||
| {{_ 'team-sync-members-from-auth'}}
|
||||
br
|
||||
a.js-team-feature-all(href="#", data-feature="teamSyncMembersFromAuth", data-value="true") {{_ 'select-all'}}
|
||||
| /
|
||||
a.js-team-feature-all(href="#", data-feature="teamSyncMembersFromAuth", data-value="false") {{_ 'unselect-all'}}
|
||||
a.js-team-feature-all(href="#", data-feature="teamSyncMembersFromAuth", data-value="true", title="{{_ 'select-all'}}")
|
||||
i.fa.fa-check-square-o
|
||||
|
|
||||
a.js-team-feature-all(href="#", data-feature="teamSyncMembersFromAuth", data-value="false", title="{{_ 'unselect-all'}}")
|
||||
i.fa.fa-square-o
|
||||
tbody
|
||||
tr
|
||||
each team in teamList
|
||||
|
||||
@@ -1171,31 +1171,30 @@ Template.modifyTeamsUsers.events({
|
||||
selectedEltValue = selectedElt.options[selectedElt.selectedIndex].text;
|
||||
selectedEltValueId = selectedElt.options[selectedElt.selectedIndex].value;
|
||||
|
||||
// #4593: `teams` is a forbidden field for direct client-side Users.update
|
||||
// (see server/permissions/users.js: only the owner may update, and never
|
||||
// `teams`), so the previous Users.update() calls here were silently denied
|
||||
// by the server and the bulk team assignment never persisted — a user
|
||||
// "added" to a team this way never saw the boards that team is assigned
|
||||
// to. Use the admin-only `editUser` method instead, which persists the
|
||||
// change and also grants the user membership of the boards the gained
|
||||
// team is assigned to.
|
||||
if(document.getElementById('addAction').checked){
|
||||
for(let i = 0; i < selectedUserChkBoxUserIds.length; i++){
|
||||
currentUser = ReactiveCache.getUser(selectedUserChkBoxUserIds[i]);
|
||||
userTms = currentUser.teams;
|
||||
if(userTms == undefined || userTms.length == 0){
|
||||
userTms = [];
|
||||
// Copy, so the cached minimongo document is not mutated in place.
|
||||
userTms = (currentUser.teams || []).slice();
|
||||
currUserTeamIndex = userTms.findIndex(function(t){ return t.teamId == selectedEltValueId});
|
||||
if(currUserTeamIndex == -1){
|
||||
userTms.push({
|
||||
"teamId": selectedEltValueId,
|
||||
"teamDisplayName": selectedEltValue,
|
||||
})
|
||||
}
|
||||
else if(userTms.length > 0)
|
||||
{
|
||||
currUserTeamIndex = userTms.findIndex(function(t){ return t.teamId == selectedEltValueId});
|
||||
if(currUserTeamIndex == -1){
|
||||
userTms.push({
|
||||
"teamId": selectedEltValueId,
|
||||
"teamDisplayName": selectedEltValue,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Users.update(selectedUserChkBoxUserIds[i], {
|
||||
$set:{
|
||||
teams: userTms
|
||||
Meteor.call('editUser', selectedUserChkBoxUserIds[i], { teams: userTms }, (error) => {
|
||||
if (error) {
|
||||
console.error('Error updating user teams:', error);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1203,18 +1202,15 @@ Template.modifyTeamsUsers.events({
|
||||
else{
|
||||
for(let i = 0; i < selectedUserChkBoxUserIds.length; i++){
|
||||
currentUser = ReactiveCache.getUser(selectedUserChkBoxUserIds[i]);
|
||||
userTms = currentUser.teams;
|
||||
if(userTms !== undefined || userTms.length > 0)
|
||||
{
|
||||
currUserTeamIndex = userTms.findIndex(function(t){ return t.teamId == selectedEltValueId});
|
||||
if(currUserTeamIndex != -1){
|
||||
userTms.splice(currUserTeamIndex, 1);
|
||||
}
|
||||
userTms = (currentUser.teams || []).slice();
|
||||
currUserTeamIndex = userTms.findIndex(function(t){ return t.teamId == selectedEltValueId});
|
||||
if(currUserTeamIndex != -1){
|
||||
userTms.splice(currUserTeamIndex, 1);
|
||||
}
|
||||
|
||||
Users.update(selectedUserChkBoxUserIds[i], {
|
||||
$set:{
|
||||
teams: userTms
|
||||
Meteor.call('editUser', selectedUserChkBoxUserIds[i], { teams: userTms }, (error) => {
|
||||
if (error) {
|
||||
console.error('Error updating user teams:', error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -117,11 +117,17 @@
|
||||
}
|
||||
|
||||
/* Force tables to always trigger horizontal scrolling */
|
||||
.setting-content .content-body .main-body table td,
|
||||
.setting-content .content-body .main-body table th {
|
||||
.setting-content .content-body .main-body table td {
|
||||
white-space: nowrap;
|
||||
min-width: 120px;
|
||||
}
|
||||
/* #6465: headers may wrap — nowrap on long header labels (e.g. the org/team
|
||||
feature columns) blew the column widths up to the whole label length. */
|
||||
.setting-content .content-body .main-body table th {
|
||||
white-space: normal;
|
||||
min-width: 120px;
|
||||
max-width: 240px;
|
||||
}
|
||||
|
||||
/* Ensure there's enough content to trigger vertical scrolling */
|
||||
.setting-content .content-body .main-body {
|
||||
|
||||
@@ -255,6 +255,14 @@ Template.setting.onCreated(function () {
|
||||
this.webhookSetting = new ReactiveVar(false);
|
||||
this.attachmentSettings = new ReactiveVar(false);
|
||||
this.attachmentStorageSettings = new ReactiveVar(null);
|
||||
// #6473: real storage paths come from the server (WRITABLE_PATH does not
|
||||
// exist in the browser's process.env, which always showed "/data").
|
||||
this.storagePaths = new ReactiveVar(null);
|
||||
Meteor.call('getAttachmentStoragePaths', (err, paths) => {
|
||||
if (!err && paths) {
|
||||
this.storagePaths.set(paths);
|
||||
}
|
||||
});
|
||||
this.attachmentLimitUnits = new ReactiveVar({
|
||||
attachmentsUploadMaxBytes: 'mb',
|
||||
attachmentsDownloadMaxBytes: 'mb',
|
||||
@@ -393,18 +401,22 @@ Template.setting.helpers({
|
||||
},
|
||||
|
||||
// Attachment settings helpers
|
||||
// #6473: these come from the getAttachmentStoragePaths server method —
|
||||
// WRITABLE_PATH is a server-side environment variable, so reading
|
||||
// process.env here in the browser always produced the misleading "/data".
|
||||
filesystemPath() {
|
||||
return process.env.WRITABLE_PATH || '/data';
|
||||
const paths = Template.instance().storagePaths.get();
|
||||
return paths ? paths.writablePath : '';
|
||||
},
|
||||
|
||||
attachmentsPath() {
|
||||
const writablePath = process.env.WRITABLE_PATH || '/data';
|
||||
return `${writablePath}/attachments`;
|
||||
const paths = Template.instance().storagePaths.get();
|
||||
return paths ? paths.attachments : '';
|
||||
},
|
||||
|
||||
avatarsPath() {
|
||||
const writablePath = process.env.WRITABLE_PATH || '/data';
|
||||
return `${writablePath}/avatars`;
|
||||
const paths = Template.instance().storagePaths.get();
|
||||
return paths ? paths.avatars : '';
|
||||
},
|
||||
|
||||
gridfsEnabled() {
|
||||
|
||||
@@ -197,6 +197,11 @@ body.grey-icons-enabled .sidebar .sidebar-content ul.sidebar-list li > a .fa.fa-
|
||||
}
|
||||
.board-sidebar.is-open {
|
||||
display: block;
|
||||
/* #6465 follow-up: the card details window docks to the right edge with
|
||||
z-index 2001 — the same place this sidebar opens. When the user opens the
|
||||
sidebar, the sidebar must win, or its content (e.g. the archives
|
||||
Restore/Delete links) sits unreachable UNDER the card window. */
|
||||
z-index: 2002;
|
||||
}
|
||||
.board-widget h4 {
|
||||
margin: 5px 0;
|
||||
@@ -254,6 +259,23 @@ body.grey-icons-enabled .sidebar .sidebar-content ul.sidebar-list li > a .fa.fa-
|
||||
z-index: 0;
|
||||
inset-inline-start: 5px;
|
||||
}
|
||||
/* #3199: In the Archive sidebar's Cards tab each card's Restore/Delete links
|
||||
used to sit BETWEEN two archived cards with near-equal spacing, so users
|
||||
could not tell which card they belonged to. Group each card with its own
|
||||
links: no gap between the card and its links, and a clear separator gap
|
||||
below the whole group before the next card. Spacing-only, so it works in
|
||||
every board color/theme; logical properties keep it RTL-safe. */
|
||||
.archived-card-item {
|
||||
margin-block-end: 1.6em;
|
||||
}
|
||||
.archived-card-item .minicard-wrapper {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.archived-card-item p.quiet {
|
||||
margin-block-start: 2px;
|
||||
margin-block-end: 0;
|
||||
padding-inline-start: 4px;
|
||||
}
|
||||
.archived-lists .archived-lists-item {
|
||||
border-top: 1px solid #ccc;
|
||||
clear: both;
|
||||
|
||||
@@ -85,7 +85,7 @@ template(name="membersWidget")
|
||||
+userAvatar(userId=currentBoard.userId showStatus=true)
|
||||
.clearfix
|
||||
else
|
||||
each currentBoard.activeMembers
|
||||
each currentBoard.membersForSidebar
|
||||
+userAvatar(userId=this.userId showStatus=true)
|
||||
if isSandstorm
|
||||
if currentUser.isBoardMember
|
||||
@@ -701,10 +701,11 @@ template(name="boardMenuPopup")
|
||||
hr
|
||||
ul.pop-over-list
|
||||
if withApi
|
||||
li
|
||||
a.js-export-board
|
||||
i.fa.fa-upload
|
||||
| {{_ 'export-board'}}
|
||||
unless exportDisabled
|
||||
li
|
||||
a.js-export-board
|
||||
i.fa.fa-upload
|
||||
| {{_ 'export-board'}}
|
||||
if currentUser.isBoardAdmin
|
||||
li
|
||||
a.js-outgoing-webhooks
|
||||
|
||||
@@ -16,23 +16,27 @@ template(name="archivesSidebar")
|
||||
| -
|
||||
a.js-delete-all-cards {{_ 'delete-all'}}
|
||||
each archivedCards
|
||||
.minicard-wrapper.js-minicard
|
||||
+minicard(this)
|
||||
if currentUser.isBoardMember
|
||||
unless isWorker
|
||||
unless currentUser.isReadOnly
|
||||
unless currentUser.isReadAssignedOnly
|
||||
p.quiet
|
||||
if this.archivedAt
|
||||
| {{_ 'archived-at' }}
|
||||
| | {{ displayDate this.archivedAt 'LLL' }}
|
||||
br
|
||||
a.js-restore-card {{_ 'restore'}}
|
||||
if currentUser.isBoardAdmin
|
||||
| -
|
||||
a.js-delete-card {{_ 'delete'}}
|
||||
if cardIsInArchivedList
|
||||
p.quiet.small ({{_ 'warn-list-archived'}})
|
||||
//- #3199: keep each archived card and ITS Restore/Delete links in
|
||||
//- one wrapper so the links visually group with the card above
|
||||
//- them instead of floating ambiguously between two cards.
|
||||
.archived-card-item
|
||||
.minicard-wrapper.js-minicard
|
||||
+minicard(this)
|
||||
if currentUser.isBoardMember
|
||||
unless isWorker
|
||||
unless currentUser.isReadOnly
|
||||
unless currentUser.isReadAssignedOnly
|
||||
p.quiet
|
||||
if this.archivedAt
|
||||
| {{_ 'archived-at' }}
|
||||
| | {{ displayDate this.archivedAt 'LLL' }}
|
||||
br
|
||||
a.js-restore-card {{_ 'restore'}}
|
||||
if currentUser.isBoardAdmin
|
||||
| -
|
||||
a.js-delete-card {{_ 'delete'}}
|
||||
if cardIsInArchivedList
|
||||
p.quiet.small ({{_ 'warn-list-archived'}})
|
||||
else
|
||||
p.no-items-message {{_ 'no-archived-cards'}}
|
||||
|
||||
|
||||
@@ -118,3 +118,42 @@
|
||||
height: clamp(40px, 5vw, 60px);
|
||||
margin-inline-end: 10px;
|
||||
}
|
||||
|
||||
/* Account-status distinction on the avatar itself (see userAvatar.js
|
||||
memberAccountClass / isImportedMember / isInactiveMember):
|
||||
- imported-member: an un-reconciled board-import placeholder that is not yet mapped
|
||||
to a real account — dashed ring + amber "?" corner badge.
|
||||
- inactive-member: deactivated on this board (e.g. a person not in LDAP after
|
||||
reconciliation) — greyscale + dimmed, grey corner badge.
|
||||
A placeholder is usually both; a real, active account gets neither. */
|
||||
.member.imported-member .avatar {
|
||||
border: 2px dashed #7f8c9a;
|
||||
box-sizing: border-box;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.member.inactive-member .avatar {
|
||||
filter: grayscale(1);
|
||||
opacity: 0.55;
|
||||
}
|
||||
.member .member-account-badge {
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
right: -2px;
|
||||
min-width: 14px;
|
||||
height: 14px;
|
||||
line-height: 13px;
|
||||
padding: 0 1px;
|
||||
border-radius: 7px;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
box-shadow: 0 0 0 1.5px #fff;
|
||||
pointer-events: none;
|
||||
}
|
||||
.member .member-account-badge.imported {
|
||||
background: #f39c12;
|
||||
}
|
||||
.member .member-account-badge.inactive {
|
||||
background: #95a5a6;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
template(name="userAvatar")
|
||||
a.member(class="js-{{#if assignee}}assignee{{else}}member{{/if}}" title="{{#if userData}}{{userData.profile.fullname}} ({{userData.username}}) {{_ memberType}}{{/if}}")
|
||||
a.member(class="js-{{#if assignee}}assignee{{else}}member{{/if}} {{memberAccountClass}}" title="{{#if userData}}{{userData.profile.fullname}} ({{userData.username}}) {{_ memberType}}{{#if isImportedMember}} — {{_ 'imported-member-no-account'}}{{else}}{{#if isInactiveMember}} — {{_ 'inactive-member'}}{{/if}}{{/if}}{{/if}}")
|
||||
if userData
|
||||
if userData.profile.avatarUrl
|
||||
img.avatar.avatar-image(src="{{avatarUrl}}" alt="")
|
||||
@@ -8,6 +8,11 @@ template(name="userAvatar")
|
||||
else
|
||||
+userAvatarInitials(userId=this.userId)
|
||||
|
||||
if isImportedMember
|
||||
span.member-account-badge.imported(title="{{_ 'imported-member-no-account'}}") ?
|
||||
else if isInactiveMember
|
||||
span.member-account-badge.inactive(title="{{_ 'inactive-member'}}")
|
||||
|
||||
if showStatus
|
||||
span.member-presence-status(class=presenceStatusClassName)
|
||||
span.member-type(class=memberType)
|
||||
|
||||
@@ -11,11 +11,55 @@ Template.userAvatar.helpers({
|
||||
fields: {
|
||||
profile: 1,
|
||||
username: 1,
|
||||
authenticationMethod: 1,
|
||||
isActive: 1,
|
||||
},
|
||||
});
|
||||
return user;
|
||||
},
|
||||
|
||||
// Distinguish, on the avatar itself, whether a real account backs this member:
|
||||
// - imported-member: an inert placeholder created by a board import that has not been
|
||||
// reconciled/mapped to a real account yet (dashed ring + "?" badge).
|
||||
// - inactive-member: deactivated on this board (e.g. a person not in LDAP after
|
||||
// reconciliation) (greyscale + dim).
|
||||
// A placeholder is typically both. A real, active account gets neither.
|
||||
memberAccountClass() {
|
||||
const user = ReactiveCache.getUser(this.userId, {
|
||||
fields: { authenticationMethod: 1, isActive: 1 },
|
||||
});
|
||||
if (!user) return '';
|
||||
const classes = [];
|
||||
if (user.authenticationMethod === 'imported') classes.push('imported-member');
|
||||
let inactive = user.isActive === false;
|
||||
if (!inactive) {
|
||||
const board = Utils.getCurrentBoard && Utils.getCurrentBoard();
|
||||
const m = board && Array.isArray(board.members)
|
||||
? board.members.find(x => x.userId === this.userId)
|
||||
: null;
|
||||
if (m && m.isActive === false) inactive = true;
|
||||
}
|
||||
if (inactive) classes.push('inactive-member');
|
||||
return classes.join(' ');
|
||||
},
|
||||
|
||||
isImportedMember() {
|
||||
const user = ReactiveCache.getUser(this.userId, { fields: { authenticationMethod: 1 } });
|
||||
return !!(user && user.authenticationMethod === 'imported');
|
||||
},
|
||||
|
||||
isInactiveMember() {
|
||||
const user = ReactiveCache.getUser(this.userId, { fields: { authenticationMethod: 1, isActive: 1 } });
|
||||
if (!user) return false;
|
||||
if (user.authenticationMethod === 'imported') return false; // shown via the imported badge
|
||||
if (user.isActive === false) return true;
|
||||
const board = Utils.getCurrentBoard && Utils.getCurrentBoard();
|
||||
const m = board && Array.isArray(board.members)
|
||||
? board.members.find(x => x.userId === this.userId)
|
||||
: null;
|
||||
return !!(m && m.isActive === false);
|
||||
},
|
||||
|
||||
avatarUrl() {
|
||||
const user = ReactiveCache.getUser(this.userId, { fields: { profile: 1 } });
|
||||
const base = (user && user.profile && user.profile.avatarUrl) || '';
|
||||
|
||||
@@ -108,6 +108,26 @@ Blaze.registerHelper('currentUser', () => {
|
||||
return ret;
|
||||
});
|
||||
|
||||
// Admin Panel / Features / Security master switches. Templates use these to hide
|
||||
// the import / export menu options when an admin has disabled all import / export.
|
||||
Blaze.registerHelper('importDisabled', () =>
|
||||
!!(ReactiveCache.getCurrentSetting() || {}).disableAllImport,
|
||||
);
|
||||
|
||||
Blaze.registerHelper('exportDisabled', () =>
|
||||
!!(ReactiveCache.getCurrentSetting() || {}).disableAllExport,
|
||||
);
|
||||
|
||||
// Admin Panel / Features / Notifications (#5820). Templates use these to hide
|
||||
// the activity feed and the watch controls when an admin has disabled them.
|
||||
Blaze.registerHelper('activitiesDisabled', () =>
|
||||
!!(ReactiveCache.getCurrentSetting() || {}).disableActivities,
|
||||
);
|
||||
|
||||
Blaze.registerHelper('watchDisabled', () =>
|
||||
!!(ReactiveCache.getCurrentSetting() || {}).disableWatch,
|
||||
);
|
||||
|
||||
Blaze.registerHelper('getUser', (userId) => ReactiveCache.getUser(userId));
|
||||
|
||||
Blaze.registerHelper('concat', (...args) => args.slice(0, -1).join(''));
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
'use strict';
|
||||
|
||||
// Pure helpers for keeping jQuery UI sortable's cached drag geometry in sync
|
||||
// with the real card layout. Extracted so the decision logic is unit-testable
|
||||
// in plain Node without Meteor (mirrors models/lib/cardSortRepair.js).
|
||||
//
|
||||
// #2769 "Card moves to wrong swimlane when moving to target column where a
|
||||
// new card is being added": jQuery UI sortable snapshots the geometry of
|
||||
// every connected `.js-minicards` container ONCE at drag start
|
||||
// (sortable._mouseStart calls refreshPositions() BEFORE it fires the `start`
|
||||
// callback) and only re-snapshots after its OWN placeholder rearranges. It
|
||||
// never notices DOM changes made by anyone else. Two such changes routinely
|
||||
// happen DURING a card drag:
|
||||
//
|
||||
// * another user submits the open add-card composer, so Blaze reactively
|
||||
// inserts the new minicard into a connected list (the issue's "target
|
||||
// column where a new card is being added"), and
|
||||
// * the dragging user's own open composer is closed by the `start`
|
||||
// callback's EscapeActions.executeUpTo('popup-close')
|
||||
// (client/components/lists/list.js) — i.e. AFTER the snapshot was taken.
|
||||
//
|
||||
// Either way, every list and swimlane below the change shifts vertically
|
||||
// while the cached rectangles stay where they were, so the pointer is matched
|
||||
// against a stale map: the placeholder is parked in the NEIGHBOURING
|
||||
// swimlane's copy of the list (which is why the reporter saw no drop shadow
|
||||
// in the column they were aiming at), and the `stop` handler's
|
||||
// ui.item.parents('.swimlane') then faithfully reports that wrong swimlane —
|
||||
// the card "disappears and reappears in the swimlane below".
|
||||
//
|
||||
// The wiring lives in client/components/lists/listBody.js (a MutationObserver
|
||||
// per list body that calls sortable('refresh') on the active drag). The
|
||||
// decisions worth testing in isolation are below:
|
||||
// 1. whether a mutation batch represents a REAL layout change (a Blaze
|
||||
// insertion/removal) as opposed to jQuery UI's own placeholder/helper
|
||||
// churn, which happens on every mousemove and must not trigger anything,
|
||||
// and
|
||||
// 2. which sortable instance (if any) is the active card drag whose
|
||||
// geometry needs re-caching.
|
||||
|
||||
// jQuery UI marks the elements it moves around itself during a drag: the drop
|
||||
// shadow ("ui-sortable-placeholder") and the dragged clone
|
||||
// ("ui-sortable-helper"). Their insertions/removals are part of the drag and
|
||||
// already followed by the library's own refreshPositions; reacting to them
|
||||
// would just do the same work twice on every mousemove.
|
||||
function nodeChangesDragGeometry(node) {
|
||||
if (!node || node.nodeType !== 1) {
|
||||
// Text/comment nodes: no box of their own worth re-snapshotting for.
|
||||
return false;
|
||||
}
|
||||
const classList = node.classList;
|
||||
if (!classList || typeof classList.contains !== 'function') {
|
||||
// An element we cannot classify still occupies layout space.
|
||||
return true;
|
||||
}
|
||||
return (
|
||||
!classList.contains('ui-sortable-placeholder') &&
|
||||
!classList.contains('ui-sortable-helper')
|
||||
);
|
||||
}
|
||||
|
||||
// Does this MutationObserver batch contain at least one real DOM change
|
||||
// (an element other than jQuery UI's own drag artefacts was added or
|
||||
// removed)? Only then is the drag geometry snapshot stale.
|
||||
function mutationsChangeDragGeometry(mutations) {
|
||||
if (!mutations) return false;
|
||||
for (let i = 0; i < mutations.length; i += 1) {
|
||||
const mutation = mutations[i];
|
||||
if (!mutation || mutation.type !== 'childList') continue;
|
||||
const added = mutation.addedNodes || [];
|
||||
const removed = mutation.removedNodes || [];
|
||||
for (let j = 0; j < added.length; j += 1) {
|
||||
if (nodeChangesDragGeometry(added[j])) return true;
|
||||
}
|
||||
for (let j = 0; j < removed.length; j += 1) {
|
||||
if (nodeChangesDragGeometry(removed[j])) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Given the sortable instances of every card container on the board, return
|
||||
// the one an active card drag started from — that instance owns the cached
|
||||
// geometry of ALL connected containers (its refresh() re-collects items and
|
||||
// re-measures every container). Returns null when no card drag is running,
|
||||
// e.g. when the observed change was an ordinary reactive update, or the
|
||||
// leftover DOM churn of sortable('cancel') after the drag already ended
|
||||
// (sortable sets `dragging` back to false before its stop event fires).
|
||||
function findActiveCardDrag(instances) {
|
||||
if (!instances) return null;
|
||||
for (let i = 0; i < instances.length; i += 1) {
|
||||
const instance = instances[i];
|
||||
if (instance && instance.dragging === true && instance.currentItem) {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
nodeChangesDragGeometry,
|
||||
mutationsChangeDragGeometry,
|
||||
findActiveCardDrag,
|
||||
};
|
||||
+25
-25
@@ -3,11 +3,12 @@ import { ReactiveVar } from 'meteor/reactive-var';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { getCurrentCardFromContext } from '/client/lib/currentCard';
|
||||
import { normalizeDigits } from '/imports/lib/dateUtils';
|
||||
|
||||
// Helper to check if a date is valid
|
||||
function isValidDate(date) {
|
||||
return date instanceof Date && !isNaN(date);
|
||||
}
|
||||
import {
|
||||
isValidDate,
|
||||
formatTime,
|
||||
initialTimeValue,
|
||||
fallbackSubmitTime,
|
||||
} from '/imports/lib/datePickerTime';
|
||||
|
||||
// Format date as YYYY-MM-DD
|
||||
function formatDate(date) {
|
||||
@@ -18,14 +19,6 @@ function formatDate(date) {
|
||||
return `${year}-${month}-${day}`;
|
||||
}
|
||||
|
||||
// Format time as HH:mm
|
||||
function formatTime(date) {
|
||||
if (!isValidDate(date)) return '';
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
return `${hours}:${minutes}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up datepicker state on a template instance.
|
||||
* Call from onCreated. Stores state on tpl.datePicker.
|
||||
@@ -53,18 +46,21 @@ export function setupDatePicker(tpl, { defaultTime = '1970-01-01 08:00:00', init
|
||||
*/
|
||||
export function datePickerRendered(tpl) {
|
||||
const dp = tpl.datePicker;
|
||||
if (isValidDate(dp.date.get())) {
|
||||
const dateInput = tpl.find('#date');
|
||||
const timeInput = tpl.find('#time');
|
||||
const dateInput = tpl.find('#date');
|
||||
const timeInput = tpl.find('#time');
|
||||
|
||||
if (dateInput) {
|
||||
dateInput.value = formatDate(dp.date.get());
|
||||
}
|
||||
if (timeInput && !timeInput.value && dp.defaultTime) {
|
||||
const defaultDate = new Date(dp.defaultTime);
|
||||
timeInput.value = formatTime(defaultDate);
|
||||
} else if (timeInput && isValidDate(dp.date.get())) {
|
||||
timeInput.value = formatTime(dp.date.get());
|
||||
if (dateInput && isValidDate(dp.date.get())) {
|
||||
dateInput.value = formatDate(dp.date.get());
|
||||
}
|
||||
// Pre-fill the time input: an existing card date keeps its own time; a
|
||||
// card without this date gets the configured default (e.g. 17:00 for due
|
||||
// dates) instead of an empty field that would silently save as 12:00
|
||||
// (#1502). The template already fills the input for existing dates, so
|
||||
// only ever write into an empty input.
|
||||
if (timeInput && !timeInput.value) {
|
||||
const initial = initialTimeValue(dp.date.get(), dp.defaultTime);
|
||||
if (initial) {
|
||||
timeInput.value = initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -147,8 +143,12 @@ export function datePickerEvents({ storeDate, deleteDate }) {
|
||||
|
||||
// Normalize any non-Latin digits (e.g. Persian/Arabic-Indic) before
|
||||
// parsing so due/start/end dates work in those locales (#5752).
|
||||
// An empty time falls back to the popup's configured default time
|
||||
// (e.g. 17:00 for due dates), then 12:00 (#1502).
|
||||
const dateValue = normalizeDigits(evt.target.date.value);
|
||||
const timeValue = normalizeDigits(evt.target.time.value) || '12:00'; // Default to 12:00 if no time given
|
||||
const timeValue =
|
||||
normalizeDigits(evt.target.time.value) ||
|
||||
fallbackSubmitTime(tpl.datePicker.defaultTime);
|
||||
|
||||
if (!dateValue) {
|
||||
tpl.datePicker.error.set('invalid-date');
|
||||
|
||||
+87
-60
@@ -21,7 +21,14 @@ import {
|
||||
fromNow,
|
||||
calendar
|
||||
} from '/imports/lib/dateUtils';
|
||||
import {
|
||||
tokenizeAdvancedFilter,
|
||||
parseAdvancedFilterDate,
|
||||
buildDateValueSelector,
|
||||
} from '/imports/lib/advancedFilter';
|
||||
import { weekRange } from '/models/lib/weekStart';
|
||||
import { Session } from 'meteor/session';
|
||||
import { boardScopedFilterSelector } from '/models/lib/boardScopedSelection';
|
||||
// Sidebar is imported late to avoid circular dependency (sidebar.js needs its
|
||||
// jade template loaded first, but router.js → filter.js would load it too early)
|
||||
let _Sidebar;
|
||||
@@ -322,55 +329,9 @@ class AdvancedFilter {
|
||||
}
|
||||
|
||||
_filterToCommands() {
|
||||
const commands = [];
|
||||
let current = '';
|
||||
let string = false;
|
||||
let regex = false;
|
||||
let wasString = false;
|
||||
let ignore = false;
|
||||
for (let i = 0; i < this._filter.length; i++) {
|
||||
const char = this._filter.charAt(i);
|
||||
if (ignore) {
|
||||
ignore = false;
|
||||
current += char;
|
||||
continue;
|
||||
}
|
||||
if (char === '/') {
|
||||
string = !string;
|
||||
if (string) regex = true;
|
||||
current += char;
|
||||
continue;
|
||||
}
|
||||
// eslint-disable-next-line quotes
|
||||
if (char === "'") {
|
||||
string = !string;
|
||||
if (string) wasString = true;
|
||||
continue;
|
||||
}
|
||||
if (char === '\\' && !string) {
|
||||
ignore = true;
|
||||
continue;
|
||||
}
|
||||
if (char === ' ' && !string) {
|
||||
commands.push({
|
||||
cmd: current,
|
||||
string: wasString,
|
||||
regex,
|
||||
});
|
||||
wasString = false;
|
||||
current = '';
|
||||
continue;
|
||||
}
|
||||
current += char;
|
||||
}
|
||||
if (current !== '') {
|
||||
commands.push({
|
||||
cmd: current,
|
||||
string: wasString,
|
||||
regex,
|
||||
});
|
||||
}
|
||||
return commands;
|
||||
// #2989: tokenizing lives in /imports/lib/advancedFilter.js so slashes
|
||||
// inside quoted values (dates like '06/04/2020') stay literal strings.
|
||||
return tokenizeAdvancedFilter(this._filter);
|
||||
}
|
||||
|
||||
_fieldNameToId(field) {
|
||||
@@ -397,6 +358,36 @@ class AdvancedFilter {
|
||||
return value;
|
||||
}
|
||||
|
||||
// #2989: date custom fields store Date objects (the date picker calls
|
||||
// card.setCustomField(id, date)), so comparing them against the typed
|
||||
// string / parseInt() number can never match. When the field is date-typed
|
||||
// and the value parses as a date, compare with a Date range instead.
|
||||
// Returns the operator document for 'customFields.value', or null to fall
|
||||
// back to the generic string/number selector.
|
||||
_customFieldDateSelector(field, str, op) {
|
||||
const found = ReactiveCache.getCustomField({
|
||||
name: field,
|
||||
});
|
||||
if (!found || found.type !== 'date') return null;
|
||||
// Disambiguate '06/04/2020' (both parts <= 12) with the user's date
|
||||
// format preference: day-first formats (DD/MM/YYYY, DD.MM.YYYY) read it
|
||||
// as 6 April, otherwise it is read month-first as 4 June.
|
||||
let dayFirst = false;
|
||||
try {
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
const dateFormat =
|
||||
user && typeof user.getDateFormat === 'function'
|
||||
? user.getDateFormat()
|
||||
: 'YYYY-MM-DD';
|
||||
dayFirst = /^D/.test(dateFormat);
|
||||
} catch (error) {
|
||||
dayFirst = false;
|
||||
}
|
||||
const range = parseAdvancedFilterDate(str, { dayFirst });
|
||||
if (!range) return null;
|
||||
return buildDateValueSelector(op, range);
|
||||
}
|
||||
|
||||
_arrayToSelector(commands) {
|
||||
try {
|
||||
//let changed = false;
|
||||
@@ -471,7 +462,11 @@ class AdvancedFilter {
|
||||
} else {
|
||||
commands[i] = {
|
||||
'customFields._id': this._fieldNameToId(field),
|
||||
'customFields.value': {
|
||||
'customFields.value': this._customFieldDateSelector(
|
||||
field,
|
||||
str,
|
||||
commands[i].cmd,
|
||||
) || {
|
||||
$in: [this._fieldValueToId(field, str), parseInt(str, 10)],
|
||||
},
|
||||
};
|
||||
@@ -500,7 +495,11 @@ class AdvancedFilter {
|
||||
} else {
|
||||
commands[i] = {
|
||||
'customFields._id': this._fieldNameToId(field),
|
||||
'customFields.value': {
|
||||
'customFields.value': this._customFieldDateSelector(
|
||||
field,
|
||||
str,
|
||||
commands[i].cmd,
|
||||
) || {
|
||||
$not: {
|
||||
$in: [this._fieldValueToId(field, str), parseInt(str, 10)],
|
||||
},
|
||||
@@ -521,7 +520,11 @@ class AdvancedFilter {
|
||||
const str = commands[i + 1].cmd;
|
||||
commands[i] = {
|
||||
'customFields._id': this._fieldNameToId(field),
|
||||
'customFields.value': {
|
||||
'customFields.value': this._customFieldDateSelector(
|
||||
field,
|
||||
str,
|
||||
commands[i].cmd,
|
||||
) || {
|
||||
$gt: parseInt(str, 10),
|
||||
},
|
||||
};
|
||||
@@ -540,7 +543,11 @@ class AdvancedFilter {
|
||||
const str = commands[i + 1].cmd;
|
||||
commands[i] = {
|
||||
'customFields._id': this._fieldNameToId(field),
|
||||
'customFields.value': {
|
||||
'customFields.value': this._customFieldDateSelector(
|
||||
field,
|
||||
str,
|
||||
commands[i].cmd,
|
||||
) || {
|
||||
$gte: parseInt(str, 10),
|
||||
},
|
||||
};
|
||||
@@ -558,7 +565,11 @@ class AdvancedFilter {
|
||||
const str = commands[i + 1].cmd;
|
||||
commands[i] = {
|
||||
'customFields._id': this._fieldNameToId(field),
|
||||
'customFields.value': {
|
||||
'customFields.value': this._customFieldDateSelector(
|
||||
field,
|
||||
str,
|
||||
commands[i].cmd,
|
||||
) || {
|
||||
$lt: parseInt(str, 10),
|
||||
},
|
||||
};
|
||||
@@ -577,7 +588,11 @@ class AdvancedFilter {
|
||||
const str = commands[i + 1].cmd;
|
||||
commands[i] = {
|
||||
'customFields._id': this._fieldNameToId(field),
|
||||
'customFields.value': {
|
||||
'customFields.value': this._customFieldDateSelector(
|
||||
field,
|
||||
str,
|
||||
commands[i].cmd,
|
||||
) || {
|
||||
$lte: parseInt(str, 10),
|
||||
},
|
||||
};
|
||||
@@ -772,11 +787,23 @@ export const Filter = {
|
||||
|
||||
mongoSelector(additionalSelector) {
|
||||
const filterSelector = this._getMongoSelector();
|
||||
if (additionalSelector === undefined) return filterSelector;
|
||||
else
|
||||
return {
|
||||
$and: [filterSelector, additionalSelector],
|
||||
};
|
||||
if (additionalSelector === undefined) {
|
||||
// #2306: a call without an additional selector means "all cards
|
||||
// matching the filter" (e.g. the filter sidebar's "To selection"
|
||||
// button). The client cache may also hold cards from OTHER boards
|
||||
// (a board being navigated away from, linked-board subscriptions,
|
||||
// notifications, popup card data, ...), so scope the query to the
|
||||
// board currently being viewed. Callers that pass an additional
|
||||
// selector are already scoped to a list/swimlane/card of the current
|
||||
// board.
|
||||
return boardScopedFilterSelector(
|
||||
filterSelector,
|
||||
Session.get('currentBoard'),
|
||||
);
|
||||
}
|
||||
return {
|
||||
$and: [filterSelector, additionalSelector],
|
||||
};
|
||||
},
|
||||
|
||||
reset() {
|
||||
|
||||
+11
-8
@@ -56,15 +56,18 @@ Meteor.startup(async () => {
|
||||
navigator.userLanguage,
|
||||
].filter(Boolean);
|
||||
if (language) {
|
||||
// Try with potentially complex language tag
|
||||
if (TAPi18n.isLanguageSupported(language)) {
|
||||
TAPi18n.setLanguage(language);
|
||||
} else if (language.includes('-')) {
|
||||
// Fallback to a general language
|
||||
const [general] = language.split('-');
|
||||
if (TAPi18n.isLanguageSupported(general)) {
|
||||
TAPi18n.setLanguage(general);
|
||||
// Match the browser tag, then progressively strip trailing subtags until a supported
|
||||
// language is found: e.g. 'zh-Hans-CN' -> 'zh-Hans', 'zh-Hant-TW' -> 'zh-Hant',
|
||||
// 'ja-JP' -> 'ja-JP', bare 'zh' -> 'zh-Hans' (via alias). isLanguageSupported is
|
||||
// case-insensitive, so 'zh-hant' / 'JA-JP' etc. also match.
|
||||
let candidate = language;
|
||||
while (candidate) {
|
||||
if (TAPi18n.isLanguageSupported(candidate)) {
|
||||
TAPi18n.setLanguage(candidate);
|
||||
break;
|
||||
}
|
||||
const cut = candidate.lastIndexOf('-');
|
||||
candidate = cut > 0 ? candidate.slice(0, cut) : '';
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,77 @@
|
||||
'use strict';
|
||||
|
||||
// Pure state transitions for the "only one inlined form open at a time"
|
||||
// invariant — extracted so it is unit-testable without a DOM / Meteor
|
||||
// (see tests/inlinedFormSingleOpen.test.cjs).
|
||||
//
|
||||
// #2418 ("Checklist item gets overwritten by previous item when selecting
|
||||
// another item with mouse"): opening a checklist item's edit form while
|
||||
// another item was already in edit mode did not close the previous form.
|
||||
// With two edit forms open at once, the submit handlers (which locate the
|
||||
// textarea with a template-wide `tpl.find('textarea.js-edit-checklist-item')`,
|
||||
// i.e. FIRST match in DOM order) read the OTHER form's textarea and
|
||||
// overwrote the submitted item with the previous item's text.
|
||||
//
|
||||
// Root cause in current code: the `.js-open-inlined-form` click handler
|
||||
// tried to close the previously opened form with
|
||||
// `EscapeActions.clickExecute(evt.target, 'inlinedForm')`, but the
|
||||
// 'inlinedForm' escape action is registered with `enabledOnClick: false`,
|
||||
// and EscapeActions._execute skips such actions for click executions
|
||||
// (`isEnabled = enabledOnClick || !isClick`). So the call was silently a
|
||||
// no-op and the previous form stayed open. (Regression from 8c3ce4bb7,
|
||||
// 2021-10-19, which replaced `EscapeActions.executeUpTo('inlinedForm')`
|
||||
// with `clickExecute` to stop popups from closing.)
|
||||
//
|
||||
// A secondary corruption: the close/submit/destroy paths reset the shared
|
||||
// `currentlyOpenedForm` tracker UNCONDITIONALLY, so closing a stale form
|
||||
// (e.g. checklists' "click all .js-close-inlined-form" workaround) nulled
|
||||
// the tracker for a DIFFERENT, still-open form — after which Escape no
|
||||
// longer closed the open form but fell through to closing the whole
|
||||
// card-details pane.
|
||||
//
|
||||
// The functions below centralize the transitions and fix both problems:
|
||||
// - openForm() explicitly closes the previously tracked form, without
|
||||
// touching popups (preserving the 8c3ce4bb7 intent).
|
||||
// - closeForm()/forgetForm() only reset the tracker when the form being
|
||||
// closed/destroyed IS the tracked one.
|
||||
//
|
||||
// `tracker` is a ReactiveVar-like object ({ get(), set(v) }) holding the
|
||||
// currently opened form; a "form" is any object with an `isOpen`
|
||||
// ReactiveVar-like property.
|
||||
|
||||
/** Open `form`, closing the previously tracked form (if any and different). */
|
||||
function openForm(tracker, form) {
|
||||
const previous = tracker.get();
|
||||
if (previous && previous !== form && previous.isOpen) {
|
||||
previous.isOpen.set(false);
|
||||
}
|
||||
if (form && form.isOpen) {
|
||||
form.isOpen.set(true);
|
||||
}
|
||||
tracker.set(form);
|
||||
}
|
||||
|
||||
/**
|
||||
* Close `form`. Resets the tracker ONLY when `form` is the tracked one, so
|
||||
* closing a stale/already-closed form cannot orphan another open form.
|
||||
*/
|
||||
function closeForm(tracker, form) {
|
||||
if (form && form.isOpen) {
|
||||
form.isOpen.set(false);
|
||||
}
|
||||
if (tracker.get() === form) {
|
||||
tracker.set(null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop tracking `form` without touching its own state (template destroyed).
|
||||
* Only resets the tracker when `form` is the tracked one.
|
||||
*/
|
||||
function forgetForm(tracker, form) {
|
||||
if (tracker.get() === form) {
|
||||
tracker.set(null);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { openForm, closeForm, forgetForm };
|
||||
+19
-11
@@ -16,6 +16,11 @@ import { Template } from 'meteor/templating';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
import { Tracker } from 'meteor/tracker';
|
||||
import { EscapeActions } from '/client/lib/escapeActions';
|
||||
import {
|
||||
openForm,
|
||||
closeForm,
|
||||
forgetForm,
|
||||
} from '/client/lib/inlinedFormManager';
|
||||
|
||||
// We can only have one inlined form element opened at a time
|
||||
const currentlyOpenedForm = new ReactiveVar(null);
|
||||
@@ -44,7 +49,9 @@ Template.inlinedForm.onRendered(function () {
|
||||
});
|
||||
|
||||
Template.inlinedForm.onDestroyed(function () {
|
||||
currentlyOpenedForm.set(null);
|
||||
// Only reset the tracker if THIS instance is the tracked one; destroying
|
||||
// an unrelated instance must not orphan another still-open form.
|
||||
forgetForm(currentlyOpenedForm, this);
|
||||
});
|
||||
|
||||
Template.inlinedForm.helpers({
|
||||
@@ -55,14 +62,19 @@ Template.inlinedForm.helpers({
|
||||
|
||||
Template.inlinedForm.events({
|
||||
'click .js-close-inlined-form'(evt, tpl) {
|
||||
tpl.isOpen.set(false);
|
||||
currentlyOpenedForm.set(null);
|
||||
closeForm(currentlyOpenedForm, tpl);
|
||||
},
|
||||
'click .js-open-inlined-form'(evt, tpl) {
|
||||
evt.preventDefault();
|
||||
EscapeActions.clickExecute(evt.target, 'inlinedForm');
|
||||
tpl.isOpen.set(true);
|
||||
currentlyOpenedForm.set(tpl);
|
||||
// #2418: clickExecute above does NOT close the previously opened form:
|
||||
// the 'inlinedForm' escape action is registered with
|
||||
// `enabledOnClick: false`, so click executions skip it. With the old
|
||||
// form left open, submitting the new one located the wrong textarea
|
||||
// (template-wide first match) and overwrote the item with the previous
|
||||
// item's text. Close the previous form explicitly instead (this keeps
|
||||
// popups open, which is why clickExecute replaced executeUpTo here).
|
||||
openForm(currentlyOpenedForm, tpl);
|
||||
},
|
||||
'keydown form textarea'(evt, tpl) {
|
||||
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
|
||||
@@ -73,8 +85,7 @@ Template.inlinedForm.events({
|
||||
const data = Template.currentData();
|
||||
if (data.autoclose !== false) {
|
||||
Tracker.afterFlush(() => {
|
||||
tpl.isOpen.set(false);
|
||||
currentlyOpenedForm.set(null);
|
||||
closeForm(currentlyOpenedForm, tpl);
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -86,10 +97,7 @@ EscapeActions.register(
|
||||
() => {
|
||||
const form = currentlyOpenedForm.get();
|
||||
if (form) {
|
||||
if (form.isOpen) {
|
||||
form.isOpen.set(false);
|
||||
currentlyOpenedForm.set(null);
|
||||
}
|
||||
closeForm(currentlyOpenedForm, form);
|
||||
}
|
||||
},
|
||||
() => {
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
import { Session } from 'meteor/session';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { Filter } from '/client/lib/filter';
|
||||
import { EscapeActions } from '/client/lib/escapeActions';
|
||||
import { Utils } from '/client/lib/utils';
|
||||
import {
|
||||
boardScopedSelectionSelector,
|
||||
cardIdsOnBoard,
|
||||
} from '/models/lib/boardScopedSelection';
|
||||
|
||||
// Late-bind Sidebar to avoid circular dependency (sidebar.js needs its template first)
|
||||
let _Sidebar;
|
||||
@@ -78,9 +83,15 @@ export const MultiSelection = {
|
||||
},
|
||||
|
||||
getMongoSelector() {
|
||||
return Filter.mongoSelector({
|
||||
_id: { $in: this._selectedCards.get() },
|
||||
});
|
||||
// #2306: scope the selection to the board currently being viewed so bulk
|
||||
// actions (archive, move, label, ...) never touch cards that were
|
||||
// selected on a previously visited board.
|
||||
return Filter.mongoSelector(
|
||||
boardScopedSelectionSelector(
|
||||
this._selectedCards.get(),
|
||||
Session.get('currentBoard'),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
isActive() {
|
||||
@@ -147,6 +158,12 @@ export const MultiSelection = {
|
||||
|
||||
toggle(cardIds, options = {}) {
|
||||
cardIds = typeof cardIds === 'string' ? [cardIds] : cardIds;
|
||||
// #2306: never let cards that verifiably live on ANOTHER board enter the
|
||||
// selection (e.g. handed over by a caller that queried the client card
|
||||
// cache without a board scope).
|
||||
cardIds = cardIdsOnBoard(cardIds, Session.get('currentBoard'), id =>
|
||||
ReactiveCache.getCard(id),
|
||||
);
|
||||
options = {
|
||||
add: true,
|
||||
remove: true,
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
import DOMPurify from 'dompurify';
|
||||
|
||||
// Centralized secure DOMPurify configuration to prevent XSS and CSS injection attacks
|
||||
export function getSecureDOMPurifyConfig() {
|
||||
return {
|
||||
// Centralized secure DOMPurify configuration to prevent XSS and CSS injection attacks.
|
||||
//
|
||||
// options.stripLinks — when true, anchor (<a>) tags are removed while their visible
|
||||
// text is kept, so every link renders as plain, non-clickable text. Used by the
|
||||
// Admin Panel / Features "render links as plain text" toggle.
|
||||
export function getSecureDOMPurifyConfig(options = {}) {
|
||||
const config = {
|
||||
// Allow common markdown elements including anchor tags
|
||||
ALLOWED_TAGS: ['a', 'p', 'br', 'strong', 'em', 'u', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'div', 'span', 's'],
|
||||
// Allow safe attributes including href for anchor tags
|
||||
@@ -122,11 +126,18 @@ export function getSecureDOMPurifyConfig() {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (options.stripLinks) {
|
||||
// Forbid <a> but keep its inner text, so links become plain, non-clickable text.
|
||||
config.FORBID_TAGS = config.FORBID_TAGS.concat(['a']);
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
// Convenience function for secure sanitization
|
||||
export function sanitizeHTML(html) {
|
||||
return DOMPurify.sanitize(html, getSecureDOMPurifyConfig());
|
||||
export function sanitizeHTML(html, options = {}) {
|
||||
return DOMPurify.sanitize(html, getSecureDOMPurifyConfig(options));
|
||||
}
|
||||
|
||||
// Convenience function for sanitizing text (no HTML)
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* eslint-env mocha */
|
||||
import { expect } from 'chai';
|
||||
import { Markdown } from 'meteor/wekan-markdown';
|
||||
|
||||
// Tests for the Admin Panel / Features / Security "Always show all code as plain
|
||||
// text" toggle. When enabled, the markdown helper renders the raw source escaped
|
||||
// (via escapeHtmlSource) so hidden content — HTML comments, the target of markdown
|
||||
// links, JavaScript and any other code — is shown literally, not executed. Here we
|
||||
// pin escapeHtmlSource, the escaper that makes that safe.
|
||||
describe('markdown — always show code as plain text (escapeHtmlSource)', function() {
|
||||
const esc = Markdown.escapeHtmlSource;
|
||||
|
||||
it('escapes <script> so it is shown, not executed', function() {
|
||||
expect(esc("<script>alert('x')</script>")).to.equal(
|
||||
"<script>alert('x')</script>",
|
||||
);
|
||||
});
|
||||
|
||||
it('reveals HTML comments instead of hiding them', function() {
|
||||
expect(esc('<!-- secret -->')).to.equal('<!-- secret -->');
|
||||
});
|
||||
|
||||
it('escapes ampersand first so entities are not double-decoded', function() {
|
||||
expect(esc('a & b')).to.equal('a & b');
|
||||
expect(esc('<')).to.equal('&lt;');
|
||||
});
|
||||
|
||||
it('escapes quotes used in markup attributes', function() {
|
||||
expect(esc('<a href="x">')).to.equal('<a href="x">');
|
||||
});
|
||||
|
||||
it('leaves plain text without HTML-significant characters unchanged (negative)', function() {
|
||||
expect(esc('just plain text 123')).to.equal('just plain text 123');
|
||||
});
|
||||
|
||||
it('leaves an empty string unchanged (negative)', function() {
|
||||
expect(esc('')).to.equal('');
|
||||
});
|
||||
});
|
||||
@@ -17,7 +17,25 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { expect } = require('chai');
|
||||
|
||||
const repoRoot = path.resolve(__dirname, '..', '..', '..');
|
||||
// Find the repo root by walking up from process.cwd()/PWD, NOT from the bare `__dirname`
|
||||
// global: under `meteor test` referencing `__dirname` makes Meteor inject a
|
||||
// `const __dirname` that collides with the one its CommonJS module wrapper already
|
||||
// provides, crashing the whole server bundle at boot with "Identifier '__dirname' has
|
||||
// already been declared" (same fix as server/lib/tests/dependencies.openapi.tests.js).
|
||||
function findRepoRoot(marker) {
|
||||
const seeds = [process.cwd(), process.env.PWD, process.env.OLDPWD].filter(Boolean);
|
||||
for (const seed of seeds) {
|
||||
let dir = seed;
|
||||
for (let i = 0; i < 12; i += 1) {
|
||||
try { fs.accessSync(path.join(dir, marker)); return dir; } catch (e) { /* walk up */ }
|
||||
const parent = path.dirname(dir);
|
||||
if (parent === dir) break;
|
||||
dir = parent;
|
||||
}
|
||||
}
|
||||
return process.cwd();
|
||||
}
|
||||
const repoRoot = findRepoRoot(path.join('client', 'components', 'rules', 'triggers', 'boardTriggers.jade'));
|
||||
const jadePath = path.join(
|
||||
repoRoot,
|
||||
'client',
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* eslint-env mocha */
|
||||
import { expect } from 'chai';
|
||||
import { getSecureDOMPurifyConfig, sanitizeHTML } from '/imports/lib/secureDOMPurify';
|
||||
|
||||
// Tests for the Admin Panel / Features / Security "Render links as plain text"
|
||||
// toggle and the underlying XSS hardening. Runs client-side, so DOMPurify has a
|
||||
// real DOM and sanitizeHTML() exercises the actual sanitizer, not just its config.
|
||||
describe('secureDOMPurify — render links as plain text + XSS hardening', function() {
|
||||
// Config-level assertions need no DOM, so they hold in any environment.
|
||||
describe('getSecureDOMPurifyConfig(options)', function() {
|
||||
it('forbids the <a> tag only when stripLinks is set', function() {
|
||||
expect(getSecureDOMPurifyConfig({ stripLinks: true }).FORBID_TAGS).to.include('a');
|
||||
});
|
||||
it('does NOT forbid <a> by default (negative)', function() {
|
||||
expect(getSecureDOMPurifyConfig().FORBID_TAGS).to.not.include('a');
|
||||
});
|
||||
it('keeps inner content so a stripped link leaves its visible text', function() {
|
||||
expect(getSecureDOMPurifyConfig({ stripLinks: true }).KEEP_CONTENT).to.equal(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('sanitizeHTML() link handling', function() {
|
||||
it('drops the <a> wrapper but keeps its visible text when stripLinks is true', function() {
|
||||
const out = sanitizeHTML('<a href="http://example.com">Company Board</a>', { stripLinks: true });
|
||||
expect(out).to.not.match(/<a\b/i);
|
||||
expect(out).to.contain('Company Board');
|
||||
});
|
||||
it('keeps a clickable <a> by default (negative)', function() {
|
||||
const out = sanitizeHTML('<a href="http://example.com">Company Board</a>');
|
||||
expect(out).to.match(/<a\b/i);
|
||||
expect(out).to.contain('Company Board');
|
||||
});
|
||||
});
|
||||
|
||||
describe('sanitizeHTML() XSS hardening (independent of stripLinks)', function() {
|
||||
it('strips a javascript: href', function() {
|
||||
const out = sanitizeHTML('<a href="javascript:alert(1)">x</a>').toLowerCase();
|
||||
expect(out).to.not.contain('javascript:');
|
||||
});
|
||||
it('strips event-handler attributes', function() {
|
||||
const out = sanitizeHTML('<img src="x" onerror="alert(1)">').toLowerCase();
|
||||
expect(out).to.not.contain('onerror');
|
||||
});
|
||||
it('removes <script> tags but keeps surrounding text', function() {
|
||||
const out = sanitizeHTML('<script>alert(1)</script>hello');
|
||||
expect(out.toLowerCase()).to.not.contain('<script');
|
||||
expect(out).to.contain('hello');
|
||||
});
|
||||
it('keeps a plain safe paragraph unchanged in spirit (negative)', function() {
|
||||
const out = sanitizeHTML('<p>just <strong>text</strong></p>');
|
||||
expect(out).to.contain('just');
|
||||
expect(out).to.match(/<strong\b/i);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -67,14 +67,27 @@ describe('subtaskNavTarget (#3743)', function() {
|
||||
expect(target.cardId).to.not.equal(parentCard._id);
|
||||
});
|
||||
|
||||
it('returns undefined when the subtask board is not loaded yet (#4762)', function() {
|
||||
it('falls back to the subtask boardId when its board is not loaded (#1853/#4762)', function() {
|
||||
// The deposit/target board is often ANOTHER board that is not in
|
||||
// minimongo while the parent board is open; navigation must still work
|
||||
// (the card route loads the board), it must not throw or no-op.
|
||||
const subtask = makeSubtask();
|
||||
subtask.board = () => undefined;
|
||||
expect(subtaskNavTarget(subtask)).to.equal(undefined);
|
||||
const target = subtaskNavTarget(subtask);
|
||||
expect(target.boardId).to.equal('subtaskBoardId');
|
||||
expect(target.slug).to.equal('board');
|
||||
expect(target.cardId).to.equal('subtaskRealId');
|
||||
});
|
||||
|
||||
it('returns undefined for a missing subtask', function() {
|
||||
expect(subtaskNavTarget(undefined)).to.equal(undefined);
|
||||
expect(subtaskNavTarget(null)).to.equal(undefined);
|
||||
});
|
||||
|
||||
it('returns undefined for a broken subtask with no board reference at all', function() {
|
||||
const subtask = makeSubtask();
|
||||
subtask.board = () => undefined;
|
||||
subtask.boardId = undefined;
|
||||
expect(subtaskNavTarget(subtask)).to.equal(undefined);
|
||||
});
|
||||
});
|
||||
+8
-11
@@ -5,6 +5,7 @@ import { findWhere, where, uniqBy, groupBy, indexBy, debounce, once } from '/imp
|
||||
import Settings from '/models/settings';
|
||||
import Users from '/models/users';
|
||||
import { computeBoardBackground } from '/models/lib/boardBackground';
|
||||
import { buildCardAttachmentMeta } from '/models/lib/attachmentMeta';
|
||||
|
||||
export const Utils = {
|
||||
async setBackgroundImage(url) {
|
||||
@@ -595,18 +596,14 @@ export const Utils = {
|
||||
})
|
||||
);
|
||||
},
|
||||
// Shared by every card attachment upload path — the card Attachments popup,
|
||||
// the clipboard upload AND images uploaded inside card comments through the
|
||||
// rich text editor (client/components/main/editor.js). Keeping the meta
|
||||
// identical (same meta.cardId) is what makes comment attachments appear in
|
||||
// the card's Attachments list (#3843); the actual logic lives in
|
||||
// models/lib/attachmentMeta.js so it can be unit tested.
|
||||
getCommonAttachmentMetaFrom(card) {
|
||||
const meta = {};
|
||||
if (card.isLinkedCard()) {
|
||||
meta.boardId = ReactiveCache.getCard(card.linkedId).boardId;
|
||||
meta.cardId = card.linkedId;
|
||||
} else {
|
||||
meta.boardId = card.boardId;
|
||||
meta.swimlaneId = card.swimlaneId;
|
||||
meta.listId = card.listId;
|
||||
meta.cardId = card._id;
|
||||
}
|
||||
return meta;
|
||||
return buildCardAttachmentMeta(card, id => ReactiveCache.getCard(id));
|
||||
},
|
||||
// Collection helpers (replacing underscore.js)
|
||||
findWhere,
|
||||
|
||||
+46
-22
@@ -10,6 +10,27 @@ import { Utils } from '/client/lib/utils';
|
||||
|
||||
let previousPath;
|
||||
|
||||
// On Sandstorm the grain is authenticated by the platform, not by a local WeKan
|
||||
// account. That login is delivered asynchronously over the DDP connection (via
|
||||
// connection.setUserId(), which — unlike a normal password login — does NOT set
|
||||
// Meteor.loggingIn()), so for the first moments after a grain opens Meteor.userId()
|
||||
// is still null even though the user is, and always will be, authenticated. There
|
||||
// is no local sign-in page in a grain. useraccounts' ensureSignedIn would bounce the
|
||||
// grain straight to the (nonexistent) atSignIn route on that brief null window,
|
||||
// stranding the user on a "Must be logged in" page instead of opening All Boards.
|
||||
const isSandstorm = Meteor.settings?.public?.sandstorm;
|
||||
|
||||
// Drop-in replacement for AccountsTemplates.ensureSignedIn used as a route
|
||||
// triggersEnter: a no-op on Sandstorm (the platform guarantees authentication and
|
||||
// the route repopulates reactively once Meteor.userId() lands), and the normal
|
||||
// useraccounts guard everywhere else.
|
||||
function ensureSignedInUnlessSandstorm(context, redirect, stop) {
|
||||
if (isSandstorm) {
|
||||
return undefined;
|
||||
}
|
||||
return AccountsTemplates.ensureSignedIn(context, redirect, stop);
|
||||
}
|
||||
|
||||
FlowRouter.triggers.exit([
|
||||
({ path }) => {
|
||||
previousPath = path;
|
||||
@@ -21,8 +42,11 @@ FlowRouter.triggers.exit([
|
||||
// redirected to; the chosen view is passed to boardList through the
|
||||
// `boardListMenu` Session value.
|
||||
function renderBoardList(ctx, menu) {
|
||||
// Redirect to sign-in immediately if user is not logged in
|
||||
if (!Meteor.userId()) {
|
||||
// Redirect to sign-in immediately if user is not logged in — except on Sandstorm,
|
||||
// where the platform authenticates asynchronously (see isSandstorm note above) and
|
||||
// there is no sign-in page. There we render the All Boards list, which reactively
|
||||
// fills in once the grain login lands, instead of bouncing to atSignIn.
|
||||
if (!Meteor.userId() && !isSandstorm) {
|
||||
FlowRouter.go('atSignIn');
|
||||
return;
|
||||
}
|
||||
@@ -48,7 +72,7 @@ function renderBoardList(ctx, menu) {
|
||||
|
||||
FlowRouter.route('/', {
|
||||
name: 'home',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
renderBoardList(this, 'starred');
|
||||
},
|
||||
@@ -56,7 +80,7 @@ FlowRouter.route('/', {
|
||||
|
||||
FlowRouter.route('/templates', {
|
||||
name: 'allboards-templates',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
renderBoardList(this, 'templates');
|
||||
},
|
||||
@@ -64,7 +88,7 @@ FlowRouter.route('/templates', {
|
||||
|
||||
FlowRouter.route('/remaining', {
|
||||
name: 'allboards-remaining',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
renderBoardList(this, 'remaining');
|
||||
},
|
||||
@@ -72,7 +96,7 @@ FlowRouter.route('/remaining', {
|
||||
|
||||
FlowRouter.route('/public', {
|
||||
name: 'public',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -96,7 +120,7 @@ FlowRouter.route('/public', {
|
||||
|
||||
FlowRouter.route('/accessibility', {
|
||||
name: 'accessibility',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -120,7 +144,7 @@ FlowRouter.route('/accessibility', {
|
||||
|
||||
FlowRouter.route('/support', {
|
||||
name: 'support',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -144,7 +168,7 @@ FlowRouter.route('/support', {
|
||||
|
||||
FlowRouter.route('/b/:id/:slug/rules', {
|
||||
name: 'board-rules',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action(params) {
|
||||
const currentBoard = params.id;
|
||||
Session.set('currentBoard', currentBoard);
|
||||
@@ -272,7 +296,7 @@ FlowRouter.route('/shortcuts', {
|
||||
|
||||
FlowRouter.route('/b/templates', {
|
||||
name: 'template-container',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -296,7 +320,7 @@ FlowRouter.route('/b/templates', {
|
||||
|
||||
FlowRouter.route('/my-cards', {
|
||||
name: 'my-cards',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Filter.reset();
|
||||
Session.set('sortBy', '');
|
||||
@@ -316,7 +340,7 @@ FlowRouter.route('/my-cards', {
|
||||
|
||||
FlowRouter.route('/due-cards', {
|
||||
name: 'due-cards',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Filter.reset();
|
||||
Session.set('sortBy', '');
|
||||
@@ -336,7 +360,7 @@ FlowRouter.route('/due-cards', {
|
||||
|
||||
FlowRouter.route('/global-search', {
|
||||
name: 'global-search',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Filter.reset();
|
||||
Session.set('sortBy', '');
|
||||
@@ -371,7 +395,7 @@ FlowRouter.route('/global-search', {
|
||||
// Mobile Bookmarks page
|
||||
FlowRouter.route('/bookmarks', {
|
||||
name: 'bookmarks',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action() {
|
||||
Filter.reset();
|
||||
Session.set('sortBy', '');
|
||||
@@ -409,7 +433,7 @@ FlowRouter.route('/broken-cards', {
|
||||
|
||||
FlowRouter.route('/import/:source', {
|
||||
name: 'import',
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [ensureSignedInUnlessSandstorm],
|
||||
action(params) {
|
||||
if (Session.get('currentBoard')) {
|
||||
Session.set('fromBoard', Session.get('currentBoard'));
|
||||
@@ -434,7 +458,7 @@ FlowRouter.route('/import/:source', {
|
||||
FlowRouter.route('/setting', {
|
||||
name: 'setting',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
ensureSignedInUnlessSandstorm,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -459,7 +483,7 @@ FlowRouter.route('/setting', {
|
||||
FlowRouter.route('/information', {
|
||||
name: 'information',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
ensureSignedInUnlessSandstorm,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -483,7 +507,7 @@ FlowRouter.route('/information', {
|
||||
FlowRouter.route('/people', {
|
||||
name: 'people',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
ensureSignedInUnlessSandstorm,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -507,7 +531,7 @@ FlowRouter.route('/people', {
|
||||
FlowRouter.route('/admin-reports', {
|
||||
name: 'admin-reports',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
ensureSignedInUnlessSandstorm,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -531,7 +555,7 @@ FlowRouter.route('/admin-reports', {
|
||||
FlowRouter.route('/attachments', {
|
||||
name: 'attachments',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
ensureSignedInUnlessSandstorm,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -555,7 +579,7 @@ FlowRouter.route('/attachments', {
|
||||
FlowRouter.route('/translation', {
|
||||
name: 'translation',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
ensureSignedInUnlessSandstorm,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
@@ -579,7 +603,7 @@ FlowRouter.route('/translation', {
|
||||
FlowRouter.route('/admin-features', {
|
||||
name: 'admin-features',
|
||||
triggersEnter: [
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
ensureSignedInUnlessSandstorm,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
|
||||
@@ -686,13 +686,15 @@ services:
|
||||
# When true, sync a user's LDAP groups as Wekan Organizations.
|
||||
#- LDAP_SYNC_ORGANIZATIONS=false
|
||||
#
|
||||
# Comma separated allowlist of LDAP group names to sync as Organizations. Empty = all of the user's groups.
|
||||
# Comma separated allowlist of LDAP group names/patterns to sync as Organizations.
|
||||
# Wildcards supported: * (any chars), ? (single char). Empty = all of the user's groups.
|
||||
#- LDAP_SYNC_ORGANIZATIONS_GROUPS=
|
||||
#
|
||||
# When true, sync a user's LDAP groups as Wekan Teams.
|
||||
#- LDAP_SYNC_TEAMS=false
|
||||
#
|
||||
# Comma separated allowlist of LDAP group names to sync as Teams. Empty = all of the user's groups.
|
||||
# Comma separated allowlist of LDAP group names/patterns to sync as Teams.
|
||||
# Wildcards supported: * (any chars), ? (single char). Empty = all of the user's groups.
|
||||
#- LDAP_SYNC_TEAMS_GROUPS=
|
||||
#---------------------------------------------------------------------
|
||||
# Login to LDAP automatically with HTTP header.
|
||||
|
||||
@@ -920,13 +920,15 @@ services:
|
||||
# When true, sync a user's LDAP groups as Wekan Organizations.
|
||||
#- LDAP_SYNC_ORGANIZATIONS=false
|
||||
#
|
||||
# Comma separated allowlist of LDAP group names to sync as Organizations. Empty = all of the user's groups.
|
||||
# Comma separated allowlist of LDAP group names/patterns to sync as Organizations.
|
||||
# Wildcards supported: * (any chars), ? (single char). Empty = all of the user's groups.
|
||||
#- LDAP_SYNC_ORGANIZATIONS_GROUPS=
|
||||
#
|
||||
# When true, sync a user's LDAP groups as Wekan Teams.
|
||||
#- LDAP_SYNC_TEAMS=false
|
||||
#
|
||||
# Comma separated allowlist of LDAP group names to sync as Teams. Empty = all of the user's groups.
|
||||
# Comma separated allowlist of LDAP group names/patterns to sync as Teams.
|
||||
# Wildcards supported: * (any chars), ? (single char). Empty = all of the user's groups.
|
||||
#- LDAP_SYNC_TEAMS_GROUPS=
|
||||
#---------------------------------------------------------------------
|
||||
# Login to LDAP automatically with HTTP header.
|
||||
|
||||
+13
-13
@@ -15,9 +15,8 @@
|
||||
#
|
||||
# The FerretDB binary is downloaded (once, then cached on the volume) from the
|
||||
# newest wekan/FerretDB release: https://github.com/wekan/FerretDB/releases
|
||||
# The ferretdb.zip there contains ferretdb/<arch>/ferretdb-<arch> for every
|
||||
# platform; the container picks the binary matching its architecture (amd64,
|
||||
# arm64, ppc64le, s390x, riscv64, ...).
|
||||
# Each platform is a separate ferretdb-<arch> asset there; the container downloads
|
||||
# only the one matching its architecture (amd64, arm64, ppc64le, s390x, riscv64, ...).
|
||||
#
|
||||
# Setup (this is the default docker-compose.yml, so no -f is needed):
|
||||
# docker compose up -d
|
||||
@@ -50,16 +49,14 @@ services:
|
||||
if [ ! -x "$$BIN" ]; then
|
||||
echo "Fetching FerretDB v1 from the wekan/FerretDB release ..."
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq --no-install-recommends curl unzip ca-certificates >/dev/null
|
||||
apt-get install -y -qq --no-install-recommends curl ca-certificates >/dev/null
|
||||
arch="$$(dpkg --print-architecture)"
|
||||
case "$$arch" in ppc64el) arch=ppc64le ;; esac
|
||||
mkdir -p /data/bin
|
||||
curl -fSL --retry 5 -o /tmp/ferretdb.zip \
|
||||
"https://github.com/wekan/FerretDB/releases/$${FERRETDB_RELEASE}/ferretdb.zip"
|
||||
unzip -o -j /tmp/ferretdb.zip "ferretdb/$${arch}/ferretdb-$${arch}" -d /data/bin
|
||||
mv "/data/bin/ferretdb-$${arch}" "$$BIN"
|
||||
# Download only this arch's binary (per-arch release assets, no ferretdb.zip).
|
||||
curl -fSL --retry 5 -o "$$BIN" \
|
||||
"https://github.com/wekan/FerretDB/releases/$${FERRETDB_RELEASE}/ferretdb-$${arch}"
|
||||
chmod +x "$$BIN"
|
||||
rm -f /tmp/ferretdb.zip
|
||||
fi
|
||||
mkdir -p /data/files/db
|
||||
exec "$$BIN" \
|
||||
@@ -131,8 +128,9 @@ services:
|
||||
# FerretDB has no MongoDB change streams / replica-set oplog, so use polling:
|
||||
- DEFAULT_METEOR_REACTIVITY_ORDER=polling
|
||||
- METEOR_REACTIVITY_ORDER=polling
|
||||
- DDP_TRANSPORT=uws
|
||||
#- DDP_TRANSPORT=sockjs
|
||||
# uws does not work at s390x. sockjs works.
|
||||
#- DDP_TRANSPORT=uws
|
||||
- DDP_TRANSPORT=sockjs
|
||||
#-----------------------------------------------------------------
|
||||
# ==== WRITEABLE PATH FOR FILE UPLOADS ====
|
||||
- WRITABLE_PATH=/data
|
||||
@@ -715,13 +713,15 @@ services:
|
||||
# When true, sync a user's LDAP groups as Wekan Organizations.
|
||||
#- LDAP_SYNC_ORGANIZATIONS=false
|
||||
#
|
||||
# Comma separated allowlist of LDAP group names to sync as Organizations. Empty = all of the user's groups.
|
||||
# Comma separated allowlist of LDAP group names/patterns to sync as Organizations.
|
||||
# Wildcards supported: * (any chars), ? (single char). Empty = all of the user's groups.
|
||||
#- LDAP_SYNC_ORGANIZATIONS_GROUPS=
|
||||
#
|
||||
# When true, sync a user's LDAP groups as Wekan Teams.
|
||||
#- LDAP_SYNC_TEAMS=false
|
||||
#
|
||||
# Comma separated allowlist of LDAP group names to sync as Teams. Empty = all of the user's groups.
|
||||
# Comma separated allowlist of LDAP group names/patterns to sync as Teams.
|
||||
# Wildcards supported: * (any chars), ? (single char). Empty = all of the user's groups.
|
||||
#- LDAP_SYNC_TEAMS_GROUPS=
|
||||
#---------------------------------------------------------------------
|
||||
# Login to LDAP automatically with HTTP header.
|
||||
|
||||
@@ -46,6 +46,14 @@ When calling a production Wekan server, ensure it is running via HTTPS and has a
|
||||
| `POST` | `/api/boards/:boardId/lists/:listId/cards` | [Add a card to a list, board, and swimlane.](Cards.md#add-card-to-list-board-swimlane) |
|
||||
| `PUT` | `/api/boards/:boardId/lists/:fromListId/cards/:cardId` | [Update a card.](Cards.md#update-a-card) |
|
||||
| `DELETE` | `/api/boards/:boardId/lists/:listId/cards/:cardId` | [Delete a card.](Cards.md#update-a-card) |
|
||||
### Rules (Board Automation / IFTTT)
|
||||
| HTTP Method | Url | Short Description |
|
||||
| :--- | :--- | :--- |
|
||||
| `GET` | `/api/boards/:boardId/rules` | [List all automation rules of a board.](Rules.md#list-rules) |
|
||||
| `GET` | `/api/boards/:boardId/rules/:ruleId` | [Get one rule with its trigger and action.](Rules.md#get-one-rule) |
|
||||
| `POST` | `/api/boards/:boardId/rules` | [Add an automation rule, e.g. add/remove a member when a card is moved to/from a list (#2674).](Rules.md#add-a-rule) |
|
||||
| `PUT` | `/api/boards/:boardId/rules/:ruleId` | [Edit a rule's title, trigger and/or action.](Rules.md#edit-a-rule) |
|
||||
| `DELETE` | `/api/boards/:boardId/rules/:ruleId` | [Remove a rule and its trigger and action.](Rules.md#delete-a-rule) |
|
||||
### Board Domain Sharing
|
||||
| HTTP Method | Url | Short Description |
|
||||
| :--- | :--- | :--- |
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
# Rules (Board Automation / IFTTT) REST API
|
||||
|
||||
Board automation rules ("IFTTT rules") link a **trigger** (an event on the
|
||||
board) to an **action** (what happens to the card/board). The REST API embeds
|
||||
the full trigger and action inline, so a rule is self-contained.
|
||||
|
||||
This API makes the workflow of
|
||||
[issue #2674](https://github.com/wekan/wekan/issues/2674) scriptable: add a
|
||||
user to a card when it is moved **to** a list, and remove the user again when
|
||||
the card is moved **away from** that list.
|
||||
|
||||
## Summary
|
||||
|
||||
| HTTP Method | Url | Short Description |
|
||||
| :--- | :--- | :--- |
|
||||
| `GET` | `/api/boards/:boardId/rules` | List all automation rules of a board |
|
||||
| `GET` | `/api/boards/:boardId/rules/:ruleId` | Get one rule (with its trigger and action) |
|
||||
| `POST` | `/api/boards/:boardId/rules` | Add an automation rule |
|
||||
| `PUT` | `/api/boards/:boardId/rules/:ruleId` | Edit a rule's title, trigger and/or action |
|
||||
| `DELETE` | `/api/boards/:boardId/rules/:ruleId` | Remove a rule (and its trigger and action) |
|
||||
|
||||
All endpoints require a `Bearer` token; write endpoints require board write
|
||||
access (BoardAdmin).
|
||||
|
||||
## Trigger matching and the `*` wildcard
|
||||
|
||||
The rule engine matches an incoming board activity against **every** matching
|
||||
field of the trigger's `activityType` (for example `moveCard` matches on
|
||||
`boardId`, `listName`, `oldListName`, `userId`, `swimlaneName`, `cardTitle`).
|
||||
A field set to `'*'` matches anything.
|
||||
|
||||
You only need to supply the fields you want to constrain: any matching field
|
||||
missing from the trigger you POST/PUT is stored as the `'*'` wildcard
|
||||
automatically. (Before this normalization existed, an API-created trigger
|
||||
that omitted a field such as `userId` could never match any activity, so the
|
||||
rule silently never fired — the bug reported in issue #2674.)
|
||||
|
||||
### Trigger `activityType` values
|
||||
|
||||
| `activityType` | fires when | matching fields |
|
||||
| :--- | :--- | :--- |
|
||||
| `createCard` | a card is created | `boardId`, `listName`, `userId`, `swimlaneName`, `cardTitle` |
|
||||
| `moveCard` | a card is moved to/from a list or swimlane | `boardId`, `listName` (destination), `oldListName` (source), `userId`, `swimlaneName`, `cardTitle` |
|
||||
| `archivedCard` / `restoredCard` | a card is archived / unarchived | `boardId`, `userId`, `cardTitle` |
|
||||
| `joinMember` / `unjoinMember` | a member is added to / removed from a card | `boardId`, `username`, `userId` |
|
||||
| `addChecklist` / `removeChecklist` / `completeChecklist` / `uncompleteChecklist` | checklist events | `boardId`, `checklistName`, `userId` |
|
||||
| `addedChecklistItem` / `removedChecklistItem` / `checkedItem` / `uncheckedItem` | checklist item events | `boardId`, `checklistItemName`, `userId` |
|
||||
| `addAttachment` / `deleteAttachment` | attachment events | `boardId`, `userId` |
|
||||
| `addedLabel` / `removedLabel` | label events | `boardId`, `labelId`, `userId` |
|
||||
| `scheduledTrigger` | time-based (due/aging/recurring); see `scheduleKind`, `days`, `atTime` | evaluated by the scheduler, not by activities |
|
||||
|
||||
For a card moved **to** a list, constrain `listName` (the destination list's
|
||||
title). For a card moved **away from** a list, constrain `oldListName` (the
|
||||
source list's title) and leave `listName` as `'*'`.
|
||||
|
||||
### Action `actionType` values
|
||||
|
||||
`moveCardToTop`, `moveCardToBottom`, `sendEmail`, `setDate`, `updateDate`,
|
||||
`removeDate`, `setDateRelative`, `archive`, `unarchive`, `setColor`,
|
||||
`addLabel`, `removeLabel`, `addMember`, `removeMember`, `checkAll`,
|
||||
`uncheckAll`, `checkItem`, `uncheckItem`, `addChecklist`, `removeChecklist`,
|
||||
`addChecklistWithItems`, `addSwimlane`, `createCard`, `linkCard`,
|
||||
`markCardComplete`, `markCardIncomplete`, `sortList`, `moveAllCardsInList`.
|
||||
|
||||
The member actions take a `username`:
|
||||
|
||||
* `{"actionType": "addMember", "username": "someuser"}` — add the user to the card
|
||||
* `{"actionType": "removeMember", "username": "someuser"}` — remove the user from the card
|
||||
* `{"actionType": "removeMember", "username": "*"}` — remove **all** members from the card
|
||||
|
||||
## List rules
|
||||
|
||||
```shell
|
||||
curl -H "Authorization: Bearer TOKEN" \
|
||||
-X GET \
|
||||
http://localhost:3000/api/boards/BOARDID/rules
|
||||
```
|
||||
|
||||
## Get one rule
|
||||
|
||||
```shell
|
||||
curl -H "Authorization: Bearer TOKEN" \
|
||||
-X GET \
|
||||
http://localhost:3000/api/boards/BOARDID/rules/RULEID
|
||||
```
|
||||
|
||||
Result example:
|
||||
|
||||
```json
|
||||
{
|
||||
"_id": "8gDW2AtwbpNbqSyEw",
|
||||
"title": "Remove member when moved away from Doing",
|
||||
"trigger": {
|
||||
"activityType": "moveCard",
|
||||
"listName": "*",
|
||||
"oldListName": "Doing",
|
||||
"swimlaneName": "*",
|
||||
"cardTitle": "*",
|
||||
"userId": "*"
|
||||
},
|
||||
"action": {
|
||||
"actionType": "removeMember",
|
||||
"username": "someuser"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Add a rule
|
||||
|
||||
```shell
|
||||
curl -H "Authorization: Bearer TOKEN" \
|
||||
-H "Content-type: application/json" \
|
||||
-X POST \
|
||||
http://localhost:3000/api/boards/BOARDID/rules \
|
||||
-d '{
|
||||
"title": "Add member when moved to Doing",
|
||||
"trigger": { "activityType": "moveCard", "listName": "Doing" },
|
||||
"action": { "actionType": "addMember", "username": "someuser" }
|
||||
}'
|
||||
```
|
||||
|
||||
### Full example: issue #2674 workflow
|
||||
|
||||
Add the user when a card is moved **to** the list "Doing", remove the user
|
||||
again when the card is moved **away from** "Doing":
|
||||
|
||||
```shell
|
||||
# Rule 1: card moved TO "Doing" -> add member
|
||||
curl -H "Authorization: Bearer TOKEN" -H "Content-type: application/json" -X POST \
|
||||
http://localhost:3000/api/boards/BOARDID/rules \
|
||||
-d '{ "title": "Add member on move to Doing",
|
||||
"trigger": { "activityType": "moveCard", "listName": "Doing" },
|
||||
"action": { "actionType": "addMember", "username": "someuser" } }'
|
||||
|
||||
# Rule 2: card moved AWAY FROM "Doing" -> remove member
|
||||
curl -H "Authorization: Bearer TOKEN" -H "Content-type: application/json" -X POST \
|
||||
http://localhost:3000/api/boards/BOARDID/rules \
|
||||
-d '{ "title": "Remove member on move from Doing",
|
||||
"trigger": { "activityType": "moveCard", "oldListName": "Doing" },
|
||||
"action": { "actionType": "removeMember", "username": "someuser" } }'
|
||||
```
|
||||
|
||||
The omitted trigger fields (`listName` in rule 2, `oldListName` in rule 1,
|
||||
plus `userId`, `swimlaneName`, `cardTitle`) are stored as `'*'` wildcards.
|
||||
|
||||
## Edit a rule
|
||||
|
||||
Any of `title`, `trigger` and `action` may be supplied; a supplied trigger or
|
||||
action document replaces the stored fields. When the supplied trigger includes
|
||||
an `activityType`, its missing matching fields are defaulted to `'*'` too.
|
||||
|
||||
```shell
|
||||
curl -H "Authorization: Bearer TOKEN" \
|
||||
-H "Content-type: application/json" \
|
||||
-X PUT \
|
||||
http://localhost:3000/api/boards/BOARDID/rules/RULEID \
|
||||
-d '{ "action": { "actionType": "removeMember", "username": "*" } }'
|
||||
```
|
||||
|
||||
## Delete a rule
|
||||
|
||||
Removes the rule together with its trigger and action documents.
|
||||
|
||||
```shell
|
||||
curl -H "Authorization: Bearer TOKEN" \
|
||||
-X DELETE \
|
||||
http://localhost:3000/api/boards/BOARDID/rules/RULEID
|
||||
```
|
||||
|
||||
## Python CLI (api.py)
|
||||
|
||||
The bundled `api.py` exposes the same capability:
|
||||
|
||||
```shell
|
||||
python3 api.py listrules BOARDID
|
||||
python3 api.py getrule BOARDID RULEID
|
||||
python3 api.py addrule BOARDID 'TITLE' 'TRIGGER_JSON' 'ACTION_JSON'
|
||||
python3 api.py editrule BOARDID RULEID 'PATCH_JSON'
|
||||
python3 api.py removerule BOARDID RULEID
|
||||
|
||||
# Issue #2674: remove a user from the card when it is moved away from a list
|
||||
python3 api.py addrule BOARDID 'Remove member on move from Doing' \
|
||||
'{"activityType":"moveCard","oldListName":"Doing"}' \
|
||||
'{"actionType":"removeMember","username":"someuser"}'
|
||||
```
|
||||
@@ -1,3 +1,32 @@
|
||||
## Built-in: WeKan cpu-exec runs binaries with qemu-user automatically
|
||||
|
||||
Since WeKan 9.96 (issue [#6458](https://github.com/wekan/wekan/issues/6458)), WeKan ships a general
|
||||
`cpu-exec` helper on every Linux platform — in the Snap (`$SNAP/bin/cpu-exec`), in every
|
||||
`wekan-<version>-<arch>.zip` bundle (`bundle/cpu-exec`, next to a same-arch `qemu-<arch>` static
|
||||
binary), in the Docker image (`/build/cpu-exec`) and in the Sandstorm .spk. It checks
|
||||
`/proc/cpuinfo` for the CPU features a binary needs and, when one is missing, transparently re-runs
|
||||
the binary through qemu-user (which implements the full modern instruction set):
|
||||
|
||||
```
|
||||
cpu-exec --features x86_64=avx,aarch64=atomics mongod --dbpath ...
|
||||
```
|
||||
|
||||
- With no `--features` (or no entry for the current architecture) it is a plain `exec` — zero
|
||||
overhead, safe for every binary.
|
||||
- `WEKAN_REQUIRED_CPU_FEATURES` (same syntax) overrides `--features`, so any script or user can
|
||||
declare requirements without editing commands.
|
||||
- qemu-user lookup order: `$WEKAN_QEMU_USER`, `qemu-<arch>` next to cpu-exec (the bundle),
|
||||
`$SNAP/qemu-<arch>`, the Snap's `migratemongo/avx/qemu-x86_64`, then `qemu-<arch>`/
|
||||
`qemu-<arch>-static` on `$PATH` (install with `sudo apt install qemu-user-static`).
|
||||
- `aarch64=atomics` (LSE, ARMv8.1) is the practical `/proc/cpuinfo` proxy for MongoDB's ARMv8.2-A
|
||||
requirement: Raspberry Pi 3/4 (Cortex-A53/A72) lack it, ARMv8.2-A cores have it.
|
||||
|
||||
The Snap's `mongodb-control` and `migration-control` run every `mongod 7` invocation through
|
||||
cpu-exec, so WeKan's MongoDB works (slower) on CPUs without AVX — including hypervisors/sandboxes
|
||||
that mask AVX — and the MongoDB → FerretDB migration can read modern MongoDB data there too.
|
||||
FerretDB (pure Go + SQLite) needs no special CPU features and is the native-speed alternative:
|
||||
`snap run wekan.migrate`.
|
||||
|
||||
## Meteor podcast about using MongoDB at unsupported CPUs
|
||||
|
||||
- https://www.youtube.com/watch?v=bnU9bUVeN04
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
## Built-in: WeKan cpu-exec does this automatically
|
||||
|
||||
Since WeKan 9.96, the manual wrapper below is built in: every Linux WeKan bundle/Snap/Docker
|
||||
image ships a general `cpu-exec` helper (plus a same-arch `qemu-<arch>` static binary in the
|
||||
bundles) that runs any binary through qemu-user automatically when the CPU lacks features the
|
||||
binary needs — e.g. MongoDB 5+ on Raspberry Pi 4 and older (ARMv8.0, no ARMv8.2-A):
|
||||
|
||||
```
|
||||
cpu-exec --features x86_64=avx,aarch64=atomics mongod --config /etc/mongod.conf
|
||||
```
|
||||
|
||||
See [mongodb-avx-qemu.md](mongodb-avx-qemu.md) for details. The manual steps below still work
|
||||
for a system-wide MongoDB outside WeKan.
|
||||
|
||||
## Meteor podcast about using MongoDB at unsupported CPUs
|
||||
|
||||
- https://www.youtube.com/watch?v=bnU9bUVeN04
|
||||
|
||||
@@ -65,6 +65,69 @@ prevents board admins from editing or deleting other users' comments — only a
|
||||
author may edit or delete it. Enforced server-side. See
|
||||
[Comment replies and editing restriction](../Comment-Replies-And-Editing-Restriction.md).
|
||||
|
||||
## Features tab
|
||||
|
||||
**Admin Panel → Features** groups optional, instance-wide capabilities into
|
||||
categories in a side menu. Every toggle is a global setting, saved immediately when
|
||||
clicked, and defaults to **off** (current behaviour) unless noted.
|
||||
|
||||
### Performance
|
||||
|
||||
- **Card loading** — `all` (every card is loaded into the browser, the default) or
|
||||
`lazy` (each list loads only the currently visible cards plus a live count, for
|
||||
very large boards). Also set by the `CARDS_LOADING` environment variable.
|
||||
|
||||
### Security
|
||||
|
||||
Rich-text rendering hardening:
|
||||
|
||||
- **Render links as plain text** (`renderLinksAsPlainText`) — all links (markdown
|
||||
`[label](url)` and raw HTML `<a href>`) render as plain, non-clickable text in
|
||||
every rich-text field (board and card titles, descriptions, comments, checklists,
|
||||
…), so a link can never be clicked or hide a misleading target.
|
||||
- **Always show all code as plain text** (`alwaysShowCodeAsText`) — rich text is
|
||||
never rendered as markdown/HTML; the whole source is shown escaped, revealing HTML
|
||||
comments (`<!-- -->`), the target of markdown links, JavaScript and any other code.
|
||||
All code stays visible, not clickable, not running.
|
||||
|
||||
Import / export privacy (all enforced server-side, so they cannot be bypassed from
|
||||
the client):
|
||||
|
||||
- **Disable all import** (`disableAllImport`) / **Disable all export**
|
||||
(`disableAllExport`) — master switches that turn off every import / export feature
|
||||
(WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject,
|
||||
GitHub/GitLab/Gitea/Forgejo, board clone, single-attachment export). The matching
|
||||
import / export menu options are also hidden in the UI.
|
||||
- **Disable import avatars** (`disableImportAvatars`) — avatars are never imported,
|
||||
from WeKan JSON import, Trello import, or external identity-provider sync on login
|
||||
(LDAP, OIDC/OAuth2). Gated at the single `localizeAvatarFromBuffer` choke point.
|
||||
- **Disable export avatars** (`disableExportAvatars`) — avatars are never included
|
||||
when exporting (WeKan JSON and CSV export).
|
||||
- **Anonymize import users** (`anonymizeImportUsers`) / **Anonymize export users**
|
||||
(`anonymizeExportUsers`) — replace every user's username, full name and initials
|
||||
with counter placeholders (`user1`, `user2`, …), drop their avatar, and rewrite
|
||||
`@username` mentions plus the requested-by / assigned-by fields inside card and
|
||||
comment content. The imported board / exported file then carries no real user
|
||||
identity. The placeholder word "user" follows the language of the person
|
||||
importing / exporting (e.g. `käyttäjä1` in Finnish). Both export paths — the
|
||||
in-memory `build()` and the streaming `buildStream()` — are covered.
|
||||
|
||||
### Notifications
|
||||
|
||||
Privacy controls for deployments that must limit activity tracking, notifications
|
||||
or watching (e.g. to comply with local law or an organization's policy)
|
||||
([#5820](https://github.com/wekan/wekan/issues/5820)), enforced server-side:
|
||||
|
||||
- **Disable all activities** (`disableActivities`) — activity-feed entries are
|
||||
neither recorded nor shown anywhere (board sidebar and card activity tab). No
|
||||
history of who did what is kept.
|
||||
- **Disable all notifications** (`disableNotifications`) — WeKan never sends watch
|
||||
notifications for any activity. Activities can still be recorded (unless also
|
||||
disabled); only the notifications are suppressed.
|
||||
- **Disable watch** (`disableWatch`) — the watch feature is turned off: users cannot
|
||||
subscribe to boards, lists or cards, any watch-level change is rejected, and the
|
||||
watch button is hidden.
|
||||
|
||||
## Sandstorm platform
|
||||
|
||||
On Sandstorm, authentication (LDAP, passwordless email, SAML, GitHub and Google
|
||||
|
||||
+12
-4
@@ -179,12 +179,15 @@ Source). On Snap use the lower-case dash-separated equivalent (for example
|
||||
- `LDAP_SYNC_ORGANIZATIONS` (default `false`) — when `true`, a user's LDAP groups
|
||||
are synced into that user's Wekan **Organizations**.
|
||||
- `LDAP_SYNC_ORGANIZATIONS_GROUPS` (default empty) — comma-separated list of LDAP
|
||||
group names to sync as Organizations. Leave empty to sync all of the user's
|
||||
groups.
|
||||
group names/patterns to sync as Organizations. Leave empty to sync all of the
|
||||
user's groups. Supports wildcards: `*` (any number of characters) and `?`
|
||||
(single character).
|
||||
- `LDAP_SYNC_TEAMS` (default `false`) — when `true`, a user's LDAP groups are
|
||||
synced into that user's Wekan **Teams**.
|
||||
- `LDAP_SYNC_TEAMS_GROUPS` (default empty) — comma-separated list of LDAP group
|
||||
names to sync as Teams. Leave empty to sync all of the user's groups.
|
||||
names/patterns to sync as Teams. Leave empty to sync all of the user's
|
||||
groups. Supports wildcards: `*` (any number of characters) and `?` (single
|
||||
character).
|
||||
|
||||
Notes:
|
||||
|
||||
@@ -382,7 +385,12 @@ services:
|
||||
# LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS :
|
||||
# example : LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=true
|
||||
- LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
|
||||
# LDAP_ENCRYPTION : If using LDAPS
|
||||
# LDAP_ENCRYPTION : Connection encryption. Accepted values:
|
||||
# 'true' : LDAPS, TLS from the first byte (usually port 636)
|
||||
# 'starttls' : connect unencrypted (usually port 389), then upgrade with STARTTLS
|
||||
# 'false' : no encryption (default; strongly advised against)
|
||||
# Deprecated but still working: 'ssl' (same as 'true'), 'tls' (same as 'starttls').
|
||||
# Any other value logs a warning and means no encryption.
|
||||
# example : LDAP_ENCRYPTION=true
|
||||
- LDAP_ENCRYPTION=false
|
||||
# LDAP_CA_CERT : The certification for the LDAPS server
|
||||
|
||||
@@ -96,9 +96,9 @@ Start from the 0.6.0 base, then:
|
||||
3.x CLIs need). The importer reads the 3.0 data with these — the modern Node driver cannot
|
||||
speak to a 3.0/3.2 server. Reuse the same tools the snap's
|
||||
[`migratemongo`](https://github.com/wekan/migratemongo) provides (amd64, x86_64).
|
||||
- **Add** `ferretdb` — the `ferretdb-amd64` binary from `ferretdb.zip`
|
||||
- **Add** `ferretdb` — the `ferretdb-amd64` binary downloaded directly
|
||||
(newest release of [wekan/FerretDB](https://github.com/wekan/FerretDB/releases); the same
|
||||
artifact `release-all.yml` unzips as `ferretdb/amd64/ferretdb-amd64`).
|
||||
`ferretdb-amd64` asset `release-all.yml` embeds).
|
||||
- **Add** `migrate-mongo3-to-ferretdb.mjs` — copy verbatim from
|
||||
[`snap-src/bin/migrate-mongo3-to-ferretdb.mjs`](../../../../../snap-src/bin/migrate-mongo3-to-ferretdb.mjs);
|
||||
it is entirely env/path‑driven and needs no changes.
|
||||
@@ -356,12 +356,12 @@ and refreshes.
|
||||
0.4.1/0.5.0/0.5.1, and its swapped node is ancient — we install Node 24 anyway). The dead
|
||||
`releases.wekan.team/dev/meteor-spk/projects.7z` fetch is removed.
|
||||
- The assembly script ([`sandstorm-src/build-deps.sh`](../../../../../sandstorm-src/build-deps.sh))
|
||||
modernizes `meteor-spk.deps`: swap in Node 24, add `ferretdb-amd64` (from `ferretdb.zip`), add
|
||||
modernizes `meteor-spk.deps`: swap in Node 24, add `ferretdb-amd64` (per-arch asset from the wekan/FerretDB release), add
|
||||
`migratemongo/{bin,lib}` (`mongoexport` + `mongo` + old libs), copy
|
||||
[`sandstorm-src/start.js`](../../../../../sandstorm-src/start.js) → `meteor-spk.deps/start.js`
|
||||
and [`snap-src/bin/migrate-mongo3-to-ferretdb.mjs`](../../../../../snap-src/bin/migrate-mongo3-to-ferretdb.mjs)
|
||||
→ `meteor-spk.deps/`, **keep `niscud`**, and regenerate the lib tree with `gather-deps` on ubuntu‑24.04.
|
||||
- Fetch the extra binaries (Node 24, `ferretdb.zip`, migratemongo CLIs) from **GitHub release
|
||||
- Fetch the extra binaries (Node 24, `ferretdb-amd64`, migratemongo CLIs) from **GitHub release
|
||||
assets** — `releases.wekan.team` no longer exists, so any required build files live on GitHub
|
||||
releases (e.g. `wekan/wekan` or a dedicated release).
|
||||
|
||||
|
||||
@@ -2,6 +2,69 @@
|
||||
|
||||
# Sandstorm at Debian and Ubuntu
|
||||
|
||||
### New Sandstorm WeKan at 2026-07
|
||||
|
||||
Backup your current Sandstorm first !
|
||||
|
||||
1. Please first backup your Sandstorm https://docs.sandstorm.io/en/latest/administering/backups/
|
||||
2. Please first download all of your grains to .zip files from top menu row down arrow button, just in case.
|
||||
|
||||
This new Sandstorm WeKan uses fork of FerretDB v1 SQLite at https://github.com/wekan/FerretDB
|
||||
|
||||
- FerretDB is drop-in replacement for MongoDB 7 Server
|
||||
- FerretDB implements MongoDB 7 server wire protocol
|
||||
- FerretDB converts MongoDB Javascript queries to SQLite SQL queries
|
||||
- FerretDB saves data to SQLite database
|
||||
- Fork has additional MongoDB features
|
||||
- Fork is maintained by xet7
|
||||
|
||||
Migrating old MongoDB 3 data
|
||||
|
||||
- If there is old WeKan data, it is automatically migrated when opening old WeKan grain.
|
||||
Attachments are migrated from MongoDB to files/attachments.
|
||||
Text data is migrated from MongoDB to SQLite at files/db/wekan.sqlite .
|
||||
- After migrating, you may get error, that browser can not open that page embedded to other page.
|
||||
So you need to close WeKan grain and open it again. Sorry, trying to fix it later.
|
||||
|
||||
All Boards page
|
||||
|
||||
- WeKan starts at All Boards page Favorites
|
||||
- All your boards are at first at Remaining, until you Star to have your board at Favorites
|
||||
- You can move boards from Remaining to your personal Workspaces or Sub-Workspaces
|
||||
|
||||
After migrating, free some disk space
|
||||
|
||||
- If after migrating you would like to free disk space of WeKan grain
|
||||
by deleting old MongoDB raw database files
|
||||
- At right top corner, click your WeKan username at WeKan board (not at Sandstorm black backround) /
|
||||
Member Settings / Admin Panel / Attachments / Sandstorm / Delete raw MongoDB database files.
|
||||
|
||||
Cover image
|
||||
|
||||
- You can enable it for minicard and card at:
|
||||
Right Sidebar/Board Settings/Card Settings/Cover Image
|
||||
(at bottom of Card Settings list).
|
||||
|
||||
Download Official Version
|
||||
|
||||
- [Official Sandstorm Store](https://apps.sandstorm.io/app/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h)
|
||||
|
||||
Download Newest Test Version
|
||||
|
||||
1. Please backup first.
|
||||
2. Go to [Sandstorm Test App Loader](https://mnutt.github.io/sandstorm-test-app-loader/?spk_url=https%3A%2F%2Fgithub.com%2Fwekan%2Fwekan%2Freleases%2Fdownload%2Fv9.89%2Fwekan-sandstorm-2026_07_13-16_54_56.spk&package_id=1c39541fb4710bdb04a68d0b66e9d634)
|
||||
3. Copy newest wekan.spk URL from https://github.com/wekan/wekan/releases to Sandstorm Test App Loader page
|
||||
4. Write your Sandstorm Instance URL to Sandstorm Test Loader page
|
||||
5. Click Install
|
||||
6. Later, newest WeKan will also be added to [Experimental](https://apps.sandstorm.io/app/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h?experimental=true)
|
||||
and [Official](https://apps.sandstorm.io/app/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h) Sandstorm Store.
|
||||
|
||||
About CloudFlare and uploading wekan.spk file
|
||||
|
||||
- If your Sandstorm you use CloudFlare, there may be 100 MB file size upload limit,
|
||||
it prevents uploading wekan.spk as file to your Sandstorm
|
||||
- So instead use above Sandstorm Test App Loader to install Newest Test Version
|
||||
|
||||
### Sandstorm Radicale: Calendars and Contacts
|
||||
|
||||
- 2025-08-05
|
||||
@@ -141,7 +204,8 @@ Install to your own server. Automatic updates, tested before release. Sandstorm
|
||||
|
||||
## Wekan App
|
||||
|
||||
Wekan at [experimental](https://apps.sandstorm.io/app/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h?experimental=true) or [official](https://apps.sandstorm.io/app/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h) Sandstorm App Market. Note: Only use official. Experimental versions are broken.
|
||||
Wekan at [experimental](https://apps.sandstorm.io/app/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h?experimental=true) or
|
||||
[official](https://apps.sandstorm.io/app/m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h) Sandstorm App Market. Note: Only use official. Experimental versions are broken.
|
||||
|
||||
Newest Wekap app .spk file download at https://releases.wekan.team/sandstorm/
|
||||
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
# WeKan Snap — CPU platforms and databases
|
||||
|
||||
This page documents, **for the WeKan snap**, which CPU architectures are built,
|
||||
which database binaries each one ships, how new installs choose their database,
|
||||
and how the one-time MongoDB 3 → FerretDB v1 migration works.
|
||||
|
||||
## Summary
|
||||
|
||||
- **New installs use FerretDB v1 (SQLite) by default on every CPU architecture.**
|
||||
FerretDB v1 is the wekan/FerretDB fork with an embedded pure-Go SQLite backend
|
||||
that speaks the MongoDB wire protocol, so WeKan talks to it exactly like MongoDB.
|
||||
- **MongoDB 7 *server* binaries (mongod) are included for amd64 and arm64 only.**
|
||||
The other architectures (s390x, riscv64, ppc64le) have no MongoDB server — they
|
||||
run FerretDB v1 only.
|
||||
- **Every Snap platform includes the FerretDB v1 server and the MongoDB Database
|
||||
Tools** (`mongodump`, `mongorestore`, `mongofiles`, `mongoexport`, …), on every
|
||||
architecture.
|
||||
- **`mongosh` is NOT bundled at all.** WeKan already ships Node.js 24 and the
|
||||
`mongodb` driver, and all scripted database access (readiness checks,
|
||||
replica-set init, schema migration) uses that via `$SNAP/bin/db-eval` instead of
|
||||
the MongoDB Shell. This removes a large, CVE-prone binary and works identically
|
||||
on every architecture. See [MongoDB client binaries](#mongodb-client-binaries-source-and-availability).
|
||||
- **The MongoDB Database Tools are downloaded from WeKan's own fork, not from the
|
||||
MongoDB website** — `mongodump-<arch>` etc. from
|
||||
[wekan/mongo-tools](https://github.com/wekan/mongo-tools/releases).
|
||||
- **Existing MongoDB 7 data (amd64/arm64) is NOT migrated to FerretDB v1** — that
|
||||
snap keeps using its existing MongoDB 7.
|
||||
- **Only the amd64 snap migrates existing MongoDB 3 data to FerretDB v1** (see
|
||||
[Migration](#mongodb-3--ferretdb-v1-migration-amd64-only) below).
|
||||
|
||||
## Per-architecture matrix
|
||||
|
||||
| CPU arch | MongoDB 7 server (mongod) | MongoDB Database Tools | FerretDB v1 server | MongoDB 3 → FerretDB migration | Default DB (new install) |
|
||||
|----------|:------------------------:|:----------------------:|:------------------:|:------------------------------:|:------------------------:|
|
||||
| amd64 | ✅ | ✅ | ✅ | ✅ (if MongoDB 3 data present) | FerretDB v1 |
|
||||
| arm64 | ✅ | ✅ | ✅ | ❌ | FerretDB v1 |
|
||||
| s390x | ❌ | ✅ | ✅ | ❌ | FerretDB v1 |
|
||||
| ppc64le | ❌ | ✅ | ✅ | ❌ | FerretDB v1 |
|
||||
| riscv64 | ❌ | ✅ | ✅ | ❌ | FerretDB v1 |
|
||||
|
||||
- **MongoDB 7 server (mongod)**: amd64/arm64 only (MongoDB ships no server for the others).
|
||||
- **MongoDB Database Tools**: every arch — WeKan builds them for all platforms from
|
||||
[wekan/mongo-tools](https://github.com/wekan/mongo-tools) (they are pure Go).
|
||||
- **mongosh**: not bundled on any arch — replaced by the bundled Node.js 24 +
|
||||
`mongodb` driver (`$SNAP/bin/db-eval`).
|
||||
|
||||
All architectures default new installs to FerretDB v1 with `DDP_TRANSPORT=sockjs`
|
||||
and polling reactivity.
|
||||
|
||||
## New installs
|
||||
|
||||
On a fresh install, every architecture starts on **FerretDB v1 (SQLite)** with
|
||||
these snap defaults (in [`snap-src/bin/config`](../../../../../snap-src/bin/config)):
|
||||
|
||||
- `database` = `ferretdb` — FerretDB v1 is the default backend.
|
||||
- `ddp-transport` (`DDP_TRANSPORT`) = `sockjs` — maximum proxy compatibility.
|
||||
- Reactivity = **polling**. FerretDB v1 has no replica-set oplog or change
|
||||
streams, so WeKan uses polling for live updates (it does this automatically
|
||||
when the backend is FerretDB).
|
||||
|
||||
On amd64/arm64 you can still switch an install to the bundled MongoDB 7 server:
|
||||
|
||||
```
|
||||
sudo snap set wekan database=mongodb # amd64/arm64 only (mongod is bundled there)
|
||||
sudo snap set wekan database=ferretdb # the default
|
||||
```
|
||||
|
||||
## MongoDB client binaries: source and availability
|
||||
|
||||
WeKan does not download MongoDB clients from the MongoDB website:
|
||||
|
||||
- **MongoDB Database Tools** come from [wekan/mongo-tools](https://github.com/wekan/mongo-tools/releases).
|
||||
These are pure Go, so its `build-binaries.yml` workflow cross-compiles **every
|
||||
architecture** (`bsondump`, `mongodump`, `mongoexport`, `mongofiles`,
|
||||
`mongoimport`, `mongorestore`, `mongostat`, `mongotop`), including arches MongoDB
|
||||
never shipped tools for (riscv64, loong64). Every WeKan build (snap, bundle,
|
||||
Docker, Sandstorm) downloads the one `<tool>-<arch>` it needs from the newest
|
||||
release.
|
||||
- **`mongosh` is not used at all.** It is a large Node.js-packaged binary (it
|
||||
embeds its own Node and drags in a heavy, CVE-prone dependency tree) that cannot
|
||||
be cross-compiled for s390x/ppc64le/riscv64. Since WeKan already bundles Node.js
|
||||
24 and the `mongodb` driver, every scripted MongoDB/FerretDB operation the snap
|
||||
used mongosh for — readiness `ping`, replica-set `initiate`/`status`, the v8.43
|
||||
schema migration — now runs through `$SNAP/bin/db-eval` (a tiny wrapper around
|
||||
the bundled Node + driver). This works identically on every architecture and
|
||||
removed the mongosh binary from the snap entirely.
|
||||
|
||||
The `mongo` shell that IS still present is only the legacy MongoDB 3.2 `mongo`
|
||||
(from `migratemongo`, amd64 only), used at migration time to read old MongoDB 3
|
||||
data — the modern driver cannot speak to a 3.2 server. It is not used at runtime.
|
||||
|
||||
## MongoDB 3 → FerretDB v1 migration (amd64 only)
|
||||
|
||||
Only the **amd64** snap ships the MongoDB 3-specific binaries (the legacy MongoDB
|
||||
3.2 `mongo` shell + `mongofiles`, bundled via `migratemongo`). They are used **at
|
||||
migration time only** — a one-time conversion of old data — and are **never a
|
||||
runtime component**: after the migration WeKan runs on FerretDB v1 and the
|
||||
MongoDB 3 binaries are not used again. No other architecture ships them at all
|
||||
(s390x/ppc64le/riscv64 never had a MongoDB 3, so there is nothing to migrate).
|
||||
|
||||
The migration runs only on amd64, and only when existing **MongoDB 3** data (from
|
||||
an old WeKan 6.09-era snap) is present. During the migration **both databases run
|
||||
at the same time on different ports** — MongoDB 3 on its port and FerretDB v1 on
|
||||
its port — and data moves directly from one to the other:
|
||||
|
||||
- **Attachments and avatars** (binary files): read from the MongoDB CollectionFS
|
||||
GridFS and MongoDB Meteor-Files GridFS collections with the MongoDB 3-specific
|
||||
`mongofiles` command, and written to:
|
||||
- `$SNAP_COMMON/files/attachments/`
|
||||
- `$SNAP_COMMON/files/avatars/`
|
||||
- **Text data** (all boards and other non-file data — everything that is *not*
|
||||
attachments or avatars): copied directly from the MongoDB 3 port to the
|
||||
FerretDB v1 port using the legacy MongoDB 3 `mongo` CLI (mongo shell); the
|
||||
modern `mongosh` cannot talk to a MongoDB 3 server.
|
||||
|
||||
After a successful migration the snap switches to `database=ferretdb`.
|
||||
|
||||
Architectures other than amd64 ship no MongoDB server and no MongoDB 3 client, so
|
||||
there is nothing to migrate from — they are FerretDB v1 from the first boot.
|
||||
|
||||
## Where the FerretDB v1 binary comes from
|
||||
|
||||
FerretDB v1 is built and released separately in
|
||||
[wekan/FerretDB](https://github.com/wekan/FerretDB/releases) as one binary per
|
||||
architecture (`ferretdb-<arch>`; there is no `ferretdb.zip`). Each WeKan build
|
||||
downloads only the single binary for the platform it targets, e.g.:
|
||||
|
||||
```
|
||||
https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-amd64
|
||||
https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-arm64
|
||||
https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-s390x
|
||||
https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-riscv64
|
||||
https://github.com/wekan/FerretDB/releases/latest/download/ferretdb-ppc64le
|
||||
```
|
||||
|
||||
For the snap, that binary is embedded inside the `wekan-<version>-<arch>.zip`
|
||||
bundle the snap's `wekan` part downloads, and staged to `$SNAP/ferretdb`
|
||||
(started by `ferretdb-control`).
|
||||
|
||||
## How the bundled binary versions are kept current
|
||||
|
||||
- The **MongoDB 7 server (mongod)** is the one component still fetched from
|
||||
MongoDB (amd64/arm64 only). The `bump` job in
|
||||
[`.github/workflows/release-all.yml`](../../../../../.github/workflows/release-all.yml)
|
||||
runs [`releases/version.sh`](../../../../../releases/version.sh), which probes
|
||||
upstream and rewrites the pinned MongoDB 7 server version (and the WeKan bundle
|
||||
version/URLs) in `snapcraft.yaml`.
|
||||
- The **FerretDB v1** server and the **MongoDB client binaries** are not pinned:
|
||||
every build fetches the newest per-arch asset from the WeKan forks —
|
||||
`ferretdb-<arch>` from [wekan/FerretDB](https://github.com/wekan/FerretDB/releases),
|
||||
`<tool>-<arch>` from [wekan/mongo-tools](https://github.com/wekan/mongo-tools/releases),
|
||||
and `mongosh-<arch>` from [wekan/mongosh](https://github.com/wekan/mongosh/releases).
|
||||
|
||||
## Snap channels
|
||||
|
||||
The default `snapcraft.yaml` is built on `base: core24`, which allows the
|
||||
**candidate** channel (core26 does not). The automated release workflow publishes
|
||||
it to the **candidate**, **beta**, and **edge** channels; the **stable** channel is
|
||||
published manually later, once it is proven.
|
||||
`snapcraft-core26.yaml` is the same WeKan on the newer `base: core26`
|
||||
(`build-base: devel`, `grade: devel`), kept for testing the next base; it can only
|
||||
go to Beta/Edge until core26 is a released stable base.
|
||||
|
||||
## Related
|
||||
|
||||
- FerretDB v1 fork: https://github.com/wekan/FerretDB
|
||||
- Snap install: [Install.md](Install.md)
|
||||
- Snap settings keys: [Supported-settings-keys.md](Supported-settings-keys.md)
|
||||
@@ -10,7 +10,7 @@ This is without container (without Docker or Snap).
|
||||
|
||||
Right click and download files 1-4:
|
||||
|
||||
1. [wekan-9.85-win64.zip](https://github.com/wekan/wekan/releases/download/v9.85/wekan-9.85-win64.zip) or newest available at https://github.com/wekan/wekan/releases/
|
||||
1. [wekan-9.97-win64.zip](https://github.com/wekan/wekan/releases/download/v9.97/wekan-9.97-win64.zip) or newest available at https://github.com/wekan/wekan/releases/
|
||||
|
||||
2. [node.exe](https://nodejs.org/dist/latest-v24.x/win-x64/node.exe)
|
||||
|
||||
@@ -22,7 +22,7 @@ Right click and download files 1-4:
|
||||
|
||||
6. Double click `mongodb-windows-x86_64-7.0.34-signed.msi` . In installer, uncheck downloading MongoDB compass.
|
||||
|
||||
7. Unzip `wekan-9.85-win64.zip` , inside it is directory `bundle`, to it copy other files:
|
||||
7. Unzip `wekan-9.97-win64.zip` , inside it is directory `bundle`, to it copy other files:
|
||||
|
||||
```
|
||||
bundle (directory)
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Buat Panel",
|
||||
"home": "Beranda",
|
||||
"import": "Impor",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Berlakon sebagai pengguna",
|
||||
"link": "Pautan",
|
||||
"import-board": "import papan",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Laporan Peraturan",
|
||||
"boardsReportTitle": "Laporan Papan",
|
||||
"cardsReportTitle": "Laporan Kad",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Pentadbir",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Salin aliranrenang",
|
||||
"copySwimlanePopup-title": "Salin aliranrenang",
|
||||
"display-card-creator": "Papar pencipta Kad",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "pengguna",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Pemberitahuan",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Skep bord",
|
||||
"home": "Tuis",
|
||||
"import": "Invoer",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Verpersoonlik gebruiker",
|
||||
"link": "Skakel",
|
||||
"import-board": "invoerbord",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Reëlsverslag",
|
||||
"boardsReportTitle": "Raadsverslag",
|
||||
"cardsReportTitle": "Kaarte Verslag",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Admin",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Kopieer Swimlane",
|
||||
"copySwimlanePopup-title": "Kopieer Swimlane",
|
||||
"display-card-creator": "Vertoonkaartskepper",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "gebruiker",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Kennisgewings",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Skep bord",
|
||||
"home": "Tuis",
|
||||
"import": "Invoer",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Verpersoonlik gebruiker",
|
||||
"link": "Skakel",
|
||||
"import-board": "invoerbord",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Reëlsverslag",
|
||||
"boardsReportTitle": "Raadsverslag",
|
||||
"cardsReportTitle": "Kaarte Verslag",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Admin",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Kopieer Swimlane",
|
||||
"copySwimlanePopup-title": "Kopieer Swimlane",
|
||||
"display-card-creator": "Vertoonkaartskepper",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "gebruiker",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Kennisgewings",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "إنشاء لوحة",
|
||||
"home": "الرئيسية",
|
||||
"import": "وارد کردن",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "جعل هویت کاربر",
|
||||
"link": "رابط",
|
||||
"import-board": "استيراد لوحة",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "گزارش قوانین",
|
||||
"boardsReportTitle": "Rapport sur les tableaux",
|
||||
"cardsReportTitle": "Rapport sur les cartes",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "المدير",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "کپی از مسیر",
|
||||
"copySwimlanePopup-title": "کپی از مسیر",
|
||||
"display-card-creator": "Afficher le créateur de la carte",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "مستخدم",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "اعلانها",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "إنشاء لوحة",
|
||||
"home": "الرئيسية",
|
||||
"import": "وارد کردن",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "جعل هویت کاربر",
|
||||
"link": "رابط",
|
||||
"import-board": "استيراد لوحة",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "گزارش قوانین",
|
||||
"boardsReportTitle": "Boards Report",
|
||||
"cardsReportTitle": "Cards Report",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "المدير",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "کپی از مسیر",
|
||||
"copySwimlanePopup-title": "کپی از مسیر",
|
||||
"display-card-creator": "Display Card Creator",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "مستخدم",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "اعلانها",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "إنشاء لوحة",
|
||||
"home": "الرئيسية",
|
||||
"import": "وارد کردن",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "جعل هویت کاربر",
|
||||
"link": "رابط",
|
||||
"import-board": "استيراد لوحة",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "گزارش قوانین",
|
||||
"boardsReportTitle": "Boards Report",
|
||||
"cardsReportTitle": "Cards Report",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "المدير",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "کپی از مسیر",
|
||||
"copySwimlanePopup-title": "کپی از مسیر",
|
||||
"display-card-creator": "Display Card Creator",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "مستخدم",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "اعلانها",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "إنشاء لوحة",
|
||||
"home": "الرئيسية",
|
||||
"import": "وارد کردن",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "جعل هویت کاربر",
|
||||
"link": "رابط",
|
||||
"import-board": "استيراد لوحة",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "گزارش قوانین",
|
||||
"boardsReportTitle": "Boards Report",
|
||||
"cardsReportTitle": "Cards Report",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "المدير",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "کپی از مسیر",
|
||||
"copySwimlanePopup-title": "کپی از مسیر",
|
||||
"display-card-creator": "Display Card Creator",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "مستخدم",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "اعلانها",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Crear tablero",
|
||||
"home": "Inicio",
|
||||
"import": "Importar",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Impersonalizar",
|
||||
"link": "Enlace",
|
||||
"import-board": "importar un tablero",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Informe sobre las Reglas",
|
||||
"boardsReportTitle": "Informe sobre los Tableros",
|
||||
"cardsReportTitle": "Informe sobre las Tarjetas",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Administrador",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copia el carril",
|
||||
"copySwimlanePopup-title": "Copiar carril",
|
||||
"display-card-creator": "Mostrar Creador de la Tarjeta",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "Usuario",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Notificaciones",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Şura yaradın",
|
||||
"home": "Ev",
|
||||
"import": "İdxal",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Təqlid edən istifadəçi",
|
||||
"link": "Link",
|
||||
"import-board": "idxal lövhəsi",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Qaydalar Hesabatı",
|
||||
"boardsReportTitle": "İdarə Heyətinin Hesabatı",
|
||||
"cardsReportTitle": "Kartlar Hesabatı",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Admin",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Swimlane-i kopyalayın",
|
||||
"copySwimlanePopup-title": "Swimlane-i kopyalayın",
|
||||
"display-card-creator": "Ekran Kartı Yaradıcısı",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "istifadəçi",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Bildirişlər",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Şura yaradın",
|
||||
"home": "Ev",
|
||||
"import": "İdxal",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Təqlid edən istifadəçi",
|
||||
"link": "Link",
|
||||
"import-board": "idxal lövhəsi",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Qaydalar Hesabatı",
|
||||
"boardsReportTitle": "İdarə Heyətinin Hesabatı",
|
||||
"cardsReportTitle": "Kartlar Hesabatı",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Admin",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Swimlane-i kopyalayın",
|
||||
"copySwimlanePopup-title": "Swimlane-i kopyalayın",
|
||||
"display-card-creator": "Ekran Kartı Yaradıcısı",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "istifadəçi",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Bildirişlər",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Şura yaradın",
|
||||
"home": "Ev",
|
||||
"import": "İdxal",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Təqlid edən istifadəçi",
|
||||
"link": "Link",
|
||||
"import-board": "idxal lövhəsi",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Qaydalar Hesabatı",
|
||||
"boardsReportTitle": "İdarə Heyətinin Hesabatı",
|
||||
"cardsReportTitle": "Kartlar Hesabatı",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Admin",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Swimlane-i kopyalayın",
|
||||
"copySwimlanePopup-title": "Swimlane-i kopyalayın",
|
||||
"display-card-creator": "Ekran Kartı Yaradıcısı",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "istifadəçi",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Bildirişlər",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Create Board",
|
||||
"home": "Home",
|
||||
"import": "Import",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Impersonate user",
|
||||
"link": "Link",
|
||||
"import-board": "import board",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Rules Report",
|
||||
"boardsReportTitle": "Boards Report",
|
||||
"cardsReportTitle": "Cards Report",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Admin",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copy Swimlane",
|
||||
"copySwimlanePopup-title": "Copy Swimlane",
|
||||
"display-card-creator": "Display Card Creator",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "user",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Notifications",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Създай Табло",
|
||||
"home": "Начало",
|
||||
"import": "Импорт",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Увуци се у налог овог корисника",
|
||||
"link": "Връзка",
|
||||
"import-board": "Импортирай Табло",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Извештај везан за правила",
|
||||
"boardsReportTitle": "Извештај везан за списе",
|
||||
"cardsReportTitle": "Извештај везан за предмете",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Администратор",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Умножи ток поступка",
|
||||
"copySwimlanePopup-title": "Умножавање тока поступка",
|
||||
"display-card-creator": "Прикажи ко је завео предмет",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "корисник",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Уведомления",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Créer un tableau",
|
||||
"home": "Accueil",
|
||||
"import": "Importer",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Utilisateur usurpé",
|
||||
"link": "Lien",
|
||||
"import-board": "importer un tableau",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Rapports sur les règles",
|
||||
"boardsReportTitle": "Rapport sur les tableaux",
|
||||
"cardsReportTitle": "Rapport sur les cartes",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Merour",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copie de Couloir",
|
||||
"copySwimlanePopup-title": "Copie de Couloir",
|
||||
"display-card-creator": "Afficher le créateur de la carte",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "utilisateur",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Notifications",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Crea tauler",
|
||||
"home": "Inici",
|
||||
"import": "importa",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Suplantar l'usuari",
|
||||
"link": "Enllaç",
|
||||
"import-board": "Importa tauler",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Informe de normes",
|
||||
"boardsReportTitle": "Informe de les Juntes",
|
||||
"cardsReportTitle": "Informe de fitxes",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Administrador",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copia el carril",
|
||||
"copySwimlanePopup-title": "Copia el carril",
|
||||
"display-card-creator": "Creador de fitxes de visualització",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "usuari",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Notificacions",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Crea tauler",
|
||||
"home": "Inici",
|
||||
"import": "importa",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Suplantar l'usuari",
|
||||
"link": "Enllaç",
|
||||
"import-board": "Importa tauler",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Informe de normes",
|
||||
"boardsReportTitle": "Informe de les Juntes",
|
||||
"cardsReportTitle": "Informe de fitxes",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Administrador",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copia el carril",
|
||||
"copySwimlanePopup-title": "Copia el carril",
|
||||
"display-card-creator": "Creador de fitxes de visualització",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "usuari",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Notificacions",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Crea tauler",
|
||||
"home": "Inici",
|
||||
"import": "importa",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Suplantar l'usuari",
|
||||
"link": "Enllaç",
|
||||
"import-board": "Importa tauler",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Informe de normes",
|
||||
"boardsReportTitle": "Informe de les Juntes",
|
||||
"cardsReportTitle": "Informe de fitxes",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Administrador",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copia el carril",
|
||||
"copySwimlanePopup-title": "Copia el carril",
|
||||
"display-card-creator": "Creador de fitxes de visualització",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "usuari",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Notificacions",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "创建板",
|
||||
"home": "家",
|
||||
"import": "进口",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "冒充用户",
|
||||
"link": "关联",
|
||||
"import-board": "进口板",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "规则报告",
|
||||
"boardsReportTitle": "董事会报告",
|
||||
"cardsReportTitle": "卡片报告",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "行政",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "复制泳道",
|
||||
"copySwimlanePopup-title": "复制泳道",
|
||||
"display-card-creator": "显示卡创建器",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "用户",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "通知",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Vytvořit tablo",
|
||||
"home": "Domů",
|
||||
"import": "Import",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Napodobit uživatele",
|
||||
"link": "Propojit",
|
||||
"import-board": "Importovat tablo",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Report pravidel",
|
||||
"boardsReportTitle": "Boards Report",
|
||||
"cardsReportTitle": "Cards Report",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Administrátor",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Kopírovat dráhu",
|
||||
"copySwimlanePopup-title": "Kopírovat dráhu",
|
||||
"display-card-creator": "Zobrazovat tvůrce karet",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "uživatel",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Upozornění",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Vytvořit tablo",
|
||||
"home": "Domů",
|
||||
"import": "Import",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Napodobit uživatele",
|
||||
"link": "Propojit",
|
||||
"import-board": "Importovat tablo",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Report pravidel",
|
||||
"boardsReportTitle": "Boards Report",
|
||||
"cardsReportTitle": "Cards Report",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Administrátor",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Kopírovat dráhu",
|
||||
"copySwimlanePopup-title": "Kopírovat dráhu",
|
||||
"display-card-creator": "Zobrazovat tvůrce karet",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "uživatel",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Upozornění",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Creu Bwrdd",
|
||||
"home": "Cartref",
|
||||
"import": "Mewnforio",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Dynwared defnyddiwr",
|
||||
"link": "Cyswllt",
|
||||
"import-board": "bwrdd mewnforio",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Adroddiad Rheolau",
|
||||
"boardsReportTitle": "Adroddiad y Byrddau",
|
||||
"cardsReportTitle": "Adroddiad Cardiau",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Gweinyddol",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copi Swimlane",
|
||||
"copySwimlanePopup-title": "Copi Swimlane",
|
||||
"display-card-creator": "Crëwr Cerdyn Arddangos",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "defnyddiwr",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Hysbysiadau",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
@@ -588,6 +588,8 @@
|
||||
"headerBarCreateBoardPopup-title": "Creu Bwrdd",
|
||||
"home": "Cartref",
|
||||
"import": "Mewnforio",
|
||||
"imported-member-no-account": "Imported member — no matching account yet",
|
||||
"inactive-member": "Inactive member",
|
||||
"impersonate-user": "Dynwared defnyddiwr",
|
||||
"link": "Cyswllt",
|
||||
"import-board": "bwrdd mewnforio",
|
||||
@@ -1555,6 +1557,10 @@
|
||||
"rulesReportTitle": "Adroddiad Rheolau",
|
||||
"boardsReportTitle": "Adroddiad y Byrddau",
|
||||
"cardsReportTitle": "Adroddiad Cardiau",
|
||||
"impersonationReportTitle": "Impersonation Report",
|
||||
"impersonation-admin": "Gweinyddol",
|
||||
"impersonation-user": "Impersonated user",
|
||||
"reason": "Reason",
|
||||
"copy-swimlane": "Copi Swimlane",
|
||||
"copySwimlanePopup-title": "Copi Swimlane",
|
||||
"display-card-creator": "Crëwr Cerdyn Arddangos",
|
||||
@@ -1862,6 +1868,31 @@
|
||||
"cards-loading-lazy": "Lazy (only visible cards)",
|
||||
"cards-loading-description": "How each board loads its cards. All cards: every card is loaded into the browser (simplest, all features work, but a board with thousands of cards sends a lot of data to each viewer). Lazy: each list loads only the cards currently visible (infinite scroll) plus a live count, so very large boards use less memory and bandwidth. Also set by the CARDS_LOADING environment variable.",
|
||||
"cards-loading-lazy-note": "Lazy card loading is experimental: card counters and WIP limits are accurate, but the Calendar/Table/Gantt views and multi-select reflect only the cards loaded so far. Reload open boards after changing this.",
|
||||
"features-security": "Security",
|
||||
"render-links-as-plain-text": "Render links as plain text",
|
||||
"render-links-as-plain-text-description": "When enabled, all links (both markdown links like [label](url) and raw HTML <a href> tags) are always shown as plain, non-clickable text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This prevents misleading clickable links. Default is off, so links stay clickable.",
|
||||
"always-show-code-as-text": "Always show all code as plain text",
|
||||
"always-show-code-as-text-description": "When enabled, rich text is never rendered as markdown or HTML: the entire source is always shown as plain text in every rich text field (board and card titles, descriptions, comments, checklists, etc.). This reveals hidden content — HTML comments (<!-- -->), the target of markdown links, JavaScript and any other code — so all code is always visible, not clickable, and not running. Default is off, so markdown is rendered normally.",
|
||||
"anonymized-user": "defnyddiwr",
|
||||
"disable-all-import": "Disable all import",
|
||||
"disable-all-import-description": "When enabled, all import features are turned off: importing a board from WeKan JSON, Trello, CSV/Excel, Jira, Kanboard, NextCloud Deck, OpenProject, GitHub, GitLab, Gitea and Forgejo, as well as cloning a board. The import menu options are hidden and the server rejects any import request. Default is off.",
|
||||
"disable-all-export": "Disable all export",
|
||||
"disable-all-export-description": "When enabled, all export features are turned off: exporting a board as WeKan JSON, CSV, Excel, Kanboard, or to NextCloud Deck / OpenProject / GitHub / GitLab / Gitea / Forgejo, and single-attachment export. The export menu options are hidden and the server rejects any export request. Default is off.",
|
||||
"disable-import-avatars": "Disable import avatars",
|
||||
"disable-import-avatars-description": "When enabled, avatars (user profile pictures) are never imported. This covers WeKan JSON import, Trello import, and avatar sync from external identity providers on login (LDAP, OIDC/OAuth2). Names and other data are still imported; only avatars are skipped. Default is off.",
|
||||
"disable-export-avatars": "Disable export avatars",
|
||||
"disable-export-avatars-description": "When enabled, avatars (user profile pictures) are never included when exporting a board (WeKan JSON and CSV export). Usernames and other data are still exported; only avatars are omitted. Default is off.",
|
||||
"anonymize-import-users": "Anonymize import users",
|
||||
"anonymize-import-users-description": "When enabled, importing a WeKan JSON board replaces every imported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside imported card and comment content. No real user identity from the source board is stored. The word \"user\" follows the language of the person importing. Default is off.",
|
||||
"anonymize-export-users": "Anonymize export users",
|
||||
"anonymize-export-users-description": "When enabled, exporting a board replaces every exported user's username, full name and initials with counter placeholders (user1, user2, ...), drops their avatar, and rewrites @username mentions (and the requested-by / assigned-by fields) inside card and comment content. The exported file carries no real user identity. The word \"user\" follows the language of the person exporting. Default is off.",
|
||||
"features-notifications": "Hysbysiadau",
|
||||
"disable-activities": "Disable all activities",
|
||||
"disable-activities-description": "When enabled, activity-feed entries are never recorded and never shown anywhere (board sidebar and card activity tab). No history of who did what is kept. Default is off.",
|
||||
"disable-notifications": "Disable all notifications",
|
||||
"disable-notifications-description": "When enabled, WeKan never sends watch notifications (in-app, email or other services) for any activity. Activities can still be recorded (unless also disabled above); only the notifications are suppressed. Default is off.",
|
||||
"disable-watch": "Disable watch",
|
||||
"disable-watch-description": "When enabled, the watch feature is turned off — users cannot subscribe to boards, lists or cards to receive notifications, and any attempt to change a watch level is rejected. Default is off.",
|
||||
"backup": "Backup",
|
||||
"backup-description": "Back up Attachments, Avatars and/or Data (all text-based collections that are not attachments or avatars). The .zip is streamed directly to the selected storage — no temporary file — as backup/YYYY/MM/DD/HH_MM_SS/backup.zip, containing YYYY_MM_DD-HH_MM_SS/attachments, /avatars and /data. Cloud storages (S3/MinIO, Azure, GCS) use the credentials configured in their storage tabs.",
|
||||
"backup-data": "Data (text)",
|
||||
|
||||
Loaded 100 of 429 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user