mirror of
https://github.com/YunoHost-Apps/yeswiki_ynh.git
synced 2024-09-03 18:05:56 +02:00
Merge pull request #84 from YunoHost-Apps/testing
CLIC installation model and sso support
This commit is contained in:
commit
4d511ee764
28 changed files with 829 additions and 41 deletions
|
@ -1,6 +1,7 @@
|
|||
# All available README files by language
|
||||
|
||||
- [Read the README in English](README.md)
|
||||
- [Lea el README en español](README_es.md)
|
||||
- [Irakurri README euskaraz](README_eu.md)
|
||||
- [Lire le README en français](README_fr.md)
|
||||
- [Le o README en galego](README_gl.md)
|
||||
|
|
|
@ -26,7 +26,7 @@ However, with a YesWiki we can build a website with multiple uses:
|
|||
- Cultivate a bit of freedom...
|
||||
|
||||
|
||||
**Shipped version:** 4.4.4~ynh2
|
||||
**Shipped version:** 4.4.4~ynh3
|
||||
|
||||
**Demo:** <https://ferme.yeswiki.net/?CreerSonWiki>
|
||||
|
||||
|
|
57
README_es.md
Normal file
57
README_es.md
Normal file
|
@ -0,0 +1,57 @@
|
|||
<!--
|
||||
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||
No se debe editar a mano.
|
||||
-->
|
||||
|
||||
# YesWiki para Yunohost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/yeswiki)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=yeswiki)
|
||||
|
||||
*[Leer este README en otros idiomas.](./ALL_README.md)*
|
||||
|
||||
> *Este paquete le permite instalarYesWiki rapidamente y simplement en un servidor YunoHost.*
|
||||
> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.*
|
||||
|
||||
## Descripción general
|
||||
|
||||
YesWiki is a wiki designed to remain simple, very easy to install, in French translated into English, Spanish, Catalan, Flemish...
|
||||
|
||||
However, with a YesWiki we can build a website with multiple uses:
|
||||
- Gather all the information of a project or a group (function of "central station")
|
||||
- Mapping members or places in a participatory way
|
||||
- Share resources, lists, calendars thanks to powerful cooperative databases
|
||||
- Communicate information flows
|
||||
- Cultivate a bit of freedom...
|
||||
|
||||
|
||||
**Versión actual:** 4.4.4~ynh3
|
||||
|
||||
**Demo:** <https://ferme.yeswiki.net/?CreerSonWiki>
|
||||
|
||||
## Capturas
|
||||
|
||||

|
||||
|
||||
## Documentaciones y recursos
|
||||
|
||||
- Sitio web oficial: <https://yeswiki.net/>
|
||||
- Documentación administrador oficial: <https://yeswiki.net/?DocumentatioN>
|
||||
- Repositorio del código fuente oficial de la aplicación : <https://github.com/YesWiki/yeswiki>
|
||||
- Catálogo YunoHost: <https://apps.yunohost.org/app/yeswiki>
|
||||
- Reportar un error: <https://github.com/YunoHost-Apps/yeswiki_ynh/issues>
|
||||
|
||||
## Información para desarrolladores
|
||||
|
||||
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/yeswiki_ynh/tree/testing
|
||||
|
||||
Para probar la rama `testing`, sigue asÍ:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/yeswiki_ynh/tree/testing --debug
|
||||
o
|
||||
sudo yunohost app upgrade yeswiki -u https://github.com/YunoHost-Apps/yeswiki_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>
|
|
@ -26,7 +26,7 @@ However, with a YesWiki we can build a website with multiple uses:
|
|||
- Cultivate a bit of freedom...
|
||||
|
||||
|
||||
**Paketatutako bertsioa:** 4.4.4~ynh2
|
||||
**Paketatutako bertsioa:** 4.4.4~ynh3
|
||||
|
||||
**Demoa:** <https://ferme.yeswiki.net/?CreerSonWiki>
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ Néanmoins, avec un YesWiki on peut fabriquer un site internet aux usages multip
|
|||
- Cultiver un bout de liberté...
|
||||
|
||||
|
||||
**Version incluse :** 4.4.4~ynh2
|
||||
**Version incluse :** 4.4.4~ynh3
|
||||
|
||||
**Démo :** <https://ferme.yeswiki.net/?CreerSonWiki>
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ However, with a YesWiki we can build a website with multiple uses:
|
|||
- Cultivate a bit of freedom...
|
||||
|
||||
|
||||
**Versión proporcionada:** 4.4.4~ynh2
|
||||
**Versión proporcionada:** 4.4.4~ynh3
|
||||
|
||||
**Demo:** <https://ferme.yeswiki.net/?CreerSonWiki>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
请勿手动编辑。
|
||||
-->
|
||||
|
||||
# YunoHost 的 YesWiki
|
||||
# YunoHost 上的 YesWiki
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/yeswiki)  
|
||||
|
||||
|
@ -26,7 +26,7 @@ However, with a YesWiki we can build a website with multiple uses:
|
|||
- Cultivate a bit of freedom...
|
||||
|
||||
|
||||
**分发版本:** 4.4.4~ynh2
|
||||
**分发版本:** 4.4.4~ynh3
|
||||
|
||||
**演示:** <https://ferme.yeswiki.net/?CreerSonWiki>
|
||||
|
||||
|
|
573
conf/CLIC/default-content.sql
Normal file
573
conf/CLIC/default-content.sql
Normal file
|
@ -0,0 +1,573 @@
|
|||
# YesWiki pages
|
||||
INSERT INTO `{{prefix}}pages` (`tag`, `time`, `body`, `body_r`, `owner`, `user`, `latest`, `handler`, `comment_on`) VALUES
|
||||
('AnnuaireAlpha', now(), '{{nav links=\"TrombiAnnuaire, AnnuaireAlpha, CartoAnnuaire, SaisirAnnuaire\" titles=\"Trombinoscope, Annuaire alphabétique, Annuaire cartographique, S\'inscrire dans l\'annuaire\"}}
|
||||
|
||||
{{bazarliste id=\"1\" template=\"annuaire_alphabetique\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('BacASable', now(), '# Bac à sable
|
||||
## Premiers défis à réaliser
|
||||
1) premier défi => **écrire dans cette page**
|
||||
- cliquez sur \"éditer la page\" (en bas) ou double cliquez dans la page,
|
||||
- l\'aspect de la page va légèrement changer car vous êtes en __mode édition__
|
||||
- écrivez ce que vous voulez ici =>
|
||||
- puis cliquez sur le bouton \"sauver\" (en haut à gauche) et observez votre travail
|
||||
|
||||
2) deuxième défi => **insérer un bouton**
|
||||
- cliquez sur \"éditer la page\" ou double cliquez dans la page,
|
||||
- Positionnez votre curseur ici
|
||||
- cliquez sur __composants__ / boutons et laissez vous guider,
|
||||
- cliquez sur \"insérer dans la page\",
|
||||
- sauvez
|
||||
- vous pourrez ensuite explorer les autres composants
|
||||
|
||||
3) troisième défi => **modifier votre bouton**
|
||||
- Passez la page en mode édition,
|
||||
- cliquez sur la ligne correspondant au code du bouton => un petit crayon apparaît dans la marge,
|
||||
- cliquez sur __le petit crayon__ et changez les paramètres,
|
||||
- cliquez sur \"mettre à jour le code\",
|
||||
- sauvez
|
||||
- Cette démarche de modification fonctionnera pour tous les codes des composants
|
||||
|
||||
4) quatrième défi => **restaurer la version précédente d\'une page** (en cas de préférence ou d\'erreur)
|
||||
- cliquez, en bas de la page, sur Dernière édition
|
||||
- choisissez une des versions précédentes,
|
||||
- cliquez sur \"Restaurer cette version\",
|
||||
- le tour est joué.
|
||||
|
||||
5) cinquième défi => **insérer une image**
|
||||
- en édition, placez-vous tout en bas de cette page
|
||||
- cliquez ensuite sur fichier dans la berre d\'édition
|
||||
- choisissez un fichier image (jpeg, png ou gif) de moins de 500 ko sur votre ordinateur
|
||||
- jouez avec les paramètres
|
||||
- sauvez
|
||||
|
||||
6) sixième défi => **trouver le nom d\'une page**
|
||||
- Regardez l\'url de cette page
|
||||
- le nom de cette page est le mot se situant après le ?
|
||||
- maintenant cherchez le nom de la page d\'accueil
|
||||
- ensuite transformer \"retour vers la page d\'accueil\" en un lien cliquable vers cette page
|
||||
|
||||
Une aide simple est aisément accessible en cliquant sur l\'icone \"?\" lorsque vous êtes en mode édition.', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('BazaR', now(), '{{bazar showexportbuttons=\"1\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('CartoAnnuaire', now(), '{{nav links=\"TrombiAnnuaire, AnnuaireAlpha, CartoAnnuaire, SaisirAnnuaire\" titles=\"Trombinoscope, Annuaire alphabétique, Annuaire cartographique, S\'inscrire dans l\'annuaire\"}}
|
||||
|
||||
{{bazarliste id=\"1\" template=\"map\" markersize=\"small\" height=\"800px\" zoom=\"6\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('DerniersChangementsRSS', now(), '{{recentchangesrss}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('ExempleFormulaire', now(), '# Exemples de formulaires à adapter (ou à jeter)
|
||||
Les formulaires qui vous sont proposés dans ce menu sont souvent demandés par les collectifs.
|
||||
Ils sont fournis pour inspiration et __sont bien sûr adaptables (ou supprimables)__ via la page BazaR.
|
||||
Vous pouvez aussi renommer-réorganiser-enlever les pages de ce menu selon vos besoins.
|
||||
|
||||
Vous trouverez un formulaire permettant
|
||||
- de gérer un [annuaire](TrombiAnnuaire) (des membres du collectif par exemple)
|
||||
- un [agenda](VueActivite) pour présenter les activités __à venir__ ou une vue globale en calendrier
|
||||
- une [ressourcerie](FacetteRessource) pour collecter, filtrer et partager des ressources
|
||||
- un [blog](VoirBlog) permettant d\'afficher l\'actualité du collectif', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('FacetteRessource', now(), '{{nav links=\"FacetteRessource, SaisirRessource\" titles=\"Les ressources, Déposer une ressource\"}}
|
||||
|
||||
{{bazarliste id=\"4\" template=\"liste_accordeon\" correspondance=\"soustitre=bf_description\" groups=\"checkboxListeType\" titles=\"Tri par type\" voirmenu=\"0\" vue=\"recherche\" }}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererConfig', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
{{editconfig}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererDroits', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
{{button class=\"btn-primary btn-xs pull-right\" hideifnoaccess=\"true\" icon=\"fas fa-arrow-right\" link=\"GererDroitsActions\" text=\"Droits des actions/handlers\" }}
|
||||
#### Gérer les droits des pages
|
||||
{{gererdroits}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererDroitsActions', now(), '//Droits d\'accès//
|
||||
{{nav class=\"nav nav-tabs\" hideifnoaccess=\"true\" links=\"GererDroitsActions, GererDroitsHandlers, GererDroits\" titles=\"Actions, Handlers, Pages\" }}
|
||||
|
||||
#### Droits d\'accès aux actions
|
||||
|
||||
{{editactionsacls}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererDroitsHandlers', now(), '//Droits d\'accès//
|
||||
{{nav class=\"nav nav-tabs\" hideifnoaccess=\"true\" links=\"GererDroitsActions, GererDroitsHandlers, GererDroits\" titles=\"Actions, Handlers, Pages\" }}
|
||||
|
||||
#### Droits d\'accès aux handlers
|
||||
|
||||
{{edithandlersacls}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererMisesAJour', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
#### Mises à jour / extensions
|
||||
{{update}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererSauvegardes', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
{{adminbackups}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererSite', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
{{attach file=\"modele.jpg\" desc=\"image Dessin_sans_titre.jpg (66.9kB)\" size=\"big\" class=\"right\" nofullimagelink=\"1\"}}
|
||||
#### Gérer les menus et pages spéciales de ce wiki
|
||||
- [Éditer la Page Titre](PageTitre/edit)
|
||||
- [Éditer la Page Menu Haut](PageMenuHaut/edit)
|
||||
- [Éditer la Page Footer](PageFooter/edit)
|
||||
##### Et éventuellement
|
||||
- [Éditer la Page Rapide Haut](PageRapideHaut/edit)
|
||||
##### Mais aussi
|
||||
- [Éditer le menu vertical](PageMenu/edit)
|
||||
- [Éditer l\'aide mémoire](ReglesDeFormatage/edit)
|
||||
- [Afficher un bandeau sur toutes les pages](PageHeader/edit "Aplat de couleurs ou images")
|
||||
\"\"<div class=\"clearfix\"></div>\"\"
|
||||
#### Gestion des mots clés
|
||||
{{admintag}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererThemes', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
{{button class=\"btn-info\" link=\"LookWiki\" text=\"Personnaliser le look de ce wiki (couleurs, police...)\" }}
|
||||
{{button class=\"btn-info pull-right\" link=\"PageCss\" text=\"Ajouter du code CSS (zone sensible)\" title=\"Cette page ne peut contenir QUE du Css / voir le document\" }}
|
||||
|
||||
------
|
||||
|
||||
#### Gérer les thèmes des pages
|
||||
{{gererthemes}}
|
||||
-----
|
||||
#### Gérer le thème par défaut du wiki
|
||||
{{setwikidefaulttheme}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('GererUtilisateurs', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
#### Gérer les groupes d\'utilisateurices
|
||||
{{editgroups}}
|
||||
|
||||
#### Gérer les utilisateurices
|
||||
{{userstable}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('LookWiki', now(), '{{nav links=\"GererSite, GererDroits, GererThemes, GererUtilisateurs, GererConfig, GererMisesAJour, GererSauvegardes\" titles=\"Gestion du site, Droits, Look, Utilisateurices, Fichier de conf, MAJ / extensions, Sauvegardes\"}}
|
||||
|
||||
{{button class=\"btn-info btn-block\" link=\"LookWiki\" text=\"Personnaliser le thème de ce wiki (couleurs, police...)\" }}
|
||||
{{button class=\"btn-default btn-block\" link=\"PageCss\" text=\"Ajouter du code CSS (zone sensible)\" title=\"Cette page ne peut contenir QUE du Css / voir le document\" }}
|
||||
|
||||
|
||||
# Personnaliser l\'apparence
|
||||
|
||||
{{section bgcolor=\"#d9ead3\" class=\"cover black shape-rounded text-left\" }}
|
||||
Pour modifier l\'apparence de votre wiki, utilisez le sélecteur de thème ci-dessous.
|
||||
L\'aperçu de cette page sera mis à jour en direct mais le style ne sera appliqué à votre site que lorsqu\'un administrateur aura validé en cliquant sur le bouton \"Mettre à jour\".
|
||||
Pour plus dinformations sur les possibiltés de personnalisation graphique [consultez la documentation](?doc#/docs/fr/admin?id=visualisermodifier-le-thème-graphique-affecté-à-chaque-page-de-votre-wiki)
|
||||
{{end elem=\"section\"}}
|
||||
|
||||
{{grid}}
|
||||
{{col size=\"4\"}}
|
||||
## Thème, Squelette, Style
|
||||
### Choix du squelette
|
||||
**1col.tpl.html** (squelette par defaut)
|
||||
**1col.vertical-menu.tpl.html** : déplace le menu principal vers une colonne gauche
|
||||
**2cols-left.tpl.html** ajoute une colonne à gauche qui contient PageMenu
|
||||
**2cols-right.tpl.html** ajoute une colonne à droite qui contient PagecolonneDroite
|
||||
**full-page** exploite lécran en pleine largeur
|
||||
### Choix du style
|
||||
**Margot.css** : Barre de menu colorée
|
||||
**Margot-fun.css** : design de la barre de menu sous forme donglets et formes géométriques sur les titres de page
|
||||
**Light.css** : Barre de menu blanche
|
||||
{{end elem=\"col\"}}
|
||||
{{col size=\"4\"}}
|
||||
## Configuration graphique
|
||||
En créant \"une nouvelle configuration graphique\", vous pouvez définir des variantes de couleurs :
|
||||
**une couleur primaire** : cest votre couleur dominante, elle sera utilisée par défaut pour la barre de menu ainsi que pour les titres et les liens.
|
||||
**2 couleurs secondaires** peu visibles par defaut mais vous pourrez facilement les utiliser dans vos éléments de mise en forme.
|
||||
**la couleur de votre texte** et couleur du fond : si vous les modifiez, veillez à bien respecter le contraste pour assurer la lisibilité des contenus.
|
||||
{{end elem=\"col\"}}
|
||||
{{col size=\"4\"}}
|
||||
{{section class=\"well\" nocontainer=\"1\"}}
|
||||
### Choisir le thème, styles et squelettes associés
|
||||
{{themeselector}}
|
||||
{{end elem=\"section\"}}
|
||||
{{end elem=\"col\"}}
|
||||
{{end elem=\"grid\"}}
|
||||
|
||||
{{section class=\"full-width black text-center\" bgcolor=\"var(--secondary-color-2)\" height=\"250\"}}
|
||||
# Composants graphiques
|
||||
|
||||
Ce bandeau de couleur a été créé grâce au composant de mise en forme nommé **section**
|
||||
|
||||
{{end elem=\"section\"}}
|
||||
|
||||
### Boutons
|
||||
{{button link=\"config/root_page\" class=\"btn btn-default\" text=\"btn-default\"}}
|
||||
{{button link=\"config/root_page\" class=\"btn btn-primary\" text=\"btn-primary\"}}
|
||||
{{button link=\"config/root_page\" class=\"btn btn-secondary-1\" text=\"btn-secondary-1\"}}
|
||||
{{button link=\"config/root_page\" class=\"btn btn-secondary-2\" text=\"btn-secondary-2\"}}
|
||||
{{button link=\"config/root_page\" class=\"btn btn-success\" text=\"btn-success\"}}
|
||||
{{button link=\"config/root_page\" class=\"btn btn-info\" text=\"btn-info\"}}
|
||||
|
||||
### Etiquettes
|
||||
{{label}}Label-default{{end elem=\"label\"}}
|
||||
{{label class=\"label-primary\"}}label-primary{{end elem=\"label\"}}
|
||||
{{label class=\"label-secondary-1\"}}label-secondary-1{{end elem=\"label\"}}
|
||||
{{label class=\"label-secondary-2\"}}label-secondary-2{{end elem=\"label\"}}
|
||||
{{label class=\"label-success\"}}label-success{{end elem=\"label\"}}
|
||||
{{label class=\"label-info\"}}label-info{{end elem=\"label\"}}
|
||||
{{label class=\"label-warning\"}}label-warning{{end elem=\"label\"}}
|
||||
{{label class=\"label-danger\"}}label-danger{{end elem=\"label\"}}
|
||||
|
||||
### Encadrés
|
||||
{{panel title=\"Titre default\" type=\"collapsed\"}}
|
||||
Contenu panel-default
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel class=\"panel-primary\" title=\"Titre primary\" type=\"collapsible\"}}
|
||||
Contenu panel-primary
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel class=\"panel-secondary-1\" title=\"Titre secondary-1\"}}
|
||||
Contenu panel-secondary-1
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel class=\"panel-secondary-2\" title=\"Titre secondary-2\"}}
|
||||
Contenu panel-secondary-2
|
||||
{{end elem=\"panel\"}}
|
||||
|
||||
### Accordéons
|
||||
{{accordion}}
|
||||
{{panel class=\"panel-success\" title=\"Titre success\"}}
|
||||
Contenu panel-success
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel class=\"panel-warning\" title=\"Titre warning\"}}
|
||||
Contenu panel-warning
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel class=\"panel-danger\" title=\"Titre danger\"}}
|
||||
Contenu panel-danger
|
||||
{{end elem=\"panel\"}}
|
||||
{{end elem=\"accordion\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('MesContenus', now(), '# Mes contenus
|
||||
{{accordion }}
|
||||
{{panel title=\"Mes paramètres\"}}
|
||||
{{UserSettings}}
|
||||
{{lostpassword}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel title=\"Mes pages\"}}
|
||||
{{mypages}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel title=\"Mes favoris\"}}
|
||||
{{myfavorites template=\"my-favorites-tiles.twig\" }}
|
||||
{{myfavorites template=\"my-favorites-with-titles.twig\"}}
|
||||
{{myfavorites template=\"my-favorites-table.twig\"}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel title=\"Mes fiches bazar\"}}
|
||||
{{bazarliste template=\"liste_accordeon\" dynamic=\"true\" filteruserasowner=\"true\"}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel title=\"Mes changements\"}}
|
||||
{{mychanges}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel title=\"Mes votes, réactions\"}}
|
||||
{{userreactions}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel title=\"Mes commentaires\"}}
|
||||
{{usercomments}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{end elem=\"accordion\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('MotDePassePerdu', now(), '{{lostpassword}}
|
||||
', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageColonneDroite', now(), 'Double cliquer sur ce texte pour éditer cette colonne.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\"\"\"\"
|
||||
', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageCss', now(), ':root {
|
||||
--navbar-bg-color: #fff;
|
||||
--navbar-text-color: #333;
|
||||
--navbar-link-color: #333;
|
||||
--navbar-link-bg-color: transparent;
|
||||
}
|
||||
html, body {line-height: 1.4;}
|
||||
#yw-topnav {
|
||||
border-bottom: none;
|
||||
box-shadow: 0 1px 10px rgba(15,0,0,.4);
|
||||
}
|
||||
|
||||
#yw-topnav .btn.btn-default {
|
||||
background: var(--navbar-bg-color) !important;
|
||||
color: var(--navbar-link-color) !important;
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
#yw-topnav .btn.btn-default:hover,
|
||||
#yw-topnav .btn.btn-default:focus {
|
||||
background: transparent !important;
|
||||
color: var(--navbar-link-hover-color) !important;
|
||||
border: 2px solid var(--navbar-link-hover-color);
|
||||
}
|
||||
|
||||
h1 {
|
||||
letter-spacing: initial;
|
||||
font-weight: 900;
|
||||
}
|
||||
h2 {
|
||||
font-weight: 700;
|
||||
}
|
||||
h3,h4,h5,h6 {
|
||||
font-weight: 500;
|
||||
}
|
||||
br + h1,br + h2,br + h3,br + h4,br + h5, br + h6 {
|
||||
margin-top: 0;
|
||||
}
|
||||
section h2 {
|
||||
margin: 0 0 .5em;
|
||||
}
|
||||
|
||||
#yw-topnav .navbar-nav > li > a {
|
||||
font-family: var(--main-title-fontfamily);
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
#yw-topnav .navbar-header .navbar-brand {
|
||||
padding: 0;
|
||||
}
|
||||
#yw-topnav .btn .fa {
|
||||
font-size: 1rem !important;
|
||||
}
|
||||
#yw-topnav .yw-topnav-fast-access .btn.btn-default, #yw-topnav .btn.btn-menu.btn-default, #yw-topnav .yw-topnav-fast-access .btn.btn-default:hover, #yw-topnav .yw-topnav-fast-access .btn.btn-default:focus {
|
||||
font-size: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#yw-topnav .yw-topnav-fast-access .btn {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#yw-topnav .yw-topnav-fast-access .btn i {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
#yw-topnav .btn.btn-default {
|
||||
min-height: 2rem;
|
||||
min-width: 2rem;
|
||||
display: flex;
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#yw-topnav .container {
|
||||
padding: 0 .25rem;
|
||||
}
|
||||
.yw-topnav-fast-access {
|
||||
min-width: 150px;
|
||||
min-height: 70px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#yw-topnav .navbar-brand img {
|
||||
max-height: 2.5rem;
|
||||
width: auto;
|
||||
margin-left: 0;
|
||||
margin-top: .2rem;
|
||||
}
|
||||
}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageFooter', now(), '{{section class=\"text-center\"}}
|
||||
👉 [[https://projetclic.cc CLIC]] 👈
|
||||
Galope sous [[https://yeswiki.net YesWiki]] et [[https://yunohost.org Yunohost]]
|
||||
{{end elem=\"section\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageHeader', now(), '', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageLogin', now(), '{{login}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageMenu', now(), ' - [Accueil]({{rootPage}})
|
||||
- [Test du look](LookWiki)
|
||||
|
||||
----
|
||||
|
||||
Double cliquer sur ce texte pour éditer cette colonne.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\"\"\"\"', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageMenuHaut', now(), ' - [Accueil]({{rootpage}})
|
||||
- [Services](Services)
|
||||
- [Ressources](Ressources)', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('{{rootPage}}', now(), '
|
||||
{{section bgcolor=\"var(--primary-color)\" class=\"shape-rounded\" pattern=\"border-solid\" }}=====Bienvenue=====
|
||||
Vous êtes sur un espace auto-hébergé de partage de ressource et d\'outils numériques coopératifs sous license libre.
|
||||
Tout est à disposition pour que vous puissiez consulter cela localement, chez vous en auto-hébergement.
|
||||
|
||||
Ces services ont été mis en place par {{button class=\"btn-primary new-window\" link=\"https://colibris-outilslibres.org/\" nobtn=\"1\" text=\"Colibris\" title=\"mouvement Colibris\" }}, {{button class=\"new-window\" link=\"https://distrilab.fr\" nobtn=\"1\" text=\"le DistriLab\" title=\"le DistriLab\"}}, {{button class=\"new-window\" link=\"https://www.ritimo.org/\" nobtn=\"1\" text=\"Ritimo\" title=\"Ritimo\"}}, {{button class=\"new-window\" link=\"https://yeswiki.net\" nobtn=\"1\" text=\"YesWiki\" title=\"YesWiki\"}}, {{button class=\"new-window\" link=\"https://yunohost.org\" nobtn=\"1\" text=\"YUNoHost\" title=\"YUNoHost\"}}, {{button class=\"new-window\" link=\"https://framasoft.org\" nobtn=\"1\" text=\"Framasoft\" title=\"Framasoft\"}},…
|
||||
{{end elem=\"section\"}}
|
||||
', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageRapideHaut', now(), '{{moteurrecherche template=\"moteurrecherche_button.tpl.html\"}}
|
||||
{{buttondropdown icon=\"cog\" caret=\"0\" title=\"Gestion du site\"}}
|
||||
- {{button nobtn=\"1\" icon=\"fa fa-tachometer-alt\" text=\"Tableau de bord\" link=\"TableauDeBord\"}}
|
||||
- {{button nobtn=\"1\" icon=\"fa fa-question\" text=\"Documentation\" link=\"doc\"}}
|
||||
- ------
|
||||
- {{button nobtn=\"1\" icon=\"fa fa-wrench\" text=\"Gestion du site\" link=\"GererSite\"}}
|
||||
- {{button nobtn=\"1\" icon=\"fas fa-user\" text=\"Mes contenus\" link=\"MesContenus\"}}
|
||||
- {{button nobtn=\"1\" icon=\"fa fa-briefcase\" text=\"Formulaires\" link=\"BazaR\"}}
|
||||
- ------
|
||||
- {{button nobtn=\"1\" icon=\"fas fa-cog\" text=\"Admin Yunohost\" link=\"/yunohost/admin\"}}
|
||||
{{end elem=\"buttondropdown\"}}
|
||||
{{login template=\"modal.tpl.html\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('PageTitre', now(), '', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('ParametresUtilisateur', now(), '{{UserSettings}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('Ressources', now(), '# Ressources
|
||||
|
||||
{{bazarliste id=\"4\" template=\"card\" displayfields=\"visual=imagebf_image,title=bf_titre,subtitle=bf_description,footer=checkboxListeType\" nbcol=\"1\" style=\"horizontal\" }}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('RechercheTexte', now(), '{{newtextsearch}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('ReglesDeFormatage', now(), 'N\'hésitez pas à personnaliser cette page d\'aide (code utile, astuce...) en cliquant sur [ReglesDeFormatage](ReglesDeFormatage/edit){.newtab}
|
||||
{#Placez votre aide personnalisée entre ici#}
|
||||
|
||||
{#et ici#}
|
||||
{{grid}}
|
||||
{{col size=\"6\"}}
|
||||
#### Insérer un iframe
|
||||
//Inclure un autre site, ou un pad, ou une vidéo youtube, etc...//
|
||||
`\"\"<iframe width=100% height=\"1250\" src=\"http://exemple.com\" frameborder=\"0\" allowfullscreen></iframe>\"\"`
|
||||
|
||||
#### Ecrire en html
|
||||
\"\"<pre>si vous déposez du html dans la page wiki,
|
||||
il faut l\'entourer de "" <bout de html> ""
|
||||
pour qu\'il soit interprété</pre>\"\"
|
||||
#### Obtenir un tableau
|
||||
\"\"<pre>
|
||||
[|
|
||||
|**Nom**|**prénom**|**Couleurs préférées**|
|
||||
|Lagaffe|Gaston|jaune|
|
||||
|Lapalice|Jean|vert|
|
||||
|]
|
||||
</pre>\"\"
|
||||
donne
|
||||
[|
|
||||
|**Nom**|**prénom**|**Couleurs préférées**|
|
||||
|Lagaffe|Gaston|jaune|
|
||||
|Lapalice|Jean|vert|
|
||||
|]
|
||||
#### Eviter qu\'un mot avec deux majuscules ne soit reconnu comme lien vers une page wiki
|
||||
\"\"<pre>Il faut l\'entourer de "" "" (ex : "" MonMotAvecDeuxMajuscules "") pour qu\'il ne soit pas interprété comme lien wiki</pre>\"\"
|
||||
#### Créer une ancre, un lien qui envoie sur une partie de votre page
|
||||
Le code suivant permet de créer le lien qui ira vers votre paragraphe
|
||||
`\"\"<a href=\"#ancre1\">Aller vers le paragraphe cible</a>\"\"`
|
||||
Et cette partie de code sera à placer juste au dessus du paragraphe cible
|
||||
`\"\"<div id=\"ancre1\"></div>\"\"`
|
||||
{{end elem=\"col\"}}
|
||||
{{col size=\"6\"}}
|
||||
#### Mettre du texte en couleur
|
||||
`\"\"<span style=\"color:#votrecodecouleur;\">votre texte à colorer</span>\"\"`
|
||||
//Quelques codes couleur => mauve : #990066 / vert : #99cc33 / rouge : #cc3333 / orange : #ff9900 / bleu : #006699//
|
||||
//Voir les codes hexa des couleurs : [https://fr.wikipedia.org/wiki/Liste_de_couleurs](https://fr.wikipedia.org/wiki/Liste_de_couleurs)//
|
||||
|
||||
#### Aligner du texte
|
||||
Placez votre texte dans une section (voir composant) et choisissez votre alignement (gauche, centré, droite, justifié)
|
||||
|
||||
#### Utiliser des icônes Emoji
|
||||
Il est possible de copier des icônes dans des sites sources puis de les coller dans votre wiki. \"\"<a href=\"http://getemoji.com\" target=\"_blank\" class=\"btn btn-primary btn-xs\">Par exemple sur ce site</a>\"\"
|
||||
|
||||
#### Afficher une barre de progression
|
||||
[10%] donne [10%]
|
||||
[40%] donne [40%]
|
||||
[80%] donne [80%]
|
||||
|
||||
#### Vous trouverez beaucoup d\'autres astuces dans
|
||||
- [La documentation](?doc){.newtab}
|
||||
- [Le forum](https://forum.yeswiki.net/){.newtab}
|
||||
- [Comment faire pour...](https://yeswiki.net/?CommentFairePour){.newtab}
|
||||
|
||||
{{end elem=\"col\"}}
|
||||
{{end elem=\"grid\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('SaisirAgenda', now(), '{{nav links=\"VueActivite, VueAgenda, SaisirAgenda\" titles=\"Voir les prochaines activités, Voir l\'agenda, Proposer une activité\"}}
|
||||
|
||||
{{bazar voirmenu=\"0\" vue=\"saisir\" id=\"2\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('SaisirAnnuaire', now(), '{{nav links=\"TrombiAnnuaire, AnnuaireAlpha, CartoAnnuaire, SaisirAnnuaire\" titles=\"Trombinoscope, Annuaire alphabétique, Annuaire cartographique, S\'inscrire dans l\'annuaire\"}}
|
||||
|
||||
{{bazar voirmenu=\"0\" vue=\"saisir\" id=\"1\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('SaisirBlog', now(), '{{nav links=\"VoirBlog, VoirBlogSimple, SaisirBlog\" titles=\"Le blog avec Une, Le blog sans Une, Déposer une actu\"}}
|
||||
|
||||
{{bazar vue=\"saisir\" voirmenu=\"0\" id=\"3\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('SaisirRessource', now(), '{{nav links=\"FacetteRessource, SaisirRessource\" titles=\"Les ressources, Déposer une ressource\"}}
|
||||
|
||||
{{bazar voirmenu=\"0\" vue=\"saisir\" id=\"4\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('Services', now(), '# Services libres
|
||||
|
||||
{{bazarliste id=\"5\" template=\"card\" displayfields=\"visual=imagebf_image,title=bf_titre,subtitle=bf_description\" groups=\"listeListeVisibilite\" imgstyle=\"contain\" nbcol=\"3\" }}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('TableauDeBord', now(), '# Tableau de bord
|
||||
{{accordion }}
|
||||
|
||||
{{panel title=\"Dernières modifications sur le wiki\" type=\"collapsible\" }}
|
||||
{{grid}}
|
||||
{{col size=\"6\"}}
|
||||
### 12 Derniers comptes utilisateurices
|
||||
{{Listusers/last=\"12\"}}
|
||||
{{end elem=\"col\"}}
|
||||
{{col size=\"6\"}}
|
||||
### 12 Dernières pages modifiées
|
||||
{{recentchanges max=\"12\"}}
|
||||
{{end elem=\"col\"}}
|
||||
{{end elem=\"grid\"}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{panel title=\"Index des pages et fiches du wiki\" type=\"collapsed\" }}
|
||||
{{grid}}
|
||||
{{col size=\"4\"}}
|
||||
### Pages orphelines
|
||||
{{OrphanedPages}}
|
||||
{{end elem=\"col\"}}
|
||||
{{col size=\"4\"}}
|
||||
### Index des fiches bazar
|
||||
{{bazarrecordsindex}}
|
||||
{{end elem=\"col\"}}
|
||||
{{col size=\"4\"}}
|
||||
### Index des pages seules
|
||||
{{pageonlyindex}}
|
||||
{{end elem=\"col\"}}
|
||||
{{end elem=\"grid\"}}
|
||||
{{end elem=\"panel\"}}
|
||||
{{end elem=\"accordion\" }}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('TrombiAnnuaire', now(), '{{nav links=\"TrombiAnnuaire, AnnuaireAlpha, CartoAnnuaire, SaisirAnnuaire\" titles=\"Trombinoscope, Annuaire alphabétique, Annuaire cartographique, S\'inscrire dans l\'annuaire\"}}
|
||||
|
||||
{{bazarliste id=\"1\" template=\"card\" displayfields=\"visual=imagebf_image,title=bf_titre\" imgstyle=\"contain\" nbcol=\"3\" style=\"square\" }}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('VoirBlog', now(), '{{nav links=\"VoirBlog, VoirBlogSimple, SaisirBlog\" titles=\"Le blog avec Une, Le blog sans Une, Déposer une actu\"}}
|
||||
|
||||
{{bazarliste id=\"3\" template=\"blog\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('VoirBlogSimple', now(), '{{nav links=\"VoirBlog, VoirBlogSimple, SaisirBlog\" titles=\"Le blog avec Une, Le blog sans Une, Déposer une actu\"}}
|
||||
|
||||
{{bazarliste id=\"3\" template=\"blog\" header=\"no\"}}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('VueActivite', now(), '{{nav links=\"VueActivite, VueAgenda, SaisirAgenda\" titles=\"Voir les prochaines activités, Voir l\'agenda, Proposer une activité\"}}
|
||||
|
||||
{{bazarliste template=\"agenda\" id=\"2\" ordre=\"desc\" champ=\"bf_date_debut_evenement\" agenda=\"futur\" }}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('VueAgenda', now(), '{{nav links=\"VueActivite, VueAgenda, SaisirAgenda\" titles=\"Voir les prochaines activités, Voir l\'agenda, Proposer une activité\"}}
|
||||
|
||||
{{bazarliste id=\"2\" template=\"calendar\" }}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('WikiAdmin', now(), '{{redirect page=\"GererSite\"}}
|
||||
', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('YesWiki', now(), 'YesWiki', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', '');
|
||||
# end YesWiki pages
|
||||
|
||||
# Bazar forms
|
||||
INSERT INTO `{{prefix}}nature` (`bn_id_nature`, `bn_label_nature`, `bn_description`, `bn_condition`, `bn_sem_context`, `bn_sem_type`, `bn_sem_use_template`, `bn_template`, `bn_ce_i18n`, `bn_only_one_entry`, `bn_only_one_entry_message`) VALUES
|
||||
('2', 'Agenda', '', '', 'https://www.w3.org/ns/activitystreams', 'Event', '1', 'texte***bf_titre***Nom de l\'événement***60***255*** *** ***text***1*** *** *** * *** * *** *** *** ***\r\ntextelong***bf_description***Description***40*** *** *** ***wiki***0*** *** *** * *** * *** *** *** ***\r\nlistedatedeb***bf_date_debut_evenement***Début de l\'événement*** *** ***today*** *** ***1*** *** *** * *** * *** *** *** ***\r\nlistedatefin***bf_date_fin_evenement***Fin de l\'événement*** *** ***today*** *** ***1*** *** *** * *** * *** *** *** ***\r\nlien_internet***bf_site_internet***Adresse url*** *** *** *** *** ***0*** *** *** * *** * *** *** *** ***\r\nimage***bf_image***Image (facultatif)***140***140***600***600***right***0*** ***Votre image doit être au format .jpg ou .gif ou .png*** * *** * *** *** *** ***\r\nfichier***fichier***Documents***20000000*** *** *** ***file***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_adresse***Adresse***50***50*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_code_postal***Code postal***8***8*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_ville***Ville***50***80*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\nmap***bf_latitude***bf_longitude*** *** *** *** *** ***0***\r\nlabelhtml***<h3>Il ne vous reste plus qu\'à valider ! </h3>*** *** ***\r\n', 'fr-FR', 'N', ''),
|
||||
('1', 'Annuaire', '', '', '', '', '1', 'titre***{{bf_nom}} {{bf_prenom}}***Titre Automatique***\r\ntexte***bf_nom***Nom***60***255*** *** ***text***1*** *** *** * *** * *** *** *** ***\r\ntexte***bf_prenom***Prénom***60***255*** *** ***text***1*** *** *** * *** * *** *** *** ***\r\nimage***bf_image***Image de présentation (facultatif mais c\'est plus sympa)***140***140***600***600***right***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_fonction***Mon métier, ma fonction***60***255*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\ntextelong***bf_projet***Ma présentation***5***5*** *** ***html***0*** *** *** * *** * *** *** *** ***\r\nchamps_mail***bf_mail***Email (n\'apparaitra pas sur le web)*** *** *** ***form*** ***1***0*** *** * *** * *** *** *** ***\r\ntexte***bf_structure***Nom de la structure***60***255*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\nlien_internet***bf_site_internet***Site Internet*** *** *** *** *** ***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_adresse***Adresse***50***50*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_code_postal***Code postal***8***8*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_ville***Ville***50***80*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\nmap***bf_latitude***bf_longitude*** *** ***\r\nlabelhtml***<h3>Il ne vous reste plus qu\'à valider ! </h3>*** *** ***\r\n', 'fr-FR', 'N', ''),
|
||||
('3', 'Blog-actu', '', '', '', '', '1', 'image***bf_image***Image***400***300***1200***900***right***1*** *** *** * *** * *** *** *** ***\r\ntexte***bf_titre***Titre***80***255*** *** ***text***1*** *** *** * *** * *** *** *** ***\r\ntextelong***bf_chapeau***Résumé***40***3*** *** ***wiki***1*** *** *** * *** * *** *** *** ***\r\ntextelong***bf_description***Billet***40***9*** *** ***wiki***1*** *** *** * *** * *** *** *** ***\r\n', 'fr-FR', 'N', ''),
|
||||
('4', 'Ressources', 'Un formulaire pour créer un espace de ressources partagées. ', '', '', '', '1', 'texte***bf_titre***Nom de la ressource***60***255*** *** ***text***1*** *** *** * *** * *** *** *** ***\r\nlien_internet***bf_url***Site web***40***255*** *** ***url***0*** *** *** * *** * *** *** *** ***\r\ncheckbox***ListeType***Type de ressource*** *** *** *** *** ***1*** *** *** * *** * *** *** *** ***\r\ntextelong***bf_description***Description***5***5*** *** ***wiki***0*** *** *** * *** * *** *** *** ***\r\ntexte***bf_auteur***Auteur***60***255*** *** ***text***0*** *** *** * *** * *** *** *** ***\r\nimage***bf_image***Image de présentation (facultatif)***140***140***600***600***right***0*** *** *** * *** * *** *** *** ***\r\nfichier***fichier***Documents***20000000*** *** *** ***file***0*** *** *** * *** * *** *** *** ***\r\nlabelhtml***<h3>Il ne vous reste plus qu\'à valider ! </h3>*** *** ***\r\n', 'fr-FR', 'N', '');
|
||||
# end Bazar forms
|
||||
|
||||
# Bazar lists
|
||||
INSERT INTO `{{prefix}}pages` (`tag`, `time`, `body`, `body_r`, `owner`, `user`, `latest`, `handler`, `comment_on`) VALUES
|
||||
('ListeType', now(), '{\"label\":{\"1\":\"Site web ressource\",\"2\":\"Exp\\u00e9rience inspirante\",\"3\":\"Partenaire ressource\",\"4\":\"M\\u00e9thodologie \\/ guide\"},\"titre_liste\":\"Type\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', '');
|
||||
INSERT INTO `{{prefix}}triples` (`resource`, `property`, `value`) VALUES
|
||||
('ListeType', 'http://outils-reseaux.org/_vocabulary/type', 'liste');
|
||||
# end Bazar lists
|
||||
|
||||
# Bazar entries
|
||||
INSERT INTO `{{prefix}}pages` (`tag`, `time`, `body`, `body_r`, `owner`, `user`, `latest`, `handler`, `comment_on`) VALUES
|
||||
('Bordeaux', now(), '{\"bf_titre\":\"Super \\u00e9v\\u00e9nement \\u00e0 Bordeaux\",\"bf_description\":\"Un \\u00e9v\\u00e9nement autour du vin, c\'est pour cela qu\'il est \\u00e0 Bordeaux...\",\"bf_date_debut_evenement\":\"2024-04-10\",\"bf_date_fin_evenement\":\"2024-04-12\",\"bf_site_internet\":\"\",\"bf_adresse\":\"\",\"bf_code_postal\":\"\",\"bf_ville\":\"Bordeaux\",\"bf_latitude\":\"44.841225\",\"bf_longitude\":\"-0.5800364\",\"id_typeannonce\":\"2\",\"id_fiche\":\"Bordeaux\",\"fichierfichier\":\"\",\"geolocation\":{\"bf_latitude\":\"44.841225\",\"bf_longitude\":\"-0.5800364\"},\"date_creation_fiche\":\"2021-06-21 19:33:56\",\"statut_fiche\":\"1\",\"imagebf_image\":\"\",\"date_maj_fiche\":\"2024-04-02 16:17:09\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('YeswikiLeSiteOfficiel', now(), '{\"bf_titre\":\"Yeswiki : le site officiel\",\"bf_url\":\"https:\\/\\/yeswiki.net\",\"bf_description\":\"Tout ce qu\'il y a \\u00e0 savoir sur Yeswiki \",\"bf_auteur\":\"\",\"id_typeannonce\":\"4\",\"id_fiche\":\"YeswikiLeSiteOfficiel\",\"fichierfichier\":\"\",\"date_creation_fiche\":\"2020-02-12 11:10:01\",\"statut_fiche\":\"1\",\"checkboxListeType\":\"1\",\"imagebf_image\":null,\"date_maj_fiche\":\"2021-09-07 12:10:10\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('FramasofT', now(), '{\"bf_titre\":\"Framasoft\",\"bf_url\":\"https:\\/\\/framasoft.org\\/fr\\/\",\"bf_description\":\"Framasoft, c\\u2019est une association d\\u2019\\u00e9ducation populaire, un groupe d\\u2019ami\\u00b7es convaincu\\u00b7es qu\\u2019un monde num\\u00e9rique \\u00e9mancipateur est possible, persuad\\u00e9\\u00b7es qu\\u2019il adviendra gr\\u00e2ce \\u00e0 des actions concr\\u00e8tes sur le terrain et en ligne avec vous et pour vous !\",\"bf_auteur\":\"\",\"id_typeannonce\":\"4\",\"id_fiche\":\"FramasofT\",\"fichierfichier\":\"\",\"date_creation_fiche\":\"2020-02-12 14:12:58\",\"statut_fiche\":\"1\",\"checkboxListeType\":\"3\",\"imagebf_image\":null,\"date_maj_fiche\":\"2021-09-07 12:07:38\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('UnBeauLogoPourYeswiki', now(), '{\"bf_titre\":\"Un beau logo pour Yeswiki\",\"bf_chapeau\":\"Il fallait le rafraichir, nous l\'avons fait ! \",\"bf_description\":\"Apr\\u00e8s multiples discussions, tests et essais, un logo plus actuel a \\u00e9t\\u00e9 cr\\u00e9\\u00e9 pour Yeswiki\\r\\nNous esp\\u00e9rons que vous l\'aimerez ;-) \",\"id_typeannonce\":\"3\",\"id_fiche\":\"UnBeauLogoPourYeswiki\",\"date_creation_fiche\":\"2020-02-12 13:16:06\",\"statut_fiche\":\"1\",\"imagebf_image\":\"UnBeauLogoPourYeswiki_yeswiki-logo.png\",\"date_maj_fiche\":\"2021-09-05 13:23:52\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('UnNouveauThemePourYeswiki', now(), '{\"bf_titre\":\"Un nouveau th\\u00e8me pour Yeswiki\",\"bf_chapeau\":\"Margot, voil\\u00e0 le nom du nouveau th\\u00e8me qui sera distribu\\u00e9 avec la prochaine version de Yeswiki\\t\",\"bf_description\":\"Plus moderne, mieux pens\\u00e9, plus graphiqu.\\r\\nMargot permettra d\'unifier les rendus graphiques des wikis.\",\"id_typeannonce\":\"3\",\"id_fiche\":\"UnNouveauThemePourYeswiki\",\"date_creation_fiche\":\"2020-02-12 12:17:49\",\"statut_fiche\":\"1\",\"imagebf_image\":\"UnNouveauThemePourYeswiki_capture-de\\u0301cran-2020-02-12-a\\u0300-13.16.33.png\",\"date_maj_fiche\":\"2020-02-12 12:17:50\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('ElizabethJFeinler', now(), '{\"bf_titre\":\"JFeinler Elizabeth\",\"bf_nom\":\"JFeinler\",\"bf_prenom\":\"Elizabeth\",\"bf_fonction\":\"informaticienne, pionni\\u00e8re de l\'internet\",\"bf_projet\":\"En 1974, j\'ai cr\\u00e9\\u00e9 le nouveau Network Information Center (NIC) de l\'ARPANET. \",\"bf_mail\":\"\",\"bf_structure\":\"Stanford Research Institute et NASA \",\"bf_site_internet\":\"https:\\/\\/fr.wikipedia.org\\/wiki\\/Elizabeth_J._Feinler\",\"bf_adresse\":\"\",\"bf_code_postal\":\"\",\"bf_ville\":\"Paris\",\"bf_latitude\":\"48.8566969\",\"bf_longitude\":\"2.3514616\",\"id_typeannonce\":\"1\",\"id_fiche\":\"ElizabethJFeinler\",\"imagebf_image\":\"ElizabethJFeinler_elizabethfeinler-2011.jpg\",\"geolocation\":{\"bf_latitude\":\"48.8566969\",\"bf_longitude\":\"2.3514616\"},\"date_creation_fiche\":\"2021-05-24 22:07:17\",\"statut_fiche\":\"1\",\"date_maj_fiche\":\"2021-08-06 10:31:00\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('TesT2', now(), '{\"bf_titre\":\"Sortie Culturelle\",\"bf_description\":\"La culture, moins on en a, plus on l\'\\u00e9tale!\",\"bf_date_debut_evenement\":\"2024-05-30T18:00:00+02:00\",\"bf_date_fin_evenement\":\"2024-05-30T20:00:00+02:00\",\"bf_site_internet\":\"https:\\/\\/www.yeswiki.net\",\"bf_adresse\":\"Avenue des Champs Elys\\u00e9es\",\"bf_code_postal\":\"75000\",\"bf_ville\":\"Paris\",\"bf_latitude\":\"48.8659085\",\"bf_longitude\":\"2.3197651\",\"id_typeannonce\":\"2\",\"id_fiche\":\"TesT2\",\"imagebf_image\":\"TesT2_presence-photo.png\",\"fichierfichier\":\"\",\"geolocation\":{\"bf_latitude\":\"48.8659085\",\"bf_longitude\":\"2.3197651\"},\"date_creation_fiche\":\"2024-04-02 16:25:51\",\"statut_fiche\":\"1\",\"date_maj_fiche\":\"2024-04-02 16:48:20\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', ''),
|
||||
('LovelaceAda', now(), '{\"bf_titre\":\"Lovelace Ada\",\"bf_nom\":\"Lovelace\",\"bf_prenom\":\"Ada\",\"bf_fonction\":\"Pionni\\u00e8re de la science informatique \",\"bf_projet\":\"<p>J\'ai r\\u00e9alis\\u00e9 le premier v\\u00e9ritable programme informatique, lors de mon travail sur un anc\\u00eatre de l\'ordinateur : la machine analytique de Charles Babbage. <br><\\/p>\",\"bf_mail\":\"\",\"bf_structure\":\"Universit\\u00e9 de Cambridge \",\"bf_site_internet\":\"https:\\/\\/fr.wikipedia.org\\/wiki\\/Ada_Lovelace\",\"bf_adresse\":\"\",\"bf_code_postal\":\"\",\"bf_ville\":\"Londres \",\"bf_latitude\":\"51.5073219\",\"bf_longitude\":\"-0.1276474\",\"id_typeannonce\":\"1\",\"id_fiche\":\"LovelaceAda\",\"geolocation\":{\"bf_latitude\":\"51.5073219\",\"bf_longitude\":\"-0.1276474\"},\"date_creation_fiche\":\"2021-05-25 11:00:19\",\"statut_fiche\":\"1\",\"imagebf_image\":\"LovelaceAda_lovelace.png\",\"date_maj_fiche\":\"2021-05-25 11:01:13\"}', '', '{{WikiName}}', '{{WikiName}}', 'Y', 'page', '');
|
||||
INSERT INTO `{{prefix}}triples` (`resource`, `property`, `value`) VALUES
|
||||
('Bordeaux', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar'),
|
||||
('YeswikiLeSiteOfficiel', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar'),
|
||||
('FramasofT', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar'),
|
||||
('UnBeauLogoPourYeswiki', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar'),
|
||||
('UnNouveauThemePourYeswiki', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar'),
|
||||
('ElizabethJFeinler', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar'),
|
||||
('TesT2', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar'),
|
||||
('LovelaceAda', 'http://outils-reseaux.org/_vocabulary/type', 'fiche_bazar');
|
||||
# end Bazar entries
|
2
conf/sudoers
Normal file
2
conf/sudoers
Normal file
|
@ -0,0 +1,2 @@
|
|||
__USER__ ALL = (root) NOPASSWD: __INSTALL_DIR__/tools/yunohost/private/scripts/yunohost-user-info.sh
|
||||
__USER__ ALL = (root) NOPASSWD: __INSTALL_DIR__/tools/yunohost/private/scripts/yunohost-app-list.sh
|
|
@ -5,7 +5,7 @@ name = "YesWiki"
|
|||
description.en = "Wiki that is quick and easy to use"
|
||||
description.fr = "Wiki facile et rapide à prendre en main"
|
||||
|
||||
version = "4.4.4~ynh2"
|
||||
version = "4.4.4~ynh3"
|
||||
|
||||
maintainers = ["Florian Schmitt", "Nils Van Zuijlen", "Plumf"]
|
||||
|
||||
|
@ -21,7 +21,7 @@ yunohost = ">= 11.2"
|
|||
architectures = "all"
|
||||
multi_instance = true
|
||||
ldap = true
|
||||
sso = false
|
||||
sso = true
|
||||
disk = "100M"
|
||||
ram.build = "200M"
|
||||
ram.runtime = "50M"
|
||||
|
@ -47,6 +47,20 @@ type = "select"
|
|||
choices = ["fr", "en", "ca", "es", "nl", "pt"]
|
||||
default = "fr"
|
||||
|
||||
[install.wikimodel]
|
||||
ask.en = "Choose the wiki model"
|
||||
ask.fr = "Choisissez le modèle de wiki"
|
||||
type = "select"
|
||||
choices = ["YesWiki", "CLIC"]
|
||||
default = "YesWiki"
|
||||
|
||||
[install.authprovider]
|
||||
ask.en = "Choose the authentification type"
|
||||
ask.fr = "Choisissez le système d'authentification"
|
||||
type = "select"
|
||||
choices = ["Yunohost SSO", "YesWiki"]
|
||||
default = "Yunohost SSO"
|
||||
|
||||
[install.admin]
|
||||
type = "user"
|
||||
|
||||
|
@ -64,9 +78,17 @@ url = "https://github.com/YesWiki/yeswiki/archive/refs/tags/v4.4.4.tar.gz"
|
|||
sha256 = "0b4e97bdd01ab627a8a9cb5bf652708e34a9322509cb8fcb9db0fb12b6a3e6ef"
|
||||
autoupdate.strategy = "latest_github_tag"
|
||||
|
||||
[resources.sources.loginldap]
|
||||
url = "https://repository.yeswiki.net/doryphore/extension-loginldap-1.0.0.zip"
|
||||
sha256 = "28c9489e4fb0c83e0e775d80a1d07cbc3fbf56d42ab550b45571455f1a6ce9f9"
|
||||
[resources.sources.yunohostplugin]
|
||||
url = "https://repository.yeswiki.net/doryphore/extension-yunohost-1.0.0.zip"
|
||||
sha256 = "60032781016d2bdcecce4ad5ae91e72407e64a994f63661e27a7a935ba52d50b"
|
||||
|
||||
[resources.sources.importerplugin]
|
||||
url = "https://repository.yeswiki.net/doryphore/extension-importer-1.0.0.zip"
|
||||
sha256 = "7c5e730b4724a991ae64fdf457b9ec6d0416621f7fecb38e5b7a73e36d22eb00"
|
||||
|
||||
[resources.sources.ferme]
|
||||
url = "https://repository.yeswiki.net/doryphore/extension-ferme-1.1.8.zip"
|
||||
sha256 = "e83a21eaa911b7beb2d845a16c896b2d4d4db2a9d5d2dfca8f0b7c910a329203"
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
|
|
|
@ -51,29 +51,89 @@ admin_temp_pass=$(ynh_string_random 20)
|
|||
|
||||
wiki_name_escaped=$(echo "$wiki_name" | sed 's/ /%20/g')
|
||||
|
||||
if [ "${wikimodel}" = "CLIC" ]; then
|
||||
# replace default yeswiki model with CLIC model
|
||||
mv $install_dir/setup/sql/default-content.sql $install_dir/setup/sql/default-content.sql.original
|
||||
cp ../conf/CLIC/default-content.sql $install_dir/setup/sql/default-content.sql
|
||||
fi
|
||||
|
||||
ynh_local_curl "/?PagePrincipale&installAction=install" "config[default_language]=$language" "config[wakka_name]=$wiki_name_escaped" \
|
||||
"config[root_page]=PagePrincipale" "config[mysql_host]=localhost" \
|
||||
"config[mysql_database]=$app" "config[mysql_user]=$db_user" "config[mysql_password]=$db_pwd" "config[table_prefix]=yeswiki_" \
|
||||
"admin_name=$admin" "admin_password=$admin_temp_pass" "admin_password_conf=$admin_temp_pass" \
|
||||
"admin_email=$admin%40$domain" "submit=Continue"
|
||||
|
||||
if [ "${wikimodel}" = "CLIC" ]; then
|
||||
# restore original yeswiki model
|
||||
mv -f $install_dir/setup/sql/default-content.sql.original $install_dir/setup/sql/default-content.sql
|
||||
fi
|
||||
|
||||
# authorization of html
|
||||
# (kind of strange, should be doable using the previous curl?)
|
||||
ynh_replace_string --match_string="'allow_raw_html' => false," --replace_string="'allow_raw_html' => true," --target_file="$install_dir/wakka.config.php"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD AND CONFIGURE LDAP PLUGIN
|
||||
# DOWNLOAD AND CONFIGURE IMPORTER PLUGIN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configure LDAP plugin" --weight=2
|
||||
ynh_script_progression --message="Configure importer plugin" --weight=1
|
||||
|
||||
# Download LDAP plugin from yeswiki repository
|
||||
mkdir -p "$install_dir/tools/loginldap"
|
||||
ynh_setup_source --dest_dir="$install_dir/tools/loginldap" --source_id="loginldap"
|
||||
# Download yeswiki plugin from yeswiki repository
|
||||
mkdir -p "$install_dir/tools/importer"
|
||||
ynh_setup_source --dest_dir="$install_dir/tools/importer" --source_id="importerplugin"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD AND CONFIGURE YUNOHOST PLUGIN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configure yunohost plugin" --weight=2
|
||||
|
||||
# Download yeswiki plugin from yeswiki repository
|
||||
mkdir -p "$install_dir/tools/yunohost"
|
||||
ynh_setup_source --dest_dir="$install_dir/tools/yunohost" --source_id="yunohostplugin"
|
||||
|
||||
# Add config at the end of wakka.config.php
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'ldap_host' => '127.0.0.1',\n);" --target_file="$install_dir/wakka.config.php"
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'ldap_port' => '389',\n);" --target_file="$install_dir/wakka.config.php"
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'ldap_base' => 'ou=users,dc=yunohost,dc=org'\n);" --target_file="$install_dir/wakka.config.php"
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'dataSources' => [\n'yunohost-cli' => [\n'formId' => '5', // form id used in local bazar\n'lang' => 'fr',\n'importer' => 'YunohostCLIApp', // importer class name (without Importer suffix)\n],\n],\n);" --target_file="$install_dir/wakka.config.php"
|
||||
|
||||
# Ensure that scripts are executable
|
||||
chmod +x $install_dir/tools/yunohost/private/scripts/*.sh
|
||||
|
||||
# Add app user in sudoers to authorize to launch yunohost cli commands without password
|
||||
ynh_add_config --template="sudoers" --destination="/etc/sudoers.d/$app"
|
||||
chown root:root /etc/sudoers.d/$app
|
||||
|
||||
# At last, run the YunoHost app importer
|
||||
ynh_script_progression --message="Import YunoHost apps in bazar" --weight=2
|
||||
pushd $install_dir
|
||||
ynh_exec_as $app ./yeswicli importer:sync -s yunohost-cli
|
||||
popd
|
||||
|
||||
if [ "${authprovider}" = "Yunohost SSO" ]; then
|
||||
#=================================================
|
||||
# CONFIGURE YUNOHOST PLUGIN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Enable YunoHost SSO" --weight=1
|
||||
|
||||
# Add config at the end of wakka.config.php
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'enable_yunohost_sso' => true,\n);" --target_file="$install_dir/wakka.config.php"
|
||||
fi
|
||||
|
||||
if [ "${wikimodel}" = "CLIC" ]; then
|
||||
#=================================================
|
||||
# DOWNLOAD AND CONFIGURE FERME PLUGIN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configure ferme plugin" --weight=2
|
||||
|
||||
# Download ferme plugin from yeswiki repository
|
||||
mkdir -p "$install_dir/tools/ferme"
|
||||
ynh_setup_source --dest_dir="$install_dir/tools/ferme" --source_id="ferme"
|
||||
|
||||
# copy css presets and files from CLIC
|
||||
cp -R ../source/CLIC/custom/* $install_dir/custom/
|
||||
cp -R ../source/CLIC/files/* $install_dir/files/
|
||||
|
||||
# update configuration
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'favorite_preset' => 'custom/clic.css',\n);" --target_file="$install_dir/wakka.config.php"
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'favicon' => 'files/faviconclic.png',\n);" --target_file="$install_dir/wakka.config.php"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
|
|
|
@ -20,6 +20,8 @@ ynh_remove_nginx_config
|
|||
# Remove the dedicated PHP-FPM config
|
||||
ynh_remove_fpm_config
|
||||
|
||||
# TODO: remove /etc/sudoers/$app
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -19,17 +19,19 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]; then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
# TODO : find a way to sync stable extensions list to avoid hardcoded extensions folders to keep
|
||||
noncore_extensions="$(echo tools/{accountactivationbyemail,advancedsearch,benevolat,ferme,fontautoinstall,ipblock,lms,login-sso,logincas,loginldap,maintenance,multideletepages,nextcloudconnector,publication,qrcode,stats,tabdyn,twolevels,webhooks,yunohost})"
|
||||
ferme_instances="$(cd $install_dir; for p in $(ls -- */wakka.config.php 2>/dev/null); do dirname "$p"; done)"
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env wakka.config.php files custom private themes $noncore_extensions $ferme_instances"
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
# TODO : find a way to sync stable extensions list to avoid hardcoded extensions folders to keep
|
||||
noncore_extensions="$(echo tools/{accountactivationbyemail,advancedsearch,benevolat,ferme,fontautoinstall,importer,ipblock,lms,login-sso,logincas,loginldap,maintenance,multideletepages,nextcloudconnector,publication,qrcode,stats,tabdyn,twolevels,webhooks,yunohost})"
|
||||
ferme_instances="$(
|
||||
cd $install_dir
|
||||
for p in $(ls -- */wakka.config.php 2>/dev/null); do dirname "$p"; done
|
||||
)"
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env wakka.config.php files custom private themes $noncore_extensions $ferme_instances"
|
||||
|
||||
ynh_replace_string --match_string="yeswiki_release' \?=> \?'.*',$" --replace_string="yeswiki_release' => '$(ynh_app_upstream_version)'," --target_file="$install_dir/wakka.config.php"
|
||||
ynh_replace_string --match_string="yeswiki_release' \?=> \?'.*',$" --replace_string="yeswiki_release' => '$(ynh_app_upstream_version)'," --target_file="$install_dir/wakka.config.php"
|
||||
fi
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
@ -56,23 +58,20 @@ ynh_script_progression --message="Installing composer dependencies..."
|
|||
ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$install_dir"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD AND CONFIGURE LDAP PLUGIN
|
||||
# DOWNLOAD AND CONFIGURE YUNOHOST PLUGIN
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Upgrading LDAP plugin..." --weight=3
|
||||
ynh_script_progression --message="Upgrading Yunohost plugin..." --weight=3
|
||||
|
||||
# Download LDAP plugin from yeswiki repository
|
||||
ynh_secure_remove "$install_dir/tools/loginldap"
|
||||
mkdir -p "$install_dir/tools/loginldap"
|
||||
ynh_setup_source --dest_dir="$install_dir/tools/loginldap" --source_id="loginldap"
|
||||
# Download yunohost plugin from yeswiki repository
|
||||
ynh_secure_remove "$install_dir/tools/yunohost"
|
||||
mkdir -p "$install_dir/tools/yunohost"
|
||||
ynh_setup_source --dest_dir="$install_dir/tools/yunohost" --source_id="yunohostplugin"
|
||||
|
||||
if ! grep -q "ldap_host" "$install_dir/wakka.config.php"
|
||||
then
|
||||
# Add LDAP config at the end of wakka.config.php
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'ldap_host' => '127.0.0.1',\n);" --target_file="$install_dir/wakka.config.php"
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'ldap_port' => '389',\n);" --target_file="$install_dir/wakka.config.php"
|
||||
ynh_replace_string --match_string=");" --replace_string=" 'ldap_base' => 'ou=users,dc=yunohost,dc=org'\n);" --target_file="$install_dir/wakka.config.php"
|
||||
fi
|
||||
# Download importer plugin from yeswiki repository
|
||||
ynh_secure_remove "$install_dir/tools/importer"
|
||||
mkdir -p "$install_dir/tools/importer"
|
||||
ynh_setup_source --dest_dir="$install_dir/tools/importer" --source_id="importerplugin"
|
||||
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
|
|
72
source/CLIC/custom/css-presets/clic.css
Normal file
72
source/CLIC/custom/css-presets/clic.css
Normal file
|
@ -0,0 +1,72 @@
|
|||
:root {
|
||||
--primary-color: #892717;
|
||||
--secondary-color-1: #ffcb00;
|
||||
--secondary-color-2: #cd6254;
|
||||
--neutral-color: #292929;
|
||||
--neutral-soft-color: #727272;
|
||||
--neutral-light-color: #f2f2f2;
|
||||
--main-text-fontsize: 21px;
|
||||
--main-text-fontfamily: 'EB Garamond', sans-serif;
|
||||
--main-title-fontfamily: 'Quicksand', sans-serif;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'EB Garamond';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../../custom/fonts/eb-garamond/eb-garamond-normal-400-.eot');
|
||||
src: local(''),
|
||||
url('../../custom/fonts/eb-garamond/eb-garamond-normal-400-.woff2') format('woff2'),
|
||||
url('../../custom/fonts/eb-garamond/eb-garamond-normal-400-.woff') format('woff'),
|
||||
url('../../custom/fonts/eb-garamond/eb-garamond-normal-400-.ttf') format('truetype');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'EB Garamond';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local(''),
|
||||
url('../../custom/fonts/eb-garamond/eb-garamond-normal-400-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'EB Garamond';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local(''),
|
||||
url('../../custom/fonts/eb-garamond/eb-garamond-normal-400-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Quicksand';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../../custom/fonts/quicksand/quicksand-normal-400-.eot');
|
||||
src: local(''),
|
||||
url('../../custom/fonts/quicksand/quicksand-normal-400-.woff2') format('woff2'),
|
||||
url('../../custom/fonts/quicksand/quicksand-normal-400-.woff') format('woff'),
|
||||
url('../../custom/fonts/quicksand/quicksand-normal-400-.ttf') format('truetype');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Quicksand';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local(''),
|
||||
url('../../custom/fonts/quicksand/quicksand-normal-400-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Quicksand';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local(''),
|
||||
url('../../custom/fonts/quicksand/quicksand-normal-400-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
BIN
source/CLIC/custom/fonts/eb-garamond/eb-garamond-normal-400-.eot
Normal file
BIN
source/CLIC/custom/fonts/eb-garamond/eb-garamond-normal-400-.eot
Normal file
Binary file not shown.
BIN
source/CLIC/custom/fonts/eb-garamond/eb-garamond-normal-400-.ttf
Normal file
BIN
source/CLIC/custom/fonts/eb-garamond/eb-garamond-normal-400-.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.eot
Normal file
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.eot
Normal file
Binary file not shown.
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.ttf
Normal file
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.ttf
Normal file
Binary file not shown.
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.woff
Normal file
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.woff
Normal file
Binary file not shown.
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.woff2
Normal file
BIN
source/CLIC/custom/fonts/quicksand/quicksand-normal-400-.woff2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
source/CLIC/files/faviconclic.png
Normal file
BIN
source/CLIC/files/faviconclic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
BIN
source/CLIC/files/logoclic.png
Normal file
BIN
source/CLIC/files/logoclic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Loading…
Add table
Reference in a new issue