Sen descrición

Olivier Massot e04b8f2079 Merge branch 'release/1.1.1' %!s(int64=3) %!d(string=hai) anos
assets 496032d0cb https://assistance.opentalent.fr/browse/V8-2613 %!s(int64=4) %!d(string=hai) anos
components 7d13aee79f implements multi addresses support %!s(int64=4) %!d(string=hai) anos
doc 8ebffc98f9 add include docs, minor ui improvement %!s(int64=4) %!d(string=hai) anos
enums 1054b47e64 structures search - filters ok %!s(int64=4) %!d(string=hai) anos
lang b83202bd3b v8-2863 various fixes %!s(int64=3) %!d(string=hai) anos
layouts 594eb71cdd minor style improvements %!s(int64=4) %!d(string=hai) anos
pages 8bdac8f870 minor css fix %!s(int64=3) %!d(string=hai) anos
plugins b83202bd3b v8-2863 various fixes %!s(int64=3) %!d(string=hai) anos
services e33e2394dd finalize multi addresses support %!s(int64=3) %!d(string=hai) anos
static c4662304b5 include .htaccess into build %!s(int64=3) %!d(string=hai) anos
tests e57ef23d75 cypress: increase location filter timeout %!s(int64=4) %!d(string=hai) anos
types b83202bd3b v8-2863 various fixes %!s(int64=3) %!d(string=hai) anos
.babelrc aadb3aaa64 nuxt init %!s(int64=4) %!d(string=hai) anos
.editorconfig aadb3aaa64 nuxt init %!s(int64=4) %!d(string=hai) anos
.env.ci 9383fb5a54 update .env files %!s(int64=4) %!d(string=hai) anos
.env.local 9383fb5a54 update .env files %!s(int64=4) %!d(string=hai) anos
.env.preprod 9383fb5a54 update .env files %!s(int64=4) %!d(string=hai) anos
.env.prod 9383fb5a54 update .env files %!s(int64=4) %!d(string=hai) anos
.eslintrc.js aadb3aaa64 nuxt init %!s(int64=4) %!d(string=hai) anos
.gitignore 5838dcaec0 cypress tests on /structures ok %!s(int64=4) %!d(string=hai) anos
.gitlab-ci.yml bcc655e319 mv test into tests, add test-utils, configure jest %!s(int64=4) %!d(string=hai) anos
README.md a021a78be4 update readme %!s(int64=4) %!d(string=hai) anos
cypress.json bcc655e319 mv test into tests, add test-utils, configure jest %!s(int64=4) %!d(string=hai) anos
ecosystem.config.js e3af5bcf9d update start / build / deploiement configs %!s(int64=4) %!d(string=hai) anos
jest.config.js c12c73b678 finalize jest setup and config %!s(int64=4) %!d(string=hai) anos
logo.png a6ac6d668a structures: performances optimization %!s(int64=4) %!d(string=hai) anos
nuxt.config.js 48f9029036 update default theme color %!s(int64=4) %!d(string=hai) anos
package-lock.json 4265cf4b4c add iframeResizer.js %!s(int64=4) %!d(string=hai) anos
package.json c12c73b678 finalize jest setup and config %!s(int64=4) %!d(string=hai) anos
todo.md fde6059a4d style improvements %!s(int64=4) %!d(string=hai) anos
tsconfig.json c12c73b678 finalize jest setup and config %!s(int64=4) %!d(string=hai) anos
yarn.lock c12c73b678 finalize jest setup and config %!s(int64=4) %!d(string=hai) anos

README.md

Frames

pipeline status

Frames est une application Nuxt proposant des iframes à inclure sur des sites tierces.

Iframes implémentées:

A voir:

Opérations courantes

Déploiement

Si le fichier .env n'existe pas, on créé un symlink vers le .env.xxx voulu sous le nom de .env (selon l'environnement)

ln -s .env.xxx .env

Le projet frames n'utilisant pas le SSR, on n'a pas besoin de PM2 pour faire tourner un service. On lance la commande :

yarn deploy

Cette commande est un alias qui équivaut à lancer les commandes suivantes: git pull && yarn install && yarn build

S'il n'existe pas encore, il faut aussi créer un fichier dist/.htaccess contenant les lignes suivantes :

<ifModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule (.*) index.html [QSA,L]
</ifModule>

Revenir à une version précédente

Pour revenir à une version précédente:

git reset --hard <id du commit>
yarn build

**/!\ Non testé: ** Si la version précédente implique des version différentes des node_modules, il faudra sans doute supprimer le répertoire node_modules et le fichier yarn.lock, et relancer un yarn install

Run tests

To run unit tests:

yarn test

To run end-to-end tests with Cypress:

yarn cypress

To run it in command line:

yarn cypress:run