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
| try { | |
| const setupResult = await Auth.signUp({ | |
| username: email, | |
| password, | |
| attributes: { | |
| email, | |
| }, | |
| }) | |
| // This will fail | |
| const code = await Auth.setupTOTP(setupResult.user) |
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
| purge: { | |
| enabled: true, // This will *always* minify, even on dev builds | |
| content: [ | |
| './src/**/*.html', | |
| './src/**/*.js', | |
| ], | |
| }, |
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 purgecss = require('@fullhuman/postcss-purgecss')({ | |
| // Specify the paths to all of the template files in your project | |
| content: [ | |
| './src/**/*.html', | |
| './src/**/*.js', | |
| ], | |
| // Used to extract class names from your templates | |
| defaultExtractor: content => { | |
| // Capture as liberally as possible | |
| const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [] |
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
| { | |
| loader: require.resolve('postcss-loader'), | |
| options: { | |
| // Necessary for external CSS imports to work | |
| // https://github.com/facebook/create-react-app/issues/2677 | |
| ident: 'postcss', | |
| plugins: () => [ | |
| require('postcss-flexbugs-fixes'), | |
| require('postcss-preset-env')({ | |
| autoprefixer: { |
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
| Build file '/Users/chander/IdeaProjects/paintmix/build.gradle.kts' line: 1 | |
| Plugin [id: 'com.bnorm.power.kotlin-react-function', version: '0.4.0'] was not found in any of the following sources: | |
| * Try: | |
| Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. |
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
| { | |
| "hosting": { | |
| "site": "paintmix", | |
| "public": "build/distributions/", | |
| "ignore": [ | |
| "firebase.json", | |
| "**/.*", | |
| "**/node_modules/**" | |
| ] | |
| } |
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
| ➜ paintmix ./gradlew build | |
| > Task :kotlinNpmInstall | |
| warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix-test > mocha > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) | |
| warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix-test > mocha > [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) | |
| warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix-test > mocha > chokidar > [email protected]: "Please update to latest v2.3 or v2.2" | |
| warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. | |
| warning workspac |
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
| data class Level(val tubes: Array<Array<String>>) | |
| val levelJson = levelApi | |
| .json() | |
| .await() as Level |
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
| val levelApi = window.fetch("$BACKEND_URL?level=$level") | |
| .await() | |
| val levelJson = levelApi | |
| .json() | |
| .await() | |
| val partialLevel: Level = levelJson.unsafeCast<Level>() | |
| val partialTubes = JSON.parse<Array<Array<String>>>(partialLevel.tubes as String) | |
| val newLevel = Level(partialTubes) |
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
| @JsModule("firebase") | |
| @JsNonModule | |
| external interface FirebaseConfig { | |
| var apiKey: String | |
| var authDomain: String | |
| var databaseURL: String | |
| var projectId: String | |
| var storageBucket: String | |
| var messagingSenderId: String |
OlderNewer