Merge branch 'main' into next

# Conflicts:
#	netlify.toml
This commit is contained in:
fisker Cheung committed 2022-12-01 15:22:35 +08:00
commit 817460b93a
14 files changed
+376 -15

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
# Configuration for probot-no-response - https://github.com/probot/no-response
daysUntilClose: 14
responseRequiredLabel: "status:awaiting response"
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
+2 -2
View File
@@ -2,8 +2,8 @@ name: Bundler_Friendly
on:
schedule:
# “At 00:00 on Sunday.” https://crontab.guru/#0%C2%A00%C2%A0*%C2%A0*%C2%A00
- cron: "0 0 * * 0"
# “At 00:00 on Sunday.” https://crontab.guru/#0_0_*_*_SUN
- cron: "0 0 * * SUN"
pull_request:
paths:
- "scripts/tools/bundle-test/**"
+2 -2
View File
@@ -2,8 +2,8 @@ name: Dev_Package_Test
on:
schedule:
# “At 00:00 on Sunday.” https://crontab.guru/#0%C2%A00%C2%A0*%C2%A0*%C2%A00
- cron: "0 0 * * 0"
# “At 00:00 on Sunday.” https://crontab.guru/#0_0_*_*_SUN
- cron: "0 0 * * SUN"
pull_request:
paths:
- "package.json"
+1
View File
@@ -2,6 +2,7 @@ name: "Lock"
on:
schedule:
# “At 00:00.” https://crontab.guru/#0_0_*_*_*
- cron: "0 0 * * *"
permissions:
+30
View File
@@ -0,0 +1,30 @@
name: No Response
# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
on:
issue_comment:
types:
- created
schedule:
# “At minute 0.” https://crontab.guru/#0_*_*_*_*
- cron: "0 * * * *"
permissions:
issues: write
jobs:
no-response:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/no-response@v0.5.0
with:
token: ${{ github.token }}
daysUntilClose: 14
responseRequiredLabel: "status:awaiting response"
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
+35
View File
@@ -0,0 +1,35 @@
#### Fix SCSS map in arguments (#9184 by @agamkrbit)
<!-- prettier-ignore -->
```scss
// Input
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
),
$display-breakpoints
);
// Prettier stable
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm
")-1})",
),
$display-breakpoints
);
// Prettier main
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
),
$display-breakpoints
);
```
+1 -1
View File
@@ -3,7 +3,7 @@
[build.environment]
NODE_VERSION = "lts/*"
YARN_VERSION = "1.22.18"
YARN_VERSION = "1.22.19"
[[headers]]
for = "/worker.js"
+17
View File
@@ -118,6 +118,23 @@ async function parseValueNode(valueNode, options) {
parenGroupStack.pop();
parenGroup = parenGroupStack.at(-1);
} else if (node.type === "comma") {
if (commaGroup.groups.length > 1) {
for (const group of commaGroup.groups) {
// if css interpolation
if (
group.value &&
typeof group.value === "string" &&
group.value.includes("#{")
) {
commaGroup.groups = [
stringifyNode({
groups: commaGroup.groups,
}).trim(),
];
break;
}
}
}
parenGroup.groups.push(commaGroup);
commaGroup = {
groups: [],
@@ -4030,6 +4030,55 @@ y;
================================================================================
`;
exports[`multi-comments-2.js - {"semi":false} format 1`] = `
====================================options=====================================
parsers: ["babel", "flow", "typescript"]
printWidth: 80
semi: false
| printWidth
=====================================input======================================
const x = 0;
/* istanbul ignore if */ // debug case currently not triggered
if (true) {
x;
}
=====================================output=====================================
const x = 0
/* istanbul ignore if */ // debug case currently not triggered
if (true) {
x
}
================================================================================
`;
exports[`multi-comments-2.js format 1`] = `
====================================options=====================================
parsers: ["babel", "flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
const x = 0;
/* istanbul ignore if */ // debug case currently not triggered
if (true) {
x;
}
=====================================output=====================================
const x = 0;
/* istanbul ignore if */ // debug case currently not triggered
if (true) {
x;
}
================================================================================
`;
exports[`multi-comments-on-same-line.js - {"semi":false} format 1`] = `
====================================options=====================================
parsers: ["babel", "flow", "typescript"]
@@ -0,0 +1,6 @@
const x = 0;
/* istanbul ignore if */ // debug case currently not triggered
if (true) {
x;
}
@@ -0,0 +1,146 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`functional-argument.scss format 1`] = `
====================================options=====================================
parsers: ["scss"]
printWidth: 80
| printWidth
=====================================input======================================
//simple test
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm") - 1})",
"sm-only": "only screen and (min-width: #{map-get($grid-breakpoints, "sm")}) and (max-width: #{map-get($grid-breakpoints, "md") - 1})",
),
$display-breakpoints
);
//list test
@each
$size
in
$sizes {
.icon
#{$size}
{
border
:
"#{$size + "px"}"
solid
red;
}
}
@each
$size
in
$sizes {
.icon-#{$size}
{
border
:
"#{$size + "px"}"
solid
red;
}
}
//map test
$font-weights
:
("regular": 400
,
"medium": 500,
"bold":
700);
@each
$name,
$boldness
in
$icons {
.text
#{
$name
} {
color: red;
font-weight:
"#{$boldness}"
}
}
$font-weights
:
("regular": 400
,
"medium": 500,
"bold":
700);
@each
$name,
$boldness
in
$icons {
.text-#{
$name
} {
color: red;
font-weight:
"#{$boldness}"
}
}
=====================================output=====================================
//simple test
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm") - 1})",
"sm-only": "only screen and (min-width: #{map-get($grid-breakpoints, "sm")}) and (max-width: #{map-get($grid-breakpoints, "md") - 1})",
),
$display-breakpoints
);
//list test
@each $size in $sizes {
.icon #{$size} {
border: "#{$size + "px"}" solid red;
}
}
@each $size in $sizes {
.icon-#{$size} {
border: "#{$size + "px"}" solid red;
}
}
//map test
$font-weights: (
"regular": 400,
"medium": 500,
"bold": 700,
);
@each $name, $boldness in $icons {
.text #{ $name } {
color: red;
font-weight: "#{$boldness}";
}
}
$font-weights: (
"regular": 400,
"medium": 500,
"bold": 700,
);
@each $name, $boldness in $icons {
.text-#{ $name } {
color: red;
font-weight: "#{$boldness}";
}
}
================================================================================
`;
@@ -0,0 +1,85 @@
//simple test
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm") - 1})",
"sm-only": "only screen and (min-width: #{map-get($grid-breakpoints, "sm")}) and (max-width: #{map-get($grid-breakpoints, "md") - 1})",
),
$display-breakpoints
);
//list test
@each
$size
in
$sizes {
.icon
#{$size}
{
border
:
"#{$size + "px"}"
solid
red;
}
}
@each
$size
in
$sizes {
.icon-#{$size}
{
border
:
"#{$size + "px"}"
solid
red;
}
}
//map test
$font-weights
:
("regular": 400
,
"medium": 500,
"bold":
700);
@each
$name,
$boldness
in
$icons {
.text
#{
$name
} {
color: red;
font-weight:
"#{$boldness}"
}
}
$font-weights
:
("regular": 400
,
"medium": 500,
"bold":
700);
@each
$name,
$boldness
in
$icons {
.text-#{
$name
} {
color: red;
font-weight:
"#{$boldness}"
}
}
@@ -0,0 +1 @@
run_spec(import.meta, ["scss"]);
+1
View File
@@ -48,6 +48,7 @@ const ENABLED_OPTIONS = [
"vueIndentScriptAndStyle",
"embeddedLanguageFormatting",
"bracketSameLine",
"singleAttributePerLine",
];
class Playground extends React.Component {