Skip to content

Commit 879d34d

Browse files
committed
Merge branch 'main' into v14/bugfix/add-getter-to-remove-lit-warning
2 parents 2d640af + 1e85b22 commit 879d34d

File tree

10 files changed

+49
-37
lines changed

10 files changed

+49
-37
lines changed

devops/icons/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFileSync, writeFile, mkdir } from 'fs';
1+
import { readFileSync, writeFile, mkdir, rmSync } from 'fs';
22
import * as globModule from 'tiny-glob';
33
import * as pathModule from 'path';
44

@@ -15,6 +15,9 @@ const lucideSvgDirectory = 'node_modules/lucide-static/icons';
1515
const simpleIconsSvgDirectory = 'node_modules/simple-icons/icons';
1616

1717
const run = async () => {
18+
// Empty output directory:
19+
rmSync(iconsOutputDirectory, { recursive: true });
20+
1821
var icons = await collectDictionaryIcons();
1922
icons = await collectDiskIcons(icons);
2023
writeIconsToDisk(icons);

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"rollup-plugin-esbuild": "^6.1.1",
258258
"rollup-plugin-import-css": "^3.5.0",
259259
"rollup-plugin-web-worker-loader": "^1.6.1",
260-
"simple-icons": "^12.0.0",
260+
"simple-icons": "^13.0.0",
261261
"storybook": "^7.6.17",
262262
"tiny-glob": "^0.2.9",
263263
"tsc-alias": "^1.8.8",

src/packages/core/icon-registry/icon-dictionary.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,10 +2451,6 @@
24512451
}
24522452
],
24532453
"simpleIcons": [
2454-
{
2455-
"name": "icon-azure",
2456-
"file": "microsoftazure.svg"
2457-
},
24582454
{
24592455
"name": "icon-facebook",
24602456
"file": "facebook.svg"
@@ -2483,10 +2479,6 @@
24832479
"name": "icon-mastodon",
24842480
"file": "mastodon.svg"
24852481
},
2486-
{
2487-
"name": "icon-microsoft",
2488-
"file": "microsoft.svg"
2489-
},
24902482
{
24912483
"name": "icon-twitter-x",
24922484
"file": "x.svg"

src/packages/core/icon-registry/icons.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,10 +2099,6 @@ name: "icon-database",
20992099

21002100
path: () => import("./icons/icon-database.js"),
21012101
},{
2102-
name: "icon-azure",
2103-
2104-
path: () => import("./icons/icon-azure.js"),
2105-
},{
21062102
name: "icon-facebook",
21072103

21082104
path: () => import("./icons/icon-facebook.js"),
@@ -2131,10 +2127,6 @@ name: "icon-mastodon",
21312127

21322128
path: () => import("./icons/icon-mastodon.js"),
21332129
},{
2134-
name: "icon-microsoft",
2135-
2136-
path: () => import("./icons/icon-microsoft.js"),
2137-
},{
21382130
name: "icon-twitter-x",
21392131

21402132
path: () => import("./icons/icon-twitter-x.js"),
@@ -2155,6 +2147,10 @@ name: "icon-auction-hammer",
21552147
legacy: true,
21562148
path: () => import("./icons/icon-auction-hammer.js"),
21572149
},{
2150+
name: "icon-azure",
2151+
legacy: true,
2152+
path: () => import("./icons/icon-azure.js"),
2153+
},{
21582154
name: "icon-baby-stroller",
21592155
legacy: true,
21602156
path: () => import("./icons/icon-baby-stroller.js"),
@@ -2351,6 +2347,10 @@ name: "icon-male-symbol",
23512347
legacy: true,
23522348
path: () => import("./icons/icon-male-symbol.js"),
23532349
},{
2350+
name: "icon-microsoft",
2351+
legacy: true,
2352+
path: () => import("./icons/icon-microsoft.js"),
2353+
},{
23542354
name: "icon-molecular-network",
23552355
legacy: true,
23562356
path: () => import("./icons/icon-molecular-network.js"),
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
export default `<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Microsoft Azure</title><path fill="currentColor" d="M22.379 23.343a1.62 1.62 0 0 0 1.536-2.14v.002L17.35 1.76A1.62 1.62 0 0 0 15.816.657H8.184A1.62 1.62 0 0 0 6.65 1.76L.086 21.204a1.62 1.62 0 0 0 1.536 2.139h4.741a1.62 1.62 0 0 0 1.535-1.103l.977-2.892 4.947 3.675c.28.208.618.32.966.32m-3.084-12.531 3.624 10.739a.54.54 0 0 1-.51.713v-.001h-.03a.54.54 0 0 1-.322-.106l-9.287-6.9h4.853m6.313 7.006c.116-.326.13-.694.007-1.058L9.79 1.76a1.722 1.722 0 0 0-.007-.02h6.034a.54.54 0 0 1 .512.366l6.562 19.445a.54.54 0 0 1-.338.684"/></svg>`;
1+
export default `<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2+
<title>Microsoft Azure</title>
3+
<path fill="currentColor"
4+
d="M22.379 23.343a1.62 1.62 0 0 0 1.536-2.14v.002L17.35 1.76A1.62 1.62 0 0 0 15.816.657H8.184A1.62 1.62 0 0 0 6.65 1.76L.086 21.204a1.62 1.62 0 0 0 1.536 2.139h4.741a1.62 1.62 0 0 0 1.535-1.103l.977-2.892 4.947 3.675c.28.208.618.32.966.32m-3.084-12.531 3.624 10.739a.54.54 0 0 1-.51.713v-.001h-.03a.54.54 0 0 1-.322-.106l-9.287-6.9h4.853m6.313 7.006c.116-.326.13-.694.007-1.058L9.79 1.76a1.722 1.722 0 0 0-.007-.02h6.034a.54.54 0 0 1 .512.366l6.562 19.445a.54.54 0 0 1-.338.684" />
5+
</svg>
6+
`;
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
export default `<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Microsoft</title><path fill="currentColor" d="M0 0v11.408h11.408V0zm12.594 0v11.408H24V0zM0 12.594V24h11.408V12.594zm12.594 0V24H24V12.594z"/></svg>`;
1+
export default `<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2+
<title>Microsoft</title>
3+
<path fill="currentColor"
4+
d="M0 0v11.408h11.408V0zm12.594 0v11.408H24V0zM0 12.594V24h11.408V12.594zm12.594 0V24H24V12.594z" />
5+
</svg>
6+
`;
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading

web-test-runner.config.mjs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if (!['dev', 'prod'].includes(mode)) {
1212
throw new Error(`MODE must be "dev" or "prod", was "${mode}"`);
1313
}
1414

15+
const silencedLogs = ['Lit is in dev mode.', 'Multiple versions of Lit loaded.'];
16+
1517
/** @type {import('@web/dev-server').DevServerConfig} */
1618
export default {
1719
rootDir: '.',
@@ -38,6 +40,14 @@ export default {
3840
}),
3941
esbuildPlugin({ ts: true, tsconfig: './tsconfig.json', target: 'auto', json: true }),
4042
],
43+
filterBrowserLogs(log) {
44+
for (const arg of log.args) {
45+
if (typeof arg === 'string' && silencedLogs.some((l) => arg.includes(l))) {
46+
return false;
47+
}
48+
}
49+
return true;
50+
},
4151
testRunnerHtml: (testFramework, devMode) =>
4252
`<html lang="en-us">
4353
<head>
@@ -59,19 +69,6 @@ export default {
5969
</head>
6070
<body>
6171
<script type="module" src="${testFramework}"></script>
62-
<script type="module">
63-
/* Hack to disable Lit dev mode warnings */
64-
const systemWarn = window.console.warn;
65-
window.console.warn = (...args) => {
66-
if (args[0].indexOf('Lit is in dev mode.') === 0) {
67-
return;
68-
}
69-
if (args[0].indexOf('Multiple versions of Lit loaded.') === 0) {
70-
return;
71-
}
72-
systemWarn(...args);
73-
};
74-
</script>
7572
<script type="module">
7673
import 'element-internals-polyfill';
7774
import '@umbraco-ui/uui';

0 commit comments

Comments
 (0)