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
class ShadowStyler { | |
constructor(componentName) { | |
this.componentName = componentName; | |
this.element = document.querySelector(this.componentName); | |
this.shadowRoot = this.element?.shadowRoot; | |
} | |
setStyle(selector, styles) { | |
if (this.shadowRoot) { | |
this._applyStyle(selector, styles); |
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 { TextField, TextFieldProps } from "@shopify/polaris"; | |
import React, { | |
ChangeEvent, | |
KeyboardEvent, | |
useCallback, | |
useEffect, | |
useState, | |
} from "react"; | |
type NumberInputCommonProps = Omit< |
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
// ==UserScript== | |
// @name New script - gadget.app | |
// @namespace Violentmonkey Scripts | |
// @match https://packagepal.gadget.app/edit/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 8/7/2023, 11:16:28 PM | |
// ==/UserScript== |
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
{ | |
"rules": { | |
"no-restricted-imports": [ | |
"error", | |
{ | |
"paths": [ | |
{ | |
"name": "next/router", | |
"message": "Not universal. Use solito/router instead." | |
}, |