How to use decode-uri-component - 4 common examples

To help you get started, we’ve selected a few decode-uri-component examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SubstraFoundation / substra-ui / src / components / searchBar / searchBar.js View on Github external
const chips = group.split(',').map((o) => {
                    const el = decodeUriComponent(o).split(':');

                    return {
                        parent: el[0],
                        child: el.splice(1).join(':'),
                        uuid: uuidv4(),
                        isLogic: false,
                    };
                });
github containerum / ui / src / containers / Support / index.js View on Github external
componentDidMount() {
    const { fetchGetSupportGroupsIfNeeded, location } = this.props;
    fetchGetSupportGroupsIfNeeded();
    const { report } = queryString.parse(location.search);
    if (report) {
      this.setState({
        ...this.state,
        textArea: decodeUriComponent(report)
      });
    }
  }
  componentWillUpdate(nextProps) {
github galaxyproject / galaxy / client / galaxy / scripts / entry / analysis / AnalysisRouter.js View on Github external
_loadToolForm: function(params) {
            //TODO: load tool form code async
            if (params.tool_id) {
                params.id = decodeUriComponent(params.tool_id);
            }
            if (params.version) {
                params.version = decodeUriComponent(params.version);
            }
            this.page.display(new ToolForm.View(params));
        },
github galaxyproject / galaxy / client / galaxy / scripts / entry / analysis / AnalysisRouter.js View on Github external
_loadToolForm: function(params) {
            //TODO: load tool form code async
            if (params.tool_id) {
                params.id = decodeUriComponent(params.tool_id);
            }
            if (params.version) {
                params.version = decodeUriComponent(params.version);
            }
            this.page.display(new ToolForm.View(params));
        },

decode-uri-component

A better decodeURIComponent

MIT
Latest version published 2 years ago

Package Health Score

70 / 100
Full package analysis

Popular decode-uri-component functions