This file contains 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
// yarn add @primer/css stylelint-config-primer stylelint-config-prettier -D | |
module.exports = { | |
extends: ['stylelint-config-primer', 'stylelint-config-prettier'] | |
} |
This file contains 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
# SetEnvIf Remote_Addr ManageWP AllowCountry | |
# @See (https://managewp.com/troubleshooting/general/managewp-ips-can-white-list) | |
SetEnvIf Remote_Addr 34.211.180.66 AllowCountry | |
SetEnvIf Remote_Addr 54.70.65.107 AllowCountry | |
SetEnvIf Remote_Addr 34.210.224.7 AllowCountry | |
SetEnvIf Remote_Addr 52.41.5.108 AllowCountry | |
SetEnvIf Remote_Addr 52.35.72.129 AllowCountry | |
SetEnvIf Remote_Addr 35.162.254.253 AllowCountry | |
SetEnvIf Remote_Addr 52.11.12.231 AllowCountry | |
SetEnvIf Remote_Addr 52.11.29.70 AllowCountry |
This file contains 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
/** | |
* Extends interfaces in Vue.js | |
*/ | |
import ApolloClient from 'apollo-client' | |
import { AxiosInstance } from 'axios' | |
import Vue, { ComponentOptions } from 'vue' | |
import { VueApollo } from 'vue-apollo/types/vue-apollo' | |
import { Route } from 'vue-router' | |
import { MetaInfo } from 'vue-meta' | |
// 公式 dev ブランチの index.d.ts を nuxt.d.ts として配置。 |
This file contains 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
declare module 'vue-apollo/types/vue-apollo' { | |
import { ApolloClient } from 'apollo-client' | |
import { | |
VueApolloOptions, | |
WatchLoading, | |
ErrorHandler | |
} from 'vue-apollo/types/options' | |
interface VueApollo { | |
defaultClient: ApolloClient<{}> |
This file contains 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 config = require('./tailwind') | |
module.exports = { | |
'config($keys)': function(keys) { | |
const sass = require('node-sass') | |
const sassUtils = require('node-sass-utils')(sass) | |
const convertStringToSassDimension = function(result) { | |
// Only attempt to convert strings | |
if (typeof result !== 'string') { |
This file contains 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
export type EnterObserverListener = ( | |
entry: IntersectionObserverEntry | |
) => void | Promise<void>; | |
export interface EnterObserverEntry { | |
listener: EnterObserverListener; | |
once: boolean; | |
} | |
export class EnterObserver { |
This file contains 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
/** | |
* Used to detect browser support for adding an event listener with options | |
* Credit: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener | |
*/ | |
let supportsCaptureOption = false; | |
try { | |
const opts = Object.defineProperty({}, 'capture', { | |
get() { | |
supportsCaptureOption = true; |
This file contains 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 merge = require('webpack-merge'); | |
const vueConfig = require('@vue/cli-service/webpack.config.js'); | |
module.exports = (storybookConfig, configType) => { | |
return { | |
...vueConfig, // use vue's webpack configuration by default | |
entry: storybookConfig.entry, // overwite entry | |
output: storybookConfig.output, // overwrite output | |
// remove duplicated plugins | |
plugins: merge({ |
This file contains 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 | |
/** | |
* Plugin Name: WP REST API filter parameter | |
* Description: This plugin adds a "filter" query parameter to API post collections to filter returned results based on public WP_Query parameters, adding back the "filter" parameter that was removed from the API when it was merged into WordPress core. | |
* Author: WP REST API Team | |
* Author URI: http://v2.wp-api.org | |
* Version: 0.1 | |
* License: GPL2+ | |
**/ |
This file contains 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
#!/bin/bash | |
POSITIONAL=() | |
while [[ $# -gt 0 ]] | |
do | |
key="$1" | |
case $key in | |
-c|--crf) | |
CRF="$2" |
NewerOlder