23 Commits

Author SHA1 Message Date
e237eefc94 on tags 2021-05-15 16:59:59 +02:00
48cd3f1905 github flow 2021-05-15 16:56:38 +02:00
27ec42fecd Merge pull request #3 from cupcakearmy/dependabot/npm_and_yarn/postcss-8.2.10
Bump postcss from 8.2.9 to 8.2.10
2021-05-15 16:54:08 +02:00
604f021ce2 volume setting for chime 2021-05-15 16:53:27 +02:00
6e5cb4ef4f docs 2021-05-15 16:49:05 +02:00
0434d3dc55 changelog 2021-05-15 16:49:02 +02:00
1856024419 dev packaging 2021-05-15 16:48:56 +02:00
6fba47a4f8 pause only for limited time 2021-05-15 16:32:12 +02:00
dependabot[bot]
41f1cd691a Bump postcss from 8.2.9 to 8.2.10
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.9 to 8.2.10.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.9...8.2.10)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 10:22:34 +00:00
928b69b4fb macos bug 2021-04-11 16:45:14 +02:00
b17f5db58e version bump and footer 2021-04-07 22:53:28 +02:00
064287c34f Update README.md 2021-04-07 22:33:12 +02:00
317c88641d cleanup 2021-04-07 16:39:43 +02:00
39398da265 on push 2021-04-07 15:38:58 +02:00
c045ab43bf workflow 2021-04-07 14:52:53 +02:00
67276e0119 workflow 2021-04-07 13:00:09 +02:00
50a24f847f use deb pacakges 2021-04-07 12:56:33 +02:00
72ee5d7641 cleanup 2021-04-07 12:28:05 +02:00
46704211fa version bump 2021-04-07 12:03:08 +02:00
5a5a2755f1 dev env 2021-04-07 12:02:20 +02:00
f5741e381d linux support 2021-04-07 12:00:09 +02:00
eeae431e79 run maximal one instance 2021-04-07 10:25:31 +02:00
30319197c6 dock not always defined 2021-04-06 23:08:13 +02:00
18 changed files with 321 additions and 116 deletions

23
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Main
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn run dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

13
CHANGELOG.md Normal file
View File

@@ -0,0 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.1.0] - 2021-05-15
### Added
- Only pause for a limited time
- Volume slider for the sound

View File

@@ -14,6 +14,25 @@ To combat and alleviate the symptoms there is the famous 20/20/20 rule that aims
This is not medical advice. Read more [here](https://en.wikipedia.org/wiki/Computer_vision_syndrome) and [here](https://www.aoa.org/healthy-eyes/eye-and-vision-conditions/computer-vision-syndrome). This is not medical advice. Read more [here](https://en.wikipedia.org/wiki/Computer_vision_syndrome) and [here](https://www.aoa.org/healthy-eyes/eye-and-vision-conditions/computer-vision-syndrome).
## 📦 Install ## 💻 Installation
Head to the [release page](https://github.com/cupcakearmy/unpixel/releases) and grab the latest for your platform. Head to the [release page](https://github.com/cupcakearmy/unpixel/releases) and grab the latest for your platform.
- For `macOS` you can downlaod the `.dmg` image.
- For `Windows` download the `.exe`.
- For `Linux` either the `.AppImage` or `.deb`, you will know what fits you 😉.
## 🛠 Building / Development
1. Clone the repo
2. `yarn install`
3. `yarn dist` to build for all platforms
Alternatively you can run `yarn build` and the `yarn electron-builder -m` for `macOS`, `-l` fir `linux` or `-w` for `windows`.
## 📦 Release
1. Bump version in `package.json`
2. Update `CHANGELOG.md`
3. Create a draft release with the new version. (e.g. tag with `v1.2.3`).
4. Push to `main` and github workflow will build and upload assets to the draft matching the version of `package.json` and draft.

View File

@@ -1,14 +1,18 @@
appId: "io.nicco.app.unpixel" appId: "io.nicco.app.unpixel"
# productName: "UnPixel"
files: files:
- assets - assets
- dist - dist
directories: directories:
output: "./out" output: "./out"
mac: mac:
target: "dmg" target:
- dmg
identity: null identity: null
win: win:
target: "nsis" target:
- nsis
linux: linux:
category: "Utility" category: "Utility"
target:
- AppImage
- deb

View File

@@ -11,18 +11,18 @@
"repository": { "repository": {
"url": "https://github.com/cupcakearmy/unpixel" "url": "https://github.com/cupcakearmy/unpixel"
}, },
"version": "1.0.0", "version": "1.1.0",
"main": "./dist/back/index.js", "main": "./dist/back/index.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"watch:front": "parcel watch --target front --no-hmr --no-cache ./src/front/banner/index.html ./src/front/settings/index.html", "watch:front": "parcel watch --target front --no-hmr --no-cache ./src/front/*/index.html",
"watch:back": "parcel watch --target back --no-hmr --no-cache ./src/back/index.ts", "watch:back": "parcel watch --target back --no-hmr --no-cache ./src/back/index.ts",
"dev": "run-p watch:*", "dev": "run-p watch:*",
"build:front": "parcel build --target front ./src/front/banner/index.html ./src/front/settings/index.html", "build:front": "parcel build --target front ./src/front/*/index.html",
"build:back": "parcel build --target back ./src/back/index.ts", "build:back": "parcel build --target back ./src/back/index.ts",
"build": "run-s build:*", "build": "run-s build:*",
"pack": "electron-builder -mwl", "pack": "electron-builder -mwl",
"pack:dev": "electron-builder -m", "pack:dev": "electron-builder -m dir && open ./out/mac/UnPixel.app",
"dist": "rm -rf .parcel-cache dist && run-s build pack" "dist": "rm -rf .parcel-cache dist && run-s build pack"
}, },
"browserslist": [ "browserslist": [
@@ -45,6 +45,7 @@
"dayjs": "^1.10.4", "dayjs": "^1.10.4",
"electron-log": "^4.3.2", "electron-log": "^4.3.2",
"electron-store": "^7.0.2", "electron-store": "^7.0.2",
"ms": "^2.1.3",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"semver": "^7.3.5", "semver": "^7.3.5",
@@ -53,13 +54,16 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.0.0-0", "@babel/core": "^7.0.0-0",
"@types/auto-launch": "^5.0.1",
"@types/ms": "^0.7.31",
"@types/react": "^17.0.3", "@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3", "@types/react-dom": "^17.0.3",
"@types/semver": "^7.3.4",
"electron": "^12.0.0", "electron": "^12.0.0",
"electron-builder": "^22.10.5", "electron-builder": "^22.10.5",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"parcel": "next", "parcel": "next",
"postcss": "^8.2.9", "postcss": "^8.2.10",
"typescript": "^4.2.3" "typescript": "^4.2.3"
} }
} }

View File

@@ -1,7 +1,9 @@
import dayjs from 'dayjs'
import { BrowserWindow, BrowserWindowConstructorOptions, ipcMain } from 'electron'
import { join } from 'path' import { join } from 'path'
import os from 'os'
import { BrowserWindow, BrowserWindowConstructorOptions, ipcMain } from 'electron'
import dayjs from 'dayjs'
import logger from 'electron-log' import logger from 'electron-log'
import ms from 'ms'
import { DEV } from '.' import { DEV } from '.'
import Settings from './settings' import Settings from './settings'
@@ -14,24 +16,16 @@ export default class Banner {
static init() { static init() {
if (this.interval) return if (this.interval) return
this.interval = setInterval(this.check, 1000) this.interval = setInterval(this.check, 1000)
this.check()
ipcMain.on('close', () => { ipcMain.on('close', () => {
this.close() this.close()
}) })
} }
static check() { static check() {
const paused: boolean = Settings.load('paused') TrayUtility.build()
if (paused) { const [paused, interval] = Settings.getStatus()
TrayUtility.setStatus('Paused') if (!paused && interval < 1000) {
return
}
const every = Settings.load('every')
const now = dayjs()
const lastRun = Settings.load('lastRun')
const diff = every - now.diff(dayjs(lastRun), 'minutes')
TrayUtility.setStatus(`Next break: ${diff}m`)
if (diff < 1) {
Banner.open() Banner.open()
} }
} }
@@ -48,30 +42,23 @@ export default class Banner {
}, },
width: 1200, width: 1200,
height: 600, height: 600,
} fullscreen: true,
if (!DEV) { simpleFullscreen: os.platform() === 'darwin',
Object.assign(options, {
resizable: false,
movable: false,
simpleFullscreen: true,
fullscreen: true,
transparent: true,
})
} }
this.window = new BrowserWindow(options) this.window = new BrowserWindow(options)
const entry = join(__dirname, '../front/banner/index.html') const entry = join(__dirname, '../front/banner/index.html')
this.window.loadFile(entry) this.window.loadFile(entry)
if (!DEV) { if (DEV) {
this.window.maximize() this.window.webContents.toggleDevTools()
} else {
this.window.setAlwaysOnTop(true, 'floating', 99) this.window.setAlwaysOnTop(true, 'floating', 99)
this.window.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true }) this.window.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
this.window.setFullScreenable(false) this.window.setMovable(false)
} else { this.window.setResizable(false)
this.window.webContents.toggleDevTools() this.window.focus()
} }
this.window.focus()
} }
static close() { static close() {

View File

@@ -8,6 +8,10 @@ import Updater from './updater'
export const DEV = !app.isPackaged export const DEV = !app.isPackaged
// Enforce single instance
const isMain = app.requestSingleInstanceLock()
if (!isMain) app.quit()
// Disable gpu // Disable gpu
app.disableHardwareAcceleration() app.disableHardwareAcceleration()
app.commandLine.appendSwitch('disable-software-rasterizer') app.commandLine.appendSwitch('disable-software-rasterizer')
@@ -18,7 +22,7 @@ app
.whenReady() .whenReady()
.then(() => { .then(() => {
logger.log('Initializing') logger.log('Initializing')
if (!DEV) app.dock.hide() if (!DEV) app.dock?.hide()
TrayUtility.init() TrayUtility.init()
Settings.init() Settings.init()
Banner.init() Banner.init()

View File

@@ -8,15 +8,17 @@ import { productName } from '../../package.json'
const autoLaunch = new AutoLaunch({ name: productName, mac: { useLaunchAgent: true } }) const autoLaunch = new AutoLaunch({ name: productName, mac: { useLaunchAgent: true } })
import { DEV } from '.' import { DEV } from '.'
import dayjs from 'dayjs'
const store = new Store() const store = new Store()
const defaults = { const defaults = {
every: 20, every: 20,
duration: 20, duration: 20,
boot: true, boot: true,
paused: false, paused: 0,
lastRun: 0, lastRun: 0,
autoClose: false, autoClose: false,
volume: 100,
} }
export type SettingKeys = keyof typeof defaults export type SettingKeys = keyof typeof defaults
const IntNormalizer = (x: any) => parseInt(x) const IntNormalizer = (x: any) => parseInt(x)
@@ -26,8 +28,9 @@ const normalizers: Record<SettingKeys, (x: any) => any> = {
duration: IntNormalizer, duration: IntNormalizer,
boot: BoolNormalizer, boot: BoolNormalizer,
autoClose: BoolNormalizer, autoClose: BoolNormalizer,
paused: BoolNormalizer, paused: IntNormalizer,
lastRun: IntNormalizer, lastRun: IntNormalizer,
volume: IntNormalizer,
} }
export default class Settings { export default class Settings {
@@ -61,9 +64,9 @@ export default class Settings {
static open() { static open() {
if (this.win) return if (this.win) return
this.win = new BrowserWindow({ Settings.win = new BrowserWindow({
width: 400, width: 400,
height: 575, height: 630,
center: true, center: true,
resizable: false, resizable: false,
webPreferences: { webPreferences: {
@@ -74,6 +77,7 @@ export default class Settings {
const entry = join(__dirname, '../front/settings/index.html') const entry = join(__dirname, '../front/settings/index.html')
Settings.win.loadFile(entry) Settings.win.loadFile(entry)
Settings.win.setMenu(null)
if (DEV) { if (DEV) {
Settings.win.setSize(800, 485) Settings.win.setSize(800, 485)
@@ -81,4 +85,17 @@ export default class Settings {
Settings.win.webContents.openDevTools() Settings.win.webContents.openDevTools()
} }
} }
static getStatus(): [boolean, number] {
const paused: number = Settings.load('paused')
const now = Date.now()
if (paused > now) {
return [true, paused - now]
}
const every = Settings.load('every')
const lastRun = Settings.load('lastRun')
const diff = every * 60 * 1000 - dayjs(now).diff(dayjs(lastRun), 'ms')
return [false, diff]
}
} }

View File

@@ -1,53 +1,61 @@
import { Tray, Menu, nativeImage } from 'electron' import { Tray, Menu, nativeImage } from 'electron'
import path from 'path' import path from 'path'
import ms from 'ms'
import Banner from './banner' import Banner from './banner'
import Settings from './settings' import Settings from './settings'
enum Items {
Status = 'status',
Pause = 'pause',
Run = 'run',
}
export default class TrayUtility { export default class TrayUtility {
static menu: Parameters<typeof Menu['buildFromTemplate']>[0] = [
{ label: 'Status', type: 'normal', enabled: false, id: Items.Status },
{ type: 'separator' },
{
label: 'Take a break now',
type: 'normal',
id: Items.Run,
click: () => Banner.open(),
},
{ label: 'Pause', type: 'checkbox', id: Items.Pause },
{ label: 'Settings', type: 'normal', click: () => Settings.open() },
{ type: 'separator' },
{ label: 'Quit', type: 'normal', role: 'quit' },
]
static tray: Tray | null = null static tray: Tray | null = null
static setStatus(status: string) { static build() {
this.menu[0].label = status const [paused, interval] = Settings.getStatus()
this.tray.setContextMenu(this.build()) const status = paused ? `Paused for: ${ms(interval)}` : `Next break: ${ms(interval)}`
}
private static build() { const template: Parameters<typeof Menu['buildFromTemplate']>[0] = [
const menu = Menu.buildFromTemplate(this.menu) { label: status, type: 'normal', enabled: false },
for (const item of menu.items) { { type: 'separator' },
if (item.id === Items.Pause) { {
let initial = Settings.load('paused') label: 'Take a break now',
item.checked = initial type: 'normal',
item.click = () => { click: () => Banner.open(),
initial = !initial },
item.checked = initial ]
Settings.save('paused', initial)
} template.push(
break paused
} ? {
} label: 'Break pause',
return menu click: () => {
Settings.save('paused', 0)
this.build()
},
}
: {
label: 'Pause for...',
submenu: Menu.buildFromTemplate(
// Minutes to pause
[10, 30, 60, 120, 360]
.map((minutes) => minutes * 60 * 1000)
.map((time) => ({
label: ms(time),
click: () => {
Settings.save('paused', Date.now() + time)
this.build()
},
}))
),
}
)
template.push(
{ label: 'Settings', click: () => Settings.open() },
{ type: 'separator' },
{ label: 'Quit', role: 'quit' }
)
const menu = Menu.buildFromTemplate(template)
this.tray?.setContextMenu(menu)
} }
static init() { static init() {
@@ -58,7 +66,7 @@ export default class TrayUtility {
height: 24, height: 24,
}) })
this.tray = new Tray(icon) this.tray = new Tray(icon)
this.tray.setContextMenu(this.build()) this.build()
} }
} }
} }

View File

@@ -7,7 +7,7 @@ import pkg from '../../package.json'
const current = semver.coerce(pkg.version) const current = semver.coerce(pkg.version)
const url = 'https://api.github.com/repos/cupcakearmy/unpixel/tags' const url = 'https://api.github.com/repos/cupcakearmy/unpixel/tags'
const interval = 1000 * 60 * 60 * 10 // 10 Minutes const interval = 1000 * 60 * 15 // 10 Minutes
export default class Updater { export default class Updater {
static init() { static init() {
@@ -20,8 +20,9 @@ export default class Updater {
url, url,
}) })
// parse tags and reverse sort them to get the highest // parse tags and reverse sort them to get the highest
const tags = data.map((d) => semver.coerce(d.name)).sort(semver.rcompare) const tags = data.map((d: any) => semver.coerce(d.name)).sort(semver.rcompare)
const latest = tags[0] const latest = tags[0]
if (!current) throw new Error('Could not determine current version')
if (semver.lt(current, latest)) { if (semver.lt(current, latest)) {
logger.info('New version available') logger.info('New version available')
dialog dialog

View File

@@ -1,5 +1,3 @@
console.log('test')
import { ipcRenderer } from 'electron' import { ipcRenderer } from 'electron'
import React, { useCallback, useEffect, useRef, useState } from 'react' import React, { useCallback, useEffect, useRef, useState } from 'react'
import { render } from 'react-dom' import { render } from 'react-dom'
@@ -7,15 +5,17 @@ import { render } from 'react-dom'
// @ts-ignore // @ts-ignore
import chime from 'url:../assets/chime.mp3' import chime from 'url:../assets/chime.mp3'
const useKeyPress = (handler) => { const useKeyPress = (handler: (e: KeyboardEvent) => void) => {
const handlerRef = useRef<(e: KeyboardEvent) => void>() const handlerRef = useRef<typeof handler>()
useEffect(() => { useEffect(() => {
handlerRef.current = handler handlerRef.current = handler
}, [handler]) }, [handler])
useEffect(() => { useEffect(() => {
const fn = (event) => handlerRef.current(event) const fn = (event: KeyboardEvent) => {
if (handlerRef.current) handlerRef.current(event)
}
window.addEventListener('keydown', fn) window.addEventListener('keydown', fn)
return () => { return () => {
window.removeEventListener('keydown', fn) window.removeEventListener('keydown', fn)
@@ -50,6 +50,8 @@ const Banner: React.FC = () => {
setTimeout(() => setCountdown(countdown - 1), 1000) setTimeout(() => setCountdown(countdown - 1), 1000)
} else { } else {
const audio = new Audio(chime) const audio = new Audio(chime)
const volume = ipcRenderer.sendSync('load', { key: 'volume' })
audio.volume = volume / 100
audio.play() audio.play()
setDone(true) setDone(true)
} }

View File

@@ -1,4 +1,3 @@
/* @import 'hiq/dist/hiq.css'; */
@import 'spectre.css/dist/spectre.min.css'; @import 'spectre.css/dist/spectre.min.css';
@import 'tachyons/css/tachyons.min.css'; @import 'tachyons/css/tachyons.min.css';

View File

@@ -1,4 +1,4 @@
import React, { useCallback } from 'react' import React from 'react'
import Link from './ExternalLink' import Link from './ExternalLink'

View File

@@ -6,6 +6,18 @@ const labels = {
duration: ['For', 'seconds'], duration: ['For', 'seconds'],
boot: ['Start on boot'], boot: ['Start on boot'],
autoClose: ['Close window after countdown'], autoClose: ['Close window after countdown'],
volume: ['Chime Volume'],
}
const ranges: Partial<Record<keyof typeof labels, [number, number]>> = {
every: [1, 60],
duration: [1, 60],
volume: [0, 100],
}
function getRange(key: keyof typeof labels): [number, number] {
const range = ranges[key]
return range || [0, 0]
} }
const Field: React.FC<{ setting: keyof typeof labels }> = ({ setting: key }) => { const Field: React.FC<{ setting: keyof typeof labels }> = ({ setting: key }) => {
@@ -39,8 +51,8 @@ const Field: React.FC<{ setting: keyof typeof labels }> = ({ setting: key }) =>
className="mt0 mb3" className="mt0 mb3"
type="range" type="range"
id={key} id={key}
min="1" min={getRange(key)[0]}
max="60" max={getRange(key)[1]}
step="1" step="1"
value={value} value={value}
onChange={(e) => setValue(parseInt(e.target.value))} onChange={(e) => setValue(parseInt(e.target.value))}

View File

@@ -9,7 +9,7 @@ const Footer: React.FC = () => {
<div className="flex justify-center items-center"> <div className="flex justify-center items-center">
<Link link="https://github.com/cupcakearmy" text="Github" /> <Link link="https://github.com/cupcakearmy" text="Github" />
<div className="ph1"> - </div> <div className="ph1"> - </div>
<Link link="https://nicco.io/support" text="Support" /> <Link link="https://nicco.io/support" text="Support / Donate" />
</div> </div>
<div className="code o-20 mt1"> <div className="code o-20 mt1">
<small>version: {version}</small> <small>version: {version}</small>

View File

@@ -12,6 +12,7 @@ const Settings = () => {
<fieldset className="ma0 pa0"> <fieldset className="ma0 pa0">
<Field setting="every" /> <Field setting="every" />
<Field setting="duration" /> <Field setting="duration" />
<Field setting="volume" />
<Field setting="autoClose" /> <Field setting="autoClose" />
<Field setting="boot" /> <Field setting="boot" />
</fieldset> </fieldset>

72
tsconfig.json Normal file
View File

@@ -0,0 +1,72 @@
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es2018" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */,
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Strict Type-Checking Options */
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
"strictNullChecks": true /* Enable strict null checks. */,
"strictFunctionTypes": true /* Enable strict checking of function types. */,
"strictBindCallApply": true /* Enable strict 'bind', 'call', and 'apply' methods on functions. */,
"strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
"alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
"resolveJsonModule": true,
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
/* Advanced Options */
"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
}
}

View File

@@ -1584,6 +1584,11 @@
dependencies: dependencies:
defer-to-connect "^1.0.1" defer-to-connect "^1.0.1"
"@types/auto-launch@^5.0.1":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@types/auto-launch/-/auto-launch-5.0.1.tgz#388a047edc0e754d8e8978cbd9ed4672b36be2c4"
integrity sha512-+KQ+/koZ7sJXnf5cnCANofY6yXAdYJNEoVZEuWcwJfuWbUp9u6l09I7KhwD+ivU+cdz7JId4V5ukxscWtHdSuw==
"@types/debug@^4.1.5": "@types/debug@^4.1.5":
version "4.1.5" version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.5.tgz#b14efa8852b7768d898906613c23f688713e02cd" resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.5.tgz#b14efa8852b7768d898906613c23f688713e02cd"
@@ -1616,11 +1621,21 @@
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.4.tgz#f0ec25dbf2f0e4b18647313ac031134ca5b24b21" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.4.tgz#f0ec25dbf2f0e4b18647313ac031134ca5b24b21"
integrity sha512-1z8k4wzFnNjVK/tlxvrWuK5WMt6mydWWP7+zvH5eFep4oj+UkrfiJTRtjCeBXNpwaA/FYqqtb4/QS4ianFpIRA== integrity sha512-1z8k4wzFnNjVK/tlxvrWuK5WMt6mydWWP7+zvH5eFep4oj+UkrfiJTRtjCeBXNpwaA/FYqqtb4/QS4ianFpIRA==
"@types/node@*", "@types/node@^14.6.2": "@types/ms@^0.7.31":
version "0.7.31"
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==
"@types/node@*":
version "14.14.37" version "14.14.37"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.37.tgz#a3dd8da4eb84a996c36e331df98d82abd76b516e" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.37.tgz#a3dd8da4eb84a996c36e331df98d82abd76b516e"
integrity sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw== integrity sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw==
"@types/node@^14.6.2":
version "14.14.43"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.43.tgz#26bcbb0595b305400e8ceaf9a127a7f905ae49c8"
integrity sha512-3pwDJjp1PWacPTpH0LcfhgjvurQvrZFBrC6xxjaUEZ7ifUtT32jtjPxEMMblpqd2Mvx+k8haqQJLQxolyGN/cQ==
"@types/plist@^3.0.1": "@types/plist@^3.0.1":
version "3.0.2" version "3.0.2"
resolved "https://registry.yarnpkg.com/@types/plist/-/plist-3.0.2.tgz#61b3727bba0f5c462fe333542534a0c3e19ccb01" resolved "https://registry.yarnpkg.com/@types/plist/-/plist-3.0.2.tgz#61b3727bba0f5c462fe333542534a0c3e19ccb01"
@@ -1646,7 +1661,7 @@
dependencies: dependencies:
"@types/react" "*" "@types/react" "*"
"@types/react@*", "@types/react@^17.0.3": "@types/react@*":
version "17.0.3" version "17.0.3"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.3.tgz#ba6e215368501ac3826951eef2904574c262cc79" resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.3.tgz#ba6e215368501ac3826951eef2904574c262cc79"
integrity sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg== integrity sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==
@@ -1655,11 +1670,25 @@
"@types/scheduler" "*" "@types/scheduler" "*"
csstype "^3.0.2" csstype "^3.0.2"
"@types/react@^17.0.3":
version "17.0.4"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.4.tgz#a67c6f7a460d2660e950d9ccc1c2f18525c28220"
integrity sha512-onz2BqScSFMoTRdJUZUDD/7xrusM8hBA2Fktk2qgaTYPCgPvWnDEgkrOs8hhPUf2jfcIXkJ5yK6VfYormJS3Jw==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"
"@types/scheduler@*": "@types/scheduler@*":
version "0.16.1" version "0.16.1"
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.1.tgz#18845205e86ff0038517aab7a18a62a6b9f71275" resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.1.tgz#18845205e86ff0038517aab7a18a62a6b9f71275"
integrity sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA== integrity sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==
"@types/semver@^7.3.4":
version "7.3.5"
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.5.tgz#74deebbbcb1e86634dbf10a5b5e8798626f5a597"
integrity sha512-iotVxtCCsPLRAvxMFFgxL8HD2l4mAZ2Oin7/VJ2ooWO0VOK4EGOGmZWZn1uCq7RofR3I/1IOSjCHlFT71eVK0Q==
"@types/verror@^1.10.3": "@types/verror@^1.10.3":
version "1.10.4" version "1.10.4"
resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.4.tgz#805c0612b3a0c124cf99f517364142946b74ba3b" resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.4.tgz#805c0612b3a0c124cf99f517364142946b74ba3b"
@@ -2712,11 +2741,16 @@ core-js-compat@^3.8.1, core-js-compat@^3.9.0:
browserslist "^4.16.3" browserslist "^4.16.3"
semver "7.0.0" semver "7.0.0"
core-js@^3.2.1, core-js@^3.6.5: core-js@^3.2.1:
version "3.10.0" version "3.10.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.10.0.tgz#9a020547c8b6879f929306949e31496bbe2ae9b3" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.10.0.tgz#9a020547c8b6879f929306949e31496bbe2ae9b3"
integrity sha512-MQx/7TLgmmDVamSyfE+O+5BHvG1aUGj/gHhLn1wVtm2B5u1eVIPvh7vkfjwWKNCjrTJB8+He99IntSQ1qP+vYQ== integrity sha512-MQx/7TLgmmDVamSyfE+O+5BHvG1aUGj/gHhLn1wVtm2B5u1eVIPvh7vkfjwWKNCjrTJB8+He99IntSQ1qP+vYQ==
core-js@^3.6.5:
version "3.11.2"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.11.2.tgz#af087a43373fc6e72942917c4a4c3de43ed574d6"
integrity sha512-3tfrrO1JpJSYGKnd9LKTBPqgUES/UYiCzMKeqwR1+jF16q4kD1BY2NvqkfuzXwQ6+CIWm55V9cjD7PQd+hijdw==
core-util-is@1.0.2, core-util-is@~1.0.0: core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2" version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
@@ -2974,9 +3008,9 @@ cssstyle@^1.1.1:
cssom "0.3.x" cssom "0.3.x"
csstype@^3.0.2: csstype@^3.0.2:
version "3.0.7" version "3.0.8"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.7.tgz#2a5fb75e1015e84dd15692f71e89a1450290950b" resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.8.tgz#d2266a792729fb227cd216fb572f43728e1ad340"
integrity sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g== integrity sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==
dashdash@^1.12.0: dashdash@^1.12.0:
version "1.14.1" version "1.14.1"
@@ -3326,9 +3360,9 @@ electron-builder@^22.10.5:
yargs "^16.2.0" yargs "^16.2.0"
electron-log@^4.3.2: electron-log@^4.3.2:
version "4.3.2" version "4.3.5"
resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-4.3.2.tgz#213334c69f0498fac677a7a73eae4a61fb69949e" resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-4.3.5.tgz#2aad5f93842b9b5214a1b4a10e47b5ac5c9ec104"
integrity sha512-PJPWE8JDzQ137UlxX9K917nI8GTcwgiJpE2PMPXZo+I6C4AaZU+JWQ3lW5NjQ1Lg8Qk8qbze+Ly0yAiqhbmpeA== integrity sha512-J5Ew3axdk7W4jzzxKLSAi1sqbcAoo9CzHuBVsG0tT47j256xKulNrWFf3lZmHJ1KDXOQUcuwOngQF0jjmpEdpw==
electron-publish@22.10.5: electron-publish@22.10.5:
version "22.10.5" version "22.10.5"
@@ -3345,9 +3379,9 @@ electron-publish@22.10.5:
mime "^2.5.0" mime "^2.5.0"
electron-store@^7.0.2: electron-store@^7.0.2:
version "7.0.2" version "7.0.3"
resolved "https://registry.yarnpkg.com/electron-store/-/electron-store-7.0.2.tgz#e45a54d092ea43e2a953619ed4473893d448dfdf" resolved "https://registry.yarnpkg.com/electron-store/-/electron-store-7.0.3.tgz#56d78284454018ed50ffc7645da49f828ae5ff19"
integrity sha512-tSUeHF9qdiPirph8JKJvIIcdVb3wYwgHUJCE38SJq4L08Op2z1+u8DSQ42Nvx34TKvb2lkQkByV0tHh6xBxdEQ== integrity sha512-wIbw4GHt4djs4dVrlRLCD/SpdpDUiRsQc212jagGA6zJ8xt1iwx3KZIzXY8gmwvgVCOcVxi3iyCXZoBBWwBXpQ==
dependencies: dependencies:
conf "^9.0.0" conf "^9.0.0"
type-fest "^0.20.2" type-fest "^0.20.2"
@@ -3358,9 +3392,9 @@ electron-to-chromium@^1.3.649:
integrity sha512-BqddgxNPrcWnbDdJw7SzXVzPmp+oiyjVrc7tkQVaznPGSS9SKZatw6qxoP857M+HbOyyqJQwYQtsuFIMSTNSZA== integrity sha512-BqddgxNPrcWnbDdJw7SzXVzPmp+oiyjVrc7tkQVaznPGSS9SKZatw6qxoP857M+HbOyyqJQwYQtsuFIMSTNSZA==
electron@^12.0.0: electron@^12.0.0:
version "12.0.2" version "12.0.6"
resolved "https://registry.yarnpkg.com/electron/-/electron-12.0.2.tgz#d92be205f1937627bd6718aad44ac161382b4c2d" resolved "https://registry.yarnpkg.com/electron/-/electron-12.0.6.tgz#2d72fa5a7db553dca3a771b22aa13a676122b4af"
integrity sha512-14luh9mGzfL4e0sncyy0+kW37IU7Y0Y1tvI97FDRSW0ZBQxi5cmAwSs5dmPmNBFBIGtzkaGaEB01j9RjZuCmow== integrity sha512-+fqhpdG6Fd6LzsizMdaSPC1I8tfsMT8/7fsYBgABED3hEWdus/rt6CQ54P3/EWZyQebtyHR6HXtlofUqKMV3KQ==
dependencies: dependencies:
"@electron/get" "^1.0.1" "@electron/get" "^1.0.1"
"@types/node" "^14.6.2" "@types/node" "^14.6.2"
@@ -5147,6 +5181,11 @@ ms@2.1.2:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
ms@^2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
nanoid@^3.1.22: nanoid@^3.1.22:
version "3.1.22" version "3.1.22"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.22.tgz#b35f8fb7d151990a8aebd5aa5015c03cf726f844" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.22.tgz#b35f8fb7d151990a8aebd5aa5015c03cf726f844"
@@ -6017,10 +6056,10 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2
source-map "^0.6.1" source-map "^0.6.1"
supports-color "^6.1.0" supports-color "^6.1.0"
postcss@^8.0.5, postcss@^8.2.1, postcss@^8.2.9: postcss@^8.0.5, postcss@^8.2.1, postcss@^8.2.10:
version "8.2.9" version "8.2.10"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.9.tgz#fd95ff37b5cee55c409b3fdd237296ab4096fba3" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.10.tgz#ca7a042aa8aff494b334d0ff3e9e77079f6f702b"
integrity sha512-b+TmuIL4jGtCHtoLi+G/PisuIl9avxs8IZMSmlABRwNz5RLUUACrC+ws81dcomz1nRezm5YPdXiMEzBEKgYn+Q== integrity sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw==
dependencies: dependencies:
colorette "^1.2.2" colorette "^1.2.2"
nanoid "^3.1.22" nanoid "^3.1.22"