Skip to content

Commit

Permalink
Merge pull request #257 from UN-OCHA/release-versions/v3.6.0
Browse files Browse the repository at this point in the history
release versions/v3.6.0
  • Loading branch information
berliner authored Nov 7, 2024
2 parents d6d38ff + c73d91f commit 03426b2
Show file tree
Hide file tree
Showing 57 changed files with 4,383 additions and 24,419 deletions.
32 changes: 32 additions & 0 deletions .docksal/commands/login
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

## Login into the site.
##
## Usage: fin login [-h] [-u UID]
##

usage="$(basename "$0") [-h] [-u UID]
where:
-h show this help text
-u|---uid the UID to use for login"

# Login as user 1 by default.
USER_ID=1

while [ "$1" != "" ]; do
case $1 in
-u | --uid ) shift
USER_ID=$1
;;
-h | --help ) echo "$usage"
exit
;;
* ) echo "$usage"
exit 1
esac
shift
done

URL=$(fin drush uli --uid ${USER_ID})
fin utils/open-link -i $URL
37 changes: 37 additions & 0 deletions .docksal/commands/utils/open-link
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash

## Open a link in a browser.
##
## Usage: fin utils/open-link [-h|-i] URL
##

usage="$(basename "$0") [-h|-i]
where:
-i open in incognito mode
-h show this help text"

INCOGNITO=false
URL=''

while [ "$1" != "" ]; do
case $1 in
-i | --incognico ) INCOGNITO=true
;;
-h | --help ) echo "$usage"
exit
;;
* ) URL=$1
esac
shift
done

if $INCOGNITO; then
open -a "Google Chrome" -n --args --incognito "${URL}"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
xdg-open "${URL}"
elif [[ "$OSTYPE" == "darwin"* ]]; then
open "${URL}"
else
echo "Unsupported operating system ${OSTYPE}"
fi
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,15 @@ Run the tests as they would in GitHub Actions
```bash
./.github/tests/test.sh
```


TROUBLESHOOTING
---------------

If you run into this error when committing:

Error: Could not find "stylelint-config-standard". Do you need a `configBasedir`?

You need to install all Drupal packages by doing this from the project root:

fin exec "cd html/core && yarn"
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"slevomat/coding-standard": "^7.0",
"symfony/flex": "^1.12",
"symfony/uid": "^5.3",
"unocha/common_design": "^8.0.1",
"unocha/common_design": "^9",
"unocha/ocha_monitoring": "^1.0",
"webflo/drupal-finder": "^1.2.2"
},
Expand Down
Loading

0 comments on commit 03426b2

Please sign in to comment.