* add ai prompt tour.
This commit is contained in:
@@ -442,7 +442,7 @@ $config->objectTables['privrelation'] = TABLE_PRIVRELATION;
|
||||
$config->objectTables['scene'] = TABLE_SCENE;
|
||||
$config->objectTables['prompt'] = TABLE_PROMPT;
|
||||
|
||||
$config->newFeatures = array('introduction', 'tutorial', 'youngBlueTheme', 'visions');
|
||||
$config->newFeatures = array('aiPrompts', 'promptDesign', 'promptExec');
|
||||
$config->disabledFeatures = '';
|
||||
$config->closedFeatures = '';
|
||||
|
||||
|
||||
@@ -39,8 +39,16 @@ class index extends control
|
||||
$latestVersionList = array();
|
||||
if(isset($this->config->global->latestVersionList)) $latestVersionList = json_decode($this->config->global->latestVersionList);
|
||||
|
||||
$showFeatures = false;
|
||||
foreach($this->config->newFeatures as $feature)
|
||||
{
|
||||
$accounts = zget($this->config->global, 'skip' . ucfirst($feature), '');
|
||||
if(strpos(",$accounts,", $this->app->user->account) === false) $showFeatures = true;
|
||||
}
|
||||
|
||||
$this->view->title = $this->lang->index->common;
|
||||
$this->view->open = helper::safe64Decode($open);
|
||||
$this->view->showFeatures = $showFeatures;
|
||||
$this->view->latestVersionList = $latestVersionList;
|
||||
|
||||
$this->display();
|
||||
|
||||
@@ -114,7 +114,6 @@ body.menu-hide {padding-left: 0;}
|
||||
.version-detail {color: #8a8a8a;}
|
||||
.upgrade-now {float: right;}
|
||||
.color-primary {color: #3280fc;}
|
||||
.showFeatures .modal-body{max-height: 550px !important;}
|
||||
|
||||
@media screen and (max-height: 768px)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
(function()
|
||||
{
|
||||
if(showFeatures && vision == 'rnd')
|
||||
{
|
||||
/* Show features dialog. */
|
||||
new $.zui.ModalTrigger({url: $.createLink('misc', 'features'), type: 'iframe', width: 900, className: 'showFeatures', showHeader: false, backdrop: 'static'}).show();
|
||||
}
|
||||
|
||||
/* Init variables */
|
||||
var openedApps = {}; // Key-value to save appCode-app pairs
|
||||
var appsMap = {}; // Key-value to save opened appCode-app pairs
|
||||
|
||||
@@ -23,6 +23,7 @@ js::set('manualText', $lang->manual);
|
||||
js::set('manualUrl', ((!empty($config->isINT)) ? $config->manualUrl['int'] : $config->manualUrl['home']) . '&theme=' . $_COOKIE['theme']);
|
||||
js::set('isAdminUser', $this->app->user->admin);
|
||||
js::set('isIntranet', helper::isIntranet());
|
||||
js::set('showFeatures', $showFeatures);
|
||||
?>
|
||||
<style>
|
||||
#versionTitle {margin: 8px 3px 0px 0px; background-image: url(<?php echo $config->webRoot . 'theme/default/images/main/version-upgrade.svg';?>);}
|
||||
|
||||
@@ -20,3 +20,4 @@
|
||||
#features .btn-close-modal {display: none;}
|
||||
#features.is-last-item .btn-slide-next {display: none;}
|
||||
#features.is-last-item .btn-close-modal {display: inline-block;}
|
||||
#features.is-first-item .btn-slide-prev {display: none;}
|
||||
|
||||
@@ -6,6 +6,12 @@ $(function()
|
||||
$('#featuresCarousel').carousel('next');
|
||||
});
|
||||
|
||||
/* Support to slide to prev by click btn */
|
||||
$('#features').on('click', '.slide-feature-to-prev', function()
|
||||
{
|
||||
$('#featuresCarousel').carousel('prev');
|
||||
});
|
||||
|
||||
$('#features').on('click', '.btn-close-modal', function()
|
||||
{
|
||||
var feature = features[features.length - 1];
|
||||
@@ -14,14 +20,12 @@ $(function()
|
||||
|
||||
$('#featuresCarousel').on('slide.zui.carousel', function(e)
|
||||
{
|
||||
/* Click next to pause the video play. */
|
||||
$('#guideVideo').trigger('pause');
|
||||
|
||||
var $next = $(e.relatedTarget);
|
||||
var $items = $next.parent().children();
|
||||
var index = $items.index($next);
|
||||
var itemsCount = $items.length;
|
||||
var isLastItem = index === itemsCount - 1;
|
||||
var isFirstItem = index === 0;
|
||||
var $features = $('#features');
|
||||
|
||||
var $nav = $('#featuresNav');
|
||||
@@ -29,6 +33,7 @@ $(function()
|
||||
$nav.find('a[data-slide-to="' + index + '"]').parent().addClass('active');
|
||||
|
||||
$features.toggleClass('is-last-item', isLastItem);
|
||||
$features.toggleClass('is-first-item', isFirstItem);
|
||||
if(isLastItem) $features.addClass('enabled');
|
||||
|
||||
var feature = features[index - 1];
|
||||
|
||||
@@ -96,12 +96,19 @@ $lang->misc->feature->youngBlueTheme = 'Young Blue Theme';
|
||||
$lang->misc->feature->youngBlueImage = 'theme/default/images/main/new_theme_en.png';
|
||||
$lang->misc->feature->visions = "Interface switching";
|
||||
$lang->misc->feature->nextStep = 'Next step';
|
||||
$lang->misc->feature->prevStep = 'Previous step';
|
||||
$lang->misc->feature->close = 'Close';
|
||||
$lang->misc->feature->downloadFile = 'Download introduction';
|
||||
$lang->misc->feature->tutorialDesc = '<p>ZenTao 15.0 has new functions, and you know how to use it through the "<strong>Tutorial</strong>".</p><p>Click your [<span style="color: #0c60e1">Avatar-Theme-Young Blue</span>] to set it.</p>';
|
||||
$lang->misc->feature->themeDesc = '<p>ZenTao 15.0+ a new "Youth Blue" theme, the pages are more beautiful and the experience is more friendly.</p><p>Click your [<span style="color: #0c60e1">Avatar-Theme-Young Blue</span>] to set it.</p>';
|
||||
$lang->misc->feature->visionsDesc = "<p>The concept of interface has been added since 16.5. Users can deal with R&D affairs in <span style='color: #0c60e1'>[Full Feature Interface]</span> and daily office affairs in <span style='color: #0c60e1'>[Operation Management Interface]</span>.</p><p>You can view the current interface on the avatar, and click the name of the interface to view and switch other interfaces.</p>";
|
||||
$lang->misc->feature->visionsImage = 'theme/default/images/main/visions_en.png';
|
||||
$lang->misc->feature->aiPrompts = 'AI prompts';
|
||||
$lang->misc->feature->aiPromptsImage = 'theme/default/images/main/ai_prompts_en.png';
|
||||
$lang->misc->feature->promptDesign = 'Prompt Engineering';
|
||||
$lang->misc->feature->promptDesignImage = 'theme/default/images/main/prompt_design_en.png';
|
||||
$lang->misc->feature->promptExec = 'Prompt Execution';
|
||||
$lang->misc->feature->promptExecImage = 'theme/default/images/main/prompt_exec_en.png';
|
||||
|
||||
/* Release Date. */
|
||||
$lang->misc->releaseDate['18.4.beta1'] = '2023-05-31';
|
||||
|
||||
+22
-15
@@ -87,21 +87,28 @@ $lang->misc->noticeRepair = "<h5>普通用户请联系管理员进行修复</h5>
|
||||
</ol>";
|
||||
|
||||
$lang->misc->feature = new stdclass();
|
||||
$lang->misc->feature->lastest = '最新版本';
|
||||
$lang->misc->feature->detailed = '详情';
|
||||
$lang->misc->feature->introduction = '新功能介绍';
|
||||
$lang->misc->feature->tutorial = '新手引导教程';
|
||||
$lang->misc->feature->tutorialImage = 'theme/default/images/main/tutorial.png';
|
||||
$lang->misc->feature->youngBlueTheme = '全新青春蓝主题';
|
||||
$lang->misc->feature->youngBlueImage = 'theme/default/images/main/new_theme.png';
|
||||
$lang->misc->feature->visions = "不同场景界面切换";
|
||||
$lang->misc->feature->nextStep = '下一步';
|
||||
$lang->misc->feature->close = '关闭';
|
||||
$lang->misc->feature->downloadFile = '下载新版本功能介绍文档';
|
||||
$lang->misc->feature->tutorialDesc = "<p>禅道15系列新增了多项功能,您可以通过“<strong>新手引导教程</strong>”快速了解禅道的基本使用方法。</p><p>通过鼠标经过 [<span style='color: #0c60e1'>头像-新手引导</span>],点击新手引导,即可进入新手引导教程。</p>";
|
||||
$lang->misc->feature->themeDesc = "<p>禅道15系列上线了全新的“青春蓝”主题,页面呈现更加美观,体验更加友好。</p><p>通过鼠标经过 [<span style='color: #0c60e1'>头像-主题-青春蓝</span>],点击青春蓝,即可设置成功。</p>";
|
||||
$lang->misc->feature->visionsDesc = "<p>从16.5开始增加了界面概念,用户可以在<span style='color:#0c60e1'>[研发综合界面]</span>中处理研发事务、在<span style='color:#0c60e1'>[运营管理界面]</span>处理日常办公事务。</p><p>在头像右侧即可查看当前所处界面,点击当前界面名称可查看和切换其他的界面。</p>";
|
||||
$lang->misc->feature->visionsImage = 'theme/default/images/main/visions.png';
|
||||
$lang->misc->feature->lastest = '最新版本';
|
||||
$lang->misc->feature->detailed = '详情';
|
||||
$lang->misc->feature->introduction = '新功能介绍';
|
||||
$lang->misc->feature->tutorial = '新手引导教程';
|
||||
$lang->misc->feature->tutorialImage = 'theme/default/images/main/tutorial.png';
|
||||
$lang->misc->feature->youngBlueTheme = '全新青春蓝主题';
|
||||
$lang->misc->feature->youngBlueImage = 'theme/default/images/main/new_theme.png';
|
||||
$lang->misc->feature->visions = "不同场景界面切换";
|
||||
$lang->misc->feature->nextStep = '下一步';
|
||||
$lang->misc->feature->prevStep = '上一步';
|
||||
$lang->misc->feature->close = '开始体验';
|
||||
$lang->misc->feature->downloadFile = '下载新版本功能介绍文档';
|
||||
$lang->misc->feature->tutorialDesc = "<p>禅道15系列新增了多项功能,您可以通过“<strong>新手引导教程</strong>”快速了解禅道的基本使用方法。</p><p>通过鼠标经过 [<span style='color: #0c60e1'>头像-新手引导</span>],点击新手引导,即可进入新手引导教程。</p>";
|
||||
$lang->misc->feature->themeDesc = "<p>禅道15系列上线了全新的“青春蓝”主题,页面呈现更加美观,体验更加友好。</p><p>通过鼠标经过 [<span style='color: #0c60e1'>头像-主题-青春蓝</span>],点击青春蓝,即可设置成功。</p>";
|
||||
$lang->misc->feature->visionsDesc = "<p>从16.5开始增加了界面概念,用户可以在<span style='color:#0c60e1'>[研发综合界面]</span>中处理研发事务、在<span style='color:#0c60e1'>[运营管理界面]</span>处理日常办公事务。</p><p>在头像右侧即可查看当前所处界面,点击当前界面名称可查看和切换其他的界面。</p>";
|
||||
$lang->misc->feature->visionsImage = 'theme/default/images/main/visions.png';
|
||||
$lang->misc->feature->aiPrompts = 'AI提词功能';
|
||||
$lang->misc->feature->aiPromptsImage = 'theme/default/images/main/ai_prompts.png';
|
||||
$lang->misc->feature->promptDesign = '设计AI提词';
|
||||
$lang->misc->feature->promptDesignImage = 'theme/default/images/main/prompt_design.png';
|
||||
$lang->misc->feature->promptExec = '执行AI提词';
|
||||
$lang->misc->feature->promptExecImage = 'theme/default/images/main/prompt_exec.png';
|
||||
|
||||
/* Release Date. */
|
||||
$lang->misc->releaseDate['18.4.beta1'] = '2023-05-31';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/carousel.html.php';?>
|
||||
<?php js::set('features', $features);?>
|
||||
<main id='features'>
|
||||
<main id='features' class="is-first-item">
|
||||
<header>
|
||||
<ul class='nav nav-simple' id='featuresNav'>
|
||||
<?php foreach($features as $key => $feature): ?>
|
||||
@@ -21,38 +21,26 @@
|
||||
|
||||
<div class='carousel-inner'>
|
||||
<?php foreach($features as $key => $feature): ?>
|
||||
<div class='item <?php echo $key == 0 ? 'active' : '';?>' style='height: 395px'>
|
||||
<?php if($feature == 'introduction'):?>
|
||||
<div class='article-content text-center'>
|
||||
<video src="<?php echo $lang->install->guideVideo;?>" height="320px" controls ="controls" id='guideVideo'></video>
|
||||
<div class='text-center' style='position:relative'>
|
||||
<p><?php echo $lang->install->introduction;?></p>
|
||||
<div class='download-file'>
|
||||
<a href='https://dl.cnezsoft.com/zentao/zentaoconcept.pdf' target='_blank'><?php echo $lang->misc->feature->downloadFile;?></a>
|
||||
<div class='item <?php echo $key == 0 ? 'active' : '';?>' style='height: 460px'>
|
||||
<?php if($feature == 'aiPrompts'): ?>
|
||||
<div class='text-center'>
|
||||
<img class='text-center' src='<?php echo $config->webRoot . $lang->misc->feature->aiPromptsImage; ?>'/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif($feature == 'tutorial'):?>
|
||||
<div class='text-center'>
|
||||
<?php echo $lang->misc->feature->tutorialDesc;?>
|
||||
<img class='text-center' src='<?php echo $config->webRoot . $lang->misc->feature->tutorialImage;?>' />
|
||||
</div>
|
||||
<?php elseif($feature == 'youngBlueTheme'):?>
|
||||
<div class='text-center'>
|
||||
<?php echo $lang->misc->feature->themeDesc;?>
|
||||
<img class='text-center' src='<?php echo $config->webRoot . $lang->misc->feature->youngBlueImage;?>' />
|
||||
</div>
|
||||
<?php elseif($feature == 'visions'):?>
|
||||
<div class='text-center'>
|
||||
<?php echo $lang->misc->feature->visionsDesc;?>
|
||||
<img class='text-center' src='<?php echo $config->webRoot . $lang->misc->feature->visionsImage;?>' />
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php elseif($feature == 'promptDesign'): ?>
|
||||
<div class='text-center'>
|
||||
<img class='text-center' src='<?php echo $config->webRoot . $lang->misc->feature->promptDesignImage; ?>'/>
|
||||
</div>
|
||||
<?php elseif($feature == 'promptExec'): ?>
|
||||
<div class='text-center'>
|
||||
<img class='text-center' src='<?php echo $config->webRoot . $lang->misc->feature->promptExecImage; ?>'/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
<footer style="display: flex; gap: 16px; justify-content: center; padding: 24px 0 15px 0;">
|
||||
<button type='button' class='btn btn-primary btn-wide slide-feature-to-prev btn-slide-prev'><?php echo $lang->misc->feature->prevStep; ?></button>
|
||||
<button type='button' class='btn btn-primary btn-wide slide-feature-to-next btn-slide-next'><?php echo $lang->misc->feature->nextStep; ?></button>
|
||||
<button type='button' data-dismiss='modal' class='btn btn-primary btn-wide btn-close-modal'><?php echo $lang->misc->feature->close; ?></button>
|
||||
</footer>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 272 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 90 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 217 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 216 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Reference in New Issue
Block a user