Skip to content

Instantly share code, notes, and snippets.

[2023-04-01 16:11:27.872] [info] Update App: Check for update
[2023-04-01 16:11:28.180] [info] Update App: No update available
[2023-04-01 16:12:03.800] [info] Running did-become-active
[2023-04-01 16:12:51.596] [info] Running did-become-active
[2023-04-01 16:12:52.911] [info] IPC: To Webapp logEvent DESKTOP_CLOSE_APP undefined
[2023-04-01 16:12:52.912] [info] Quitting app: running before-quit
[2023-04-01 16:12:53.330] [info] Quitting app: running quit
[2023-04-01 22:27:28.611] [info] Main process starting...
[2023-04-01 22:27:28.616] [info] Version Number: 0.28.2
[2023-04-01 22:27:28.800] [info] Mac deep link plain url: motion-desktop://projectManagement?workspace=u7_D-Iy8jdmn3IAvEkdfR&task=6fEg4JNjNss6VK_QNYpcb
@c10r
c10r / gist:c9e3e738d210ff73aa41dd369ef84bde
Last active March 17, 2023 01:07
All yarn.lock changes from the feb 2nd release
--- a/yarn.lock
+++ b/yarn.lock
-"@algolia/autocomplete-core@1.7.4":
- version "1.7.4"
+"@algolia/autocomplete-core@1.7.2":
+ version "1.7.2"
- "@algolia/autocomplete-shared" "1.7.4"
+ "@algolia/autocomplete-shared" "1.7.2"
-"@algolia/autocomplete-preset-algolia@1.7.4":
- version "1.7.4"
[2023-02-02 19:46:23.122] [info] Main process starting...
[2023-02-02 19:46:23.125] [info] Version Number: 0.21.2
[2023-02-02 19:46:23.307] [info] Initializing updater: {
url: 'https://update.electronjs.org/usemotion/desktopapp-dev/darwin-arm64/0.21.2'
}
[2023-02-02 19:46:24.414] [info] Main window ready to show https://dev-app.usemotion.com/web/#calendar
[2023-02-02 19:46:24.765] [info] Option space window ready to show https://dev-app.usemotion.com/web/#desktop?page=optionSpace
[2023-02-02 19:46:24.765] [info] Initialize network and crash handler
[2023-02-02 19:46:24.794] [info] App finished starting
[2023-02-02 19:46:24.795] [info] IPC: To Webapp logEvent DESKTOP_OPEN_APP undefined
@c10r
c10r / firebase.kt
Created April 3, 2021 00:41
An example firebase wrapper
@JsModule("firebase")
@JsNonModule
external interface FirebaseConfig {
var apiKey: String
var authDomain: String
var databaseURL: String
var projectId: String
var storageBucket: String
var messagingSenderId: String
@c10r
c10r / apirequest.kt
Created April 3, 2021 00:33
Making an API request in kotlin/js
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)
@c10r
c10r / apirequest.kt
Created April 3, 2021 00:29
Example of a failing API Request
data class Level(val tubes: Array<Array<String>>)
val levelJson = levelApi
.json()
.await() as Level
@c10r
c10r / kotlinjs build failures
Created April 3, 2021 00:17
Periodic flakey build failures in KotlinJS
➜ paintmix ./gradlew build
> Task :kotlinNpmInstall
warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix-test > mocha > debug@3.2.6: 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 > mkdirp@0.5.3: 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 > fsevents@2.1.3: "Please update to latest v2.3 or v2.2"
warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning workspac
@c10r
c10r / kotlinjs firebase hosting
Created April 3, 2021 00:14
An example of Kotlin/JS deployed with Firebase hosting
{
"hosting": {
"site": "paintmix",
"public": "build/distributions/",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
@c10r
c10r / kotlin-react-function error
Created April 2, 2021 23:40
Could not fetch kotlin-react-function package via gradle
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.
@c10r
c10r / webpack.config.js
Created May 27, 2020 20:29
Add purgeCSS to the list of style loaders
{
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: {