Skip to content

Commit

Permalink
🔀 Replace tutorial with Intercom Educate
Browse files Browse the repository at this point in the history
Merge pull request #24 from mileswong/feature/help-centre
  • Loading branch information
nwingt authored Oct 31, 2017
2 parents c38e0ed + d8591da commit c70e3a9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 36 deletions.
4 changes: 1 addition & 3 deletions src/common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -923,12 +923,10 @@
}
},
"menu": {
"personalPage": "Profile Page",
"tutorial1": "Intro Tutorial",
"tutorial2": "Assests Tutorial",
"tutorial3": "Create New Story Tutorial",
"tutorial": "Manual",
"function": "Features"
"tutorial": "Help"
},
"emptyPleaseSelect": "Welcome to the oice editor, please select/create a new story",
"storiesList": {
Expand Down
4 changes: 1 addition & 3 deletions src/common/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -923,12 +923,10 @@
}
},
"menu": {
"personalPage": "マイページ",
"tutorial1": "初心者のチュートリアルへ",
"tutorial2": "キャラのチュートリアルへ",
"tutorial3": "新規のチュートリアルへ",
"tutorial": "チュートリアル",
"function": "ツール"
"tutorial": "ヘルプ"
},
"emptyPleaseSelect": "ようこそoiceエディターへ,新規ストーリーまたはマイ新規ストーリーを選択してください",
"storiesList": {
Expand Down
4 changes: 1 addition & 3 deletions src/common/locales/zh-HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -924,12 +924,10 @@
}
},
"menu": {
"personalPage": "個人主頁",
"tutorial1": "查看教程(新手教程)",
"tutorial2": "查看教程(角色教程)",
"tutorial3": "查看教程(新建教程)",
"tutorial": "教程",
"function": "功能"
"tutorial": "幫助"
},
"emptyPleaseSelect": "歡迎使用 oice 編輯器,請先創建/選擇你的故事。",
"storiesList": {
Expand Down
4 changes: 1 addition & 3 deletions src/common/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -924,12 +924,10 @@
}
},
"menu": {
"personalPage": "個人主頁",
"tutorial1": "查看教程(新手教程)",
"tutorial2": "查看教程(角色教程)",
"tutorial3": "查看教程(新建教程)",
"tutorial": "教程",
"function": "功能"
"tutorial": "幫助"
},
"emptyPleaseSelect": "歡迎使用 oice 編輯器,請先創建/選擇你的故事。",
"storiesList": {
Expand Down
4 changes: 2 additions & 2 deletions src/editor/components/EditorPanel/MacrosPanel/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export default class MacrosPanel extends React.Component {
const selectedMacroGroup = list[selectedMacroGroupIndex];
if (macros.length > 0) {
return (
<div className="macros-list" ref={ref => this.macrosList = ref}>
{selectedMacroGroup.map((macro) => (
<div ref={ref => this.macrosList = ref} className="macros-list">
{selectedMacroGroup.map(macro => (
<Macro key={macro.id} macro={macro} />
))}
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/editor/components/EditorPanel/MacrosPanel/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,4 @@
width: 30px;
padding-right: 5px;
}

> span.macro-label {
line-height: 30px;
}
}
13 changes: 1 addition & 12 deletions src/editor/components/EditorPanel/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import MoreIcon from 'common/icons/more';

import { VOLUMES } from '../InteractiveTutorial/constants';

const handlePersonalPageClick = () => window.open('/profile');
const handleTutorialClick = () => window.open('/tutorial/manual');
const handleFunctionPageClick = () => window.open('/pricing');
const handleTutorialClick = () => window.open('https://intercom.help/oice');

const EditorMenu = (props) => {
const { t, tutorialState, userRole, onRequestOpenTutorial } = props;
Expand Down Expand Up @@ -52,21 +50,12 @@ const EditorMenu = (props) => {

return (
<Menu anchorEl={toggleEditorMenuButton} hasBadge={hasBadge}>
{/* <Menu.Item
primaryText={t('menu.personalPage')}
onClick={handlePersonalPageClick}
/>
<Divider /> */}
{tutorialMenuItems}
<Divider />
<Menu.Item
primaryText={t('menu.tutorial')}
onClick={handleTutorialClick}
/>
<Menu.Item
primaryText={t('menu.function')}
onClick={handleFunctionPageClick}
/>
</Menu>
);
};
Expand Down
7 changes: 1 addition & 6 deletions src/editor/components/EditorPanel/index.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { push, replace } from 'react-router-redux';
import { replace } from 'react-router-redux';
import { translate } from 'react-i18next';
import { findDOMNode } from 'react-dom';

import uuid from 'uuid';

import _get from 'lodash/get';

import FlatButton from 'ui-elements/FlatButton';
import LoadingScreen from 'ui-elements/LoadingScreen';
import Modal from 'ui-elements/Modal';
import RaisedButton from 'ui-elements/RaisedButton';

import InteractiveTutorial from 'editor/components/InteractiveTutorial';

Expand All @@ -36,7 +32,6 @@ import {
TAB_LIST,
} from 'editor/components/EditorPanel/StorySettingModal/StorySettingModal.constants';

import Dashboard from '../Dashboard';
import EditorMenu from './Menu';
import EditorToolbar from './Toolbar/index';
import EditorWorkspace from './Workspace';
Expand Down

0 comments on commit c70e3a9

Please sign in to comment.