mirror of
https://github.com/fmhy/edit.git
synced 2025-08-02 01:02:14 +10:00
Update
- Update Mac & Linux icons. - Fix icon cut-off bug.
This commit is contained in:
parent
84a85582c2
commit
d21d668009
3 changed files with 21 additions and 10 deletions
|
@ -317,33 +317,33 @@ const transformLinks = (text: string): string =>
|
|||
// Platform indicators
|
||||
{
|
||||
name: 'Windows',
|
||||
find: /(?<=\/ [^/]*)\b(,\s*)?Windows,?\s*\b(?=[^/]* \/)/gm,
|
||||
find: /(?<=\/ (?:\/>|[^/])*)(\b(,\s*)?Windows,?\s*\b)(?=(?:\/>|[^/])* \/)/gm,
|
||||
replace:
|
||||
' <img class="i-qlementine-icons:windows-fill-16"> '
|
||||
' <div alt="Windows" class="i-qlementine-icons:windows-fill-16" /> '
|
||||
},
|
||||
{
|
||||
name: 'Mac',
|
||||
find: /(?<=\/ [^/]*)\b(,\s*)?Mac,?\s*\b(?=[^/]* \/)/gm,
|
||||
find: /(?<=\/ (?:\/>|[^/])*)(\b(,\s*)?Mac,?\s*\b)(?=(?:\/>|[^/])* \/)/gm,
|
||||
replace:
|
||||
' <img class="i-qlementine-icons:mac-24"> '
|
||||
' <div alt="Mac" class="i-qlementine-icons:mac-24" /> '
|
||||
},
|
||||
{
|
||||
name: 'Linux',
|
||||
find: /(?<=\/ [^/]*)\b(,\s*)?Linux,?\s*\b(?=[^/]* \/)/gm,
|
||||
find: /(?<=\/ (?:\/>|[^/])*)(\b(,\s*)?Linux,?\s*\b)(?=(?:\/>|[^/])* \/)/gm,
|
||||
replace:
|
||||
' <img class="i-ant-design:linux-outlined"> '
|
||||
' <div alt="Linux" class="i-fluent-mdl2:linux-logo-32" /> '
|
||||
},
|
||||
{
|
||||
name: 'Android',
|
||||
find: /(?<=\/ [^/]*)\b(,\s*)?Android,?\s*\b(?=[^/]* \/)/gm,
|
||||
find: /(?<=\/ (?:\/>|[^/])*)(\b(,\s*)?Android,?\s*\b)(?=(?:\/>|[^/])* \/)/gm,
|
||||
replace:
|
||||
' <img class="i-material-symbols:android"> '
|
||||
' <div alt="Android" class="i-material-symbols:android" /> '
|
||||
},
|
||||
{
|
||||
name: 'iOS',
|
||||
find: /(?<=\/ [^/]*)\b(,\s*)?iOS,?\s*\b(?=[^/]* \/)/gm,
|
||||
find: /(?<=\/ (?:\/>|[^/])*)(\b(,\s*)?iOS,?\s*\b)(?=(?:\/>|[^/])* \/)/gm,
|
||||
replace:
|
||||
' <img class="i-simple-icons:ios"> '
|
||||
' <div alt="iOS" class="i-simple-icons:ios" /> '
|
||||
}
|
||||
])
|
||||
.getText()
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
||||
"@iconify-json/ant-design": "^1.2.5",
|
||||
"@iconify-json/carbon": "^1.2.5",
|
||||
"@iconify-json/fluent-mdl2": "^1.2.1",
|
||||
"@iconify-json/gravity-ui": "^1.2.5",
|
||||
"@iconify-json/heroicons-solid": "^1.2.0",
|
||||
"@iconify-json/lucide": "^1.2.10",
|
||||
|
|
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
|
@ -75,6 +75,9 @@ importers:
|
|||
'@iconify-json/carbon':
|
||||
specifier: ^1.2.5
|
||||
version: 1.2.5
|
||||
'@iconify-json/fluent-mdl2':
|
||||
specifier: ^1.2.1
|
||||
version: 1.2.1
|
||||
'@iconify-json/gravity-ui':
|
||||
specifier: ^1.2.5
|
||||
version: 1.2.5
|
||||
|
@ -1036,6 +1039,9 @@ packages:
|
|||
'@iconify-json/carbon@1.2.5':
|
||||
resolution: {integrity: sha512-aI3TEzOrUDGhs74zIT3ym/ZQBUEziyu8JifntX2Hb4siVzsP5sQ/QEfVdmcCUj37kQUYT3TYBSeAw2vTfCJx9w==}
|
||||
|
||||
'@iconify-json/fluent-mdl2@1.2.1':
|
||||
resolution: {integrity: sha512-zFgd1V9r0a+mqA46Z4mOoSf6PbQbhYnY9Uhtpjl3xvw03doNolh4apMtsZoLlC/Y7wO2uj306MgziaqwWdNMwg==}
|
||||
|
||||
'@iconify-json/gravity-ui@1.2.5':
|
||||
resolution: {integrity: sha512-7uf4xG2ijmcte4AqPpzNTqnEBqxvHBKW/gI0VTZeP0nLtZSvoCybNt5QsJ7f/xyrIQDgCJ4usEmRaX7G86NueA==}
|
||||
|
||||
|
@ -4825,6 +4831,10 @@ snapshots:
|
|||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
||||
'@iconify-json/fluent-mdl2@1.2.1':
|
||||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
||||
'@iconify-json/gravity-ui@1.2.5':
|
||||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue