Skip to content

Commit

Permalink
Add dynamic CSS support
Browse files Browse the repository at this point in the history
This PR will remove the custom CSS changes from this repo.
A PR in the Vaultwarden repo will add these in a different way.

To make the dynamic CSS work other changes are done to add a custom
stylesheet link tag.

Also moved some legacy patch files.

Signed-off-by: BlackDex <[email protected]>
  • Loading branch information
BlackDex committed Sep 11, 2024
1 parent bfa7310 commit 24eb99b
Show file tree
Hide file tree
Showing 14 changed files with 2,000 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1,996 changes: 1,996 additions & 0 deletions patches/v2024.6.2d.patch

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion scripts/generate_patch_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ fi
PATCH_FILENAME="${VAULT_VERSION}.patch"

if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then
git --no-pager diff --no-color --minimal --abbrev=10 -- . \
git add -A
git --no-pager diff --cached --no-color --minimal --abbrev=10 -- . \
':!package-lock.json' \
':!apps/web/src/favicon.ico' \
':!apps/web/src/images/[email protected]' \
':!apps/web/src/images/[email protected]' \
':!apps/web/src/images/icon-white.png' \
':!apps/web/src/images/icon-dark.png' \
':!apps/web/src/images/icons/android-chrome-192x192.png' \
':!apps/web/src/images/icons/android-chrome-512x512.png' \
':!apps/web/src/images/icons/apple-touch-icon.png' \
Expand All @@ -40,6 +42,7 @@ if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then
':!apps/web/src/app/layouts/password-manager-logo.ts' \
':!bitwarden_license/' \
> "../patches/${PATCH_FILENAME}"
git reset -q
echo "Patch has been created here: patches/${PATCH_FILENAME}"
else
echo "No changes found, skip generating a patch file."
Expand Down

0 comments on commit 24eb99b

Please sign in to comment.