profile
viewpoint

swwind/xepub 6

A cross-platform EPUB reader written in deno.

swwind/hexo-helper-quiz 3

Helps quickly build quizzes

swwind/nagi-no-asukara 3

A plugin for spigot

swwind/lightdm-theme-gradient 2

LightDM-webkit Theme with modern style ! :D ~

swwind/live-radio-player 2

Make your live radio visualized

swwind/proline 1

A p2p sharing application

swwind/aurora 0

(WIP) A game engine for node.js based on SDL2

swwind/aurora-http 0

A very simple http framework designed for Deno

swwind/bangumi-subscriber 0

一个简单的番剧订阅器

swwind/code 0

My AC codes

push eventswwind/aurora

swwind

commit sha 29379edd24d1f1c33d622fd614d6a9b36709433b

add documents

view details

swwind

commit sha eaf7e6de4b37473b7cf34d9cf39b4ecffde9cc5f

0.0.0-alpha.1

view details

push time in 15 hours

push eventswwind/aurora

swwind

commit sha 1fc4f5215fdf07fd5f128a1c4c240b57b045feae

add mixer

view details

push time in 5 days

push eventswwind/aurora

swwind

commit sha b55c787d51ae245197875962e74e6c635644acd4

update readme

view details

swwind

commit sha 4ebd26ba5534d71f5b3862429c981b143e4f3d29

update license

view details

push time in 6 days

push eventswwind/aurora

swwind

commit sha 1acfdaf5d9c989ce9cc4ecaefd10885bb116f818

fulfill fonts render

view details

push time in 6 days

push eventswwind/aurora

swwind

commit sha cf8c9ddd41848cf321b6e175e454efb95f67784c

add draw image

view details

push time in 6 days

push eventswwind/aurora

swwind

commit sha de1c76ab6039c3a190b10e46a1e90f9d17d0a78b

small changes

view details

push time in 6 days

push eventswwind/aurora

swwind

commit sha 8610069be36b1940f52157947b57519270526626

add window event and window config

view details

push time in 6 days

push eventswwind/aurora

swwind

commit sha c7426c472fe4d12f845a8f6d59a162aad703098c

add mouse events

view details

push time in 7 days

push eventswwind/aurora

swwind

commit sha cd74a088fda300c893a6fecc4e95ba7516c7c22c

sort code

view details

push time in 7 days

create barnchswwind/aurora

branch : master

created branch time in 8 days

created repositoryswwind/aurora

(WIP) A game engine for node.js based on SDL2

created time in 8 days

issue openednodejs/node-addon-api

Question: Wait until ThreadSafeFunction::BlockingCall finished

I'm trying to run some js-function in a AsyncWorker which has a while (true) loop inside. I have set the callback function as a Napi::ThreadSafeFunction and managed to call that function in every while loop in that AsyncWorker.

Example code:

#include <napi.h>
#include <thread>
#include <chrono>

Napi::ThreadSafeFunction tsfn;

Napi::Value Method(const Napi::CallbackInfo& info) {
  Napi::Env env = info.Env();
  tsfn = Napi::ThreadSafeFunction::New(
    env,
    info[0].As<Napi::Function>(),
    "callback",
    0,
    1,
    [] (Napi::Env) { }
  );
  return env.Undefined();
}

void tsfnCallback(Napi::Env env, Napi::Function fn) {
  fn.Call({ });
}

class MyWorker : public Napi::AsyncWorker {
 public:
  MyWorker(Napi::Function& callback)
      : Napi::AsyncWorker(callback) {}
  ~MyWorker() {}

  void Execute() {
    while (true) {
      std::this_thread::sleep_for(std::chrono::seconds(1));

      puts("before blocking call");
      tsfn.BlockingCall(tsfnCallback);
      puts("after blocking call");
    }
  }

  void OnOK() {
    Callback().Call({Env().Undefined()});
  }
};

Napi::Value Invoke(const Napi::CallbackInfo& info) {
  Napi::Function fn = info[0].As<Napi::Function>();
  MyWorker* mw = new MyWorker(fn);
  mw -> Queue();
  return info.Env().Undefined();
}

Napi::Object Init(Napi::Env env, Napi::Object exports) {
  exports.Set(Napi::String::New(env, "setcallback"),
              Napi::Function::New(env, Method));
  exports.Set(Napi::String::New(env, "invoke"),
              Napi::Function::New(env, Invoke));
  return exports;
}

NODE_API_MODULE(hello, Init)
var addon = require('bindings')('hello');

addon.setcallback(() => {
  console.log('callback!!!');
});
addon.invoke(() => {
  console.log('solved!!!');
});

And it output like this:

before blocking call
after blocking call
callback!!!
...

This code works fine, but I wonder how to block the AsyncWorker thread and wait until tsfn.BlockingCall finished?

In other words, what I expect is:

before blocking call
callback!!!
after blocking call

Thanks for any help. o(〃'▽'〃)o

created time in 10 days

push eventswwind/aurora

swwind

commit sha 296a5f7c0e9ff83ccf19101578404fe5f25bfe22

change 403 to 400

view details

push time in 10 days

push eventswwind/proline

dependabot[bot]

commit sha 13c8c34f09af77cc2de00319dc675c39ad304952

build(deps-dev): bump electron from 9.2.0 to 9.3.1 Bumps [electron](https://github.com/electron/electron) from 9.2.0 to 9.3.1. - [Release notes](https://github.com/electron/electron/releases) - [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md) - [Commits](https://github.com/electron/electron/compare/v9.2.0...v9.3.1) Signed-off-by: dependabot[bot] <support@github.com>

view details

swwind

commit sha bcc27ffffa854f431123ac591587129bd3e36c0d

Merge pull request #3 from swwind/dependabot/npm_and_yarn/electron-9.3.1 build(deps-dev): bump electron from 9.2.0 to 9.3.1

view details

push time in 13 days

PR merged swwind/proline

build(deps-dev): bump electron from 9.2.0 to 9.3.1 dependencies

Bumps electron from 9.2.0 to 9.3.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/electron/electron/releases">electron's releases</a>.</em></p> <blockquote> <h2>electron v9.3.1</h2> <h1>Release Notes for v9.3.1</h1> <h2>Fixes</h2> <ul> <li>Added missing module delay loads on windows to reduce per process reference set impact. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25437">#25437</a> <!-- raw HTML omitted -->(Also in <a href="https://github-redirect.dependabot.com/electron/electron/pull/25437">9</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25435">10</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25436">11</a>)<!-- raw HTML omitted --></li> <li>Fixed a crash in the renderer process when invoking the Badging API. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25371">#25371</a> <!-- raw HTML omitted -->(Also in <a href="https://github-redirect.dependabot.com/electron/electron/pull/25371">9</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25369">10</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25370">11</a>)<!-- raw HTML omitted --></li> <li>Fixed a memory leak in net.request(). <a href="https://github-redirect.dependabot.com/electron/electron/pull/25382">#25382</a></li> <li>Fixed multiple dock icons being left in system when calling dock.show/hide on macOS. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25301">#25301</a> <!-- raw HTML omitted -->(Also in <a href="https://github-redirect.dependabot.com/electron/electron/pull/25302">8</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25301">9</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25299">10</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25300">11</a>)<!-- raw HTML omitted --></li> </ul> <h2>Other Changes</h2> <ul> <li>Security: backported fix for 1081874. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25389">#25389</a></li> <li>Security: backported fix for 1098860. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25289">#25289</a></li> <li>Security: backported fix for 1111737. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25391">#25391</a></li> <li>Security: backported fix for 1122684. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25390">#25390</a></li> </ul> <h2>Unknown</h2> <ul> <li>Added support for some <code>chrome.management</code> APIs. <a href="https://github-redirect.dependabot.com/electron/electron/pull/25344">#25344</a> <!-- raw HTML omitted -->(Also in <a href="https://github-redirect.dependabot.com/electron/electron/pull/25344">9</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25345">10</a>, <a href="https://github-redirect.dependabot.com/electron/electron/pull/25342">11</a>)<!-- raw HTML omitted --></li> </ul> <h2>electron v9.3.0</h2> <h1>Release Notes for v9.3.0</h1> <h2>Features</h2> <ul> <li>Added back a previously broken <code>visibleOnFullScreen</code> option for <code>setVisibleOnAllWorkspaces</code>. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25126">#25126</a></li> <li>Added the <code>currencyCode</code> field that Apple's StoreKit in-app-purchasing library provides but has not been added to the <code>Product</code> object that <code>inAppPurchase.getProducts</code> returns. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25085">#25085</a></li> </ul> <h2>Fixes</h2> <ul> <li>Fixed <code>powerMonitor</code> not emitting <code>suspend</code>/<code>resume</code> events on some Windows machines. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25165">#25165</a></li> <li>Fixed an issue where filters set in dialogs on macOS would have nondeterministic ordering. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25194">#25194</a></li> <li>Fixed an issue where notifications with a reply button could potentially be destroyed too early when a user clicked on the notification body before replying. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25101">#25101</a></li> <li>Fixed frameless window's size being changed when restored from minimized state. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25045">#25045</a></li> <li>Fixed network permission error when there are multiple WebContents sharing same session are created with web security disabled. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25179">#25179</a></li> <li>Fixed node's TLS stack not allowing renegotiation. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25041">#25041</a></li> <li>Fixed the following issues for frameless when maximized on Windows * fix unreachable task bar when auto hidden with position top</li> <li>fix 1px extending to secondary monitor</li> <li>fix 1px overflowing into taskbar at certain resolutions</li> <li>fix white line on top of window under 4k resolutions. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25218">#25218</a></li> <li>Fixed window size being changed after unmaximizing. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25133">#25133</a></li> </ul> <h2>Unknown</h2> <ul> <li>Fixed not working <code>WebSQLDatabase</code> in extension background pages. <a href="https://github-redirect.dependabot.com/electron/electron/issues/25070">#25070</a></li> </ul> <h2>electron v9.2.1</h2> <h1>Release Notes for v9.2.1</h1> <h2>Fixes</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/electron/electron/commit/fe3378db92b76bd4dd14c11365c229a8be9954a7"><code>fe3378d</code></a> Bump v9.3.1</li> <li><a href="https://github.com/electron/electron/commit/fe85a9403590f65bee749c1fd2116f6270ca45cd"><code>fe85a94</code></a> fix: handle electron script errors better (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25331">#25331</a>) (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25453">#25453</a>)</li> <li><a href="https://github.com/electron/electron/commit/48779feb91b347d80898bb033cb43f51d3fda202"><code>48779fe</code></a> fix: Ensure electron delay loads the same modules as chromium (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25437">#25437</a>)</li> <li><a href="https://github.com/electron/electron/commit/5e289cee04df1c587ebec73605217d855961a3c2"><code>5e289ce</code></a> chore: cherry-pick 1283160e334f 0dc563cbbca5 from chromium (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25391">#25391</a>)</li> <li><a href="https://github.com/electron/electron/commit/5f4ccec09aec658a1fd093c8ccf59718a81e58bd"><code>5f4ccec</code></a> chore: cherry-pick c1a7439efcc7 from chromium (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25390">#25390</a>)</li> <li><a href="https://github.com/electron/electron/commit/20f58fddf1a149214090270a56cac3a50740cb6b"><code>20f58fd</code></a> chore: cherry-pick 5e61913985df from chromium (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25389">#25389</a>)</li> <li><a href="https://github.com/electron/electron/commit/75f193a089f9483e79b28365d84190a4462f6b3d"><code>75f193a</code></a> fix: memory leak in net.request (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25382">#25382</a>)</li> <li><a href="https://github.com/electron/electron/commit/7de2539399b3542723fadf6235ecbf8e0f3525a2"><code>7de2539</code></a> fix: bind fake mojo service for badging (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25371">#25371</a>)</li> <li><a href="https://github.com/electron/electron/commit/a90397f348a3d0662123850a0ff8aaf8f51d4262"><code>a90397f</code></a> chore: sync 9-x-y release notes script to master (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25305">#25305</a>)</li> <li><a href="https://github.com/electron/electron/commit/6e734570ac8d932187d2e1577689f3f384c5a217"><code>6e73457</code></a> feat(extensions): add support for some chrome.management APIs (<a href="https://github-redirect.dependabot.com/electron/electron/issues/25344">#25344</a>)</li> <li>Additional commits viewable in <a href="https://github.com/electron/electron/compare/v9.2.0...v9.3.1">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+5 -5

0 comment

2 changed files

dependabot[bot]

pr closed time in 13 days

startedbwasty/learn-opengl-rs

started time in 13 days

startedbwasty/learn-opengl-rs

started time in 13 days

push eventswwind/aurora

swwind

commit sha 8acfa7924e1e433e738ca6f4dfae336b54a71c17

support deno --unstable

view details

push time in 13 days

push eventswwind/aurora

swwind

commit sha 910177a67cbf7a89de0062b9ad96e1055049a2ed

changed state

view details

push time in 13 days

push eventswwind/aurora

swwind

commit sha 8ed6c39932fd2de2b8f3d96ce44fbfaab185039c

add body parser

view details

push time in 13 days

push eventswwind/aurora

swwind

commit sha 76c6450474245cc871d6c42e740eab2f38787900

renamed to aurora

view details

push time in 14 days

push eventswwind/simple-koa

swwind

commit sha 99a2de477fad6172cdcc76b8f2a6a68204a4c804

feature

view details

swwind

commit sha ced2da7a203f141119efaa621d0260d751e08275

feat: vhost and serve

view details

push time in 14 days

push eventswwind/simple-koa

swwind

commit sha 9fed6df8775b90abe9eb643290ddd3dcc7da6a1f

add cookie

view details

push time in 18 days

create barnchswwind/simple-koa

branch : master

created branch time in 18 days

created repositoryswwind/simple-koa

A very simple http framework designed for Deno

created time in 18 days

push eventswwind/dotfiles

swwind

commit sha 460df71eb8383c4a55bf6052efcaed1b88ee85e2

Update install.sh

view details

push time in a month

push eventswwind/dotfiles

swwind

commit sha 2006a73879814ce8d2410f5c2604b13a1601c53a

Update install.sh

view details

push time in a month

push eventswwind/new-blog

swwind

commit sha fb3104b0edf96545c35ded978827fcce2b465e75

fix font

view details

push time in a month

push eventswwind/code

swwind

commit sha d9fff9c863da02f56075f22212be09df868b790d

Create psw.html

view details

push time in a month

push eventswwind/dotfiles

swwind

commit sha 8eaadbd33536d38b56f4f568da555dddabd3dfca

suck

view details

push time in a month

push eventswwind/xepub

swwind

commit sha 71538fe8ad44bd3febe444686f60f5adf1644c21

1.0.0-beta.2

view details

push time in 2 months

push eventswwind/code

swwind

commit sha c162d8cdd5c6eda707fd731ac1257426fa16586e

add codeforces 667.3

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 2f723c9df0f869cb4247acec48cf37ddfed8670e

fix: xml-parser could not handle CDATA

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 88cf1d8462f44c2d9e4f863eb8360ea0d0b59919

small changes

view details

swwind

commit sha 17138d5b915bbd38ed21cbf62d2e87f28f18ecea

add more small changes

view details

swwind

commit sha 0e679e483d205efe81d89e780785ae1ffe3675e0

hopefully fix some error on windows

view details

swwind

commit sha 33ff96d497f2cb52feb0f88f59cf1e113d187f6c

1.0.0-beta.1

view details

push time in 2 months

startedyyuueexxiinngg/cqhttp-mirai

started time in 2 months

push eventswwind/xepub

swwind

commit sha f73869d7aefebd68492c570664281494e5bc0f5c

fix: wrong imageview when resize

view details

swwind

commit sha 68990588dddc1cb97ff2212fb7b5931efe8f657b

feat: remember last read

view details

swwind

commit sha 039f3a79d03a1be4c8788376c5f14f4cba087924

fix: weird animation

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha da1953f3af398c395ee892840c8a6120d7609c24

sort: remove unused files

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha d0080afd1a807a1d8077dcd19f8692561addcfaa

1.0.0-alpha.13

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 69ffc6cc249399e7cfda5e5762a30277d8bd0522

fix: imageview listen window resize

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 4d345a16b60e600fa5ce6f3496b545e258844d91

feat: add settings and darkmod

view details

push time in 2 months

push eventswwind/code

swwind

commit sha 8e010faf83396a092fa3d9931338affcb8eb807a

codeforces: 666 div2

view details

push time in 2 months

startedEYHN/Furigana

started time in 2 months

startedmamoe/mirai

started time in 2 months

push eventswwind/xepub

swwind

commit sha 986f75615f50d086b2e1876e99da141188ab7ba0

fix: folder parser and lazyload

view details

swwind

commit sha 4a938155484a3bb8c682f5eeb664f16adbc18570

improve: create menu

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 33fb3b16ae0625ebbb8bbec4dedba5f184bfb4a3

feat: add setting modal

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha f14ffbb68b1afa63f37d5c70873b080bbbe7915c

fix: wrong scrolling to hash

view details

swwind

commit sha faafb84d0f2bbe4a1d14cc1db246fb454de8e9fd

rebuild with typescript

view details

swwind

commit sha b6f198438ff70cccbcd39e480b6c0ff6540b173c

fix: npmignore

view details

swwind

commit sha c3e46d330faefe58e66d8bd8e46c7a3bc35c1297

bump version

view details

swwind

commit sha f06ea88e3da82e5bf0a12c0bf34b4fcf65cbabb6

fix: some bug

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha be8aed8987d05e7bb33bc872540c2b730ad8b9e9

bump version

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 13cb6e4db384e082d89cef811a9e2161953c1260

fix: button hit box

view details

swwind

commit sha 8c5e7857b16e09bc686d8f28180fad1bf3e8844d

feat: rotate picture

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha f9619812c07b1e922d321cfa2069838e33a10331

small changes

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 7c6bca62e9ccf3d6fb2147d5c81f713acdf22e70

feat: use random port if electron

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 4475340b583f9a4b138360f5f53ca0557190c8b1

fix: help txt

view details

push time in 2 months

push eventswwind/xepub

swwind

commit sha 33bd01ffcdd5bc80cc845f4f864b7f91be9e3c9c

remove: open image when click

view details

push time in 2 months

delete branch swwind/xepub

delete branch : separate-materialize-css

delete time in 2 months

create barnchswwind/xepub

branch : master

created branch time in 2 months

delete branch swwind/xepub

delete branch : backup

delete time in 2 months

create barnchswwind/xepub

branch : deno-ver

created branch time in 2 months

delete branch swwind/xepub

delete branch : master

delete time in 2 months

push eventswwind/xepub

swwind

commit sha 650bedf4c2d3e62e3aeca4080c843607af16a94c

Separate materialize css and remove babel (#6) * remove step 1 * modify deps * add animations * fix: image not in manifest * 1.0.0-alpha.10

view details

push time in 2 months

PR merged swwind/xepub

Separate materialize css and remove babel
+743 -304

0 comment

31 changed files

swwind

pr closed time in 2 months

PR opened swwind/xepub

Separate materialize css and remove babel
+743 -304

0 comment

31 changed files

pr created time in 2 months

create barnchswwind/xepub

branch : separate-materialize-css

created branch time in 2 months

push eventswwind/xepub

swwind

commit sha 0445f8ee1669f8203369a9cade00c359f66d73d8

fix: sort code

view details

swwind

commit sha 7237585760c3f82fcc49843bbdac7d657978aba7

fix: little fix

view details

swwind

commit sha b3047b15c339befb68b812c39ae6fc0cb67487c4

remove dist file

view details

swwind

commit sha 671c8204a8cdc7153103a2079e6b0b71704df399

modify ignre

view details

swwind

commit sha 44fc1d8294f971687d5e26041551f63e90e3c999

add npmignore

view details

push time in 2 months

delete branch swwind/xepub

delete branch : add-github-action

delete time in 2 months

push eventswwind/xepub

swwind

commit sha a025adfdd84d00708db45fe1bfd39d489c05aff4

upgrade std and fmt

view details

swwind

commit sha 6be0e0735c8abb95f8c941353d44030b0be440af

deprecate

view details

push time in 2 months

startedmamoe/mirai

started time in 2 months

push eventswwind/new-blog

swwind

commit sha 99a8c09381ac187241ac20a2739bd90cc09651a4

render: add some buff

view details

push time in 2 months

push eventswwind/proline

swwind

commit sha 8fadc74442abefcae7cc80f25013c16af3464b87

renderer: Modify some color and add icons

view details

push time in 2 months

push eventswwind/proline

swwind

commit sha 1378113ae40c9c9e50c8e318836703c85119d4f5

renderer: Add more animations

view details

push time in 3 months

push eventswwind/proline

swwind

commit sha ff62f8075c3b22008a363ce0a6602469ec153cd9

docs: Update API

view details

push time in 3 months

push eventswwind/proline

swwind

commit sha 8d480b0fad3b17d186b6df3a92a905b9538389e0

renderer: Add some animations

view details

push time in 3 months

push eventswwind/proline

swwind

commit sha d8967a7784a03ccbdab9aa42cc89828eab5110f8

renderer: update

view details

push time in 3 months

pull request commentswwind/proline

Bump electron from 5.0.13 to 9.1.0

这又是什么操作

dependabot[bot]

comment created time in 3 months

push eventswwind/proline

swwind

commit sha f8feca6ba808926b6a916835dd7659141d0263f8

README: add readme

view details

push time in 3 months

create barnchswwind/proline

branch : master

created branch time in 3 months

delete branch swwind/proline

delete branch : master

delete time in 3 months

create barnchswwind/proline

branch : legacy

created branch time in 3 months

PR closed swwind/proline

Bump electron from 5.0.13 to 9.1.0 dependencies

Bumps electron from 5.0.13 to 9.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/electron/electron/releases">electron's releases</a>.</em></p> <blockquote> <h2>electron v9.1.0</h2> <h1>Release Notes for v9.1.0</h1> <h2>Features</h2> <ul> <li>Added support for <code>MessagePort</code> in the main process. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24323">#24323</a></li> <li>Added support for suspend and resume events to Windows. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24283">#24283</a></li> <li>Added support for suspend and resume events to macOS. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24294">#24294</a></li> <li>Expose sessionId associated with a target from debugger module. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24398">#24398</a></li> <li>Implemented <code>systemPreferences.getMediaAccessStatus()</code> on Windows. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24312">#24312</a></li> </ul> <h2>Fixes</h2> <ul> <li>Fixed an intermittent high-CPU usage problem caused a system clock issue during sleep. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24415">#24415</a></li> <li>Fixed an issue where some old notifications were not properly removed from the Notification Center on macOS. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24406">#24406</a></li> <li>Fixed bug on macOS where the main window could be targeted for a focus event when it was disabled behind a modal. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24354">#24354</a></li> </ul> <h2>electron v9.0.5</h2> <h1>Release Notes for v9.0.5</h1> <h2>Fixes</h2> <ul> <li>Fixed "Paste and Match Style" shortcut on macOS to match OS's "Option-Shift-Command-V". <a href="https://github-redirect.dependabot.com/electron/electron/issues/24185">#24185</a></li> <li>Fixed "null path-to-app" in test-app when Electron's path contains spaces or special characters. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24232">#24232</a></li> <li>Fixed an error when calling <code>dialog.showCertificateTrustDialog</code> with no <code>BrowserWindow</code>. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24121">#24121</a></li> <li>Fixed an issue where <code>shutdown</code> would be emitted both on app <em>and</em> system shutdown on macOS. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24141">#24141</a></li> <li>Fixed an issue where <code>withFileTypes</code> was not supported as an option to <code>fs.readdir</code> or <code>fs.readdirSync</code> under asar. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24108">#24108</a></li> <li>Fixed an issue which would cause streaming protocol responses to stall in some cases. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24082">#24082</a></li> <li>Fixed an issue with click events not being emitted on macOS for Trays with context menus set. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24236">#24236</a></li> <li>Fixed delayed execution of some Node.js callbacks in the main process. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24178">#24178</a></li> <li>Fixed tray menu showing in taskbar on Windows. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24193">#24193</a></li> <li>Fixed window titlebar not responding to pen on Windows 10. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24103">#24103</a></li> </ul> <h2>Other Changes</h2> <ul> <li>Fixed issue with some IMEs on windows (for ex: Zhuyin) don't terminate after pressing shift. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24059">#24059</a></li> <li>Fixed mac app store rejection notice for invalid symbolic link in bundle. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24238">#24238</a></li> <li>Updated Chromium to 83.0.4103.119. <a href="https://github-redirect.dependabot.com/electron/electron/issues/24234">#24234</a></li> </ul> <h2>Documentation</h2> <ul> <li>Documentation changes: <a href="https://github-redirect.dependabot.com/electron/electron/issues/24177">#24177</a></li> </ul> <h2>electron v9.0.4</h2> <h1>Release Notes for v9.0.4</h1> <h2>Fixes</h2> <ul> <li>Added missing support for <code>isComposing</code> KeyboardEvent property. <a href="https://github-redirect.dependabot.com/electron/electron/issues/23996">#23996</a></li> <li>Enable NTLM v2 for POSIX platforms and added --disable-ntlm-v2 switch to disable it. <a href="https://github-redirect.dependabot.com/electron/electron/issues/23934">#23934</a></li> </ul> <!-- raw HTML omitted --> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/electron/electron/commit/a822d2639a9c9c2c670e91d73f78e921865ce38e"><code>a822d26</code></a> Bump v9.1.0</li> <li><a href="https://github.com/electron/electron/commit/9d6ac058c9ba09e5211cd703675f70901468ca5a"><code>9d6ac05</code></a> feat: expose sessionId in debugger module (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24398">#24398</a>)</li> <li><a href="https://github.com/electron/electron/commit/cbe66f27e725070c7c0c590a2e485978a554be19"><code>cbe66f2</code></a> fix: intermittent 100% CPU usage on macOS (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24415">#24415</a>)</li> <li><a href="https://github.com/electron/electron/commit/4f10bde056d5fe175f338b5bc7b04baf422df5bb"><code>4f10bde</code></a> feat: implement systemPreferences.getMediaAccessStatus() on Windows (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24275">#24275</a>) ...</li> <li><a href="https://github.com/electron/electron/commit/473c7dbe734fd2df68fa68f3a344e3a0222dfbf8"><code>473c7db</code></a> chore: use node_bindings loop for clarity (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24418">#24418</a>)</li> <li><a href="https://github.com/electron/electron/commit/4515c4db00d94175179e47b0c4d05d7d4f0074a7"><code>4515c4d</code></a> feat: add app render-process-gone event (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24315">#24315</a>)</li> <li><a href="https://github.com/electron/electron/commit/6dd394a155116cec542656165973a7888fe3938f"><code>6dd394a</code></a> fix: remove same-tag notifications before showing new ones (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24406">#24406</a>)</li> <li><a href="https://github.com/electron/electron/commit/4ace4995c81f1b04ab99cc1707d037e9972e1316"><code>4ace499</code></a> feat: MessagePorts in the main process (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24323">#24323</a>)</li> <li><a href="https://github.com/electron/electron/commit/71e329663e24fa4773dd4bdbf8fe71844de87bb8"><code>71e3296</code></a> feat: add new render-process-gone event (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24309">#24309</a>)</li> <li><a href="https://github.com/electron/electron/commit/67002fdf11b7329cdba2e70ace583cb0b853e4cc"><code>67002fd</code></a> fix: macOS modal focus (<a href="https://github-redirect.dependabot.com/electron/electron/issues/24354">#24354</a>)</li> <li>Additional commits viewable in <a href="https://github.com/electron/electron/compare/v5.0.13...v9.1.0">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+1 -1

1 comment

1 changed file

dependabot[bot]

pr closed time in 3 months

push eventswwind/code

swwind

commit sha 66eecec06b0c499006945103763bba8bad7b96a8

codeforces: Add contest 663 div.2

view details

push time in 3 months

push eventswwind/electron-netease-cloud-music

swwind

commit sha ec5c76de6c84f253633580a69126ae881e1e76e3

fix type

view details

push time in 3 months

pull request commentRocket1184/electron-netease-cloud-music

[Feature] Add download feature

做了一些修改:

  1. 添加了下载码率的设置,现在下载不再拷贝缓存,而是直接重新下载一遍。
  2. 在 Cache 中添加了一个下载的映射表,可以链接下载的文件作为缓存。(保存在 musicCache.json)
  3. MusicServer 会检查是否有更高的音质已经缓存/下载,如果有就 302 到更高的音质。
swwind

comment created time in 3 months

push eventswwind/electron-netease-cloud-music

swwind

commit sha dfaf9bbe1d5d61ffcd1733a158a16f54ac902676

support specific download bitrate

view details

swwind

commit sha c9fb2cc21754413793637a0ca3a775e0e9aac8ff

add 302 for MusicServer

view details

push time in 3 months

PR opened Rocket1184/electron-netease-cloud-music

[Feature] Add download feature

#32

读取缓存中的音乐文件,然后补全其中缺失的一些数据(封面、标题等),最后导出到 $HOME/Music/ElectronNCM/ 中。

  • 默认从缓存中从高到低选取音质。(ex > h > m > l)
  • 支持 ID3v2.3、ID3v2.4 和 FLAC 三种格式。

已知问题:

  1. 由于无法判断 Cache 中的文件是否已经完整,因此如果点下载按钮的手速太快就可能会出问题;
+874 -4

0 comment

11 changed files

pr created time in 3 months

push eventswwind/electron-netease-cloud-music

swwind

commit sha 3f7e408cdf5d9775dffbd71547f6ffbfe38c5c47

spelling mistake

view details

swwind

commit sha 55d1eacabd42af6df53c2cf22624dc901f435560

some small changes

view details

push time in 3 months

push eventswwind/electron-netease-cloud-music

swwind

commit sha d8145bd5743d435b9d668ff7eaea772608a1e26f

remove some small changes

view details

swwind

commit sha 2a70410c97a8c92c46c30efc991146189c2bb73e

add documents

view details

swwind

commit sha 1913944b7db96a1d4281834ad8df49d6fd2246bf

fix flac size overflow if picture is too large

view details

swwind

commit sha dfc3138b30b556e2d5133d06fe34ce452f4bc0d1

improve some ui performance

view details

push time in 3 months

create barnchswwind/electron-netease-cloud-music

branch : download-feature

created branch time in 3 months

startedaxetroy/deno_pkger

started time in 3 months

issue commentdenoland/deno

Question: install scripts with external assets

That's a good idea. I appreciate lightweight tools like this.

swwind

comment created time in 3 months

push eventswwind/dotfiles

swwind

commit sha fc07640b2e018fb723dcd1001e92057fdd2342c1

add .pam_environment

view details

push time in 3 months

push eventswwind/dotfiles

swwind

commit sha cb069ffecf7c57aeaf53f50913afba74bd5db94d

modify some configs

view details

push time in 3 months

issue closeddenoland/deno

Question: install scripts with external assets

deno install is excellent for installing scripts, but it seems that it could only install ts (and js?) files through dependencies.

For example, std/http/file_server.ts is a simple file server which needs some html template to generate page, but it could only put all html template files(and even a lot of css files) inside the ts file as a string. Maybe it works, but it is not elegant and graceful enough to manage these strings. And this solution is not suit for images(such as favicon.ico) as they are binary files.

More about this example you can see this: https://github.com/denoland/deno/blob/master/std/http/file_server.ts#L200-L288 (It puts all the html and css inside the ts file as a string which is ugly)

The best solution I found is to clone the whole repo(with html and css files outside of ts file) to disk and use deno install ./index.ts manually to install my scripts locally. This install method is too complex and not fascinating at all; thus I was think of some feature such as deno install https://github.com/name/repo to run the same as git clone ... && deno install -n repo ./repo/xxx.ts?

Looking forward to your reply and thanks in advance.

closed time in 3 months

swwind

issue commentdenoland/deno

Question: install scripts with external assets

Granted, my setup would require an additional build step on your part, but I don't feel like that's unreasonable.

Well, I just want deno to do that stuff for me(I'm lazy). In other words, I do hope some implementation like #5987.

npm install -g with a postinstall hook ~can add~ has added your computer to a crypto-mining farm (in the past)

I see, that's horrible, I used to think they just print some ads for me.

Closed as duplicated to #5987.

swwind

comment created time in 3 months

more