{"id":21326990,"url":"https://github.com/framasoft/framanav","last_synced_at":"2025-07-30T16:34:18.382Z","repository":{"id":43596143,"uuid":"8362518","full_name":"framasoft/framanav","owner":"framasoft","description":"Barre de navigation commune aux sites du réseau","archived":false,"fork":false,"pushed_at":"2023-01-04T21:42:56.000Z","size":24121,"stargazers_count":4,"open_issues_count":28,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-12T07:32:04.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/framasoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-22T17:50:07.000Z","updated_at":"2021-02-23T09:13:31.000Z","dependencies_parsed_at":"2023-02-02T21:00:33.638Z","dependency_job_id":null,"html_url":"https://github.com/framasoft/framanav","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/framasoft/framanav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framasoft%2Fframanav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framasoft%2Fframanav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framasoft%2Fframanav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framasoft%2Fframanav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/framasoft","download_url":"https://codeload.github.com/framasoft/framanav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framasoft%2Fframanav/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267899172,"owners_count":24162993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T21:12:45.035Z","updated_at":"2025-07-30T16:34:18.359Z","avatar_url":"https://github.com/framasoft.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/GitLab_Logo.svg/48px-GitLab_Logo.svg.png)](https://framagit.org)\n\n![English:](https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Flag_of_the_United_Kingdom.svg/20px-Flag_of_the_United_Kingdom.svg.png) **Framasoft uses GitLab** for the development of its free softwares. Our Github repositories are only mirrors.\nIf you want to work with us, **fork us on [framagit.org](https://framagit.org)**. (no registration needed, you can sign in with your Github account)\n\n![Français :](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Flag_of_France.svg/20px-Flag_of_France.svg.png) **Framasoft utilise GitLab** pour le développement de ses logiciels libres. Nos dépôts Github ne sont que des miroirs.\nSi vous souhaitez travailler avec nous, **forkez-nous sur [framagit.org](https://framagit.org)**. (l'inscription n'est pas nécessaire, vous pouvez vous connecter avec votre compte Github)\n* * *\n\nFramanav\n========\n\nBarre de navigation commune aux sites du réseau\n+ Pied de page\n+ Modale de don\n+ Modale d’info\n+ Bandeau d’info\n+ Inscription à la newsletter en optin\n+ CSS custom\n+ Scripts custom\n\nInstallation\n--------------------\n1) Héberger la nav\n```bash\ncd /var/www/framasoft.org/\ngit clone https://framagit.org/framasoft/framanav.git nav\n```\n\n2) Configurer le serveur pour autoriser les requête Cross-domain\n\n3) Ajouter le script `nav.js` à la fin du `\u003cbody\u003e` du site :\n```html\n\u003cscript src=\"https://framasoft.org/nav/nav.js\"\u003e\u003c/script\u003e\n```\n\nDans certain cas, le CMS utilisé compresse à la volée le javascript,\nil faut alors utiliser ce code là :\n```html\n\u003cscript\u003e\n  const s = document.createElement('script');\n  s.src=\"https://framasoft.org/nav/nav.js\";\n  document.getElementsByTagName('head')[0].appendChild(script);\n\u003c/script\u003e\n```\n\nTester/Configurer\n--------------------\n### Config\nPar défaut, chaque composant (bandeau, modale, etc) de la nav contient\nune methode `siteConfig()` avec les paramètres requis pour un affichage\ncontextualisé en fonction du site (dans le `switch … case`).\n\nIl est également possible de passer la configuration des composants directement\ndans la page où se trouve la nav (exemple dans `app/assets/test/verbose.html`).\nCette config sera prioritaire.\n\n### Tests\nDe même, lorsqu’on modifie le cœur de la nav, une série de pages d’exemple dans\nle dossier `test` permettent de vérifier grossièrement que rien ne sera cassé.\n\n### Débuggage\nIl est fortement recommandé d’utiliser l’extension\n[VueJS devtools](https://addons.mozilla.org/fr/firefox/addon/vue-js-devtools/)\npour facilement voir l’état des variables de chaque composant.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fframasoft%2Fframanav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fframasoft%2Fframanav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fframasoft%2Fframanav/lists"}