This file contains 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
{ | |
"version": "v0.0.39", | |
"notes": "refactor: set fixed tauri-cli", | |
"pub_date": "2024-10-26T17:03:13Z", | |
"platforms": { | |
"darwin-x86_64": { | |
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUUjRYWkN6NHd6enorbWZHUHdDdEs4S1ZKMWtwY1h1TmtuaGRid2o5bnJmOHIwazU5OXlKVWk2MDl5a0FCaHZqSUF5Ni82elJvQXFDa20wREYyYk1OeWNxRTB6d1JUM2dnPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzI5OTYxOTQ0CWZpbGU6WmFwLmFwcC50YXIuZ3oKMXFRa0libkY0OGJjRXVtN29oTUNxR3ZZUTZkM0ZCK3gzSVUrc0QvR3FGY0orejBOY2c2ZlR5YW5WdDZnVkZ1WEZwWnpUbnNKbGtibnJKYUNwQW10QlE9PQo=", | |
"url": "https://verge.s3.us-east-2.amazonaws.com/zap-releases/x86_64-apple-darwin/0.0.39/Zap.app.tar.gz" | |
}, |
This file contains 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 ApolloClient from 'apollo-client'; | |
import { HttpLink } from 'apollo-link-http'; | |
import { concat } from 'apollo-link'; | |
import { GRAPHQL_API_URL } from 'config/consts'; | |
import { InMemoryCache } from 'apollo-boost'; | |
import authMiddleware from './apollo/authMiddleware'; | |
import errorMiddleware from './apollo/errorMiddleware'; | |
const defaultOptions = { | |
watchQuery: { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
<link rel="stylesheet" type="text/css" href="./styles.css"> | |
</head> | |
<body> | |
<h1>Fade In/Out Window Example</h1> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
<link rel="stylesheet" type="text/css" href="./styles.css"> | |
</head> | |
<body> | |
<h1>Fade In/Out Window Example</h1> |
This file contains 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
//... | |
// If you want to stop fade-out at will. | |
// Just clear the fade out time interval. | |
window.clearInterval(fadeOutWindowIntervalRef); | |
// If you want to stop fade-in at will. | |
// Just clear the fade in time interval. | |
window.clearInterval(fadeInWindowIntervalRef); |
This file contains 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 { remote } = require("electron"); | |
// ...`fadeWindowOut` and `fadeWindowIn` functions goes here... | |
// Get the current window. | |
const currentWindow = remote.getCurrentWindow(); | |
// Fade-out window every 2 milliseconds, step by 0.1 | |
let fadeOutWindowIntervalRef = fadeWindowOut(currentWindow, 0.1, 2); |
This file contains 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 fadeWindowOut = ( | |
browserWindowToFadeOut, | |
step = 0.1, | |
fadeEveryXSeconds = 10 | |
) => { | |
// Get the opacity of the window. | |
let opacity = browserWindowToFadeOut.getOpacity(); | |
// Reduce the opacity of the window by `step` every `fadeEveryXSeconds`. |
NewerOlder