Нет описания

Olivier Massot 1ddb74f459 minor fixes 3 лет назад
assets 496032d0cb https://assistance.opentalent.fr/browse/V8-2613 4 лет назад
components 95e360ea34 refactor date functions 3 лет назад
doc 06076c7f8a update doc 3 лет назад
enums 1054b47e64 structures search - filters ok 4 лет назад
lang 08e589ec0c add event page 3 лет назад
layouts 594eb71cdd minor style improvements 4 лет назад
pages 1ddb74f459 minor fixes 3 лет назад
plugins b83202bd3b v8-2863 various fixes 3 лет назад
services 1ddb74f459 minor fixes 3 лет назад
static e0649d8fde various style improvements 3 лет назад
tests e57ef23d75 cypress: increase location filter timeout 4 лет назад
types 27924da3e4 various fixes 3 лет назад
.babelrc aadb3aaa64 nuxt init 4 лет назад
.editorconfig aadb3aaa64 nuxt init 4 лет назад
.env.ci 815ed0caee plug structures pages on ap2i 3 лет назад
.env.local 815ed0caee plug structures pages on ap2i 3 лет назад
.env.preprod 815ed0caee plug structures pages on ap2i 3 лет назад
.env.prod 815ed0caee plug structures pages on ap2i 3 лет назад
.eslintrc.js aadb3aaa64 nuxt init 4 лет назад
.gitignore f0f94a5207 ignore lock files 3 лет назад
.gitlab-ci.yml bcc655e319 mv test into tests, add test-utils, configure jest 4 лет назад
README.md f26c089f08 add the events index page 3 лет назад
cypress.json bcc655e319 mv test into tests, add test-utils, configure jest 4 лет назад
ecosystem.config.js e3af5bcf9d update start / build / deploiement configs 4 лет назад
jest.config.js c12c73b678 finalize jest setup and config 4 лет назад
logo.png a6ac6d668a structures: performances optimization 4 лет назад
nuxt.config.js 08e589ec0c add event page 3 лет назад
package-lock.json 4265cf4b4c add iframeResizer.js 4 лет назад
package.json 08e589ec0c add event page 3 лет назад
tsconfig.json 0e579f82d0 events - add location filter and date formatting 3 лет назад
yarn.lock c12c73b678 finalize jest setup and config 4 лет назад

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, créer 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 versions 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