This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git


The following commit(s) were added to refs/heads/next by this push:
     new e8d1722  update env for next
e8d1722 is described below

commit e8d1722c41a70fa249c07176e8ebb8c7285184f8
Author: pissang <bm2736...@gmail.com>
AuthorDate: Wed Aug 5 13:00:35 2020 +0800

    update env for next
---
 config/env.asf.js              |  4 ++--
 config/env.dev.js              |  7 ++++---
 config/env.echartsjs.js        |  4 ++--
 config/env.localsite.js        |  4 ++--
 src/components/LiveExample.vue | 24 ++++++++++++------------
 src/style/mixin.scss           |  2 ++
 6 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/config/env.asf.js b/config/env.asf.js
index a324c7d..7f5330f 100644
--- a/config/env.asf.js
+++ b/config/env.asf.js
@@ -1,8 +1,8 @@
 const path = require('path');
 
 module.exports = {
-    galleryViewPath: 'https://echarts.apache.org/examples/zh/view.html?c=',
-    galleryEditorPath: 'https://echarts.apache.org/examples/zh/editor.html?c=',
+    galleryViewPath: 'https://echarts.apache.org/next/examples/view.html?c=',
+    galleryEditorPath: 
'https://echarts.apache.org/next/examples/editor.html?c=',
     websitePath: 'https://echarts.apache.org',
 
     imagePath: 'asset/img/',
diff --git a/config/env.dev.js b/config/env.dev.js
index 8595648..ccab99b 100644
--- a/config/env.dev.js
+++ b/config/env.dev.js
@@ -1,9 +1,10 @@
 const path = require('path');
 
 module.exports = {
-    galleryViewPath: 
'http://localhost/incubator-echarts-website/examples/en/view.html?c=',
-    galleryEditorPath: 
'http://localhost/incubator-echarts-website/examples/en/editor.html?c=',
-    websitePath: './',
+    galleryViewPath: 
'http://localhost/incubator-echarts-website/next/examples/view.html?c=',
+    galleryEditorPath: 
'http://localhost/incubator-echarts-website/next/examples/editor.html?c=',
+    websitePath: 'http://localhost/incubator-echarts-website',
+
 
     imagePath: 'asset/img/',
     gl: {
diff --git a/config/env.echartsjs.js b/config/env.echartsjs.js
index 0da1425..a2c9f6c 100644
--- a/config/env.echartsjs.js
+++ b/config/env.echartsjs.js
@@ -1,8 +1,8 @@
 const path = require('path');
 
 module.exports = {
-    galleryViewPath: 'https://www.echartsjs.com/examples/en/view.html?c=',
-    galleryEditorPath: 'https://www.echartsjs.com/examples/en/editor.html?c=',
+    galleryViewPath: 'https://echarts.apache.org/next/examples/view.html?c=',
+    galleryEditorPath: 
'https://echarts.apache.org/next/examples/editor.html?c=',
     websitePath: 'https://www.echartsjs.com',
 
     imagePath: 'asset/img/',
diff --git a/config/env.localsite.js b/config/env.localsite.js
index fd043bd..27f375e 100644
--- a/config/env.localsite.js
+++ b/config/env.localsite.js
@@ -1,8 +1,8 @@
 const path = require('path');
 
 module.exports = {
-    galleryViewPath: 'https://www.echartsjs.com/examples/zh/view.html?c=',
-    galleryEditorPath: 'https://www.echartsjs.com/examples/zh/editor.html?c=',
+    galleryViewPath: 
'http://localhost/incubator-echarts-website/next/examples/view.html?c=',
+    galleryEditorPath: 
'http://localhost/incubator-echarts-website/next/examples/editor.html?c=',
     websitePath: './',
 
     imagePath: 'asset/img/',
diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue
index 53ff1c3..f213f08 100644
--- a/src/components/LiveExample.vue
+++ b/src/components/LiveExample.vue
@@ -23,17 +23,17 @@
                 :label="shared.locale === 'en' ? item['title-en'] : item.title"
             ></el-option>
         </el-select>
-        <el-button v-if="shared.currentExampleOption" 
-            type="primary" 
-            icon="el-icon-refresh" 
-            size="mini" 
+        <el-button v-if="shared.currentExampleOption"
+            type="primary"
+            icon="el-icon-refresh"
+            size="mini"
             :title="$t('example.refresh')"
             @click="refreshForce"></el-button>
-        <el-button 
+        <el-button
             style="margin-left: 0"
-            type="primary" 
-            icon="el-icon-s-operation" 
-            size="mini" 
+            type="primary"
+            icon="el-icon-s-operation"
+            size="mini"
             :title="$t('example.changeLayout')"
             v-popover:changeLayoutPopover></el-button>
         <el-button size='mini' circle icon="el-icon-close" 
@click="closeExamplePanel"></el-button>
@@ -47,9 +47,9 @@
             <div class="layout-title"><i 
class="el-icon-s-operation"></i>{{$t('example.changeLayout')}}</div>
             <div class="layout-mode">
                 <el-radio-group v-model="shared.optionExampleLayout" 
@change="changeLayout" size="mini">
-                    <el-radio-button 
-                        v-for="layout in optionExampleLayouts" 
-                        :key="layout" 
+                    <el-radio-button
+                        v-for="layout in optionExampleLayouts"
+                        :key="layout"
                         :label="layout">{{$t('example.layout.' + 
layout)}}</el-radio-button>
                 </el-radio-group>
             </div>
@@ -79,7 +79,7 @@ let echartsLoadPromise;
 function fetchECharts() {
     return echartsLoadPromise || (echartsLoadPromise = new Promise(function 
(resolve) {
         const script = document.createElement('script');
-        script.src = 
'https://cdn.jsdelivr.net/npm/echarts@4.8.0/dist/echarts.min.js';
+        script.src = 
'https://cdn.jsdelivr.net/npm/echarts@5.0.0-alpha.1/dist/echarts.min.js';
         script.async = true;
         script.onload = function () {
             resolve();
diff --git a/src/style/mixin.scss b/src/style/mixin.scss
index 4cdd957..fd084ff 100644
--- a/src/style/mixin.scss
+++ b/src/style/mixin.scss
@@ -31,10 +31,12 @@
 
     iframe {
         border: 1px solid #ccc;
+        border-radius: 5px;
         display: block;
         margin-top: 5px;
         max-width: 100%;
     }
+
     img {
         max-width: 100%;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to