/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
compiled
/
@next
/
font
/
dist
/
google
/
/opt/canhelp/node_modules/next/dist/compiled/@next/font/dist/google
mkdir
upload
Name
Size
Mode
Actions
fetch-css-from-google-fonts.d.ts
482
0644
edit
dl
rm
fetch-css-from-google-fonts.js
1347
0644
edit
dl
rm
fetch-font-file.d.ts
226
0644
edit
dl
rm
fetch-font-file.js
957
0644
edit
dl
rm
fetch-resource.d.ts
293
0644
edit
dl
rm
fetch-resource.js
1994
0644
edit
dl
rm
find-font-files-in-css.d.ts
413
0644
edit
dl
rm
find-font-files-in-css.js
1528
0644
edit
dl
rm
font-data.json
449613
0644
edit
dl
rm
get-fallback-font-override-metrics.d.ts
518
0644
edit
dl
rm
get-fallback-font-override-metrics.js
2484
0644
edit
dl
rm
get-font-axes.d.ts
314
0644
edit
dl
rm
get-font-axes.js
3105
0644
edit
dl
rm
get-google-fonts-url.d.ts
290
0644
edit
dl
rm
get-google-fonts-url.js
2248
0644
edit
dl
rm
get-proxy-agent.d.ts
180
0644
edit
dl
rm
get-proxy-agent.js
914
0644
edit
dl
rm
google-fonts-metadata.d.ts
365
0644
edit
dl
rm
google-fonts-metadata.js
381
0644
edit
dl
rm
index.d.ts
827231
0644
edit
dl
rm
index.js
77
0644
edit
dl
rm
loader.d.ts
138
0644
edit
dl
rm
loader.js
8547
0644
edit
dl
rm
retry.d.ts
155
0644
edit
dl
rm
retry.js
674
0644
edit
dl
rm
sort-fonts-variant-values.d.ts
231
0644
edit
dl
rm
sort-fonts-variant-values.js
1148
0644
edit
dl
rm
validate-google-font-function-call.d.ts
504
0644
edit
dl
rm
validate-google-font-function-call.js
5074
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/compiled/@next/font/dist/google/sort-fonts-variant-values.js
(1148B)
"use strict"; /** * Callback function for sorting font variant values. * Used as a parameter in `Array.prototype.sort` function to ensure correct sorting. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.sortFontsVariantValues = sortFontsVariantValues; function sortFontsVariantValues(valA, valB) { // If both values contain commas, it indicates they are in "ital,wght" format if (valA.includes(',') && valB.includes(',')) { // Split the values into prefix and suffix const [aPrefix, aSuffix] = valA.split(',', 2); const [bPrefix, bSuffix] = valB.split(',', 2); // Compare the prefixes (ital values) if (aPrefix === bPrefix) { // If prefixes are equal, then compare the suffixes (wght values) return parseInt(aSuffix) - parseInt(bSuffix); } else { // If prefixes are different, then compare the prefixes directly return parseInt(aPrefix) - parseInt(bPrefix); } } // If values are not in "ital,wght" format, then directly compare them as integers return parseInt(valA) - parseInt(valB); }
Save
cmd:
run