Skip to content

Commit e1331e5

Browse files
committed
feat(extras): proper support for q/app-vite on SSR quasarframework#12790
1 parent 85ac8d8 commit e1331e5

File tree

29 files changed

+56785
-28329
lines changed

29 files changed

+56785
-28329
lines changed

extras/animate/animate-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
export const generalAnimations = [
2+
module.exports.generalAnimations = [
33
'bounce',
44
'flash',
55
'flip',
@@ -17,7 +17,7 @@ export const generalAnimations = [
1717
'wobble'
1818
]
1919

20-
export const inAnimations = [
20+
module.exports.inAnimations = [
2121
'backInDown',
2222
'backInLeft',
2323
'backInRight',
@@ -62,7 +62,7 @@ export const inAnimations = [
6262
'zoomInUp'
6363
]
6464

65-
export const outAnimations = [
65+
module.exports.outAnimations = [
6666
'backOutDown',
6767
'backOutLeft',
6868
'backOutRight',

extras/animate/animate-list.mjs

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
2+
export const generalAnimations = [
3+
'bounce',
4+
'flash',
5+
'flip',
6+
'headShake',
7+
'heartBeat',
8+
'hinge',
9+
'jello',
10+
'pulse',
11+
'rubberBand',
12+
'shake',
13+
'shakeX',
14+
'shakeY',
15+
'swing',
16+
'tada',
17+
'wobble'
18+
]
19+
20+
export const inAnimations = [
21+
'backInDown',
22+
'backInLeft',
23+
'backInRight',
24+
'backInUp',
25+
'bounceIn',
26+
'bounceInDown',
27+
'bounceInLeft',
28+
'bounceInRight',
29+
'bounceInUp',
30+
'fadeIn',
31+
'fadeInBottomLeft',
32+
'fadeInBottomRight',
33+
'fadeInDown',
34+
'fadeInDownBig',
35+
'fadeInLeft',
36+
'fadeInLeftBig',
37+
'fadeInRight',
38+
'fadeInRightBig',
39+
'fadeInTopLeft',
40+
'fadeInTopRight',
41+
'fadeInUp',
42+
'fadeInUpBig',
43+
'flipInX',
44+
'flipInY',
45+
'jackInTheBox',
46+
'lightSpeedInLeft',
47+
'lightSpeedInRight',
48+
'rollIn',
49+
'rotateIn',
50+
'rotateInDownLeft',
51+
'rotateInDownRight',
52+
'rotateInUpLeft',
53+
'rotateInUpRight',
54+
'slideInDown',
55+
'slideInLeft',
56+
'slideInRight',
57+
'slideInUp',
58+
'zoomIn',
59+
'zoomInDown',
60+
'zoomInLeft',
61+
'zoomInRight',
62+
'zoomInUp'
63+
]
64+
65+
export const outAnimations = [
66+
'backOutDown',
67+
'backOutLeft',
68+
'backOutRight',
69+
'backOutUp',
70+
'bounceOut',
71+
'bounceOutDown',
72+
'bounceOutLeft',
73+
'bounceOutRight',
74+
'bounceOutUp',
75+
'fadeOut',
76+
'fadeOutBottomLeft',
77+
'fadeOutBottomRight',
78+
'fadeOutDown',
79+
'fadeOutDownBig',
80+
'fadeOutLeft',
81+
'fadeOutLeftBig',
82+
'fadeOutRight',
83+
'fadeOutRightBig',
84+
'fadeOutTopLeft',
85+
'fadeOutTopRight',
86+
'fadeOutUp',
87+
'fadeOutUpBig',
88+
'flipOutX',
89+
'flipOutY',
90+
'lightSpeedOutLeft',
91+
'lightSpeedOutRight',
92+
'rollOut',
93+
'rotateOut',
94+
'rotateOutDownLeft',
95+
'rotateOutDownRight',
96+
'rotateOutUpLeft',
97+
'rotateOutUpRight',
98+
'slideOutDown',
99+
'slideOutLeft',
100+
'slideOutRight',
101+
'slideOutUp',
102+
'zoomOut',
103+
'zoomOutDown',
104+
'zoomOutLeft',
105+
'zoomOutRight',
106+
'zoomOutUp'
107+
]

extras/bootstrap-icons/index.js

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

extras/bootstrap-icons/index.mjs

Lines changed: 1670 additions & 0 deletions
Large diffs are not rendered by default.

extras/build/animate.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ else {
6262

6363
copySync(join(pkgFolder, 'LICENSE'), join(dist, 'LICENSE'))
6464

65-
writeFileSync(join(dist, 'animate-list.js'), getList(`export const `), 'utf-8')
66-
writeFileSync(join(dist, 'animate-list.common.js'), getList(`module.exports.`), 'utf-8')
65+
const common = getList(`module.exports.`)
66+
67+
writeFileSync(join(dist, 'animate-list.js'), common, 'utf-8')
68+
writeFileSync(join(dist, 'animate-list.mjs'), getList(`export const `), 'utf-8')
69+
writeFileSync(join(dist, 'animate-list.common.js'), common, 'utf-8')
6770

6871
writeFileSync(join(dist, 'animate-list.d.ts'), getList(`export type `).replace(/\[/g, '').replace(/\]/g, ';').replace(/\ '/g, ` | '`).replace(/,/g, ''), 'utf-8')
6972
writeFileSync(join(dist, 'animate-list.common.d.ts'), getList(`export type `).replace(/\[/g, '').replace(/\]/g, ';').replace(/\ '/g, ` | '`).replace(/,/g, ''), 'utf-8')

extras/build/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ const cpus = require('os').cpus().length
33
const parallel = cpus > 1
44
const maxJobCount = cpus - 1 || 1
55
const run = parallel ? require('child_process').fork : require
6-
const { resolve, join } = require('path')
6+
const { join } = require('path')
77
const { Queue, sleep, retry } = require('./utils')
88

99
const materialFontVersions = {}
1010

1111
async function generate () {
1212
function handleChild (child) {
13-
return new Promise((resolve, reject) => {
13+
return new Promise((resolve) => {
1414
// watch for exit event
15-
child.on('exit', (code, signal) => {
15+
child.on('exit', (_code, _signal) => {
1616
resolve()
1717
})
18-
18+
1919
if (child.stdout) {
2020
child.stdout.on('data', (data) => {
2121
const str = data.toString()
@@ -24,7 +24,7 @@ async function generate () {
2424
}
2525
})
2626
}
27-
27+
2828
if (child.stderr) {
2929
child.stderr.on('data', (data) => {
3030
const str = data.toString()

extras/build/utils/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const Parser = new xmldom.DOMParser()
44
const { resolve, basename } = require('path')
55
const { readFileSync, writeFileSync } = require('fs')
66

7+
const cjsReplaceRE = /export const /g
78
const typeExceptions = [ 'g', 'svg', 'defs', 'style', 'title' ]
89

910
function chunkArray (arr, size = 2) {
@@ -244,7 +245,10 @@ module.exports.writeExports = (iconSetName, versionOrPackageName, distFolder, sv
244245
const banner = getBanner(iconSetName, versionOrPackageName);
245246
const distIndex = `${distFolder}/index`
246247

247-
writeFileSync(`${distIndex}.js`, banner + svgExports.sort().join('\n'), 'utf-8')
248+
const content = banner + svgExports.sort().join('\n')
249+
250+
writeFileSync(`${distIndex}.js`, content.replace(cjsReplaceRE, 'module.exports.'), 'utf-8')
251+
writeFileSync(`${distIndex}.mjs`, content, 'utf-8')
248252
writeFileSync(`${distIndex}.d.ts`, banner + typeExports.sort().join('\n'), 'utf-8')
249253

250254
if (skipped.length > 0) {

0 commit comments

Comments
 (0)