Skip to content

Commit

Permalink
custom theme
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickFuereder committed Mar 22, 2024
1 parent 7e54d6e commit 26cd289
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 12 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_HOST: 194.36.146.51
REPO_NAME: ${{ github.event.repository.name }}
CONFIG: ${{ secrets.CONFIG }}
steps:
- name: Download production artifacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -72,6 +71,11 @@ jobs:
- name: Unzip
run: ssh staging "cd /home/$SSH_USER/$REPO_NAME/ && sudo tar --no-same-owner --no-same-permissions -xf roundcubemail-1.7-git-complete.tar.gz"

- name: Replace Config variables
run: |
ssh staging "sudo sed -i 's/!<oauth_client_id>/${{ secrets.OAUTH_CLIENT_ID }}/g' /home/$SSH_USER/$REPO_NAME/roundcubemail-1.7-git/config/config.inc.php"
ssh staging "sudo sed -i 's/!<oauth_client_secret>/${{ secrets.OAUTH_CLIENT_SECRET }}/g' /home/$SSH_USER/$REPO_NAME/roundcubemail-1.7-git/config/config.inc.php"
- name: Delete current deployed files
run: ssh staging 'sudo rm -r -d /var/www/mail2/'
continue-on-error: true
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ build: buildtools
lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css; \
lessc --clean-css="--s1 --advanced" styles/print.less > styles/print.min.css; \
lessc --clean-css="--s1 --advanced" styles/embed.less > styles/embed.min.css)
(cd build/skins/netdb; \
lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css; \
lessc --clean-css="--s1 --advanced" styles/print.less > styles/print.min.css; \
lessc --clean-css="--s1 --advanced" styles/embed.less > styles/embed.min.css)
(cd build; $(SEDI) 's/1.7-git/$(VERSION)/' index.php public_html/index.php installer/index.php program/include/iniset.php program/lib/Roundcube/bootstrap.php)
(cd build; $(SEDI) 's/# Unreleased/# Release $(VERSION)'/ CHANGELOG.md)

Expand Down
6 changes: 4 additions & 2 deletions config/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@

$config['enable_installer'] = false;

$config['skin'] = 'netdb';

$config['oauth_provider'] = 'generic';
$config['oauth_provider_name'] = 'Netdb';
$config['oauth_client_id'] = '0Txf/N51Upy0GK1uev8EPDaYHIhNSoBR';
$config['oauth_client_secret'] = 'OSAhZDEy4k5sxAqz9CyE9xQEhzksVrD9uoWEpGx9ascRYJaRpEG2oauzKSoSOXV9';
$config['oauth_client_id'] = '!<oauth_client_id>';
$config['oauth_client_secret'] = '!<oauth_client_secret>';
$config['oauth_auth_uri'] = 'https://api.login.netdb.at/oauth/authorize/';
$config['oauth_token_uri'] = 'https://api.login.netdb.at/oauth/token/';
$config['oauth_identity_uri'] = 'https://api.login.netdb.at/oauth/me/';
Expand Down
32 changes: 24 additions & 8 deletions skins/elastic/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion skins/elastic/styles/colors.less
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@

// Dark mode colors
@color-dark-main: darken(@color-main, 30%);
@color-dark-background: #21292c;
@color-dark-background: #000;
@color-dark-font: #c5d1d3;
@color-dark-border: #4d6066;
@color-dark-hint: darken(@color-dark-font, 20%);
Expand Down

0 comments on commit 26cd289

Please sign in to comment.