1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00

Add custom CSS

This commit is contained in:
ericgaspar 2020-12-15 14:25:55 +01:00
parent 2a2fd5b9a9
commit 873cdba878
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 41 additions and 8 deletions

23
conf/user.css.example Normal file
View file

@ -0,0 +1,23 @@
/* Disable the 'zoom' animation while browsing pictures */
#imageview #image {
transition: none !important;
animation-name: none !important;
animation-duration: 0 !important;
}
/* Hide smart albums */
/*
[data-id="0"] { display:none; }
[data-id="s"] { display:none; }
[data-id="f"] { display:none; }
[data-id="r"] { display:none; }
*/
/* Make the diadnostic font bigger */
.settings_view p, .settings_view a, .settings_view input,
.sharing_view p, .sharing_view a, .sharing_view input, .sharing_view option,
.users_view p, .users_view a, .users_view input, .users_view option,
.logs_diagnostics_view pre {
font-size: 12pt;
line-height: 14pt;
}

View file

@ -62,7 +62,7 @@ ynh_install_composer () {
install_args="${install_args:-}"
composerversion="${composerversion:-$YNH_COMPOSER_VERSION}"
curl -sS https://getcomposer.org/installer \
curl -sS https://getcomposer.org/installer 2>&1 \
| COMPOSER_HOME="$workdir/.composer" \
php${phpversion} -- --quiet --install-dir="$workdir" --version=$composerversion \
|| ynh_die "Unable to install Composer."

View file

@ -117,10 +117,15 @@ ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --tar
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env"
# setup application config
cd $final_path && php$phpversion artisan key:generate -n --force --env
cd $final_path && php$phpversion artisan migrate -n --force
cd $final_path && php$phpversion artisan config:clear -n
cd $final_path && php$phpversion artisan config:cache -n
pushd "$final_path"
php$phpversion artisan key:generate -n --force --env
php$phpversion artisan migrate -n --force
php$phpversion artisan config:clear -n
php$phpversion artisan config:cache -n
popd
# Setup custom user.css file
cp ../conf/user.css.example $final_path/public/dist/user.css
#=================================================
# STORE THE CONFIG FILE CHECKSUM

View file

@ -118,14 +118,19 @@ ynh_install_composer
ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\"
( cd $final_path && php$phpversion artisan migrate -n --force )
( cd $final_path && php$phpversion artisan config:clear -n )
( cd $final_path && php$phpversion artisan config:cache -n )
pushd "$final_path"
php$phpversion artisan migrate -n --force
php$phpversion artisan config:clear -n
php$phpversion artisan config:cache -n
popd
ynh_backup_if_checksum_is_different --file="$final_path/.env"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$final_path/.env"
# Setup custom user.css file
cp ../conf/user.css.example $final_path/public/dist/user.css
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================