Giter Site home page Giter Site logo

fogbender-oss's People

Contributors

abs avatar github-actions[bot] avatar glushkov-dmitrii-22 avatar gromin avatar jlarky avatar karannakra avatar mkurkov avatar tm-gif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fogbender-oss's Issues

how to generate FOG_OSS_GITHUB_TOKEN fog changeset CI action

In order to create GITHUB_TOKEN which is limited to one repo you have to create OAuth app and install it. We are following this guide https://wesbos.com/scoped-github-access-token

  1. the app https://github.com/organizations/fogbender/settings/apps/fogbender-oss-app
  2. https://github.com/organizations/fogbender/settings/apps/fogbender-oss-app/permissions set app scopes:

image

image

image

  1. install app https://github.com/organizations/fogbender/settings/apps/fogbender-oss-app/installations and select only one repo

image

4. you will get redirected to URL like `https://github.com/organizations/fogbender/settings/installations/28900114` write down the install id somewhere
  1. in https://github.com/organizations/fogbender/settings/apps/fogbender-oss-app get App ID and private key file
  2. use the script from https://wesbos.com/scoped-github-access-token and it will return you a token that looks like { token: 'ghs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }
  3. Go to https://github.com/fogbender/fogbender-oss/settings/secrets/actions and store that token as FOG_OSS_GITHUB_TOKEN

it should be possible to set custom logic when resizing support iframe

In fogbender package adaptIFrame function is called to change iframe size when window is resizing.

We already have disableFit option in renderIframe. So we might want to support that prop in fogbender-react or add a new one that can do custom resizing logic:

    const onResize = (el: HTMLIFrameElement) => {
      el.style.height = `${window.innerHeight - 60}px`;
    };

so to override resizing logic, we can simply add something like this in adaptIFrame:

    if (onResize) {
      return onResize(iFrame);
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.