Selaa lähdekoodia

Added environment variable `RESULTS_PER_PAGE` to all Wekan platforms.

Thanks to xet7 !
Lauri Ojansivu 4 vuotta sitten
vanhempi
sitoutus
ba05f383ca

+ 1 - 0
.devcontainer/Dockerfile

@@ -19,6 +19,7 @@ ENV \
     ARCHITECTURE=linux-x64 \
     SRC_PATH=./ \
     WITH_API=true \
+    RESULTS_PER_PAGE="" \
     ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE=3 \
     ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD=60 \
     ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW=15 \

+ 1 - 0
Dockerfile

@@ -21,6 +21,7 @@ ENV BUILD_DEPS="apt-utils libarchive-tools gnupg gosu wget curl bzip2 g++ build-
     ARCHITECTURE=linux-x64 \
     SRC_PATH=./ \
     WITH_API=true \
+    RESULTS_PER_PAGE="" \
     ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE=3 \
     ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD=60 \
     ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW=15 \

+ 3 - 0
docker-compose.yml

@@ -209,6 +209,9 @@ services:
       # There is Feature Request: Logging date and time of all activity with summary reports,
       # and requesting reason for changing card to other column https://github.com/wekan/wekan/issues/1598
       #---------------------------------------------------------------
+      # ==== NUMBER OF SEARCH RESULTS PER PAGE BY DEFAULT ====
+      #- RESULTS_PER_PAGE=20
+      #---------------------------------------------------------------
       # ==== WEKAN API AND EXPORT BOARD ====
       # Wekan Export Board works when WITH_API=true.
       # https://github.com/wekan/wekan/wiki/REST-API

+ 3 - 0
releases/virtualbox/start-wekan.sh

@@ -22,6 +22,9 @@
       # This is local port where Wekan Node.js runs, same as below on Caddyfile settings.
       export PORT=2000
       #---------------------------------------------
+      # ==== NUMBER OF SEARCH RESULTS PER PAGE BY DEFAULT ====
+      #export RESULTS_PER_PAGE=20
+      #---------------------------------------------
       # Wekan Export Board works when WITH_API=true.
       # If you disable Wekan API with false, Export Board does not work.
       export WITH_API='true'

+ 1 - 0
sandstorm-pkgdef.capnp

@@ -237,6 +237,7 @@ const myCommand :Spk.Manifest.Command = (
   environ = [
     # Note that this defines the *entire* environment seen by your app.
     (key = "PATH", value = "/usr/local/bin:/usr/bin:/bin"),
+    (key = "RESULTS_PER_PAGE", value = ""),
     (key = "WITH_API", value = "true"),
     (key = "RICHER_CARD_COMMENT_EDITOR", value="false"),
     (key = "CARD_OPENED_WEBHOOK_ENABLED", value="false"),

+ 1 - 1
snap-src/bin/config

@@ -544,6 +544,6 @@ DESCRIPTION_SAML_ATTRIBUTES="SAML Attributes"
 DEFAULT_SAML_ATTRIBUTES=""
 KEY_SAML_ATTRIBUTES="saml-attributes"
 
-DESCRIPTION_RESULTS_PER_PAGE="Number of results to show per page by default"
+DESCRIPTION_RESULTS_PER_PAGE="Number of search results to show per page by default"
 DEFAULT_RESULTS_PER_PAGE=""
 KEY_RESULTS_PER_PAGE="results-per-page"

+ 5 - 0
snap-src/bin/wekan-help

@@ -49,6 +49,11 @@ echo -e "\t$ snap set $SNAP_NAME with-api='true'"
 echo -e "\t-Disable the API:"
 echo -e "\t$ snap unset $SNAP_NAME with-api"
 echo -e "\n"
+echo -e "Number of search results to show per page by default:"
+echo -e "\t$ snap set $SNAP_NAME results-per-page='20'"
+echo -e "\t-Restore default:"
+echo -e "\t$ snap unset $SNAP_NAME results-per-page"
+echo -e "\n"
 echo -e "Accounts lockout known users failures before, greater than 0. Default: 3"
 echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-failures-before='3'"
 echo -e "\t-Restore default:"

+ 4 - 1
start-wekan.bat

@@ -11,10 +11,13 @@ SET ROOT_URL=http://localhost
 SET PORT=80
 SET MONGO_URL=mongodb://127.0.0.1:27017/wekan
 
-REM https://github.com/wekan/wekan/wiki/Troubleshooting-Mail
+REM # https://github.com/wekan/wekan/wiki/Troubleshooting-Mail
 REM SET MAIL_URL=smtps://username:password@email-smtp.eu-west-1.amazonaws.com:587/
 REM SET MAIL_FROM="Wekan Boards <info@example.com>"
 
+REM # ==== NUMBER OF SEARCH RESULTS PER PAGE BY DEFAULT ====
+REM SET RESULTS_PER_PAGE=20
+
 REM # If you disable Wekan API with false, Export Board does not work.
 SET WITH_API=true
 

+ 3 - 0
start-wekan.sh

@@ -23,6 +23,9 @@
       # This is local port where Wekan Node.js runs, same as below on Caddyfile settings.
       export PORT=2000
       #---------------------------------------------
+      # ==== NUMBER OF SEARCH RESULTS PER PAGE BY DEFAULT ====
+      #export RESULTS_PER_PAGE=20
+      #---------------------------------------------
       # Wekan Export Board works when WITH_API=true.
       # If you disable Wekan API with false, Export Board does not work.
       export WITH_API='true'

+ 3 - 0
torodb-postgresql/docker-compose.yml

@@ -210,6 +210,9 @@ services:
       # There is Feature Request: Logging date and time of all activity with summary reports,
       # and requesting reason for changing card to other column https://github.com/wekan/wekan/issues/1598
       #---------------------------------------------------------------
+      # ==== NUMBER OF SEARCH RESULTS PER PAGE BY DEFAULT ====
+      #- RESULTS_PER_PAGE=20
+      #---------------------------------------------------------------
       # ==== WEKAN API AND EXPORT BOARD ====
       # Wekan Export Board works when WITH_API=true.
       # https://github.com/wekan/wekan/wiki/REST-API