Nouveau Papier Mâché

    admin-iframe-compatibility

    1.0.93 • Public • Published

    There is nothing glamorous to see here

    This package is just a static JS with jquery code that runs on catalog admin pages. It is responsible for handling translations for legacy applications, messaging the admin shell to adapt its iframe container height to match its children height, and initializing Crowdin in Context script for legacy apps.

    Developing locally

    • Setup:
    npm install
    • You will need the requestly chrome extension linked here

    • Open requestly, and create Redirect Rules with the following semantics:

    Request URL Contains //unpkg.com/admin-iframe-compatibility/index.js
    Destination http://localhost:4200/index.js
    
    Request URL Contains //unpkg.com/admin-iframe-compatibility/cms-iframe.js
    Destination http://localhost:4200/cms-iframe.js
    
    • Save the rules and leave it on
    • Run the server
      npm start
    • Edit the JS, save it, run npm start again and refresh the admin page to see your changes.

    Publishing a new version

    Just run:

    npm run deploy

    or

    npm run deploy:beta

    A github workflow will be automatically triggered once new tags are pushed to the repository.

    Keywords

    none

    Install

    npm i admin-iframe-compatibility

    DownloadsWeekly Downloads

    533

    Version

    1.0.93

    License

    MIT

    Unpacked Size

    23.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • thiagof7
    • gleicy-vtex
    • rafael.sangalli.vtex
    • vtexlab-user
    • lenderson_morais
    • wender
    • natamelo
    • mairatma
    • vlagedo_vtex
    • samuelfgs
    • mayzabel
    • rafabac
    • augusto.lazaro
    • tergol
    • rafarubim
    • analuizamtg
    • gustavorosolem
    • arthurepc
    • jeymisson
    • marcosvcp
    • victorhmp
    • lurian
    • ericreis
    • lbebber
    • tlgimenes
    • arturpimentel
    • anitavincent
    • brunojdo
    • brunohq
    • kevinchevallier
    • lucasecdb
    • matheusps
    • emersonlaurentino
    • viniagostini
    • hugo.cabral
    • lucasaarcoverde
    • lariciamota
    • wdsrocha
    • icazevedo
    • malvadeza
    • edunmc
    • fabits
    • mateuspontes
    • gmantiqueira
    • vitorlgomes
    • rodolfoams
    • policarpo
    • marcelovicentegc
    • maianabt
    • jeffersontuc
    • hiagolcm
    • william.silva
    • guigs
    • philcvlcnt