Commit a57824ef authored by antoor's avatar antoor

Add the view-site ui

添加浏览网站UI
parent c32a6334
......@@ -55,7 +55,8 @@ module.exports = {
pluginDefault: 'Default',
pluginStore: 'Plugin Store',
clearCache: 'Clear cache',
clearAllCache: 'Clear all cache'
clearAllCache: 'Clear all cache',
viewsite: 'View Site'
},
category: {
title: 'Category',
......
......@@ -56,7 +56,8 @@ module.exports = {
pluginDefault: '默认分类',
pluginStore: '插件市场',
clearCache: '清空缓存',
clearAllCache: '清空所有缓存'
clearAllCache: '清空所有缓存',
viewsite: '浏览网站'
},
category: {
title: '分类目录',
......
......@@ -4,6 +4,7 @@
const Data = require('../data');
const Form = require('./form');
const ViewSite = require('../../viewsite/');
const Terminal = require('../../terminal/');
const Database = require('../../database/');
const FileManager = require('../../filemanager/');
......@@ -34,6 +35,9 @@ class ContextMenu {
['database', 'database', selectedData, () => {
new Database(data[0]);
}],
['viewsite', 'chrome', selectedData, () => {
new ViewSite(data[0]);
}],
false,
['plugin', 'folder-o', selectedMultiData, null, this.parsePlugContextMenu(data)],
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment