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
[{"key":"AccountsDisplayDensity","value":false},{"key":"AccountsEmphasizedInflows","value":false},{"key":"AccountsEmphasizedOutflows","value":false},{"key":"AccountsStripedRows","value":false},{"key":"AccountsStripedRowsColor","value":"#fafafa"},{"key":"AccountsStripedRowsDarkColor","value":"#1e1e1f"},{"key":"AutoDistributeSplits","value":false},{"key":"AutoEnableRunningBalance","value":true},{"key":"AutomaticallyMarkAsCleared","value":false},{"key":"BetterScrollbars","value":false},{"key":"BottomNotificationBar","value":false},{"key":"BudgetProgressBars","value":false},{"key":"BulkEditMemo","value":true},{"key":"BulkManagePayees","value":false},{"key":"CalculateIRR","value":false},{"key":"CalendarFirstDay","value":false},{"key":"CategoryActivityCopy","value":false},{"key":"CategoryActivityPopupWidth","value":false},{"key":"ChangeEnterBehavior","value":false},{"key":"ChangeMemoEnterBehavior","value":false},{"key":"CheckCreditBalances","value":false},{"key":"CheckNumbers","value":false},{"key":"CollapseInspect |
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
// Removes all files from outputPath that are not in webpack's output | |
// @this webpack | |
function cleanArtifacts () { | |
const result = new Set() | |
// globs to ignore when deleting | |
const cleanIgnore = [ '.gitignore' ] | |
this.plugin('done', () => { | |
if (result.size > 0) { | |
// eslint-disable-next-line no-console |
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
export {} | |
if (typeof Array.prototype.flatMap !== 'function') { | |
// eslint-disable-next-line no-extend-native | |
Object.defineProperty(Array.prototype, 'flatMap', { | |
enumerable: false, | |
// https://bterlson.github.io/proposal-flatMap/#sec-Array.prototype.flatMap | |
value: function flatMap (callback, thisArg = undefined) { | |
const O = toObject(this) | |
const A = arraySpeciesCreate(O, 0) |
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
// having `entry: { main: path.resolve('src') }`: | |
new webpack.optimize.CommonsChunkPlugin({ | |
name: 'common', | |
chunks: ['main'], | |
// "children" does not actually select all the children of "chunks", | |
// but completely ignores all "chunks" and selects the children of "name" | |
// instead, so it's useless for our use case, as we're making a new chunk. | |
minChunks: (() => { | |
const tag = `${__filename}-common-minChunks` | |
// the count argument will always be "1" as there's only one chunk in |
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
// // given | |
// | |
// import foo from "bar" | |
// export let a | |
// export { a as b } | |
// export function hoisted() {} | |
// export {readFile} from "fs" | |
// export * from "path" | |
// | |
// console.log(foo) |
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
module.exports = { | |
presets: ['@babel/react'] | |
} |
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 * as index './index.mjs' | |
export function calculate () { | |
return index.calculate() | |
} |
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 Discord from 'discord.js' | |
const messageConfig: Map<string, EmojiRoleMap> = new Map([ | |
// ['messageId', Map<'emoji id', 'role name'>] | |
[ | |
'468309475808509955', | |
new Map<string, string>([ | |
// TO-CHECK: discord.js v12 might drop the emoji name from the identifier | |
// ['emoji id', 'role name'] | |
// this order is the same as the order in https://jp.finalfantasyxiv.com/jobguide/battle/ |
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 from 'react' | |
import { | |
withStyles, | |
Theme, | |
StyledComponentProps, | |
} from '@material-ui/core/styles' | |
import cx from 'classnames' | |
import { | |
WithStylesOptions, | |
CSSProperties, |
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
// A simplified replacement for react-router-redux | |
// that works with react-redux@^6 and with react-router@^4.4 | |
// Uses hooks, so requires react@^16.7 | |
import { | |
Action as LocationAction, | |
History, | |
Location, | |
LocationDescriptor, | |
LocationDescriptorObject, |