Merge pull request #1 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-11-11 23:48:40 +01:00 committed by GitHub
commit c5b4643bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 43 additions and 29 deletions

View file

@ -3,15 +3,15 @@ N.B.: This README was automatically generated by https://github.com/YunoHost/app
It shall NOT be edited by hand.
-->
# simple-file-manager for YunoHost
# Simple File Manager for YunoHost
[![Integration level](https://dash.yunohost.org/integration/simple-file-manager.svg)](https://dash.yunohost.org/appci/app/simple-file-manager) ![Working status](https://ci-apps.yunohost.org/ci/badges/simple-file-manager.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/simple-file-manager.maintain.svg)
[![Install simple-file-manager with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=simple-file-manager)
[![Install Simple File Manager with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=simple-file-manager)
*[Lire ce readme en français.](./README_fr.md)*
> *This package allows you to install simple-file-manager quickly and simply on a YunoHost server.
> *This package allows you to install Simple File Manager quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
## Overview
@ -32,12 +32,12 @@ A Simple PHP file manager. The code is a single php file.
## Screenshots
![Screenshot of simple-file-manager](./doc/screenshots/screenshot.png)
![Screenshot of Simple File Manager](./doc/screenshots/screenshot.png)
## Documentation and resources
* Upstream app code repository: <https://github.com/jcampbell1/simple-file-manager>
* YunoHost documentation for this app: <https://yunohost.org/app_simple-file-manager>
* YunoHost Store: <https://apps.yunohost.org/app/simple-file-manager>
* Report a bug: <https://github.com/YunoHost-Apps/simple-file-manager_ynh/issues>
## Developer info

View file

@ -3,32 +3,41 @@ N.B.: This README was automatically generated by https://github.com/YunoHost/app
It shall NOT be edited by hand.
-->
# simple-file-manager pour YunoHost
# Simple File Manager pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/simple-file-manager.svg)](https://dash.yunohost.org/appci/app/simple-file-manager) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/simple-file-manager.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/simple-file-manager.maintain.svg)
[![Installer simple-file-manager avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=simple-file-manager)
[![Installer Simple File Manager avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=simple-file-manager)
*[Read this readme in english.](./README.md)*
> *Ce package vous permet dinstaller simple-file-manager rapidement et simplement sur un serveur YunoHost.
> *Ce package vous permet dinstaller Simple File Manager rapidement et simplement sur un serveur YunoHost.
Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
## Vue densemble
Ceci est une fausse description des fonctionalités de l'app
Un gestionnaire de fichiers PHP simple. Le code est un seul fichier php.
### Caractéristiques
- Fichier unique, il n'y a pas d'images ou de dossiers CSS.
- Basé sur Ajax, il est donc rapide, mais ne casse pas le bouton de retour
- Autorise les téléchargements de fichiers par glisser-déposer si le dossier est accessible en écriture par le serveur Web (`chmod 777 votre/dossier`)
- Convient à mon esthétique. Plus comme Dropbox, et moins comme l'Explorateur Windows
- Fonctionne avec les noms de fichiers Unicode
- L'interface est utilisable depuis un iPad
- Protection XSRF et mot de passe en option.
**Version incluse :** 1.0~ynh1
## Captures décran
![Capture décran de simple-file-manager](./doc/screenshots/screenshot.png)
![Capture décran de Simple File Manager](./doc/screenshots/screenshot.png)
## Documentations et ressources
* Dépôt de code officiel de lapp : <https://github.com/jcampbell1/simple-file-manager>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_simple-file-manager>
* YunoHost Store: <https://apps.yunohost.org/app/simple-file-manager>
* Signaler un bug : <https://github.com/YunoHost-Apps/simple-file-manager_ynh/issues>
## Informations pour les développeurs

View file

@ -1,4 +1,4 @@
; Additional php.ini defines, specific to this pool of workers.
php_admin_value[upload_max_filesize] = 100M
php_admin_value[post_max_size] = 100M
php_admin_value[upload_max_filesize] = 500M
php_admin_value[post_max_size] = 500M

View file

@ -7,7 +7,7 @@ location __PATH__/ {
index index.php;
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
client_max_body_size 100M;
client_max_body_size 500M;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {

View file

@ -1 +1,11 @@
Ceci est une fausse description des fonctionalités de l'app
Un gestionnaire de fichiers PHP simple. Le code est un seul fichier php.
### Caractéristiques
- Fichier unique, il n'y a pas d'images ou de dossiers CSS.
- Basé sur Ajax, il est donc rapide, mais ne casse pas le bouton de retour
- Autorise les téléchargements de fichiers par glisser-déposer si le dossier est accessible en écriture par le serveur Web (`chmod 777 votre/dossier`)
- Convient à mon esthétique. Plus comme Dropbox, et moins comme l'Explorateur Windows
- Fonctionne avec les noms de fichiers Unicode
- L'interface est utilisable depuis un iPad
- Protection XSRF et mot de passe en option.

View file

@ -1,7 +1,7 @@
packaging_format = 2
id = "simple-file-manager"
name = "simple-file-manager"
name = "Simple File Manager"
description.en = "Simple PHP file manager"
description.fr = "Gestionnaire de fichiers PHP simple"
@ -17,8 +17,11 @@ code = "https://github.com/jcampbell1/simple-file-manager"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = false
sso = false
disk = "50M"
ram.build = "50M"
ram.runtime = "50M"
@ -35,11 +38,6 @@ ram.runtime = "50M"
type = "group"
default = "visitors"
#[install.password]
#help.en = "Use the help field to add an information for the admin about this question."
#help.fr = "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question."
#type = "password"
[resources]
[resources.sources]

View file

@ -33,12 +33,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# BACKUP SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -19,6 +19,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
@ -27,7 +28,7 @@ chown -R $app:www-data "$install_dir"
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated PHP-FPM config using the conf/php-fpm.conf or conf/extra_php-fpm.conf
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
# Create a dedicated NGINX config using the conf/nginx.conf template
ynh_add_nginx_config

View file

@ -17,6 +17,7 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================

View file

@ -25,6 +25,7 @@ then
ynh_setup_source --dest_dir="$install_dir"
fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
@ -32,7 +33,7 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
ynh_add_nginx_config