Note: This post is a summary of information paraphrased from an excellent blog post by Christian Sepulveda.
Create the app and download the necessary dependencies.
| version: "3.3" | |
| services: | |
| ################################################ | |
| #### Traefik Proxy Setup ##### | |
| ############################################### | |
| traefik: | |
| image: traefik:v2.0 | |
| restart: always |
| # Author: Zameer Ansari | |
| # You should look at the following URL's in order to grasp a solid understanding | |
| # of Nginx configuration files in order to fully unleash the power of Nginx. | |
| # http://wiki.nginx.org/Pitfalls | |
| # http://wiki.nginx.org/QuickStart | |
| # http://wiki.nginx.org/Configuration | |
| # | |
| # Generally, you will want to move this file somewhere, and start with a clean | |
| # file but keep this around for reference. Or just disable in sites-enabled. | |
| # |
Create the app and download the necessary dependencies.
| /** | |
| * Preset given nested dropdown on Zendesk Help Center with a given value | |
| * | |
| * @param {String} field_id (example: 'request_custom_fields_31265065') | |
| * @param {String} field_value (example: 'complaint_type_b') | |
| */ | |
| function presetNestedDrodown(field_id,field_value){ | |
| if (!field_id || field_value === undefined) return; | |
| var $field = $('.'+field_id); | |
| if ($field && $field.length > 0 && $field.hasClass('string')) { |
| import React, { Component } from 'react'; | |
| import TextField from 'components/base/TextField'; | |
| const WAIT_INTERVAL = 1000; | |
| const ENTER_KEY = 13; | |
| export default class TextSearch extends Component { | |
| constructor(props) { | |
| super(); |
| //remove the options from the select | |
| $('#request_issue_type_select option[value="43517"]').remove(); | |
| //remove the option from the nesty-input after it's been created. | |
| $('div').one('DOMNodeInserted', function(e){ | |
| $('.nesty-panel').one('DOMNodeInserted', function(e){ | |
| $(this).children('ul').children().remove('#43517'); | |
| }); | |
| }); |