From 518b3f84df3a0657bfed3c3a1edc758ec683f1b8 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Sat, 11 Apr 2026 18:08:36 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"chore(master):=20alignement=20post-sq?= =?UTF-8?q?uash=20avec=20develop=20(t=C3=A9l=C3=A9phone,=20script=20Gitea)?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit dc04e04598ba407bbe95b0b0412b228f5dee019d. --- frontend/lib/widgets/personal_info_form_screen.dart | 6 ++++++ scripts/gitea-close-issue-with-comment.sh | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/lib/widgets/personal_info_form_screen.dart b/frontend/lib/widgets/personal_info_form_screen.dart index 320ffd3..181cc82 100644 --- a/frontend/lib/widgets/personal_info_form_screen.dart +++ b/frontend/lib/widgets/personal_info_form_screen.dart @@ -1254,6 +1254,12 @@ class _PersonalInfoFormScreenState extends State { } } + static final _phoneInputFormatters = [ + FilteringTextInputFormatter.digitsOnly, + LengthLimitingTextInputFormatter(10), + FrenchPhoneNumberFormatter(), + ]; + /// Retourne l'asset de carte vertical correspondant à la couleur String _getVerticalCardAsset() { switch (widget.cardColor) { diff --git a/scripts/gitea-close-issue-with-comment.sh b/scripts/gitea-close-issue-with-comment.sh index ad545b8..0c1e799 100644 --- a/scripts/gitea-close-issue-with-comment.sh +++ b/scripts/gitea-close-issue-with-comment.sh @@ -15,9 +15,18 @@ if [ -z "$GITEA_TOKEN" ]; then GITEA_TOKEN=$(cat .gitea-token) fi fi +if [ -z "$GITEA_TOKEN" ] && [ -f ~/.bashrc ]; then + eval "$(grep '^export GITEA_TOKEN=' ~/.bashrc 2>/dev/null)" || true +fi +if [ -z "$GITEA_TOKEN" ] && [ -f docs/BRIEFING-FRONTEND.md ]; then + token_from_briefing=$(sed -n 's/.*Token: *\(giteabu_[a-f0-9]*\).*/\1/p' docs/BRIEFING-FRONTEND.md 2>/dev/null | head -1) + if [ -n "$token_from_briefing" ]; then + GITEA_TOKEN="$token_from_briefing" + fi +fi if [ -z "$GITEA_TOKEN" ]; then - echo "Définir GITEA_TOKEN ou créer .gitea-token avec votre token Gitea." + echo "Définir GITEA_TOKEN ou créer .gitea-token avec votre token Gitea (voir docs/PROCEDURE-API-GITEA.md)." exit 1 fi