@shijiu/jsview 2.0.999 → 2.0.1002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  const TargetRevision = {
6
- "CoreRevision": 1021328,
7
- "CoreRevisionAndBranch": "1021328",
6
+ "CoreRevision": 1021330,
7
+ "CoreRevisionAndBranch": "1021330",
8
8
  "JseRevision": "1.0.881",
9
9
  "JseUrl":
10
10
  "http://cdn.release.qcast.cn/forge_js/master/JsViewES6_js2c_r881.jsv.bf42e49e.js"
@@ -1,5 +1,5 @@
1
- import AppData from '/src/appConfig/app.config'
2
- import JsViewVendorConfig from "/src/appConfig/jsview.config"
1
+ import AppData from '/src/appConfig/app.config.mjs'
2
+ import JsViewVendorConfig from "/src/appConfig/jsview.config.mjs"
3
3
 
4
4
  async function main() {
5
5
  let JsViewLoader = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shijiu/jsview",
3
- "version": "2.0.999",
3
+ "version": "2.0.1002",
4
4
  "bin": {
5
5
  "jsview-post-build": "./tools/jsview-post-build.js",
6
6
  "jsview-post-install": "./tools/jsview-post-install.js"
@@ -37,13 +37,13 @@ function main(argv)
37
37
  }
38
38
 
39
39
  // Stage 5
40
- if (options.stages.includes(options.stagePixels)) {
41
- upgradeStagePixel(options);
40
+ if (options.stages.includes(options.stageAnimation)) {
41
+ upgradeStageAnimation(options);
42
42
  }
43
43
 
44
44
  // Stage 6
45
- if (options.stages.includes(options.stageAnimation)) {
46
- upgradeStageAnimation(options);
45
+ if (options.stages.includes(options.stagePixels)) {
46
+ upgradeStagePixel(options);
47
47
  }
48
48
 
49
49
  // Stage 7
@@ -76,8 +76,8 @@ function getOptions(argv)
76
76
  stageImportPostfix: '2',
77
77
  stageCommonJS: '3',
78
78
  stageHashHistory: '4',
79
- stagePixels: '5',
80
- stageAnimation: '6',
79
+ stageAnimation: '5',
80
+ stagePixels: '6',
81
81
  stageAudiotrack: '7',
82
82
  stageAppConfig: '8',
83
83
  stageMainEntry: '9',
@@ -126,11 +126,11 @@ function upgradeStageAlias(options)
126
126
  }
127
127
 
128
128
  let filePath = getImportFilePath(content);
129
- if (!filePath || filePath.startsWith('@') == false) {
129
+ if (!filePath || filePath.startsWith('@/') == false) {
130
130
  return content;
131
131
  }
132
132
 
133
- let fixedFilePath = filePath.replace(/^@/, '/src');
133
+ let fixedFilePath = filePath.replace(/^@\//, '/src/');
134
134
  const fixedContent = content.replace(filePath, fixedFilePath);
135
135
 
136
136
  return fixedContent;
@@ -159,7 +159,7 @@ function upgradeStageImportPostfix(options)
159
159
  let fixedFilePath = null;
160
160
  if (filePath.startsWith('/')) {
161
161
  fixedFilePath = path.resolve(options.projectDir, filePath.replace('/', ''));
162
- } else if (filePath.startsWith('@')) {
162
+ } else if (filePath.startsWith('@/')) {
163
163
  fixedFilePath = path.resolve(options.projectDir, 'src', filePath.replace('@/', ''));
164
164
  } else {
165
165
  fixedFilePath = path.resolve(sourceDir, filePath);
@@ -227,6 +227,17 @@ function upgradeStageHashHistory(options)
227
227
  return;
228
228
  }
229
229
 
230
+ function upgradeStageAnimation(options)
231
+ {
232
+ const msgPrefix = 'Stage ' + options.stageAnimation;
233
+ console.info(msgPrefix + ': Upgrading animation...');
234
+
235
+ const ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
236
+ ':onAnimationEnd', '@animationend');
237
+
238
+ return ret;
239
+ }
240
+
230
241
  function upgradeStagePixel(options) {
231
242
  const msgPrefix = 'Stage ' + options.stagePixels;
232
243
  console.info(msgPrefix + ': Upgrading pixels...');
@@ -277,17 +288,6 @@ function upgradeStagePixel(options) {
277
288
  return;
278
289
  }
279
290
 
280
- function upgradeStageAnimation(options)
281
- {
282
- const msgPrefix = 'Stage ' + options.stageAnimation;
283
- console.info(msgPrefix + ': Upgrading animation...');
284
-
285
- const ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
286
- ':onAnimationEnd', '@animationend');
287
-
288
- return ret;
289
- }
290
-
291
291
  function upgradeStageAudiotrack(options)
292
292
  {
293
293
  const msgPrefix = 'Stage ' + options.stageAudiotrack;
@@ -530,12 +530,12 @@ const requiredUsages = {
530
530
  4. Fix hash history. * createJsvHashHistory
531
531
  => jsvCreateHashHistory
532
532
 
533
- 5. Fix pixels. * [0-9]px
534
- => [0-9], delete (+ \`px\`),(+ 'px'),(+ "px")
535
-
536
- 6. Fix animation. * :onAnimationEnd
533
+ 5. Fix animation. * :onAnimationEnd
537
534
  => @animationend
538
535
 
536
+ 6. Fix pixels. * [0-9]px
537
+ => [0-9], delete (+ \`px\`),(+ 'px'),(+ "px")
538
+
539
539
  7. Fix audiotrack. * <audiotrack
540
540
  => <jsv-audiotrack
541
541