aleen42
Repos
216
Followers
354
Following
116

:notebook: A simple personal wiki of my current knowledge

C
326
48

:eight_spoked_asterisk: A geometrical compiler project written in JavaScript for compiling and making complicated geometries.

13
0

:octocat: An octocat designed as in the Ming Dynasty

55
2

:flower_playing_cards: Standard and acceptable badges list

331
149

:evergreen_tree: A gitbook plugin for generating tree view for ech page

36
14

:black_nib: A gitbook-plugin for adding footer

22
6

Events

issue comment
[Bug]: functions defined inside a switch case block will be trasformed uncorrectly

@nicolo-ribaudo In such a case, why not keeping it and do not compile it with a variable to hold such a function?

Created at 2 weeks ago
opened issue
[Bug]: functions defined inside a switch case block will be trasformed uncorrectly

💻

  • [X] Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

switch ('what') {
default:
    console.log(a())
    function a() { return 1; }
}

Configuration file name

No response

Configuration

{
    "loose": true, 
    "forceAllTransforms": true,
    "exclude": ['@babel/transform-function-name']
}

Current and expected behavior

Current output:

"use strict";

switch ('what') {
default:
    console.log(a());

    var a = function a() {
      return 1;
    };

}

We have some problems inside IE8 according to https://github.com/babel/babel/issues/1087#issuecomment-373375175, so we excluded @babel/transform-function-name, and we got output which results in exceptions:

"use strict";

switch ('what') {
default:
    console.log(a());

    var a = function () {
      return 1;
    };

}

Expected output:

switch ('what') {
default:
    console.log(a());

    function a() {
      return 1;
    };

}

Environment

  • @babel/core: 7.18.13
  • @babel/preset-env: 7.18.10

Possible solution

No response

Additional context

No response

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

git alias for stastistics

Created at 2 weeks ago

refactor: import eslint

Created at 3 weeks ago

refactor: import eslint

Created at 3 weeks ago
closed issue
slight differences in text-font to shields.io

I just found that there are slight differences in the text-font of this badges and the ones comming directly from shields.io(at least when using a icon from simpleicons.org and not sending svg-data), see here:

from here shields.io badge

this can look a little off when mixing badges: from herePyPI - Status

and could be improved: shields.io badgePyPI - Status

This is a really miner issue, but I wanted to dokument it and maybe start a disscussion on it

Created at 4 weeks ago
issue comment
slight differences in text-font to shields.io

relased 1.2.1

Created at 4 weeks ago
create tag
aleen42 create tag 1.2.1
Created at 4 weeks ago

fix: support node-getopt under Node 16.x

perf: support --fontSize to specify the font size #15

release(badges): bump version to 1.2.1

Created at 4 weeks ago
pull request opened
fix invalid main filed after Node@16.x

also add a test script

Created at 4 weeks ago

fix invalid main filed after Node@16.x

also add a test script

Created at 4 weeks ago

fix invalid main filed after Node@16.x

also add a test script

Created at 4 weeks ago
Created at 4 weeks ago
Created at 4 weeks ago
issue comment
slight differences in text-font to shields.io

Let me consider whether the repo should support different font size badges in the client tool, and accept 12px as a standard in the README. Thanks for your feedback.

Created at 1 month ago
reopened issue
slight differences in text-font to shields.io

I just found that there are slight differences in the text-font of this badges and the ones comming directly from shields.io(at least when using a icon from simpleicons.org and not sending svg-data), see here:

from here shields.io badge

this can look a little off when mixing badges: from herePyPI - Status

and could be improved: shields.io badgePyPI - Status

This is a really miner issue, but I wanted to dokument it and maybe start a disscussion on it

Created at 1 month ago
closed issue
slight differences in text-font to shields.io

I just found that there are slight differences in the text-font of this badges and the ones comming directly from shields.io(at least when using a icon from simpleicons.org and not sending svg-data), see here:

from here shields.io badge

this can look a little off when mixing badges: from herePyPI - Status

and could be improved: shields.io badgePyPI - Status

This is a really miner issue, but I wanted to dokument it and maybe start a disscussion on it

Created at 1 month ago
issue comment
slight differences in text-font to shields.io

If you check the source of badges and sheilds.io, you will find that the implementation of shields.io is so wired that it scale it up to 110 and scale down to 0.1 again

<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision"
   font-size="110">
    <image x="5" y="3" width="14" height="14" xlink:href="data:image/svg+xml;base64,xxx" />
    <text aria-hidden="true" x="465" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="370">GitHub</text>
    <text x="465" y="140" transform="scale(.1)" fill="#fff" textLength="370">GitHub</text>
</g>

And badges has used 12px as its font size:

<g xmlns="http://www.w3.org/2000/svg" fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="12">
    <image x="5" y="3" width="14" height="14" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="data:image/svg+xml;base64,xxx"/>
    <text x="49.5" y="14.6" fill="#010101" fill-opacity=".3">GitHub</text>
    <text x="49.5" y="14">GitHub</text>
</g>

And I prefer to use 12px because it is more ergonomic in most devices.

Created at 1 month ago

chore: update resume

Created at 1 month ago

Deploying aleen42/PersonalWiki to gh-pages from ceaa7f25a59e8e7d6a8e5c7eb41554432f02b86c

Created at 1 month ago

Deploying aleen42/PersonalWiki to gh-pages from 365aa04d795fe6a0415049afcb2bf4e247afa449

Created at 1 month ago

doc(qa): how does javascript emulate private members

Created at 1 month ago

Deploying aleen42/PersonalWiki to gh-pages from 7ae31a51d09a00b740d38d7fd02712692cccbfd1

Created at 1 month ago