|
219 | 219 | <body> |
220 | 220 | <script src="//cdn.staticfile.org/mithril/1.1.6/mithril.min.js"></script> |
221 | 221 | <script> |
222 | | - var STATIC_PATH = '<%= webpackConfig.output.publicPath %>/' |
| 222 | + var STATIC_PATH = '<%= webpackConfig.output.publicPath %>export/' |
223 | 223 | var BASE_URL = '/backend/' |
224 | 224 | var IMG_URL = 'https://coding.net' |
225 | 225 | var REDIRECT_URL = 'https://studio.dev.tencent.com' |
|
300 | 300 | },[ |
301 | 301 | m('span', '为了优化 Cloud Studio 运行的基础设施,给用户提供体验更好、更稳定的产品服务, Cloud Studio 现已在'), |
302 | 302 | m('a', { href: 'https://dev.tencent.com/'}, '腾讯云开发者平台'), |
303 | | - m('span', '中全面升级,用户可长期免费使用。升级后,此版本后续不再做功能升级及维护。为避免影响您的后续使用,建议您将该版本数据导出,并迁移至新版'), |
304 | | - m('a', { href: 'https://studio.dev.tencent.com/intro' }, ' Cloud Studio'), |
305 | | - m('span', ',迁移教程可参考'), |
306 | | - m('a', { href: 'https://dev.tencent.com/help/cloud-studio/how-to-migrate-cs' }, '这里'), |
307 | | - m('span', '。'), |
308 | | - m('br'), |
309 | | - m('br'), |
310 | | - m('span', '如您已在 Cloud Studio 付费购买小主机,我们将在 2018 年 11 月 15 日前将已使用的金额返还至您的腾讯云账户中:'), |
311 | | - m('br'), |
312 | | - m('br'), |
313 | | - m('strong', [ |
314 | | - m('span', '已支付现金部分,全额退还到您的腾讯云账户中,您可操作提现;'), |
315 | | - m('br'), |
316 | | - m('span', '已使用的代金券部分,返还等额通用代金券,发放于您的腾讯云账户中。') |
317 | | - ]), |
| 303 | + m('span', '中全面升级,用户可长期免费使用,您可以前往'), |
| 304 | + m('a', { href: 'https://studio.dev.tencent.com/intro' }, ' 腾讯云开发者平台 Cloud Studio'), |
318 | 305 | m('br'), |
319 | 306 | m('br'), |
320 | 307 | m('span', '如给您造成了不便,敬请谅解。我们将在新的平台,给您提供更优质的服务。感谢您的理解和支持。') |
321 | 308 | ]), |
322 | 309 | m('a', { |
323 | | - href: '?/list', |
| 310 | + href: 'https://studio.dev.tencent.com/intro', |
324 | 311 | class: 'button start-btn' |
325 | | - }, '开始导出') |
| 312 | + }, '前往体验') |
326 | 313 | ]), |
327 | 314 | m(Footer) |
328 | 315 | ] |
|
540 | 527 | } |
541 | 528 | } |
542 | 529 |
|
543 | | - try{ |
544 | | - ajax(function(xhr) { |
545 | | - var result = JSON.parse(xhr.responseText) |
546 | | - if (result.contents && result.contents.length) { |
547 | | - var lists = result.contents |
548 | | - |
549 | | - lists.map(function(item) { |
550 | | - var project = item.project |
551 | | - var iconUrl = project.iconUrl |
552 | | - |
553 | | - wsList.push({ |
554 | | - spaceKey: item.spaceKey, |
555 | | - name: item.owner.globalKey + '/' + project.name, |
556 | | - time: formatDate(item.lastModifiedDate), |
557 | | - checked: true, |
558 | | - img: iconUrl.includes('http') ? iconUrl : IMG_URL + iconUrl, |
559 | | - ownerName: item.owner.globalKey |
560 | | - }) |
561 | | - }) |
562 | | - |
563 | | - m.route.prefix('?') |
564 | | - m.route(document.body, '/home', { |
565 | | - '/list': List, |
566 | | - '/home': Home, |
567 | | - }) |
568 | | - } else { |
569 | | - location.href = REDIRECT_URL |
570 | | - } |
571 | | - }, BASE_URL + 'workspaces?page=0&size=5&sort=lastModifiedDate,desc') |
572 | | - } catch (e) { |
573 | | - location.href = REDIRECT_URL |
574 | | - } |
| 530 | + m.route.prefix('?') |
| 531 | + m.route(document.body, '/home', { |
| 532 | + '/list': List, |
| 533 | + '/home': Home, |
| 534 | + }) |
| 535 | + |
| 536 | + // try{ |
| 537 | + // ajax(function(xhr) { |
| 538 | + // var result = JSON.parse(xhr.responseText) |
| 539 | + // if (result.contents && result.contents.length) { |
| 540 | + // var lists = result.contents |
| 541 | + |
| 542 | + // lists.map(function(item) { |
| 543 | + // var project = item.project |
| 544 | + // var iconUrl = project.iconUrl |
| 545 | + |
| 546 | + // wsList.push({ |
| 547 | + // spaceKey: item.spaceKey, |
| 548 | + // name: item.owner.globalKey + '/' + project.name, |
| 549 | + // time: formatDate(item.lastModifiedDate), |
| 550 | + // checked: true, |
| 551 | + // img: iconUrl.includes('http') ? iconUrl : IMG_URL + iconUrl, |
| 552 | + // ownerName: item.owner.globalKey |
| 553 | + // }) |
| 554 | + // }) |
| 555 | + |
| 556 | + // m.route.prefix('?') |
| 557 | + // m.route(document.body, '/home', { |
| 558 | + // '/list': List, |
| 559 | + // '/home': Home, |
| 560 | + // }) |
| 561 | + // } else { |
| 562 | + // location.href = REDIRECT_URL |
| 563 | + // } |
| 564 | + // }, BASE_URL + 'workspaces?page=0&size=5&sort=lastModifiedDate,desc') |
| 565 | + // } catch (e) { |
| 566 | + // location.href = REDIRECT_URL |
| 567 | + // } |
575 | 568 | </script> |
576 | 569 | </body> |
577 | 570 | </html> |
0 commit comments