This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.7' | |
| services: | |
| db: | |
| image: mariadb:10.1.41 | |
| restart: always | |
| environment: | |
| MYSQL_DATABASE: WORDPRESS | |
| MYSQL_USER: WORDPRESS | |
| MYSQL_PASSWORD: WORDPRESS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Registers the field ThemeMod | |
| * | |
| * @return void | |
| */ | |
| function gql_theme_mod() { | |
| $_mods = get_theme_mods(); | |
| $config = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const keyGeneration = ({ loading, value }) => { | |
| return loading | |
| ? `loading-${value}-${new Date().getTime()}` | |
| : `loaded-${value}-${new Date().getTime()}`; | |
| }; | |
| const Select = forwardRef(function Select( | |
| { | |
| id, | |
| label, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component, createRef } from 'react'; | |
| class _sharedScrollHandler { | |
| functions = [] | |
| attached = false; | |
| constructor() { | |
| this.boundHandler = this.handleScroll.bind(this); | |
| this.addFun = this.add.bind(this); | |
| this.removeFun = this.remove.bind(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // React Component | |
| // Navigation within app will scroll to top. | |
| import { Component } from 'react'; | |
| import { withRouter } from 'react-router-dom'; | |
| class ScrollToTop extends Component { | |
| componentDidUpdate(prevProps) { | |
| if (this.props.location !== prevProps.location) { | |
| window.scrollTo(0, 0); |
NewerOlder