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:
parent
2a2fd5b9a9
commit
873cdba878
4 changed files with 41 additions and 8 deletions
23
conf/user.css.example
Normal file
23
conf/user.css.example
Normal 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;
|
||||||
|
}
|
|
@ -62,7 +62,7 @@ ynh_install_composer () {
|
||||||
install_args="${install_args:-}"
|
install_args="${install_args:-}"
|
||||||
composerversion="${composerversion:-$YNH_COMPOSER_VERSION}"
|
composerversion="${composerversion:-$YNH_COMPOSER_VERSION}"
|
||||||
|
|
||||||
curl -sS https://getcomposer.org/installer \
|
curl -sS https://getcomposer.org/installer 2>&1 \
|
||||||
| COMPOSER_HOME="$workdir/.composer" \
|
| COMPOSER_HOME="$workdir/.composer" \
|
||||||
php${phpversion} -- --quiet --install-dir="$workdir" --version=$composerversion \
|
php${phpversion} -- --quiet --install-dir="$workdir" --version=$composerversion \
|
||||||
|| ynh_die "Unable to install Composer."
|
|| ynh_die "Unable to install Composer."
|
||||||
|
|
|
@ -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"
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env"
|
||||||
|
|
||||||
# setup application config
|
# setup application config
|
||||||
cd $final_path && php$phpversion artisan key:generate -n --force --env
|
pushd "$final_path"
|
||||||
cd $final_path && php$phpversion artisan migrate -n --force
|
php$phpversion artisan key:generate -n --force --env
|
||||||
cd $final_path && php$phpversion artisan config:clear -n
|
php$phpversion artisan migrate -n --force
|
||||||
cd $final_path && php$phpversion artisan config:cache -n
|
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
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
|
|
|
@ -118,14 +118,19 @@ ynh_install_composer
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\"
|
ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\"
|
||||||
|
|
||||||
( cd $final_path && php$phpversion artisan migrate -n --force )
|
pushd "$final_path"
|
||||||
( cd $final_path && php$phpversion artisan config:clear -n )
|
php$phpversion artisan migrate -n --force
|
||||||
( cd $final_path && php$phpversion artisan config:cache -n )
|
php$phpversion artisan config:clear -n
|
||||||
|
php$phpversion artisan config:cache -n
|
||||||
|
popd
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different --file="$final_path/.env"
|
ynh_backup_if_checksum_is_different --file="$final_path/.env"
|
||||||
# Recalculate and store the checksum of the file for the next upgrade.
|
# Recalculate and store the checksum of the file for the next upgrade.
|
||||||
ynh_store_file_checksum --file="$final_path/.env"
|
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
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue