From 3a3d4f7aca8e398757aa2e694e6e116c6d181afd Mon Sep 17 00:00:00 2001 From: star7th Date: Fri, 22 Mar 2024 21:22:18 +0800 Subject: [PATCH] toc bug --- web/index.html | 2 +- web/static/js/app.02e90098919c8ba77a38.js | 1 + web/static/js/app.f85ce3c5c22b6520bc5e.js | 1 - web_src/src/components/common/Toc.vue | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 web/static/js/app.02e90098919c8ba77a38.js delete mode 100644 web/static/js/app.f85ce3c5c22b6520bc5e.js diff --git a/web/index.html b/web/index.html index ccd2a38f1..760de20b9 100644 --- a/web/index.html +++ b/web/index.html @@ -9,4 +9,4 @@ '../server/index.php?s=', // "lang" :'en' lang: 'zh-cn' - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/web/static/js/app.02e90098919c8ba77a38.js b/web/static/js/app.02e90098919c8ba77a38.js new file mode 100644 index 000000000..cf4538191 --- /dev/null +++ b/web/static/js/app.02e90098919c8ba77a38.js @@ -0,0 +1 @@ +webpackJsonp([1],{"+9lI":function(t,e){},"/4UI":function(t,e){},"/BJT":function(t,e){},"/ipL":function(t,e){},"039K":function(t,e){},"1Ar1":function(t,e){},"1KaE":function(t,e){},"2QHw":function(t,e){},"2Xpv":function(t,e){},"2sLY":function(t,e){},"2xWI":function(t,e){},"39gu":function(t,e){},"3H/t":function(t,e){},"4LCr":function(t,e){e.__esModule=!0,e.default={help:"帮助",demo:"示例",index_login_or_register:"登录 / 注册",my_item:"我的项目",section_title1:"ShowDoc",section_description1_1:"一个非常适合IT团队的",section_description1_2:"在线API文档、技术文档工具",section_title2:"API文档",section_description2_1:"APP、web前端与服务器常用API来进行交互",section_description2_2:"ShowDoc可以非常方便快速地编写出美观的API文档",section_title3:"数据字典",section_description3_1:"好的数据字典可以方便地向别人描述你的数据库结构",section_description3_2:"用ShowDoc可以编辑出美观的数据字典",section_title4:"说明文档",section_description4_1:"你完全可以使用 ShowDoc来编写一些工具的说明书",section_description4_2:"也可以编写一些技术规范说明文档以供团队查阅",section_title5:"团队协作",section_description5:"团队权限管理机制让团队良好地协同编写文档",section_title6:"文档自动化",section_description6_1:"可从代码注释中自动生成文档",section_description6_2:"搭配的RunApi客户端,可调试接口和自动生成文档",section_title7:"免费开源",section_description7_1:"ShowDoc提供免费开源的版本",section_description7_2:"你可以选择将ShowDoc部署到你的服务器",section_title8:"在线托管",section_description8_1:"www.showdoc.com.cn 安全稳定的在线文档托管服务",section_description8_2:"你可以放心地选择托管你的文档数据在云端",section_title9:"立即体验",section_description9:"超过100000+互联网团队正在使用ShowDoc",login:"登录",username:"用户名",password:"密码",register_new_account:"注册新账号",forget_password:"忘记密码",username_description:"用户名/邮箱",password_again:"再次输入密码",verification_code:"验证码",register:"注册",update_personal_info:"修改个人信息",submit:"提交",goback:"返回",my_email:"我的邮箱",input_email:"请输入要绑定的邮箱",input_login_password:"请输入你的登录密码以验证",status:"状态",status_1:"已验证",status_2:"未验证",status_3:"未绑定",binding:"绑定",modify:"修改",modify_password:"修改密码",old_password:"原密码",new_password:"新密码",modify_success:"修改成功",update_email_success:"更新邮箱成功!请登录邮箱查收验证邮件",personal_setting:"个人设置",web_home:"网站首页",logout:"退出登录",add_an_item:"添加一个新项目",new_item:"新建项目",feedback:"反馈",more:"更多",my_notice:"我的消息",item_setting:"项目设置",item_top:"置顶项目",cancel_item_top:"取消置顶",item_type1:"常规项目",item_type2:"单页项目",item_name:"项目名",item_description:"项目描述",item_domain:"(可选)个性域名",item_domain_illegal:"个性域名只能是字母或数字的组合",domain_already_exists:"个性域名已经存在",visit_password_placeholder:"访问密码",copy_exists_item:"复制已存在项目",please_choose:"请选择",auto_db:"我要自动生成数据字典",input_visit_password:"请输入访问密码",export_all:"导出全部",export_cat:"按目录/页面",select_cat_2:"选择二级目录:",select_cat_3:"选择三级目录:",begin_export:"开始导出",base_info:"基础信息",member_manage:"成员管理",advance_setting:"高级设置",open_api:"开放API",info_item_domain:"个性域名",visit_password:"访问密码",visit_password_description:"(可选)私有项目请设置访问密码",add_member:"添加成员",authority:"权限",add_time:"添加时间",operation:"操作",delete:"删除",input_target_member:"请输入目标成员的用户名",readonly:"只读",member_authority_tips:"权限说明:编辑权限指的是成员可以新建/编辑/删除项目页面。 只读权限指的是,该成员对本项目所有页面都只能查看,无法新增/编辑/删除。可以按项目目录给用户授权,该用户将只能查看和操作自己有权限的目录。目前只支持选择一级目录。",cancel:"取消",confirm:"确定",confirm_delete:"确认删除吗?",attorn:"转让",archive:"归档",attorn_tips:"你可以将项目转让给他人",archive_tips:"归档后,项目将变为只读,无法再修改/新增内容。如果要重新编辑,请复制到新项目后编辑",delete_tips:"警告!你现在的操作会删除整个项目,所有页面和目录数据在删除后将不可恢复!",attorn_username:"接受者用户名",archive_tips2:"说明: 归档项目后,项目将无法再新增和修改内容,并且无法取消归档状态。 如想再次修改内容,可复制本项目,在新的项目基础上修改。",success_jump:"操作成功!正在跳转...",reset_token:"重新生成api_token",open_api_tips1:"showdoc开放文档编辑的API,供使用者更加方便地操作文档数据。
利用开放API,你可以自动化地完成很多事",open_api_tips2:'如果你想利用runapi客户端生成API文档,则可参考runapi介绍',open_api_tips3:'如果你想通过程序注释生成API文档,则可参考API文档',open_api_tips4:'如果你想自动化生成数据字典,则可参考数据字典',open_api_tips5:'如果你更自由地生成自己所需要的格式,则可参考开放API',item:"项目",share:"分享",export:"导出",update_info:"修改信息",manage_members:"成员管理",more_item:"更多项目",login_or_register:"登录/注册",about_showdoc:"关于ShowDoc",new_page:"新建页面",edit_page:"编辑页面",new_catalog:"新建/管理目录",share_address_to_your_friends:"分享该接口地址给你的好友",copy_interface_to_new:"复制该页面到新页面",copy:"复制",edit:"编辑",detail:"详情",delete_interface:"删除页面",comfirm_delete:"确认删除吗?",item_address:"项目地址",copy_address_to_your_friends:"你可以复制地址给你的好友",share_page:"分享页面",page_address:"页面地址",input_keyword:"输入关键字后按回车以搜索",item_page_address:"项目页面地址",single_page_address:"单页面地址",page_diff_tips:"项目页面地址和单页面地址有什么区别?",title:"标题",catalog:"目录",level_2_directory:"二级目录",level_3_directory:"三级目录",s_number:"序号",s_number_explain:"(可选)默认是99,数字越小越靠前",optional:"可选",history_version:"历史版本",save:"保存",insert_apidoc_template:"API接口模板",insert_database_doc_template:"数据字典模板",json_tools:"JSON工具",format_tools:"格式工具",json_to_table:"JSON转参数表格",beautify_json:"JSON格式化",beautify_json_description:"请粘贴一段json,程序将自动以美观的方式格式化显示",http_test_api:"在线测试API",json_to_table_description:"请粘贴一段json,程序将自动将json解析并生成参数表格。此功能适合用于快速编写API文档的返回参数表格",update_time:"修改时间",update_by_who:"修改人",recover_to_this_version:"恢复到此版本",close:"关闭",finish:"完成",params:"参数",clear:"清除",result:"返回结果",save_to_templ:"另存为模板",more_templ:"更多模板",saved_templ_list:"保存的模板列表",page_comments:"页面注释",cur_page_content:"当前最新版本",overview:"预览",save_templ_title:"请为要保存的模板设置标题",save_templ_text:"已经保存好模板。你以后新建或者编辑编辑页面时,点击“更多模板”按钮,便可以使用你保存的模板",welcome_use_showdoc:"欢迎使用ShowDoc!",templ_list:"模板列表",templ_title:"模板标题",no_templ_text:"你尚未保存过任何模板。你可以在编辑页面时,在“保存”按钮右边点击,在下拉菜单中选择“另存为模板”。把页面内容保存为模板后,你下次新建或者编辑页面时便可以使用你之前保存的模板",save_time:"保存时间",insert_templ:"插入此模板",delete_templ:"删除模板",save_success:"保存成功",paste_insert_table:"粘贴插入表格",paste_insert_table_tips:"你可以从网页或者excel中复制表格,然后粘贴在此处。粘贴并确定后,程序将自动把源表格转为markdown格式的表格。注:复制excel后,请鼠标右击,粘贴为纯文本。否则会当做图片上传。",add_cat:"添加目录",cat_name:"目录名",input_cat_name:"请输入目录名",parent_cat_name:"上级目录",none:"无",back_to_top:"回到顶部",draft_tips:"检测到有上次编辑时自动保存的草稿。是否自动填充上次的草稿内容?",management_backstage:"管理后台",user_management:"用户管理",item_management:"项目管理",add_user:"新增用户",search:"查询",team_mamage:"团队管理",background:"管理后台",distribution_to_team:"分配项目给团队",back_to_team:"返回团队管理",check_item:"查看项目",unassign:"取消分配",go_to_new_an_item:"去新建项目",confirm_unassign:"确认取消分配吗?此操作会取消项目和团队之间的关联",Join_time:"加入时间",add_team:"添加团队",member_authority:"成员权限",go_to_new_an_team:"去新建团队",adjust_member_authority:"调整每一个成员的项目权限",team_member_empty_tips:"该团队尚未有任何成员",team_member_authority_tips:"权限说明:默认成员可以新建/编辑/删除项目页面, 勾选只读属性后,该成员对所有页面都只能查看,无法新增/编辑/删除。可以按项目目录给用户授权,该用户将只能查看和操作自己有权限的目录。目前只支持选择一级目录。",member:"成员",team_item:"项目",member_username:"成员用户名",team_name:"团队名",memberCount:"成员数",itemCount:"分配项目数",empty_team_tips:"欢迎使用团队管理功能。此功能非常适合Team leader对多人员、跨团队项目的协作管理。请先点击左上方按钮添加团队。添加团队后,可以随时增加/删除团队成员、批量分配到不同项目,并且可以设置不同项目里的成员权限。相比简单成员管理模式,团队管理功能可以批量地进行人员的增删,更方便复杂团队的协作。",copy_link:"复制链接",copy_success:"复制成功",user_manage:"用户管理",item_manage:"项目管理",web_setting:"站点设置",register_open_label:"开放用户注册",ldap_open_label:"启用ldap登录",name:"姓名",name_tips:"推荐使用真实姓名",attachment:"附件",upload:"上传",upload_file:"上传文件",file_name:"文件名",download:"下载",file_size_tips:"文件大小在4M内",confirm_cat_delete:"确认删除目录吗?此操作会把该目录下的所有页面一并删除,请谨慎操作。",userrole:"用户角色",reg_time:"注册时间",last_login_time:"最后登录时间",administrator:"管理员",ordinary_users:"普通用户",owner:"所有者",privacy:"私密性",link:"链接",private:"密码访问",public:"公开访问",register_open:"开放用户注册",long_page_tips:"检测到本页面内容比较多,showdoc暂时关闭了html实时预览功能,以防止过多内容造成页面卡顿。你可以在编辑栏中找到预览按钮进行手动打开。",item_exit:"退出项目",confirm_exit_item:"你确定要退出该项目吗?",insert:"插入",Open_item:"公开项目",private_item:"私密项目",private_item_passwrod:"私密项目请设置访问密码",create_sigle_page:"我要创建单页面地址",create_sigle_page_tips:"当仅仅想分享某个页面、而不想分享整个项目的时候,你可以选择分享单页面地址。分享出去后,你的好友将仅仅只看到单个页面,无法浏览目录菜单,也无法切换到其他页面查看。",home_page:"网站首页",full_page:"全屏介绍页面",login_page:"跳转到登录页面",jump_to_an_item:"跳转到某个项目",jump_to_item:"跳转到项目",recycle:"回收站",recycle_tips:"被删除的页面会进入回收站。在回收站超过30天的内容将被系统自动选择合适时候清理掉",page_title:"页面标题",deleter:"删除账号",del_time:"删除时间",recover:"恢复",recover_tips:"确认恢复吗?恢复的页面将出现在项目根目录",cat_tips:"可拖动以排序",cat_limite_tips:"showdoc只支持最多三层目录,请优化目录结构",sort_pages:"页面排序",sort_pages_tips:"选择特定的目录后,你可以对该目录下的页面进行拖动排序",regular_item:"常规项目",single_item:"单页项目",copy_item:"复制项目",import_file:"导入文件",auto_item:"自动生成",single_item_tips:"单页项目指的是指没有目录结构,只有一个页面的项目",copy_item_tips1:"从你已有的项目中选择并复制",copy_item_tips2:"复制后将新项目重命名为:",import_file_tips1:"导入的文件可以是postman的json文件、swagger3的json文件、showdoc的markdown压缩包。系统会自动识别文件类型。",import_file_tips2:"将文件拖到此处,或点击上传",export_format_word:"word格式",export_format_markdown:"markdown压缩包",export_markdown_tips:"导出的压缩包可以重新导入showdoc,在新建项目的时候选择“文件导入”即可",private_tips:"这是一个私密项目",oss_open:"图片附件储存到云",oss_server:"云服务商",aliyun:"阿里云",qiniu:"七牛云",oss_domain:"oss绑定域名(选填)",attornTeamTips:"转让团队后,该团队下拥有的所有项目也会一并转让给对方",lock_edit:"锁定编辑",lock_edit_tips:"当锁定后,其他人将无法编辑本页面。直到你取消锁定或者退出编辑",cacel_lock:"解除锁定",locking:"当前页面正在被其他成员锁定编辑中,编辑者:",all_cat:"所有目录",cat_success:"目录保存成功",auth_success:"权限保存成功",all_cat2:"目录权限:所有目录",c_team:"选择团队",Logged:"已登录",update_pwd_tips:"密码,不修改则留空",import_excel:"你可以选择Excel文件导入",table:"电子表格",attachment_manage:"附件管理",op_success:"操作成功",display_name:"展示名字",all_attachment_type:"全部文件类型",image:"图片",general_attachment:"其它文件",uploader:"上传者",file_id:"文件id",file_type:"文件类型",file_size_m:"文件大小/mb",visit:"查看",visit_times:"访问次数",my_attachment:"文件库",accumulated_used_sapce:"累计已使用空间",month_flow:"本月已使用流量",all_pages:"全部页面",cancelSingle:"是否确定取消单页链接?取消后,原链接会立马失效",cancelSingleYes:"取消单页链接",cancelSingleNo:"保留单页链接",from_file_gub:"从文件库选择",file_gub:"文件库",select:"选择",copy_or_mv_cat:"复制或移动目录",copy_to:"复制到",move_to:"移动到",remark:"备注",used_space:"已使用空间",qcloud:"腾讯云",binding_item:"绑定项目",addtime:"添加时间",system_update:"系统更新",group_name:"组名",add_group:"新建分组",all_items:"所有项目",manage_item_group:"项目分组管理",draggable_tips:"按住可拖动排序",item_group_empty_tips:"暂无分组数据。可点击右上角新建分组",select_item:"选择项目",ext_login:"集成登录",enable_oauth:"启动OAuth2登录",your_showdoc_server:"【你的showdoc地址】",callback_eg:" callback url填写示例",entrance_tips_label:"入口文字提示",entrance_tips_content:"当启用OAuth2登录时候,登录界面将在输入框的下方出现此入口。你可以填上如'使用公司OA登录'这样的提示",userinfo_path_content:"登录成功后获取用户信息的接口。可以写完整网址也可以写路径。当只填写路径的时候,将自动使用上面的Oauth host补充完整地址。该接口应当返回json字符串且包含username字段",reset:"重新生成",history_version_count:"历史版本数量",history_version_count_content:"每次编辑页面都会生成一个页面的历史版本。这里是保留的历史版本数量。默认只保留最新的20个版本",refresh_cat:"刷新目录列表",go_add_cat:"去新建目录",all_member_read:"全部设置为只读",watermark:"水印",watermark_tips:"登录用户查看项目时候显示水印",site_url:"网站外部访问url",site_url_tips:'你上传图片/附件等资源时,其生成的url自动由程序判断填充。如果程序判断错误,你可以在这里手动填上访问url,当你填写后,上传资源后的访问url将使用这里填写的值作为访问前缀。填写示例值"https://www.showdoc.com.cn"。如果你不理解此值含义,请默认留空,不要填写',about_site:"关于本站",s3_storage:"通用S3存储(亚马逊s3/minio等)",import:"导入",import_into_cur_item:"导入到当前项目中",import_into_cur_item_tips:"当你选择导入到当前项目时,同一个目录下相同标题的页面会被覆盖",import_into_new_item:"导入为一个新项目",item_change_log:"项目变更日志",item_change_log_dialog_title:"项目变更日志(只保留前300条)",optime:"操作时间",oper:"操作人",op_action_type_desc:"操作动作类型描述",op_object_type_desc:"操作对象类型描述",op_object_name:"操作对象名称",from_name:"发送人",send_time:"发送时间",content:"内容",system_announcement:"系统公告",save_and_notify:"保存并通知",refresh_member_list:"刷新人员列表",click_to_edit_member:"点此编辑本页面的通知人员名单",cur_setting_notify:"当前已设置通知",people:"人",notify_tips1:"处于通知名单里的人会收到当前页面被修改了的提醒,同时会附上修改备注",input_update_remark:"请输入修改备注",update_remark:"修改备注",add_single_member:"单独添加人员",add_all_member:"一键添加全部项目成员",notify_add_member_tips1:"你只能从项目成员中选择人员。如果你想添加的人不在下拉选项内,请先联系项目管理员添加成员到项目或者相应绑定的团队中。",quick_entrance:"快捷入口",to_item_setting:"去项目设置",to_team:"去团队管理",system_reminder:"系统提醒",update_the_page:"修改了页面",click_to_view:"点此查看",my_template:"我的模板",item_template:"共享到本项目的模板",no_my_template_text:"你尚未保存过任何模板。你可以在编辑页面时,在“保存”按钮右边点击,在下拉菜单中选择“另存为模板”。把页面内容保存为模板后,你下次新建或者编辑页面时便可以使用你之前保存的模板。如果你想使用别人共享的模板,可以切换到‘共享到本项目的模板’标签页去看",no_item_template_text:"当前没有任何共享到本项目的模板。你以及其他成员都可以选择把自己的模板共享到本项目。在‘我的模板’处便可以设置。共享后,所有成员都能看到本项目下共享的模板",sharer:"共享人",share_to_these_items:"共享到这些项目",share_items_tips:"当你选择共享到这些项目后,这些项目的成员都能使用到此共享模板",ordinary_member:"普通成员",team_admin:"团队管理员",edit_member:"编辑成员",readonly_member:"只读成员",item_admin:"项目管理员",sql_to_markdown_table:"SQL转表格",sql_to_markdown_table_description:"你可以在此输入一段创建表的SQL(通常是以CREATE TABLE开头),程序会根据SQL来自动插入一个markdown格式的表格,用以描述该表的数据字典",logout_redirect_uri_desc:"选填项。当用户退出登录时,将重定向到此url",past_html_tips:"检测到你要粘贴的内容可能包含html标签和样式,是否需要尝试转换成markdown格式?如不需要,你可以点击下方的粘贴纯文本按钮",past_html_markdown:"尝试 html 转 markdown",past_html_text:"粘贴纯文本",team_exit:"退出团队",team_exit_confirm:"你确认退出团队吗?退出后,你将失去改团队下所有项目权限",expand_collapse_catalog_tips:"展开全部目录/折叠全部目录",edit_group:"新建/编辑分组",star_items:"星标项目",unstar_item:"取消星标",star_item:"星标项目",open_item:"打开项目",user_center:"用户中心",create_new_item:"创建新项目",regular_item_desc:"最常见的多页在线文档",single_item_desc:"无目录结构的单页文档",table_item:"电子表格",table_item_desc:"可用于分享的在线电子表格",import_file_desc:"导入支持的项目文件",auto_create:"自动生成",auto_create_desc:"利用API自动化生成",home_logo_title:"在线API & 技术文档",group:"分组",item_group_desc:"添加分组/管理分组",empty_team_member_tips:"暂无成员数据。你可以尝试点击右上角以添加成员",empty_team_item_tips:"暂无项目数据。你可以尝试点击右上角以绑定项目",update_user_name_tips:"请在下方输入你的身份。推荐使用真实姓名,这样在协作项目和文档的时候,其他成员容易识别你的身份",accessibility:"可访问性",vip:"会员",default_title:"默认标题",doc_tool:"文档工具",add_from_template:"从模板加入",click_to_edit_page_title:"点击以编辑页面标题",select_catalog:"选择目录",update_base_info:"修改基础信息",no_member_tips:"暂无团队或者成员信息,你可以点击上方按钮以添加",select_member_before:"点此快速选择之前添加过的成员名",item_member:"项目成员",item_team_info:"团队信息",copy_page:"复制页面",page_history_version:"页面版本",page_info:"页面信息",sort_page:"页面排序",delete_page:"删除页面",update_item_base_info:"修改项目基础信息",attorn_item:"转让项目",archive_item:"归档项目",delete_item:"删除项目",table_item_auto_save_tips:"电子表格项目会在你编辑的时候自动保存",do_not_remind_again:"知道了,不用再提醒我",no_items:"暂无项目",ai_assistant:"AI助手生成",create:"创建",search_keyword:"请输入搜索关键词",add_sub_page:"添加页面",add_sub_cat:"添加子文件夹",add_si_bling_cat:"添加同级文件夹",edt_cat:"编辑文件夹",clone_move:"克隆/移动"}},"5byI":function(t,e){},"5fie":function(t,e){},"75Ik":function(t,e){},"75l9":function(t,e){t.exports={_args:[["axios@0.21.4","D:\\phpstudy_pro\\WWW\\showdoc\\web_src"]],_from:"axios@0.21.4",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"axios@0.21.4",name:"axios",escapedName:"axios",rawSpec:"0.21.4",saveSpec:null,fetchSpec:"0.21.4"},_requiredBy:["/"],_resolved:"https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz",_spec:"0.21.4",_where:"D:\\phpstudy_pro\\WWW\\showdoc\\web_src",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"}},"8C//":function(t,e){},"8gQg":function(t,e){},"8giw":function(t,e){},"9caj":function(t,e){},"9p//":function(t,e){},ADz7:function(t,e){},AzjR:function(t,e){},CG8R:function(t,e){},D7LD:function(t,e){},D8vU:function(t,e){},DeOj:function(t,e){},FMeT:function(t,e){},FQqZ:function(t,e){e.__esModule=!0,e.default={help:"Help",demo:"Demo",index_login_or_register:"Login / Register",my_item:"My items",section_title1:"ShowDoc",section_description1:" A tool greatly applicable for an IT team",section_description1_1:"A tool greatly applicable",section_description1_2:"for an IT team",section_title2:"API Document",section_description2_1:"ShowDoc can compile exquisite API documents",section_description2_2:"in a very fast and convenient way",section_title3:"Data Dictionary",section_description3_1:"A good Data Dictionary can easily exhibit database structure to other people",section_description3_2:"ShowDoc can compile exquisite Data Dictionary",section_title4:"Explanation Document",section_description4_1:"You can absolutely use ShowDoc to compile the explanation documents for some tools",section_description4_2:"You can absolutely use ShowDoc to compile the explanation documents for some tools",section_title5:"Team Work",section_description5:"Your team will work with ShowDoc together very well ",section_title6:"Document Automation",section_description6_1:"Documents can be generated automatically from code comments",section_description6_2:"With the runapi client, you can debug the interface and automatically generate documents",section_title7:"Open Source",section_description7_1:"ShowDoc is a free, open source tool",section_description7_2:"You can deploy it to your own server",section_title8:"Hosted online",section_description8_1:"www.showdoc.com.cn provide security and stability of the document hosting service",section_description8_2:"You can safely choose to host your document data in the cloud",section_title9:"Try it now",section_description9:"Over 100000+ IT team is using ShowDoc",login:"Login",username:"Username",password:"Password",register_new_account:"Register",forget_password:"Forget password?",username_description:"Username/Email",password_again:"Input password again",verification_code:"Verification code",register:"Register",update_personal_info:"Update personal info",submit:"Submit",goback:"Back",my_email:"My email",input_email:"Input email",input_login_password:"Please enter your login password to verify",status:"Status",status_1:"Verified",status_2:"Unverified",status_3:"Unbound",binding:"Binding",modify:"Modify",modify_password:"Modify password",old_password:"Old password",new_password:"New password",modify_success:"Modify success!",update_email_success:"Update your mailbox successfully! Please log in to check the email to check the email.",personal_setting:"Personal settings",web_home:"Home",logout:"Logout",add_an_item:"Add an item",new_item:"New item",feedback:"Feedback",more:"More",my_notice:"My notice",item_setting:"Item settings",item_top:"Make item top",cancel_item_top:"Cancel top",item_type1:"Regular item",item_type2:"Single item",item_name:"Item name",item_description:"Description",item_domain:"Personalized domain name (optional)",item_domain_illegal:"Personalized domain names can only be a combination of letters or numbers",domain_already_exists:"Personal domain name already exists",visit_password_placeholder:"Password",copy_exists_item:"Copy existing item",please_choose:"Please select",auto_db:"Auto data dictionary",input_visit_password:"Input visit password",export_all:"Export all",export_cat:"export catalog/page",select_cat_2:"Select catalog level2",select_cat_3:"Select catalog level3",begin_export:"Begin to export",base_info:"Base info",member_manage:"Manage member",advance_setting:"Advanced setting",open_api:"open api",info_item_domain:"Personal domain name",visit_password:"Password",visit_password_description:"(Optional: private item required)",add_member:"Add member",authority:"Authority",add_time:"Add time",operation:"Operation",delete:"Delete",input_target_member:"Input member's username",readonly:"Read-only",member_authority_tips:"Permission Description: The default member can create/edit the project page, and only delete the newly created/edited page when deleting. After checking the read-only attribute, the member can only view all pages, and cannot add/edit/delete",cancel:"Cancel",confirm:"Confirm",confirm_delete:"Confirm to delete",attorn:"Attorn",archive:"Archive",attorn_tips:"You can attorn item(s) to other user(s)",archive_tips:"After archiving, the item will become read-only, and no more changes / additions can be made. If you want to edit it again, copy it to the new project and then edit it",delete_tips:"After deleting it, it can not be restored!",attorn_username:"Username of receiver",archive_tips2:"Note: After archiving a project, the project will no longer be able to add and modify content and will not be able to unarchive. If you want to modify the content again, you can copy the project and modify it on the basis of the new project.",success_jump:"The operation is successful! Skipping...",reset_token:"Reset token",open_api_tips1:"Showdoc opens the API for document editing, making it easier for users to manipulate document data.
With the open API, you can do a lot of things automatically",open_api_tips2:'If you want to use the runAPI client to generate API documents, you can refer to the runapi introduction',open_api_tips3:'If you want to automate the generation of API documentation, you can refer toAPI documentation',open_api_tips4:'If you want to automate the generation of a data dictionary, you can refer toData dictionary',open_api_tips5:'If you are more free to generate the format you need, you can refer toOpen API',item:"Item",share:"Share",export:"Export",update_info:"Update info",manage_members:"Manage members",more_item:"More item(s)",login_or_register:"Login/Register",about_showdoc:"About ShowDoc",new_page:"New page",edit_page:"Edit page",new_catalog:"New/Manage catalog ",share_address_to_your_friends:"Share the interface address to your friends",copy_interface_to_new:"Copy this page to a new page",copy:"Copy",edit:"Edit",detail:"Detail",delete_interface:"Delete page",comfirm_delete:"Comfirm to delete",item_address:"Item address",copy_address_to_your_friends:"You can copy the address to your friend",share_page:"Share page",page_address:"Page address",input_keyword:"Press Enter to search",item_page_address:"Item page address",single_page_address:"Single page address",page_diff_tips:"What is the difference between the project page address and the single page address?",title:"Title",catalog:"Catalog",level_2_directory:"Level 2 catalog",level_3_directory:"Level 3 catalog",s_number:"Order",s_number_explain:"The default is 99, the smaller the number, the earlier it is set.(optional)",optional:"Optional",history_version:"History version",save:"Save",insert_apidoc_template:"ApiDoc template",insert_database_doc_template:"DatabaseDoc template",json_tools:"Json tools",format_tools:"Format tools",json_to_table:"JSON to table",beautify_json:"JSON beautify",beautify_json_description:"Please paste a JSON script, the program will automatically format the display in an elegant way.",http_test_api:"Test API online",json_to_table_description:"Please paste a JSON script, the program will automatically parse the code and generate a parameter table. This feature is suitable for quickly writing back parameter tables for API documents.",update_time:"Update time",update_by_who:"Update by ",recover_to_this_version:"Recover",close:"Close",finish:"Finish",params:"params",clear:"Clear",result:"Result",save_to_templ:"Save to template",more_templ:"More templates",saved_templ_list:"Template list",page_comments:"Page comment",cur_page_content:"Current newest version",overview:"Overview",save_templ_title:"Input template title",save_templ_text:'The template has been saved. When you create or edit an edit page later, click the "More Templates" button to use your saved template.',welcome_use_showdoc:"Welcome to ShowDoc!",templ_list:"Template list",templ_title:"Template title",no_templ_text:'You have not saved any templates yet. You can click on the right side of the "Save" button while editing the page, and select "Save as template" from the drop-down menu. After saving the page content as a template, you can use your previously saved template the next time you create or edit a page.',save_time:"Save time",insert_templ:"Insert",delete_templ:"Delete",save_success:"Save success",paste_insert_table:"Insert table from paste",paste_insert_table_tips:"Paste (Ctrl + V) below an existing table data copied (Ctrl + C) from a spreadsheet (e.g. Microsoft Excel), a text document, a Markdown code, or even a website.",add_cat:"Add catalog",cat_name:"Catalog name",input_cat_name:"Input catalog name",parent_cat_name:"Parent catalog",none:"none",back_to_top:"Back to top",draft_tips:"Your last draft is automatically saved. Do you want automatically fill this document in with the last draft?",management_backstage:"Backstage",user_management:"User(s)",item_management:"Items",add_user:"Add user",search:"Search",team_mamage:"Manage Team(s)",background:"Background",distribution_to_team:"Distribution item",back_to_team:"Back to team",check_item:"Check item",unassign:"Unassign",go_to_new_an_item:"New item",confirm_unassign:"Confirm unassign?",Join_time:"Join time",add_team:"Add team",member_authority:"Member authority",go_to_new_an_team:"New team",adjust_member_authority:"Adjust member authority",team_member_empty_tips:"The team does not have any members yet.",team_member_authority_tips:"Permission description: The editing permission means that members can create/edit project pages, and when deleted, they can only delete their own newly created/edited pages. The read-only permission means that the member can only view all pages of this project and can not add/edit/delete them.",member:"Member",team_item:"Item",member_username:"Member username",team_name:"Team name",memberCount:"Member count",itemCount:"Item count",empty_team_tips:"Welcome to the team management function. This function is well suited for collaborative management of team leader for multi person and cross team projects. Please click the top left button to add the team(s). After adding team(s), team members can be added or deleted at any time, allocated to different projects in batches, and member rights can be set in different projects. Compared with simple membership management mode, team management function can add and delete personnel in batches, which is more convenient for complex team cooperation.",copy_link:"Copy link",copy_success:"Copy success",user_manage:"User manage",item_manage:"Item manage",web_setting:"Web setting",register_open_label:"Register open",ldap_open_label:"LDAP login",name:"Name",name_tips:"Your real name",attachment:"Attachment",upload:"Upload",upload_file:"Upload file",file_name:"File name",download:"Download",file_size_tips:"Less than 4MB",confirm_cat_delete:"Are you sure you want to delete the directory? This action will delete all the pages in this directory. Please be careful.",userrole:"User role",reg_time:"Registration time",last_login_time:"Last login time",administrator:"Administrator",ordinary_users:"Ordinary users",owner:"Owner",privacy:"Privacy",link:"link",private:"private",public:"public",register_open:"Open registration",long_page_tips:"The content of this page was detected to be more, and showdoc temporarily shut down the HTML real-time preview function to prevent the page from getting stuck due to too much content. You can find the preview button in the edit bar and open it manually.",item_exit:"Exit item",confirm_exit_item:"Are you sure to exit this item?",insert:"Insert",Open_item:"public item",private_item:"private item",private_item_passwrod:"Please set a password for private item",create_sigle_page:"I want to create a single page address",create_sigle_page_tips:"When you just want to share a page and not the whole project, you can choose to share a single page address. After sharing, your friends will only see a single page, can not browse the catalog menu, and can not switch to other pages to view.",home_page:"Website home page",full_page:"Full page",login_page:"jump to login page",jump_to_an_item:"jump to an item",jump_to_item:"choose item",recycle:"recycle",recycle_tips:"The deleted page will go to the recycle bin. The content in the recycle bin for more than 30 days will be automatically selected by the system and cleaned up when appropriate",page_title:"Page title",deleter:"Delete Account",del_time:"Delete time",recover:"recover",recover_tips:"Are you sure to recover? The recovered page will appear in the item root",sort_pages:"Sort Pages",sort_pages_tips:"After selecting a specific catalog, you can drag and sort the pages in that catalog",cat_tips:"Drag to sort",cat_limite_tips:"Only up to three levels of directories are supported",regular_item:"Regular Item",single_item:"Single Item",copy_item:"Copy Item",import_file:"Import File",auto_item:"Auto Create",single_item_tips:"Single item refers to the item with no catalog structure and only one page",copy_item_tips1:"Select and copy from your existing items",copy_item_tips2:"After copying, rename the new item to:",import_file_tips1:"The imported file can be the JSON file of postman, the JSON file of swagger3, and the markdown zip of showdoc. The system will automatically identify the file type",import_file_tips2:"Drag the file here, or click to upload",export_format_word:"Word format",export_format_markdown:"Markdown zip",export_markdown_tips:"The exported compressed package can be re imported into showdoc. Select 'Import File' when creating a new item",private_tips:"It's a private item",oss_open:"Image/attachment saved to cloud",oss_server:"cloud server",aliyun:"aliyun",qiniu:"qiniu",oss_domain:"domain(optional)",attornTeamTips:"All items owned by the team will also be transferred to he/her",lock_edit:"Lock edit",lock_edit_tips:"When locked, other people will not be able to edit this page. Until you unlock or exit editing",cacel_lock:"Unlock",locking:"The current page is being locked and edited by other members. Editor:",all_cat:"All catalogs",cat_success:"Catalogs saved successfully",auth_success:"saved successfully",all_cat2:"Catalogs permissions: all",c_team:"Select team",Logged:"Logged",update_pwd_tips:"Password, leave blank if not changed",import_excel:"You can choose to import excel file",table:"table",attachment_manage:"Attachment",op_success:"success",display_name:"display name",all_attachment_type:"all type",image:"image",general_attachment:"general attachment",uploader:"uploader",file_id:"file id",file_type:"type",file_size_m:"size/mb",visit:"visit",visit_times:"visit times",my_attachment:"My attachment",accumulated_used_sapce:"Accumulated used space",month_flow:"Traffic has been used this month",all_pages:"All pages",cancelSingle:"Are you sure you want to cancel the single page link? After cancellation, the original link will be invalid immediately",cancelSingleYes:"Unlink single page",cancelSingleNo:"Keep single page",from_file_gub:"From FileHub",file_gub:"FileHub",select:"select",copy_or_mv_cat:"Copy or move catalog",copy_to:"Copy To",move_to:"Move To",remark:"remark",used_space:"Used pace",qcloud:"qcloud",binding_item:"Binding item",addtime:"addtime",system_update:"System update",group_name:"group name",add_group:"New group",all_items:"All items",manage_item_group:"Manage group",draggable_tips:"Press and hold to drag sort",item_group_empty_tips:"There is no grouping data. You can click the top right corner to create a new group",select_item:"Select item",ext_login:"Ext login",enable_oauth:"OAuth Login",your_showdoc_server:"[your-showdoc-server]",callback_eg:" callback url example",entrance_tips_label:"Entrance text prompt",entrance_tips_content:"When OAuth2 login is enabled, this entry will appear below the input box on the login interface. You can fill in a prompt such as 'Log in with company OA'",userinfo_path_content:"Interface to obtain user information after successful login. You can write a full URL or a path. When only the path is filled in, the OAuth host above will be used to supplement the full address automatically. The interface should return a JSON string with a username field",reset:"reset",history_version_count:"History versions",history_version_count_content:"Each time you edit a page, a historical version of the page is generated. Here is the number of historical versions kept. Only the latest 20 versions are reserved by default",refresh_cat:"Refresh directory list",go_add_cat:"To create a new directory ",all_member_read:"Set all to read-only",watermark:"watermark",watermark_tips:"The watermark is displayed when the logged in user views the item",site_url:"Site url",site_url_tips:"Site url",about_site:"About site",s3_storage:"S3 Storage(Amazon S3/Minio and so on)",import:"import",import_into_cur_item:"Import into current item",import_into_cur_item_tips:"When you choose to import to the current item, the pages with the same title in the same directory will be overwritten",import_into_new_item:"Import as a new item",item_change_log:"Item change log",item_change_log_dialog_title:"Item change log(only the first 300 are retained)",optime:"Operation time",oper:"Operator",op_action_type_desc:"Operation action type description",op_object_type_desc:"Operation object type description",op_object_name:"Operation object name",from_name:"Sender",send_time:"Sending time",content:"content",system_announcement:"Announcement",save_and_notify:"Save and notify",refresh_member_list:"Refresh member list",click_to_edit_member:"Click here to edit the list of notifiers for this page",cur_setting_notify:"currently set",people:"person",notify_tips1:"People on the notification list will receive a reminder that the current page has been modified and will attach a modification note",input_update_remark:"Please enter modification remarks",update_remark:"Modification remark",add_single_member:"Add personnel separately",add_all_member:"Add all project members with one click",notify_add_member_tips1:"You can only select people from project members. If the person you want to add is not in the drop-down option, please contact the project administrator first to add members to the project or the corresponding bound team.",quick_entrance:"Quick entrance",to_item_setting:"Go to item settings",to_team:"Go to team management",system_reminder:"System reminder",update_the_page:"update the page",click_to_view:"click to view",my_template:"My template",item_template:"Templates shared to this item",no_my_template_text:"You haven't saved any templates yet. When editing the page, click on the right side of the 'save' button and select 'save as template' in the drop-down menu. After saving the page content as a template, you can use the template you saved before the next time you create or edit a page. If you want to use the template shared by others, you can switch to the 'template shared to this item' tab",no_item_template_text:"There are currently no templates shared to this project. You and other members can choose to share their own templates with this project. You can set it in my template. After sharing, all members can see the shared templates under this item",sharer:"sharer",share_to_these_items:"share to these items",share_items_tips:"When you choose to share to these items, members of these items can use this sharing template",ordinary_member:"Ordinary member",team_admin:"Team administrator",edit_member:"Edit member",readonly_member:"Readonly member",item_admin:"Item administrator",sql_to_markdown_table:"SQL to table",sql_to_markdown_table_description:"You can enter a paragraph of SQL to create a table here (usually starting with create table). The program will automatically insert a table in markdown format according to the SQL to describe the data dictionary of the table",logout_redirect_uri_desc:"Optional. This URL is redirected when the user logs out",past_html_tips:"It is detected that the content you want to paste may contain HTML tags and styles. Do you need to try to convert it to markdown format? If you don't need it, you can click the paste plain text button below",past_html_markdown:"Try HTML to markdown",past_html_text:"Paste plain text",team_exit:"Quit",team_exit_confirm:"Are you sure to quit the team? After quitting, you will lose all project permissions under the team",expand_collapse_catalog_tips:"Expand all catalogs / collapse all catalogs",edit_group:"Create/Edit Group",star_items:"Star Items",unstar_item:"Unstar item",star_item:"Star Item",open_item:"Open Item",user_center:"User Center",create_new_item:"Create Item",regular_item_desc:"Multi-page online documents",single_item_desc:"One-page online document",table_item:"Spreadsheet",table_item_desc:"Online spreadsheets",import_file_desc:"Import supported files",auto_create:"Auto Create",auto_create_desc:"Automatic Create",home_logo_title:"Online API & Technical Documentation",group:"group",item_group_desc:"Create groups/Manage groups",empty_team_member_tips:"No member data. You can try to add members by clicking on the top right corner",empty_team_item_tips:"There is no item data. You can try to bind items by clicking the upper right corner",update_user_name_tips:"Please enter your nickname below. It is recommended to use your real name so that other members can easily identify you when collaborating on items and documents",accessibility:"Accessibility",vip:"Vip",default_title:"Default title",doc_tool:"Document Tools",add_from_template:"Add from template",click_to_edit_page_title:"Click to edit the page title",select_catalog:"Select catalog",update_base_info:"Update base info",no_member_tips:"There is no team or member information, you can click the button above to add",select_member_before:"Select the member name added before",item_member:"Item Member",item_team_info:"Team info",copy_page:"Copy page",page_history_version:"Page history version",page_info:"Page info",sort_page:"Sort page",delete_page:"Delete page",update_item_base_info:"Update item info",attorn_item:"Attorn item",archive_item:"Archive item",delete_item:"Delete item",table_item_auto_save_tips:"Spreadsheet items will be saved automatically when you edit them",do_not_remind_again:"Don not remind me again",no_items:"No items",ai_assistant:"Ai assistant",create:"Create",search_keyword:"Please enter search keywords",add_sub_page:"Add Page",add_sub_cat:"Add Sub Folder",add_si_bling_cat:"Add Peer Folder",edt_cat:"Edit Folder",clone_move:"Clone/Move"}},FVf2:function(t,e){},Ffbd:function(t,e){},Fihv:function(t,e){},FuBv:function(t,e){},GFba:function(t,e){},Imfp:function(t,e){},J2yJ:function(t,e){},K2RQ:function(t,e){},MK3e:function(t,e){},Mxwu:function(t,e){},N2Ug:function(t,e){},NHnr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("woOf"),n=i.n(a),o=i("7+uW"),s={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var r=i("VU/8")({name:"app"},s,!1,function(t){i("9p//")},null,null).exports,l=i("/ocq"),c=i("//Fk"),m=i.n(c),d=i("mtWM"),_=i.n(d);_.a.defaults.timeout=6e4,_.a.defaults.baseURL=DocConfig.server,_.a.interceptors.request.use(function(t){return t},function(t){return m.a.reject(t)}),_.a.interceptors.response.use(function(t){if(t.config.data&&t.config.data.indexOf("redirect_login=false")>-1);else if(10102===t.data.error_code){var e=Ya.currentRoute.fullPath.repeat(1);if(e.indexOf("redirect=")>-1)return!1;Ya.replace({path:"/user/login",query:{redirect:e}})}return t},function(t){return m.a.reject(t.response)});var u=_.a,p=i("zL8q"),h=i.n(p),f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post",a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"form",o=DocConfig.server+t,s=localStorage.getItem("userinfo");if(s){var r=JSON.parse(s);r&&r.user_token&&(e.user_token=r.user_token)}var l={url:o,method:i,data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}};return"json"==n&&(l.data=e,l.headers["Content-Type"]="application/json"),new m.a(function(t,e){u(l).then(function(i){if(10102===i.data.error_code&&-1===i.config.data.indexOf("redirect_login=false")){var n=Ya.currentRoute.fullPath.repeat(1);if(n.indexOf("redirect=")>-1)return!1;Ya.replace({path:"/user/login",query:{redirect:n}}),e(new Error("登录态无效"))}if(a&&i.data&&0!==i.data.error_code)return p.MessageBox.alert(i.data.error_message),e(new Error("业务级别的错误"));t(i.data)},function(t){t.Cancel?console.log(t):e(t)}).catch(function(t){e(t)})})},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};f("/api/user/info",{redirect_login:!1},"post",!1).then(function(e){t&&t({data:e})})},v=function(){var t=localStorage.getItem("userinfo");if(t){var e=JSON.parse(t);if(e&&e.user_token)return e}return!1},b={name:"Index",data:function(){return{height:"",link:"",link_text:"",beian:""}},methods:{getHeight:function(){var t;window.innerHeight?t=window.innerHeight:document.body&&document.body.clientHeight&&(t=document.body.clientHeight),this.height=t+"px"},homePageSetting:function(){var t=this,e=DocConfig.server+"/api/common/homePageSetting";this.axios.post(e,this.form).then(function(e){0===e.data.error_code&&(t.beian=e.data.data.beian,2==e.data.data.home_page&&t.$router.replace({path:"/user/login"}),3==e.data.data.home_page&&e.data.data.home_item&&t.$router.replace({path:"/"+e.data.data.home_item}))})}},mounted:function(){var t=this;this.getHeight(),this.homePageSetting(),this.link="/user/login",this.link_text=this.$t("index_login_or_register"),g(function(e){0===e.data.error_code&&(t.link="/item/index",t.link_text=t.$t("my_item"))})}},w={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"body"},[i("div",{staticClass:"header"},[i("div",{staticClass:"header-wrap"},[t._m(0),t._v(" "),i("input",{attrs:{type:"checkbox",name:"",id:"mobile-menu-toggle",value:""}}),t._v(" "),t._m(1),t._v(" "),i("div",{staticClass:"nav"},[i("ul",[i("li",[i("router-link",{attrs:{to:t.link}},[t._v(t._s(t.link_text))])],1),t._v(" "),i("li",["zh-cn"==t.$lang?i("a",{attrs:{target:"_blank",href:"https://www.showdoc.cc/clients"}},[t._v("客户端")]):t._e()])])])])]),t._v(" "),i("div",{staticClass:"hbanner"},[i("div",{staticClass:"wrapper"},[i("div",{staticClass:"hbanner-txt"},[i("h2",[t._v("\n "+t._s(t.$t("section_description1_1"))+"\n "),i("br"),t._v(" "),i("font",{staticClass:"f-blue"},[t._v(t._s(t.$t("section_description1_2")))])],1),t._v(" "),i("div",{staticClass:"btns"},[i("a",{staticClass:"btn on",attrs:{href:"https://www.showdoc.cc/demo",target:"_blank"}},[t._v(t._s(t.$t("demo")))]),t._v(" "),i("a",{staticClass:"btn",attrs:{href:"https://www.showdoc.cc/help",target:"_blank"}},[t._v(t._s(t.$t("more")))])])]),t._v(" "),i("div",{staticClass:"hbanner-imgs"})])]),t._v(" "),i("div",{staticClass:"hrow hrow1"},[i("div",{staticClass:"wrapper"},[t._m(2),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title2")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description2_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description2_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow2"},[i("div",{staticClass:"wrapper"},[t._m(3),t._v(" "),i("div",{staticClass:"txt fl"},[i("h2",[t._v(t._s(t.$t("section_title3")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description3_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description3_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow3"},[i("div",{staticClass:"wrapper"},[t._m(4),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title4")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description4_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description4_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow4"},[i("div",{staticClass:"wrapper"},[t._m(5),t._v(" "),i("div",{staticClass:"txt fl"},[i("h2",[t._v(t._s(t.$t("section_title5")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[t._v(t._s(t.$t("section_description5")))])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow5"},[i("div",{staticClass:"wrapper"},[t._m(6),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title6")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description6_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description6_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow6"},[i("div",{staticClass:"wrapper"},[t._m(7),t._v(" "),i("div",{staticClass:"txt fl"},[i("h2",[t._v(t._s(t.$t("section_title7")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[t._v(t._s(t.$t("section_description7_1")))]),t._v(" "),i("p",[t._v(t._s(t.$t("section_description7_2")))])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow7"},[i("div",{staticClass:"wrapper"},[t._m(8),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title8")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[t._v(t._s(t.$t("section_description8_1")))]),t._v(" "),i("p",[t._v(t._s(t.$t("section_description8_2")))])])])])]),t._v(" "),i("div",{staticClass:"hfoot"},[i("div",{staticClass:"wrapper"},[i("h2",[t._v(t._s(t.$t("section_description9")))]),t._v(" "),t._m(9),t._v(" "),i("router-link",{staticClass:"btn",attrs:{to:"/user/login"}},[t._v(t._s(t.$t("section_title9")))])],1),t._v(" "),i("div",{staticClass:"copyright"},[i("a",{attrs:{href:"https://beian.miit.gov.cn/"}},[t._v(t._s(t.beian))])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"/"}},[e("div",{staticClass:"logo"},[e("img",{staticClass:"logo-img",attrs:{src:i("x0nN")}}),this._v(" "),e("span",{staticClass:"logo-title"},[this._v("ShowDoc")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"gh",attrs:{for:"mobile-menu-toggle"}},[e("span")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home2.png"}}),this._v(" "),e("div",{staticClass:"box"},[e("img",{attrs:{src:"static/imgs/home2-img.png"}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fr"},[e("img",{attrs:{src:"static/imgs/home3.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home4.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fr"},[e("img",{attrs:{src:"static/imgs/home5.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home6.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fr"},[e("img",{attrs:{src:"static/imgs/home7.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home8.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"case-logo"},[e("img",{attrs:{src:"static/imgs/case-logo/tencent.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/huawei_logo.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/baidu.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/jingdong.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/zijie.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/shunfeng.png"}})])}]};var y=i("VU/8")(b,w,!1,function(t){i("rpoe"),i("fGnW"),i("XuxQ"),i("u2hI")},"data-v-466bb2ea",null).exports,k=i("mvHQ"),C=i.n(k),x={name:"Login",components:{},data:function(){return{username:"",password:"",v_code_img:"",is_show_alert:!1,oauth2_entrance_tips:"",oauth2_url:DocConfig.server+"/api/ExtLogin/oauth2",captchaId:0,captcha:""}},methods:{onSubmit:function(){var t=this;if(!this.is_show_alert){if(this.$route.query.redirect){var e=decodeURIComponent(this.$route.query.redirect);if(e.search(/[^A-Za-z0-9/:\?\._\*\+\-]+.*/i)>-1||e.indexOf(".")>-1||e.indexOf("//")>-1)return this.$alert("illegal redirect"),!1}this.request("/api/user/loginByVerify",{username:this.username,password:this.password,captcha:this.captcha,captcha_id:this.captchaId,redirect_login:!1},"post",!1).then(function(e){0===e.error_code?t.actionAfterLogin(e.data):(t.changeVcodeImg(),t.is_show_alert=!0,t.$alert(e.error_message,{callback:function(){setTimeout(function(){t.is_show_alert=!1},500)}}))})}},actionAfterLogin:function(t){if(this.$route.query.redirect){var e=decodeURIComponent(this.$route.query.redirect);if(e.search(/[^A-Za-z0-9/:\?\._\*\+\-]+.*/i)>-1||e.indexOf(".")>-1||e.indexOf("//")>-1)return this.$alert("illegal redirect"),!1}localStorage.setItem("userinfo",C()(t));var i=decodeURIComponent(this.$route.query.redirect||"/item/index");this.$router.replace({path:i})},changeVcodeImg:function(){var t=this;this.request("/api/common/createCaptcha",{}).then(function(e){var i=e.data;DocConfig.server.indexOf("?")>-1?t.v_code_img=DocConfig.server+"/api/common/showCaptcha&captcha_id="+i.captcha_id+"&"+Date.parse(new Date):t.v_code_img=DocConfig.server+"/api/common/showCaptcha?captcha_id="+i.captcha_id+"&"+Date.parse(new Date),t.captchaId=i.captcha_id})},script_cron:function(){var t=DocConfig.server+"/api/ScriptCron/run";this.axios.get(t)},getOauth:function(){var t=this,e=DocConfig.server+"/api/user/oauthInfo";this.axios.get(e).then(function(e){0===e.data.error_code&&e.data.data.oauth2_open>0&&(t.oauth2_entrance_tips=e.data.data.oauth2_entrance_tips)})}},mounted:function(){var t=this;if(this.$route.query.redirect){var e=decodeURIComponent(this.$route.query.redirect);if(e.search(/[^A-Za-z0-9/:\?\._\*\+\-]+.*/i)>-1||e.indexOf(".")>-1||e.indexOf("//")>-1)return this.$alert("illegal redirect"),!1}for(var i=document.getElementsByClassName("v-modal-leave"),a=0;a-1?t.v_code_img=DocConfig.server+"/api/common/showCaptcha&captcha_id="+i.captcha_id+"&"+Date.parse(new Date):t.v_code_img=DocConfig.server+"/api/common/showCaptcha?captcha_id="+i.captcha_id+"&"+Date.parse(new Date),t.captchaId=i.captcha_id})}},mounted:function(){for(var t=document.getElementsByClassName("v-modal-leave"),e=0;e1,expression:"list && list.length > 1"}],staticClass:"tips"},[t._v("\n "+t._s(t.$t("draggable_tips"))+"\n ")]),t._v(" "),i("el-table-draggable",{attrs:{animate:"200"},on:{drop:t.onDropEnd}},[i("el-table",{staticStyle:{width:"100%"},attrs:{"show-header":!1,align:"left","empty-text":t.$t("item_group_empty_tips"),data:t.list,height:"400"}},[i("el-table-column",{attrs:{prop:"group_name",label:t.$t("group_name")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{staticClass:"cursor-move"},[i("i",{staticClass:"el-icon-sort font-bold \t"}),t._v(" "+t._s(e.row.group_name)+"\n ")])]}}])}),t._v(" "),i("el-table-column",{attrs:{width:"120",prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.edit(e.row)}}},[t._v(t._s(t.$t("edit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.del(e.row.id)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1)],1)],1),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("edit_group"),width:"500px",onCancel:function(){t.dialogFormVisible=!1},onOK:t.myFormSubmit}},[i("el-form",[i("el-form-item",[i("el-input",{attrs:{placeholder:"组名"},model:{value:t.MyForm.group_name,callback:function(e){t.$set(t.MyForm,"group_name",e)},expression:"MyForm.group_name"}})],1)],1),t._v(" "),i("div",[i("p",[t._v(t._s(t.$t("select_item")))]),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"show-header":!1,data:t.itemList,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_name",label:t.$t("item_name")}})],1)],1)],1):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var K=i("VU/8")(H,B,!1,function(t){i("ADz7"),i("FMeT")},"data-v-84ceb3ee",null).exports,G={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}},defaultItemType:{type:String||Number,required:!1,default:"1"},item_id:{type:String||Number,required:!1,default:0}},data:function(){return{infoForm:{item_name:"",item_description:"",item_domain:"",password:"",item_type:"1"},isOpenItem:!0}},methods:{formSubmit:function(){var t=this;if(!this.isOpenItem&&!this.infoForm.password)return this.$alert(this.$t("private_item_passwrod")),!1;this.isOpenItem&&(this.infoForm.password=""),this.item_id?this.request("/api/item/update",{item_id:this.item_id,item_name:this.infoForm.item_name,item_description:this.infoForm.item_description,item_domain:this.infoForm.item_domain,password:this.infoForm.password}).then(function(e){t.$message.success(t.$t("modify_success")),t.callback()}):this.request("/api/item/add",{item_type:this.infoForm.item_type,item_name:this.infoForm.item_name,item_description:this.infoForm.item_description,item_domain:this.infoForm.item_domain,password:this.infoForm.password},"post",!1).then(function(e){0===e.error_code?t.callback():t.$alert(e.error_message)})},getItemDetail:function(t){var e=this;this.request("/api/item/detail",{item_id:t}).then(function(t){var i=t.data;i.password?e.isOpenItem=!1:e.isOpenItem=!0,e.infoForm.item_name=i.item_name,e.infoForm.item_description=i.item_description,e.infoForm.item_domain=i.item_domain,e.infoForm.password=i.password,e.infoForm.item_type=i.item_type})}},mounted:function(){this.infoForm.item_type=this.defaultItemType,this.item_id&&this.getItemDetail(this.item_id)}},J={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.item_id?t.$t("update_base_info"):t.$t("create_new_item"),width:"550px",onOK:t.formSubmit}},[i("div",{staticClass:"p-6"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[i("el-radio-group",{model:{value:t.infoForm.item_type,callback:function(e){t.$set(t.infoForm,"item_type",e)},expression:"infoForm.item_type"}},[i("el-radio",{attrs:{label:"1"}},[t._v(t._s(t.$t("regular_item")))]),t._v(" "),i("el-radio",{attrs:{label:"4"}},[t._v(t._s(t.$t("table")))]),t._v(" "),i("el-radio",{attrs:{label:"2"}},[t._v("\n "+t._s(t.$t("single_item"))+"\n "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("single_item_tips"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1)],1)],1),t._v(" "),i("el-row",{staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v("  "+t._s(t.$t("item_name"))+" : ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{type:"text","auto-complete":"off"},model:{value:t.infoForm.item_name,callback:function(e){t.$set(t.infoForm,"item_name",e)},expression:"infoForm.item_name"}})],1)],1),t._v(" "),i("el-row",{staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v(t._s(t.$t("item_description"))+" : ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{type:"text","auto-complete":"off"},model:{value:t.infoForm.item_description,callback:function(e){t.$set(t.infoForm,"item_description",e)},expression:"infoForm.item_description"}})],1)],1),t._v(" "),i("el-row",{staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v(t._s(t.$t("accessibility"))+" : ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-select",{staticClass:"w-full",attrs:{placeholder:""},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[i("el-option",{attrs:{value:!0,label:t.$t("Open_item")}}),t._v(" "),i("el-option",{attrs:{value:!1,label:t.$t("private_item")}})],1)],1)],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!t.isOpenItem,expression:"!isOpenItem"}],staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v(" ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("visit_password")},model:{value:t.infoForm.password,callback:function(e){t.$set(t.infoForm,"password",e)},expression:"infoForm.password"}})],1)],1)],1)])],1)},staticRenderFns:[]};var W=i("VU/8")(G,J,!1,function(t){i("9caj")},"data-v-3f1d9359",null).exports,Y={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{api_key:"",api_token:""}},methods:{},mounted:function(){}},X={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("open_api"),width:"500px",onOK:t.callback}},[i("div",{staticClass:"ml-8"},[i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips1"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips2"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips3"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips4"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips5"))}})])])])],1)},staticRenderFns:[]};var Q=i("VU/8")(Y,X,!1,function(t){i("mFjg")},"data-v-4431724e",null).exports,Z={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{api_key:"",api_token:"",upload_url:DocConfig.server+"/api/import/auto",loading:"",user_token:""}},methods:{success:function(t){this.loading.close(),0===t.error_code?this.callback():this.$alert(t.error_message)},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){var t=v();this.user_token=t.user_token}},tt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("import_file"),width:"450px",onOK:t.callback}},[i("p",{staticClass:"tips"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips1"))}})]),t._v(" "),i("p",{staticClass:"text-center"},[i("el-upload",{staticClass:"upload-demo",attrs:{data:{user_token:t.user_token},drag:"",name:"file",action:t.upload_url,"on-success":t.success,"before-upload":t.beforeUpload,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1)])],1)},staticRenderFns:[]};var et=i("VU/8")(Z,tt,!1,function(t){i("/4UI")},"data-v-6ce16a76",null).exports,it={name:"SDropdown",props:{width:{type:String,required:!1,default:"300px"},title:{type:String,required:!1,default:""},titleIcon:{type:String,required:!1,default:"el-icon-s-platform"},placement:{type:String,required:!1,default:"bottom-start"},menuList:{type:Array,required:!1,default:[]},menuListGroup:{type:Array,required:!1,default:[]}},data:function(){return{showPopover:!1}},methods:{}},at={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-popover",{attrs:{placement:t.placement,trigger:"hover"},model:{value:t.showPopover,callback:function(e){t.showPopover=e},expression:"showPopover"}},[i("div",{staticClass:"more-card",style:{width:t.width}},[i("div",{staticClass:"more-card-header"},[i("i",{class:t.titleIcon+" mr-3"}),i("span",[t._v(t._s(t.title))]),t._v(" "),i("i",{staticClass:"close-btn fas fa-close",on:{click:function(e){t.showPopover=!1}}})]),t._v(" "),t._l(t.menuListGroup,function(e){return t.menuListGroup?[i("div",{staticClass:"group-bar"},[t._v(t._s(e.group_name))]),t._v(" "),t._l(e.listMenu,function(e){return i("div",{staticClass:"more-card-item",on:{click:e.method}},[i("div",{staticClass:"more-card-item-left"},[i("div",{staticClass:"more-card-item-icon"},[i("i",{class:e.icon})])]),t._v(" "),i("div",{staticClass:"more-card-item-right"},[i("div",{staticClass:"right-div"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"desc"},[t._v("\n "+t._s(e.desc)+"\n ")])])])])})]:t._e()}),t._v(" "),t._l(t.menuList,function(e){return t.menuList?[i("div",{staticClass:"more-card-item",on:{click:e.method}},[i("div",{staticClass:"more-card-item-left"},[i("div",{staticClass:"more-card-item-icon"},[i("i",{class:e.icon})])]),t._v(" "),i("div",{staticClass:"more-card-item-right"},[i("div",{staticClass:"right-div"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"desc"},[t._v("\n "+t._s(e.desc)+"\n ")])])])])]:t._e()})],2),t._v(" "),i("div",{attrs:{slot:"reference"},slot:"reference"},[t._t("default")],2)])},staticRenderFns:[]};var nt=i("VU/8")(it,at,!1,function(t){i("dR3X")},"data-v-0c4682f6",null).exports,ot={name:"Login",components:{Basic:W,OpenApi:Q,Import:et,SDropdown:nt},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{showBasic:!1,showImportFile:!1,defaultItemType:"1",showOpenApi:!1,showPopover:!1,menuListGroup:[]}},methods:{regularItem:function(){this.defaultItemType="1",this.showBasic=!0},singleItem:function(){this.defaultItemType="2",this.showBasic=!0},tableItem:function(){this.defaultItemType="4",this.showBasic=!0},importFile:function(){this.showImportFile=!0},autoCreate:function(){this.showOpenApi=!0}},mounted:function(){this.menuListGroup=[{group_name:this.$t("create"),listMenu:[{title:this.$t("regular_item"),icon:"fas fa-notes",desc:this.$t("regular_item_desc"),method:this.regularItem},{title:this.$t("single_item"),icon:"fas fa-file",desc:this.$t("single_item_desc"),method:this.singleItem},{title:this.$t("table_item"),icon:"fas fa-table",desc:this.$t("table_item_desc"),method:this.tableItem}]},{group_name:this.$t("import"),listMenu:[{title:this.$t("import_file"),icon:"fas fa-upload",desc:this.$t("import_file_desc"),method:this.importFile},{title:this.$t("auto_create"),icon:"fas fa-terminal",desc:this.$t("auto_create_desc"),method:this.autoCreate}]}]},beforeDestroy:function(){}},st={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"create-item-btn-div"},[i("div",{staticClass:"left"},[i("div",{staticClass:"create-item-left-btn",on:{click:t.regularItem}},[i("i",{staticClass:"mr-3 fas fa-plus"}),t._v(" "),i("span",[t._v(t._s(t.$t("create_new_item")))])])]),t._v(" "),i("div",{staticClass:"right"},[i("SDropdown",{attrs:{title:t.$t("create_new_item"),titleIcon:"fas fa-plus",menuListGroup:t.menuListGroup,placement:"top-start"}},[i("div",{staticClass:"create-item-right-btn"},[i("i",{staticClass:"fas fa-ellipsis"})])])],1),t._v(" "),t.showBasic?i("Basic",{attrs:{callback:function(){t.showBasic=!1,t.callback()},defaultItemType:t.defaultItemType}}):t._e(),t._v(" "),t.showImportFile?i("Import",{attrs:{callback:function(){t.showImportFile=!1,t.callback()}}}):t._e(),t._v(" "),t.showOpenApi?i("OpenApi",{attrs:{callback:function(){t.showOpenApi=!1,t.callback()}}}):t._e()],1)},staticRenderFns:[]};var rt=i("VU/8")(ot,st,!1,function(t){i("VlEL")},"data-v-249d8bdc",null).exports,lt={components:{},props:{callback:{type:Function,required:!1,default:function(){}},team_id:{type:Number,required:!1,default:0},team_manage:{type:Number||String,required:!1,default:1}},data:function(){return{MyForm:{item_id:""},list:[],dialogFormVisible:!1,itemList:[],teamItemMembers:[],dialogFormTeamMemberVisible:!1,authorityOptions:[{label:this.$t("edit_member"),value:"1"},{label:this.$t("readonly_member"),value:"0"},{label:this.$t("item_admin"),value:"2"}],catalogs:[]}},methods:{geList:function(){var t=this;this.request("/api/teamItem/getListByTeam",{team_id:this.team_id}).then(function(e){t.list=e.data})},getItemList:function(){var t=this;this.request("/api/item/myList",{original:1}).then(function(e){t.itemList=e.data})},myFormSubmit:function(){var t=this;this.request("/api/teamItem/save",{team_id:this.team_id,item_id:this.MyForm.item_id}).then(function(e){t.dialogFormVisible=!1,t.geList(),t.MyForm={}})},deleteTeamItem:function(t){var e=this;this.$confirm(this.$t("confirm_unassign")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/teamItem/delete",{id:t}).then(function(t){e.geList()})})},addTeamItem:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})},getTeamItemMember:function(t){var e=this;this.dialogFormTeamMemberVisible=!0,this.getCatalog(t),this.request("/api/teamItemMember/getList",{item_id:t,team_id:this.team_id}).then(function(t){e.teamItemMembers=t.data})},changeTeamItemMemberGroup:function(t,e){var i=this,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.request("/api/teamItemMember/save",{member_group_id:t,id:e}).then(function(t){a&&i.$message(i.$t("auth_success"))})},changeTeamItemMemberCat:function(t,e){var i=this;this.request("/api/teamItemMember/save",{id:e,cat_id:t}).then(function(t){i.$message(i.$t("cat_success"))})},getCatalog:function(t){var e=this;this.request("/api/catalog/catListGroup",{item_id:t}).then(function(t){var i=t.data;i.unshift({cat_id:"0",cat_name:e.$t("all_cat")}),e.catalogs=i})},setAllMemberRead:function(){var t=this;this.teamItemMembers.forEach(function(e){t.changeTeamItemMemberGroup(0,e.id,!1),setTimeout(function(){t.getTeamItemMember(e.item_id)},500)})}},mounted:function(){this.geList(),this.getItemList()}},ct={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("SDialog",{attrs:{title:t.$t("item_manage"),btn1Text:t.team_manage?t.$t("binding_item"):"",btn1Icon:"el-icon-plus",btn1Medthod:t.addTeamItem,onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"40%"}},[i("div",[i("el-table",{attrs:{align:"left",data:t.list,"empty-text":t.$t("empty_team_item_tips")}},[i("el-table-column",{attrs:{prop:"item_name",label:t.$t("item_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("Join_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",width:"210",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("router-link",{attrs:{to:"/"+e.row.item_id,target:"_blank"}},[t._v(t._s(t.$t("check_item")))]),t._v(" "),t.team_manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.getTeamItemMember(e.row.item_id)}}},[t._v(t._s(t.$t("member_authority")))]):t._e(),t._v(" "),t.team_manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTeamItem(e.row.id)}}},[t._v(t._s(t.$t("unassign")))]):t._e()]}}])})],1)],1)]),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("item"),onCancel:function(){t.dialogFormVisible=!1},showCancel:!1,onOK:t.myFormSubmit,width:"300px"}},[i("el-form",[i("el-select",{attrs:{multiple:"",filterable:"",placeholder:t.$t("please_choose")},model:{value:t.MyForm.item_id,callback:function(e){t.$set(t.MyForm,"item_id",e)},expression:"MyForm.item_id"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("br"),t._v(" "),i("router-link",{attrs:{to:"/item/index",target:"_blank"}},[t._v(t._s(t.$t("go_to_new_an_item")))])],1):t._e(),t._v(" "),t.dialogFormTeamMemberVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormTeamMemberVisible=!1},showCancel:!1,onOK:function(){t.dialogFormTeamMemberVisible=!1},top:"10vh",title:t.$t("adjust_member_authority"),width:"600px"}},[i("p",[i("el-button",{attrs:{type:"text"},on:{click:t.setAllMemberRead}},[t._v(" "+t._s(t.$t("all_member_read")))])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":t.$t("team_member_empty_tips"),data:t.teamItemMembers}},[i("el-table-column",{attrs:{prop:"member_username",label:t.$t("username")}}),t._v(" "),i("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberGroup(i,e.row.id)}},model:{value:e.row.member_group_id,callback:function(i){t.$set(e.row,"member_group_id",i)},expression:"scope.row.member_group_id"}},t._l(t.authorityOptions,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)]}}],null,!1,3630509590)}),t._v(" "),i("el-table-column",{attrs:{prop:"cat_id",label:t.$t("catalog"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.member_group_id<=1?i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberCat(i,e.row.id)}},model:{value:e.row.cat_id,callback:function(i){t.$set(e.row,"cat_id",i)},expression:"scope.row.cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1):t._e()]}}],null,!1,2162764861)}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}})],1),t._v(" "),i("br"),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("team_member_authority_tips")))])],1):t._e()],1)},staticRenderFns:[]};var mt=i("VU/8")(lt,ct,!1,function(t){i("f6dU"),i("intr")},"data-v-3abc3d56",null).exports,dt={components:{},props:{callback:{type:Function,required:!1,default:function(){}},team_id:{type:Number,required:!1,default:0},team_manage:{type:Number||String,required:!1,default:1}},data:function(){return{MyForm:{},list:[],dialogFormVisible:!1,myAllList:[],memberOptions:[]}},methods:{geList:function(){var t=this;this.request("/api/teamMember/getList",{team_id:this.team_id}).then(function(e){t.list=e.data})},reSetMyForm:function(){this.MyForm={id:"",member_username:"",team_member_group_id:"1"}},myFormSubmit:function(){var t=this;this.request("/api/teamMember/save",{team_id:this.team_id,member_username:this.MyForm.member_username,team_member_group_id:this.MyForm.team_member_group_id},"post",!1).then(function(e){0===e.error_code?(t.dialogFormVisible=!1,t.geList(),t.reSetMyForm()):10310===e.error_code?t.$alert('你添加的协作成员数量超出限制(所有团队成员以及所有项目的单独成员加起来后去重,就是协作成员数)。你可以开通高级版以获取更多配额。点此查看不同账户类型的额度限制差异,也可以点此去升级账户类型
如果你现在不方便处理,你可以等会再自行回到项目列表页,点击右上角的用户中心去升级。',{dangerouslyUseHTMLString:!0}):t.$alert(e.error_message)})},deleteTeamMember:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/teamMember/delete",{id:t}).then(function(t){e.geList()})})},addTeamMember:function(){this.reSetMyForm(),this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})},getMyAllList:function(){var t=this;this.request("/api/member/getMyAllList",{}).then(function(e){t.myAllList=e.data})},dropdownCallback:function(t){this.MyForm.member_username=t},getAllUser:function(){var t=this;this.request("/api/user/allUser",{username:""}).then(function(e){for(var i=e.data,a=[],n=0;n0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.edit(e.row)}}},[t._v(t._s(t.$t("edit")))]):t._e(),t._v(" "),e.row.team_manage>0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.attornDialog(e.row)}}},[t._v(t._s(t.$t("attorn")))]):t._e(),t._v(" "),e.row.team_manage>0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTeam(e.row.id)}}},[t._v(t._s(t.$t("delete")))]):t._e(),t._v(" "),e.row.team_manage<=0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.exitTeam(e.row.id)}}},[t._v(t._s(t.$t("team_exit")))]):t._e()]}}])})],1)],1)]),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormVisible=!1},onOK:t.myFormSubmit,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("team_name")+":"}},[i("el-input",{model:{value:t.MyForm.team_name,callback:function(e){t.$set(t.MyForm,"team_name",e)},expression:"MyForm.team_name"}})],1)],1)],1):t._e(),t._v(" "),t.dialogAttornVisible?i("SDialog",{attrs:{title:t.$t("attorn"),onCancel:function(){t.dialogAttornVisible=!1},onOK:t.attorn,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("attorn_username"),"auto-complete":"new-password"},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password","auto-complete":"new-password",placeholder:t.$t("input_login_password")},model:{value:t.attornForm.password,callback:function(e){t.$set(t.attornForm,"password",e)},expression:"attornForm.password"}})],1)],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v("\n "+t._s(t.$t("attornTeamTips"))+"\n ")])],1):t._e(),t._v(" "),t.dialogItemVisible?i("ItemCom",{attrs:{team_id:t.currentOperationRow.id,team_manage:t.currentOperationRow.team_manage,callback:function(){t.dialogItemVisible=!1,t.geList()}}}):t._e(),t._v(" "),t.dialogMemberVisible?i("MemberCom",{attrs:{team_id:t.currentOperationRow.id,team_manage:t.currentOperationRow.team_manage,callback:function(){t.dialogMemberVisible=!1,t.geList()}}}):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var ft=i("VU/8")(pt,ht,!1,function(t){i("+9lI"),i("75Ik")},"data-v-43b0e000",null).exports,gt={name:"",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{page:1,count:5,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0,used_flow:0,uploadUrl:DocConfig.server+"/api/page/upload",dialogFormVisible:!1,loading:"",user_token:""}},methods:{getList:function(){var t=this;this.request("/api/attachment/getMyList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(e){var i=e.data;t.dataList=i.list,t.total=parseInt(i.total),t.used=i.used_m,t.used_flow=i.used_flow_m})},handleCurrentChange:function(t){this.page=t,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(t){window.open(t.url)},deleteRow:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/attachment/deleteMyAttachment",{file_id:t.file_id}).then(function(t){e.$message.success(e.$t("op_success")),e.getList()})})},goback:function(){this.$router.push({path:"/item/index"})},uploadCallback:function(t){this.loading.close(),t.error_message&&this.$alert(t.error_message),this.dialogFormVisible=!1,this.getList()},copy:function(t){var e=this;this.$copyText(t.url).then(function(t){e.$message.success(e.$t("copy_success"))})},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){this.getList();var t=v();this.user_token=t.user_token},beforeDestroy:function(){}},vt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("SDialog",{attrs:{title:t.$t("my_attachment"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,top:"10vh",width:"60%"}},[i("div",[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("display_name")},model:{value:t.display_name,callback:function(e){t.display_name=e},expression:"display_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-select",{attrs:{placeholder:""},model:{value:t.attachment_type,callback:function(e){t.attachment_type=e},expression:"attachment_type"}},[i("el-option",{attrs:{label:t.$t("all_attachment_type"),value:"-1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("image"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("general_attachment"),value:"2"}})],1)],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){t.dialogFormVisible=!0}}},[t._v(t._s(t.$t("upload")))])],1)],1),t._v(" "),i("P",[t._v(t._s(t.$t("accumulated_used_sapce"))+" "+t._s(t.used)+"M ,\n "+t._s(t.$t("month_flow"))+" "+t._s(t.used_flow)+"M")]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList}},[i("el-table-column",{attrs:{prop:"file_id",label:t.$t("file_id")}}),t._v(" "),i("el-table-column",{attrs:{prop:"display_name",label:t.$t("display_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_type",label:t.$t("file_type"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_size_m",label:t.$t("file_size_m"),width:"80"}}),t._v(" "),i("el-table-column",{attrs:{prop:"visit_times",label:t.$t("visit_times")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"100"}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.operation},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.visit(e.row)}}},[t._v(t._s(t.$t("visit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.copy(e.row)}}},[t._v(t._s(t.$t("copy_link")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteRow(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)]),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("upload"),onCancel:function(){t.dialogFormVisible=!1},onOK:function(){t.dialogFormVisible=!1},width:"400px"}},[i("p",[i("el-upload",{attrs:{data:{user_token:t.user_token},drag:"",name:"file",action:t.uploadUrl,"before-upload":t.beforeUpload,"on-success":t.uploadCallback,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1)]):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var bt=i("VU/8")(gt,vt,!1,function(t){i("voUU")},"data-v-4d393d66",null).exports,wt={name:"",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{page:1,count:5,total:0,announcementList:[],remindList:[],dtab:"remindList"}},methods:{getAnnouncementList:function(){var t=this;this.request("/api/message/getAnnouncementList",{}).then(function(e){var i=e.data;t.announcementList=i,i.map(function(e){t.setRead(e.from_uid,e.message_content_id)})})},getRemindList:function(){var t=this;this.request("/api/message/getRemindList",{page:this.page,count:this.count}).then(function(e){var i=e.data.list;t.total=e.data.total,t.remindList=[],i.map(function(e){t.remindList.push(e),t.setRead(e.from_uid,e.message_content_id)})})},setRead:function(t,e){e&&this.request("/api/message/setRead",{message_content_id:e,from_uid:t}).then(function(t){})},goback:function(){this.$router.push({path:"/item/index"})},visit:function(t){window.open(t)},tabClick:function(t){t.name},visitPage:function(t,e){var i=this.$router.resolve({path:"/"+t+"/"+e});window.open(i.href,"_blank")},handleCurrentChange:function(t){this.page=t,this.getRemindList()},getUnread:function(){var t=this;this.request("/api/message/getUnread",{},"post",!1).then(function(e){var i=e.data;i.remind&&i.remind.id,i.announce&&i.announce.id&&(t.$route.query.dtab||(t.dtab="announcementList"))})}},mounted:function(){this.getRemindList(),this.getAnnouncementList(),this.$route.query.dtab&&(this.dtab=this.$route.query.dtab),this.getUnread()},beforeDestroy:function(){}},yt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("SDialog",{attrs:{title:t.$t("my_notice"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,top:"10vh"}},[i("div",[i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.tabClick},model:{value:t.dtab,callback:function(e){t.dtab=e},expression:"dtab"}},[i("el-tab-pane",{attrs:{label:t.$t("system_reminder"),name:"remindList"}},[i("el-table",{attrs:{data:t.remindList}},[i("el-table-column",{attrs:{prop:"addtime",label:t.$t("send_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"message_content",label:t.$t("content")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",["create"!=e.row.action_type&&"update"!=e.row.action_type||"page"!=e.row.object_type?t._e():i("div",[i("div",[t._v("\n "+t._s(e.row.from_name)+" "+t._s(t.$t("update_the_page"))+"\n "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.visitPage(e.row.page_data.item_id,e.row.page_data.page_id)}}},[t._v(t._s(e.row.page_data.page_title))]),t._v(" "),0==e.row.status?i("el-badge",{staticClass:"mark",attrs:{value:"new"}}):t._e()],1),t._v(" "),e.row.message_content?i("div",[t._v("\n "+t._s(t.$t("update_remark"))+":\n "),i("span",[t._v(t._s(e.row.message_content))])]):t._e()]),t._v(" "),"vip"==e.row.object_type?i("div",[t._v("\n 你在showdoc购买的付费版资格很快过期了,你可以"),i("a",{attrs:{href:"/user/setting",target:"_blank"}},[t._v("点此进入用户中心")]),t._v("进行续费 (如已续费请忽略该通知)\n "),0==e.row.status?i("el-badge",{staticClass:"mark",attrs:{value:"new"}}):t._e()],1):t._e()])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("system_announcement"),name:"announcementList"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.announcementList}},[i("el-table-column",{attrs:{prop:"addtime",label:t.$t("send_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"message_content",label:t.$t("content")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{domProps:{innerHTML:t._s(e.row.message_content)}}),t._v(" "),0==e.row.status?i("el-badge",{staticClass:"mark",attrs:{value:"new"}}):t._e()]}}])})],1)],1)],1)],1)]),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var kt=i("VU/8")(wt,yt,!1,function(t){i("VJJ0")},"data-v-3c88af2a",null).exports,$t=i("Xxa5"),Ct=i.n($t),xt=i("exGp"),It=i.n(xt),St={name:"Feedback",props:{callback:""},data:function(){return{msg:"反馈"}},methods:{toLink:function(){var t=this;return It()(Ct.a.mark(function e(){return Ct.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.toOutLink("https://github.com/star7th/showdoc/issues");case 1:case"end":return e.stop()}},e,t)}))()}}},Ft={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{title:t.$t("feedback"),onCancel:t.callback,onOK:t.toLink,titleIcon:"fas fa-info-circle",okText:"去github开源仓库",width:"450px"}},[i("p",[t._v("你正在使用免费开源版showdoc,如有问题或者建议,请到github提issue:")]),t._v(" "),i("p",[i("a",{attrs:{href:"https://github.com/star7th/showdoc/issues",target:"_blank"}},[t._v("https://github.com/star7th/showdoc/issues")])]),t._v(" "),i("p",[t._v("如果你觉得showdoc好用,不妨给开源项目点一个star。良好的关注度和参与度有助于开源项目的长远发展。")])])],1)},staticRenderFns:[]};var Lt={name:"HeaderRight",components:{Team:ft,Attachment:bt,Message:kt,UserSetting:q,Feedback:i("VU/8")(St,Ft,!1,function(t){i("h3ci")},"data-v-ecfae78c",null).exports,SDropdown:nt},props:{isAdmin:{type:Boolean,required:!1,default:!1}},data:function(){return{msg:"HeaderRight",showTeam:!1,showAttachment:!1,showMessage:!1,showUserSetting:!1,showFeedback:!1,menuList:[]}},methods:{toPath:function(t){this.$router.push({path:t})}},mounted:function(){var t=this;this.menuList=[{title:"RunApi",icon:"fas fa-terminal",desc:"自动生成 API 接口文档",method:function(){t.toOutLink("https://www.showdoc.com.cn/runapi")}},{title:"推送服务",icon:"fas fa-car-side",desc:"从服务器推送消息到手机的工具",method:function(){t.toOutLink("https://push.showdoc.com.cn")}},{title:"返回首页",icon:"fas fa-backward",desc:"回到showdoc官网首页",method:function(){t.$router.push({path:"/"})}}]}},Tt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header-right float-right mt-6 mr-10"},[i("div",[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("feedback"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showFeedback=!0}}},[i("i",{staticClass:"fas fa-headphones"})])]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("my_attachment"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showAttachment=!0}}},[i("i",{staticClass:"fas fa-folder-arrow-up"})])]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("my_notice"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(){t.$store.dispatch("changeNewMsg",0),t.showMessage=!0}}},[i("el-badge",{attrs:{value:t.$store.state.new_msg?"New":""}},[i("i",{staticClass:"fas fa-message"})])],1)]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("team_mamage"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showTeam=!0}}},[i("i",{staticClass:"fas fa-users"})])]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("user_center"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showUserSetting=!0}}},[i("i",{staticClass:"fas fa-user"})])]),t._v(" "),"zh-cn"==t.$lang?i("el-tooltip",{attrs:{effect:"dark",content:"客户端",placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/clients")}}},[i("i",{staticClass:"fas fa-laptop-arrow-down"})])]):t._e(),t._v(" "),t.isAdmin?i("el-tooltip",{attrs:{effect:"dark",content:t.$t("background"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){return t.toPath("/admin/index")}}},[i("i",{staticClass:"fas fa-gear"})])]):t._e(),t._v(" "),"zh-cn"==t.$lang?i("div",{staticClass:"inline"},[i("SDropdown",{attrs:{title:"更多产品功能",titleIcon:"fas fa-ellipsis",menuList:t.menuList,width:"270px"}},[i("div",{staticClass:"icon-item"},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"fas fa-ellipsis"})])])])],1):t._e()],1),t._v(" "),t.showTeam?i("Team",{attrs:{callback:function(){t.showTeam=!1}}}):t._e(),t._v(" "),t.showAttachment?i("Attachment",{attrs:{callback:function(){t.showAttachment=!1}}}):t._e(),t._v(" "),t.showMessage?i("Message",{attrs:{callback:function(){t.showMessage=!1}}}):t._e(),t._v(" "),t.showUserSetting?i("UserSetting",{attrs:{callback:function(){t.showUserSetting=!1}}}):t._e(),t._v(" "),t.showFeedback?i("Feedback",{attrs:{callback:function(){t.showFeedback=!1}}}):t._e()],1)},staticRenderFns:[]};var Mt=i("VU/8")(Lt,Tt,!1,function(t){i("bOhL")},"data-v-be2d57d8",null).exports,qt=i("Dd8w"),Ot=i.n(qt),Pt={name:"",components:{TextHighlight:i("CyOM").a},props:{keyword:"",itemList:[]},data:function(){return{showLoading:!1,queries:[],itemResultList:[]}},watch:{keyword:function(t){this.queries=[],this.queries.push(this.keyword),this.itemResultList=[],this.searchItems()}},methods:{searchItems:function(){var t=this;return It()(Ct.a.mark(function e(){var i,a,n,o,s,r,l;return Ct.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.showLoading=!0,i=0;case 2:if(!(i-1&&(n=1),e.next=10,t.request("/api/item/search",{keyword:t.keyword,item_id:a.item_id});case 10:r=e.sent,(l=r.data)&&l.pages&&l.pages.length>0&&(o=1,s=l.pages),(n||o)&&t.itemResultList.push(Ot()({},a,{pages:s}));case 14:i++,e.next=2;break;case 17:t.showLoading=!1;case 18:case"end":return e.stop()}},e,t)}))()},toOneItem:function(t){var e="/"+(t.item_domain?t.item_domain:t.item_id),i=this.$router.resolve({path:e});window.open(i.href,"_blank")},toOnePage:function(t){var e="/"+t.item_id+"/"+t.page_id,i=this.$router.resolve({path:e});window.open(i.href,"_blank")}},mounted:function(){this.queries=[],this.queries.push(this.keyword),this.searchItems()},beforeDestroy:function(){}},Dt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("div",{staticClass:"item-list"},t._l(t.itemResultList,function(e){return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:e.item_id,staticClass:"item-list-one"},[i("div",{staticClass:"item-title",on:{click:function(i){return t.toOneItem(e)}}},[i("div",{staticClass:"left float-left"},[i("i",{staticClass:"item-icon el-icon-document"}),t._v(" "),i("text-highlight",{attrs:{queries:t.queries}},[t._v(t._s(e.item_name))])],1)]),t._v(" "),i("div",{staticClass:"item-page-content"},t._l(e.pages,function(e){return i("div",{key:e.page_id},[i("div",{staticClass:"page-title",on:{click:function(i){return t.toOnePage(e)}}},[i("i",{staticClass:"item-icon el-icon-document"}),t._v(" "),i("text-highlight",{attrs:{queries:t.queries}},[t._v(t._s(e.page_title))])],1),t._v(" "),i("div",{staticClass:"search-content break-all"},[i("text-highlight",{attrs:{queries:t.queries}},[t._v(t._s(e.search_content))])],1)])}),0)])}),0),t._v(" "),t._l(t.itemResultList,function(e){return t._e()}),t._v(" "),t.showLoading?i("div",{staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"})]):t._e()],2)},staticRenderFns:[]};var Vt=i("VU/8")(Pt,Dt,!1,function(t){i("Nf2D")},"data-v-c532acbe",null).exports,jt={name:"",components:{Team:ft},props:{callback:function(){},item_id:0},data:function(){return{MyForm:{username:"",cat_id:"",member_group_id:"1"},MyForm2:{team_id:""},members:[],dialogFormVisible:!1,dialogFormTeamVisible:!1,dialogFormTeamMemberVisible:!1,teams:[],teamItems:[],teamItemMembers:[],authorityOptions:[{label:this.$t("edit_member"),value:"1"},{label:this.$t("readonly_member"),value:"0"},{label:this.$t("item_admin"),value:"2"}],catalogs:[],myAllList:[],showTeam:!1,memberOptions:[]}},methods:{getMembers:function(){var t=this;this.request("/api/member/getList",{item_id:this.item_id}).then(function(e){var i=e.data;t.members=i})},getTeams:function(){var t=this;this.request("/api/team/getList",{}).then(function(e){var i=e.data;t.teams=i})},getTeamItem:function(){var t=this;this.request("/api/teamItem/getList",{item_id:this.item_id}).then(function(e){var i=e.data;t.teamItems=i})},getTeamItemMember:function(t){var e=this;this.dialogFormTeamMemberVisible=!0,this.request("/api/teamItemMember/getList",{item_id:this.item_id,team_id:t}).then(function(t){var i=t.data;e.teamItemMembers=i})},myFormSubmit:function(){var t=this;this.request("/api/member/save",{item_id:this.item_id,username:this.MyForm.username,cat_id:this.MyForm.cat_id,member_group_id:this.MyForm.member_group_id},"post",!1).then(function(e){0===e.error_code?(t.dialogFormVisible=!1,t.getMembers(),t.MyForm.username=""):10310===e.error_code?t.$alert('你添加的协作成员数量超出限制(所有团队成员以及所有项目的单独成员加起来后去重,就是协作成员数)。你可以开通高级版以获取更多配额。点此查看不同账户类型的额度限制差异,也可以点此去升级账户类型
如果你现在不方便处理,你可以等会再自行回到项目列表页,点击右上角的用户中心去升级。',{dangerouslyUseHTMLString:!0}):t.$alert(e.error_message)})},addTeam:function(){var t=this;this.request("/api/teamItem/save",{item_id:this.item_id,team_id:this.MyForm2.team_id}).then(function(e){t.dialogFormTeamVisible=!1,t.getTeamItem(),t.MyForm.team_id=""})},deleteMember:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/member/delete",{item_id:e.item_id,item_member_id:t}).then(function(t){e.getMembers()})})},deleteTeam:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/teamItem/delete",{id:t}).then(function(t){e.getTeamItem()})})},changeTeamItemMemberGroup:function(t,e){var i=this;this.request("/api/teamItemMember/save",{member_group_id:t,id:e}).then(function(t){i.$message(i.$t("auth_success"))})},getCatalog:function(){var t=this;this.request("/api/catalog/catListGroup",{item_id:this.item_id}).then(function(e){var i=e.data;i.unshift({cat_id:"0",cat_name:t.$t("all_cat")}),t.catalogs=i})},changeTeamItemMemberCat:function(t,e){var i=this;this.request("/api/teamItemMember/save",{cat_id:t,id:e}).then(function(t){i.$message(i.$t("cat_success"))})},memberGroupText:function(t,e){return"2"==t?this.$t("item_admin"):"1"==t?this.$t("edit")+"/"+this.$t("catalog")+":"+e:this.$t("readonly")+"/"+this.$t("catalog")+":"+e},getMyAllList:function(){var t=this;this.request("/api/member/getMyAllList",{}).then(function(e){t.myAllList=e.data})},dropdownCallback:function(t){this.MyForm.username=t},getAllUser:function(){var t=this;this.request("/api/user/allUser",{username:""}).then(function(e){for(var i=e.data,a=[],n=0;n0?i("h4",[t._v(t._s(t.$t("item_member")))]):t._e(),t._v(" "),t.members.length>0?i("el-table",{staticClass:"mb-8",staticStyle:{width:"100%"},attrs:{align:"left",data:t.members}},[i("el-table-column",{attrs:{prop:"username",label:t.$t("member_username")}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:t.$t("name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.memberGroupText(e.row.member_group_id,e.row.cat_name))+"\n ")]}}],null,!1,2567364919)}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteMember(e.row.item_member_id)}}},[t._v(t._s(t.$t("delete")))])]}}],null,!1,1205408727)})],1):t._e(),t._v(" "),t.teamItems.length>0?i("h4",[t._v(t._s(t.$t("item_team_info")))]):t._e(),t._v(" "),t.teamItems.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.teamItems}},[i("el-table-column",{attrs:{prop:"team_name",label:t.$t("team_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.getTeamItemMember(e.row.team_id)}}},[t._v(t._s(t.$t("member_authority")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTeam(e.row.id)}}},[t._v(t._s(t.$t("delete")))])]}}],null,!1,2799852319)})],1):t._e(),t._v(" "),0==t.members.length&&0==t.teamItems.length?i("p",{staticClass:"v3-color-aux"},[t._v("\n "+t._s(t.$t("no_member_tips"))+"\n ")]):t._e()],1),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormVisible=!1},title:t.$t("add_member"),width:"400px",onOK:function(){t.myFormSubmit()}}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("member_username")+":"}},[i("el-select",{attrs:{multiple:"",filterable:"","reserve-keyword":"",placeholder:""},model:{value:t.MyForm.username,callback:function(e){t.$set(t.MyForm,"username",e)},expression:"MyForm.username"}},t._l(t.memberOptions,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),i("el-form-item",[i("el-radio",{attrs:{label:"1"},model:{value:t.MyForm.member_group_id,callback:function(e){t.$set(t.MyForm,"member_group_id",e)},expression:"MyForm.member_group_id"}},[t._v(t._s(t.$t("edit_member")))]),t._v(" "),i("el-radio",{attrs:{label:"0"},model:{value:t.MyForm.member_group_id,callback:function(e){t.$set(t.MyForm,"member_group_id",e)},expression:"MyForm.member_group_id"}},[t._v(t._s(t.$t("readonly_member")))]),t._v(" "),i("el-radio",{attrs:{label:"2"},model:{value:t.MyForm.member_group_id,callback:function(e){t.$set(t.MyForm,"member_group_id",e)},expression:"MyForm.member_group_id"}},[t._v(t._s(t.$t("item_admin")))])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.MyForm.member_group_id<2,expression:"MyForm.member_group_id < 2"}],attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("all_cat2")},model:{value:t.MyForm.cat_id,callback:function(e){t.$set(t.MyForm,"cat_id",e)},expression:"MyForm.cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1),t._v(" "),i("p",{staticClass:"v3-font-size-sm v3-color-aux"},[t._v("\n "+t._s(t.$t("member_authority_tips"))+"\n ")])],1):t._e(),t._v(" "),t.dialogFormTeamVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormTeamVisible=!1},title:t.$t("member_manage"),width:"400px",onOK:function(){t.addTeam()},btn1Text:t.$t("go_to_new_an_team"),btn1Icon:"el-icon-plus",btn1Medthod:function(){t.showTeam=!0}}},[i("div",[i("el-form",[i("el-form-item",{attrs:{label:t.$t("c_team")}},[i("el-select",{attrs:{filterable:""},model:{value:t.MyForm2.team_id,callback:function(e){t.$set(t.MyForm2,"team_id",e)},expression:"MyForm2.team_id"}},t._l(t.teams,function(t){return i("el-option",{key:t.team_name,attrs:{label:t.team_name,value:t.id}})}),1)],1)],1)],1)]):t._e(),t._v(" "),t.dialogFormTeamMemberVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormTeamMemberVisible=!1},title:t.$t("adjust_member_authority"),width:"700px",onOK:function(){t.dialogFormTeamMemberVisible=!1},showCancel:!1}},[i("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":t.$t("team_member_empty_tips"),data:t.teamItemMembers}},[i("el-table-column",{attrs:{prop:"member_username",label:t.$t("username")}}),t._v(" "),i("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberGroup(i,e.row.id)}},model:{value:e.row.member_group_id,callback:function(i){t.$set(e.row,"member_group_id",i)},expression:"scope.row.member_group_id"}},t._l(t.authorityOptions,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)]}}],null,!1,3630509590)}),t._v(" "),i("el-table-column",{attrs:{prop:"cat_id",label:t.$t("catalog"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.member_group_id<=1?i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberCat(i,e.row.id)}},model:{value:e.row.cat_id,callback:function(i){t.$set(e.row,"cat_id",i)},expression:"scope.row.cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1):t._e()]}}],null,!1,2162764861)}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}})],1),t._v(" "),i("br"),t._v(" "),i("p",{staticClass:"v3-font-size-sm v3-color-aux"},[t._v("\n "+t._s(t.$t("team_member_authority_tips"))+"\n ")])],1):t._e(),t._v(" "),t.showTeam?i("Team",{attrs:{callback:function(){t.getTeams(),t.showTeam=!1}}}):t._e()],1)},staticRenderFns:[]};var Ut=i("VU/8")(jt,At,!1,function(t){i("bRZX")},"data-v-6396624a",null).exports,Et={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("open_api"),width:"500px",onOK:t.callback,showCancel:!1,showOk:!1}},[i("div",{staticClass:"text-center"},[i("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"100px"}},[i("el-form-item",{attrs:{label:"api_key:"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",readonly:!0,placeholder:""},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"api_token"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",readonly:!0,placeholder:""},model:{value:t.api_token,callback:function(e){t.api_token=e},expression:"api_token"}})],1),t._v(" "),i("el-button",{staticStyle:{width:"90%"},on:{click:t.resetKey}},[t._v(t._s(t.$t("reset_token")))])],1),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips1"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips2"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips3"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips4"))}})])],1)])],1)},staticRenderFns:[]};var Rt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{api_key:"",api_token:""}},methods:{getKeyInfo:function(){var t=this;this.request("/api/item/getKey",{item_id:this.item_id}).then(function(e){var i=e.data;t.api_key=i.api_key,t.api_token=i.api_token})},resetKey:function(){var t=this;this.request("/api/item/resetKey",{item_id:this.item_id}).then(function(e){t.getKeyInfo()})}},mounted:function(){this.getKeyInfo()}},Et,!1,function(t){i("jom5")},"data-v-47e1d9d3",null).exports,Nt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("recycle"),width:"550px",onOK:t.callback,showCancel:!1,showOk:!1}},[i("p",{staticClass:"v3-font-size-sm v3-color-aux"},[t._v(t._s(t.$t("recycle_tips")))]),t._v(" "),t.lists.length>0?i("el-table",{staticClass:"recycle-table",staticStyle:{width:"100%"},attrs:{align:"left",data:t.lists}},[i("el-table-column",{attrs:{prop:"page_title",label:t.$t("page_title")}}),t._v(" "),i("el-table-column",{attrs:{prop:"del_by_username",label:t.$t("deleter")}}),t._v(" "),i("el-table-column",{attrs:{prop:"del_time",label:t.$t("del_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.recover(e.row.page_id)}}},[t._v(t._s(t.$t("recover")))])]}}],null,!1,3035403278)})],1):t._e()],1)],1)},staticRenderFns:[]};var zt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{MyForm:{username:"",is_readonly:!1},MyForm2:{team_id:""},lists:[]}},methods:{getList:function(){var t=this;this.request("/api/recycle/getList",{item_id:this.item_id}).then(function(e){var i=e.data;t.lists=i})},recover:function(t){var e=this;this.$confirm(this.$t("recover_tips")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/recycle/recover",{item_id:e.item_id,page_id:t}).then(function(t){e.getList()})})}},mounted:function(){this.getList()}},Nt,!1,function(t){i("Mxwu")},"data-v-6b90c1a9",null).exports,Ht={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("archive"),onCancel:t.callback,onOK:t.archive,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("input_login_password")},model:{value:t.archiveForm.password,callback:function(e){t.$set(t.archiveForm,"password",e)},expression:"archiveForm.password"}})],1)],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("archive_tips2")))])],1)],1)},staticRenderFns:[]};var Bt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{dialogArchiveVisible:!0,archiveForm:{password:""}}},methods:{archive:function(){var t=this;this.request("/api/item/archive",{item_id:this.item_id,password:this.archiveForm.password}).then(function(e){t.callback()})}},mounted:function(){}},Ht,!1,function(t){i("3H/t")},"data-v-6215d33f",null).exports,Kt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("attorn"),onCancel:t.callback,onOK:t.attorn,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("attorn_username"),"auto-complete":"new-password"},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password","auto-complete":"new-password",placeholder:t.$t("input_login_password")},model:{value:t.attornForm.password,callback:function(e){t.$set(t.attornForm,"password",e)},expression:"attornForm.password"}})],1)],1)],1)],1)},staticRenderFns:[]};var Gt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{attornForm:{username:"",password:""}}},methods:{attorn:function(){var t=this;this.request("/api/item/attorn",{item_id:this.item_id,username:this.attornForm.username,password:this.attornForm.password}).then(function(e){t.callback()})}},mounted:function(){}},Kt,!1,function(t){i("hYZC")},"data-v-34cd220b",null).exports,Jt={name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{dialogDeleteVisible:!0,deleteForm:{password:""}}},methods:{deleteItem:function(){var t=this,e=this.$loading();this.request("/api/item/delete",{item_id:this.item_id,password:this.deleteForm.password}).then(function(i){t.callback(),e.close()}),setTimeout(function(){e.close()},5e3)}},mounted:function(){}},Wt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("delete"),onCancel:t.callback,onOK:t.deleteItem,width:"500px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("input_login_password")},model:{value:t.deleteForm.password,callback:function(e){t.$set(t.deleteForm,"password",e)},expression:"deleteForm.password"}},[t._v(">")])],1)],1),t._v(" "),i("p",{staticClass:"tips"},[i("el-tag",{attrs:{type:"danger"}},[t._v(t._s(t.$t("delete_tips")))])],1)],1)],1)},staticRenderFns:[]};var Yt=i("VU/8")(Jt,Wt,!1,function(t){i("FVf2")},"data-v-0cb7cd85",null).exports,Xt={name:"",components:{},props:{item_info:"",callback:function(){}},data:function(){return{shareItemLink:""}},methods:{copy:function(){var t=this;return It()(Ct.a.mark(function e(){return Ct.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$copyText(t.shareItemLink);case 2:t.$message(t.$t("copy_success"));case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.shareItemLink=this.getRootPath()+"#/"+(this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id)},beforeDestroy:function(){}},Qt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("share"),width:"450px",onOK:t.copy,okText:"复制分享链接"}},[i("p",[t._v("\n "+t._s(t.$t("item_address"))+" : "),i("code",[t._v(t._s(t.shareItemLink))])])])},staticRenderFns:[]},Zt=i("VU/8")(Xt,Qt,!1,null,null,null).exports,te={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}},item_id:{type:Number,required:!1,default:"0"}},data:function(){return{infoForm:{},isOpenItem:!0,itemList:{},copy_item_id:"",item_name:"",item_description:"",password:""}},methods:{getItemList:function(){var t=this;this.request("/api/item/myList",{}).then(function(e){var i=e.data;t.itemList=i})},chooseCopyItem:function(t){for(var e=0;e0&&(this.copy_item_id=this.item_id),this.getItemList()}},ee={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("copy_item"),width:"450px",onOK:t.formSubmit}},[i("div",{staticClass:"text-center"},[i("p",{staticClass:"tips"},[t._v(t._s(t.$t("copy_item_tips1")))]),t._v(" "),i("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"10px"},model:{value:t.infoForm,callback:function(e){t.infoForm=e},expression:"infoForm"}},[i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},on:{change:t.chooseCopyItem},model:{value:t.copy_item_id,callback:function(e){t.copy_item_id=e},expression:"copy_item_id"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("copy_item_tips2"),placement:"right"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("copy_item_tips2")},model:{value:t.item_name,callback:function(e){t.item_name=e},expression:"item_name"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-radio",{attrs:{label:!0},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("Open_item")))]),t._v(" "),i("el-radio",{attrs:{label:!1},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("private_item")))])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.isOpenItem,expression:"!isOpenItem"}]},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("visit_password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)],1)])],1)},staticRenderFns:[]};var ie=i("VU/8")(te,ee,!1,function(t){i("UXcT")},"data-v-bf651ce2",null).exports,ae={name:"ItemList",components:{draggable:E.a,ItemUpdate:W,Member:Ut,OpenApi:Rt,Recycle:zt,Archive:Bt,Attorn:Gt,Delete:Yt,Share:Zt,Copy:ie},props:{callback:{type:Function,required:!1,default:function(){}},getItemList:{type:Function,required:!1,default:function(){}},itemList:{type:Array,required:!1,default:[]},itemGroupId:{type:Number,required:!1,default:0}},data:function(){return{loading:!1,showShare:!1,opItemRow:{item_domain:"",item_id:0},showItemUpdate:!1,showMember:!1,showOpenApi:!1,showRecycle:!1,showArchive:!1,showAttorn:!1,showDelete:!1,showCopy:!1}},methods:{toOneItem:function(t){var e="/"+(t.item_domain?t.item_domain:t.item_id);this.$router.push({path:e})},clickStar:function(t){var e=this,i=t.is_star,a=t.item_id;i>0?this.request("/api/item/unstar",{item_id:a}).then(function(t){for(var i=0;i0?i("el-dropdown-item",{nativeOn:{click:function(i){return t.clickStar(e)}}},[i("i",{staticClass:"mr-2 fas fa-star"}),t._v("\n "+t._s(t.$t("unstar_item"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(i){t.opItemRow=e,t.showItemUpdate=!0}}},[i("i",{staticClass:"mr-2 fas fa-edit"}),t._v("\n "+t._s(t.$t("update_base_info"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showMember=!0}}},[i("i",{staticClass:"mr-2 fal fa-users"}),t._v("\n "+t._s(t.$t("member_manage"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showOpenApi=!0}}},[i("i",{staticClass:"mr-2 fas fa-plug"}),t._v("\n "+t._s(t.$t("open_api"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showRecycle=!0}}},[i("i",{staticClass:"mr-2 fas fa-trash"}),t._v("\n "+t._s(t.$t("recycle"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(i){t.opItemRow=e,t.showAttorn=!0}}},[i("i",{staticClass:"mr-2 fas fa-recycle"}),t._v("\n "+t._s(t.$t("attorn"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showCopy=!0}}},[i("i",{staticClass:"mr-2 fas fa-copy"}),t._v("\n "+t._s(t.$t("copy"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showArchive=!0}}},[i("i",{staticClass:"mr-2 far fa-box-archive"}),t._v("\n "+t._s(t.$t("archive"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showDelete=!0}}},[i("i",{staticClass:"mr-2 far fa-trash-can"}),t._v("\n "+t._s(t.$t("delete"))+"\n ")]):t._e()],1)],1)],1)]),t._v(" "),i("div",{staticClass:"item-list-one-block-bg"})])}),0),t._v(" "),t.showShare?i("Share",{attrs:{callback:function(){t.showShare=!1},item_info:{item_domain:t.opItemRow.item_domain,item_id:t.opItemRow.item_id}}}):t._e(),t._v(" "),t.showItemUpdate?i("ItemUpdate",{attrs:{callback:function(){t.showItemUpdate=!1,t.getItemList()},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showMember?i("Member",{attrs:{callback:function(){t.showMember=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showOpenApi?i("OpenApi",{attrs:{callback:function(){t.showOpenApi=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showRecycle?i("Recycle",{attrs:{callback:function(){t.showRecycle=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showArchive?i("Archive",{attrs:{callback:function(){t.showArchive=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showAttorn?i("Attorn",{attrs:{callback:function(){t.showAttorn=!1,t.getItemList()},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showCopy?i("Copy",{attrs:{item_id:t.opItemRow.item_id,callback:function(){t.showCopy=!1,t.getItemList()}}}):t._e(),t._v(" "),t.showDelete?i("Delete",{attrs:{callback:function(){t.showDelete=!1,t.getItemList()},item_id:t.opItemRow.item_id}}):t._e()],1)},staticRenderFns:[]};var oe=i("VU/8")(ae,ne,!1,function(t){i("oUOD")},"data-v-7aaddc9b",null).exports,se={props:{popup:{type:Boolean,required:!1,default:!0}},data:function(){return{intervalId:0,nObj:""}},methods:{getUnread:function(){var t=this;this.request("/api/message/getUnread",{},"post",!1).then(function(e){var i=e.data;if(i.remind&&i.remind.id){if("page"==i.remind.object_type){t.$store.dispatch("changeNewMsg",1);var a=i.remind.from_name+" "+t.$t("update_the_page")+" "+i.remind.page_data.page_title+" , "+t.$t("click_to_view"),n=t.$router.resolve({path:"/message/index",query:{dtab:"remindList"}}).href;t.brownNotify(a,i.remind.from_uid,i.remind.message_content_id,n)}if("vip"==i.remind.object_type){var o=t.$router.resolve({path:"/user/setting"}).href;t.brownNotify("你在showdoc购买的付费版资格很快过期了,你可以点此进入用户中心进行续费(如已续费请忽略该通知)",i.remind.from_uid,i.remind.message_content_id,o)}}if(i.announce&&i.announce.id){t.$store.dispatch("changeNewMsg",1);var s=t.$router.resolve({path:"/message/index",query:{dtab:"announcementList"}}).href;t.brownNotify("你有未读的公告消息,点此查看",i.announce.from_uid,i.announce.message_content_id,s)}})},brownNotify:function(t,e,i,a){var n=this;if(!this.popup)return!1;var o={dir:"auto",body:t,requireInteraction:!0,tag:e+"_"+i};if(window.Notification){var s={};"granted"===Notification.permission?(s=new Notification("showdoc通知",o)).onclick=function(t){window.open(a,"_blank"),n.setRead(e,i),window.focus(),s.close()}:"default"===Notification.permission?(this.webNotify(t,e,i,a),Notification.requestPermission().then(function(t){"granted"===t?(console.log("用户同意授权"),n.nObj&&n.nObj.close&&n.nObj.close(),(s=new Notification("showdoc通知",o)).onclick=function(t){window.open(a,"_blank"),n.setRead(e,i),window.focus(),s.close()}):"default"===t?console.warn("用户关闭授权 未刷新页面之前 可以再次请求授权"):console.log("用户拒绝授权 不能显示通知")})):(console.log("用户曾经拒绝显示通知"),this.webNotify(t,e,i,a))}else console.log("浏览器不支持通知"),this.webNotify(t,e,i,a)},webNotify:function(t,e,i,a){var n=this;this.nObj=this.$notify({message:t,duration:3e4,type:"info",customClass:"cursor-click",onClick:function(t){window.open(a,"_blank"),n.nObj.close()},onClose:function(){n.setRead(e,i)}})},setRead:function(t,e){var i=this;this.$store.dispatch("changeNewMsg",0),setTimeout(function(){i.request("/api/message/setRead",{from_uid:t,message_content_id:e})},2e3)}},mounted:function(){var t=this;setTimeout(function(){t.getUnread()},2e3),this.intervalId=setInterval(function(){t.getUnread()},3e5)},destroyed:function(){clearInterval(this.intervalId)}},re={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]};var le=i("VU/8")(se,re,!1,function(t){i("5fie")},"data-v-20068df2",null).exports,ce={components:{draggable:E.a,itemGroupCom:K,HeaderRight:Mt,itemAdd:rt,Search:Vt,ItemListCom:oe,Notify:le},data:function(){return{currentDate:new Date,itemList:[],isAdmin:!1,keyword:"",username:"",showSearch:!1,itemGroupId:"",itemGroupList:[],loading:!1,showItemGroupCom:!1}},computed:{selectedGroupName:function(){if(this.keyword)return"en"==this.$lang?'Search results with "'+this.keyword+'"':'含有"'+this.keyword+'"的搜索结果';if(0===this.itemGroupId)return this.$t("all_items");if(-1===this.itemGroupId)return this.$t("star_items");for(var t=0;t-1?t.v_code_img=DocConfig.server+"/api/common/showCaptcha&captcha_id="+i.captcha_id+"&"+Date.parse(new Date):t.v_code_img=DocConfig.server+"/api/common/showCaptcha?captcha_id="+i.captcha_id+"&"+Date.parse(new Date),t.captchaId=i.captcha_id})}},mounted:function(){this.changeVcodeImg()},beforeDestroy:function(){}},ue={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("el-container",[i("el-card",{staticClass:"center-card",attrs:{onkeydown:"if(event.keyCode==13)return false;"}},[i("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSubmit(e)}}},[i("h2",[t._v(t._s(t.$t("input_visit_password")))]),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("verification_code")},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),t._v(" "),i("img",{staticClass:"v_code_img",attrs:{src:t.v_code_img},on:{click:t.changeVcodeImg}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("submit")))])],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("router-link",{attrs:{to:"/user/login"}},[t._v(t._s(t.$t("login")))]),t._v("   \n ")],1)],1)],1)],1),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var pe=i("VU/8")(_e,ue,!1,function(t){i("OGYI")},"data-v-04d8672a",null).exports,he={render:function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"fade"}},[e("div",{staticClass:"img-view",on:{click:this.bigImg}},[e("div",{staticClass:"img-layer"}),this._v(" "),e("div",{staticClass:"img"},[e("img",{attrs:{src:this.imgSrc}})])])])},staticRenderFns:[]};var fe=i("VU/8")({props:["imgSrc"],methods:{bigImg:function(){this.$emit("clickit")}}},he,!1,function(t){i("/BJT")},"data-v-8b8ced44",null).exports;if("undefined"!=typeof window)var ge=i("zhAq");var ve={name:"Editor",props:{width:"",content:{type:String,default:"###初始化成功"},type:{type:String,default:"editor"},keyword:{type:String,default:""},id:{type:String,default:"editor-md"},editorPath:{type:String,default:"static/editor.md"},editorConfig:{type:Object,default:function(){var t=this;return{path:"static/editor.md/lib/",height:750,taskList:!0,atLink:!1,emailLink:!1,tex:!0,flowChart:!0,sequenceDiagram:!0,syncScrolling:"single",htmlDecode:"style,script,iframe|filterXSS",imageUpload:!0,imageFormats:["jpg","jpeg","gif","png","bmp","webp","JPG","JPEG","GIF","PNG","BMP","WEBP"],imageUploadURL:"",onload:function(){console.log("onload")},toolbarIcons:function(){return["undo","redo","|","bold","del","italic","quote","|","toc","mindmap","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","center","|","link","reference-link","image","video","code","code-block","table","datetime","html-entities","pagebreak","|","watch","fullscreen","clear","search","|","help"]},toolbarIconsClass:{toc:"fa-bars ",mindmap:"fa-sitemap ",video:"fa-file-video-o",center:"fa-align-center"},toolbarHandlers:{toc:function(t,e,i,a){t.setCursor(0,0),t.replaceSelection("[TOC]\r\n\r\n")},video:function(t,e,i,a){t.replaceSelection('\r\n\r\n'),""===a&&t.setCursor(i.line,i.ch+1)},mindmap:function(t,e,i,a){t.replaceSelection("\n```mindmap\n# 一级\n## 二级分支1\n### 三级分支1\n### 三级分支2\n## 二级分支2\n### 三级分支3\n### 三级分支4\n```\n"),""===a&&t.setCursor(i.line,i.ch+1)},center:function(t,e,i,a){t.replaceSelection("
"+a+"
"),""===a&&t.setCursor(i.line,i.ch+1)}},lang:{toolbar:{toc:"在最开头插入TOC,自动生成标题目录",mindmap:"插入思维导图",video:"插入视频",center:"居中"}},onchange:function(){t.deal_with_content()},previewCodeHighlight:!1}}}},components:{BigImg:fe},data:function(){return{instance:null,showImg:!1,imgSrc:"",user_token:""}},computed:{},mounted:function(){var t=this,e=v();this.user_token=e.user_token,ge([this.editorPath+"/../jquery.min.js",this.editorPath+"/lib/raphael.min.js"],function(){ge([t.editorPath+"/lib/d3@5.min.js",t.editorPath+"/lib/flowchart.min.js"],function(){ge([t.editorPath+"/../xss.min.js",t.editorPath+"/lib/marked.min.js",t.editorPath+"/lib/underscore.min.js",t.editorPath+"/lib/sequence-diagram.min.js",t.editorPath+"/lib/jquery.flowchart.min.js",t.editorPath+"/lib/jquery.mark.min.js",t.editorPath+"/lib/plantuml.js?v=2",t.editorPath+"/lib/view.min.js",t.editorPath+"/lib/transform.min.js"],function(){ge(t.editorPath+"/editormd.js",function(){t.initEditor()})})})})},beforeDestroy:function(){for(var t=1;t<999;t++)window.clearInterval(t)},methods:{initEditor:function(){var t=this;this.$nextTick(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.editormd,i=t.editorConfig;i.markdown=t.content,DocConfig.server.indexOf("?")>-1?i.imageUploadURL=DocConfig.server+"/api/page/uploadImg&user_token="+t.user_token:i.imageUploadURL=DocConfig.server+"/api/page/uploadImg?user_token="+t.user_token,e&&("editor"==t.type?t.instance=e(t.id,i):t.instance=e.markdownToHTML(t.id,i),t.deal_with_content())})},insertValue:function(t){this.instance.insertValue(this.html_decode(t))},getMarkdown:function(){return this.instance.getMarkdown()},editorUnwatch:function(){return this.instance.unwatch()},editorWatch:function(){return this.instance.watch()},setCursorToTop:function(){return this.instance.setCursor({line:0,ch:0})},clear:function(){return this.instance.clear()},draft:function(){var t=this;setInterval(function(){localStorage.page_content=t.getMarkdown()},6e4);var e=localStorage.page_content;e&&e.length>0&&(localStorage.removeItem("page_content"),t.$confirm(t.$t("draft_tips"),"",{showClose:!1}).then(function(){t.clear(),t.insertValue(e),localStorage.removeItem("page_content")}).catch(function(){localStorage.removeItem("page_content")}))},beforeunloadHandler:function(t){return(t=t||window.event)&&(t.returnValue="提示"),"提示"},deal_with_content:function(){var t=this;ge(this.editorPath+"/../highlight/highlight.min.js",function(){hljs.highlightAll()}),$.each($("#"+this.id+" table"),function(){$(this).prop("outerHTML",'
'+$(this).prop("outerHTML")+"
")}),$("#"+this.id+' a[href^="http"]').click(function(){var e=$(this).attr("href"),i=t.parseURL(e);return window.location.hostname==i.hostname&&window.location.pathname==i.pathname?(window.location.href=e,i.hash&&window.location.reload()):window.open(e),!1}),$("#"+this.id+" table tbody tr").each(function(){var t=$(this),e=t.find("td").eq(1).html(),i=t.find("td").eq(2).html();"object"==e||"array[object]"==e||"object"==i||"array[object]"==i?t.css({"background-color":"#F8F8F8"}):t.css("background-color","#fff"),t.hover(function(){t.css("background-color","#F8F8F8")},function(){"object"==e||"array[object]"==e||"object"==i||"array[object]"==i?t.css({"background-color":"#F8F8F8"}):t.css("background-color","#fff")})});var e=$("#"+this.id+" p").width();e=e||722,$("#"+this.id+" table").each(function(t){var i=$(this).get(0).rows.item(0).cells.length,a=Math.floor(e/i)-2;i<=5&&$(this).find("th").css("width",a.toString()+"px")}),$("#"+this.id+" img").click(function(){var e=$(this).attr("src");t.showImg=!0,t.imgSrc=e}),this.keyword&&$("#"+this.id).mark(this.keyword);var i=$("#page_md_content pre");$('复制').prependTo(i),$("#"+this.id).on("click",".btn-pre-copy",function(){t.doCopy(this)})},doCopy:function(t){var e=$(t),i=e.parent();e.text(""),this.$copyText(i.text()).then(e.text("复制成功")),setTimeout(function(){e.text("复制")},1500)},html_decode:function(t){return 0==t.length?"":t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/'/g,"'").replace(/"/g,'"')},parseURL:function(t){var e=document.createElement("a");return e.href=t,{source:t,protocol:e.protocol.replace(":",""),host:e.hostname,hostname:e.hostname,port:e.port,query:e.search,params:function(){for(var t,i={},a=e.search.replace(/^\?/,"").split("&"),n=a.length,o=0;o1e3&&this.$nextTick(function(){setTimeout(function(){$(".markdown-toc").click()},200)})}},destroyed:function(){$(document).off("click",".markdown-toc-list a[href]"),$(document).off("click",".markdown-toc"),$(".markdown-toc").remove()}},ke={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]};var $e=i("VU/8")(ye,ke,!1,function(t){i("CG8R")},null,null).exports,Ce={props:{x:{type:Number,required:!0},y:{type:Number,required:!0},list:{type:Array,required:!0},onCancel:{type:Function,required:!0}},data:function(){return{show:!1,contextmenuRef:null,top:0,left:0,width:0}},computed:{useList:function(){return this.list.filter(function(t){return!t.hidden})}},mounted:function(){var t=this,e=window.innerWidth,i=window.innerHeight,a=this.y,n=this.x;this.$nextTick(function(){t.$refs.contextmenuRef.clientWidth+n>e-5&&(n=e-t.$refs.contextmenuRef.clientWidth-5),t.$refs.contextmenuRef.clientHeight+a>i-5&&(a=i-t.$refs.contextmenuRef.clientHeight-5),t.top=a,t.left=n,t.width=t.$refs.contextmenuRef.clientWidth,setTimeout(function(){t.show=!0})})},methods:{clickHandle:function(t){t.children||(this.closeHandle(),t.onclick&&t.onclick())},closeHandle:function(){var t=this;this.show=!1,setTimeout(function(){t.onCancel()},100)}}},xe={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"contextmenu-modal",class:{show:t.show},on:{click:function(e){return e.stopPropagation(),t.closeHandle(e)},dblclick:function(e){return e.stopPropagation(),t.closeHandle(e)},contextmenu:function(e){return e.stopPropagation(),t.closeHandle(e)}}},[i("div",{ref:"contextmenuRef",staticClass:"container",style:{top:t.top+"px",left:t.left+"px"},on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"column"},t._l(t.useList,function(e,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:a,staticClass:"contextmenu-item bgColor-select",on:{click:function(i){return t.clickHandle(e)},dblclick:function(t){t.stopPropagation()},contextmenu:function(t){t.stopPropagation()}}},[i("div",{staticClass:"line-container text-default"},[i("div",{staticClass:"item-container"},[e.img?i("img",{staticClass:"img",attrs:{src:e.img}}):t._e(),t._v(" "),e.icon?i("div",{staticClass:"icon"},[i("i",{class:e.icon})]):t._e(),t._v(" "),i("div",{staticClass:"text"},[t._v(t._s(e.text))])]),t._v(" "),e.checked?i("div",{staticClass:"checked"}):t._e(),t._v(" "),e.children&&e.children.length?i("div",{staticClass:"arrow text-secondary"},[i("i",{staticClass:"fas fa-angle-right"})]):t._e()])])}),0)])])])},staticRenderFns:[]};var Ie=i("VU/8")(Ce,xe,!1,function(t){i("P5r/")},"data-v-a9ea0d0c",null).exports,Se=i("lHA8"),Fe=i.n(Se),Le=i("c/Tr"),Te=i.n(Le),Me=i("pFYg"),qe=i.n(Me),Oe=i("fZjL"),Pe=i.n(Oe),De={name:"JsonToTable",props:{formLabelWidth:"120px",callback:function(){}},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!0}},methods:{transform:function(){try{var t=JSON.parse(this.content);this.json_table_data="|参数|类型|描述|\n|:-------|:-------|:-------|\n";var e=this.tranJsonDesc(t,[],!0);if(e)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=[],n=[],o=t;try{if(function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Pe()(e).map(function(r){var l=r;if((i||s>2)&&o&&isNaN(o)&&(l=isNaN(r)?o+"."+r:o),n.indexOf(l)>-1)return!1;"object"===qe()(e[r])?(isNaN(r)&&a.push({name:l,type:Array.isArray(e[r])?"array":"object",require:"1",remark:"",value:""}),e[r]&&t(e[r],l,s+1)):a.push({name:l,type:"string",require:"1",remark:"",value:e[r]}),n.push(l)})}(o),a&&a.length>0){var s=function(t){return Te()(new Fe.a(t))};if(e){var r=function(t){var i={};return e.map(function(e){e.name==t&&(i=e)}),i};a=s(a);for(var l=0;l1&&void 0!==arguments[1]&&arguments[1]))try{return"string"==typeof t&&(t=JSON.parse(t)),C()(t,null,2)}catch(e){return t}try{var e=JSON.parse(t);return C()(e)}catch(e){return t}}}},Ve={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("json_to_table"),onCancel:t.callback,onOK:t.transform}},[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("json_to_table_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1):t._e()],1)},staticRenderFns:[]};var je=i("VU/8")(De,Ve,!1,function(t){i("gY2G")},"data-v-2e2f2434",null).exports,Ae={name:"JsonBeautify",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!0}},methods:{transform:function(){var t=this.content;try{var e="\n ``` \n "+C()(JSON.parse(t),null,2)+" \n\n ```\n\n";this.callback(e)}catch(e){this.callback(t)}}}},Ue={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("beautify_json"),onCancel:t.callback,onOK:t.transform}},[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("beautify_json_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1):t._e()],1)},staticRenderFns:[]};var Ee=i("VU/8")(Ae,Ue,!1,function(t){i("5byI")},"data-v-4c3a21f0",null).exports,Re={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("sql_to_markdown_table"),onCancel:t.callback,onOK:t.transform}},[i("el-form",[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("sql_to_markdown_table_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1)],1):t._e()],1)},staticRenderFns:[]};var Ne=i("VU/8")({name:"SqlToMarkdownTable",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!0}},methods:{transform:function(){var t=this;this.request("/api/page/sqlToMarkdownTable",{sql:this.content}).then(function(e){t.callback(e.data.markdown)}),this.dialogFormVisible=!1}}},Re,!1,function(t){i("2Xpv")},"data-v-d221ecb4",null).exports,ze={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("templ_list"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback}},[i("el-tabs",{attrs:{value:"myList",type:"card"}},[i("el-tab-pane",{attrs:{label:t.$t("my_template"),name:"myList"}},[i("el-table",{attrs:{data:t.myList,"empty-text":t.$t("no_my_template_text")}},[i("el-table-column",{attrs:{property:"addtime",label:t.$t("save_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"template_title",label:t.$t("templ_title")}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("operation"),width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.insertTemplate(e.row)}}},[t._v(t._s(t.$t("insert_templ")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.shareToClick(e.row)}}},[t._v(t._s(t.$t("share_to_these_items"))+"("+t._s(e.row.share_item_count)+")")]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTemplate(e.row)}}},[t._v(t._s(t.$t("delete_templ")))])]}}])})],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("item_template"),name:"itemList"}},[i("el-table",{attrs:{data:t.itemList,"empty-text":t.$t("no_item_template_text")}},[i("el-table-column",{attrs:{property:"created_at",label:t.$t("save_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"username",label:t.$t("sharer")}}),t._v(" "),i("el-table-column",{attrs:{property:"template_title",label:t.$t("templ_title")}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("operation"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.insertTemplate(e.row)}}},[t._v(t._s(t.$t("insert_templ")))])]}}])})],1)],1)],1)],1),t._v(" "),t.dialogItemVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogItemVisible=!1},onOK:t.shareToItem,width:"400px"}},[i("el-form",[i("el-select",{attrs:{filterable:"",multiple:"",placeholder:t.$t("please_choose")},model:{value:t.shareItemId,callback:function(e){t.shareItemId=e},expression:"shareItemId"}},t._l(t.myItemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("share_items_tips")))])],1):t._e()],1)},staticRenderFns:[]};var He=i("VU/8")({props:{callback:function(){},item_id:0,opRow:{}},data:function(){return{myList:[],itemList:[],dialogTableVisible:!0,dialogItemVisible:!1,myItemList:[],shareItemId:[]}},components:{},methods:{getMyList:function(){var t=this;this.request("/api/template/getMyList",{}).then(function(e){var i=e.data;t.myList=i})},getItemList:function(){var t=this;this.request("/api/template/getItemList",{item_id:this.item_id}).then(function(e){var i=e.data;t.itemList=i})},getMyItemList:function(){var t=this;this.request("/api/item/myList",{}).then(function(e){t.myItemList=e.data})},insertTemplate:function(t){this.callback(t.template_content)},deleteTemplate:function(t){var e=this,i=t.id;this.request("/api/template/delete",{id:i}).then(function(t){e.getMyList(),e.getItemList()})},shareToClick:function(t){if(this.getMyItemList(),this.opRow=t,this.dialogItemVisible=!0,this.shareItemId=[],t.share_item_count>0){var e=[];t.share_item.map(function(t){e.push(t.item_id)}),this.shareItemId=e}},shareToItem:function(){var t=this;this.request("/api/template/shareToItem",{template_id:this.opRow.id,item_id:this.shareItemId.join(",")}).then(function(e){t.dialogItemVisible=!1,t.getMyList(),t.getItemList()})}},mounted:function(){this.getMyList(),this.getItemList()}},ze,!1,function(t){i("FuBv"),i("zg0L")},null,null).exports,Be=function(t){return t.replace(/&|<|>|'|'|"/g,function(t){return{"&":"&","<":"<",">":">","'":"'","'":"'",""":'"'}[t]||t})},Ke=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=void 0;t=Be(t);try{i=JSON.parse(t)}catch(t){}if(!i||!i.info||!i.info.url)return t;e&&("get"==i.info.method&&e.query&&e.query[0]&&e.query[0].name&&e.query.map(function(t){i.request.params[i.request.params.mode].unshift(t)}),"get"!=i.info.method&&"json"!=i.request.params.mode&&e.body&&e.body[0]&&e.body[0].name&&e.body.map(function(t){i.request.params[i.request.params.mode].unshift(t)}),e.header&&e.header[0]&&e.header[0].name&&e.header.map(function(t){i.request.headers.unshift(t)})),"get"==i.info.method&&(i.request.query||(i.request.query=i.request.params[i.request.params.mode]),i.request.params[i.request.params.mode]=[]);var a="\n[TOC]\n\n##### 简要描述\n - "+(i.info.description?i.info.description:"无");if(i.info.apiStatus>0){var n="";switch(i.info.apiStatus){case"1":n="开发中";break;case"2":n="测试中";break;case"3":n="已完成";break;case"4":n="需修改";break;case"5":n="已废弃"}a+="\n\n##### 接口状态\n - "+n}if(i.request.query&&i.request.query[0]&&i.request.query[0].name){var o=i.info.url.split("?");i.info.url=o[0]}a+="\n\n##### 请求URL\n\n - ` "+i.info.url+" `\n\n##### 请求方式\n - "+i.info.method+"\n ";var s=i.request.pathVariable;(s&&s[0]&&s[0].name&&(a+="\n##### 路径变量\n\n|变量名|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",s.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")})),i.request.headers&&i.request.headers[0]&&i.request.headers[0].name)&&(a+="\n##### Header\n\n|header|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",i.request.headers.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" | "+(t.remark?t.remark:"无")+" |\n")}));var r=i.request.query;r&&r[0]&&r[0].name&&(a+="\n##### 请求Query参数\n\n|参数名|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",r.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")}));var l=i.request.params[i.request.params.mode];l&&l[0]&&l[0].name&&(a+="\n##### 请求Body参数\n\n|参数名|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",l.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")})),"json"==i.request.params.mode&&l&&(a+="\n##### 请求参数示例\n```\n"+l+"\n```\n\n");var c=i.request.params.jsonDesc;("json"==i.request.params.mode&&c&&c[0]&&c[0].name&&(a+="\n##### 请求json字段说明\n\n|字段名|必选|类型|说明|\n|:----- |:-----|-----|\n",c.map(function(t){t.name&&(a+="|"+t.name+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")})),i.response.responseExample&&(a+="\n##### 成功返回示例\n```\n"+i.response.responseExample+"\n ```\n "),i.response.responseParamsDesc&&i.response.responseParamsDesc[0]&&i.response.responseParamsDesc[0].name)&&(a+="\n##### 成功返回示例的参数说明\n\n|参数名|类型|说明|\n|:----- |:-----|-----|\n",i.response.responseParamsDesc.map(function(t){t.name&&(a+="|"+t.name+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")}));(i.response.responseFailExample&&(a+="\n##### 失败返回示例\n```\n"+i.response.responseFailExample+"\n ```\n "),i.response.responseFailParamsDesc&&i.response.responseFailParamsDesc[0]&&i.response.responseFailParamsDesc[0].name)&&(a+="\n##### 失败返回示例的参数说明\n\n|参数名|类型|说明|\n|:----- |:-----|-----|\n",i.response.responseFailParamsDesc.map(function(t){t.name&&(a+="|"+t.name+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")}));return a+="\n##### 备注\n\n "+i.info.remark+"\n\n"},Ge={props:{callback:"",page_id:"",is_modal:!0,is_show_recover_btn:!0},data:function(){return{currentDate:new Date,content:[],dialogTableVisible:!0}},components:{},methods:{getContent:function(){var t=this,e=this.page_id;this.request("/api/page/history",{page_id:e}).then(function(e){var i=e.data;i.length>0?(t.content=i,t.dialogTableVisible=!0):t.dialogTableVisible=!1})},recover:function(t){this.callback(Be(t.page_content),!0),this.dialogTableVisible=!1},previewDiff:function(t){var e=t.page_history_id,i="#/page/diff/"+(this.page_id?this.page_id:this.$route.params.page_id)+"/"+e;window.open(i)},editComments:function(t){var e=this,i=this.page_id?this.page_id:this.$route.params.page_id;this.$prompt(""," ",{}).then(function(a){e.request("/api/page/updateHistoryComments",{page_id:i,page_history_id:t.page_history_id,page_comments:a.value}).then(function(){e.getContent()})})}},mounted:function(){this.getContent()}},Je={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("history_version"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback}},[i("el-table",{attrs:{data:t.content}},[i("el-table-column",{attrs:{property:"addtime",label:t.$t("update_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"author_username",label:t.$t("update_by_who")}}),t._v(" "),i("el-table-column",{attrs:{property:"page_comments",label:t.$t("remark")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.page_comments)+"\n "),t.is_show_recover_btn?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.editComments(e.row)}}},[t._v(t._s(t.$t("edit")))]):t._e()]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.previewDiff(e.row)}}},[t._v(t._s(t.$t("overview")))]),t._v(" "),t.is_show_recover_btn?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.recover(e.row)}}},[t._v(t._s(t.$t("recover_to_this_version")))]):t._e()]}}])})],1)],1)],1)},staticRenderFns:[]};var We=i("VU/8")(Ge,Je,!1,function(t){i("xPZZ")},null,null).exports,Ye={props:{callback:"",page_id:"",item_id:"",manage:!0},data:function(){return{page:1,count:5,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0,used_flow:0,uploadUrl:DocConfig.server+"/api/page/upload",loading:"",user_token:""}},components:{},computed:{uploadData:function(){return{page_id:this.page_id,item_id:this.item_id}}},methods:{getList:function(){var t=this;this.request("/api/attachment/getMyList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(e){var i=e.data;t.dataList=i.list,t.total=parseInt(i.total),t.used=i.used_m,t.used_flow=i.used_flow_m})},handleCurrentChange:function(t){this.page=t,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(t){window.open(t.url)},deleteRow:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/attachment/deleteMyAttachment",{file_id:t.file_id}).then(function(t){e.$message.success(e.$t("op_success")),e.getList()})})},uploadCallback:function(t){this.loading.close(),t.error_message&&this.$alert(t.error_message),this.$refs.uploadFile.clearFiles(),this.getList()},select:function(t){var e=this;this.request("/api/attachment/bindingPage",{file_id:t.file_id,page_id:this.page_id}).then(function(t){e.dialogTableVisible=!1,e.callback()})},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){var t=v();this.user_token=t.user_token,this.getList()}},Xe={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{title:t.$t("file_gub"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback}},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("display_name")},model:{value:t.display_name,callback:function(e){t.display_name=e},expression:"display_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-select",{attrs:{placeholder:""},model:{value:t.attachment_type,callback:function(e){t.attachment_type=e},expression:"attachment_type"}},[i("el-option",{attrs:{label:t.$t("all_attachment_type"),value:"-1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("image"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("general_attachment"),value:"2"}})],1)],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1),t._v(" "),i("el-form-item",[i("el-upload",{ref:"uploadFile",staticClass:"upload-file",attrs:{data:{user_token:t.user_token},action:t.uploadUrl,"before-upload":t.beforeUpload,"on-success":t.uploadCallback,"on-error":t.uploadCallback}},[i("el-button",[t._v(t._s(t.$t("upload")))])],1)],1)],1),t._v(" "),i("P",[t._v(t._s(t.$t("accumulated_used_sapce"))+" "+t._s(t.used)+"M ,\n "+t._s(t.$t("month_flow"))+" "+t._s(t.used_flow)+"M")]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList}},[i("el-table-column",{attrs:{prop:"file_id",label:t.$t("file_id")}}),t._v(" "),i("el-table-column",{attrs:{prop:"display_name",label:t.$t("display_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_type",label:t.$t("file_type"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_size_m",label:t.$t("file_size_m"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"visit_times",label:t.$t("visit_times")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.operation},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.select(e.row)}}},[t._v(t._s(t.$t("select")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.visit(e.row)}}},[t._v(t._s(t.$t("visit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteRow(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1)},staticRenderFns:[]};var Qe={props:{callback:"",page_id:"",item_id:"",manage:!0},data:function(){return{content:[],uploadUrl:DocConfig.server+"/api/page/upload",dialogUploadVisible:!1,loading:"",user_token:"",showFilehub:!1}},components:{filehub:i("VU/8")(Ye,Xe,!1,function(t){i("8giw")},null,null).exports},computed:{uploadData:function(){return{page_id:this.page_id,item_id:this.item_id,user_token:this.user_token}}},methods:{getContent:function(){var t=this;this.request("/api/page/uploadList",{page_id:this.page_id}).then(function(e){var i=e.data;t.content=i})},downloadFile:function(t){var e=t.url;window.open(e)},deleteFile:function(t){var e=this;this.$confirm(this.$t("comfirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){var i=t.file_id;e.request("/api/page/deleteUploadFile",{file_id:i,page_id:e.page_id}).then(function(t){e.getContent()})})},uploadCallback:function(t){this.loading.close(),t.error_message&&this.$alert(t.error_message),this.getContent(),this.dialogUploadVisible=!1},insertFile:function(t){var e="["+t.display_name+"]("+t.url+' "['+t.display_name+'")';this.callback(e),this.dialogTableVisible=!1},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){this.getContent();var t=v();this.user_token=t.user_token}},Ze={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("attachment"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"45%"}},[t.manage?i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",[i("el-button",{on:{click:function(e){t.showFilehub=!0}}},[t._v(t._s(t.$t("from_file_gub")))])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){t.dialogUploadVisible=!0}}},[t._v(t._s(t.$t("upload")))]),t._v(" "),i("small",[t._v("   "+t._s(t.$t("file_size_tips")))])],1)],1):t._e(),t._v(" "),i("el-table",{attrs:{data:t.content}},[i("el-table-column",{attrs:{property:"addtime",label:t.$t("add_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"display_name",label:t.$t("file_name")}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("operation"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.downloadFile(e.row)}}},[t._v(t._s(t.$t("download")))]),t._v(" "),t.manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.insertFile(e.row)}}},[t._v(t._s(t.$t("insert")))]):t._e(),t._v(" "),t.manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteFile(e.row)}}},[t._v(t._s(t.$t("delete")))]):t._e()]}}])})],1)],1),t._v(" "),t.showFilehub?i("filehub",{attrs:{item_id:t.item_id,page_id:t.page_id,callback:function(){t.showFilehub=!1,t.getContent()}}}):t._e(),t._v(" "),t.dialogUploadVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogUploadVisible=!1},showCancel:!1,onOK:function(){t.dialogUploadVisible=!1},width:"400px"}},[i("p",[i("el-upload",{ref:"uploadFile",staticClass:"upload-file",attrs:{drag:"",name:"file",action:t.uploadUrl,"before-upload":t.beforeUpload,"on-success":t.uploadCallback,"on-error":t.uploadCallback,data:t.uploadData,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1)]):t._e()],1)},staticRenderFns:[]};var ti=i("VU/8")(Qe,Ze,!1,function(t){i("w7Ho")},null,null).exports,ei=i("BO1k"),ii=i.n(ei),ai=i("d7EF"),ni=i.n(ai),oi={props:{callback:"",is_modal:!0},data:function(){return{content:"",dialogFormVisible:!0}},components:{},methods:{transform:function(){var t=this.content,e="\n\n",i=!0,a=!1,n=void 0;try{for(var o,s=ii()(t.split("\n").entries());!(i=(o=s.next()).done);i=!0){var r=o.value,l=ni()(r,2),c=l[0],m=l[1].split("\t");if(e+="| "+m.join(" | ")+" |\n",0==c){for(var d=0;d0){var e=[];this.allItemMemberList.map(function(t){e.push(t.uid)}),this.request("/api/subscription/savePage",{page_id:this.page_id,uids:e.join(",")}).then(function(e){t.getList()})}},DeleteOne:function(t){var e=this;this.request("/api/subscription/deletePage",{uids:t.uid,page_id:this.page_id}).then(function(t){e.getList()})}},mounted:function(){this.getAllItemMemberList(),this.getList()}},_i={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[t.dialogVisible?i("SDialog",{attrs:{title:t.$t("save_and_notify"),onCancel:function(){t.callback("")},onOK:function(){t.callback(t.textarea)},width:"500px"}},[i("div",[i("el-input",{attrs:{type:"textarea",rows:4,placeholder:t.$t("input_update_remark")},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})],1),t._v(" "),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(e){t.dialogVisible2=!0}}},[t._v(t._s(t.$t("click_to_edit_member")))]),t._v(" "),i("span",{staticClass:"tips-text"},[t._v("( "+t._s(t.$t("cur_setting_notify"))+" "+t._s(t.list.length)+"\n "+t._s(t.$t("people"))+" )")])],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v("\n "+t._s(t.$t("notify_tips1"))+"\n ")])]):t._e(),t._v(" "),t.dialogVisible2?i("SDialog",{attrs:{onCancel:function(){t.dialogVisible2=!1},onOK:function(){t.dialogVisible2=!1},width:"500px"}},[i("div",[i("el-button",{on:{click:function(e){t.dialogVisible3=!0}}},[t._v(t._s(t.$t("add_single_member")))]),t._v(" "),i("el-button",{on:{click:t.addAllMember}},[t._v(t._s(t.$t("add_all_member")))]),t._v(" "),i("br"),t._v(" "),i("el-table",{attrs:{data:t.list}},[i("el-table-column",{attrs:{property:"username",label:t.$t("username")}}),t._v(" "),i("el-table-column",{attrs:{property:"name",label:t.$t("name")}}),t._v(" "),i("el-table-column",{attrs:{property:"sub_time",label:t.$t("addtime")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.DeleteOne(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}],null,!1,1293784393)})],1)],1)]):t._e(),t._v(" "),t.dialogVisible3?i("SDialog",{attrs:{onCancel:function(){t.dialogVisible3=!1},onOK:t.addMember,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("username")+":"}},[i("el-select",{attrs:{multiple:"",filterable:"","reserve-keyword":"",placeholder:"请选择或搜索"},model:{value:t.to_add_member_uid,callback:function(e){t.to_add_member_uid=e},expression:"to_add_member_uid"}},t._l(t.allItemMemberList,function(t){return i("el-option",{key:t.uid,attrs:{label:t.username_name,value:t.uid}})}),1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("refresh_member_list")}},[i("i",{staticClass:"el-icon-refresh-right icon-btn",on:{click:t.getAllItemMemberList}})]),t._v(" "),i("p",{staticClass:"leading-8\tv3-font-size-sm v3-color-aux"},[t._v("\n "+t._s(t.$t("notify_add_member_tips1"))+"\n ")])],1)],1)],1):t._e()],1)},staticRenderFns:[]};var ui=i("VU/8")(di,_i,!1,function(t){i("2xWI")},"data-v-7b4d30f2",null).exports,pi={name:"Mock",props:{callback:"",page_id:"",item_id:""},data:function(){return{content:"",mock_url:"",mockUrlPre:"",path:"/"}},methods:{add:function(){var t=this;this.request("/api/mock/add",{page_id:this.page_id,template:this.content,path:this.path}).then(function(e){t.$message({showClose:!0,message:"保存成功",type:"success"}),t.infoByPageId()})},infoByPageId:function(){var t=this;if(this.page_id<=0)return this.$alert("请先保存页面"),void this.callback();this.request("/api/mock/infoByPageId",{page_id:this.page_id}).then(function(e){e.data&&e.data.unique_key&&e.data.template&&(t.mock_url=t.mockUrlPre+e.data.path,t.content=Be(e.data.template),t.path=e.data.path)})},handleClick:function(){this.add()},beautifyJson:function(){this.content=this.formatJson(this.content)},onCopy:function(){this.$message(this.$t("copy_success"))}},mounted:function(){this.infoByPageId(),DocConfig.server.indexOf("http")>-1?this.mockUrlPre=DocConfig.server+"/mock-path/"+this.item_id+"&path=":this.mockUrlPre=this.getRootPath()+DocConfig.server+"/mock-path/"+this.item_id+"&path="}},hi={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{width:"1000px",title:"Mock",onCancel:t.callback,onOK:t.handleClick,okText:"保存",cancelText:"关闭"}},[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:"这里填写的是Mock接口的返回结果。你可以直接编辑/粘贴一段json字符串,支持使用MockJs语法(关于MockJs语法,可以查看下方的帮助说明按钮)。输入完毕后,点击保存,就会自动生成Mock地址",rows:20},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("p",[i("el-row",[i("span",[t._v("Mock Url和路径  :   "+t._s(t.mockUrlPre))]),t._v(" "),i("el-input",{staticClass:"path-input",model:{value:t.path,callback:function(e){t.path=e},expression:"path"}}),t._v(" "),i("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.mock_url,expression:"mock_url",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy"})],1)],1),t._v(" "),i("p",[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"假如上面填写的是一段符合json语法的字符串,点此按钮可以对json字符串进行快速格式化(美化)",placement:"top"}},[i("el-button",{on:{click:t.beautifyJson}},[t._v("json快速美化")])],1),t._v("   \n "),i("a",{attrs:{href:"https://www.showdoc.com.cn/p/d952ed6b7b5fb454df13dce74d1b41f8",target:"_blank"}},[t._v("帮助说明")])],1)],1)],1)],1)},staticRenderFns:[]};var fi=i("VU/8")(pi,hi,!1,function(t){i("Uf1M")},"data-v-10d49a3c",null).exports,gi={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("SDialog",{attrs:{title:t.$t("copy"),onCancel:t.closeDialog,showCancel:!1,onOK:t.copy,width:"350px"}},[i("el-form",[i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},on:{change:t.selectItem},model:{value:t.is_del,callback:function(e){t.is_del=e},expression:"is_del"}},[i("el-option",{key:"0",attrs:{label:t.$t("copy_to"),value:"0"}}),t._v(" "),i("el-option",{key:"1",attrs:{label:t.$t("move_to"),value:"1"}})],1)],1),t._v(" "),i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},on:{change:t.selectItem},model:{value:t.to_item_id,callback:function(e){t.to_item_id=e},expression:"to_item_id"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},model:{value:t.new_p_cat_id,callback:function(e){t.new_p_cat_id=e},expression:"new_p_cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1)],1)},staticRenderFns:[]};var vi=i("VU/8")({props:["cat_id","item_id","callback"],data:function(){return{itemList:[],to_item_id:"0",is_del:"0",catalogs:[{cat_id:"0",cat_name:"/"}],new_p_cat_id:"0"}},methods:{getItemList:function(){var t=this;this.request("/api/item/myList",{}).then(function(e){t.itemList=e.data,t.to_item_id=t.item_id})},selectItem:function(t){this.getCatalog(t)},getCatalog:function(t){var e=this;this.request("/api/catalog/catListName",{item_id:t}).then(function(t){e.new_p_cat_id="0";var i=t.data;i.unshift({cat_id:"0",cat_name:"/"}),e.catalogs=i})},copy:function(){var t=this;this.request("/api/catalog/copy",{cat_id:this.cat_id,new_p_cat_id:this.new_p_cat_id,to_item_id:this.to_item_id,is_del:this.is_del}).then(function(e){t.closeDialog()})},closeDialog:function(){this.callback&&this.callback()}},mounted:function(){this.getItemList(),this.getCatalog(this.item_id)}},gi,!1,function(t){i("hkn8")},"data-v-16f34d5b",null).exports,bi={name:"Login",components:{SortPage:mi,Copy:vi},props:{callback:function(){},item_id:0},data:function(){return{MyForm:{cat_id:0,parent_cat_id:"",cat_name:"",s_number:""},catalogs:[],dialogFormVisible:!1,copyFormVisible:!1,treeData:[],defaultProps:{children:"children",label:"label"},curl_cat_id:"",sortPageVisiable:!1}},computed:{belong_to_catalogs:function(){if(!this.catalogs||this.catalogs.length<=0)return[];for(var t=this.catalogs.slice(0),e=[],i=function t(i,a){if(i.length>0)for(var n=0;n0&&t(i[n].sub,o)}},a=0;a0&&(n.children=t(e[a].sub)),i.push(n)}return i}(i)})},MyFormSubmit:function(){var t=this;this.request("/api/catalog/save",{item_id:this.item_id,cat_id:this.MyForm.cat_id,parent_cat_id:this.MyForm.parent_cat_id,cat_name:this.MyForm.cat_name}).then(function(e){t.dialogFormVisible=!1,t.getCatalog(),t.MyForm=[]})},edit:function(t,e){this.MyForm={cat_id:e.id,parent_cat_id:t.parent.data.id,cat_name:e.label},this.dialogFormVisible=!0},deleteCat:function(t,e){var i=this,a=e.id;this.$confirm(this.$t("confirm_cat_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){i.request("/api/catalog/delete",{item_id:i.item_id,cat_id:a}).then(function(t){i.getCatalog()})})},resetForm:function(){this.MyForm={cat_id:0,parent_cat_id:"",cat_name:"",s_number:""}},addCat:function(t,e){t&&e.id?this.MyForm={cat_id:"",parent_cat_id:e.id,cat_name:""}:this.resetForm(),this.dialogFormVisible=!0},goback:function(){var t="/"+this.item_id;this.$router.push({path:t})},handleDragEnd:function(t,e,i,a){var n=this.dimensionReduction(this.treeData);this.request("/api/catalog/batUpdate",{item_id:this.item_id,cats:C()(n)})},dimensionReduction:function(t){for(var e=[],i=function t(i,a,n,o){if(e.push({cat_id:i.id,cat_name:i.label,parent_cat_id:a,level:n,s_number:o+1}),i.hasOwnProperty("children"))for(var s=0;s1?i("p",{staticClass:" v3-color-aux v3-font-size-sm "},[t._v("\n "+t._s(t.$t("cat_tips"))+"\n ")]):t._e(),t._v(" "),i("el-tree",{staticClass:"tree-node",attrs:{data:t.treeData,"node-key":"id","default-expand-all":"",draggable:""},on:{"node-drag-end":t.handleDragEnd},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.node,n=e.data;return i("span",{staticClass:"custom-tree-node"},[i("i",{staticClass:"mr-2 fas fa-folder"}),i("span",[t._v(t._s(a.label))]),t._v(" "),i("span",{staticClass:"right-bar"},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("edit"),placement:"top"}},[i("el-button",{staticClass:"el-icon-edit-outline",attrs:{type:"text",size:"mini",title:t.$t("edit")},on:{click:function(e){return e.stopPropagation(),t.edit(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("add_cat"),placement:"top"}},[i("el-button",{staticClass:"el-icon-plus",attrs:{type:"text",size:"mini",title:t.$t("add_cat")},on:{click:function(e){return e.stopPropagation(),t.addCat(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("sort_pages"),placement:"top"}},[i("el-button",{staticClass:"el-icon-document",attrs:{type:"text",size:"mini",title:t.$t("sort_pages")},on:{click:function(e){return e.stopPropagation(),t.showSortPage(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("copy_or_mv_cat"),placement:"top"}},[i("el-button",{staticClass:"el-icon-copy-document",attrs:{type:"text",size:"mini",title:t.$t("copy_or_mv_cat")},on:{click:function(e){return e.stopPropagation(),t.copyCat(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("delete"),placement:"top"}},[i("el-button",{staticClass:"el-icon-delete",attrs:{type:"text",size:"mini"},on:{click:function(e){return e.stopPropagation(),t.deleteCat(a,n)}}})],1)],1)])}}])})],1)]),t._v(" "),t.sortPageVisiable?i("SortPage",{ref:"SortPage",attrs:{callback:function(){t.sortPageVisiable=!1},item_id:t.item_id,cat_id:t.curl_cat_id}}):t._e(),t._v(" "),t.copyFormVisible?i("Copy",{attrs:{item_id:t.item_id,cat_id:t.curl_cat_id,callback:t.copyCallback}}):t._e(),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("add_cat"),showCancel:!1,onCancel:function(){t.dialogFormVisible=!1},onOK:t.MyFormSubmit,width:"300px"}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("cat_name")+" : "}},[i("el-input",{attrs:{placeholder:t.$t("input_cat_name")},model:{value:t.MyForm.cat_name,callback:function(e){t.$set(t.MyForm,"cat_name",e)},expression:"MyForm.cat_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("parent_cat_name")+" : "}},[i("el-select",{attrs:{filterable:"",placeholder:t.$t("none")},model:{value:t.MyForm.parent_cat_id,callback:function(e){t.$set(t.MyForm,"parent_cat_id",e)},expression:"MyForm.parent_cat_id"}},t._l(t.belong_to_catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1)],1):t._e()],1)},staticRenderFns:[]};var yi=i("VU/8")(bi,wi,!1,function(t){i("gke+"),i("K2RQ")},"data-v-376d7faa",null).exports,ki={props:["cat_id","item_id","callback"],components:{Catalog:yi},data:function(){return{to_item_id:"0",is_del:"0",catalogs:[{cat_id:"0",cat_name:"/"}],new_p_cat_id:"0",showCatalog:!1}},methods:{getCatalog:function(t){var e=this;this.request("/api/catalog/catListName",{item_id:t}).then(function(t){var i=t.data;i.unshift({cat_id:"0",cat_name:"/"}),e.catalogs=i})}},mounted:function(){this.getCatalog(this.item_id),this.new_p_cat_id=this.cat_id}},$i={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("select_catalog"),width:"400px",onOK:function(){t.callback(t.new_p_cat_id)},btn1Text:t.$t("new_catalog"),btn1Icon:"el-icon-plus",btn1Medthod:function(){t.showCatalog=!0}}},[i("el-form",[i("el-form-item",{staticClass:"text-left",attrs:{label:t.$t("select_catalog")}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("select_catalog")},model:{value:t.new_p_cat_id,callback:function(e){t.new_p_cat_id=e},expression:"new_p_cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1)],1),t._v(" "),t.showCatalog?i("Catalog",{attrs:{item_id:t.item_id,callback:function(){t.showCatalog=!1,t.getCatalog(t.item_id)}}}):t._e()],1)},staticRenderFns:[]};var Ci=i("VU/8")(ki,$i,!1,function(t){i("xhEc")},"data-v-1b6f0eaf",null).exports,xi=(i("xrTZ"),{render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{width:"90%",top:"10vh",title:"AI",onCancel:t.callback,onOK:function(){t.callback(t.outputContent)},okText:"插入到编辑器中",cancelText:"关闭"}},[i("el-row",{attrs:{gutter:40}},[i("el-col",{attrs:{span:12}},[i("h3",[t._v("输入区")]),t._v(" "),i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:"你可以在此输入描述,告诉AI你想生成什么,然后右边的输出区可以看到结果。更多使用说明可点击下方的帮助说明按钮",rows:20},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("p",[i("el-button",{attrs:{type:"primary"},on:{click:t.createContent}},[t._v("生成")]),t._v("\n    \n "),i("a",{attrs:{href:"https://www.showdoc.com.cn/p/b910aa406c168054994aa9250a23e398",target:"_blank"}},[t._v("帮助说明")])],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("h3",[t._v("输出区")]),t._v(" "),i("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialoContent",attrs:{type:"textarea",placeholder:" ",rows:20},model:{value:t.outputContent,callback:function(e){t.outputContent=e},expression:"outputContent"}})],1)],1)],1)],1)},staticRenderFns:[]});var Ii=i("VU/8")({name:"Mock",props:{callback:"",page_id:"",item_id:""},data:function(){return{content:"",outputContent:"",loading:!1}},methods:{createContent:function(){var t=this;this.outputContent="",this.loading=!0,this.request("/api/ai/create",{content:this.content}).then(function(e){t.outputContent=e.data.choices[0].message.content,t.loading=!1}).catch(function(){t.loading=!1})}},mounted:function(){}},xi,!1,function(t){i("dlsc")},"data-v-3e021fea",null).exports,Si=i("0thk"),Fi=i("d13G"),Li={props:{callback:function(){},item_id:0,edit_page_id:0,copy_page_id:0},data:function(){return{page_id:0,content:"",title:"",cat_id:"",s_number:"",attachment_count:"",catalogs:[],isLock:0,intervalId:0,saving:!1,sortPageVisiable:!1,notifyVisiable:!1,is_notify:0,notify_content:"",showTemplateDialog:!1,showJsonToTableDialog:!1,showJsonBeautifyDialog:!1,showSqlToMarkdownTableDialog:!1,showHistoryVersionDialog:!1,showAttachmentListDialog:!1,showPasteTableDialog:!1,user_token:"",dialogVisible:!0,showSelectCat:!1,currentCatName:"/",showContent:!1,showMock:!1,showAI:!1,showAIBtn:!1}},components:{Editormd:we,JsonToTable:je,JsonBeautify:Ee,TemplateList:He,HistoryVersion:We,AttachmentList:ti,PasteTable:ri,SortPage:mi,Notify:ui,SqlToMarkdownTable:Ne,SelectCat:Ci,Mock:fi,AI:Ii},methods:{getPageContent:function(t){var e=this;t||(t=this.page_id),this.request("/api/page/info",{page_id:t}).then(function(t){var i=t.data;e.content=Ke(i.page_content),e.showContent=!0,setTimeout(function(){e.content.length>4e3?e.editorUnwatch():e.editorWatch(),e.draft()},1e3),e.title=i.page_title,e.item_id=i.item_id,e.cat_id=i.cat_id,e.s_number=i.s_number,e.attachment_count=i.attachment_count>0?"...":e.attachment_count,e.refreshCat()})},getCatalog:function(t){var e=this;this.request("/api/catalog/catListName",{item_id:t}).then(function(t){var i=t.data;if(i.unshift({cat_id:"0",cat_name:"/"}),e.catalogs=i,e.catalogs&&e.catalogs.length)for(var a=0;a0?this.notifyVisiable=!0:this.save(function(){t.notifyVisiable=!0})},save:function(t){var e=this;if(this.saving)return!1;this.saving=!0;var i=e.$loading(),a=this.$refs.Editormd.getMarkdown(),n=this.cat_id,o=e.item_id,s=e.page_id;this.request("/api/page/save",{page_id:s,item_id:o,page_title:e.title,page_content:encodeURIComponent(a),is_urlencode:1,cat_id:n,is_notify:this.is_notify,notify_content:this.notify_content},"post",!1).then(function(a){i.close(),e.saving=!1,0===a.error_code?("function"==typeof t?t():e.$message({showClose:!0,message:"保存成功",type:"success"}),e.deleteDraft(),e.page_id<=0&&(e.page_id=a.data.page_id,e.$router.replace({path:"/"+e.item_id+"/"+e.page_id}))):10250===a.error_code?(e.deleteDraft(),e.$alert('内容已保存。检测到你的账户尚未绑定邮箱或者邮箱还没有经过验证。当忘记密码的时候,你将面临着丢失数据的风险。点此绑定邮箱,忘记密码时可通过邮箱重置密码',"提示",{dangerouslyUseHTMLString:!0})):e.$alert(a.error_message)}),setTimeout(function(){i.close(),e.saving=!1},1e4)},goback:function(){var t=this,e="/"+this.item_id+"/"+this.page_id;this.page_id?this.callback():this.$router.push({path:e}).then(function(){t.callback()})},saveToTemplate:function(){var t=this,e=this.$refs.Editormd.getMarkdown();this.$prompt(this.$t("save_templ_title")," ",{}).then(function(i){t.request("/api/template/save",{template_title:i.value,template_content:e}).then(function(e){t.$alert(t.$t("save_templ_text"))})})},clipboardEvents:function(t){var e=this;if(document.querySelector("#page-editor .CodeMirror-wrap").contains(document.activeElement))for(var i=DocConfig.server+"/api/page/uploadImg",a=t.clipboardData,n=0,o=a.items.length;n-1){var s=a.items[n].getAsFile(),r=new FormData;r.append("t","ajax-uploadpic"),r.append("editormd-image-file",s),r.append("user_token",e.user_token);var l="",c=function(t,i){switch(t=t||"before"){case"before":l=e.$loading();break;case"error":l.close(),e.$alert("图片上传失败");break;case"success":if(l.close(),1==i.success){var a="![]("+i.url+")";e.insertValue(a)}else e.$alert(i.message)}};$.ajax({url:i,type:"POST",dataType:"json",data:r,processData:!1,contentType:!1,beforeSend:function(){c("before")},error:function(){c("error")},success:function(t){c("success",t)}}),t.preventDefault()}else"text/html"==a.items[n].type&&(t.preventDefault(),a.items[n].getAsString(function(t){var i=document.querySelector("#pastebin");i.innerHTML=t;var a=i.innerText;a.length<200?e.insertValue(a):e.$confirm(e.$t("past_html_tips")," ",{confirmButtonText:e.$t("past_html_markdown"),cancelButtonText:e.$t("past_html_text")}).then(function(i){var a=new Si.a,n=Fi.gfm,o=Fi.tables,s=Fi.strikethrough;a.use([n,o,s]);var r=a.turndown(t);e.insertValue(r)}).catch(function(){e.insertValue(a)})}))},draft:function(){var t=this,e="page_content_"+this.page_id,i=this.$refs.Editormd;setInterval(function(){var t=i.getMarkdown();localStorage.setItem(e,t)},3e4);var a=localStorage.getItem(e);a&&a.length>0&&a!=i.getMarkdown()&&i.getMarkdown()&&i.getMarkdown().length>10&&(localStorage.removeItem(e),t.$confirm(t.$t("draft_tips"),"",{showClose:!1}).then(function(){t.insertValue(a,!0),localStorage.removeItem(e)}).catch(function(){localStorage.removeItem(e)}))},deleteDraft:function(){for(var t=0;t-1&&localStorage.removeItem(e)}},setLock:function(){var t=this;this.page_id>0&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_id}).then(function(){t.isLock=1})},unlock:function(){var t=this;this.isLock&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_id,lock_to:1e3}).then(function(){t.isLock=0})},heartBeatLock:function(){var t=this;this.intervalId=setInterval(function(){t.isLock&&t.setLock()},12e5)},remoteIsLock:function(){var t=this;this.request("/api/page/isLock",{page_id:this.page_id,item_id:this.item_id}).then(function(e){e.data.lock>0?e.data.is_cur_user>0?t.isLock=1:t.$alert(t.$t("locking")+e.data.lock_username,"",{showClose:!1}).then(function(){t.goback()}):e.data.exceed>0&&t.page_id<=0?t.$alert('该项目页面数量超出限制。项目创建者可以开通高级版以获取更多配额。
如果你是项目创建者,你可以点此查看不同账户类型的额度限制差异,也可以点此去升级账户类型
如果你现在不方便处理,你可以等会再自行回到项目列表页,点击右上角的用户中心去升级。',{dangerouslyUseHTMLString:!0}).then(function(){t.goback()}):t.setLock()})},unLockOnClose:function(){var t=this.user_token,e=new URLSearchParams({page_id:this.page_id,item_id:this.item_id,lock_to:1e3,user_token:t}),i=DocConfig.server+"/api/page/setLock";if("sendBeacon"in navigator)navigator.sendBeacon(i,e);else{var a=new XMLHttpRequest;a.open("POST",i,!1),a.send(e)}},refreshCat:function(){this.getCatalog(this.item_id)},goToCat:function(){var t=this.$router.resolve({path:"/catalog/"+this.item_id});window.open(t.href,"_blank")},editTitle:function(){var t=this,e="";(this.page_id||this.copy_page_id)&&(e=this.title),this.$prompt("","",{inputValue:e}).then(function(e){t.title=e.value})},isShowAI:function(){var t=this;this.request("/api/common/homePageSetting",{}).then(function(e){e.data&&e.data.is_show_ai&&(t.showAIBtn=!0)})}},mounted:function(){this.page_id=this.edit_page_id,this.copy_page_id>0?this.getPageContent(this.copy_page_id):this.page_id>0?this.getPageContent(this.page_id):(this.content="\n",this.showContent=!0,this.title=this.$t("default_title"),this.getCatalog(this.item_id)),this.heartBeatLock(),this.remoteIsLock(),document.addEventListener("paste",this.clipboardEvents),window.addEventListener("beforeunload",this.unLockOnClose);var t=this.$store.state.open_cat_id;this.page_id<=0&&t>0&&(this.cat_id=t);var e=v();this.user_token=e.user_token,this.isShowAI()},beforeDestroy:function(){document.removeEventListener("paste",this.clipboardEvents),this.$message.closeAll(),clearInterval(this.intervalId),this.unlock(),window.removeEventListener("beforeunload",this.unLockOnClose)}},Ti={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",[a("el-dialog",{staticClass:"sdialog",attrs:{width:"98%",visible:e.dialogVisible,"show-close":!1,top:"2vh","append-to-body":!0,"close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"title-header pt-4",attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"inline-block"},[a("el-button",{staticClass:"close-btn",attrs:{type:"text",icon:"el-icon-close"},on:{click:e.goback}}),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("click_to_edit_page_title")}},[a("span",{staticClass:"page-title",on:{click:e.editTitle}},[e._v(e._s(e.title))])]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("select_catalog")}},[a("span",{staticClass:"cat-class v3-color-aux v3-font-size-sm",on:{click:function(t){e.showSelectCat=!0}}},[a("i",{staticClass:"el-icon-folder-opened mr-1"}),e._v(e._s(e.currentCatName)+"\n ")])])],1),e._v(" "),a("div",{staticClass:"inline-block float-right"},[a("el-button",{staticClass:"mr-2",attrs:{type:"",size:"medium"},on:{click:e.showNotify}},[a("i",{staticClass:"el-icon-s-comment mr-2"}),e._v(e._s(e.$t("save_and_notify")))]),e._v(" "),a("el-dropdown",{attrs:{"split-button":"",type:"primary",size:"medium",trigger:"click",title:"Ctrl + S"},on:{command:e.dropdownCallback,click:e.save}},[a("span",{attrs:{id:"save-page"}},[a("i",{staticClass:"el-icon-s-shop mr-2"}),e._v(e._s(e.$t("save")))]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.saveToTemplate(t)}}},[e._v(e._s(e.$t("save_to_templ")))]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("lock_edit_tips"),placement:"left"}},[e.isLock?e._e():a("el-dropdown-item",{nativeOn:{click:function(t){return e.setLock(t)}}},[e._v(e._s(e.$t("lock_edit")))])],1),e._v(" "),e.isLock?a("el-dropdown-item",{nativeOn:{click:function(t){return e.unlock(t)}}},[e._v(e._s(e.$t("cacel_lock")))]):e._e()],1)],1)],1)]),e._v(" "),a("div",{on:{keydown:[function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.ctrlKey?(t.preventDefault(),e.save(t)):null},function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.metaKey?(t.preventDefault(),e.save(t)):null}]}},[a("el-row",{staticClass:"fun-btn-group"},[a("el-dropdown",{attrs:{type:"",size:"medium",trigger:"hover"}},[a("el-button",[a("i",{staticClass:"mr-1 fas fa-gear"}),e._v("\n "+e._s(e.$t("doc_tool"))+"\n "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){e.showHistoryVersionDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-rectangle-history"}),e._v("\n "+e._s(e.$t("history_version")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.showAttachment(t)}}},[a("el-badge",{attrs:{value:e.attachment_count}},[a("i",{staticClass:"mr-1 far fa-cloud-arrow-up"}),e._v("\n "+e._s(e.$t("attachment")))])],1),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.showSortPage(t)}}},[a("i",{staticClass:"mr-1 far fa-sort"}),e._v("\n "+e._s(e.$t("sort_pages")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showJsonToTableDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-table"}),e._v("\n "+e._s(e.$t("json_to_table")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showJsonBeautifyDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-goal-net"}),e._v("\n "+e._s(e.$t("beautify_json")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showPasteTableDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-table"}),e._v("\n "+e._s(e.$t("paste_insert_table")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showSqlToMarkdownTableDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-table"}),e._v("\n "+e._s(e.$t("sql_to_markdown_table")))]),e._v(" "),"zh-cn"==e.$lang?a("el-dropdown-item",{nativeOn:{click:function(t){e.showMock=!0}}},[a("i",{staticClass:"mr-1 far fa-database"}),e._v("\n Mock\n ")]):e._e(),e._v(" "),"zh-cn"==e.$lang?a("el-dropdown-item",{nativeOn:{click:function(t){return e.showRunApi(t)}}},[a("i",{staticClass:"mr-1 far fa-link"}),e._v("\n "+e._s(e.$t("http_test_api")))]):e._e()],1)],1),e._v(" "),"zh-cn"==e.$lang&&e.showAIBtn?a("el-button",{staticStyle:{"padding-top":"12px","padding-bottom":"12px"},attrs:{size:"medium"},on:{click:e.createContent},nativeOn:{click:function(t){e.showAI=!0}}},[a("i",{staticClass:"mr-1 far fa-robot"}),e._v("\n "+e._s(e.$t("ai_assistant")))]):e._e(),e._v(" "),a("el-dropdown",{attrs:{type:"",size:"medium",trigger:"hover"}},[a("el-button",[a("i",{staticClass:"mr-1 fas fa-files"}),e._v("\n "+e._s(e.$t("add_from_template"))),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.insertApiTemplate(t)}}},[a("i",{staticClass:"mr-1 far fa-plug"}),e._v("\n "+e._s(e.$t("insert_apidoc_template")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.insertDatabaseTemplate(t)}}},[a("i",{staticClass:"mr-1 far fa-database"}),e._v("\n "+e._s(e.$t("insert_database_doc_template")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showTemplateDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-files"}),e._v("\n "+e._s(e.$t("more_templ")))])],1)],1)],1),e._v(" "),e.showContent?a("Editormd",{ref:"Editormd",attrs:{content:e.content,type:"editor",id:"page-editor"}}):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})]),e._v(" "),e.showTemplateDialog?a("TemplateList",{ref:"TemplateList",attrs:{item_id:e.item_id,callback:function(t){t&&"string"==typeof t&&e.insertValue(t),e.showTemplateDialog=!1}}}):e._e(),e._v(" "),e.showHistoryVersionDialog?a("HistoryVersion",{attrs:{is_show_recover_btn:!0,page_id:e.page_id,callback:function(i){t.showHistoryVersionDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showJsonToTableDialog?a("JsonToTable",{attrs:{callback:function(i){t.showJsonToTableDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showJsonBeautifyDialog?a("JsonBeautify",{attrs:{callback:function(i){t.showJsonBeautifyDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showSqlToMarkdownTableDialog?a("SqlToMarkdownTable",{attrs:{callback:function(i){t.showSqlToMarkdownTableDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showAttachmentListDialog?a("AttachmentList",{attrs:{item_id:e.item_id,manage:!0,page_id:e.page_id,callback:function(i){t.showAttachmentListDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showPasteTableDialog?a("PasteTable",{attrs:{callback:function(i){t.showPasteTableDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.sortPageVisiable?a("SortPage",{ref:"SortPage",attrs:{callback:function(){e.sortPageVisiable=!1},item_id:e.item_id,page_id:e.page_id,cat_id:e.cat_id}}):e._e(),e._v(" "),e.notifyVisiable?a("Notify",{ref:"Notify",attrs:{page_id:e.page_id,item_id:e.item_id,callback:function(t){e.notifyVisiable=!1,t&&"string"==typeof t&&(e.is_notify=1,e.notify_content=t,e.save(function(){e.goback()}))}}}):e._e(),e._v(" "),e.showSelectCat?a("SelectCat",{attrs:{cat_id:e.cat_id,item_id:e.item_id,callback:function(i){t.showSelectCat=!1,!i||"string"!=typeof i&&"number"!=typeof i||(t.cat_id=i,e.refreshCat())}}}):e._e(),e._v(" "),e.showMock?a("Mock",{attrs:{page_id:e.page_id,item_id:e.item_id,callback:function(){e.showMock=!1}}}):e._e(),e._v(" "),e.showAI?a("AI",{attrs:{page_id:e.page_id,item_id:e.item_id,callback:function(i){t.showAI=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),a("div",{attrs:{contenteditable:"true",id:"pastebin"}})],1)},staticRenderFns:[]};var Mi=i("VU/8")(Li,Ti,!1,function(t){i("Tjeq"),i("8C//")},"data-v-6f286537",null).exports,qi=function(t){var e=t;if(!e)return[];var i=[];e.pages&&e.pages.map(function(t){i.push({title:t.page_title,id:t.page_id,page_id:t.page_id,page_cat_id:0,key:"page_"+t.page_id,type:"page",methods:""})});return function t(e){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=[],n=0;n0){o.children=[];for(var s=0;s0){var r=t(e[n].catalogs,e[n].cat_id);o.children=o.children.concat(r)}a.push(o)}return a}(e.catalogs).map(function(t){i.push(t)}),i},Oi=function t(e,i){for(var a=0;a0){var o=t(n.children,i);if(null!==o)return o.push(n.id),o}}return null},Pi={props:{getPageContent:"",item_info:"",searchItem:function(){},keyword:""},components:{PageEdit:Mi,Catalog:yi,HistoryVersion:We,CopyCatalog:vi},data:function(){return{openeds:[],menu:"",show_menu_btn:!1,hideScrollbar:!0,menuMarginLeft:"menu-margin-left1",expandCollapseCatalogStatus:"0",defaultProps:{children:"children",label:"title"},copyPageId:0,editPageId:0,showPageEdit:!1,showCatalog:!1,showRecycle:!1,showHistoryVersiong:!1,showCopyCatalog:!1,editCatId:0}},methods:{showContextMenu:function(t,e){!function(t){var e=t.x,i=void 0===e?0:e,a=t.y,n=void 0===a?0:a,s=t.list,r=void 0===s?[]:s,l=document.createElement("div"),c=Math.random().toString(36).substring(2);l.id=c,document.body.appendChild(l);var m=document.createElement("div");l.appendChild(m);var d=new o.default({render:function(t){return t(Ie,{props:{x:i,y:n,list:r,onCancel:function(){d.$destroy();var t=document.getElementById(c);t&&t.parentNode.removeChild(t)}}})}});d.$mount(m)}({x:t.x,y:t.y,list:"folder"===e.type?this.catContextmenu(e):this.pageContextmenu(e)})},pageContextmenu:function(t){var e=this;return[{icon:"fas fa-edit",text:this.$t("edit_page"),onclick:function(){e.editPageId=t.page_id,e.showPageEdit=!0}},{icon:"fas fa-copy",text:this.$t("copy_page"),onclick:function(){e.editPageId=0,e.copyPageId=t.page_id,e.showPageEdit=!0}},{icon:"fas fa-circle-info",text:this.$t("page_info"),onclick:function(){e.request("/api/page/info",{page_id:t.page_id}).then(function(t){var i="本页面由 "+t.data.author_username+" 于 "+t.data.addtime+" 更新";e.$alert(i)})}},{icon:"fas fa-rectangle-history",text:this.$t("page_history_version"),onclick:function(){e.editPageId=t.page_id,e.showHistoryVersiong=!0}},{icon:"fas fa-trash-can",text:this.$t("delete_page"),onclick:function(){var i=t.page_id;e.$confirm(e.$t("comfirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){e.request("/api/page/delete",{page_id:i}).then(function(t){window.location.reload()})})}}]},catContextmenu:function(t){var e=this;return[{icon:"fas fa-plus",text:this.$t("add_sub_page"),onclick:function(){e.$store.dispatch("changeOpenCatId",t.cat_id),e.editPageId=0,e.showPageEdit=!0}},{icon:"fas fa-folder-tree",text:this.$t("add_sub_cat"),onclick:function(){e.$prompt("","").then(function(i){e.request("/api/catalog/save",{item_id:e.item_info.item_id,cat_id:0,parent_cat_id:t.cat_id,cat_name:i.value}).then(function(t){e.reload()})})}},{icon:"fas fa-folder-plus",text:this.$t("add_si_bling_cat"),onclick:function(){e.$prompt("","").then(function(i){e.request("/api/catalog/save",{item_id:e.item_info.item_id,cat_id:0,parent_cat_id:t.parent_cat_id,cat_name:i.value}).then(function(t){e.reload()})})}},{icon:"fas fa-edit",text:this.$t("edt_cat"),onclick:function(){e.$prompt("","",{inputValue:t.title}).then(function(i){e.request("/api/catalog/save",{item_id:e.item_info.item_id,cat_id:t.cat_id,parent_cat_id:t.parent_cat_id,cat_name:i.value}).then(function(t){e.reload()})})}},{icon:"fas fa-clone",text:this.$t("clone_move"),onclick:function(){e.editCatId=t.cat_id,e.showCopyCatalog=!0}},{icon:"fas fa-trash-can",text:this.$t("delete"),onclick:function(){var i=t.cat_id;e.$confirm(e.$t("confirm_cat_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){e.request("/api/catalog/delete",{item_id:e.item_info.item_id,cat_id:i}).then(function(t){e.reload()})})}}]},allowDrop:function(t,e,i){return!("inner"==i&&e.data.page_id>0)},handleDragEnd:function(){var t=this.menu;if(this.keyword)return!1;var e=function(t){for(var e=[],i=function t(i,a,n,o){if(e.push({cat_id:i.id||0,cat_name:i.title||"",page_id:i.page_id||0,parent_cat_id:a||0,page_cat_id:a||0,level:n,s_number:o+1}),i.hasOwnProperty("children"))for(var s=0;s0)||t!=this.$route.query.page_id&&t!=this.$route.params.page_id){var e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.$router.replace({path:"/"+e+"/"+t})}},inputKeyword:function(){this.searchItem(this.keyword)},showMenu:function(){this.show_menu_btn=!1;var t=document.getElementById("left-side-menu");t.style.display="block",t.style.marginLeft="0px",t.style.marginTop="0px",(t=document.getElementById("p-content")).style.display="none"},hideMenu:function(){this.show_menu_btn=!0;var t=document.getElementById("left-side-menu");t.style.display="none",(t=document.getElementById("p-content")).style.marginLeft="0px",t.style.display="block",(t=document.getElementById("page_md_content")).style.width="95%"},randerUrl:function(t){return"/"+(this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id)+"/"+t}},mounted:function(){var t=this;this.menu=qi(this.item_info.menu);var e=this.item_info.default_page_id?this.item_info.default_page_id:0;if(e){var i=Oi(this.menu,e);i&&(this.openeds=i,setTimeout(function(){document.querySelector("#node-"+e).scrollIntoView(),t.selectMenu(e)},1e3))}}},Di={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",{staticClass:"hide-scrollbar"},[a("div",{attrs:{id:"left-side-menu"}},[a("el-input",{staticClass:"search-box",attrs:{placeholder:e.$t("input_keyword"),clearable:!0,size:"small","suffix-icon":"el-icon-search"},on:{clear:function(t){return e.searchItem()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.inputKeyword(t)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),e._v(" "),e.menu&&e.menu.length>0?a("el-tree",{ref:"tree",attrs:{data:e.menu,props:e.defaultProps,"node-key":"id","default-expanded-keys":e.openeds,draggable:!!e.item_info.item_edit,"allow-drop":e.allowDrop,"auto-expand-parent":!1},on:{"node-click":e.handleNodeClick,"node-drag-end":e.handleDragEnd},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node;return t.data,a("span",{staticClass:"custom-tree-node",on:{contextmenu:function(t){return t.preventDefault(),a=t,void(e.item_info.item_edit&&e.showContextMenu(a,i.data));var a}}},["folder"===i.data.type?a("span",{staticClass:"custom-tree-node node-folder",attrs:{id:"node-"+i.data.id}},[e.openeds.includes(i.data.id)&&i.data.children.length?a("i",{staticClass:"mr-2 far fa-folder-open"}):a("i",{staticClass:"mr-2 far fa-folder-closed"}),e._v(" "),a("span",{staticClass:"node-label"},[e._v(e._s(i.label))])]):a("span",{staticClass:"custom-tree-node node-page",attrs:{id:"node-"+i.data.id}},[a("i",{staticClass:"mr-2 fas fa-file-alt"}),e._v(" "),a("span",{staticClass:"node-label"},[e._v(e._s(i.label))])]),e._v(" "),e.item_info.item_edit?a("span",{staticClass:"node-tool"},[a("span",{on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showContextMenu(t,i.data)}}},[a("i",{staticClass:"mr-3 fas fa-ellipsis"})])]):e._e()])}}],null,!1,2066946501)}):e._e(),e._v(" "),e.showPageEdit?a("PageEdit",{attrs:{edit_page_id:e.editPageId,item_id:e.item_info.item_id,copy_page_id:e.copyPageId,callback:function(){e.showPageEdit=!1,e.reload()}}}):e._e(),e._v(" "),e.showCatalog?a("Catalog",{attrs:{item_id:e.item_id,callback:function(){e.showCatalog=!1,e.reload()}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e(),e._v(" "),e.showHistoryVersiong?a("HistoryVersion",{attrs:{page_id:e.editPageId,is_show_recover_btn:!1,is_modal:!1,callback:function(e){t.showHistoryVersiong=!1}}}):e._e(),e._v(" "),e.showCopyCatalog?a("CopyCatalog",{attrs:{item_id:e.item_info.item_id,cat_id:e.editCatId,callback:function(){e.reload()}}}):e._e()],1)])},staticRenderFns:[]};var Vi=i("VU/8")(Pi,Di,!1,function(t){i("1KaE")},"data-v-3b9435c4",null).exports,ji={props:{callback:function(){},page_id:"",item_id:""},data:function(){return{page:1,count:10,dataList:[],total:0,dialogTableVisible:!0}},components:{},computed:{},methods:{getList:function(){var t=this;this.request("/api/item/getChangeLog",{page:this.page,count:this.count,item_id:this.item_id}).then(function(e){var i=e.data;t.dialogTableVisible=!0,t.dataList=i.list,t.total=parseInt(i.total)})},handleCurrentChange:function(t){this.page=t,this.getList()},visitPage:function(t){var e=this.$router.resolve({path:"/"+this.item_id+"/"+t});window.open(e.href,"_blank")}},mounted:function(){this.getList()}},Ai={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("item_change_log_dialog_title"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"70%",top:"5vh"}},[i("el-table",{attrs:{data:t.dataList}},[i("el-table-column",{attrs:{property:"optime",label:t.$t("optime"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"oper",label:t.$t("oper")}}),t._v(" "),"zh-cn"==t.$lang?i("el-table-column",{attrs:{property:"op_action_type_desc",label:t.$t("op_action_type_desc")}}):t._e(),t._v(" "),"zh-cn"==t.$lang?i("el-table-column",{attrs:{property:"op_object_type_desc",label:t.$t("op_object_type_desc")}}):t._e(),t._v(" "),"en"==t.$lang?i("el-table-column",{attrs:{property:"op_action_type",label:t.$t("op_action_type_desc")}}):t._e(),t._v(" "),"en"==t.$lang?i("el-table-column",{attrs:{property:"op_object_type",label:t.$t("op_object_type_desc")}}):t._e(),t._v(" "),i("el-table-column",{attrs:{property:"op_object_name",label:t.$t("op_object_name")},scopedSlots:t._u([{key:"default",fn:function(e){return["create"!=e.row.op_action_type&&"update"!=e.row.op_action_type||"page"!=e.row.op_object_type?i("span",[t._v(t._s(e.row.op_object_name))]):i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.visitPage(e.row.op_object_id)}}},[t._v(t._s(e.row.op_object_name))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1)},staticRenderFns:[]};var Ui=i("VU/8")(ji,Ai,!1,function(t){i("ypCA")},null,null).exports,Ei={props:{callback:function(){},page_info:"",item_info:""},data:function(){return{qr_page_link:"#",qr_single_link:"#",share_page_link:"",share_single_link:"",copyText1:"",copyText2:"",isCreateSiglePage:!1,page_id:""}},components:{},computed:{},methods:{sharePage:function(){var t=this.page_id>0?this.page_id:0,e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.share_page_link=this.getRootPath()+"#/"+e+"/"+t,this.qr_page_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_page_link),this.showShare=!0,this.copyText1=this.item_info.item_name+" - "+this.page_info.page_title+"\r\n"+this.share_page_link,this.copyText2=this.page_info.page_title+"\r\n"+this.share_single_link},onCopy:function(){this.$message(this.$t("copy_success"))},checkCreateSiglePage:function(t){var e=this;t?this.createSiglePage():this.$confirm(this.$t("cancelSingle")," ",{confirmButtonText:this.$t("cancelSingleYes"),cancelButtonText:this.$t("cancelSingleNo"),type:"warning"}).then(function(){e.createSiglePage()},function(){e.isCreateSiglePage=!0})},createSiglePage:function(){var t=this,e=this.page_id>0?this.page_id:0;this.request("/api/page/createSinglePage",{page_id:e,isCreateSiglePage:this.isCreateSiglePage}).then(function(e){var i=e.data.unique_key;t.share_single_link=i?t.getRootPath()+"#/p/"+i:""})}},mounted:function(){this.page_id=this.page_info.page_id,this.sharePage(),this.page_info.unique_key&&(this.isCreateSiglePage=!0,this.share_single_link=this.getRootPath()+"#/p/"+this.page_info.unique_key)}},Ri={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("share"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"600px"}},[i("p",[t._v("\n "+t._s(t.$t("item_page_address"))+" :\n "),i("code",[t._v(t._s(t.share_page_link))]),t._v(" "),i("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.share_page_link,expression:"share_page_link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy cursor-pointer"})]),t._v(" "),t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.item_info.item_edit,expression:"item_info.item_edit"}]},[i("el-checkbox",{on:{change:t.checkCreateSiglePage},model:{value:t.isCreateSiglePage,callback:function(e){t.isCreateSiglePage=e},expression:"isCreateSiglePage"}},[t._v(t._s(t.$t("create_sigle_page")))]),t._v(" "),t.isCreateSiglePage?i("p",[t._v("\n "+t._s(t.$t("single_page_address"))+" :\n "),i("code",[t._v(t._s(t.share_single_link))]),t._v(" "),i("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.share_single_link,expression:"share_single_link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy cursor-pointer"})]):t._e(),t._v(" "),i("p"),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("create_sigle_page_tips")))])],1)])],1)},staticRenderFns:[]};var Ni=i("VU/8")(Ei,Ri,!1,function(t){i("Imfp")},null,null).exports,zi={name:"Login",components:{},props:{callback:function(){},item_id:0},data:function(){return{catalogs:[],cat_id:"",export_type:"1",export_format:"word",pages:[{page_id:"0",page_title:this.$t("all_pages")}],page_id:"0",showMarkdown:!0,user_token:""}},computed:{computed_catalogs:function(){for(var t=this.catalogs.slice(0),e=[],i=0;i0)for(var n=0;n0)for(var s=0;s0?window.location.reload():(this.$router.push({path:"/item/index"}),window.location.reload())}},mounted:function(){var t=v();this.user_token=t.user_token,this.importToItemId=this.item_id},beforeDestroy:function(){}},Gi={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("import"),width:"400px",showOk:!1}},[i("div",[i("div",{staticClass:"ml-6"},[i("el-radio",{attrs:{label:t.item_id},model:{value:t.importToItemId,callback:function(e){t.importToItemId=e},expression:"importToItemId"}},[t._v(t._s(t.$t("import_into_cur_item")))]),t._v(" "),i("el-radio",{attrs:{label:"0"},model:{value:t.importToItemId,callback:function(e){t.importToItemId=e},expression:"importToItemId"}},[t._v(t._s(t.$t("import_into_new_item")))])],1),t._v(" "),i("br"),t._v(" "),i("div",[i("el-upload",{attrs:{drag:"",name:"file",action:t.uploadUrl,data:{item_id:this.importToItemId,user_token:this.user_token},"on-success":t.uploadCallback,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1),t._v(" "),i("br"),t._v(" "),i("div",[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips1"))}})]),t._v(" "),i("br"),t._v(" "),i("div",{staticClass:"tips-text"},[t._v(t._s(t.$t("import_into_cur_item_tips")))])])])],1)},staticRenderFns:[]};var Ji={components:{PageEdit:Mi,Catalog:yi,Member:Ut,HistoryVersion:We,SortPage:mi,ChangeLog:Ui,OpenApi:Rt,Recycle:zt,Archive:Bt,Attorn:Gt,Delete:Yt,ItemUpdate:W,ItemExport:Bi,ItemImport:i("VU/8")(Ki,Gi,!1,function(t){i("mNYk")},"data-v-70ffa830",null).exports,Share:Ni,UserSetting:q,Message:kt},props:{searchItem:function(){},page_id:"",item_info:{},page_info:{}},data:function(){return{showPageEdit:!1,showCatalog:!1,item_id:"",edit_page_id:0,showTeam:!1,copy_page_id:0,showHistoryVersiong:!1,showSortPage:!1,showMember:!1,showOpenApi:!1,showRecycle:!1,showArchive:!1,showAttorn:!1,showDelete:!1,showItemUpdate:!1,showChangeLog:!1,showItemExport:!1,showItemImport:!1,showShare:!1,showUserSetting:!1,showMessage:!1}},computed:{},methods:{goback:function(){var t=this;setTimeout(function(){t.$router.push({path:"/item/index"})},500)}},mounted:function(){this.item_id=this.item_info.item_id}},Wi={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",{staticClass:"header-right float-right mt-6 mr-5"},[a("div",[e.item_info.item_edit&&e.page_id?a("el-tooltip",{attrs:{effect:"dark",content:e.$t("edit_page")}},[a("div",{staticClass:"icon-item",on:{click:function(t){e.edit_page_id=e.page_id,e.showPageEdit=!0}}},[a("i",{staticClass:"fas fa-edit"})])]):e._e(),e._v(" "),3==e.item_info.item_type&&e.item_info.is_login?a("el-tooltip",{attrs:{effect:"dark",content:"runapi项目请在runapi客户端编辑"}},[a("div",{staticClass:"icon-item cursor-not-allowed"},[a("i",{staticClass:"cursor-not-allowed far fa-edit"})])]):e._e(),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("share"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(t){e.showShare=!0}}},[a("i",{staticClass:"far fa-share-nodes"})])]),e._v(" "),e.item_info.is_login?a("el-tooltip",{attrs:{effect:"dark",content:e.$t("my_notice"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(){e.$store.dispatch("changeNewMsg",0),e.showMessage=!0}}},[a("el-badge",{attrs:{value:e.$store.state.new_msg?"New":""}},[a("i",{staticClass:"far fa-message"})])],1)]):e._e(),e._v(" "),e.item_info.is_login?a("el-tooltip",{attrs:{effect:"dark",content:e.$t("user_center"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(t){e.showUserSetting=!0}}},[a("i",{staticClass:"far fa-user"})])]):e._e(),e._v(" "),e.item_info.is_login?e._e():a("el-tooltip",{attrs:{effect:"dark",content:e.$t("login"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(){e.$router.push({path:"/user/login"})}}},[a("i",{staticClass:"far fa-user"})])]),e._v(" "),e.item_info.is_login?e._e():a("el-tooltip",{attrs:{effect:"dark",content:e.$t("about_showdoc"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(t){return e.toOutLink("https://www.showdoc.com.cn/help")}}},[a("i",{staticClass:"far fa-circle-info"})])]),e._v(" "),e.item_info.item_manage?a("div",{staticClass:"inline"},[a("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[a("div",{staticClass:"icon-item"},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"far fa-ellipsis"})])]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){e.showItemImport=!0}}},[a("i",{staticClass:"mr-2 far fa-arrow-down-to-bracket",staticStyle:{transform:"rotate(180deg)"}}),e._v("\n "+e._s(e.$t("import"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showItemExport=!0}}},[a("i",{staticClass:"mr-2 far fa-arrow-down-to-bracket"}),e._v("\n "+e._s(e.$t("export"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showMember=!0}}},[a("i",{staticClass:"mr-2 far fa-users"}),e._v("\n "+e._s(e.$t("member_manage"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showRecycle=!0}}},[a("i",{staticClass:"mr-2 far fa-trash"}),e._v("\n "+e._s(e.$t("recycle"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showItemUpdate=!0}}},[a("i",{staticClass:"mr-2 far fa-edit"}),e._v("\n "+e._s(e.$t("update_item_base_info"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showChangeLog=!0}}},[a("i",{staticClass:"mr-2 far fa-rectangle-vertical-history"}),e._v("\n "+e._s(e.$t("item_change_log"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showAttorn=!0}}},[a("i",{staticClass:"mr-2 fas fa-recycle"}),e._v("\n "+e._s(e.$t("attorn_item"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showArchive=!0}}},[a("i",{staticClass:"mr-2 far fa-box-archive"}),e._v("\n "+e._s(e.$t("archive_item"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showDelete=!0}}},[a("i",{staticClass:"mr-2 fae fa-trash-can"}),e._v("\n "+e._s(e.$t("delete_item"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showOpenApi=!0}}},[a("i",{staticClass:"mr-2 fas fa-terminal"}),e._v("\n "+e._s(e.$t("open_api"))+"\n ")])],1)],1)],1):e._e()],1),e._v(" "),e.showPageEdit?a("PageEdit",{attrs:{edit_page_id:e.edit_page_id,item_id:e.item_info.item_id,copy_page_id:e.copy_page_id,callback:function(){e.showPageEdit=!1,e.reload()}}}):e._e(),e._v(" "),e.showCatalog?a("Catalog",{attrs:{item_id:e.item_info.item_id,callback:function(){e.showCatalog=!1,e.reload()}}}):e._e(),e._v(" "),e.showShare?a("Share",{attrs:{callback:function(){e.showShare=!1},item_info:e.item_info,page_info:e.page_info}}):e._e(),e._v(" "),e.showMember?a("Member",{attrs:{callback:function(){e.showMember=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showHistoryVersiong?a("HistoryVersion",{attrs:{page_id:e.page_id,is_show_recover_btn:!1,is_modal:!1,callback:function(e){t.showHistoryVersiong=!1}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e(),e._v(" "),e.showRecycle?a("Recycle",{attrs:{callback:function(){e.showRecycle=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showItemUpdate?a("ItemUpdate",{attrs:{callback:function(){e.showItemUpdate=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showChangeLog?a("ChangeLog",{attrs:{callback:function(){e.showChangeLog=!1},item_id:e.item_id,page_id:e.page_id}}):e._e(),e._v(" "),e.showArchive?a("Archive",{attrs:{callback:function(){e.showArchive=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showAttorn?a("Attorn",{attrs:{callback:function(){e.showAttorn=!1,e.goback()},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showDelete?a("Delete",{attrs:{callback:function(){e.showDelete=!1,e.goback()},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showOpenApi?a("OpenApi",{attrs:{callback:function(){e.showOpenApi=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showItemExport?a("ItemExport",{attrs:{callback:function(){e.showItemExport=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showItemImport?a("ItemImport",{attrs:{callback:function(){e.showItemImport=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showUserSetting?a("UserSetting",{attrs:{callback:function(){e.showUserSetting=!1}}}):e._e(),e._v(" "),e.showMessage?a("Message",{attrs:{callback:function(){e.showMessage=!1}}}):e._e()],1)},staticRenderFns:[]};var Yi=i("VU/8")(Ji,Wi,!1,function(t){i("koPa")},"data-v-10b464a2",null).exports,Xi={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"header grey-bg"},[e("div",{staticClass:"logo float-left mt-6 ml-5 cursor-pointer"},[e("div",[e("div",{staticClass:"inline-block align-middle"},[e("router-link",{attrs:{to:"/item/index"}},[e("div",{staticClass:"icon-item"},[e("i",{staticClass:"far fa-arrow-left"})])])],1),this._v(" "),e("div",{staticClass:"inline-block align-middle"},[e("div",{staticClass:"font-bold"},[this._v(this._s(this.item_info.item_name))])])])]),this._v(" "),this._t("default")],2)},staticRenderFns:[]};var Qi=i("VU/8")({props:{item_info:""},data:function(){return{}},components:{},computed:{},methods:{},mounted:function(){}},Xi,!1,function(t){i("vUpo")},"data-v-680e67fd",null).exports,Zi={props:{item_info:{type:Object,required:!0},searchItem:{type:Function,required:!0},getPageContent:{type:Function,required:!0}},data:function(){return{drawer:!1,menu:[],defaultProps:{children:"children",label:"title"},openeds:[],hideElement:!1,lastScrollTop:0}},methods:{handleNodeClick:function(t){t.page_id&&(this.selectMenu(t.page_id),this.drawer=!1)},selectMenu:function(t){this.changeUrl(t),this.getPageContent(t),this.$refs.tree.setCurrentKey(parseInt(t))},changeUrl:function(t){if(!(t>0)||t!=this.$route.query.page_id&&t!=this.$route.params.page_id){var e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.$router.replace({path:"/"+e+"/"+t})}},handleScroll:function(){var t=event.target.scrollTop||window.pageYOffset||document.documentElement.scrollTop;t<100||t0?a("el-tree",{ref:"tree",attrs:{data:t.menu,props:t.defaultProps,"default-expanded-keys":t.openeds,"node-key":"id"},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node;return e.data,a("span",{staticClass:"custom-tree-node"},[a("span",["folder"===i.data.type?a("span",{staticClass:"custom-tree-node node-folder",attrs:{id:"node-"+i.data.id}},[a("i",{staticClass:"mr-2 far fa-folder-closed"}),t._v(" "),a("span",{staticClass:"node-label"},[t._v(t._s(i.label))])]):a("span",{staticClass:"custom-tree-node node-page",attrs:{id:"node-"+i.data.id}},[a("i",{staticClass:"mr-2 fas fa-file-alt"}),t._v(" "),a("span",{staticClass:"node-label"},[t._v(t._s(i.label))])])])])}}],null,!1,1330467333)}):t._e()],1)])],1)},staticRenderFns:[]};var ea=i("VU/8")(Zi,ta,!1,function(t){i("N2Ug")},"data-v-ebaaf0a8",null).exports,ia={props:{searchItem:function(){},page_id:"",item_id:"",page_info:{},item_info:{}},data:function(){return{showPageEdit:!1,showCatalog:!1,showSortPage:!1,showRecycle:!1,copyPageId:0,showHistoryVersiong:!1}},components:{PageEdit:Mi,Catalog:yi,SortPage:mi,Recycle:zt,HistoryVersion:We},computed:{},methods:{showPageInfo:function(){var t="本页面由 "+this.page_info.author_username+" 于 "+this.page_info.addtime+" 更新";this.$alert(t)},deletePage:function(){var t=this,e=this.page_id>0?this.page_id:0;this.$confirm(this.$t("comfirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){t.request("/api/page/delete",{page_id:e}).then(function(t){window.location.reload()})})}},mounted:function(){}},aa={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",[e.item_info.item_edit?a("div",{staticClass:"left-menu-bottom-bar",attrs:{id:"left-menu-bottom-bar"}},[a("el-tooltip",{attrs:{effect:"dark",content:e.$t("new_page"),placement:"top"}},[a("div",{staticClass:"bottom-bar-item-icon",on:{click:function(t){e.showPageEdit=!0}}},[a("i",{staticClass:"far fa-plus"})])]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("copy_page"),placement:"top"}},[a("div",{staticClass:"bottom-bar-item-icon",on:{click:function(t){e.copyPageId=e.page_id,e.showPageEdit=!0}}},[a("i",{staticClass:" far fa-clone"})])]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("new_catalog"),placement:"top"}},[a("div",{staticClass:"bottom-bar-item-icon",on:{click:function(t){e.showCatalog=!0}}},[a("i",{staticClass:"far fa-folder-plus"})])]),e._v(" "),a("div",{staticClass:"bottom-bar-item-icon"},[a("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[a("div",{staticClass:"bottom-bar-item-icon"},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:" fas fa-ellipsis"})])]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){e.showRecycle=!0}}},[a("i",{staticClass:" far fa-trash"}),e._v("\n "+e._s(e.$t("recycle"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showHistoryVersiong=!0}}},[a("i",{staticClass:" far fa-rectangle-history"}),e._v("\n "+e._s(e.$t("page_history_version"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showSortPage=!0}}},[a("i",{staticClass:" far fa-sort"}),e._v("\n "+e._s(e.$t("sort_page"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.showPageInfo(t)}}},[a("i",{staticClass:" far fa-circle-info"}),e._v("\n "+e._s(e.$t("page_info"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.deletePage(t)}}},[a("i",{staticClass:" far fa-trash-can"}),e._v("\n "+e._s(e.$t("delete_page"))+"\n ")])],1)],1)],1),e._v(" "),e.showPageEdit?a("PageEdit",{attrs:{edit_page_id:0,item_id:e.item_id,copy_page_id:e.copyPageId,callback:function(){e.showPageEdit=!1,e.reload()}}}):e._e(),e._v(" "),e.showCatalog?a("Catalog",{attrs:{item_id:e.item_id,callback:function(){e.showCatalog=!1,e.reload()}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e(),e._v(" "),e.showRecycle?a("Recycle",{attrs:{callback:function(){e.showRecycle=!1},item_id:e.item_id}}):e._e(),e._v(" "),e.showHistoryVersiong?a("HistoryVersion",{attrs:{page_id:e.page_id,is_show_recover_btn:!1,is_modal:!1,callback:function(e){t.showHistoryVersiong=!1}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e()],1):e._e()])},staticRenderFns:[]};var na={props:{item_info:"",searchItem:function(){},keyword:""},data:function(){return{content:"###正在加载...",page_id:"",page_title:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",page_info:"",copyText:"",attachment_count:"",fullPage:!1,showToc:!0,showComp:!0,emptyItem:!1,showAttachmentListDialog:!1,showMobileHeader:!1,showPCHeader:!0,device:"pc"}},components:{Editormd:we,LeftMenu:Vi,Toc:$e,AttachmentList:ti,Header:Qi,HeaderRight:Yi,LeftMenuBottomBar:i("VU/8")(ia,aa,!1,function(t){i("UA7n"),i("jJGY")},"data-v-73ed3b30",null).exports,MobileHeader:ea},methods:{getPageContent:function(t){var e=this;t<=0||(this.adaptScreen(),this.request("/api/page/info",{page_id:t},"post",!1).then(function(i){e.content=Ke(i.data.page_content,e.$store.state.item_info.global_param),e.$store.dispatch("changeOpenCatId",i.data.cat_id),e.page_title=i.data.page_title,e.page_info=i.data,e.attachment_count=i.data.attachment_count>0?i.data.attachment_count:"",e.page_id=0,e.item_info.default_page_id=t,e.$nextTick(function(){e.page_id=t,document.body.scrollTop=document.documentElement.scrollTop=0,document.title=e.page_title+"--ShowDoc"})}))},adaptToMobile:function(){this.$refs.leftMenu.hideMenu();var t=document.getElementById("doc-container");t.style.padding="0px",t.style.width="calc( 100vw - 1px )",t.style.minWidth="calc( 100vw - 1px )",t.style.maxWidth="calc( 100vw - 1px )",t.style.margin="0px",this.showPCHeader=!1,this.showMobileHeader=!0,this.device="mobile";var e=document.getElementById("content-side");e.style.width="calc (100% -1px)",e.style.minWidth="calc( 100% - 1px )",e.style.maxWidth="calc( 100% - 1px )",e.style.minHeight="calc(100vh - 60px + 5px )",e.style.marginLeft="0px",e.style.borderRadius="0px",document.getElementById("doc-title-box").style.marginTop="0px",this.showToc=!1;var i=document.getElementById("left-menu-bottom-bar");i&&(i.style.display="none")},adaptScreen:function(){var t=this;this.$nextTick(function(){t.isMobile()&&t.adaptToMobile()})},onCopy:function(){this.$message(this.$t("copy_success"))},clickFullPage:function(){var t=this;if(this.fullPage)this.showComp=!1,this.$nextTick(function(){t.showComp=!0,t.showToc=!0,t.showPCHeader=!0,t.showMobileHeader=!1,t.device="pc"});else{this.adaptToMobile(),this.showMobileHeader=!1;var e=this.page_id;this.page_id=0,this.$nextTick(function(){t.page_id=e,setTimeout(function(){$(".editormd-html-preview").css("font-size","16px")},200)}),$("#left-side").hide(),$("#right-side").hide(),$("#left-menu-bottom-bar").hide()}this.fullPage=!this.fullPage}},mounted:function(){this.adaptScreen(),this.item_info&&this.item_info.menu&&0===this.item_info.menu.catalogs.length&&0===this.item_info.menu.pages.length&&(this.emptyItem=!0)}},oa={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return e.showComp?a("div",{class:e.device},[e.showPCHeader?a("Header",{attrs:{id:"header",item_info:e.item_info}},[a("HeaderRight",{attrs:{page_id:e.page_id,item_info:e.item_info,page_info:e.page_info,searchItem:e.searchItem}})],1):e._e(),e._v(" "),e.showMobileHeader?a("MobileHeader",{attrs:{item_info:e.item_info,searchItem:e.searchItem,getPageContent:e.getPageContent}}):e._e(),e._v(" "),a("div",{staticClass:"doc-container ",attrs:{id:"doc-container"}},[a("div",{attrs:{id:"left-side"}},[e.item_info&&!e.showMobileHeader?a("LeftMenu",{ref:"leftMenu",attrs:{getPageContent:e.getPageContent,keyword:e.keyword,item_info:e.item_info,searchItem:e.searchItem}}):e._e(),e._v(" "),e.item_info?a("LeftMenuBottomBar",{attrs:{item_id:e.item_info.item_id,page_info:e.page_info,searchItem:e.searchItem,page_id:e.page_id,item_info:e.item_info}}):e._e()],1),e._v(" "),a("div",{attrs:{id:"content-side"}},[a("div",{attrs:{id:"p-content"}},[a("div",{staticClass:"doc-title-box",attrs:{id:"doc-title-box"}},[a("span",{staticClass:"v3-font-size-lg font-bold ",attrs:{id:"doc-title"}},[e._v(e._s(e.page_title))]),e._v(" "),a("span",{staticClass:"float-right"},[e.attachment_count?a("i",{staticClass:"el-icon-upload item",attrs:{id:"attachment"},on:{click:function(t){e.showAttachmentListDialog=!0}}}):e._e(),e._v(" "),e.page_id&&!e.isMobile()?a("i",{staticClass:"el-icon-full-screen",attrs:{id:"full-page"},on:{click:e.clickFullPage}}):e._e()])]),e._v(" "),a("div",{attrs:{id:"doc-body"}},[a("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[e.page_id?a("Editormd",{attrs:{content:e.content,type:"html",keyword:e.keyword}}):e._e()],1),e._v(" "),e.emptyItem&&"zh-cn"==e.$lang?a("div",{staticClass:"empty-tips"},[e._m(0),e._v(" "),e._m(1)]):e._e()])])]),e._v(" "),e._m(2)]),e._v(" "),a("el-backtop",{attrs:{right:"40",bottom:"40"}}),e._v(" "),e.page_id&&e.showToc?a("Toc"):e._e(),e._v(" "),e.showAttachmentListDialog?a("AttachmentList",{attrs:{item_id:e.page_info.item_id,manage:!1,page_id:e.page_info.page_id,callback:function(e){t.showAttachmentListDialog=!1}}}):e._e()],1):e._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon"},[e("i",{staticClass:"el-icon-warning"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text"},[i("p",[t._v("\n 当前项目是空的,你可以点击左下方的 + 以手动添加页面。\n ")]),t._v(" "),i("div",[t._v("\n 除了手动添加外,你还可以通过以下三种方式自动化生成文档:\n "),i("p",{staticClass:"links"},[i("i",{staticClass:"el-icon-star-on v3-color-yellow"}),t._v(" "),i("a",{attrs:{href:"https://www.showdoc.com.cn/runapi",target:"_blank"}},[t._v("\n 使用runapi工具自动生成(推荐)")]),i("i",{staticClass:"el-icon-star-on v3-color-yellow"}),i("br"),t._v(" "),i("a",{attrs:{href:"https://www.showdoc.com.cn/page/7416564025093",target:"_blank"}},[t._v("\n 使用程序注释自动生成")]),i("br"),t._v(" "),i("a",{attrs:{href:"https://www.showdoc.com.cn/page/102098",target:"_blank"}},[t._v("自己写程序调用接口来生成")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"right-side"}},[e("div",{attrs:{id:"toc-pos"}})])}]};var sa=i("VU/8")(na,oa,!1,function(t){i("fPSf")},"data-v-77845de8",null).exports,ra={components:{Member:Ut,Archive:Bt,Attorn:Gt,Delete:Yt,ItemUpdate:W,Share:Zt,PageEdit:Mi},props:{item_info:{},page_id:0},data:function(){return{lang:"",item_id:"",showTeam:!1,showHistoryVersiong:!1,showMember:!1,showArchive:!1,showAttorn:!1,showItemUpdate:!1,showShare:!1,showDelete:!1,showPageEdit:!1}},methods:{goback:function(){var t=this;setTimeout(function(){t.$router.push({path:"/item/index"})},500)}},mounted:function(){this.item_id=this.item_info.item_id}},la={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header-right float-right mt-6 mr-5"},[i("div",[t.item_info.item_edit?i("div",{staticClass:"icon-item",on:{click:function(e){t.showPageEdit=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("edit_page")}},[i("i",{staticClass:"far fa-edit"})])],1):t._e(),t._v(" "),i("div",{staticClass:"icon-item",on:{click:function(e){t.showShare=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("share"),placement:"top"}},[i("i",{staticClass:"far fa-share-nodes"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:function(e){t.showMember=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("member_manage"),placement:"top"}},[i("i",{staticClass:"fal fa-users"})])],1):t._e(),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(){t.$router.push({path:"/user/login"})}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("login"),placement:"top"}},[i("i",{staticClass:"far fa-user"})])],1),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/help")}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("about_showdoc"),placement:"top"}},[i("i",{staticClass:"far fa-circle-info"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"inline"},[i("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[i("div",{staticClass:"icon-item"},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"far fa-ellipsis"})])]),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){t.showItemUpdate=!0}}},[i("i",{staticClass:"mr-2 far fa-edit"}),t._v("\n "+t._s(t.$t("update_item_base_info"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showAttorn=!0}}},[t._v("\n "+t._s(t.$t("attorn_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showArchive=!0}}},[i("i",{staticClass:"mr-2 far fa-box-archive"}),t._v("\n "+t._s(t.$t("archive_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showDelete=!0}}},[i("i",{staticClass:"mr-2 far fa-trash-can"}),t._v("\n "+t._s(t.$t("delete_item"))+"\n ")])],1)],1)],1):t._e()]),t._v(" "),t.showPageEdit?i("PageEdit",{attrs:{edit_page_id:t.page_id,item_id:t.item_info.item_id,callback:function(){t.showPageEdit=!1,t.reload()}}}):t._e(),t._v(" "),t.showShare?i("Share",{attrs:{callback:function(){t.showShare=!1},item_info:t.item_info}}):t._e(),t._v(" "),t.showMember?i("Member",{attrs:{callback:function(){t.showMember=!1},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showItemUpdate?i("ItemUpdate",{attrs:{callback:function(){t.showItemUpdate=!1,t.reload()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showArchive?i("Archive",{attrs:{callback:function(){t.showArchive=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showAttorn?i("Attorn",{attrs:{callback:function(){t.showAttorn=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showDelete?i("Delete",{attrs:{callback:function(){t.showDelete=!1,t.goback()},item_id:t.item_info.item_id}}):t._e()],1)},staticRenderFns:[]};var ca={props:{item_info:""},data:function(){return{menu:"",content:"",page_title:"",page_id:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",copyText:""}},components:{Editormd:we,Toc:$e,Header:Qi,HeaderRight:i("VU/8")(ra,la,!1,function(t){i("X23A")},"data-v-a0ed0c62",null).exports},methods:{getPageContent:function(t){var e=this;t||(t=this.page_id),this.request("/api/page/info",{page_id:t}).then(function(t){var i=t.data;e.content=Ke(i.page_content),e.page_title=i.page_title})},editPage:function(){var t=this.page_id>0?this.page_id:0,e="/page/edit/"+this.item_info.item_id+"/"+t;this.$router.push({path:e})},shareItem:function(){var t=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.share_item_link=this.getRootPath()+"#/"+t,this.qr_item_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_item_link),this.dialogVisible=!0,this.copyText=this.item_info.item_name+" -- ShowDoc \r\n"+this.share_item_link},adaptToMobile:function(){var t=document.getElementById("doc-container");t.style.width="95%",t.style.padding="5px",t.style.marginTop="10px",document.getElementById("header").style.display="none"},onCopy:function(){this.$message(this.$t("copy_success"))}},mounted:function(){var t=this;this.menu=this.item_info.menu,this.page_id=this.menu.pages[0].page_id,this.getPageContent(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){t.adaptToMobile()})}},ma={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello grey-bg"},[i("Header",{attrs:{id:"header",item_info:t.item_info}},[i("HeaderRight",{attrs:{item_info:t.item_info,page_id:t.page_id}})],1),t._v(" "),i("div",{staticClass:"container doc-container",attrs:{id:"doc-container"}},[i("div",{staticClass:"doc-title-box"},[i("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),t._v(" "),i("h2",{attrs:{id:"doc-title"}},[t._v(t._s(t.page_title))])]),t._v(" "),i("div",{attrs:{id:"doc-body"}},[i("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[t.content?i("Editormd",{attrs:{content:t.content,type:"html"}}):t._e()],1)])]),t._v(" "),t.dialogVisible?i("SDialog",{attrs:{title:t.$t("share"),onCancel:function(){t.dialogVisible=!1},showCancel:!1,onOK:function(){t.dialogVisible=!1},width:"500px"}},[i("div",{staticClass:"text-center"},[i("p",[t._v("\n "+t._s(t.$t("item_address"))+" :\n "),i("code",[t._v(t._s(t.share_item_link))])]),t._v(" "),i("p",[i("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copyhttplist",value:t.copyText,expression:"copyText",arg:"copyhttplist"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"home-phone-butt",attrs:{href:"javascript:;"}},[t._v(t._s(t.$t("copy_link")))])]),t._v(" "),i("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[i("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"",src:t.qr_item_link}})])])]):t._e(),t._v(" "),i("el-backtop",{attrs:{right:"40",bottom:"40"}}),t._v(" "),t.page_id?i("Toc"):t._e(),t._v(" "),i("Footer"),t._v(" "),i("div",{})],1)},staticRenderFns:[]};var da=i("VU/8")(ca,ma,!1,function(t){i("hQ8A")},"data-v-791c56a5",null).exports,_a={components:{Member:Ut,Archive:Bt,Attorn:Gt,Delete:Yt,ItemUpdate:W,Share:Zt},props:{item_info:{},spreadsheetObj:{},exportFile:function(){},improtFile:function(){}},data:function(){return{item_id:"",showTeam:!1,copy_page_id:0,showHistoryVersiong:!1,showMember:!1,showArchive:!1,showAttorn:!1,showItemUpdate:!1,showShare:!1,showImport:!1,showDelete:!1}},methods:{goback:function(){this.$router.push({path:"/item/index"}),setTimeout(function(){window.location.reload()},200)}},mounted:function(){this.item_id=this.item_info.item_id}},ua={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header-right float-right mt-6 mr-5"},[i("div",[i("div",{staticClass:"icon-item",on:{click:function(e){t.showShare=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("share"),placement:"top"}},[i("i",{staticClass:"far fa-share-nodes"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:t.exportFile}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("export"),placement:"top"}},[i("i",{staticClass:"far fa-arrow-down-to-bracket"})])],1):t._e(),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:function(e){t.showImport=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("import"),placement:"top"}},[i("i",{staticClass:"far fa-arrow-down-to-bracket",staticStyle:{transform:"rotate(180deg)"}})])],1):t._e(),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:function(e){t.showMember=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("member_manage"),placement:"top"}},[i("i",{staticClass:"fal fa-users"})])],1):t._e(),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(){t.$router.push({path:"/user/login"})}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("login"),placement:"top"}},[i("i",{staticClass:"far fa-user"})])],1),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/help")}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("about_showdoc"),placement:"top"}},[i("i",{staticClass:"far fa-circle-info"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"inline"},[i("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[i("div",{staticClass:"icon-item"},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"far fa-ellipsis"})])]),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){t.showItemUpdate=!0}}},[i("i",{staticClass:"mr-2 far fa-edit"}),t._v("\n "+t._s(t.$t("update_item_base_info"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showAttorn=!0}}},[i("i",{staticClass:"mr-2 far fa-recycle"}),t._v("\n "+t._s(t.$t("attorn_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showArchive=!0}}},[i("i",{staticClass:"mr-2 far fa-archive"}),t._v("\n "+t._s(t.$t("archive_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showDelete=!0}}},[i("i",{staticClass:"mr-2 far fa-trash-can"}),t._v("\n "+t._s(t.$t("delete_item"))+"\n ")])],1)],1)],1):t._e()]),t._v(" "),t.showShare?i("Share",{attrs:{callback:function(){t.showShare=!1},item_info:t.item_info}}):t._e(),t._v(" "),t.showMember?i("Member",{attrs:{callback:function(){t.showMember=!1},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showItemUpdate?i("ItemUpdate",{attrs:{callback:function(){t.showItemUpdate=!1,t.reload()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showArchive?i("Archive",{attrs:{callback:function(){t.showArchive=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showAttorn?i("Attorn",{attrs:{callback:function(){t.showAttorn=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showDelete?i("Delete",{attrs:{callback:function(){t.showDelete=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showImport?i("SDialog",{attrs:{title:t.$t("import_excel"),onCancel:function(){t.showImport=!1},onOK:function(){t.showImport=!1},width:"400px"}},[i("div",{staticClass:"text-center"},[i("p",[i("input",{attrs:{type:"file",name:"xlfile",id:"xlf"},on:{change:function(e){t.improtFile(e.target.files),t.showImport=!1}}})])])]):t._e()],1)},staticRenderFns:[]};var pa=i("VU/8")(_a,ua,!1,function(t){i("AzjR")},"data-v-191bcb4a",null).exports;if("undefined"!=typeof window)var ha=i("zhAq");var fa={props:{item_info:""},data:function(){return{menu:"",content:"",page_title:"",page_id:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",copyText:"",spreadsheetObj:{},spreadsheetData:{},isLock:0,isEditable:0,intervalId:0}},components:{Header:Qi,HeaderRight:pa},methods:{getPageContent:function(t){var e=this;t||(t=this.page_id),this.request("/api/page/info",{page_id:t}).then(function(t){if(t.data.page_content){var i=void 0;try{i=JSON.parse(Be(t.data.page_content))}catch(t){i={}}e.spreadsheetData=i,e.initSheet(),e.item_info.item_edit&&e.draft()}})},initSheet:function(){var t=this;if(!x_spreadsheet)return!1;var e=this.isEditable?"edit":"read";document.getElementById("table-item").innerHTML="",this.spreadsheetObj=null,this.spreadsheetObj=x_spreadsheet("#table-item",{mode:e,showToolbar:!0,row:{len:800,height:25},view:{height:function(){return document.documentElement.clientHeight-90}}}).loadData(this.spreadsheetData),this.spreadsheetObj.on("cell-edited",function(e,i,a){t.save()})},shareItem:function(){var t=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.share_item_link=this.getRootPath()+"#/"+t,this.qr_item_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_item_link),this.dialogVisible=!0,this.copyText=this.item_info.item_name+" -- ShowDoc \r\n"+this.share_item_link},onCopy:function(){this.$message(this.$t("copy_success"))},save:function(){var t=this;this.request("/api/page/save",{page_id:this.page_id,page_title:this.item_info.item_name,item_id:this.item_info.item_id,is_urlencode:1,page_content:encodeURIComponent(C()(this.spreadsheetObj.getData()))}).then(function(e){t.autoSaveTips(),t.deleteDraft()})},draft:function(){var t=this,e="page_content_"+this.page_id;setInterval(function(){var i=C()(t.spreadsheetObj.getData());localStorage.setItem(e,i)},3e4);var i=JSON.parse(localStorage.getItem(e));i&&i.length>0&&localStorage.getItem(e)!=C()(this.spreadsheetObj.getData())&&(localStorage.removeItem(e),this.$confirm(this.$t("draft_tips"),"",{showClose:!1}).then(function(){t.spreadsheetData=i,t.initSheet(),localStorage.removeItem(e)}).catch(function(){localStorage.removeItem(e)}))},deleteDraft:function(){for(var t=0;t-1&&localStorage.removeItem(e)}},setLock:function(){var t=this;this.page_id>0&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_info.item_id}).then(function(){t.isLock=1})},unlock:function(){var t=this;this.isLock&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_info.item_id,lock_to:1e3}).then(function(){t.isLock=0})},heartBeatLock:function(){var t=this;this.intervalId=setInterval(function(){t.isLock&&t.setLock()},18e4)},remoteIsLock:function(){var t=this;this.request("/api/page/isLock",{page_id:this.page_id}).then(function(e){e.data.lock>0?e.data.is_cur_user>0?(t.isLock=1,t.isEditable=1,t.initSheet(),t.heartBeatLock()):(t.$alert(t.$t("locking")+e.data.lock_username),t.item_info.item_edit=!1,clearInterval(t.intervalId),t.deleteDraft()):(t.setLock(),t.isEditable=1,t.initSheet(),t.heartBeatLock())})},exportFile:function(){var t,e,i=(t=this.spreadsheetObj.getData(),e=XLSX.utils.book_new(),t.forEach(function(t){for(var i=[[]],a=t.rows,n=0;n0&&e.renderWatermark()}else 10307===t.error_code||10303===t.error_code?e.$router.replace({path:"/item/password/"+a,query:{page_id:n,redirect:e.$router.currentRoute.fullPath}}):e.$alert(t.error_message)}),setTimeout(function(){i.close()},2e4)},searchItem:function(t){this.item_info="",this.$store.dispatch("changeItemInfo",""),this.keyword=t,this.getItemMenu(t)},renderWatermark:function(){var t=this;if(this.$store.state.user_info&&this.$store.state.user_info.username){var e=this.$store.state.user_info;e&&e.username&&(this.watermark_txt=e.username+","+ka()().format("L"),e.name&&(this.watermark_txt+=","+e.name),setTimeout(function(){wa.a.load({monitor:!1,watermark_txt:t.watermark_txt,watermark_alpha:.05})},500))}else g(function(e){if(0===e.data.error_code){var i=e.data.data;t.$store.dispatch("changeUserInfo",i).then(function(){t.renderWatermark()})}})}},mounted:function(){this.getItemMenu(),this.$store.dispatch("changeOpenCatId",0)},beforeDestroy:function(){this.$message.closeAll(),this.$notify.closeAll(),document.title="ShowDoc",wa.a.remove()}},Ca={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),t._m(0),t._v(" "),!t.item_info||1!=t.item_info.item_type&&3!=t.item_info.item_type&&"0"!==t.item_info.item_type&&0!==t.item_info.item_type?t._e():i("ShowRegularItem",{attrs:{item_info:t.item_info,searchItem:t.searchItem,keyword:t.keyword}}),t._v(" "),t.item_info&&2==t.item_info.item_type?i("ShowSinglePageItem",{attrs:{item_info:t.item_info}}):t._e(),t._v(" "),t.item_info&&4==t.item_info.item_type?i("ShowTableItem",{attrs:{item_info:t.item_info}}):t._e(),t._v(" "),t.item_info.is_login?i("Notify"):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"back-home"},[e("a",{attrs:{href:"/"}},[this._v("首页")])])}]};var xa=i("VU/8")($a,Ca,!1,function(t){i("039K")},"data-v-29823b62",null).exports,Ia={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"100px"},model:{value:t.infoForm,callback:function(e){t.infoForm=e},expression:"infoForm"}},[i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:"项目名",placement:"right"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:""},model:{value:t.infoForm.item_name,callback:function(e){t.$set(t.infoForm,"item_name",e)},expression:"infoForm.item_name"}})],1)],1),t._v(" "),i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:"项目描述",placement:"right"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("item_description")},model:{value:t.infoForm.item_description,callback:function(e){t.$set(t.infoForm,"item_description",e)},expression:"infoForm.item_description"}})],1)],1),t._v(" "),i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:"假如你的个性域名设置为abc,则你的项目地址为www.showdoc.com.cn/abc",placement:"top-end"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("info_item_domain")},model:{value:t.infoForm.item_domain,callback:function(e){t.$set(t.infoForm,"item_domain",e)},expression:"infoForm.item_domain"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-radio",{attrs:{label:!0},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("Open_item")))]),t._v(" "),i("el-radio",{attrs:{label:!1},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("private_item")))])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.isOpenItem,expression:"!isOpenItem"}]},[i("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("visit_password")},model:{value:t.infoForm.password,callback:function(e){t.$set(t.infoForm,"password",e)},expression:"infoForm.password"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v(t._s(t.$t("submit")))])],1)],1)],1)},staticRenderFns:[]};var Sa={name:"Login",components:{Info:i("VU/8")({name:"Login",components:{},data:function(){return{infoForm:{},isOpenItem:!0}},methods:{getItemInfo:function(){var t=this;this.request("/api/item/detail",{item_id:this.$route.params.item_id}).then(function(e){var i=e.data;i.password&&(t.isOpenItem=!1),t.infoForm=i})},formSubmit:function(){var t=this;if(!this.isOpenItem&&!this.infoForm.password)return this.$alert(this.$t("private_item_passwrod")),!1;this.isOpenItem&&(this.infoForm.password=""),this.request("/api/item/update",{item_id:this.$route.params.item_id,item_name:this.infoForm.item_name,item_description:this.infoForm.item_description,item_domain:this.infoForm.item_domain,password:this.infoForm.password}).then(function(e){t.$message.success(t.$t("modify_success"))})}},mounted:function(){this.getItemInfo()}},Ia,!1,function(t){i("39gu")},"data-v-206c45b2",null).exports,Member:Ut,OpenApi:Rt,Recycle:zt},data:function(){return{userInfo:{}}},methods:{goback:function(){this.$router.go(-1)}},mounted:function(){},beforeDestroy:function(){}},Fa={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("el-container",[i("el-card",{staticClass:"center-card"},[[i("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:t.goback}},[i("i",{staticClass:"el-icon-back"})]),t._v(" "),i("el-tabs",{attrs:{value:"first",type:"card"}},[i("el-tab-pane",{attrs:{label:t.$t("base_info"),name:"first"}},[i("Info")],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("member_manage"),name:"second"}},[i("Member")],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("open_api"),name:"four"}},[i("OpenApi")],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("recycle"),name:"five"}},[i("Recycle")],1)],1)]],2)],1),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var La=i("VU/8")(Sa,Fa,!1,function(t){i("hBvi")},"data-v-f747da0c",null).exports,Ta={data:function(){return{currentDate:new Date,itemList:{},content:"",page_title:"",page_id:0,fullPage:!1,showComp:!0,showfullPageBtn:!0,showToc:!0}},components:{Editormd:we,Toc:$e},methods:{getPageContent:function(){var t,e=this,i=this.$route.params.page_id,a=this.$route.params.unique_key;t=a?"/api/page/infoByKey":"/api/page/info",this.request(t,{page_id:i,unique_key:a},"post",!1).then(function(t){0===t.error_code?(e.content=Ke(t.data.page_content),e.page_title=t.data.page_title,e.page_id=t.data.page_id,document.title=t.data.page_title):10307===t.error_code||10303===t.error_code?e.$router.replace({path:"/item/password/0",query:{page_id:i,redirect:e.$router.currentRoute.fullPath}}):alert(t.error_message)})},adaptToMobile:function(){var t=document.getElementById("doc-container");t.style.width="95%",t.style.padding="5px",document.getElementById("header").style.height="10px",this.showToc=!1},clickFullPage:function(){var t=this;if(this.fullPage)this.showComp=!1,this.$nextTick(function(){t.showComp=!0,t.showToc=!0});else{this.adaptToMobile();var e=this.page_id;this.page_id=0,this.$nextTick(function(){t.page_id=e,setTimeout(function(){$(".editormd-html-preview").css("font-size","16px")},200)})}this.fullPage=!this.fullPage}},mounted:function(){var t=this;this.getPageContent(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){t.showfullPageBtn=!1,t.adaptToMobile()})},beforeDestroy:function(){document.title="ShowDoc"}},Ma={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showComp?i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("div",{attrs:{id:"header"}}),t._v(" "),i("div",{staticClass:"container doc-container",attrs:{id:"doc-container"}},[i("div",{staticClass:"doc-title-box"},[i("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),t._v(" "),i("h2",{attrs:{id:"doc-title"}},[t._v(t._s(t.page_title))]),t._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:t.showfullPageBtn,expression:"showfullPageBtn"}],staticClass:"el-icon-full-screen",attrs:{id:"full-page"},on:{click:t.clickFullPage}})]),t._v(" "),i("div",{attrs:{id:"doc-body"}},[i("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[t.page_id&&t.content?i("Editormd",{attrs:{content:t.content,type:"html"}}):t._e()],1)])]),t._v(" "),i("el-backtop",{attrs:{right:"40",bottom:"40"}}),t._v(" "),t.page_id&&t.showToc?i("Toc"):t._e(),t._v(" "),i("Footer"),t._v(" "),i("div",{})],1):t._e()},staticRenderFns:[]};var qa=i("VU/8")(Ta,Ma,!1,function(t){i("D8vU")},"data-v-b6671fbe",null).exports;if("undefined"!=typeof window)var Oa=i("zhAq");var Pa={props:{callback:""},data:function(){return{content:"",historyContent:""}},components:{},methods:{getContent:function(){var t=this;this.request("/api/page/diff",{page_id:this.$route.params.page_id,page_history_id:this.$route.params.page_history_id}).then(function(e){var i=e.data;t.content=i.page.page_content,t.historyContent=i.history_page.page_content,t.$nextTick(function(){t.diffUsingJS(0)})})},diffUsingJS:function(t){var e=function(t){return document.getElementById(t)},i=difflib.stringAsLines(e("baseText").value),a=difflib.stringAsLines(e("newText").value),n=new difflib.SequenceMatcher(i,a).get_opcodes(),o=e("diffoutput");o.innerHTML="",o.appendChild(diffview.buildView({baseTextLines:i,newTextLines:a,opcodes:n,baseTextName:this.$t("cur_page_content"),newTextName:this.$t("history_version"),viewType:t}))}},mounted:function(){var t=this;Oa(["static/diff/difflib.js","static/diff/diffview.js"],function(){t.getContent()})},beforeDestroy:function(){}},Da={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("link",{attrs:{href:"static/diff/diffview.css",rel:"stylesheet"}}),t._v(" "),i("el-container",{staticClass:"container-narrow"},[i("div",{staticClass:"textInput"},[i("textarea",{staticStyle:{display:"none"},attrs:{id:"baseText"},domProps:{innerHTML:t._s(t.content)}})]),t._v(" "),i("div",{staticClass:"textInput spacer"},[i("textarea",{staticStyle:{display:"none"},attrs:{id:"newText"},domProps:{innerHTML:t._s(t.historyContent)}})]),t._v(" "),i("div",{attrs:{id:"diffoutput"}})]),t._v(" "),i("Footer"),t._v(" "),i("div",{})],1)},staticRenderFns:[]};var Va=i("VU/8")(Pa,Da,!1,function(t){i("OY20")},"data-v-35ae0910",null).exports,ja={data:function(){return{page:1,count:7,item_name:"",username:"",itemList:[],total:0,dialogAttornVisible:!1,attornForm:{username:""},attorn_item_id:""}},methods:{getItemList:function(){var t=this;this.request("/api/adminItem/getList",{item_name:this.item_name,username:this.username,page:this.page,count:this.count}).then(function(e){var i=e.data;t.itemList=i.items,t.total=i.total})},formatPrivacy:function(t,e){if(t)return t.password.length>0?this.$t("private"):this.$t("public")},jumpToItem:function(t){var e="#/"+t.item_id;window.open(e)},handleCurrentChange:function(t){this.page=t,this.getItemList()},onSubmit:function(){this.page=1,this.getItemList()},deleteItem:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/adminItem/deleteItem",{item_id:t.item_id}).then(function(t){e.$message.success("删除成功"),e.getItemList()})})},clickAttornItem:function(t){this.dialogAttornVisible=!0,this.attorn_item_id=t.item_id},attorn:function(){var t=this;this.request("/api/adminItem/attorn",{item_id:this.attorn_item_id,username:this.attornForm.username}).then(function(){t.dialogAttornVisible=!1,t.$message.success(t.$t("success")),t.getItemList()})}},mounted:function(){this.getItemList()},beforeDestroy:function(){this.$message.closeAll()}},Aa={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("item_name")},model:{value:t.item_name,callback:function(e){t.item_name=e},expression:"item_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("owner")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1)],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.itemList}},[i("el-table-column",{attrs:{prop:"item_name",label:t.$t("item_name"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_description",label:t.$t("item_description"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"password",label:t.$t("privacy"),formatter:t.formatPrivacy,width:"80"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_id",label:t.$t("link"),width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.jumpToItem(e.row)}}},[t._v(t._s(t.$t("link")))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"username",label:t.$t("owner"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("memberCount"),width:"80"}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_domain",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.clickAttornItem(e.row)}}},[t._v(t._s(t.$t("attorn")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteItem(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogAttornVisible,"close-on-click-modal":!1,width:"300px"},on:{"update:visible":function(e){t.dialogAttornVisible=e}}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("attorn_username")},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1)],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogAttornVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.attorn}},[t._v(t._s(t.$t("attorn")))])],1)],1)],1)},staticRenderFns:[]};var Ua={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("username")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1)],1),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogAddVisible=!0}}},[t._v(t._s(t.$t("add_user")))]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.itemList}},[i("el-table-column",{attrs:{prop:"username",label:t.$t("username"),width:"200"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:t.$t("name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"groupid",label:t.$t("userrole"),formatter:t.formatGroup,width:"150"}}),t._v(" "),i("el-table-column",{attrs:{prop:"reg_time",label:t.$t("reg_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"last_login_time",label:t.$t("last_login_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_domain",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.clickEdit(e.row)}}},[t._v(t._s(t.$t("edit")))]),t._v(" "),1!=e.row.groupid?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteUser(e.row)}}},[t._v(t._s(t.$t("delete")))]):t._e()]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogAddVisible,"before-close":t.resetForm,"close-on-click-modal":!1,width:"300px"},on:{"update:visible":function(e){t.dialogAddVisible=e}}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"text",placeholder:t.$t("username"),readonly:t.addForm.uid>0},model:{value:t.addForm.username,callback:function(e){t.$set(t.addForm,"username",e)},expression:"addForm.username"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"text",placeholder:t.$t("name")},model:{value:t.addForm.name,callback:function(e){t.$set(t.addForm,"name",e)},expression:"addForm.name"}})],1),t._v(" "),t.addForm.uid<=0?i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("password")},model:{value:t.addForm.password,callback:function(e){t.$set(t.addForm,"password",e)},expression:"addForm.password"}})],1):t._e(),t._v(" "),t.addForm.uid>0?i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("update_pwd_tips")},model:{value:t.addForm.password,callback:function(e){t.$set(t.addForm,"password",e)},expression:"addForm.password"}})],1):t._e()],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.resetForm}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.addUser}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]};var Ea={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"150px"}},[i("el-form-item",{attrs:{label:t.$t("register_open")}},[i("el-switch",{model:{value:t.form.register_open,callback:function(e){t.$set(t.form,"register_open",e)},expression:"form.register_open"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("home_page")}},[i("el-select",{attrs:{placeholder:t.$t("please_choose")},model:{value:t.form.home_page,callback:function(e){t.$set(t.form,"home_page",e)},expression:"form.home_page"}},[i("el-option",{attrs:{label:t.$t("full_page"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("login_page"),value:"2"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("jump_to_an_item"),value:"3"}})],1)],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3==t.form.home_page,expression:"form.home_page == 3"}],attrs:{label:t.$t("jump_to_item")}},[i("el-select",{attrs:{placeholder:t.$t("please_choose")},model:{value:t.form.home_item,callback:function(e){t.$set(t.form,"home_item",e)},expression:"form.home_item"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{label:"备案号"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.beian,callback:function(e){t.$set(t.form,"beian",e)},expression:"form.beian"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:"设置后会展示在网站首页最下方",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("history_version_count")}},[i("el-input",{staticClass:"form-el",model:{value:t.form.history_version_count,callback:function(e){t.$set(t.form,"history_version_count",e)},expression:"form.history_version_count"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("history_version_count_content"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("watermark")}},[i("el-switch",{model:{value:t.form.show_watermark,callback:function(e){t.$set(t.form,"show_watermark",e)},expression:"form.show_watermark"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("watermark_tips"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("site_url")}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"https://www.your-site.com"},model:{value:t.form.site_url,callback:function(e){t.$set(t.form,"site_url",e)},expression:"form.site_url"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("site_url_tips"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{label:"AI助手认证KEY"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:""},model:{value:t.form.open_api_key,callback:function(e){t.$set(t.form,"open_api_key",e)},expression:"form.open_api_key"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:"点击查看填写说明",placement:"top"}},[i("i",{staticClass:"el-icon-question cursor-pointer ",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/p/30dd0637811cd5c690ffd547f3c46889")}}})])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{label:"AI助手代理HOST"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"可选"},model:{value:t.form.open_api_host,callback:function(e){t.$set(t.form,"open_api_host",e)},expression:"form.open_api_host"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:"点击查看填写说明",placement:"top"}},[i("i",{staticClass:"el-icon-question cursor-pointer ",on:{click:function(e){return t.toOutLink("https://github.com/star7th/showdoc/issues/1904")}}})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("oss_open")}},[i("el-switch",{model:{value:t.form.oss_open,callback:function(e){t.$set(t.form,"oss_open",e)},expression:"form.oss_open"}})],1),t._v(" "),t.form.oss_open?i("div",{staticStyle:{"margin-left":"50px"}},[i("el-form-item",{attrs:{label:t.$t("oss_server")}},[i("el-select",{model:{value:t.form.oss_setting.oss_type,callback:function(e){t.$set(t.form.oss_setting,"oss_type",e)},expression:"form.oss_setting.oss_type"}},[i("el-option",{attrs:{label:t.$t("aliyun"),value:"aliyun"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("qiniu"),value:"qiniu"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("qcloud"),value:"qcloud"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("s3_storage"),value:"s3_storage"}})],1)],1),t._v(" "),"qcloud"!=t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"key"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.key,callback:function(e){t.$set(t.form.oss_setting,"key",e)},expression:"form.oss_setting.key"}})],1):t._e(),t._v(" "),"qcloud"!=t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"secret"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.secret,callback:function(e){t.$set(t.form.oss_setting,"secret",e)},expression:"form.oss_setting.secret"}})],1):t._e(),t._v(" "),"aliyun"==t.form.oss_setting.oss_type||"s3_storage"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"endpoint"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.endpoint,callback:function(e){t.$set(t.form.oss_setting,"endpoint",e)},expression:"form.oss_setting.endpoint"}})],1):t._e(),t._v(" "),"qcloud"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"region"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.region,callback:function(e){t.$set(t.form.oss_setting,"region",e)},expression:"form.oss_setting.region"}})],1):t._e(),t._v(" "),"qcloud"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"secretId"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.secretId,callback:function(e){t.$set(t.form.oss_setting,"secretId",e)},expression:"form.oss_setting.secretId"}})],1):t._e(),t._v(" "),"qcloud"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"secretKey"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.secretKey,callback:function(e){t.$set(t.form.oss_setting,"secretKey",e)},expression:"form.oss_setting.secretKey"}})],1):t._e(),t._v(" "),i("el-form-item",{attrs:{label:"bucket"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.bucket,callback:function(e){t.$set(t.form.oss_setting,"bucket",e)},expression:"form.oss_setting.bucket"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("oss_domain")}},[i("el-select",{staticStyle:{width:"100px"},model:{value:t.form.oss_setting.protocol,callback:function(e){t.$set(t.form.oss_setting,"protocol",e)},expression:"form.oss_setting.protocol"}},[i("el-option",{attrs:{label:"http://",value:"http"}}),t._v(" "),i("el-option",{attrs:{label:"https://",value:"https"}})],1),t._v(" "),i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.domain,callback:function(e){t.$set(t.form.oss_setting,"domain",e)},expression:"form.oss_setting.domain"}})],1)],1):t._e(),t._v(" "),i("br"),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("save")))]),t._v(" "),i("el-button",{on:{click:t.loadConfig}},[t._v(t._s(t.$t("cancel")))])],1)],1)],1)},staticRenderFns:[]};var Ra={data:function(){return{page:1,count:7,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0}},methods:{getList:function(){var t=this;this.request("/api/attachment/getAllList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(e){var i=e.data;t.dataList=i.list,t.total=parseInt(i.total),t.used=i.used_m})},handleCurrentChange:function(t){this.page=t,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(t){window.open(t.url)},deleteRow:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/attachment/deleteAttachment",{file_id:t.file_id}).then(function(t){e.$message.success(e.$t("op_success")),e.getList()})})}},mounted:function(){this.getList()},beforeDestroy:function(){this.$message.closeAll()}},Na={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("display_name")},model:{value:t.display_name,callback:function(e){t.display_name=e},expression:"display_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-select",{attrs:{placeholder:""},model:{value:t.attachment_type,callback:function(e){t.attachment_type=e},expression:"attachment_type"}},[i("el-option",{attrs:{label:t.$t("all_attachment_type"),value:"-1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("image"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("general_attachment"),value:"2"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("uploader")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1)],1),t._v(" "),i("P",[t._v(t._s(t.$t("used_space"))+" "+t._s(t.used)+"M")]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList}},[i("el-table-column",{attrs:{prop:"file_id",label:t.$t("file_id")}}),t._v(" "),i("el-table-column",{attrs:{prop:"display_name",label:t.$t("display_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_type",label:t.$t("file_type"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_size_m",label:t.$t("file_size_m"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"visit_times",label:t.$t("visit_times")}}),t._v(" "),i("el-table-column",{attrs:{prop:"username",label:t.$t("uploader")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.visit(e.row)}}},[t._v(t._s(t.$t("visit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteRow(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var za={data:function(){return{form:{ldap_open:!1,ldap_form:{host:"",port:"389",version:"3",base_dn:"",bind_dn:"",bind_password:"",user_field:"",search_filter:"(cn=*)"},oauth2_open:!1,oauth2_form:{redirectUri:"",entrance_tips:"",client_id:"",client_secret:"",protocol:"https",host:"",authorize_path:"",token_path:"",resource_path:"",userinfo_path:"",logout_redirect_uri:""}},login_secret_key:"",itemList:[]}},methods:{saveLdapConfig:function(){var t=this,e=this.$loading();setTimeout(function(){e.close(),t.saving=!1},3e4),this.request("/api/adminSetting/saveLdapConfig",this.form,"post",!0,"json").then(function(i){t.$alert(t.$t("success")),e.close()})},loadLdapConfig:function(){var t=this;this.request("/api/adminSetting/loadLdapConfig",this.form,"post",!0,"json").then(function(e){0!==e.data.length&&(t.form.ldap_open=e.data.ldap_open>0,t.form.ldap_form=e.data.ldap_form?e.data.ldap_form:t.form.ldap_form)})},saveOauth2Config:function(){var t=this;this.request("/api/adminSetting/saveOauth2Config",this.form,"post",!0,"json").then(function(e){t.$alert(t.$t("success"))})},loadOauth2Config:function(){var t=this;this.request("/api/adminSetting/loadOauth2Config",this.form,"post",!0,"json").then(function(e){0!==e.data.length&&(t.form.oauth2_open=e.data.oauth2_open>0,t.form.oauth2_form=e.data.oauth2_form?e.data.oauth2_form:t.form.oauth2_form,t.form.oauth2_form.logout_redirect_uri=e.data.oauth2_form&&e.data.oauth2_form.logout_redirect_uri?e.data.oauth2_form.logout_redirect_uri:"")})},getLoginSecretKey:function(){var t=this;this.request("/api/adminSetting/getLoginSecretKey",{}).then(function(e){t.login_secret_key=e.data.login_secret_key})},resetLoginSecretKey:function(){var t=this;this.$confirm(this.$t("confirm")+"?"," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){t.request("/api/adminSetting/resetLoginSecretKey",{}).then(function(e){t.login_secret_key=e.data.login_secret_key})})}},mounted:function(){this.loadLdapConfig(),this.loadOauth2Config(),this.getLoginSecretKey()},beforeDestroy:function(){this.$message.closeAll()}},Ha={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-tabs",{attrs:{type:"border-card"}},[i("el-tab-pane",{attrs:{label:"LDAP"}},[i("el-form",{ref:"form",attrs:{"label-width":"150px"}},[i("el-form-item",{attrs:{label:t.$t("ldap_open_label")}},[i("el-switch",{model:{value:t.form.ldap_open,callback:function(e){t.$set(t.form,"ldap_open",e)},expression:"form.ldap_open"}})],1),t._v(" "),i("div",[i("el-form-item",{attrs:{label:"ldap host"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.ldap_form.host,callback:function(e){t.$set(t.form.ldap_form,"host",e)},expression:"form.ldap_form.host"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap port"}},[i("el-input",{staticStyle:{width:"90px"},model:{value:t.form.ldap_form.port,callback:function(e){t.$set(t.form.ldap_form,"port",e)},expression:"form.ldap_form.port"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap base dn "}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 dc=showdoc,dc=com"},model:{value:t.form.ldap_form.base_dn,callback:function(e){t.$set(t.form.ldap_form,"base_dn",e)},expression:"form.ldap_form.base_dn"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap bind dn "}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"cn=admin,dc=showdoc,dc=com"},model:{value:t.form.ldap_form.bind_dn,callback:function(e){t.$set(t.form.ldap_form,"bind_dn",e)},expression:"form.ldap_form.bind_dn"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap bind password "}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 123456"},model:{value:t.form.ldap_form.bind_password,callback:function(e){t.$set(t.form.ldap_form,"bind_password",e)},expression:"form.ldap_form.bind_password"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap version"}},[i("el-select",{staticClass:"form-el",model:{value:t.form.ldap_form.version,callback:function(e){t.$set(t.form.ldap_form,"version",e)},expression:"form.ldap_form.version"}},[i("el-option",{attrs:{label:"3",value:"3"}}),t._v(" "),i("el-option",{attrs:{label:"2",value:"2"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap user filed"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 cn 或者 sAMAccountName"},model:{value:t.form.ldap_form.user_field,callback:function(e){t.$set(t.form.ldap_form,"user_field",e)},expression:"form.ldap_form.user_field"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"search filter"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"(cn=*)"},model:{value:t.form.ldap_form.search_filter,callback:function(e){t.$set(t.form.ldap_form,"search_filter",e)},expression:"form.ldap_form.search_filter"}})],1)],1),t._v(" "),i("br"),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:t.saveLdapConfig}},[t._v(t._s(t.$t("save")))]),t._v(" "),i("el-button",[t._v(t._s(t.$t("cancel")))])],1)],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:"OAuth2"}},[i("el-form",{ref:"form",attrs:{"label-width":"150px"}},[i("el-form-item",{attrs:{label:t.$t("enable_oauth")}},[i("el-switch",{model:{value:t.form.oauth2_open,callback:function(e){t.$set(t.form,"oauth2_open",e)},expression:"form.oauth2_open"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"callback url"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oauth2_form.redirectUri,callback:function(e){t.$set(t.form.oauth2_form,"redirectUri",e)},expression:"form.oauth2_form.redirectUri"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("callback_eg")}},[t._v("\n http://"+t._s(t.$t("your_showdoc_server"))+"/server/?s=/api/extLogin/oauth2\n ")]),t._v(" "),i("div",[i("el-form-item",{attrs:{label:t.$t("入口文字提示")}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:""},model:{value:t.form.oauth2_form.entrance_tips,callback:function(e){t.$set(t.form.oauth2_form,"entrance_tips",e)},expression:"form.oauth2_form.entrance_tips"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("entrance_tips_content"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:"Client id"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oauth2_form.client_id,callback:function(e){t.$set(t.form.oauth2_form,"client_id",e)},expression:"form.oauth2_form.client_id"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Client secret"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oauth2_form.client_secret,callback:function(e){t.$set(t.form.oauth2_form,"client_secret",e)},expression:"form.oauth2_form.client_secret"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Oauth host"}},[i("el-select",{staticStyle:{width:"100px"},model:{value:t.form.oauth2_form.protocol,callback:function(e){t.$set(t.form.oauth2_form,"protocol",e)},expression:"form.oauth2_form.protocol"}},[i("el-option",{attrs:{label:"http://",value:"http"}}),t._v(" "),i("el-option",{attrs:{label:"https://",value:"https"}})],1),t._v(" "),i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: sso.your-site.com"},model:{value:t.form.oauth2_form.host,callback:function(e){t.$set(t.form.oauth2_form,"host",e)},expression:"form.oauth2_form.host"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Authorize path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/authorize"},model:{value:t.form.oauth2_form.authorize_path,callback:function(e){t.$set(t.form.oauth2_form,"authorize_path",e)},expression:"form.oauth2_form.authorize_path"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"AccessToken path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/token"},model:{value:t.form.oauth2_form.token_path,callback:function(e){t.$set(t.form.oauth2_form,"token_path",e)},expression:"form.oauth2_form.token_path"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Resource path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/resource"},model:{value:t.form.oauth2_form.resource_path,callback:function(e){t.$set(t.form.oauth2_form,"resource_path",e)},expression:"form.oauth2_form.resource_path"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"User info path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/me"},model:{value:t.form.oauth2_form.userinfo_path,callback:function(e){t.$set(t.form.oauth2_form,"userinfo_path",e)},expression:"form.oauth2_form.userinfo_path"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("userinfo_path_content"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:"Logout_redirect_uri"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:t.$t("logout_redirect_uri_desc")},model:{value:t.form.oauth2_form.logout_redirect_uri,callback:function(e){t.$set(t.form.oauth2_form,"logout_redirect_uri",e)},expression:"form.oauth2_form.logout_redirect_uri"}})],1)],1),t._v(" "),i("br"),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:t.saveOauth2Config}},[t._v(t._s(t.$t("save")))]),t._v(" "),i("el-button",[t._v(t._s(t.$t("cancel")))])],1)],1)],1),t._v(" "),"zh-cn"==t.$lang?i("el-tab-pane",{attrs:{label:"通用接入"}},[i("div",{staticStyle:{"min-height":"600px","margin-top":"50px","margin-left":"30px"}},[i("p",[t._v("\n LoginSecretKey: \n "),i("el-input",{staticClass:"form-el",attrs:{readonly:""},model:{value:t.login_secret_key,callback:function(e){t.login_secret_key=e},expression:"login_secret_key"}}),t._v(" "),i("el-button",{on:{click:t.resetLoginSecretKey}},[t._v(t._s(t.$t("reset")))])],1),t._v(" "),i("p",[t._v("\n 通用接入提供的是一种自动登录showdoc的能力,需要自己根据文档开发集成。"),i("a",{attrs:{href:"https://www.showdoc.com.cn/p/0fb2753c5a48acc7c3fbbb00f9504e6b",target:"_blank"}},[t._v("点击这里查看文档")])])])]):t._e()],1)],1)},staticRenderFns:[]};var Ba={data:function(){return{isUpdate:!1,cur_version:"",new_version:"",url:""}},methods:{getCurVersion:function(){var t=this;this.request("/api/common/version",{}).then(function(e){e&&e.data&&e.data.version&&(t.cur_version=e.data.version)})},checkUpadte:function(){var t=this;this.request("/api/adminUpdate/checkUpdate",{}).then(function(e){e&&e.data&&e.data.url&&(t.url=e.data.url,t.new_version=e.data.new_version,t.cur_version=e.data.version,t.isUpdate=!0)})},clickToUpdate:function(){var t=this,e=this.$loading({text:"正在下载更新包..."});this.request("/api/adminUpdate/download",{}).then(function(i){e.close(),e=t.$loading({text:"正在更新文件..."}),t.request("/api/adminUpdate/updateFiles",{}).then(function(){e.close(),e=t.$loading({text:"升级文件成功,准备刷新页面...如果页面缓存迟迟不能自动更新,请手动刷新页面以更新浏览器缓存"}),t.request("/api/update/checkDb"),setTimeout(function(){window.location.reload()},7e3)},function(){e.close()})},function(){e.close()})}},mounted:function(){this.checkUpadte(),this.getCurVersion()},beforeDestroy:function(){}},Ka={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("div",[i("br"),t._v(" "),i("p",[t._v("\n 本站基于开源版"),i("b",[t._v("showdoc "+t._s(t.cur_version))]),t._v("搭建\n ")]),t._v(" "),t._m(0),t._v(" "),t._m(1)]),t._v(" "),t.isUpdate?i("div",[i("hr"),t._v(" "),i("p",[t._v("\n 检测到showdoc有新版更新("+t._s(t.new_version)+"),点击下方按钮将自动升级到最新稳定版。"),i("a",{attrs:{href:"https://www.showdoc.com.cn/help/13733",target:"_blank"}},[t._v("更新日志")])]),t._v(" "),i("p",[t._v("\n 升级到最新版有助于及时得到官方的安全修复和功能更新,以获得更安全更稳定的使用体验。\n ")]),t._v(" "),i("el-badge",{attrs:{value:"new"}},[i("el-button",{attrs:{type:"primary"},on:{click:t.clickToUpdate}},[t._v("点此更新")])],1),t._v(" "),i("br"),t._v(" "),i("br"),t._v(" "),t._m(2)],1):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n 如有问题或者建议,请到github提issue:"),e("a",{attrs:{href:"https://github.com/star7th/showdoc/issues",target:"_blank"}},[this._v("https://github.com/star7th/showdoc/issues")]),this._v(" "),e("br"),this._v("如果你觉得showdoc好用,不妨去"),e("a",{attrs:{href:"https://github.com/star7th/showdoc",target:"_blank"}},[this._v("github")]),this._v("给开源项目点一个star。良好的关注度和参与度有助于开源项目的长远发展。\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{href:"https://www.showdoc.com.cn/",target:"_blank"}},[this._v("showdoc官方")]),this._v("\n 拥有程序的版权和相应权利,在保留版权信息和链接的前提下可免费使用或者二次开发\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[this._v("\n 如点击上面按钮更新失败,"),e("a",{attrs:{href:"https://www.showdoc.com.cn/help?page_id=13732",target:"_blank"}},[this._v("点击这里")]),this._v("参考文档进行手动升级\n ")])}]};var Ga={data:function(){return{open_menu_index:1,isUpdate:!1}},components:{Item:i("VU/8")(ja,Aa,!1,function(t){i("mZxz")},"data-v-705ad4a0",null).exports,User:i("VU/8")({data:function(){return{itemList:[],username:"",page:1,count:7,total:0,addForm:{username:"",password:"",uid:0,name:""},dialogAddVisible:!1}},methods:{getUserList:function(){var t=this;this.request("/api/adminUser/getList",{username:this.username,page:this.page,count:this.count}).then(function(e){t.itemList=e.data.users,t.total=e.data.total})},formatGroup:function(t,e){if(t)return 1==t.groupid?this.$t("administrator"):2==t.groupid?this.$t("ordinary_users"):""},handleCurrentChange:function(t){this.page=t,this.getUserList()},onSubmit:function(){this.page=1,this.getUserList()},deleteUser:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/adminUser/deleteUser",{uid:t.uid}).then(function(t){e.$message.success("success"),e.getUserList(),e.username=""})})},clickEdit:function(t){this.dialogAddVisible=!0,this.addForm={uid:t.uid,name:t.name,username:t.username,password:""}},addUser:function(){var t=this;this.request("/api/adminUser/addUser",{username:this.addForm.username,password:this.addForm.password,uid:this.addForm.uid,name:this.addForm.name}).then(function(e){t.dialogAddVisible=!1,t.addForm.password="",t.addForm.username="",t.addForm.uid=0,t.addForm.name="",t.$message.success(t.$t("success")),t.getUserList()})},resetForm:function(){this.addForm={uid:0,name:"",username:"",password:""},this.dialogAddVisible=!1}},mounted:function(){this.getUserList()},beforeDestroy:function(){this.$message.closeAll()}},Ua,!1,function(t){i("quNz")},"data-v-2389a51e",null).exports,Setting:i("VU/8")({data:function(){return{form:{register_open:!0,home_page:"1",home_item:"",oss_open:!1,oss_setting:{oss_type:"aliyun",key:"",secret:"",endpoint:"",bucket:"",protocol:"http",domain:"",region:"",secretId:"",secretKey:""},history_version_count:20,beian:"",show_watermark:!1,site_url:"",open_api_key:"",open_api_host:""},itemList:[]}},methods:{onSubmit:function(){var t=this;this.request("/api/adminSetting/saveConfig",this.form,"post",!0,"json").then(function(e){t.$alert(t.$t("success"))})},loadConfig:function(){var t=this;this.request("/api/adminSetting/loadConfig",{}).then(function(e){0!==e.data.length&&(t.form.register_open=e.data.register_open>0,t.form.history_version_count=e.data.history_version_count?e.data.history_version_count:t.form.history_version_count,t.form.oss_open=e.data.oss_open>0,t.form.home_page=e.data.home_page>0?e.data.home_page:1,t.form.home_item=e.data.home_item>0?e.data.home_item:"",t.form.oss_setting=e.data.oss_setting?e.data.oss_setting:t.form.oss_setting,t.form.oss_setting.region=t.form.oss_setting.region?t.form.oss_setting.region:"",t.form.oss_setting.secretId=t.form.oss_setting.secretId?t.form.oss_setting.secretId:"",t.form.oss_setting.secretKey=t.form.oss_setting.secretKey?t.form.oss_setting.secretKey:"",t.form.beian=e.data.beian?e.data.beian:"",t.form.show_watermark=e.data.show_watermark>0,t.form.site_url=e.data.site_url?e.data.site_url:"",t.form.open_api_key=e.data.open_api_key?e.data.open_api_key:"",t.form.open_api_host=e.data.open_api_host?e.data.open_api_host:"")})},getItemList:function(){var t=this;this.request("/api/adminItem/getList",{page:1,count:100}).then(function(e){t.itemList=e.data.items})}},mounted:function(){this.getItemList(),this.loadConfig()},beforeDestroy:function(){this.$message.closeAll()}},Ea,!1,function(t){i("2QHw")},"data-v-72b40682",null).exports,Attachment:i("VU/8")(Ra,Na,!1,function(t){i("1Ar1")},"data-v-4519c7ff",null).exports,ExtLogin:i("VU/8")(za,Ha,!1,function(t){i("nuVR")},"data-v-a41cb89e",null).exports,About:i("VU/8")(Ba,Ka,!1,function(t){i("MK3e")},"data-v-d07c97c6",null).exports},methods:{selectMenu:function(t,e){var i=this;this.open_menu_index=0,this.$nextTick(function(){i.open_menu_index=t})},checkUpadte:function(){var t=this;this.request("/api/adminUpdate/checkUpdate",{}).then(function(e){e&&e.data&&e.data.url&&(t.isUpdate=!0)})}},mounted:function(){this.checkUpadte()},beforeDestroy:function(){this.$message.closeAll()}},Ja={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-container",[i("el-header",[i("div",{staticClass:"header_title"},[t._v("ShowDoc")]),t._v(" "),i("router-link",{staticClass:"goback",attrs:{to:"/item/index"}},[t._v(t._s(t.$t("goback")))])],1),t._v(" "),i("el-container",[i("el-aside",{attrs:{width:"150px"}},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"1","background-color":"#545c64","text-color":"#fff","active-text-color":"#ffd04b"},on:{select:t.selectMenu}},[i("el-menu-item",{attrs:{index:"1"}},[i("i",{staticClass:"el-icon-info"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("user_manage")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"2"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("item_manage")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"5"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("attachment_manage")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"7"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("ext_login")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"3"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("web_setting")))])]),t._v(" "),i("el-menu-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{index:"6"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[i("el-badge",{attrs:{value:t.isUpdate?"new":""}},[t._v(t._s(t.$t("about_site"))+"\n ")])],1)])],1)],1),t._v(" "),i("el-container",[i("el-main",[1==t.open_menu_index?i("User"):t._e(),t._v(" "),2==t.open_menu_index?i("Item"):t._e(),t._v(" "),3==t.open_menu_index?i("Setting"):t._e(),t._v(" "),5==t.open_menu_index?i("Attachment"):t._e(),t._v(" "),6==t.open_menu_index?i("About"):t._e(),t._v(" "),7==t.open_menu_index?i("ExtLogin"):t._e()],1),t._v(" "),i("el-footer")],1)],1)],1)],1)},staticRenderFns:[]};var Wa=i("VU/8")(Ga,Ja,!1,function(t){i("cdKK")},"data-v-62b5d169",null).exports;o.default.use(l.a);var Ya=new l.a({routes:[{path:"/",name:"Index",component:y},{path:"/user/login",name:"UserLogin",component:S},{path:"/user/setting",name:"UserSetting",component:q},{path:"/user/register",name:"UserRegister",component:D},{path:"/item/index",name:"ItemIndex",component:de},{path:"/item/add",name:"ItemAdd",component:rt},{path:"/item/password/:item_id",name:"ItemPassword",component:pe},{path:"/item/export/:item_id",name:"ItemExport",component:Bi},{path:"/item/setting/:item_id",name:"ItemSetting",component:La},{path:"/page/:page_id",name:"PageIndex",component:qa},{path:"/p/:unique_key",name:"PageIndex",component:qa},{path:"/page/edit/:item_id/:page_id",name:"PageEdit",component:Mi},{path:"/page/diff/:page_id/:page_history_id",name:"PageDiff",component:Va},{path:"/catalog/:item_id",name:"Catalog",component:yi},{path:"/admin/index",name:"Admin",component:Wa},{path:"/team/index",name:"Team",component:ft},{path:"/team/member/:team_id",name:"TeamMember",component:ut},{path:"/team/item/:team_id",name:"TeamItem",component:mt},{path:"/attachment/index",name:"Attachment",component:bt},{path:"/item/group/index",name:"ItemGroup",component:K},{path:"/message/index",name:"Message",component:kt},{path:"/user/loginByUserToken",name:"loginByUserToken",component:A},{path:"/:item_id",name:"ItemShow",component:xa},{path:"/:item_id/:page_id(\\d+)",name:"ItemShow",component:xa}]}),Xa=(i("YWLt"),{render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]});var Qa=i("VU/8")({name:"Header",data:function(){return{msg:"头部"}}},Xa,!1,function(t){i("8gQg")},"data-v-168051ae",null).exports,Za={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]};var tn=i("VU/8")({name:"Footer",data:function(){return{msg:"尾部"}}},Za,!1,function(t){i("GFba")},"data-v-065ddbfc",null).exports,en={install:function(t,e){t.prototype.getData=function(){console.log("我是插件中的方法")},t.prototype.request=function(){},t.prototype.getRootPath=function(){return window.location.protocol+"//"+window.location.host+window.location.pathname},t.prototype.isMobile=function(){return!!navigator.userAgent.match(/iPhone|iPad|iPod|Android|android|BlackBerry|IEMobile/i)},t.prototype.formatJson=function(t){if(!1===(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))try{return"string"==typeof t&&(t=JSON.parse(t)),C()(t,null,2)}catch(e){return t}try{var e=JSON.parse(t);return C()(e)}catch(e){return t}},t.prototype.reload=function(){return window.location.reload()},t.prototype.toOutLink=function(t){return window.open(t)}}},an=i("xO72"),nn=i.n(an),on=i("wUZ8"),sn=i.n(on),rn=i("Vi3T"),ln=i.n(rn),cn=i("4LCr"),mn=i.n(cn),dn=i("FQqZ"),_n=i.n(dn),un=(i("9Z4o"),i("j1ja"),i("wvfG")),pn=i.n(un),hn=i("NYxO"),fn=i("bOdI"),gn=i.n(fn)()({increment:function(t,e){t.count++},changeItemInfo:function(t,e){t.item_info=e},changeOpenCatId:function(t,e){t.open_cat_id=e},changeUserInfo:function(t,e){t.user_info=e},changeNewMsg:function(t,e){t.new_msg=e}},"SOME_MUTATION",function(t){}),vn={incrementAsync:function(t){var e=t.commit;setTimeout(function(){e("increment")},1e3)},changeItemInfo:function(t,e){t.commit("changeItemInfo",e)},changeOpenCatId:function(t,e){t.commit("changeOpenCatId",e)},changeUserInfo:function(t,e){t.commit("changeUserInfo",e)},changeNewMsg:function(t,e){t.commit("changeNewMsg",e)}},bn={count:"1",item_info:{},open_cat_id:0,user_info:{},new_msg:0};o.default.use(hn.a);var wn=new hn.a.Store({state:bn,actions:vn,mutations:gn}),yn=(i("Ffbd"),{name:"SDialog",props:{title:{type:String,required:!1,default:""},titleIcon:{type:String,required:!1,default:"el-icon-s-platform"},modal:{type:Boolean,required:!1,default:!0},onCancel:{type:Function,required:!1,default:function(){}},showCancel:{type:Boolean,required:!1,default:!0},showOk:{type:Boolean,required:!1,default:!0},onOK:{type:Function,required:!1,default:function(){}},width:{type:String,required:!1,default:"50%"},btn1Text:{type:String,required:!1,default:""},btn1Icon:{type:String,required:!1,default:""},btn1Medthod:{type:Function,required:!1,default:function(){}},btn2Text:{type:String,required:!1,default:""},btn2Icon:{type:String,required:!1,default:""},btn2Medthod:{type:Function,required:!1,default:function(){}},btn3Text:{type:String,required:!1,default:""},btn3Icon:{type:String,required:!1,default:""},btn3Medthod:{type:Function,required:!1,default:function(){}},btn4Text:{type:String,required:!1,default:""},btn4Icon:{type:String,required:!1,default:""},btn4Medthod:{type:Function,required:!1,default:function(){}},top:{type:String,required:!1,default:"15vh"},cancelText:{type:String,required:!1,default:""},okText:{type:String,required:!1,default:""}},data:function(){return{dialogVisible:!1}},methods:{isEmptyFunction:function(t){if("function"!=typeof t)return console.log("请输入函数"),!1;if("function _default() {}"==t.toString())return!0;var e=t.toString().replace(/\s+/g,"");return"{}"===(e=e.match(/{.*}/g)[0])},goHome:function(){this.$router.push({path:"/item/index"})}},mounted:function(){var t=this;setTimeout(function(){t.dialogVisible=!0},200)}}),kn={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-dialog",{staticClass:"sdialog",attrs:{width:t.width,visible:t.dialogVisible,"close-on-click-modal":!1,"show-close":!1,modal:t.modal,"append-to-body":!0,top:t.top,"close-on-press-escape":!1},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){t.isEmptyFunction(t.onCancel)?t.goHome():t.onCancel()}}},[i("div",{staticClass:"title-header",attrs:{slot:"title"},slot:"title"},[i("span",{staticClass:"title-header-left float-left "},[i("i",{class:t.titleIcon}),t._v("  "+t._s(t.title))]),t._v(" "),i("span",{staticClass:"title-header-right float-right mr-2"},[t.btn1Text?i("div",{staticClass:"btn-div",on:{click:t.btn1Medthod}},[i("i",{class:t.btn1Icon}),t._v(" "+t._s(t.btn1Text)+"\n ")]):t._e(),t._v(" "),t.btn2Text?i("div",{staticClass:"btn-div",on:{click:t.btn2Medthod}},[i("i",{class:t.btn2Icon}),t._v(" "+t._s(t.btn2Text)+"\n ")]):t._e(),t._v(" "),t.btn3Text?i("div",{staticClass:"btn-div",on:{click:t.btn3Medthod}},[i("i",{class:t.btn3Icon}),t._v(" "+t._s(t.btn3Text)+"\n ")]):t._e(),t._v(" "),t.btn4Text?i("div",{staticClass:"btn-div",on:{click:t.btn4Medthod}},[i("i",{class:t.btn4Icon}),t._v(" "+t._s(t.btn4Text)+"\n ")]):t._e(),t._v(" "),i("i",{staticClass:"close-btn far fa-close",on:{click:function(e){t.isEmptyFunction(t.onCancel)?t.goHome():t.onCancel()}}})])]),t._v(" "),t._t("default"),t._v(" "),i("div",{staticClass:"dialog-footer text-center",attrs:{slot:"footer"},slot:"footer"},[t.showCancel?i("el-button",{staticClass:"v3-lg-btn",on:{click:function(e){t.isEmptyFunction(t.onCancel)?t.goHome():t.onCancel()}}},[t._v(t._s(t.cancelText?t.cancelText:t.$t("cancel")))]):t._e(),t._v(" "),t.showOk?i("el-button",{staticClass:"v3-lg-btn",attrs:{type:"primary"},on:{click:function(e){t.isEmptyFunction(t.onOK)?t.goHome():t.onOK()}}},[t._v(t._s(t.okText?t.okText:t.$t("confirm")))]):t._e()],1)],2)],1)},staticRenderFns:[]};var $n=i("VU/8")(yn,kn,!1,function(t){i("2sLY"),i("ZjEb")},"data-v-20c1f6dd",null).exports;i("J2yJ");o.default.use(en),o.default.config.productionTip=!1,o.default.component("Header",Qa),o.default.component("Footer",tn),o.default.use(h.a),o.default.use(nn.a),o.default.use(pn.a),o.default.component("SDialog",$n);var Cn=n()(ln.a,mn.a),xn=n()(sn.a,_n.a);o.default.config.lang=DocConfig.lang,o.default.locale("zh-cn",Cn),o.default.locale("en",xn),o.default.prototype.axios=u,o.default.prototype.request=f,o.default.prototype.$lang=DocConfig.lang,new o.default({el:"#app",router:Ya,store:wn,template:"",components:{App:r}})},Nf2D:function(t,e){},OGYI:function(t,e){},OHg9:function(t,e){},OY20:function(t,e){},"P5r/":function(t,e){},PMJu:function(t,e){},R4PV:function(t,e){},Tjeq:function(t,e){},UA7n:function(t,e){},UXcT:function(t,e){},Uf1M:function(t,e){},V7ie:function(t,e){},VJJ0:function(t,e){},VMcb:function(t,e){},VlEL:function(t,e){},WNq7:function(t,e){},X23A:function(t,e){},XuxQ:function(t,e){},YWLt:function(t,e){},ZjEb:function(t,e){},adXc:function(t,e){},bOhL:function(t,e){},bRZX:function(t,e){},cdKK:function(t,e){},dR3X:function(t,e){},dSvU:function(t,e){},dlsc:function(t,e){},f6dU:function(t,e){},fGnW:function(t,e){},fPSf:function(t,e){},fhtO:function(t,e){},gY2G:function(t,e){},"gke+":function(t,e){},h3ci:function(t,e){},hBvi:function(t,e){},hQ8A:function(t,e){},hYZC:function(t,e){},hkn8:function(t,e){},intr:function(t,e){},jJGY:function(t,e){},jom5:function(t,e){},koPa:function(t,e){},mFjg:function(t,e){},mNYk:function(t,e){},mZxz:function(t,e){},nuVR:function(t,e){},oUOD:function(t,e){},q94s:function(t,e){},quNz:function(t,e){},rnTS:function(t,e){},rpoe:function(t,e){},u2hI:function(t,e){},uslO:function(t,e,i){var a={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn-bd":"1C9R","./bn-bd.js":"1C9R","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-in":"yJfC","./en-in.js":"yJfC","./en-nz":"dyB6","./en-nz.js":"dyB6","./en-sg":"NYST","./en-sg.js":"NYST","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-mx":"USNP","./es-mx.js":"USNP","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fil":"rMbQ","./fil.js":"rMbQ","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-deva":"VGQH","./gom-deva.js":"VGQH","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./oc-lnc":"KOFO","./oc-lnc.js":"KOFO","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tk":"+WRH","./tk.js":"+WRH","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-mo":"+WA1","./zh-mo.js":"+WA1","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function n(t){return i(o(t))}function o(t){var e=a[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}n.keys=function(){return Object.keys(a)},n.resolve=o,t.exports=n,n.id="uslO"},vUpo:function(t,e){},voUU:function(t,e){},w7Ho:function(t,e){},x0nN:function(t,e,i){t.exports=i.p+"static/img/Logo.29f9ff6.svg"},xPZZ:function(t,e){},xWR6:function(t,e){},xhEc:function(t,e){},ypCA:function(t,e){},zg0L:function(t,e){}},["NHnr"]); \ No newline at end of file diff --git a/web/static/js/app.f85ce3c5c22b6520bc5e.js b/web/static/js/app.f85ce3c5c22b6520bc5e.js deleted file mode 100644 index c37052dfb..000000000 --- a/web/static/js/app.f85ce3c5c22b6520bc5e.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([1],{"+9lI":function(t,e){},"/4UI":function(t,e){},"/BJT":function(t,e){},"/ipL":function(t,e){},"039K":function(t,e){},"1Ar1":function(t,e){},"1KaE":function(t,e){},"2QHw":function(t,e){},"2Xpv":function(t,e){},"2sLY":function(t,e){},"2xWI":function(t,e){},"39gu":function(t,e){},"3H/t":function(t,e){},"4LCr":function(t,e){e.__esModule=!0,e.default={help:"帮助",demo:"示例",index_login_or_register:"登录 / 注册",my_item:"我的项目",section_title1:"ShowDoc",section_description1_1:"一个非常适合IT团队的",section_description1_2:"在线API文档、技术文档工具",section_title2:"API文档",section_description2_1:"APP、web前端与服务器常用API来进行交互",section_description2_2:"ShowDoc可以非常方便快速地编写出美观的API文档",section_title3:"数据字典",section_description3_1:"好的数据字典可以方便地向别人描述你的数据库结构",section_description3_2:"用ShowDoc可以编辑出美观的数据字典",section_title4:"说明文档",section_description4_1:"你完全可以使用 ShowDoc来编写一些工具的说明书",section_description4_2:"也可以编写一些技术规范说明文档以供团队查阅",section_title5:"团队协作",section_description5:"团队权限管理机制让团队良好地协同编写文档",section_title6:"文档自动化",section_description6_1:"可从代码注释中自动生成文档",section_description6_2:"搭配的RunApi客户端,可调试接口和自动生成文档",section_title7:"免费开源",section_description7_1:"ShowDoc提供免费开源的版本",section_description7_2:"你可以选择将ShowDoc部署到你的服务器",section_title8:"在线托管",section_description8_1:"www.showdoc.com.cn 安全稳定的在线文档托管服务",section_description8_2:"你可以放心地选择托管你的文档数据在云端",section_title9:"立即体验",section_description9:"超过100000+互联网团队正在使用ShowDoc",login:"登录",username:"用户名",password:"密码",register_new_account:"注册新账号",forget_password:"忘记密码",username_description:"用户名/邮箱",password_again:"再次输入密码",verification_code:"验证码",register:"注册",update_personal_info:"修改个人信息",submit:"提交",goback:"返回",my_email:"我的邮箱",input_email:"请输入要绑定的邮箱",input_login_password:"请输入你的登录密码以验证",status:"状态",status_1:"已验证",status_2:"未验证",status_3:"未绑定",binding:"绑定",modify:"修改",modify_password:"修改密码",old_password:"原密码",new_password:"新密码",modify_success:"修改成功",update_email_success:"更新邮箱成功!请登录邮箱查收验证邮件",personal_setting:"个人设置",web_home:"网站首页",logout:"退出登录",add_an_item:"添加一个新项目",new_item:"新建项目",feedback:"反馈",more:"更多",my_notice:"我的消息",item_setting:"项目设置",item_top:"置顶项目",cancel_item_top:"取消置顶",item_type1:"常规项目",item_type2:"单页项目",item_name:"项目名",item_description:"项目描述",item_domain:"(可选)个性域名",item_domain_illegal:"个性域名只能是字母或数字的组合",domain_already_exists:"个性域名已经存在",visit_password_placeholder:"访问密码",copy_exists_item:"复制已存在项目",please_choose:"请选择",auto_db:"我要自动生成数据字典",input_visit_password:"请输入访问密码",export_all:"导出全部",export_cat:"按目录/页面",select_cat_2:"选择二级目录:",select_cat_3:"选择三级目录:",begin_export:"开始导出",base_info:"基础信息",member_manage:"成员管理",advance_setting:"高级设置",open_api:"开放API",info_item_domain:"个性域名",visit_password:"访问密码",visit_password_description:"(可选)私有项目请设置访问密码",add_member:"添加成员",authority:"权限",add_time:"添加时间",operation:"操作",delete:"删除",input_target_member:"请输入目标成员的用户名",readonly:"只读",member_authority_tips:"权限说明:编辑权限指的是成员可以新建/编辑/删除项目页面。 只读权限指的是,该成员对本项目所有页面都只能查看,无法新增/编辑/删除。可以按项目目录给用户授权,该用户将只能查看和操作自己有权限的目录。目前只支持选择一级目录。",cancel:"取消",confirm:"确定",confirm_delete:"确认删除吗?",attorn:"转让",archive:"归档",attorn_tips:"你可以将项目转让给他人",archive_tips:"归档后,项目将变为只读,无法再修改/新增内容。如果要重新编辑,请复制到新项目后编辑",delete_tips:"警告!你现在的操作会删除整个项目,所有页面和目录数据在删除后将不可恢复!",attorn_username:"接受者用户名",archive_tips2:"说明: 归档项目后,项目将无法再新增和修改内容,并且无法取消归档状态。 如想再次修改内容,可复制本项目,在新的项目基础上修改。",success_jump:"操作成功!正在跳转...",reset_token:"重新生成api_token",open_api_tips1:"showdoc开放文档编辑的API,供使用者更加方便地操作文档数据。
利用开放API,你可以自动化地完成很多事",open_api_tips2:'如果你想利用runapi客户端生成API文档,则可参考runapi介绍',open_api_tips3:'如果你想通过程序注释生成API文档,则可参考API文档',open_api_tips4:'如果你想自动化生成数据字典,则可参考数据字典',open_api_tips5:'如果你更自由地生成自己所需要的格式,则可参考开放API',item:"项目",share:"分享",export:"导出",update_info:"修改信息",manage_members:"成员管理",more_item:"更多项目",login_or_register:"登录/注册",about_showdoc:"关于ShowDoc",new_page:"新建页面",edit_page:"编辑页面",new_catalog:"新建/管理目录",share_address_to_your_friends:"分享该接口地址给你的好友",copy_interface_to_new:"复制该页面到新页面",copy:"复制",edit:"编辑",detail:"详情",delete_interface:"删除页面",comfirm_delete:"确认删除吗?",item_address:"项目地址",copy_address_to_your_friends:"你可以复制地址给你的好友",share_page:"分享页面",page_address:"页面地址",input_keyword:"输入关键字后按回车以搜索",item_page_address:"项目页面地址",single_page_address:"单页面地址",page_diff_tips:"项目页面地址和单页面地址有什么区别?",title:"标题",catalog:"目录",level_2_directory:"二级目录",level_3_directory:"三级目录",s_number:"序号",s_number_explain:"(可选)默认是99,数字越小越靠前",optional:"可选",history_version:"历史版本",save:"保存",insert_apidoc_template:"API接口模板",insert_database_doc_template:"数据字典模板",json_tools:"JSON工具",format_tools:"格式工具",json_to_table:"JSON转参数表格",beautify_json:"JSON格式化",beautify_json_description:"请粘贴一段json,程序将自动以美观的方式格式化显示",http_test_api:"在线测试API",json_to_table_description:"请粘贴一段json,程序将自动将json解析并生成参数表格。此功能适合用于快速编写API文档的返回参数表格",update_time:"修改时间",update_by_who:"修改人",recover_to_this_version:"恢复到此版本",close:"关闭",finish:"完成",params:"参数",clear:"清除",result:"返回结果",save_to_templ:"另存为模板",more_templ:"更多模板",saved_templ_list:"保存的模板列表",page_comments:"页面注释",cur_page_content:"当前最新版本",overview:"预览",save_templ_title:"请为要保存的模板设置标题",save_templ_text:"已经保存好模板。你以后新建或者编辑编辑页面时,点击“更多模板”按钮,便可以使用你保存的模板",welcome_use_showdoc:"欢迎使用ShowDoc!",templ_list:"模板列表",templ_title:"模板标题",no_templ_text:"你尚未保存过任何模板。你可以在编辑页面时,在“保存”按钮右边点击,在下拉菜单中选择“另存为模板”。把页面内容保存为模板后,你下次新建或者编辑页面时便可以使用你之前保存的模板",save_time:"保存时间",insert_templ:"插入此模板",delete_templ:"删除模板",save_success:"保存成功",paste_insert_table:"粘贴插入表格",paste_insert_table_tips:"你可以从网页或者excel中复制表格,然后粘贴在此处。粘贴并确定后,程序将自动把源表格转为markdown格式的表格。注:复制excel后,请鼠标右击,粘贴为纯文本。否则会当做图片上传。",add_cat:"添加目录",cat_name:"目录名",input_cat_name:"请输入目录名",parent_cat_name:"上级目录",none:"无",back_to_top:"回到顶部",draft_tips:"检测到有上次编辑时自动保存的草稿。是否自动填充上次的草稿内容?",management_backstage:"管理后台",user_management:"用户管理",item_management:"项目管理",add_user:"新增用户",search:"查询",team_mamage:"团队管理",background:"管理后台",distribution_to_team:"分配项目给团队",back_to_team:"返回团队管理",check_item:"查看项目",unassign:"取消分配",go_to_new_an_item:"去新建项目",confirm_unassign:"确认取消分配吗?此操作会取消项目和团队之间的关联",Join_time:"加入时间",add_team:"添加团队",member_authority:"成员权限",go_to_new_an_team:"去新建团队",adjust_member_authority:"调整每一个成员的项目权限",team_member_empty_tips:"该团队尚未有任何成员",team_member_authority_tips:"权限说明:默认成员可以新建/编辑/删除项目页面, 勾选只读属性后,该成员对所有页面都只能查看,无法新增/编辑/删除。可以按项目目录给用户授权,该用户将只能查看和操作自己有权限的目录。目前只支持选择一级目录。",member:"成员",team_item:"项目",member_username:"成员用户名",team_name:"团队名",memberCount:"成员数",itemCount:"分配项目数",empty_team_tips:"欢迎使用团队管理功能。此功能非常适合Team leader对多人员、跨团队项目的协作管理。请先点击左上方按钮添加团队。添加团队后,可以随时增加/删除团队成员、批量分配到不同项目,并且可以设置不同项目里的成员权限。相比简单成员管理模式,团队管理功能可以批量地进行人员的增删,更方便复杂团队的协作。",copy_link:"复制链接",copy_success:"复制成功",user_manage:"用户管理",item_manage:"项目管理",web_setting:"站点设置",register_open_label:"开放用户注册",ldap_open_label:"启用ldap登录",name:"姓名",name_tips:"推荐使用真实姓名",attachment:"附件",upload:"上传",upload_file:"上传文件",file_name:"文件名",download:"下载",file_size_tips:"文件大小在4M内",confirm_cat_delete:"确认删除目录吗?此操作会把该目录下的所有页面一并删除,请谨慎操作。",userrole:"用户角色",reg_time:"注册时间",last_login_time:"最后登录时间",administrator:"管理员",ordinary_users:"普通用户",owner:"所有者",privacy:"私密性",link:"链接",private:"密码访问",public:"公开访问",register_open:"开放用户注册",long_page_tips:"检测到本页面内容比较多,showdoc暂时关闭了html实时预览功能,以防止过多内容造成页面卡顿。你可以在编辑栏中找到预览按钮进行手动打开。",item_exit:"退出项目",confirm_exit_item:"你确定要退出该项目吗?",insert:"插入",Open_item:"公开项目",private_item:"私密项目",private_item_passwrod:"私密项目请设置访问密码",create_sigle_page:"我要创建单页面地址",create_sigle_page_tips:"当仅仅想分享某个页面、而不想分享整个项目的时候,你可以选择分享单页面地址。分享出去后,你的好友将仅仅只看到单个页面,无法浏览目录菜单,也无法切换到其他页面查看。",home_page:"网站首页",full_page:"全屏介绍页面",login_page:"跳转到登录页面",jump_to_an_item:"跳转到某个项目",jump_to_item:"跳转到项目",recycle:"回收站",recycle_tips:"被删除的页面会进入回收站。在回收站超过30天的内容将被系统自动选择合适时候清理掉",page_title:"页面标题",deleter:"删除账号",del_time:"删除时间",recover:"恢复",recover_tips:"确认恢复吗?恢复的页面将出现在项目根目录",cat_tips:"可拖动以排序",cat_limite_tips:"showdoc只支持最多三层目录,请优化目录结构",sort_pages:"页面排序",sort_pages_tips:"选择特定的目录后,你可以对该目录下的页面进行拖动排序",regular_item:"常规项目",single_item:"单页项目",copy_item:"复制项目",import_file:"导入文件",auto_item:"自动生成",single_item_tips:"单页项目指的是指没有目录结构,只有一个页面的项目",copy_item_tips1:"从你已有的项目中选择并复制",copy_item_tips2:"复制后将新项目重命名为:",import_file_tips1:"导入的文件可以是postman的json文件、swagger3的json文件、showdoc的markdown压缩包。系统会自动识别文件类型。",import_file_tips2:"将文件拖到此处,或点击上传",export_format_word:"word格式",export_format_markdown:"markdown压缩包",export_markdown_tips:"导出的压缩包可以重新导入showdoc,在新建项目的时候选择“文件导入”即可",private_tips:"这是一个私密项目",oss_open:"图片附件储存到云",oss_server:"云服务商",aliyun:"阿里云",qiniu:"七牛云",oss_domain:"oss绑定域名(选填)",attornTeamTips:"转让团队后,该团队下拥有的所有项目也会一并转让给对方",lock_edit:"锁定编辑",lock_edit_tips:"当锁定后,其他人将无法编辑本页面。直到你取消锁定或者退出编辑",cacel_lock:"解除锁定",locking:"当前页面正在被其他成员锁定编辑中,编辑者:",all_cat:"所有目录",cat_success:"目录保存成功",auth_success:"权限保存成功",all_cat2:"目录权限:所有目录",c_team:"选择团队",Logged:"已登录",update_pwd_tips:"密码,不修改则留空",import_excel:"你可以选择Excel文件导入",table:"电子表格",attachment_manage:"附件管理",op_success:"操作成功",display_name:"展示名字",all_attachment_type:"全部文件类型",image:"图片",general_attachment:"其它文件",uploader:"上传者",file_id:"文件id",file_type:"文件类型",file_size_m:"文件大小/mb",visit:"查看",visit_times:"访问次数",my_attachment:"文件库",accumulated_used_sapce:"累计已使用空间",month_flow:"本月已使用流量",all_pages:"全部页面",cancelSingle:"是否确定取消单页链接?取消后,原链接会立马失效",cancelSingleYes:"取消单页链接",cancelSingleNo:"保留单页链接",from_file_gub:"从文件库选择",file_gub:"文件库",select:"选择",copy_or_mv_cat:"复制或移动目录",copy_to:"复制到",move_to:"移动到",remark:"备注",used_space:"已使用空间",qcloud:"腾讯云",binding_item:"绑定项目",addtime:"添加时间",system_update:"系统更新",group_name:"组名",add_group:"新建分组",all_items:"所有项目",manage_item_group:"项目分组管理",draggable_tips:"按住可拖动排序",item_group_empty_tips:"暂无分组数据。可点击右上角新建分组",select_item:"选择项目",ext_login:"集成登录",enable_oauth:"启动OAuth2登录",your_showdoc_server:"【你的showdoc地址】",callback_eg:" callback url填写示例",entrance_tips_label:"入口文字提示",entrance_tips_content:"当启用OAuth2登录时候,登录界面将在输入框的下方出现此入口。你可以填上如'使用公司OA登录'这样的提示",userinfo_path_content:"登录成功后获取用户信息的接口。可以写完整网址也可以写路径。当只填写路径的时候,将自动使用上面的Oauth host补充完整地址。该接口应当返回json字符串且包含username字段",reset:"重新生成",history_version_count:"历史版本数量",history_version_count_content:"每次编辑页面都会生成一个页面的历史版本。这里是保留的历史版本数量。默认只保留最新的20个版本",refresh_cat:"刷新目录列表",go_add_cat:"去新建目录",all_member_read:"全部设置为只读",watermark:"水印",watermark_tips:"登录用户查看项目时候显示水印",site_url:"网站外部访问url",site_url_tips:'你上传图片/附件等资源时,其生成的url自动由程序判断填充。如果程序判断错误,你可以在这里手动填上访问url,当你填写后,上传资源后的访问url将使用这里填写的值作为访问前缀。填写示例值"https://www.showdoc.com.cn"。如果你不理解此值含义,请默认留空,不要填写',about_site:"关于本站",s3_storage:"通用S3存储(亚马逊s3/minio等)",import:"导入",import_into_cur_item:"导入到当前项目中",import_into_cur_item_tips:"当你选择导入到当前项目时,同一个目录下相同标题的页面会被覆盖",import_into_new_item:"导入为一个新项目",item_change_log:"项目变更日志",item_change_log_dialog_title:"项目变更日志(只保留前300条)",optime:"操作时间",oper:"操作人",op_action_type_desc:"操作动作类型描述",op_object_type_desc:"操作对象类型描述",op_object_name:"操作对象名称",from_name:"发送人",send_time:"发送时间",content:"内容",system_announcement:"系统公告",save_and_notify:"保存并通知",refresh_member_list:"刷新人员列表",click_to_edit_member:"点此编辑本页面的通知人员名单",cur_setting_notify:"当前已设置通知",people:"人",notify_tips1:"处于通知名单里的人会收到当前页面被修改了的提醒,同时会附上修改备注",input_update_remark:"请输入修改备注",update_remark:"修改备注",add_single_member:"单独添加人员",add_all_member:"一键添加全部项目成员",notify_add_member_tips1:"你只能从项目成员中选择人员。如果你想添加的人不在下拉选项内,请先联系项目管理员添加成员到项目或者相应绑定的团队中。",quick_entrance:"快捷入口",to_item_setting:"去项目设置",to_team:"去团队管理",system_reminder:"系统提醒",update_the_page:"修改了页面",click_to_view:"点此查看",my_template:"我的模板",item_template:"共享到本项目的模板",no_my_template_text:"你尚未保存过任何模板。你可以在编辑页面时,在“保存”按钮右边点击,在下拉菜单中选择“另存为模板”。把页面内容保存为模板后,你下次新建或者编辑页面时便可以使用你之前保存的模板。如果你想使用别人共享的模板,可以切换到‘共享到本项目的模板’标签页去看",no_item_template_text:"当前没有任何共享到本项目的模板。你以及其他成员都可以选择把自己的模板共享到本项目。在‘我的模板’处便可以设置。共享后,所有成员都能看到本项目下共享的模板",sharer:"共享人",share_to_these_items:"共享到这些项目",share_items_tips:"当你选择共享到这些项目后,这些项目的成员都能使用到此共享模板",ordinary_member:"普通成员",team_admin:"团队管理员",edit_member:"编辑成员",readonly_member:"只读成员",item_admin:"项目管理员",sql_to_markdown_table:"SQL转表格",sql_to_markdown_table_description:"你可以在此输入一段创建表的SQL(通常是以CREATE TABLE开头),程序会根据SQL来自动插入一个markdown格式的表格,用以描述该表的数据字典",logout_redirect_uri_desc:"选填项。当用户退出登录时,将重定向到此url",past_html_tips:"检测到你要粘贴的内容可能包含html标签和样式,是否需要尝试转换成markdown格式?如不需要,你可以点击下方的粘贴纯文本按钮",past_html_markdown:"尝试 html 转 markdown",past_html_text:"粘贴纯文本",team_exit:"退出团队",team_exit_confirm:"你确认退出团队吗?退出后,你将失去改团队下所有项目权限",expand_collapse_catalog_tips:"展开全部目录/折叠全部目录",edit_group:"新建/编辑分组",star_items:"星标项目",unstar_item:"取消星标",star_item:"星标项目",open_item:"打开项目",user_center:"用户中心",create_new_item:"创建新项目",regular_item_desc:"最常见的多页在线文档",single_item_desc:"无目录结构的单页文档",table_item:"电子表格",table_item_desc:"可用于分享的在线电子表格",import_file_desc:"导入支持的项目文件",auto_create:"自动生成",auto_create_desc:"利用API自动化生成",home_logo_title:"在线API & 技术文档",group:"分组",item_group_desc:"添加分组/管理分组",empty_team_member_tips:"暂无成员数据。你可以尝试点击右上角以添加成员",empty_team_item_tips:"暂无项目数据。你可以尝试点击右上角以绑定项目",update_user_name_tips:"请在下方输入你的身份。推荐使用真实姓名,这样在协作项目和文档的时候,其他成员容易识别你的身份",accessibility:"可访问性",vip:"会员",default_title:"默认标题",doc_tool:"文档工具",add_from_template:"从模板加入",click_to_edit_page_title:"点击以编辑页面标题",select_catalog:"选择目录",update_base_info:"修改基础信息",no_member_tips:"暂无团队或者成员信息,你可以点击上方按钮以添加",select_member_before:"点此快速选择之前添加过的成员名",item_member:"项目成员",item_team_info:"团队信息",copy_page:"复制页面",page_history_version:"页面版本",page_info:"页面信息",sort_page:"页面排序",delete_page:"删除页面",update_item_base_info:"修改项目基础信息",attorn_item:"转让项目",archive_item:"归档项目",delete_item:"删除项目",table_item_auto_save_tips:"电子表格项目会在你编辑的时候自动保存",do_not_remind_again:"知道了,不用再提醒我",no_items:"暂无项目",ai_assistant:"AI助手生成",create:"创建",search_keyword:"请输入搜索关键词",add_sub_page:"添加页面",add_sub_cat:"添加子文件夹",add_si_bling_cat:"添加同级文件夹",edt_cat:"编辑文件夹",clone_move:"克隆/移动"}},"5byI":function(t,e){},"5fie":function(t,e){},"75Ik":function(t,e){},"75l9":function(t,e){t.exports={_args:[["axios@0.21.4","D:\\phpstudy_pro\\WWW\\showdoc\\web_src"]],_from:"axios@0.21.4",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"axios@0.21.4",name:"axios",escapedName:"axios",rawSpec:"0.21.4",saveSpec:null,fetchSpec:"0.21.4"},_requiredBy:["/"],_resolved:"https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz",_spec:"0.21.4",_where:"D:\\phpstudy_pro\\WWW\\showdoc\\web_src",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"}},"8C//":function(t,e){},"8gQg":function(t,e){},"8giw":function(t,e){},"9caj":function(t,e){},"9p//":function(t,e){},ADz7:function(t,e){},AzjR:function(t,e){},D7LD:function(t,e){},D8vU:function(t,e){},DeOj:function(t,e){},FMeT:function(t,e){},FQqZ:function(t,e){e.__esModule=!0,e.default={help:"Help",demo:"Demo",index_login_or_register:"Login / Register",my_item:"My items",section_title1:"ShowDoc",section_description1:" A tool greatly applicable for an IT team",section_description1_1:"A tool greatly applicable",section_description1_2:"for an IT team",section_title2:"API Document",section_description2_1:"ShowDoc can compile exquisite API documents",section_description2_2:"in a very fast and convenient way",section_title3:"Data Dictionary",section_description3_1:"A good Data Dictionary can easily exhibit database structure to other people",section_description3_2:"ShowDoc can compile exquisite Data Dictionary",section_title4:"Explanation Document",section_description4_1:"You can absolutely use ShowDoc to compile the explanation documents for some tools",section_description4_2:"You can absolutely use ShowDoc to compile the explanation documents for some tools",section_title5:"Team Work",section_description5:"Your team will work with ShowDoc together very well ",section_title6:"Document Automation",section_description6_1:"Documents can be generated automatically from code comments",section_description6_2:"With the runapi client, you can debug the interface and automatically generate documents",section_title7:"Open Source",section_description7_1:"ShowDoc is a free, open source tool",section_description7_2:"You can deploy it to your own server",section_title8:"Hosted online",section_description8_1:"www.showdoc.com.cn provide security and stability of the document hosting service",section_description8_2:"You can safely choose to host your document data in the cloud",section_title9:"Try it now",section_description9:"Over 100000+ IT team is using ShowDoc",login:"Login",username:"Username",password:"Password",register_new_account:"Register",forget_password:"Forget password?",username_description:"Username/Email",password_again:"Input password again",verification_code:"Verification code",register:"Register",update_personal_info:"Update personal info",submit:"Submit",goback:"Back",my_email:"My email",input_email:"Input email",input_login_password:"Please enter your login password to verify",status:"Status",status_1:"Verified",status_2:"Unverified",status_3:"Unbound",binding:"Binding",modify:"Modify",modify_password:"Modify password",old_password:"Old password",new_password:"New password",modify_success:"Modify success!",update_email_success:"Update your mailbox successfully! Please log in to check the email to check the email.",personal_setting:"Personal settings",web_home:"Home",logout:"Logout",add_an_item:"Add an item",new_item:"New item",feedback:"Feedback",more:"More",my_notice:"My notice",item_setting:"Item settings",item_top:"Make item top",cancel_item_top:"Cancel top",item_type1:"Regular item",item_type2:"Single item",item_name:"Item name",item_description:"Description",item_domain:"Personalized domain name (optional)",item_domain_illegal:"Personalized domain names can only be a combination of letters or numbers",domain_already_exists:"Personal domain name already exists",visit_password_placeholder:"Password",copy_exists_item:"Copy existing item",please_choose:"Please select",auto_db:"Auto data dictionary",input_visit_password:"Input visit password",export_all:"Export all",export_cat:"export catalog/page",select_cat_2:"Select catalog level2",select_cat_3:"Select catalog level3",begin_export:"Begin to export",base_info:"Base info",member_manage:"Manage member",advance_setting:"Advanced setting",open_api:"open api",info_item_domain:"Personal domain name",visit_password:"Password",visit_password_description:"(Optional: private item required)",add_member:"Add member",authority:"Authority",add_time:"Add time",operation:"Operation",delete:"Delete",input_target_member:"Input member's username",readonly:"Read-only",member_authority_tips:"Permission Description: The default member can create/edit the project page, and only delete the newly created/edited page when deleting. After checking the read-only attribute, the member can only view all pages, and cannot add/edit/delete",cancel:"Cancel",confirm:"Confirm",confirm_delete:"Confirm to delete",attorn:"Attorn",archive:"Archive",attorn_tips:"You can attorn item(s) to other user(s)",archive_tips:"After archiving, the item will become read-only, and no more changes / additions can be made. If you want to edit it again, copy it to the new project and then edit it",delete_tips:"After deleting it, it can not be restored!",attorn_username:"Username of receiver",archive_tips2:"Note: After archiving a project, the project will no longer be able to add and modify content and will not be able to unarchive. If you want to modify the content again, you can copy the project and modify it on the basis of the new project.",success_jump:"The operation is successful! Skipping...",reset_token:"Reset token",open_api_tips1:"Showdoc opens the API for document editing, making it easier for users to manipulate document data.
With the open API, you can do a lot of things automatically",open_api_tips2:'If you want to use the runAPI client to generate API documents, you can refer to the runapi introduction',open_api_tips3:'If you want to automate the generation of API documentation, you can refer toAPI documentation',open_api_tips4:'If you want to automate the generation of a data dictionary, you can refer toData dictionary',open_api_tips5:'If you are more free to generate the format you need, you can refer toOpen API',item:"Item",share:"Share",export:"Export",update_info:"Update info",manage_members:"Manage members",more_item:"More item(s)",login_or_register:"Login/Register",about_showdoc:"About ShowDoc",new_page:"New page",edit_page:"Edit page",new_catalog:"New/Manage catalog ",share_address_to_your_friends:"Share the interface address to your friends",copy_interface_to_new:"Copy this page to a new page",copy:"Copy",edit:"Edit",detail:"Detail",delete_interface:"Delete page",comfirm_delete:"Comfirm to delete",item_address:"Item address",copy_address_to_your_friends:"You can copy the address to your friend",share_page:"Share page",page_address:"Page address",input_keyword:"Press Enter to search",item_page_address:"Item page address",single_page_address:"Single page address",page_diff_tips:"What is the difference between the project page address and the single page address?",title:"Title",catalog:"Catalog",level_2_directory:"Level 2 catalog",level_3_directory:"Level 3 catalog",s_number:"Order",s_number_explain:"The default is 99, the smaller the number, the earlier it is set.(optional)",optional:"Optional",history_version:"History version",save:"Save",insert_apidoc_template:"ApiDoc template",insert_database_doc_template:"DatabaseDoc template",json_tools:"Json tools",format_tools:"Format tools",json_to_table:"JSON to table",beautify_json:"JSON beautify",beautify_json_description:"Please paste a JSON script, the program will automatically format the display in an elegant way.",http_test_api:"Test API online",json_to_table_description:"Please paste a JSON script, the program will automatically parse the code and generate a parameter table. This feature is suitable for quickly writing back parameter tables for API documents.",update_time:"Update time",update_by_who:"Update by ",recover_to_this_version:"Recover",close:"Close",finish:"Finish",params:"params",clear:"Clear",result:"Result",save_to_templ:"Save to template",more_templ:"More templates",saved_templ_list:"Template list",page_comments:"Page comment",cur_page_content:"Current newest version",overview:"Overview",save_templ_title:"Input template title",save_templ_text:'The template has been saved. When you create or edit an edit page later, click the "More Templates" button to use your saved template.',welcome_use_showdoc:"Welcome to ShowDoc!",templ_list:"Template list",templ_title:"Template title",no_templ_text:'You have not saved any templates yet. You can click on the right side of the "Save" button while editing the page, and select "Save as template" from the drop-down menu. After saving the page content as a template, you can use your previously saved template the next time you create or edit a page.',save_time:"Save time",insert_templ:"Insert",delete_templ:"Delete",save_success:"Save success",paste_insert_table:"Insert table from paste",paste_insert_table_tips:"Paste (Ctrl + V) below an existing table data copied (Ctrl + C) from a spreadsheet (e.g. Microsoft Excel), a text document, a Markdown code, or even a website.",add_cat:"Add catalog",cat_name:"Catalog name",input_cat_name:"Input catalog name",parent_cat_name:"Parent catalog",none:"none",back_to_top:"Back to top",draft_tips:"Your last draft is automatically saved. Do you want automatically fill this document in with the last draft?",management_backstage:"Backstage",user_management:"User(s)",item_management:"Items",add_user:"Add user",search:"Search",team_mamage:"Manage Team(s)",background:"Background",distribution_to_team:"Distribution item",back_to_team:"Back to team",check_item:"Check item",unassign:"Unassign",go_to_new_an_item:"New item",confirm_unassign:"Confirm unassign?",Join_time:"Join time",add_team:"Add team",member_authority:"Member authority",go_to_new_an_team:"New team",adjust_member_authority:"Adjust member authority",team_member_empty_tips:"The team does not have any members yet.",team_member_authority_tips:"Permission description: The editing permission means that members can create/edit project pages, and when deleted, they can only delete their own newly created/edited pages. The read-only permission means that the member can only view all pages of this project and can not add/edit/delete them.",member:"Member",team_item:"Item",member_username:"Member username",team_name:"Team name",memberCount:"Member count",itemCount:"Item count",empty_team_tips:"Welcome to the team management function. This function is well suited for collaborative management of team leader for multi person and cross team projects. Please click the top left button to add the team(s). After adding team(s), team members can be added or deleted at any time, allocated to different projects in batches, and member rights can be set in different projects. Compared with simple membership management mode, team management function can add and delete personnel in batches, which is more convenient for complex team cooperation.",copy_link:"Copy link",copy_success:"Copy success",user_manage:"User manage",item_manage:"Item manage",web_setting:"Web setting",register_open_label:"Register open",ldap_open_label:"LDAP login",name:"Name",name_tips:"Your real name",attachment:"Attachment",upload:"Upload",upload_file:"Upload file",file_name:"File name",download:"Download",file_size_tips:"Less than 4MB",confirm_cat_delete:"Are you sure you want to delete the directory? This action will delete all the pages in this directory. Please be careful.",userrole:"User role",reg_time:"Registration time",last_login_time:"Last login time",administrator:"Administrator",ordinary_users:"Ordinary users",owner:"Owner",privacy:"Privacy",link:"link",private:"private",public:"public",register_open:"Open registration",long_page_tips:"The content of this page was detected to be more, and showdoc temporarily shut down the HTML real-time preview function to prevent the page from getting stuck due to too much content. You can find the preview button in the edit bar and open it manually.",item_exit:"Exit item",confirm_exit_item:"Are you sure to exit this item?",insert:"Insert",Open_item:"public item",private_item:"private item",private_item_passwrod:"Please set a password for private item",create_sigle_page:"I want to create a single page address",create_sigle_page_tips:"When you just want to share a page and not the whole project, you can choose to share a single page address. After sharing, your friends will only see a single page, can not browse the catalog menu, and can not switch to other pages to view.",home_page:"Website home page",full_page:"Full page",login_page:"jump to login page",jump_to_an_item:"jump to an item",jump_to_item:"choose item",recycle:"recycle",recycle_tips:"The deleted page will go to the recycle bin. The content in the recycle bin for more than 30 days will be automatically selected by the system and cleaned up when appropriate",page_title:"Page title",deleter:"Delete Account",del_time:"Delete time",recover:"recover",recover_tips:"Are you sure to recover? The recovered page will appear in the item root",sort_pages:"Sort Pages",sort_pages_tips:"After selecting a specific catalog, you can drag and sort the pages in that catalog",cat_tips:"Drag to sort",cat_limite_tips:"Only up to three levels of directories are supported",regular_item:"Regular Item",single_item:"Single Item",copy_item:"Copy Item",import_file:"Import File",auto_item:"Auto Create",single_item_tips:"Single item refers to the item with no catalog structure and only one page",copy_item_tips1:"Select and copy from your existing items",copy_item_tips2:"After copying, rename the new item to:",import_file_tips1:"The imported file can be the JSON file of postman, the JSON file of swagger3, and the markdown zip of showdoc. The system will automatically identify the file type",import_file_tips2:"Drag the file here, or click to upload",export_format_word:"Word format",export_format_markdown:"Markdown zip",export_markdown_tips:"The exported compressed package can be re imported into showdoc. Select 'Import File' when creating a new item",private_tips:"It's a private item",oss_open:"Image/attachment saved to cloud",oss_server:"cloud server",aliyun:"aliyun",qiniu:"qiniu",oss_domain:"domain(optional)",attornTeamTips:"All items owned by the team will also be transferred to he/her",lock_edit:"Lock edit",lock_edit_tips:"When locked, other people will not be able to edit this page. Until you unlock or exit editing",cacel_lock:"Unlock",locking:"The current page is being locked and edited by other members. Editor:",all_cat:"All catalogs",cat_success:"Catalogs saved successfully",auth_success:"saved successfully",all_cat2:"Catalogs permissions: all",c_team:"Select team",Logged:"Logged",update_pwd_tips:"Password, leave blank if not changed",import_excel:"You can choose to import excel file",table:"table",attachment_manage:"Attachment",op_success:"success",display_name:"display name",all_attachment_type:"all type",image:"image",general_attachment:"general attachment",uploader:"uploader",file_id:"file id",file_type:"type",file_size_m:"size/mb",visit:"visit",visit_times:"visit times",my_attachment:"My attachment",accumulated_used_sapce:"Accumulated used space",month_flow:"Traffic has been used this month",all_pages:"All pages",cancelSingle:"Are you sure you want to cancel the single page link? After cancellation, the original link will be invalid immediately",cancelSingleYes:"Unlink single page",cancelSingleNo:"Keep single page",from_file_gub:"From FileHub",file_gub:"FileHub",select:"select",copy_or_mv_cat:"Copy or move catalog",copy_to:"Copy To",move_to:"Move To",remark:"remark",used_space:"Used pace",qcloud:"qcloud",binding_item:"Binding item",addtime:"addtime",system_update:"System update",group_name:"group name",add_group:"New group",all_items:"All items",manage_item_group:"Manage group",draggable_tips:"Press and hold to drag sort",item_group_empty_tips:"There is no grouping data. You can click the top right corner to create a new group",select_item:"Select item",ext_login:"Ext login",enable_oauth:"OAuth Login",your_showdoc_server:"[your-showdoc-server]",callback_eg:" callback url example",entrance_tips_label:"Entrance text prompt",entrance_tips_content:"When OAuth2 login is enabled, this entry will appear below the input box on the login interface. You can fill in a prompt such as 'Log in with company OA'",userinfo_path_content:"Interface to obtain user information after successful login. You can write a full URL or a path. When only the path is filled in, the OAuth host above will be used to supplement the full address automatically. The interface should return a JSON string with a username field",reset:"reset",history_version_count:"History versions",history_version_count_content:"Each time you edit a page, a historical version of the page is generated. Here is the number of historical versions kept. Only the latest 20 versions are reserved by default",refresh_cat:"Refresh directory list",go_add_cat:"To create a new directory ",all_member_read:"Set all to read-only",watermark:"watermark",watermark_tips:"The watermark is displayed when the logged in user views the item",site_url:"Site url",site_url_tips:"Site url",about_site:"About site",s3_storage:"S3 Storage(Amazon S3/Minio and so on)",import:"import",import_into_cur_item:"Import into current item",import_into_cur_item_tips:"When you choose to import to the current item, the pages with the same title in the same directory will be overwritten",import_into_new_item:"Import as a new item",item_change_log:"Item change log",item_change_log_dialog_title:"Item change log(only the first 300 are retained)",optime:"Operation time",oper:"Operator",op_action_type_desc:"Operation action type description",op_object_type_desc:"Operation object type description",op_object_name:"Operation object name",from_name:"Sender",send_time:"Sending time",content:"content",system_announcement:"Announcement",save_and_notify:"Save and notify",refresh_member_list:"Refresh member list",click_to_edit_member:"Click here to edit the list of notifiers for this page",cur_setting_notify:"currently set",people:"person",notify_tips1:"People on the notification list will receive a reminder that the current page has been modified and will attach a modification note",input_update_remark:"Please enter modification remarks",update_remark:"Modification remark",add_single_member:"Add personnel separately",add_all_member:"Add all project members with one click",notify_add_member_tips1:"You can only select people from project members. If the person you want to add is not in the drop-down option, please contact the project administrator first to add members to the project or the corresponding bound team.",quick_entrance:"Quick entrance",to_item_setting:"Go to item settings",to_team:"Go to team management",system_reminder:"System reminder",update_the_page:"update the page",click_to_view:"click to view",my_template:"My template",item_template:"Templates shared to this item",no_my_template_text:"You haven't saved any templates yet. When editing the page, click on the right side of the 'save' button and select 'save as template' in the drop-down menu. After saving the page content as a template, you can use the template you saved before the next time you create or edit a page. If you want to use the template shared by others, you can switch to the 'template shared to this item' tab",no_item_template_text:"There are currently no templates shared to this project. You and other members can choose to share their own templates with this project. You can set it in my template. After sharing, all members can see the shared templates under this item",sharer:"sharer",share_to_these_items:"share to these items",share_items_tips:"When you choose to share to these items, members of these items can use this sharing template",ordinary_member:"Ordinary member",team_admin:"Team administrator",edit_member:"Edit member",readonly_member:"Readonly member",item_admin:"Item administrator",sql_to_markdown_table:"SQL to table",sql_to_markdown_table_description:"You can enter a paragraph of SQL to create a table here (usually starting with create table). The program will automatically insert a table in markdown format according to the SQL to describe the data dictionary of the table",logout_redirect_uri_desc:"Optional. This URL is redirected when the user logs out",past_html_tips:"It is detected that the content you want to paste may contain HTML tags and styles. Do you need to try to convert it to markdown format? If you don't need it, you can click the paste plain text button below",past_html_markdown:"Try HTML to markdown",past_html_text:"Paste plain text",team_exit:"Quit",team_exit_confirm:"Are you sure to quit the team? After quitting, you will lose all project permissions under the team",expand_collapse_catalog_tips:"Expand all catalogs / collapse all catalogs",edit_group:"Create/Edit Group",star_items:"Star Items",unstar_item:"Unstar item",star_item:"Star Item",open_item:"Open Item",user_center:"User Center",create_new_item:"Create Item",regular_item_desc:"Multi-page online documents",single_item_desc:"One-page online document",table_item:"Spreadsheet",table_item_desc:"Online spreadsheets",import_file_desc:"Import supported files",auto_create:"Auto Create",auto_create_desc:"Automatic Create",home_logo_title:"Online API & Technical Documentation",group:"group",item_group_desc:"Create groups/Manage groups",empty_team_member_tips:"No member data. You can try to add members by clicking on the top right corner",empty_team_item_tips:"There is no item data. You can try to bind items by clicking the upper right corner",update_user_name_tips:"Please enter your nickname below. It is recommended to use your real name so that other members can easily identify you when collaborating on items and documents",accessibility:"Accessibility",vip:"Vip",default_title:"Default title",doc_tool:"Document Tools",add_from_template:"Add from template",click_to_edit_page_title:"Click to edit the page title",select_catalog:"Select catalog",update_base_info:"Update base info",no_member_tips:"There is no team or member information, you can click the button above to add",select_member_before:"Select the member name added before",item_member:"Item Member",item_team_info:"Team info",copy_page:"Copy page",page_history_version:"Page history version",page_info:"Page info",sort_page:"Sort page",delete_page:"Delete page",update_item_base_info:"Update item info",attorn_item:"Attorn item",archive_item:"Archive item",delete_item:"Delete item",table_item_auto_save_tips:"Spreadsheet items will be saved automatically when you edit them",do_not_remind_again:"Don not remind me again",no_items:"No items",ai_assistant:"Ai assistant",create:"Create",search_keyword:"Please enter search keywords",add_sub_page:"Add Page",add_sub_cat:"Add Sub Folder",add_si_bling_cat:"Add Peer Folder",edt_cat:"Edit Folder",clone_move:"Clone/Move"}},FVf2:function(t,e){},Ffbd:function(t,e){},Fihv:function(t,e){},FuBv:function(t,e){},GFba:function(t,e){},Imfp:function(t,e){},J2yJ:function(t,e){},K2RQ:function(t,e){},MK3e:function(t,e){},Mxwu:function(t,e){},N2Ug:function(t,e){},NHnr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("woOf"),n=i.n(a),o=i("7+uW"),s={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var r=i("VU/8")({name:"app"},s,!1,function(t){i("9p//")},null,null).exports,l=i("/ocq"),c=i("//Fk"),m=i.n(c),d=i("mtWM"),_=i.n(d);_.a.defaults.timeout=6e4,_.a.defaults.baseURL=DocConfig.server,_.a.interceptors.request.use(function(t){return t},function(t){return m.a.reject(t)}),_.a.interceptors.response.use(function(t){if(t.config.data&&t.config.data.indexOf("redirect_login=false")>-1);else if(10102===t.data.error_code){var e=Ya.currentRoute.fullPath.repeat(1);if(e.indexOf("redirect=")>-1)return!1;Ya.replace({path:"/user/login",query:{redirect:e}})}return t},function(t){return m.a.reject(t.response)});var u=_.a,p=i("zL8q"),h=i.n(p),f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post",a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"form",o=DocConfig.server+t,s=localStorage.getItem("userinfo");if(s){var r=JSON.parse(s);r&&r.user_token&&(e.user_token=r.user_token)}var l={url:o,method:i,data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}};return"json"==n&&(l.data=e,l.headers["Content-Type"]="application/json"),new m.a(function(t,e){u(l).then(function(i){if(10102===i.data.error_code&&-1===i.config.data.indexOf("redirect_login=false")){var n=Ya.currentRoute.fullPath.repeat(1);if(n.indexOf("redirect=")>-1)return!1;Ya.replace({path:"/user/login",query:{redirect:n}}),e(new Error("登录态无效"))}if(a&&i.data&&0!==i.data.error_code)return p.MessageBox.alert(i.data.error_message),e(new Error("业务级别的错误"));t(i.data)},function(t){t.Cancel?console.log(t):e(t)}).catch(function(t){e(t)})})},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};f("/api/user/info",{redirect_login:!1},"post",!1).then(function(e){t&&t({data:e})})},v=function(){var t=localStorage.getItem("userinfo");if(t){var e=JSON.parse(t);if(e&&e.user_token)return e}return!1},b={name:"Index",data:function(){return{height:"",link:"",link_text:"",beian:""}},methods:{getHeight:function(){var t;window.innerHeight?t=window.innerHeight:document.body&&document.body.clientHeight&&(t=document.body.clientHeight),this.height=t+"px"},homePageSetting:function(){var t=this,e=DocConfig.server+"/api/common/homePageSetting";this.axios.post(e,this.form).then(function(e){0===e.data.error_code&&(t.beian=e.data.data.beian,2==e.data.data.home_page&&t.$router.replace({path:"/user/login"}),3==e.data.data.home_page&&e.data.data.home_item&&t.$router.replace({path:"/"+e.data.data.home_item}))})}},mounted:function(){var t=this;this.getHeight(),this.homePageSetting(),this.link="/user/login",this.link_text=this.$t("index_login_or_register"),g(function(e){0===e.data.error_code&&(t.link="/item/index",t.link_text=t.$t("my_item"))})}},w={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"body"},[i("div",{staticClass:"header"},[i("div",{staticClass:"header-wrap"},[t._m(0),t._v(" "),i("input",{attrs:{type:"checkbox",name:"",id:"mobile-menu-toggle",value:""}}),t._v(" "),t._m(1),t._v(" "),i("div",{staticClass:"nav"},[i("ul",[i("li",[i("router-link",{attrs:{to:t.link}},[t._v(t._s(t.link_text))])],1),t._v(" "),i("li",["zh-cn"==t.$lang?i("a",{attrs:{target:"_blank",href:"https://www.showdoc.cc/clients"}},[t._v("客户端")]):t._e()])])])])]),t._v(" "),i("div",{staticClass:"hbanner"},[i("div",{staticClass:"wrapper"},[i("div",{staticClass:"hbanner-txt"},[i("h2",[t._v("\n "+t._s(t.$t("section_description1_1"))+"\n "),i("br"),t._v(" "),i("font",{staticClass:"f-blue"},[t._v(t._s(t.$t("section_description1_2")))])],1),t._v(" "),i("div",{staticClass:"btns"},[i("a",{staticClass:"btn on",attrs:{href:"https://www.showdoc.cc/demo",target:"_blank"}},[t._v(t._s(t.$t("demo")))]),t._v(" "),i("a",{staticClass:"btn",attrs:{href:"https://www.showdoc.cc/help",target:"_blank"}},[t._v(t._s(t.$t("more")))])])]),t._v(" "),i("div",{staticClass:"hbanner-imgs"})])]),t._v(" "),i("div",{staticClass:"hrow hrow1"},[i("div",{staticClass:"wrapper"},[t._m(2),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title2")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description2_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description2_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow2"},[i("div",{staticClass:"wrapper"},[t._m(3),t._v(" "),i("div",{staticClass:"txt fl"},[i("h2",[t._v(t._s(t.$t("section_title3")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description3_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description3_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow3"},[i("div",{staticClass:"wrapper"},[t._m(4),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title4")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description4_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector.png"}}),t._v("\n "+t._s(t.$t("section_description4_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow4"},[i("div",{staticClass:"wrapper"},[t._m(5),t._v(" "),i("div",{staticClass:"txt fl"},[i("h2",[t._v(t._s(t.$t("section_title5")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[t._v(t._s(t.$t("section_description5")))])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow5"},[i("div",{staticClass:"wrapper"},[t._m(6),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title6")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description6_1"))+"\n ")]),t._v(" "),i("p",[i("img",{attrs:{src:"static/imgs/Vector1.png"}}),t._v("\n "+t._s(t.$t("section_description6_2"))+"\n ")])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow6"},[i("div",{staticClass:"wrapper"},[t._m(7),t._v(" "),i("div",{staticClass:"txt fl"},[i("h2",[t._v(t._s(t.$t("section_title7")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[t._v(t._s(t.$t("section_description7_1")))]),t._v(" "),i("p",[t._v(t._s(t.$t("section_description7_2")))])])])])]),t._v(" "),i("div",{staticClass:"hrow hrow7"},[i("div",{staticClass:"wrapper"},[t._m(8),t._v(" "),i("div",{staticClass:"txt fr"},[i("h2",[t._v(t._s(t.$t("section_title8")))]),t._v(" "),i("div",{staticClass:"desc"},[i("p",[t._v(t._s(t.$t("section_description8_1")))]),t._v(" "),i("p",[t._v(t._s(t.$t("section_description8_2")))])])])])]),t._v(" "),i("div",{staticClass:"hfoot"},[i("div",{staticClass:"wrapper"},[i("h2",[t._v(t._s(t.$t("section_description9")))]),t._v(" "),t._m(9),t._v(" "),i("router-link",{staticClass:"btn",attrs:{to:"/user/login"}},[t._v(t._s(t.$t("section_title9")))])],1),t._v(" "),i("div",{staticClass:"copyright"},[i("a",{attrs:{href:"https://beian.miit.gov.cn/"}},[t._v(t._s(t.beian))])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"/"}},[e("div",{staticClass:"logo"},[e("img",{staticClass:"logo-img",attrs:{src:i("x0nN")}}),this._v(" "),e("span",{staticClass:"logo-title"},[this._v("ShowDoc")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"gh",attrs:{for:"mobile-menu-toggle"}},[e("span")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home2.png"}}),this._v(" "),e("div",{staticClass:"box"},[e("img",{attrs:{src:"static/imgs/home2-img.png"}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fr"},[e("img",{attrs:{src:"static/imgs/home3.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home4.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fr"},[e("img",{attrs:{src:"static/imgs/home5.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home6.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fr"},[e("img",{attrs:{src:"static/imgs/home7.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img fl"},[e("img",{attrs:{src:"static/imgs/home8.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"case-logo"},[e("img",{attrs:{src:"static/imgs/case-logo/tencent.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/huawei_logo.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/baidu.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/jingdong.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/zijie.png"}}),this._v(" "),e("img",{attrs:{src:"static/imgs/case-logo/shunfeng.png"}})])}]};var y=i("VU/8")(b,w,!1,function(t){i("rpoe"),i("fGnW"),i("XuxQ"),i("u2hI")},"data-v-466bb2ea",null).exports,k=i("mvHQ"),C=i.n(k),x={name:"Login",components:{},data:function(){return{username:"",password:"",v_code_img:"",is_show_alert:!1,oauth2_entrance_tips:"",oauth2_url:DocConfig.server+"/api/ExtLogin/oauth2",captchaId:0,captcha:""}},methods:{onSubmit:function(){var t=this;if(!this.is_show_alert){if(this.$route.query.redirect){var e=decodeURIComponent(this.$route.query.redirect);if(e.search(/[^A-Za-z0-9/:\?\._\*\+\-]+.*/i)>-1||e.indexOf(".")>-1||e.indexOf("//")>-1)return this.$alert("illegal redirect"),!1}this.request("/api/user/loginByVerify",{username:this.username,password:this.password,captcha:this.captcha,captcha_id:this.captchaId,redirect_login:!1},"post",!1).then(function(e){0===e.error_code?t.actionAfterLogin(e.data):(t.changeVcodeImg(),t.is_show_alert=!0,t.$alert(e.error_message,{callback:function(){setTimeout(function(){t.is_show_alert=!1},500)}}))})}},actionAfterLogin:function(t){if(this.$route.query.redirect){var e=decodeURIComponent(this.$route.query.redirect);if(e.search(/[^A-Za-z0-9/:\?\._\*\+\-]+.*/i)>-1||e.indexOf(".")>-1||e.indexOf("//")>-1)return this.$alert("illegal redirect"),!1}localStorage.setItem("userinfo",C()(t));var i=decodeURIComponent(this.$route.query.redirect||"/item/index");this.$router.replace({path:i})},changeVcodeImg:function(){var t=this;this.request("/api/common/createCaptcha",{}).then(function(e){var i=e.data;DocConfig.server.indexOf("?")>-1?t.v_code_img=DocConfig.server+"/api/common/showCaptcha&captcha_id="+i.captcha_id+"&"+Date.parse(new Date):t.v_code_img=DocConfig.server+"/api/common/showCaptcha?captcha_id="+i.captcha_id+"&"+Date.parse(new Date),t.captchaId=i.captcha_id})},script_cron:function(){var t=DocConfig.server+"/api/ScriptCron/run";this.axios.get(t)},getOauth:function(){var t=this,e=DocConfig.server+"/api/user/oauthInfo";this.axios.get(e).then(function(e){0===e.data.error_code&&e.data.data.oauth2_open>0&&(t.oauth2_entrance_tips=e.data.data.oauth2_entrance_tips)})}},mounted:function(){var t=this;if(this.$route.query.redirect){var e=decodeURIComponent(this.$route.query.redirect);if(e.search(/[^A-Za-z0-9/:\?\._\*\+\-]+.*/i)>-1||e.indexOf(".")>-1||e.indexOf("//")>-1)return this.$alert("illegal redirect"),!1}for(var i=document.getElementsByClassName("v-modal-leave"),a=0;a-1?t.v_code_img=DocConfig.server+"/api/common/showCaptcha&captcha_id="+i.captcha_id+"&"+Date.parse(new Date):t.v_code_img=DocConfig.server+"/api/common/showCaptcha?captcha_id="+i.captcha_id+"&"+Date.parse(new Date),t.captchaId=i.captcha_id})}},mounted:function(){for(var t=document.getElementsByClassName("v-modal-leave"),e=0;e1,expression:"list && list.length > 1"}],staticClass:"tips"},[t._v("\n "+t._s(t.$t("draggable_tips"))+"\n ")]),t._v(" "),i("el-table-draggable",{attrs:{animate:"200"},on:{drop:t.onDropEnd}},[i("el-table",{staticStyle:{width:"100%"},attrs:{"show-header":!1,align:"left","empty-text":t.$t("item_group_empty_tips"),data:t.list,height:"400"}},[i("el-table-column",{attrs:{prop:"group_name",label:t.$t("group_name")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{staticClass:"cursor-move"},[i("i",{staticClass:"el-icon-sort font-bold \t"}),t._v(" "+t._s(e.row.group_name)+"\n ")])]}}])}),t._v(" "),i("el-table-column",{attrs:{width:"120",prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.edit(e.row)}}},[t._v(t._s(t.$t("edit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.del(e.row.id)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1)],1)],1),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("edit_group"),width:"500px",onCancel:function(){t.dialogFormVisible=!1},onOK:t.myFormSubmit}},[i("el-form",[i("el-form-item",[i("el-input",{attrs:{placeholder:"组名"},model:{value:t.MyForm.group_name,callback:function(e){t.$set(t.MyForm,"group_name",e)},expression:"MyForm.group_name"}})],1)],1),t._v(" "),i("div",[i("p",[t._v(t._s(t.$t("select_item")))]),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"show-header":!1,data:t.itemList,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_name",label:t.$t("item_name")}})],1)],1)],1):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var K=i("VU/8")(H,B,!1,function(t){i("ADz7"),i("FMeT")},"data-v-84ceb3ee",null).exports,G={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}},defaultItemType:{type:String||Number,required:!1,default:"1"},item_id:{type:String||Number,required:!1,default:0}},data:function(){return{infoForm:{item_name:"",item_description:"",item_domain:"",password:"",item_type:"1"},isOpenItem:!0}},methods:{formSubmit:function(){var t=this;if(!this.isOpenItem&&!this.infoForm.password)return this.$alert(this.$t("private_item_passwrod")),!1;this.isOpenItem&&(this.infoForm.password=""),this.item_id?this.request("/api/item/update",{item_id:this.item_id,item_name:this.infoForm.item_name,item_description:this.infoForm.item_description,item_domain:this.infoForm.item_domain,password:this.infoForm.password}).then(function(e){t.$message.success(t.$t("modify_success")),t.callback()}):this.request("/api/item/add",{item_type:this.infoForm.item_type,item_name:this.infoForm.item_name,item_description:this.infoForm.item_description,item_domain:this.infoForm.item_domain,password:this.infoForm.password},"post",!1).then(function(e){0===e.error_code?t.callback():t.$alert(e.error_message)})},getItemDetail:function(t){var e=this;this.request("/api/item/detail",{item_id:t}).then(function(t){var i=t.data;i.password?e.isOpenItem=!1:e.isOpenItem=!0,e.infoForm.item_name=i.item_name,e.infoForm.item_description=i.item_description,e.infoForm.item_domain=i.item_domain,e.infoForm.password=i.password,e.infoForm.item_type=i.item_type})}},mounted:function(){this.infoForm.item_type=this.defaultItemType,this.item_id&&this.getItemDetail(this.item_id)}},J={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.item_id?t.$t("update_base_info"):t.$t("create_new_item"),width:"550px",onOK:t.formSubmit}},[i("div",{staticClass:"p-6"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[i("el-radio-group",{model:{value:t.infoForm.item_type,callback:function(e){t.$set(t.infoForm,"item_type",e)},expression:"infoForm.item_type"}},[i("el-radio",{attrs:{label:"1"}},[t._v(t._s(t.$t("regular_item")))]),t._v(" "),i("el-radio",{attrs:{label:"4"}},[t._v(t._s(t.$t("table")))]),t._v(" "),i("el-radio",{attrs:{label:"2"}},[t._v("\n "+t._s(t.$t("single_item"))+"\n "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("single_item_tips"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1)],1)],1),t._v(" "),i("el-row",{staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v("  "+t._s(t.$t("item_name"))+" : ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{type:"text","auto-complete":"off"},model:{value:t.infoForm.item_name,callback:function(e){t.$set(t.infoForm,"item_name",e)},expression:"infoForm.item_name"}})],1)],1),t._v(" "),i("el-row",{staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v(t._s(t.$t("item_description"))+" : ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{type:"text","auto-complete":"off"},model:{value:t.infoForm.item_description,callback:function(e){t.$set(t.infoForm,"item_description",e)},expression:"infoForm.item_description"}})],1)],1),t._v(" "),i("el-row",{staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v(t._s(t.$t("accessibility"))+" : ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-select",{staticClass:"w-full",attrs:{placeholder:""},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[i("el-option",{attrs:{value:!0,label:t.$t("Open_item")}}),t._v(" "),i("el-option",{attrs:{value:!1,label:t.$t("private_item")}})],1)],1)],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!t.isOpenItem,expression:"!isOpenItem"}],staticClass:"leading-10 mb-4"},[i("el-col",{attrs:{span:6}},[t._v(" ")]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("visit_password")},model:{value:t.infoForm.password,callback:function(e){t.$set(t.infoForm,"password",e)},expression:"infoForm.password"}})],1)],1)],1)])],1)},staticRenderFns:[]};var W=i("VU/8")(G,J,!1,function(t){i("9caj")},"data-v-3f1d9359",null).exports,Y={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{api_key:"",api_token:""}},methods:{},mounted:function(){}},X={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("open_api"),width:"500px",onOK:t.callback}},[i("div",{staticClass:"ml-8"},[i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips1"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips2"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips3"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips4"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips5"))}})])])])],1)},staticRenderFns:[]};var Q=i("VU/8")(Y,X,!1,function(t){i("mFjg")},"data-v-4431724e",null).exports,Z={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{api_key:"",api_token:"",upload_url:DocConfig.server+"/api/import/auto",loading:"",user_token:""}},methods:{success:function(t){this.loading.close(),0===t.error_code?this.callback():this.$alert(t.error_message)},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){var t=v();this.user_token=t.user_token}},tt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("import_file"),width:"450px",onOK:t.callback}},[i("p",{staticClass:"tips"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips1"))}})]),t._v(" "),i("p",{staticClass:"text-center"},[i("el-upload",{staticClass:"upload-demo",attrs:{data:{user_token:t.user_token},drag:"",name:"file",action:t.upload_url,"on-success":t.success,"before-upload":t.beforeUpload,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1)])],1)},staticRenderFns:[]};var et=i("VU/8")(Z,tt,!1,function(t){i("/4UI")},"data-v-6ce16a76",null).exports,it={name:"SDropdown",props:{width:{type:String,required:!1,default:"300px"},title:{type:String,required:!1,default:""},titleIcon:{type:String,required:!1,default:"el-icon-s-platform"},placement:{type:String,required:!1,default:"bottom-start"},menuList:{type:Array,required:!1,default:[]},menuListGroup:{type:Array,required:!1,default:[]}},data:function(){return{showPopover:!1}},methods:{}},at={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-popover",{attrs:{placement:t.placement,trigger:"hover"},model:{value:t.showPopover,callback:function(e){t.showPopover=e},expression:"showPopover"}},[i("div",{staticClass:"more-card",style:{width:t.width}},[i("div",{staticClass:"more-card-header"},[i("i",{class:t.titleIcon+" mr-3"}),i("span",[t._v(t._s(t.title))]),t._v(" "),i("i",{staticClass:"close-btn fas fa-close",on:{click:function(e){t.showPopover=!1}}})]),t._v(" "),t._l(t.menuListGroup,function(e){return t.menuListGroup?[i("div",{staticClass:"group-bar"},[t._v(t._s(e.group_name))]),t._v(" "),t._l(e.listMenu,function(e){return i("div",{staticClass:"more-card-item",on:{click:e.method}},[i("div",{staticClass:"more-card-item-left"},[i("div",{staticClass:"more-card-item-icon"},[i("i",{class:e.icon})])]),t._v(" "),i("div",{staticClass:"more-card-item-right"},[i("div",{staticClass:"right-div"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"desc"},[t._v("\n "+t._s(e.desc)+"\n ")])])])])})]:t._e()}),t._v(" "),t._l(t.menuList,function(e){return t.menuList?[i("div",{staticClass:"more-card-item",on:{click:e.method}},[i("div",{staticClass:"more-card-item-left"},[i("div",{staticClass:"more-card-item-icon"},[i("i",{class:e.icon})])]),t._v(" "),i("div",{staticClass:"more-card-item-right"},[i("div",{staticClass:"right-div"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"desc"},[t._v("\n "+t._s(e.desc)+"\n ")])])])])]:t._e()})],2),t._v(" "),i("div",{attrs:{slot:"reference"},slot:"reference"},[t._t("default")],2)])},staticRenderFns:[]};var nt=i("VU/8")(it,at,!1,function(t){i("dR3X")},"data-v-0c4682f6",null).exports,ot={name:"Login",components:{Basic:W,OpenApi:Q,Import:et,SDropdown:nt},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{showBasic:!1,showImportFile:!1,defaultItemType:"1",showOpenApi:!1,showPopover:!1,menuListGroup:[]}},methods:{regularItem:function(){this.defaultItemType="1",this.showBasic=!0},singleItem:function(){this.defaultItemType="2",this.showBasic=!0},tableItem:function(){this.defaultItemType="4",this.showBasic=!0},importFile:function(){this.showImportFile=!0},autoCreate:function(){this.showOpenApi=!0}},mounted:function(){this.menuListGroup=[{group_name:this.$t("create"),listMenu:[{title:this.$t("regular_item"),icon:"fas fa-notes",desc:this.$t("regular_item_desc"),method:this.regularItem},{title:this.$t("single_item"),icon:"fas fa-file",desc:this.$t("single_item_desc"),method:this.singleItem},{title:this.$t("table_item"),icon:"fas fa-table",desc:this.$t("table_item_desc"),method:this.tableItem}]},{group_name:this.$t("import"),listMenu:[{title:this.$t("import_file"),icon:"fas fa-upload",desc:this.$t("import_file_desc"),method:this.importFile},{title:this.$t("auto_create"),icon:"fas fa-terminal",desc:this.$t("auto_create_desc"),method:this.autoCreate}]}]},beforeDestroy:function(){}},st={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"create-item-btn-div"},[i("div",{staticClass:"left"},[i("div",{staticClass:"create-item-left-btn",on:{click:t.regularItem}},[i("i",{staticClass:"mr-3 fas fa-plus"}),t._v(" "),i("span",[t._v(t._s(t.$t("create_new_item")))])])]),t._v(" "),i("div",{staticClass:"right"},[i("SDropdown",{attrs:{title:t.$t("create_new_item"),titleIcon:"fas fa-plus",menuListGroup:t.menuListGroup,placement:"top-start"}},[i("div",{staticClass:"create-item-right-btn"},[i("i",{staticClass:"fas fa-ellipsis"})])])],1),t._v(" "),t.showBasic?i("Basic",{attrs:{callback:function(){t.showBasic=!1,t.callback()},defaultItemType:t.defaultItemType}}):t._e(),t._v(" "),t.showImportFile?i("Import",{attrs:{callback:function(){t.showImportFile=!1,t.callback()}}}):t._e(),t._v(" "),t.showOpenApi?i("OpenApi",{attrs:{callback:function(){t.showOpenApi=!1,t.callback()}}}):t._e()],1)},staticRenderFns:[]};var rt=i("VU/8")(ot,st,!1,function(t){i("VlEL")},"data-v-249d8bdc",null).exports,lt={components:{},props:{callback:{type:Function,required:!1,default:function(){}},team_id:{type:Number,required:!1,default:0},team_manage:{type:Number||String,required:!1,default:1}},data:function(){return{MyForm:{item_id:""},list:[],dialogFormVisible:!1,itemList:[],teamItemMembers:[],dialogFormTeamMemberVisible:!1,authorityOptions:[{label:this.$t("edit_member"),value:"1"},{label:this.$t("readonly_member"),value:"0"},{label:this.$t("item_admin"),value:"2"}],catalogs:[]}},methods:{geList:function(){var t=this;this.request("/api/teamItem/getListByTeam",{team_id:this.team_id}).then(function(e){t.list=e.data})},getItemList:function(){var t=this;this.request("/api/item/myList",{original:1}).then(function(e){t.itemList=e.data})},myFormSubmit:function(){var t=this;this.request("/api/teamItem/save",{team_id:this.team_id,item_id:this.MyForm.item_id}).then(function(e){t.dialogFormVisible=!1,t.geList(),t.MyForm={}})},deleteTeamItem:function(t){var e=this;this.$confirm(this.$t("confirm_unassign")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/teamItem/delete",{id:t}).then(function(t){e.geList()})})},addTeamItem:function(){this.MyForm=[],this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})},getTeamItemMember:function(t){var e=this;this.dialogFormTeamMemberVisible=!0,this.getCatalog(t),this.request("/api/teamItemMember/getList",{item_id:t,team_id:this.team_id}).then(function(t){e.teamItemMembers=t.data})},changeTeamItemMemberGroup:function(t,e){var i=this,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.request("/api/teamItemMember/save",{member_group_id:t,id:e}).then(function(t){a&&i.$message(i.$t("auth_success"))})},changeTeamItemMemberCat:function(t,e){var i=this;this.request("/api/teamItemMember/save",{id:e,cat_id:t}).then(function(t){i.$message(i.$t("cat_success"))})},getCatalog:function(t){var e=this;this.request("/api/catalog/catListGroup",{item_id:t}).then(function(t){var i=t.data;i.unshift({cat_id:"0",cat_name:e.$t("all_cat")}),e.catalogs=i})},setAllMemberRead:function(){var t=this;this.teamItemMembers.forEach(function(e){t.changeTeamItemMemberGroup(0,e.id,!1),setTimeout(function(){t.getTeamItemMember(e.item_id)},500)})}},mounted:function(){this.geList(),this.getItemList()}},ct={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("SDialog",{attrs:{title:t.$t("item_manage"),btn1Text:t.team_manage?t.$t("binding_item"):"",btn1Icon:"el-icon-plus",btn1Medthod:t.addTeamItem,onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"40%"}},[i("div",[i("el-table",{attrs:{align:"left",data:t.list,"empty-text":t.$t("empty_team_item_tips")}},[i("el-table-column",{attrs:{prop:"item_name",label:t.$t("item_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("Join_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",width:"210",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("router-link",{attrs:{to:"/"+e.row.item_id,target:"_blank"}},[t._v(t._s(t.$t("check_item")))]),t._v(" "),t.team_manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.getTeamItemMember(e.row.item_id)}}},[t._v(t._s(t.$t("member_authority")))]):t._e(),t._v(" "),t.team_manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTeamItem(e.row.id)}}},[t._v(t._s(t.$t("unassign")))]):t._e()]}}])})],1)],1)]),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("item"),onCancel:function(){t.dialogFormVisible=!1},showCancel:!1,onOK:t.myFormSubmit,width:"300px"}},[i("el-form",[i("el-select",{attrs:{multiple:"",filterable:"",placeholder:t.$t("please_choose")},model:{value:t.MyForm.item_id,callback:function(e){t.$set(t.MyForm,"item_id",e)},expression:"MyForm.item_id"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("br"),t._v(" "),i("router-link",{attrs:{to:"/item/index",target:"_blank"}},[t._v(t._s(t.$t("go_to_new_an_item")))])],1):t._e(),t._v(" "),t.dialogFormTeamMemberVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormTeamMemberVisible=!1},showCancel:!1,onOK:function(){t.dialogFormTeamMemberVisible=!1},top:"10vh",title:t.$t("adjust_member_authority"),width:"600px"}},[i("p",[i("el-button",{attrs:{type:"text"},on:{click:t.setAllMemberRead}},[t._v(" "+t._s(t.$t("all_member_read")))])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":t.$t("team_member_empty_tips"),data:t.teamItemMembers}},[i("el-table-column",{attrs:{prop:"member_username",label:t.$t("username")}}),t._v(" "),i("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberGroup(i,e.row.id)}},model:{value:e.row.member_group_id,callback:function(i){t.$set(e.row,"member_group_id",i)},expression:"scope.row.member_group_id"}},t._l(t.authorityOptions,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)]}}],null,!1,3630509590)}),t._v(" "),i("el-table-column",{attrs:{prop:"cat_id",label:t.$t("catalog"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.member_group_id<=1?i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberCat(i,e.row.id)}},model:{value:e.row.cat_id,callback:function(i){t.$set(e.row,"cat_id",i)},expression:"scope.row.cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1):t._e()]}}],null,!1,2162764861)}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}})],1),t._v(" "),i("br"),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("team_member_authority_tips")))])],1):t._e()],1)},staticRenderFns:[]};var mt=i("VU/8")(lt,ct,!1,function(t){i("f6dU"),i("intr")},"data-v-3abc3d56",null).exports,dt={components:{},props:{callback:{type:Function,required:!1,default:function(){}},team_id:{type:Number,required:!1,default:0},team_manage:{type:Number||String,required:!1,default:1}},data:function(){return{MyForm:{},list:[],dialogFormVisible:!1,myAllList:[],memberOptions:[]}},methods:{geList:function(){var t=this;this.request("/api/teamMember/getList",{team_id:this.team_id}).then(function(e){t.list=e.data})},reSetMyForm:function(){this.MyForm={id:"",member_username:"",team_member_group_id:"1"}},myFormSubmit:function(){var t=this;this.request("/api/teamMember/save",{team_id:this.team_id,member_username:this.MyForm.member_username,team_member_group_id:this.MyForm.team_member_group_id},"post",!1).then(function(e){0===e.error_code?(t.dialogFormVisible=!1,t.geList(),t.reSetMyForm()):10310===e.error_code?t.$alert('你添加的协作成员数量超出限制(所有团队成员以及所有项目的单独成员加起来后去重,就是协作成员数)。你可以开通高级版以获取更多配额。点此查看不同账户类型的额度限制差异,也可以点此去升级账户类型
如果你现在不方便处理,你可以等会再自行回到项目列表页,点击右上角的用户中心去升级。',{dangerouslyUseHTMLString:!0}):t.$alert(e.error_message)})},deleteTeamMember:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/teamMember/delete",{id:t}).then(function(t){e.geList()})})},addTeamMember:function(){this.reSetMyForm(),this.dialogFormVisible=!0},goback:function(){this.$router.push({path:"/team/index"})},getMyAllList:function(){var t=this;this.request("/api/member/getMyAllList",{}).then(function(e){t.myAllList=e.data})},dropdownCallback:function(t){this.MyForm.member_username=t},getAllUser:function(){var t=this;this.request("/api/user/allUser",{username:""}).then(function(e){for(var i=e.data,a=[],n=0;n0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.edit(e.row)}}},[t._v(t._s(t.$t("edit")))]):t._e(),t._v(" "),e.row.team_manage>0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.attornDialog(e.row)}}},[t._v(t._s(t.$t("attorn")))]):t._e(),t._v(" "),e.row.team_manage>0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTeam(e.row.id)}}},[t._v(t._s(t.$t("delete")))]):t._e(),t._v(" "),e.row.team_manage<=0?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.exitTeam(e.row.id)}}},[t._v(t._s(t.$t("team_exit")))]):t._e()]}}])})],1)],1)]),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormVisible=!1},onOK:t.myFormSubmit,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("team_name")+":"}},[i("el-input",{model:{value:t.MyForm.team_name,callback:function(e){t.$set(t.MyForm,"team_name",e)},expression:"MyForm.team_name"}})],1)],1)],1):t._e(),t._v(" "),t.dialogAttornVisible?i("SDialog",{attrs:{title:t.$t("attorn"),onCancel:function(){t.dialogAttornVisible=!1},onOK:t.attorn,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("attorn_username"),"auto-complete":"new-password"},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password","auto-complete":"new-password",placeholder:t.$t("input_login_password")},model:{value:t.attornForm.password,callback:function(e){t.$set(t.attornForm,"password",e)},expression:"attornForm.password"}})],1)],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v("\n "+t._s(t.$t("attornTeamTips"))+"\n ")])],1):t._e(),t._v(" "),t.dialogItemVisible?i("ItemCom",{attrs:{team_id:t.currentOperationRow.id,team_manage:t.currentOperationRow.team_manage,callback:function(){t.dialogItemVisible=!1,t.geList()}}}):t._e(),t._v(" "),t.dialogMemberVisible?i("MemberCom",{attrs:{team_id:t.currentOperationRow.id,team_manage:t.currentOperationRow.team_manage,callback:function(){t.dialogMemberVisible=!1,t.geList()}}}):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var ft=i("VU/8")(pt,ht,!1,function(t){i("+9lI"),i("75Ik")},"data-v-43b0e000",null).exports,gt={name:"",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{page:1,count:5,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0,used_flow:0,uploadUrl:DocConfig.server+"/api/page/upload",dialogFormVisible:!1,loading:"",user_token:""}},methods:{getList:function(){var t=this;this.request("/api/attachment/getMyList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(e){var i=e.data;t.dataList=i.list,t.total=parseInt(i.total),t.used=i.used_m,t.used_flow=i.used_flow_m})},handleCurrentChange:function(t){this.page=t,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(t){window.open(t.url)},deleteRow:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/attachment/deleteMyAttachment",{file_id:t.file_id}).then(function(t){e.$message.success(e.$t("op_success")),e.getList()})})},goback:function(){this.$router.push({path:"/item/index"})},uploadCallback:function(t){this.loading.close(),t.error_message&&this.$alert(t.error_message),this.dialogFormVisible=!1,this.getList()},copy:function(t){var e=this;this.$copyText(t.url).then(function(t){e.$message.success(e.$t("copy_success"))})},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){this.getList();var t=v();this.user_token=t.user_token},beforeDestroy:function(){}},vt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("SDialog",{attrs:{title:t.$t("my_attachment"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,top:"10vh",width:"60%"}},[i("div",[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("display_name")},model:{value:t.display_name,callback:function(e){t.display_name=e},expression:"display_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-select",{attrs:{placeholder:""},model:{value:t.attachment_type,callback:function(e){t.attachment_type=e},expression:"attachment_type"}},[i("el-option",{attrs:{label:t.$t("all_attachment_type"),value:"-1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("image"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("general_attachment"),value:"2"}})],1)],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){t.dialogFormVisible=!0}}},[t._v(t._s(t.$t("upload")))])],1)],1),t._v(" "),i("P",[t._v(t._s(t.$t("accumulated_used_sapce"))+" "+t._s(t.used)+"M ,\n "+t._s(t.$t("month_flow"))+" "+t._s(t.used_flow)+"M")]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList}},[i("el-table-column",{attrs:{prop:"file_id",label:t.$t("file_id")}}),t._v(" "),i("el-table-column",{attrs:{prop:"display_name",label:t.$t("display_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_type",label:t.$t("file_type"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_size_m",label:t.$t("file_size_m"),width:"80"}}),t._v(" "),i("el-table-column",{attrs:{prop:"visit_times",label:t.$t("visit_times")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"100"}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.operation},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.visit(e.row)}}},[t._v(t._s(t.$t("visit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.copy(e.row)}}},[t._v(t._s(t.$t("copy_link")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteRow(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)]),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("upload"),onCancel:function(){t.dialogFormVisible=!1},onOK:function(){t.dialogFormVisible=!1},width:"400px"}},[i("p",[i("el-upload",{attrs:{data:{user_token:t.user_token},drag:"",name:"file",action:t.uploadUrl,"before-upload":t.beforeUpload,"on-success":t.uploadCallback,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1)]):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var bt=i("VU/8")(gt,vt,!1,function(t){i("voUU")},"data-v-4d393d66",null).exports,wt={name:"",components:{},props:{callback:{type:Function,required:!1,default:function(){}}},data:function(){return{page:1,count:5,total:0,announcementList:[],remindList:[],dtab:"remindList"}},methods:{getAnnouncementList:function(){var t=this;this.request("/api/message/getAnnouncementList",{}).then(function(e){var i=e.data;t.announcementList=i,i.map(function(e){t.setRead(e.from_uid,e.message_content_id)})})},getRemindList:function(){var t=this;this.request("/api/message/getRemindList",{page:this.page,count:this.count}).then(function(e){var i=e.data.list;t.total=e.data.total,t.remindList=[],i.map(function(e){t.remindList.push(e),t.setRead(e.from_uid,e.message_content_id)})})},setRead:function(t,e){e&&this.request("/api/message/setRead",{message_content_id:e,from_uid:t}).then(function(t){})},goback:function(){this.$router.push({path:"/item/index"})},visit:function(t){window.open(t)},tabClick:function(t){t.name},visitPage:function(t,e){var i=this.$router.resolve({path:"/"+t+"/"+e});window.open(i.href,"_blank")},handleCurrentChange:function(t){this.page=t,this.getRemindList()},getUnread:function(){var t=this;this.request("/api/message/getUnread",{},"post",!1).then(function(e){var i=e.data;i.remind&&i.remind.id,i.announce&&i.announce.id&&(t.$route.query.dtab||(t.dtab="announcementList"))})}},mounted:function(){this.getRemindList(),this.getAnnouncementList(),this.$route.query.dtab&&(this.dtab=this.$route.query.dtab),this.getUnread()},beforeDestroy:function(){}},yt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("SDialog",{attrs:{title:t.$t("my_notice"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,top:"10vh"}},[i("div",[i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.tabClick},model:{value:t.dtab,callback:function(e){t.dtab=e},expression:"dtab"}},[i("el-tab-pane",{attrs:{label:t.$t("system_reminder"),name:"remindList"}},[i("el-table",{attrs:{data:t.remindList}},[i("el-table-column",{attrs:{prop:"addtime",label:t.$t("send_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"message_content",label:t.$t("content")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",["create"!=e.row.action_type&&"update"!=e.row.action_type||"page"!=e.row.object_type?t._e():i("div",[i("div",[t._v("\n "+t._s(e.row.from_name)+" "+t._s(t.$t("update_the_page"))+"\n "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.visitPage(e.row.page_data.item_id,e.row.page_data.page_id)}}},[t._v(t._s(e.row.page_data.page_title))]),t._v(" "),0==e.row.status?i("el-badge",{staticClass:"mark",attrs:{value:"new"}}):t._e()],1),t._v(" "),e.row.message_content?i("div",[t._v("\n "+t._s(t.$t("update_remark"))+":\n "),i("span",[t._v(t._s(e.row.message_content))])]):t._e()]),t._v(" "),"vip"==e.row.object_type?i("div",[t._v("\n 你在showdoc购买的付费版资格很快过期了,你可以"),i("a",{attrs:{href:"/user/setting",target:"_blank"}},[t._v("点此进入用户中心")]),t._v("进行续费 (如已续费请忽略该通知)\n "),0==e.row.status?i("el-badge",{staticClass:"mark",attrs:{value:"new"}}):t._e()],1):t._e()])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("system_announcement"),name:"announcementList"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.announcementList}},[i("el-table-column",{attrs:{prop:"addtime",label:t.$t("send_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"message_content",label:t.$t("content")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{domProps:{innerHTML:t._s(e.row.message_content)}}),t._v(" "),0==e.row.status?i("el-badge",{staticClass:"mark",attrs:{value:"new"}}):t._e()]}}])})],1)],1)],1)],1)]),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var kt=i("VU/8")(wt,yt,!1,function(t){i("VJJ0")},"data-v-3c88af2a",null).exports,$t=i("Xxa5"),Ct=i.n($t),xt=i("exGp"),It=i.n(xt),St={name:"Feedback",props:{callback:""},data:function(){return{msg:"反馈"}},methods:{toLink:function(){var t=this;return It()(Ct.a.mark(function e(){return Ct.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.toOutLink("https://github.com/star7th/showdoc/issues");case 1:case"end":return e.stop()}},e,t)}))()}}},Ft={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{title:t.$t("feedback"),onCancel:t.callback,onOK:t.toLink,titleIcon:"fas fa-info-circle",okText:"去github开源仓库",width:"450px"}},[i("p",[t._v("你正在使用免费开源版showdoc,如有问题或者建议,请到github提issue:")]),t._v(" "),i("p",[i("a",{attrs:{href:"https://github.com/star7th/showdoc/issues",target:"_blank"}},[t._v("https://github.com/star7th/showdoc/issues")])]),t._v(" "),i("p",[t._v("如果你觉得showdoc好用,不妨给开源项目点一个star。良好的关注度和参与度有助于开源项目的长远发展。")])])],1)},staticRenderFns:[]};var Lt={name:"HeaderRight",components:{Team:ft,Attachment:bt,Message:kt,UserSetting:q,Feedback:i("VU/8")(St,Ft,!1,function(t){i("h3ci")},"data-v-ecfae78c",null).exports,SDropdown:nt},props:{isAdmin:{type:Boolean,required:!1,default:!1}},data:function(){return{msg:"HeaderRight",showTeam:!1,showAttachment:!1,showMessage:!1,showUserSetting:!1,showFeedback:!1,menuList:[]}},methods:{toPath:function(t){this.$router.push({path:t})}},mounted:function(){var t=this;this.menuList=[{title:"RunApi",icon:"fas fa-terminal",desc:"自动生成 API 接口文档",method:function(){t.toOutLink("https://www.showdoc.com.cn/runapi")}},{title:"推送服务",icon:"fas fa-car-side",desc:"从服务器推送消息到手机的工具",method:function(){t.toOutLink("https://push.showdoc.com.cn")}},{title:"返回首页",icon:"fas fa-backward",desc:"回到showdoc官网首页",method:function(){t.$router.push({path:"/"})}}]}},Tt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header-right float-right mt-6 mr-10"},[i("div",[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("feedback"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showFeedback=!0}}},[i("i",{staticClass:"fas fa-headphones"})])]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("my_attachment"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showAttachment=!0}}},[i("i",{staticClass:"fas fa-folder-arrow-up"})])]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("my_notice"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(){t.$store.dispatch("changeNewMsg",0),t.showMessage=!0}}},[i("el-badge",{attrs:{value:t.$store.state.new_msg?"New":""}},[i("i",{staticClass:"fas fa-message"})])],1)]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("team_mamage"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showTeam=!0}}},[i("i",{staticClass:"fas fa-users"})])]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("user_center"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){t.showUserSetting=!0}}},[i("i",{staticClass:"fas fa-user"})])]),t._v(" "),"zh-cn"==t.$lang?i("el-tooltip",{attrs:{effect:"dark",content:"客户端",placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/clients")}}},[i("i",{staticClass:"fas fa-laptop-arrow-down"})])]):t._e(),t._v(" "),t.isAdmin?i("el-tooltip",{attrs:{effect:"dark",content:t.$t("background"),placement:"top"}},[i("div",{staticClass:"icon-item",on:{click:function(e){return t.toPath("/admin/index")}}},[i("i",{staticClass:"fas fa-gear"})])]):t._e(),t._v(" "),"zh-cn"==t.$lang?i("div",{staticClass:"inline"},[i("SDropdown",{attrs:{title:"更多产品功能",titleIcon:"fas fa-ellipsis",menuList:t.menuList,width:"270px"}},[i("div",{staticClass:"icon-item"},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"fas fa-ellipsis"})])])])],1):t._e()],1),t._v(" "),t.showTeam?i("Team",{attrs:{callback:function(){t.showTeam=!1}}}):t._e(),t._v(" "),t.showAttachment?i("Attachment",{attrs:{callback:function(){t.showAttachment=!1}}}):t._e(),t._v(" "),t.showMessage?i("Message",{attrs:{callback:function(){t.showMessage=!1}}}):t._e(),t._v(" "),t.showUserSetting?i("UserSetting",{attrs:{callback:function(){t.showUserSetting=!1}}}):t._e(),t._v(" "),t.showFeedback?i("Feedback",{attrs:{callback:function(){t.showFeedback=!1}}}):t._e()],1)},staticRenderFns:[]};var Mt=i("VU/8")(Lt,Tt,!1,function(t){i("bOhL")},"data-v-be2d57d8",null).exports,qt=i("Dd8w"),Ot=i.n(qt),Pt={name:"",components:{TextHighlight:i("CyOM").a},props:{keyword:"",itemList:[]},data:function(){return{showLoading:!1,queries:[],itemResultList:[]}},watch:{keyword:function(t){this.queries=[],this.queries.push(this.keyword),this.itemResultList=[],this.searchItems()}},methods:{searchItems:function(){var t=this;return It()(Ct.a.mark(function e(){var i,a,n,o,s,r,l;return Ct.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.showLoading=!0,i=0;case 2:if(!(i-1&&(n=1),e.next=10,t.request("/api/item/search",{keyword:t.keyword,item_id:a.item_id});case 10:r=e.sent,(l=r.data)&&l.pages&&l.pages.length>0&&(o=1,s=l.pages),(n||o)&&t.itemResultList.push(Ot()({},a,{pages:s}));case 14:i++,e.next=2;break;case 17:t.showLoading=!1;case 18:case"end":return e.stop()}},e,t)}))()},toOneItem:function(t){var e="/"+(t.item_domain?t.item_domain:t.item_id),i=this.$router.resolve({path:e});window.open(i.href,"_blank")},toOnePage:function(t){var e="/"+t.item_id+"/"+t.page_id,i=this.$router.resolve({path:e});window.open(i.href,"_blank")}},mounted:function(){this.queries=[],this.queries.push(this.keyword),this.searchItems()},beforeDestroy:function(){}},Dt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("div",{staticClass:"item-list"},t._l(t.itemResultList,function(e){return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:e.item_id,staticClass:"item-list-one"},[i("div",{staticClass:"item-title",on:{click:function(i){return t.toOneItem(e)}}},[i("div",{staticClass:"left float-left"},[i("i",{staticClass:"item-icon el-icon-document"}),t._v(" "),i("text-highlight",{attrs:{queries:t.queries}},[t._v(t._s(e.item_name))])],1)]),t._v(" "),i("div",{staticClass:"item-page-content"},t._l(e.pages,function(e){return i("div",{key:e.page_id},[i("div",{staticClass:"page-title",on:{click:function(i){return t.toOnePage(e)}}},[i("i",{staticClass:"item-icon el-icon-document"}),t._v(" "),i("text-highlight",{attrs:{queries:t.queries}},[t._v(t._s(e.page_title))])],1),t._v(" "),i("div",{staticClass:"search-content break-all"},[i("text-highlight",{attrs:{queries:t.queries}},[t._v(t._s(e.search_content))])],1)])}),0)])}),0),t._v(" "),t._l(t.itemResultList,function(e){return t._e()}),t._v(" "),t.showLoading?i("div",{staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"})]):t._e()],2)},staticRenderFns:[]};var Vt=i("VU/8")(Pt,Dt,!1,function(t){i("Nf2D")},"data-v-c532acbe",null).exports,jt={name:"",components:{Team:ft},props:{callback:function(){},item_id:0},data:function(){return{MyForm:{username:"",cat_id:"",member_group_id:"1"},MyForm2:{team_id:""},members:[],dialogFormVisible:!1,dialogFormTeamVisible:!1,dialogFormTeamMemberVisible:!1,teams:[],teamItems:[],teamItemMembers:[],authorityOptions:[{label:this.$t("edit_member"),value:"1"},{label:this.$t("readonly_member"),value:"0"},{label:this.$t("item_admin"),value:"2"}],catalogs:[],myAllList:[],showTeam:!1,memberOptions:[]}},methods:{getMembers:function(){var t=this;this.request("/api/member/getList",{item_id:this.item_id}).then(function(e){var i=e.data;t.members=i})},getTeams:function(){var t=this;this.request("/api/team/getList",{}).then(function(e){var i=e.data;t.teams=i})},getTeamItem:function(){var t=this;this.request("/api/teamItem/getList",{item_id:this.item_id}).then(function(e){var i=e.data;t.teamItems=i})},getTeamItemMember:function(t){var e=this;this.dialogFormTeamMemberVisible=!0,this.request("/api/teamItemMember/getList",{item_id:this.item_id,team_id:t}).then(function(t){var i=t.data;e.teamItemMembers=i})},myFormSubmit:function(){var t=this;this.request("/api/member/save",{item_id:this.item_id,username:this.MyForm.username,cat_id:this.MyForm.cat_id,member_group_id:this.MyForm.member_group_id},"post",!1).then(function(e){0===e.error_code?(t.dialogFormVisible=!1,t.getMembers(),t.MyForm.username=""):10310===e.error_code?t.$alert('你添加的协作成员数量超出限制(所有团队成员以及所有项目的单独成员加起来后去重,就是协作成员数)。你可以开通高级版以获取更多配额。点此查看不同账户类型的额度限制差异,也可以点此去升级账户类型
如果你现在不方便处理,你可以等会再自行回到项目列表页,点击右上角的用户中心去升级。',{dangerouslyUseHTMLString:!0}):t.$alert(e.error_message)})},addTeam:function(){var t=this;this.request("/api/teamItem/save",{item_id:this.item_id,team_id:this.MyForm2.team_id}).then(function(e){t.dialogFormTeamVisible=!1,t.getTeamItem(),t.MyForm.team_id=""})},deleteMember:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/member/delete",{item_id:e.item_id,item_member_id:t}).then(function(t){e.getMembers()})})},deleteTeam:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/teamItem/delete",{id:t}).then(function(t){e.getTeamItem()})})},changeTeamItemMemberGroup:function(t,e){var i=this;this.request("/api/teamItemMember/save",{member_group_id:t,id:e}).then(function(t){i.$message(i.$t("auth_success"))})},getCatalog:function(){var t=this;this.request("/api/catalog/catListGroup",{item_id:this.item_id}).then(function(e){var i=e.data;i.unshift({cat_id:"0",cat_name:t.$t("all_cat")}),t.catalogs=i})},changeTeamItemMemberCat:function(t,e){var i=this;this.request("/api/teamItemMember/save",{cat_id:t,id:e}).then(function(t){i.$message(i.$t("cat_success"))})},memberGroupText:function(t,e){return"2"==t?this.$t("item_admin"):"1"==t?this.$t("edit")+"/"+this.$t("catalog")+":"+e:this.$t("readonly")+"/"+this.$t("catalog")+":"+e},getMyAllList:function(){var t=this;this.request("/api/member/getMyAllList",{}).then(function(e){t.myAllList=e.data})},dropdownCallback:function(t){this.MyForm.username=t},getAllUser:function(){var t=this;this.request("/api/user/allUser",{username:""}).then(function(e){for(var i=e.data,a=[],n=0;n0?i("h4",[t._v(t._s(t.$t("item_member")))]):t._e(),t._v(" "),t.members.length>0?i("el-table",{staticClass:"mb-8",staticStyle:{width:"100%"},attrs:{align:"left",data:t.members}},[i("el-table-column",{attrs:{prop:"username",label:t.$t("member_username")}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:t.$t("name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.memberGroupText(e.row.member_group_id,e.row.cat_name))+"\n ")]}}],null,!1,2567364919)}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteMember(e.row.item_member_id)}}},[t._v(t._s(t.$t("delete")))])]}}],null,!1,1205408727)})],1):t._e(),t._v(" "),t.teamItems.length>0?i("h4",[t._v(t._s(t.$t("item_team_info")))]):t._e(),t._v(" "),t.teamItems.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{align:"left",data:t.teamItems}},[i("el-table-column",{attrs:{prop:"team_name",label:t.$t("team_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.getTeamItemMember(e.row.team_id)}}},[t._v(t._s(t.$t("member_authority")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTeam(e.row.id)}}},[t._v(t._s(t.$t("delete")))])]}}],null,!1,2799852319)})],1):t._e(),t._v(" "),0==t.members.length&&0==t.teamItems.length?i("p",{staticClass:"v3-color-aux"},[t._v("\n "+t._s(t.$t("no_member_tips"))+"\n ")]):t._e()],1),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormVisible=!1},title:t.$t("add_member"),width:"400px",onOK:function(){t.myFormSubmit()}}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("member_username")+":"}},[i("el-select",{attrs:{multiple:"",filterable:"","reserve-keyword":"",placeholder:""},model:{value:t.MyForm.username,callback:function(e){t.$set(t.MyForm,"username",e)},expression:"MyForm.username"}},t._l(t.memberOptions,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),i("el-form-item",[i("el-radio",{attrs:{label:"1"},model:{value:t.MyForm.member_group_id,callback:function(e){t.$set(t.MyForm,"member_group_id",e)},expression:"MyForm.member_group_id"}},[t._v(t._s(t.$t("edit_member")))]),t._v(" "),i("el-radio",{attrs:{label:"0"},model:{value:t.MyForm.member_group_id,callback:function(e){t.$set(t.MyForm,"member_group_id",e)},expression:"MyForm.member_group_id"}},[t._v(t._s(t.$t("readonly_member")))]),t._v(" "),i("el-radio",{attrs:{label:"2"},model:{value:t.MyForm.member_group_id,callback:function(e){t.$set(t.MyForm,"member_group_id",e)},expression:"MyForm.member_group_id"}},[t._v(t._s(t.$t("item_admin")))])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.MyForm.member_group_id<2,expression:"MyForm.member_group_id < 2"}],attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("all_cat2")},model:{value:t.MyForm.cat_id,callback:function(e){t.$set(t.MyForm,"cat_id",e)},expression:"MyForm.cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1),t._v(" "),i("p",{staticClass:"v3-font-size-sm v3-color-aux"},[t._v("\n "+t._s(t.$t("member_authority_tips"))+"\n ")])],1):t._e(),t._v(" "),t.dialogFormTeamVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormTeamVisible=!1},title:t.$t("member_manage"),width:"400px",onOK:function(){t.addTeam()},btn1Text:t.$t("go_to_new_an_team"),btn1Icon:"el-icon-plus",btn1Medthod:function(){t.showTeam=!0}}},[i("div",[i("el-form",[i("el-form-item",{attrs:{label:t.$t("c_team")}},[i("el-select",{attrs:{filterable:""},model:{value:t.MyForm2.team_id,callback:function(e){t.$set(t.MyForm2,"team_id",e)},expression:"MyForm2.team_id"}},t._l(t.teams,function(t){return i("el-option",{key:t.team_name,attrs:{label:t.team_name,value:t.id}})}),1)],1)],1)],1)]):t._e(),t._v(" "),t.dialogFormTeamMemberVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogFormTeamMemberVisible=!1},title:t.$t("adjust_member_authority"),width:"700px",onOK:function(){t.dialogFormTeamMemberVisible=!1},showCancel:!1}},[i("el-table",{staticStyle:{width:"100%"},attrs:{align:"left","empty-text":t.$t("team_member_empty_tips"),data:t.teamItemMembers}},[i("el-table-column",{attrs:{prop:"member_username",label:t.$t("username")}}),t._v(" "),i("el-table-column",{attrs:{prop:"member_group_id",label:t.$t("authority"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberGroup(i,e.row.id)}},model:{value:e.row.member_group_id,callback:function(i){t.$set(e.row,"member_group_id",i)},expression:"scope.row.member_group_id"}},t._l(t.authorityOptions,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)]}}],null,!1,3630509590)}),t._v(" "),i("el-table-column",{attrs:{prop:"cat_id",label:t.$t("catalog"),width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.member_group_id<=1?i("el-select",{attrs:{size:"mini",placeholder:t.$t("please_choose")},on:{change:function(i){return t.changeTeamItemMemberCat(i,e.row.id)}},model:{value:e.row.cat_id,callback:function(i){t.$set(e.row,"cat_id",i)},expression:"scope.row.cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1):t._e()]}}],null,!1,2162764861)}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time")}})],1),t._v(" "),i("br"),t._v(" "),i("p",{staticClass:"v3-font-size-sm v3-color-aux"},[t._v("\n "+t._s(t.$t("team_member_authority_tips"))+"\n ")])],1):t._e(),t._v(" "),t.showTeam?i("Team",{attrs:{callback:function(){t.getTeams(),t.showTeam=!1}}}):t._e()],1)},staticRenderFns:[]};var Ut=i("VU/8")(jt,At,!1,function(t){i("bRZX")},"data-v-6396624a",null).exports,Et={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("open_api"),width:"500px",onOK:t.callback,showCancel:!1,showOk:!1}},[i("div",{staticClass:"text-center"},[i("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"100px"}},[i("el-form-item",{attrs:{label:"api_key:"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",readonly:!0,placeholder:""},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"api_token"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",readonly:!0,placeholder:""},model:{value:t.api_token,callback:function(e){t.api_token=e},expression:"api_token"}})],1),t._v(" "),i("el-button",{staticStyle:{width:"90%"},on:{click:t.resetKey}},[t._v(t._s(t.$t("reset_token")))])],1),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips1"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips2"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips3"))}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.$t("open_api_tips4"))}})])],1)])],1)},staticRenderFns:[]};var Rt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{api_key:"",api_token:""}},methods:{getKeyInfo:function(){var t=this;this.request("/api/item/getKey",{item_id:this.item_id}).then(function(e){var i=e.data;t.api_key=i.api_key,t.api_token=i.api_token})},resetKey:function(){var t=this;this.request("/api/item/resetKey",{item_id:this.item_id}).then(function(e){t.getKeyInfo()})}},mounted:function(){this.getKeyInfo()}},Et,!1,function(t){i("jom5")},"data-v-47e1d9d3",null).exports,Nt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("recycle"),width:"550px",onOK:t.callback,showCancel:!1,showOk:!1}},[i("p",{staticClass:"v3-font-size-sm v3-color-aux"},[t._v(t._s(t.$t("recycle_tips")))]),t._v(" "),t.lists.length>0?i("el-table",{staticClass:"recycle-table",staticStyle:{width:"100%"},attrs:{align:"left",data:t.lists}},[i("el-table-column",{attrs:{prop:"page_title",label:t.$t("page_title")}}),t._v(" "),i("el-table-column",{attrs:{prop:"del_by_username",label:t.$t("deleter")}}),t._v(" "),i("el-table-column",{attrs:{prop:"del_time",label:t.$t("del_time")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.recover(e.row.page_id)}}},[t._v(t._s(t.$t("recover")))])]}}],null,!1,3035403278)})],1):t._e()],1)],1)},staticRenderFns:[]};var zt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{MyForm:{username:"",is_readonly:!1},MyForm2:{team_id:""},lists:[]}},methods:{getList:function(){var t=this;this.request("/api/recycle/getList",{item_id:this.item_id}).then(function(e){var i=e.data;t.lists=i})},recover:function(t){var e=this;this.$confirm(this.$t("recover_tips")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/recycle/recover",{item_id:e.item_id,page_id:t}).then(function(t){e.getList()})})}},mounted:function(){this.getList()}},Nt,!1,function(t){i("Mxwu")},"data-v-6b90c1a9",null).exports,Ht={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("archive"),onCancel:t.callback,onOK:t.archive,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("input_login_password")},model:{value:t.archiveForm.password,callback:function(e){t.$set(t.archiveForm,"password",e)},expression:"archiveForm.password"}})],1)],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("archive_tips2")))])],1)],1)},staticRenderFns:[]};var Bt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{dialogArchiveVisible:!0,archiveForm:{password:""}}},methods:{archive:function(){var t=this;this.request("/api/item/archive",{item_id:this.item_id,password:this.archiveForm.password}).then(function(e){t.callback()})}},mounted:function(){}},Ht,!1,function(t){i("3H/t")},"data-v-6215d33f",null).exports,Kt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("attorn"),onCancel:t.callback,onOK:t.attorn,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("attorn_username"),"auto-complete":"new-password"},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password","auto-complete":"new-password",placeholder:t.$t("input_login_password")},model:{value:t.attornForm.password,callback:function(e){t.$set(t.attornForm,"password",e)},expression:"attornForm.password"}})],1)],1)],1)],1)},staticRenderFns:[]};var Gt=i("VU/8")({name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{attornForm:{username:"",password:""}}},methods:{attorn:function(){var t=this;this.request("/api/item/attorn",{item_id:this.item_id,username:this.attornForm.username,password:this.attornForm.password}).then(function(e){t.callback()})}},mounted:function(){}},Kt,!1,function(t){i("hYZC")},"data-v-34cd220b",null).exports,Jt={name:"",components:{},props:{callback:function(){},item_id:0},data:function(){return{dialogDeleteVisible:!0,deleteForm:{password:""}}},methods:{deleteItem:function(){var t=this,e=this.$loading();this.request("/api/item/delete",{item_id:this.item_id,password:this.deleteForm.password}).then(function(i){t.callback(),e.close()}),setTimeout(function(){e.close()},5e3)}},mounted:function(){}},Wt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("delete"),onCancel:t.callback,onOK:t.deleteItem,width:"500px"}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("input_login_password")},model:{value:t.deleteForm.password,callback:function(e){t.$set(t.deleteForm,"password",e)},expression:"deleteForm.password"}},[t._v(">")])],1)],1),t._v(" "),i("p",{staticClass:"tips"},[i("el-tag",{attrs:{type:"danger"}},[t._v(t._s(t.$t("delete_tips")))])],1)],1)],1)},staticRenderFns:[]};var Yt=i("VU/8")(Jt,Wt,!1,function(t){i("FVf2")},"data-v-0cb7cd85",null).exports,Xt={name:"",components:{},props:{item_info:"",callback:function(){}},data:function(){return{shareItemLink:""}},methods:{copy:function(){var t=this;return It()(Ct.a.mark(function e(){return Ct.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$copyText(t.shareItemLink);case 2:t.$message(t.$t("copy_success"));case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.shareItemLink=this.getRootPath()+"#/"+(this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id)},beforeDestroy:function(){}},Qt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("share"),width:"450px",onOK:t.copy,okText:"复制分享链接"}},[i("p",[t._v("\n "+t._s(t.$t("item_address"))+" : "),i("code",[t._v(t._s(t.shareItemLink))])])])},staticRenderFns:[]},Zt=i("VU/8")(Xt,Qt,!1,null,null,null).exports,te={name:"Login",components:{},props:{callback:{type:Function,required:!1,default:function(){}},item_id:{type:Number,required:!1,default:"0"}},data:function(){return{infoForm:{},isOpenItem:!0,itemList:{},copy_item_id:"",item_name:"",item_description:"",password:""}},methods:{getItemList:function(){var t=this;this.request("/api/item/myList",{}).then(function(e){var i=e.data;t.itemList=i})},chooseCopyItem:function(t){for(var e=0;e0&&(this.copy_item_id=this.item_id),this.getItemList()}},ee={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("copy_item"),width:"450px",onOK:t.formSubmit}},[i("div",{staticClass:"text-center"},[i("p",{staticClass:"tips"},[t._v(t._s(t.$t("copy_item_tips1")))]),t._v(" "),i("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"10px"},model:{value:t.infoForm,callback:function(e){t.infoForm=e},expression:"infoForm"}},[i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},on:{change:t.chooseCopyItem},model:{value:t.copy_item_id,callback:function(e){t.copy_item_id=e},expression:"copy_item_id"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("copy_item_tips2"),placement:"right"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("copy_item_tips2")},model:{value:t.item_name,callback:function(e){t.item_name=e},expression:"item_name"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-radio",{attrs:{label:!0},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("Open_item")))]),t._v(" "),i("el-radio",{attrs:{label:!1},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("private_item")))])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.isOpenItem,expression:"!isOpenItem"}]},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("visit_password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)],1)])],1)},staticRenderFns:[]};var ie=i("VU/8")(te,ee,!1,function(t){i("UXcT")},"data-v-bf651ce2",null).exports,ae={name:"ItemList",components:{draggable:E.a,ItemUpdate:W,Member:Ut,OpenApi:Rt,Recycle:zt,Archive:Bt,Attorn:Gt,Delete:Yt,Share:Zt,Copy:ie},props:{callback:{type:Function,required:!1,default:function(){}},getItemList:{type:Function,required:!1,default:function(){}},itemList:{type:Array,required:!1,default:[]},itemGroupId:{type:Number,required:!1,default:0}},data:function(){return{loading:!1,showShare:!1,opItemRow:{item_domain:"",item_id:0},showItemUpdate:!1,showMember:!1,showOpenApi:!1,showRecycle:!1,showArchive:!1,showAttorn:!1,showDelete:!1,showCopy:!1}},methods:{toOneItem:function(t){var e="/"+(t.item_domain?t.item_domain:t.item_id);this.$router.push({path:e})},clickStar:function(t){var e=this,i=t.is_star,a=t.item_id;i>0?this.request("/api/item/unstar",{item_id:a}).then(function(t){for(var i=0;i0?i("el-dropdown-item",{nativeOn:{click:function(i){return t.clickStar(e)}}},[i("i",{staticClass:"mr-2 fas fa-star"}),t._v("\n "+t._s(t.$t("unstar_item"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(i){t.opItemRow=e,t.showItemUpdate=!0}}},[i("i",{staticClass:"mr-2 fas fa-edit"}),t._v("\n "+t._s(t.$t("update_base_info"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showMember=!0}}},[i("i",{staticClass:"mr-2 fal fa-users"}),t._v("\n "+t._s(t.$t("member_manage"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showOpenApi=!0}}},[i("i",{staticClass:"mr-2 fas fa-plug"}),t._v("\n "+t._s(t.$t("open_api"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showRecycle=!0}}},[i("i",{staticClass:"mr-2 fas fa-trash"}),t._v("\n "+t._s(t.$t("recycle"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(i){t.opItemRow=e,t.showAttorn=!0}}},[i("i",{staticClass:"mr-2 fas fa-recycle"}),t._v("\n "+t._s(t.$t("attorn"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showCopy=!0}}},[i("i",{staticClass:"mr-2 fas fa-copy"}),t._v("\n "+t._s(t.$t("copy"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showArchive=!0}}},[i("i",{staticClass:"mr-2 far fa-box-archive"}),t._v("\n "+t._s(t.$t("archive"))+"\n ")]):t._e(),t._v(" "),e.manage?i("el-dropdown-item",{nativeOn:{click:function(i){t.opItemRow=e,t.showDelete=!0}}},[i("i",{staticClass:"mr-2 far fa-trash-can"}),t._v("\n "+t._s(t.$t("delete"))+"\n ")]):t._e()],1)],1)],1)]),t._v(" "),i("div",{staticClass:"item-list-one-block-bg"})])}),0),t._v(" "),t.showShare?i("Share",{attrs:{callback:function(){t.showShare=!1},item_info:{item_domain:t.opItemRow.item_domain,item_id:t.opItemRow.item_id}}}):t._e(),t._v(" "),t.showItemUpdate?i("ItemUpdate",{attrs:{callback:function(){t.showItemUpdate=!1,t.getItemList()},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showMember?i("Member",{attrs:{callback:function(){t.showMember=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showOpenApi?i("OpenApi",{attrs:{callback:function(){t.showOpenApi=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showRecycle?i("Recycle",{attrs:{callback:function(){t.showRecycle=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showArchive?i("Archive",{attrs:{callback:function(){t.showArchive=!1},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showAttorn?i("Attorn",{attrs:{callback:function(){t.showAttorn=!1,t.getItemList()},item_id:t.opItemRow.item_id}}):t._e(),t._v(" "),t.showCopy?i("Copy",{attrs:{item_id:t.opItemRow.item_id,callback:function(){t.showCopy=!1,t.getItemList()}}}):t._e(),t._v(" "),t.showDelete?i("Delete",{attrs:{callback:function(){t.showDelete=!1,t.getItemList()},item_id:t.opItemRow.item_id}}):t._e()],1)},staticRenderFns:[]};var oe=i("VU/8")(ae,ne,!1,function(t){i("oUOD")},"data-v-7aaddc9b",null).exports,se={props:{popup:{type:Boolean,required:!1,default:!0}},data:function(){return{intervalId:0,nObj:""}},methods:{getUnread:function(){var t=this;this.request("/api/message/getUnread",{},"post",!1).then(function(e){var i=e.data;if(i.remind&&i.remind.id){if("page"==i.remind.object_type){t.$store.dispatch("changeNewMsg",1);var a=i.remind.from_name+" "+t.$t("update_the_page")+" "+i.remind.page_data.page_title+" , "+t.$t("click_to_view"),n=t.$router.resolve({path:"/message/index",query:{dtab:"remindList"}}).href;t.brownNotify(a,i.remind.from_uid,i.remind.message_content_id,n)}if("vip"==i.remind.object_type){var o=t.$router.resolve({path:"/user/setting"}).href;t.brownNotify("你在showdoc购买的付费版资格很快过期了,你可以点此进入用户中心进行续费(如已续费请忽略该通知)",i.remind.from_uid,i.remind.message_content_id,o)}}if(i.announce&&i.announce.id){t.$store.dispatch("changeNewMsg",1);var s=t.$router.resolve({path:"/message/index",query:{dtab:"announcementList"}}).href;t.brownNotify("你有未读的公告消息,点此查看",i.announce.from_uid,i.announce.message_content_id,s)}})},brownNotify:function(t,e,i,a){var n=this;if(!this.popup)return!1;var o={dir:"auto",body:t,requireInteraction:!0,tag:e+"_"+i};if(window.Notification){var s={};"granted"===Notification.permission?(s=new Notification("showdoc通知",o)).onclick=function(t){window.open(a,"_blank"),n.setRead(e,i),window.focus(),s.close()}:"default"===Notification.permission?(this.webNotify(t,e,i,a),Notification.requestPermission().then(function(t){"granted"===t?(console.log("用户同意授权"),n.nObj&&n.nObj.close&&n.nObj.close(),(s=new Notification("showdoc通知",o)).onclick=function(t){window.open(a,"_blank"),n.setRead(e,i),window.focus(),s.close()}):"default"===t?console.warn("用户关闭授权 未刷新页面之前 可以再次请求授权"):console.log("用户拒绝授权 不能显示通知")})):(console.log("用户曾经拒绝显示通知"),this.webNotify(t,e,i,a))}else console.log("浏览器不支持通知"),this.webNotify(t,e,i,a)},webNotify:function(t,e,i,a){var n=this;this.nObj=this.$notify({message:t,duration:3e4,type:"info",customClass:"cursor-click",onClick:function(t){window.open(a,"_blank"),n.nObj.close()},onClose:function(){n.setRead(e,i)}})},setRead:function(t,e){var i=this;this.$store.dispatch("changeNewMsg",0),setTimeout(function(){i.request("/api/message/setRead",{from_uid:t,message_content_id:e})},2e3)}},mounted:function(){var t=this;setTimeout(function(){t.getUnread()},2e3),this.intervalId=setInterval(function(){t.getUnread()},3e5)},destroyed:function(){clearInterval(this.intervalId)}},re={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]};var le=i("VU/8")(se,re,!1,function(t){i("5fie")},"data-v-20068df2",null).exports,ce={components:{draggable:E.a,itemGroupCom:K,HeaderRight:Mt,itemAdd:rt,Search:Vt,ItemListCom:oe,Notify:le},data:function(){return{currentDate:new Date,itemList:[],isAdmin:!1,keyword:"",username:"",showSearch:!1,itemGroupId:"",itemGroupList:[],loading:!1,showItemGroupCom:!1}},computed:{selectedGroupName:function(){if(this.keyword)return"en"==this.$lang?'Search results with "'+this.keyword+'"':'含有"'+this.keyword+'"的搜索结果';if(0===this.itemGroupId)return this.$t("all_items");if(-1===this.itemGroupId)return this.$t("star_items");for(var t=0;t-1?t.v_code_img=DocConfig.server+"/api/common/showCaptcha&captcha_id="+i.captcha_id+"&"+Date.parse(new Date):t.v_code_img=DocConfig.server+"/api/common/showCaptcha?captcha_id="+i.captcha_id+"&"+Date.parse(new Date),t.captchaId=i.captcha_id})}},mounted:function(){this.changeVcodeImg()},beforeDestroy:function(){}},ue={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("el-container",[i("el-card",{staticClass:"center-card",attrs:{onkeydown:"if(event.keyCode==13)return false;"}},[i("el-form",{staticClass:"demo-ruleForm",attrs:{"status-icon":"","label-width":"0px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSubmit(e)}}},[i("h2",[t._v(t._s(t.$t("input_visit_password")))]),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("verification_code")},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),t._v(" "),i("img",{staticClass:"v_code_img",attrs:{src:t.v_code_img},on:{click:t.changeVcodeImg}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("submit")))])],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("router-link",{attrs:{to:"/user/login"}},[t._v(t._s(t.$t("login")))]),t._v("   \n ")],1)],1)],1)],1),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var pe=i("VU/8")(_e,ue,!1,function(t){i("OGYI")},"data-v-04d8672a",null).exports,he={render:function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"fade"}},[e("div",{staticClass:"img-view",on:{click:this.bigImg}},[e("div",{staticClass:"img-layer"}),this._v(" "),e("div",{staticClass:"img"},[e("img",{attrs:{src:this.imgSrc}})])])])},staticRenderFns:[]};var fe=i("VU/8")({props:["imgSrc"],methods:{bigImg:function(){this.$emit("clickit")}}},he,!1,function(t){i("/BJT")},"data-v-8b8ced44",null).exports;if("undefined"!=typeof window)var ge=i("zhAq");var ve={name:"Editor",props:{width:"",content:{type:String,default:"###初始化成功"},type:{type:String,default:"editor"},keyword:{type:String,default:""},id:{type:String,default:"editor-md"},editorPath:{type:String,default:"static/editor.md"},editorConfig:{type:Object,default:function(){var t=this;return{path:"static/editor.md/lib/",height:750,taskList:!0,atLink:!1,emailLink:!1,tex:!0,flowChart:!0,sequenceDiagram:!0,syncScrolling:"single",htmlDecode:"style,script,iframe|filterXSS",imageUpload:!0,imageFormats:["jpg","jpeg","gif","png","bmp","webp","JPG","JPEG","GIF","PNG","BMP","WEBP"],imageUploadURL:"",onload:function(){console.log("onload")},toolbarIcons:function(){return["undo","redo","|","bold","del","italic","quote","|","toc","mindmap","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","center","|","link","reference-link","image","video","code","code-block","table","datetime","html-entities","pagebreak","|","watch","fullscreen","clear","search","|","help"]},toolbarIconsClass:{toc:"fa-bars ",mindmap:"fa-sitemap ",video:"fa-file-video-o",center:"fa-align-center"},toolbarHandlers:{toc:function(t,e,i,a){t.setCursor(0,0),t.replaceSelection("[TOC]\r\n\r\n")},video:function(t,e,i,a){t.replaceSelection('\r\n\r\n'),""===a&&t.setCursor(i.line,i.ch+1)},mindmap:function(t,e,i,a){t.replaceSelection("\n```mindmap\n# 一级\n## 二级分支1\n### 三级分支1\n### 三级分支2\n## 二级分支2\n### 三级分支3\n### 三级分支4\n```\n"),""===a&&t.setCursor(i.line,i.ch+1)},center:function(t,e,i,a){t.replaceSelection("
"+a+"
"),""===a&&t.setCursor(i.line,i.ch+1)}},lang:{toolbar:{toc:"在最开头插入TOC,自动生成标题目录",mindmap:"插入思维导图",video:"插入视频",center:"居中"}},onchange:function(){t.deal_with_content()},previewCodeHighlight:!1}}}},components:{BigImg:fe},data:function(){return{instance:null,showImg:!1,imgSrc:"",user_token:""}},computed:{},mounted:function(){var t=this,e=v();this.user_token=e.user_token,ge([this.editorPath+"/../jquery.min.js",this.editorPath+"/lib/raphael.min.js"],function(){ge([t.editorPath+"/lib/d3@5.min.js",t.editorPath+"/lib/flowchart.min.js"],function(){ge([t.editorPath+"/../xss.min.js",t.editorPath+"/lib/marked.min.js",t.editorPath+"/lib/underscore.min.js",t.editorPath+"/lib/sequence-diagram.min.js",t.editorPath+"/lib/jquery.flowchart.min.js",t.editorPath+"/lib/jquery.mark.min.js",t.editorPath+"/lib/plantuml.js?v=2",t.editorPath+"/lib/view.min.js",t.editorPath+"/lib/transform.min.js"],function(){ge(t.editorPath+"/editormd.js",function(){t.initEditor()})})})})},beforeDestroy:function(){for(var t=1;t<999;t++)window.clearInterval(t)},methods:{initEditor:function(){var t=this;this.$nextTick(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.editormd,i=t.editorConfig;i.markdown=t.content,DocConfig.server.indexOf("?")>-1?i.imageUploadURL=DocConfig.server+"/api/page/uploadImg&user_token="+t.user_token:i.imageUploadURL=DocConfig.server+"/api/page/uploadImg?user_token="+t.user_token,e&&("editor"==t.type?t.instance=e(t.id,i):t.instance=e.markdownToHTML(t.id,i),t.deal_with_content())})},insertValue:function(t){this.instance.insertValue(this.html_decode(t))},getMarkdown:function(){return this.instance.getMarkdown()},editorUnwatch:function(){return this.instance.unwatch()},editorWatch:function(){return this.instance.watch()},setCursorToTop:function(){return this.instance.setCursor({line:0,ch:0})},clear:function(){return this.instance.clear()},draft:function(){var t=this;setInterval(function(){localStorage.page_content=t.getMarkdown()},6e4);var e=localStorage.page_content;e&&e.length>0&&(localStorage.removeItem("page_content"),t.$confirm(t.$t("draft_tips"),"",{showClose:!1}).then(function(){t.clear(),t.insertValue(e),localStorage.removeItem("page_content")}).catch(function(){localStorage.removeItem("page_content")}))},beforeunloadHandler:function(t){return(t=t||window.event)&&(t.returnValue="提示"),"提示"},deal_with_content:function(){var t=this;ge(this.editorPath+"/../highlight/highlight.min.js",function(){hljs.highlightAll()}),$.each($("#"+this.id+" table"),function(){$(this).prop("outerHTML",'
'+$(this).prop("outerHTML")+"
")}),$("#"+this.id+' a[href^="http"]').click(function(){var e=$(this).attr("href"),i=t.parseURL(e);return window.location.hostname==i.hostname&&window.location.pathname==i.pathname?(window.location.href=e,i.hash&&window.location.reload()):window.open(e),!1}),$("#"+this.id+" table tbody tr").each(function(){var t=$(this),e=t.find("td").eq(1).html(),i=t.find("td").eq(2).html();"object"==e||"array[object]"==e||"object"==i||"array[object]"==i?t.css({"background-color":"#F8F8F8"}):t.css("background-color","#fff"),t.hover(function(){t.css("background-color","#F8F8F8")},function(){"object"==e||"array[object]"==e||"object"==i||"array[object]"==i?t.css({"background-color":"#F8F8F8"}):t.css("background-color","#fff")})});var e=$("#"+this.id+" p").width();e=e||722,$("#"+this.id+" table").each(function(t){var i=$(this).get(0).rows.item(0).cells.length,a=Math.floor(e/i)-2;i<=5&&$(this).find("th").css("width",a.toString()+"px")}),$("#"+this.id+" img").click(function(){var e=$(this).attr("src");t.showImg=!0,t.imgSrc=e}),this.keyword&&$("#"+this.id).mark(this.keyword);var i=$("#page_md_content pre");$('复制').prependTo(i),$("#"+this.id).on("click",".btn-pre-copy",function(){t.doCopy(this)})},doCopy:function(t){var e=$(t),i=e.parent();e.text(""),this.$copyText(i.text()).then(e.text("复制成功")),setTimeout(function(){e.text("复制")},1500)},html_decode:function(t){return 0==t.length?"":t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/'/g,"'").replace(/"/g,'"')},parseURL:function(t){var e=document.createElement("a");return e.href=t,{source:t,protocol:e.protocol.replace(":",""),host:e.hostname,hostname:e.hostname,port:e.port,query:e.search,params:function(){for(var t,i={},a=e.search.replace(/^\?/,"").split("&"),n=a.length,o=0;o1e3&&this.$nextTick(function(){setTimeout(function(){$(".markdown-toc").click()},200)})}},destroyed:function(){$(document).off("click",".markdown-toc-list a[href]"),$(document).off("click",".markdown-toc"),$(".markdown-toc").remove()}},ke={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]};var $e=i("VU/8")(ye,ke,!1,function(t){i("VyQB")},null,null).exports,Ce={props:{x:{type:Number,required:!0},y:{type:Number,required:!0},list:{type:Array,required:!0},onCancel:{type:Function,required:!0}},data:function(){return{show:!1,contextmenuRef:null,top:0,left:0,width:0}},computed:{useList:function(){return this.list.filter(function(t){return!t.hidden})}},mounted:function(){var t=this,e=window.innerWidth,i=window.innerHeight,a=this.y,n=this.x;this.$nextTick(function(){t.$refs.contextmenuRef.clientWidth+n>e-5&&(n=e-t.$refs.contextmenuRef.clientWidth-5),t.$refs.contextmenuRef.clientHeight+a>i-5&&(a=i-t.$refs.contextmenuRef.clientHeight-5),t.top=a,t.left=n,t.width=t.$refs.contextmenuRef.clientWidth,setTimeout(function(){t.show=!0})})},methods:{clickHandle:function(t){t.children||(this.closeHandle(),t.onclick&&t.onclick())},closeHandle:function(){var t=this;this.show=!1,setTimeout(function(){t.onCancel()},100)}}},xe={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"contextmenu-modal",class:{show:t.show},on:{click:function(e){return e.stopPropagation(),t.closeHandle(e)},dblclick:function(e){return e.stopPropagation(),t.closeHandle(e)},contextmenu:function(e){return e.stopPropagation(),t.closeHandle(e)}}},[i("div",{ref:"contextmenuRef",staticClass:"container",style:{top:t.top+"px",left:t.left+"px"},on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"column"},t._l(t.useList,function(e,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:a,staticClass:"contextmenu-item bgColor-select",on:{click:function(i){return t.clickHandle(e)},dblclick:function(t){t.stopPropagation()},contextmenu:function(t){t.stopPropagation()}}},[i("div",{staticClass:"line-container text-default"},[i("div",{staticClass:"item-container"},[e.img?i("img",{staticClass:"img",attrs:{src:e.img}}):t._e(),t._v(" "),e.icon?i("div",{staticClass:"icon"},[i("i",{class:e.icon})]):t._e(),t._v(" "),i("div",{staticClass:"text"},[t._v(t._s(e.text))])]),t._v(" "),e.checked?i("div",{staticClass:"checked"}):t._e(),t._v(" "),e.children&&e.children.length?i("div",{staticClass:"arrow text-secondary"},[i("i",{staticClass:"fas fa-angle-right"})]):t._e()])])}),0)])])])},staticRenderFns:[]};var Ie=i("VU/8")(Ce,xe,!1,function(t){i("P5r/")},"data-v-a9ea0d0c",null).exports,Se=i("lHA8"),Fe=i.n(Se),Le=i("c/Tr"),Te=i.n(Le),Me=i("pFYg"),qe=i.n(Me),Oe=i("fZjL"),Pe=i.n(Oe),De={name:"JsonToTable",props:{formLabelWidth:"120px",callback:function(){}},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!0}},methods:{transform:function(){try{var t=JSON.parse(this.content);this.json_table_data="|参数|类型|描述|\n|:-------|:-------|:-------|\n";var e=this.tranJsonDesc(t,[],!0);if(e)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=[],n=[],o=t;try{if(function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Pe()(e).map(function(r){var l=r;if((i||s>2)&&o&&isNaN(o)&&(l=isNaN(r)?o+"."+r:o),n.indexOf(l)>-1)return!1;"object"===qe()(e[r])?(isNaN(r)&&a.push({name:l,type:Array.isArray(e[r])?"array":"object",require:"1",remark:"",value:""}),e[r]&&t(e[r],l,s+1)):a.push({name:l,type:"string",require:"1",remark:"",value:e[r]}),n.push(l)})}(o),a&&a.length>0){var s=function(t){return Te()(new Fe.a(t))};if(e){var r=function(t){var i={};return e.map(function(e){e.name==t&&(i=e)}),i};a=s(a);for(var l=0;l1&&void 0!==arguments[1]&&arguments[1]))try{return"string"==typeof t&&(t=JSON.parse(t)),C()(t,null,2)}catch(e){return t}try{var e=JSON.parse(t);return C()(e)}catch(e){return t}}}},Ve={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("json_to_table"),onCancel:t.callback,onOK:t.transform}},[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("json_to_table_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1):t._e()],1)},staticRenderFns:[]};var je=i("VU/8")(De,Ve,!1,function(t){i("gY2G")},"data-v-2e2f2434",null).exports,Ae={name:"JsonBeautify",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!0}},methods:{transform:function(){var t=this.content;try{var e="\n ``` \n "+C()(JSON.parse(t),null,2)+" \n\n ```\n\n";this.callback(e)}catch(e){this.callback(t)}}}},Ue={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("beautify_json"),onCancel:t.callback,onOK:t.transform}},[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("beautify_json_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1):t._e()],1)},staticRenderFns:[]};var Ee=i("VU/8")(Ae,Ue,!1,function(t){i("5byI")},"data-v-4c3a21f0",null).exports,Re={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("sql_to_markdown_table"),onCancel:t.callback,onOK:t.transform}},[i("el-form",[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:t.$t("sql_to_markdown_table_description"),rows:10},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1)],1):t._e()],1)},staticRenderFns:[]};var Ne=i("VU/8")({name:"SqlToMarkdownTable",props:{formLabelWidth:"120px",callback:""},data:function(){return{content:"",json_table_data:"",dialogFormVisible:!0}},methods:{transform:function(){var t=this;this.request("/api/page/sqlToMarkdownTable",{sql:this.content}).then(function(e){t.callback(e.data.markdown)}),this.dialogFormVisible=!1}}},Re,!1,function(t){i("2Xpv")},"data-v-d221ecb4",null).exports,ze={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("templ_list"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback}},[i("el-tabs",{attrs:{value:"myList",type:"card"}},[i("el-tab-pane",{attrs:{label:t.$t("my_template"),name:"myList"}},[i("el-table",{attrs:{data:t.myList,"empty-text":t.$t("no_my_template_text")}},[i("el-table-column",{attrs:{property:"addtime",label:t.$t("save_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"template_title",label:t.$t("templ_title")}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("operation"),width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.insertTemplate(e.row)}}},[t._v(t._s(t.$t("insert_templ")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.shareToClick(e.row)}}},[t._v(t._s(t.$t("share_to_these_items"))+"("+t._s(e.row.share_item_count)+")")]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteTemplate(e.row)}}},[t._v(t._s(t.$t("delete_templ")))])]}}])})],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("item_template"),name:"itemList"}},[i("el-table",{attrs:{data:t.itemList,"empty-text":t.$t("no_item_template_text")}},[i("el-table-column",{attrs:{property:"created_at",label:t.$t("save_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"username",label:t.$t("sharer")}}),t._v(" "),i("el-table-column",{attrs:{property:"template_title",label:t.$t("templ_title")}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("operation"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.insertTemplate(e.row)}}},[t._v(t._s(t.$t("insert_templ")))])]}}])})],1)],1)],1)],1),t._v(" "),t.dialogItemVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogItemVisible=!1},onOK:t.shareToItem,width:"400px"}},[i("el-form",[i("el-select",{attrs:{filterable:"",multiple:"",placeholder:t.$t("please_choose")},model:{value:t.shareItemId,callback:function(e){t.shareItemId=e},expression:"shareItemId"}},t._l(t.myItemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("share_items_tips")))])],1):t._e()],1)},staticRenderFns:[]};var He=i("VU/8")({props:{callback:function(){},item_id:0,opRow:{}},data:function(){return{myList:[],itemList:[],dialogTableVisible:!0,dialogItemVisible:!1,myItemList:[],shareItemId:[]}},components:{},methods:{getMyList:function(){var t=this;this.request("/api/template/getMyList",{}).then(function(e){var i=e.data;t.myList=i})},getItemList:function(){var t=this;this.request("/api/template/getItemList",{item_id:this.item_id}).then(function(e){var i=e.data;t.itemList=i})},getMyItemList:function(){var t=this;this.request("/api/item/myList",{}).then(function(e){t.myItemList=e.data})},insertTemplate:function(t){this.callback(t.template_content)},deleteTemplate:function(t){var e=this,i=t.id;this.request("/api/template/delete",{id:i}).then(function(t){e.getMyList(),e.getItemList()})},shareToClick:function(t){if(this.getMyItemList(),this.opRow=t,this.dialogItemVisible=!0,this.shareItemId=[],t.share_item_count>0){var e=[];t.share_item.map(function(t){e.push(t.item_id)}),this.shareItemId=e}},shareToItem:function(){var t=this;this.request("/api/template/shareToItem",{template_id:this.opRow.id,item_id:this.shareItemId.join(",")}).then(function(e){t.dialogItemVisible=!1,t.getMyList(),t.getItemList()})}},mounted:function(){this.getMyList(),this.getItemList()}},ze,!1,function(t){i("FuBv"),i("zg0L")},null,null).exports,Be=function(t){return t.replace(/&|<|>|'|'|"/g,function(t){return{"&":"&","<":"<",">":">","'":"'","'":"'",""":'"'}[t]||t})},Ke=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=void 0;t=Be(t);try{i=JSON.parse(t)}catch(t){}if(!i||!i.info||!i.info.url)return t;e&&("get"==i.info.method&&e.query&&e.query[0]&&e.query[0].name&&e.query.map(function(t){i.request.params[i.request.params.mode].unshift(t)}),"get"!=i.info.method&&"json"!=i.request.params.mode&&e.body&&e.body[0]&&e.body[0].name&&e.body.map(function(t){i.request.params[i.request.params.mode].unshift(t)}),e.header&&e.header[0]&&e.header[0].name&&e.header.map(function(t){i.request.headers.unshift(t)})),"get"==i.info.method&&(i.request.query||(i.request.query=i.request.params[i.request.params.mode]),i.request.params[i.request.params.mode]=[]);var a="\n[TOC]\n\n##### 简要描述\n - "+(i.info.description?i.info.description:"无");if(i.info.apiStatus>0){var n="";switch(i.info.apiStatus){case"1":n="开发中";break;case"2":n="测试中";break;case"3":n="已完成";break;case"4":n="需修改";break;case"5":n="已废弃"}a+="\n\n##### 接口状态\n - "+n}if(i.request.query&&i.request.query[0]&&i.request.query[0].name){var o=i.info.url.split("?");i.info.url=o[0]}a+="\n\n##### 请求URL\n\n - ` "+i.info.url+" `\n\n##### 请求方式\n - "+i.info.method+"\n ";var s=i.request.pathVariable;(s&&s[0]&&s[0].name&&(a+="\n##### 路径变量\n\n|变量名|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",s.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")})),i.request.headers&&i.request.headers[0]&&i.request.headers[0].name)&&(a+="\n##### Header\n\n|header|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",i.request.headers.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" | "+(t.remark?t.remark:"无")+" |\n")}));var r=i.request.query;r&&r[0]&&r[0].name&&(a+="\n##### 请求Query参数\n\n|参数名|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",r.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")}));var l=i.request.params[i.request.params.mode];l&&l[0]&&l[0].name&&(a+="\n##### 请求Body参数\n\n|参数名|示例值|必选|类型|说明|\n|:----- |:-----|-----|\n",l.map(function(t){!t.name||t.disable&&t.disable>=1||(a+="|"+t.name+"|"+t.value+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")})),"json"==i.request.params.mode&&l&&(a+="\n##### 请求参数示例\n```\n"+l+"\n```\n\n");var c=i.request.params.jsonDesc;("json"==i.request.params.mode&&c&&c[0]&&c[0].name&&(a+="\n##### 请求json字段说明\n\n|字段名|必选|类型|说明|\n|:----- |:-----|-----|\n",c.map(function(t){t.name&&(a+="|"+t.name+" |"+(t.require>0?"是":"否")+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")})),i.response.responseExample&&(a+="\n##### 成功返回示例\n```\n"+i.response.responseExample+"\n ```\n "),i.response.responseParamsDesc&&i.response.responseParamsDesc[0]&&i.response.responseParamsDesc[0].name)&&(a+="\n##### 成功返回示例的参数说明\n\n|参数名|类型|说明|\n|:----- |:-----|-----|\n",i.response.responseParamsDesc.map(function(t){t.name&&(a+="|"+t.name+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")}));(i.response.responseFailExample&&(a+="\n##### 失败返回示例\n```\n"+i.response.responseFailExample+"\n ```\n "),i.response.responseFailParamsDesc&&i.response.responseFailParamsDesc[0]&&i.response.responseFailParamsDesc[0].name)&&(a+="\n##### 失败返回示例的参数说明\n\n|参数名|类型|说明|\n|:----- |:-----|-----|\n",i.response.responseFailParamsDesc.map(function(t){t.name&&(a+="|"+t.name+" |"+t.type+" |"+(t.remark?t.remark:"无")+" |\n")}));return a+="\n##### 备注\n\n "+i.info.remark+"\n\n"},Ge={props:{callback:"",page_id:"",is_modal:!0,is_show_recover_btn:!0},data:function(){return{currentDate:new Date,content:[],dialogTableVisible:!0}},components:{},methods:{getContent:function(){var t=this,e=this.page_id;this.request("/api/page/history",{page_id:e}).then(function(e){var i=e.data;i.length>0?(t.content=i,t.dialogTableVisible=!0):t.dialogTableVisible=!1})},recover:function(t){this.callback(Be(t.page_content),!0),this.dialogTableVisible=!1},previewDiff:function(t){var e=t.page_history_id,i="#/page/diff/"+(this.page_id?this.page_id:this.$route.params.page_id)+"/"+e;window.open(i)},editComments:function(t){var e=this,i=this.page_id?this.page_id:this.$route.params.page_id;this.$prompt(""," ",{}).then(function(a){e.request("/api/page/updateHistoryComments",{page_id:i,page_history_id:t.page_history_id,page_comments:a.value}).then(function(){e.getContent()})})}},mounted:function(){this.getContent()}},Je={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("history_version"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback}},[i("el-table",{attrs:{data:t.content}},[i("el-table-column",{attrs:{property:"addtime",label:t.$t("update_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"author_username",label:t.$t("update_by_who")}}),t._v(" "),i("el-table-column",{attrs:{property:"page_comments",label:t.$t("remark")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.page_comments)+"\n "),t.is_show_recover_btn?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.editComments(e.row)}}},[t._v(t._s(t.$t("edit")))]):t._e()]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.previewDiff(e.row)}}},[t._v(t._s(t.$t("overview")))]),t._v(" "),t.is_show_recover_btn?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.recover(e.row)}}},[t._v(t._s(t.$t("recover_to_this_version")))]):t._e()]}}])})],1)],1)],1)},staticRenderFns:[]};var We=i("VU/8")(Ge,Je,!1,function(t){i("xPZZ")},null,null).exports,Ye={props:{callback:"",page_id:"",item_id:"",manage:!0},data:function(){return{page:1,count:5,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0,used_flow:0,uploadUrl:DocConfig.server+"/api/page/upload",loading:"",user_token:""}},components:{},computed:{uploadData:function(){return{page_id:this.page_id,item_id:this.item_id}}},methods:{getList:function(){var t=this;this.request("/api/attachment/getMyList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(e){var i=e.data;t.dataList=i.list,t.total=parseInt(i.total),t.used=i.used_m,t.used_flow=i.used_flow_m})},handleCurrentChange:function(t){this.page=t,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(t){window.open(t.url)},deleteRow:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/attachment/deleteMyAttachment",{file_id:t.file_id}).then(function(t){e.$message.success(e.$t("op_success")),e.getList()})})},uploadCallback:function(t){this.loading.close(),t.error_message&&this.$alert(t.error_message),this.$refs.uploadFile.clearFiles(),this.getList()},select:function(t){var e=this;this.request("/api/attachment/bindingPage",{file_id:t.file_id,page_id:this.page_id}).then(function(t){e.dialogTableVisible=!1,e.callback()})},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){var t=v();this.user_token=t.user_token,this.getList()}},Xe={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("SDialog",{attrs:{title:t.$t("file_gub"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback}},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("display_name")},model:{value:t.display_name,callback:function(e){t.display_name=e},expression:"display_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-select",{attrs:{placeholder:""},model:{value:t.attachment_type,callback:function(e){t.attachment_type=e},expression:"attachment_type"}},[i("el-option",{attrs:{label:t.$t("all_attachment_type"),value:"-1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("image"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("general_attachment"),value:"2"}})],1)],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1),t._v(" "),i("el-form-item",[i("el-upload",{ref:"uploadFile",staticClass:"upload-file",attrs:{data:{user_token:t.user_token},action:t.uploadUrl,"before-upload":t.beforeUpload,"on-success":t.uploadCallback,"on-error":t.uploadCallback}},[i("el-button",[t._v(t._s(t.$t("upload")))])],1)],1)],1),t._v(" "),i("P",[t._v(t._s(t.$t("accumulated_used_sapce"))+" "+t._s(t.used)+"M ,\n "+t._s(t.$t("month_flow"))+" "+t._s(t.used_flow)+"M")]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList}},[i("el-table-column",{attrs:{prop:"file_id",label:t.$t("file_id")}}),t._v(" "),i("el-table-column",{attrs:{prop:"display_name",label:t.$t("display_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_type",label:t.$t("file_type"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_size_m",label:t.$t("file_size_m"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"visit_times",label:t.$t("visit_times")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.operation},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.select(e.row)}}},[t._v(t._s(t.$t("select")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.visit(e.row)}}},[t._v(t._s(t.$t("visit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteRow(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1)},staticRenderFns:[]};var Qe={props:{callback:"",page_id:"",item_id:"",manage:!0},data:function(){return{content:[],uploadUrl:DocConfig.server+"/api/page/upload",dialogUploadVisible:!1,loading:"",user_token:"",showFilehub:!1}},components:{filehub:i("VU/8")(Ye,Xe,!1,function(t){i("8giw")},null,null).exports},computed:{uploadData:function(){return{page_id:this.page_id,item_id:this.item_id,user_token:this.user_token}}},methods:{getContent:function(){var t=this;this.request("/api/page/uploadList",{page_id:this.page_id}).then(function(e){var i=e.data;t.content=i})},downloadFile:function(t){var e=t.url;window.open(e)},deleteFile:function(t){var e=this;this.$confirm(this.$t("comfirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){var i=t.file_id;e.request("/api/page/deleteUploadFile",{file_id:i,page_id:e.page_id}).then(function(t){e.getContent()})})},uploadCallback:function(t){this.loading.close(),t.error_message&&this.$alert(t.error_message),this.getContent(),this.dialogUploadVisible=!1},insertFile:function(t){var e="["+t.display_name+"]("+t.url+' "['+t.display_name+'")';this.callback(e),this.dialogTableVisible=!1},beforeUpload:function(){this.loading=this.$loading()}},mounted:function(){this.getContent();var t=v();this.user_token=t.user_token}},Ze={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("attachment"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"45%"}},[t.manage?i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",[i("el-button",{on:{click:function(e){t.showFilehub=!0}}},[t._v(t._s(t.$t("from_file_gub")))])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){t.dialogUploadVisible=!0}}},[t._v(t._s(t.$t("upload")))]),t._v(" "),i("small",[t._v("   "+t._s(t.$t("file_size_tips")))])],1)],1):t._e(),t._v(" "),i("el-table",{attrs:{data:t.content}},[i("el-table-column",{attrs:{property:"addtime",label:t.$t("add_time"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"display_name",label:t.$t("file_name")}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("operation"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.downloadFile(e.row)}}},[t._v(t._s(t.$t("download")))]),t._v(" "),t.manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.insertFile(e.row)}}},[t._v(t._s(t.$t("insert")))]):t._e(),t._v(" "),t.manage?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteFile(e.row)}}},[t._v(t._s(t.$t("delete")))]):t._e()]}}])})],1)],1),t._v(" "),t.showFilehub?i("filehub",{attrs:{item_id:t.item_id,page_id:t.page_id,callback:function(){t.showFilehub=!1,t.getContent()}}}):t._e(),t._v(" "),t.dialogUploadVisible?i("SDialog",{attrs:{onCancel:function(){t.dialogUploadVisible=!1},showCancel:!1,onOK:function(){t.dialogUploadVisible=!1},width:"400px"}},[i("p",[i("el-upload",{ref:"uploadFile",staticClass:"upload-file",attrs:{drag:"",name:"file",action:t.uploadUrl,"before-upload":t.beforeUpload,"on-success":t.uploadCallback,"on-error":t.uploadCallback,data:t.uploadData,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1)]):t._e()],1)},staticRenderFns:[]};var ti=i("VU/8")(Qe,Ze,!1,function(t){i("w7Ho")},null,null).exports,ei=i("BO1k"),ii=i.n(ei),ai=i("d7EF"),ni=i.n(ai),oi={props:{callback:"",is_modal:!0},data:function(){return{content:"",dialogFormVisible:!0}},components:{},methods:{transform:function(){var t=this.content,e="\n\n",i=!0,a=!1,n=void 0;try{for(var o,s=ii()(t.split("\n").entries());!(i=(o=s.next()).done);i=!0){var r=o.value,l=ni()(r,2),c=l[0],m=l[1].split("\t");if(e+="| "+m.join(" | ")+" |\n",0==c){for(var d=0;d0){var e=[];this.allItemMemberList.map(function(t){e.push(t.uid)}),this.request("/api/subscription/savePage",{page_id:this.page_id,uids:e.join(",")}).then(function(e){t.getList()})}},DeleteOne:function(t){var e=this;this.request("/api/subscription/deletePage",{uids:t.uid,page_id:this.page_id}).then(function(t){e.getList()})}},mounted:function(){this.getAllItemMemberList(),this.getList()}},_i={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[t.dialogVisible?i("SDialog",{attrs:{title:t.$t("save_and_notify"),onCancel:function(){t.callback("")},onOK:function(){t.callback(t.textarea)},width:"500px"}},[i("div",[i("el-input",{attrs:{type:"textarea",rows:4,placeholder:t.$t("input_update_remark")},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})],1),t._v(" "),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(e){t.dialogVisible2=!0}}},[t._v(t._s(t.$t("click_to_edit_member")))]),t._v(" "),i("span",{staticClass:"tips-text"},[t._v("( "+t._s(t.$t("cur_setting_notify"))+" "+t._s(t.list.length)+"\n "+t._s(t.$t("people"))+" )")])],1),t._v(" "),i("p",{staticClass:"tips-text"},[t._v("\n "+t._s(t.$t("notify_tips1"))+"\n ")])]):t._e(),t._v(" "),t.dialogVisible2?i("SDialog",{attrs:{onCancel:function(){t.dialogVisible2=!1},onOK:function(){t.dialogVisible2=!1},width:"500px"}},[i("div",[i("el-button",{on:{click:function(e){t.dialogVisible3=!0}}},[t._v(t._s(t.$t("add_single_member")))]),t._v(" "),i("el-button",{on:{click:t.addAllMember}},[t._v(t._s(t.$t("add_all_member")))]),t._v(" "),i("br"),t._v(" "),i("el-table",{attrs:{data:t.list}},[i("el-table-column",{attrs:{property:"username",label:t.$t("username")}}),t._v(" "),i("el-table-column",{attrs:{property:"name",label:t.$t("name")}}),t._v(" "),i("el-table-column",{attrs:{property:"sub_time",label:t.$t("addtime")}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.DeleteOne(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}],null,!1,1293784393)})],1)],1)]):t._e(),t._v(" "),t.dialogVisible3?i("SDialog",{attrs:{onCancel:function(){t.dialogVisible3=!1},onOK:t.addMember,width:"400px"}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("username")+":"}},[i("el-select",{attrs:{multiple:"",filterable:"","reserve-keyword":"",placeholder:"请选择或搜索"},model:{value:t.to_add_member_uid,callback:function(e){t.to_add_member_uid=e},expression:"to_add_member_uid"}},t._l(t.allItemMemberList,function(t){return i("el-option",{key:t.uid,attrs:{label:t.username_name,value:t.uid}})}),1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("refresh_member_list")}},[i("i",{staticClass:"el-icon-refresh-right icon-btn",on:{click:t.getAllItemMemberList}})]),t._v(" "),i("p",{staticClass:"leading-8\tv3-font-size-sm v3-color-aux"},[t._v("\n "+t._s(t.$t("notify_add_member_tips1"))+"\n ")])],1)],1)],1):t._e()],1)},staticRenderFns:[]};var ui=i("VU/8")(di,_i,!1,function(t){i("2xWI")},"data-v-7b4d30f2",null).exports,pi={name:"Mock",props:{callback:"",page_id:"",item_id:""},data:function(){return{content:"",mock_url:"",mockUrlPre:"",path:"/"}},methods:{add:function(){var t=this;this.request("/api/mock/add",{page_id:this.page_id,template:this.content,path:this.path}).then(function(e){t.$message({showClose:!0,message:"保存成功",type:"success"}),t.infoByPageId()})},infoByPageId:function(){var t=this;if(this.page_id<=0)return this.$alert("请先保存页面"),void this.callback();this.request("/api/mock/infoByPageId",{page_id:this.page_id}).then(function(e){e.data&&e.data.unique_key&&e.data.template&&(t.mock_url=t.mockUrlPre+e.data.path,t.content=Be(e.data.template),t.path=e.data.path)})},handleClick:function(){this.add()},beautifyJson:function(){this.content=this.formatJson(this.content)},onCopy:function(){this.$message(this.$t("copy_success"))}},mounted:function(){this.infoByPageId(),DocConfig.server.indexOf("http")>-1?this.mockUrlPre=DocConfig.server+"/mock-path/"+this.item_id+"&path=":this.mockUrlPre=this.getRootPath()+DocConfig.server+"/mock-path/"+this.item_id+"&path="}},hi={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{width:"1000px",title:"Mock",onCancel:t.callback,onOK:t.handleClick,okText:"保存",cancelText:"关闭"}},[i("el-form",[i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:"这里填写的是Mock接口的返回结果。你可以直接编辑/粘贴一段json字符串,支持使用MockJs语法(关于MockJs语法,可以查看下方的帮助说明按钮)。输入完毕后,点击保存,就会自动生成Mock地址",rows:20},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("p",[i("el-row",[i("span",[t._v("Mock Url和路径  :   "+t._s(t.mockUrlPre))]),t._v(" "),i("el-input",{staticClass:"path-input",model:{value:t.path,callback:function(e){t.path=e},expression:"path"}}),t._v(" "),i("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.mock_url,expression:"mock_url",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy"})],1)],1),t._v(" "),i("p",[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"假如上面填写的是一段符合json语法的字符串,点此按钮可以对json字符串进行快速格式化(美化)",placement:"top"}},[i("el-button",{on:{click:t.beautifyJson}},[t._v("json快速美化")])],1),t._v("   \n "),i("a",{attrs:{href:"https://www.showdoc.com.cn/p/d952ed6b7b5fb454df13dce74d1b41f8",target:"_blank"}},[t._v("帮助说明")])],1)],1)],1)],1)},staticRenderFns:[]};var fi=i("VU/8")(pi,hi,!1,function(t){i("Uf1M")},"data-v-10d49a3c",null).exports,gi={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("SDialog",{attrs:{title:t.$t("copy"),onCancel:t.closeDialog,showCancel:!1,onOK:t.copy,width:"350px"}},[i("el-form",[i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},on:{change:t.selectItem},model:{value:t.is_del,callback:function(e){t.is_del=e},expression:"is_del"}},[i("el-option",{key:"0",attrs:{label:t.$t("copy_to"),value:"0"}}),t._v(" "),i("el-option",{key:"1",attrs:{label:t.$t("move_to"),value:"1"}})],1)],1),t._v(" "),i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},on:{change:t.selectItem},model:{value:t.to_item_id,callback:function(e){t.to_item_id=e},expression:"to_item_id"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("el-form-item",{staticClass:"text-left",attrs:{label:""}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("please_choose")},model:{value:t.new_p_cat_id,callback:function(e){t.new_p_cat_id=e},expression:"new_p_cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1)],1)},staticRenderFns:[]};var vi=i("VU/8")({props:["cat_id","item_id","callback"],data:function(){return{itemList:[],to_item_id:"0",is_del:"0",catalogs:[{cat_id:"0",cat_name:"/"}],new_p_cat_id:"0"}},methods:{getItemList:function(){var t=this;this.request("/api/item/myList",{}).then(function(e){t.itemList=e.data,t.to_item_id=t.item_id})},selectItem:function(t){this.getCatalog(t)},getCatalog:function(t){var e=this;this.request("/api/catalog/catListName",{item_id:t}).then(function(t){e.new_p_cat_id="0";var i=t.data;i.unshift({cat_id:"0",cat_name:"/"}),e.catalogs=i})},copy:function(){var t=this;this.request("/api/catalog/copy",{cat_id:this.cat_id,new_p_cat_id:this.new_p_cat_id,to_item_id:this.to_item_id,is_del:this.is_del}).then(function(e){t.closeDialog()})},closeDialog:function(){this.callback&&this.callback()}},mounted:function(){this.getItemList(),this.getCatalog(this.item_id)}},gi,!1,function(t){i("hkn8")},"data-v-16f34d5b",null).exports,bi={name:"Login",components:{SortPage:mi,Copy:vi},props:{callback:function(){},item_id:0},data:function(){return{MyForm:{cat_id:0,parent_cat_id:"",cat_name:"",s_number:""},catalogs:[],dialogFormVisible:!1,copyFormVisible:!1,treeData:[],defaultProps:{children:"children",label:"label"},curl_cat_id:"",sortPageVisiable:!1}},computed:{belong_to_catalogs:function(){if(!this.catalogs||this.catalogs.length<=0)return[];for(var t=this.catalogs.slice(0),e=[],i=function t(i,a){if(i.length>0)for(var n=0;n0&&t(i[n].sub,o)}},a=0;a0&&(n.children=t(e[a].sub)),i.push(n)}return i}(i)})},MyFormSubmit:function(){var t=this;this.request("/api/catalog/save",{item_id:this.item_id,cat_id:this.MyForm.cat_id,parent_cat_id:this.MyForm.parent_cat_id,cat_name:this.MyForm.cat_name}).then(function(e){t.dialogFormVisible=!1,t.getCatalog(),t.MyForm=[]})},edit:function(t,e){this.MyForm={cat_id:e.id,parent_cat_id:t.parent.data.id,cat_name:e.label},this.dialogFormVisible=!0},deleteCat:function(t,e){var i=this,a=e.id;this.$confirm(this.$t("confirm_cat_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){i.request("/api/catalog/delete",{item_id:i.item_id,cat_id:a}).then(function(t){i.getCatalog()})})},resetForm:function(){this.MyForm={cat_id:0,parent_cat_id:"",cat_name:"",s_number:""}},addCat:function(t,e){t&&e.id?this.MyForm={cat_id:"",parent_cat_id:e.id,cat_name:""}:this.resetForm(),this.dialogFormVisible=!0},goback:function(){var t="/"+this.item_id;this.$router.push({path:t})},handleDragEnd:function(t,e,i,a){var n=this.dimensionReduction(this.treeData);this.request("/api/catalog/batUpdate",{item_id:this.item_id,cats:C()(n)})},dimensionReduction:function(t){for(var e=[],i=function t(i,a,n,o){if(e.push({cat_id:i.id,cat_name:i.label,parent_cat_id:a,level:n,s_number:o+1}),i.hasOwnProperty("children"))for(var s=0;s1?i("p",{staticClass:" v3-color-aux v3-font-size-sm "},[t._v("\n "+t._s(t.$t("cat_tips"))+"\n ")]):t._e(),t._v(" "),i("el-tree",{staticClass:"tree-node",attrs:{data:t.treeData,"node-key":"id","default-expand-all":"",draggable:""},on:{"node-drag-end":t.handleDragEnd},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.node,n=e.data;return i("span",{staticClass:"custom-tree-node"},[i("i",{staticClass:"mr-2 fas fa-folder"}),i("span",[t._v(t._s(a.label))]),t._v(" "),i("span",{staticClass:"right-bar"},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("edit"),placement:"top"}},[i("el-button",{staticClass:"el-icon-edit-outline",attrs:{type:"text",size:"mini",title:t.$t("edit")},on:{click:function(e){return e.stopPropagation(),t.edit(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("add_cat"),placement:"top"}},[i("el-button",{staticClass:"el-icon-plus",attrs:{type:"text",size:"mini",title:t.$t("add_cat")},on:{click:function(e){return e.stopPropagation(),t.addCat(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("sort_pages"),placement:"top"}},[i("el-button",{staticClass:"el-icon-document",attrs:{type:"text",size:"mini",title:t.$t("sort_pages")},on:{click:function(e){return e.stopPropagation(),t.showSortPage(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("copy_or_mv_cat"),placement:"top"}},[i("el-button",{staticClass:"el-icon-copy-document",attrs:{type:"text",size:"mini",title:t.$t("copy_or_mv_cat")},on:{click:function(e){return e.stopPropagation(),t.copyCat(a,n)}}})],1),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("delete"),placement:"top"}},[i("el-button",{staticClass:"el-icon-delete",attrs:{type:"text",size:"mini"},on:{click:function(e){return e.stopPropagation(),t.deleteCat(a,n)}}})],1)],1)])}}])})],1)]),t._v(" "),t.sortPageVisiable?i("SortPage",{ref:"SortPage",attrs:{callback:function(){t.sortPageVisiable=!1},item_id:t.item_id,cat_id:t.curl_cat_id}}):t._e(),t._v(" "),t.copyFormVisible?i("Copy",{attrs:{item_id:t.item_id,cat_id:t.curl_cat_id,callback:t.copyCallback}}):t._e(),t._v(" "),t.dialogFormVisible?i("SDialog",{attrs:{title:t.$t("add_cat"),showCancel:!1,onCancel:function(){t.dialogFormVisible=!1},onOK:t.MyFormSubmit,width:"300px"}},[i("el-form",[i("el-form-item",{attrs:{label:t.$t("cat_name")+" : "}},[i("el-input",{attrs:{placeholder:t.$t("input_cat_name")},model:{value:t.MyForm.cat_name,callback:function(e){t.$set(t.MyForm,"cat_name",e)},expression:"MyForm.cat_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("parent_cat_name")+" : "}},[i("el-select",{attrs:{filterable:"",placeholder:t.$t("none")},model:{value:t.MyForm.parent_cat_id,callback:function(e){t.$set(t.MyForm,"parent_cat_id",e)},expression:"MyForm.parent_cat_id"}},t._l(t.belong_to_catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1)],1):t._e()],1)},staticRenderFns:[]};var yi=i("VU/8")(bi,wi,!1,function(t){i("gke+"),i("K2RQ")},"data-v-376d7faa",null).exports,ki={props:["cat_id","item_id","callback"],components:{Catalog:yi},data:function(){return{to_item_id:"0",is_del:"0",catalogs:[{cat_id:"0",cat_name:"/"}],new_p_cat_id:"0",showCatalog:!1}},methods:{getCatalog:function(t){var e=this;this.request("/api/catalog/catListName",{item_id:t}).then(function(t){var i=t.data;i.unshift({cat_id:"0",cat_name:"/"}),e.catalogs=i})}},mounted:function(){this.getCatalog(this.item_id),this.new_p_cat_id=this.cat_id}},$i={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("select_catalog"),width:"400px",onOK:function(){t.callback(t.new_p_cat_id)},btn1Text:t.$t("new_catalog"),btn1Icon:"el-icon-plus",btn1Medthod:function(){t.showCatalog=!0}}},[i("el-form",[i("el-form-item",{staticClass:"text-left",attrs:{label:t.$t("select_catalog")}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("select_catalog")},model:{value:t.new_p_cat_id,callback:function(e){t.new_p_cat_id=e},expression:"new_p_cat_id"}},t._l(t.catalogs,function(t){return i("el-option",{key:t.cat_id,attrs:{label:t.cat_name,value:t.cat_id}})}),1)],1)],1)],1),t._v(" "),t.showCatalog?i("Catalog",{attrs:{item_id:t.item_id,callback:function(){t.showCatalog=!1,t.getCatalog(t.item_id)}}}):t._e()],1)},staticRenderFns:[]};var Ci=i("VU/8")(ki,$i,!1,function(t){i("xhEc")},"data-v-1b6f0eaf",null).exports,xi=(i("xrTZ"),{render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("SDialog",{attrs:{width:"90%",top:"10vh",title:"AI",onCancel:t.callback,onOK:function(){t.callback(t.outputContent)},okText:"插入到编辑器中",cancelText:"关闭"}},[i("el-row",{attrs:{gutter:40}},[i("el-col",{attrs:{span:12}},[i("h3",[t._v("输入区")]),t._v(" "),i("el-input",{staticClass:"dialoContent",attrs:{type:"textarea",placeholder:"你可以在此输入描述,告诉AI你想生成什么,然后右边的输出区可以看到结果。更多使用说明可点击下方的帮助说明按钮",rows:20},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("p",[i("el-button",{attrs:{type:"primary"},on:{click:t.createContent}},[t._v("生成")]),t._v("\n    \n "),i("a",{attrs:{href:"https://www.showdoc.com.cn/p/b910aa406c168054994aa9250a23e398",target:"_blank"}},[t._v("帮助说明")])],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("h3",[t._v("输出区")]),t._v(" "),i("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialoContent",attrs:{type:"textarea",placeholder:" ",rows:20},model:{value:t.outputContent,callback:function(e){t.outputContent=e},expression:"outputContent"}})],1)],1)],1)],1)},staticRenderFns:[]});var Ii=i("VU/8")({name:"Mock",props:{callback:"",page_id:"",item_id:""},data:function(){return{content:"",outputContent:"",loading:!1}},methods:{createContent:function(){var t=this;this.outputContent="",this.loading=!0,this.request("/api/ai/create",{content:this.content}).then(function(e){t.outputContent=e.data.choices[0].message.content,t.loading=!1}).catch(function(){t.loading=!1})}},mounted:function(){}},xi,!1,function(t){i("dlsc")},"data-v-3e021fea",null).exports,Si=i("0thk"),Fi=i("d13G"),Li={props:{callback:function(){},item_id:0,edit_page_id:0,copy_page_id:0},data:function(){return{page_id:0,content:"",title:"",cat_id:"",s_number:"",attachment_count:"",catalogs:[],isLock:0,intervalId:0,saving:!1,sortPageVisiable:!1,notifyVisiable:!1,is_notify:0,notify_content:"",showTemplateDialog:!1,showJsonToTableDialog:!1,showJsonBeautifyDialog:!1,showSqlToMarkdownTableDialog:!1,showHistoryVersionDialog:!1,showAttachmentListDialog:!1,showPasteTableDialog:!1,user_token:"",dialogVisible:!0,showSelectCat:!1,currentCatName:"/",showContent:!1,showMock:!1,showAI:!1,showAIBtn:!1}},components:{Editormd:we,JsonToTable:je,JsonBeautify:Ee,TemplateList:He,HistoryVersion:We,AttachmentList:ti,PasteTable:ri,SortPage:mi,Notify:ui,SqlToMarkdownTable:Ne,SelectCat:Ci,Mock:fi,AI:Ii},methods:{getPageContent:function(t){var e=this;t||(t=this.page_id),this.request("/api/page/info",{page_id:t}).then(function(t){var i=t.data;e.content=Ke(i.page_content),e.showContent=!0,setTimeout(function(){e.content.length>4e3?e.editorUnwatch():e.editorWatch(),e.draft()},1e3),e.title=i.page_title,e.item_id=i.item_id,e.cat_id=i.cat_id,e.s_number=i.s_number,e.attachment_count=i.attachment_count>0?"...":e.attachment_count,e.refreshCat()})},getCatalog:function(t){var e=this;this.request("/api/catalog/catListName",{item_id:t}).then(function(t){var i=t.data;if(i.unshift({cat_id:"0",cat_name:"/"}),e.catalogs=i,e.catalogs&&e.catalogs.length)for(var a=0;a0?this.notifyVisiable=!0:this.save(function(){t.notifyVisiable=!0})},save:function(t){var e=this;if(this.saving)return!1;this.saving=!0;var i=e.$loading(),a=this.$refs.Editormd.getMarkdown(),n=this.cat_id,o=e.item_id,s=e.page_id;this.request("/api/page/save",{page_id:s,item_id:o,page_title:e.title,page_content:encodeURIComponent(a),is_urlencode:1,cat_id:n,is_notify:this.is_notify,notify_content:this.notify_content},"post",!1).then(function(a){i.close(),e.saving=!1,0===a.error_code?("function"==typeof t?t():e.$message({showClose:!0,message:"保存成功",type:"success"}),e.deleteDraft(),e.page_id<=0&&(e.page_id=a.data.page_id,e.$router.replace({path:"/"+e.item_id+"/"+e.page_id}))):10250===a.error_code?(e.deleteDraft(),e.$alert('内容已保存。检测到你的账户尚未绑定邮箱或者邮箱还没有经过验证。当忘记密码的时候,你将面临着丢失数据的风险。点此绑定邮箱,忘记密码时可通过邮箱重置密码',"提示",{dangerouslyUseHTMLString:!0})):e.$alert(a.error_message)}),setTimeout(function(){i.close(),e.saving=!1},1e4)},goback:function(){var t=this,e="/"+this.item_id+"/"+this.page_id;this.page_id?this.callback():this.$router.push({path:e}).then(function(){t.callback()})},saveToTemplate:function(){var t=this,e=this.$refs.Editormd.getMarkdown();this.$prompt(this.$t("save_templ_title")," ",{}).then(function(i){t.request("/api/template/save",{template_title:i.value,template_content:e}).then(function(e){t.$alert(t.$t("save_templ_text"))})})},clipboardEvents:function(t){var e=this;if(document.querySelector("#page-editor .CodeMirror-wrap").contains(document.activeElement))for(var i=DocConfig.server+"/api/page/uploadImg",a=t.clipboardData,n=0,o=a.items.length;n-1){var s=a.items[n].getAsFile(),r=new FormData;r.append("t","ajax-uploadpic"),r.append("editormd-image-file",s),r.append("user_token",e.user_token);var l="",c=function(t,i){switch(t=t||"before"){case"before":l=e.$loading();break;case"error":l.close(),e.$alert("图片上传失败");break;case"success":if(l.close(),1==i.success){var a="![]("+i.url+")";e.insertValue(a)}else e.$alert(i.message)}};$.ajax({url:i,type:"POST",dataType:"json",data:r,processData:!1,contentType:!1,beforeSend:function(){c("before")},error:function(){c("error")},success:function(t){c("success",t)}}),t.preventDefault()}else"text/html"==a.items[n].type&&(t.preventDefault(),a.items[n].getAsString(function(t){var i=document.querySelector("#pastebin");i.innerHTML=t;var a=i.innerText;a.length<200?e.insertValue(a):e.$confirm(e.$t("past_html_tips")," ",{confirmButtonText:e.$t("past_html_markdown"),cancelButtonText:e.$t("past_html_text")}).then(function(i){var a=new Si.a,n=Fi.gfm,o=Fi.tables,s=Fi.strikethrough;a.use([n,o,s]);var r=a.turndown(t);e.insertValue(r)}).catch(function(){e.insertValue(a)})}))},draft:function(){var t=this,e="page_content_"+this.page_id,i=this.$refs.Editormd;setInterval(function(){var t=i.getMarkdown();localStorage.setItem(e,t)},3e4);var a=localStorage.getItem(e);a&&a.length>0&&a!=i.getMarkdown()&&i.getMarkdown()&&i.getMarkdown().length>10&&(localStorage.removeItem(e),t.$confirm(t.$t("draft_tips"),"",{showClose:!1}).then(function(){t.insertValue(a,!0),localStorage.removeItem(e)}).catch(function(){localStorage.removeItem(e)}))},deleteDraft:function(){for(var t=0;t-1&&localStorage.removeItem(e)}},setLock:function(){var t=this;this.page_id>0&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_id}).then(function(){t.isLock=1})},unlock:function(){var t=this;this.isLock&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_id,lock_to:1e3}).then(function(){t.isLock=0})},heartBeatLock:function(){var t=this;this.intervalId=setInterval(function(){t.isLock&&t.setLock()},12e5)},remoteIsLock:function(){var t=this;this.request("/api/page/isLock",{page_id:this.page_id,item_id:this.item_id}).then(function(e){e.data.lock>0?e.data.is_cur_user>0?t.isLock=1:t.$alert(t.$t("locking")+e.data.lock_username,"",{showClose:!1}).then(function(){t.goback()}):e.data.exceed>0&&t.page_id<=0?t.$alert('该项目页面数量超出限制。项目创建者可以开通高级版以获取更多配额。
如果你是项目创建者,你可以点此查看不同账户类型的额度限制差异,也可以点此去升级账户类型
如果你现在不方便处理,你可以等会再自行回到项目列表页,点击右上角的用户中心去升级。',{dangerouslyUseHTMLString:!0}).then(function(){t.goback()}):t.setLock()})},unLockOnClose:function(){var t=this.user_token,e=new URLSearchParams({page_id:this.page_id,item_id:this.item_id,lock_to:1e3,user_token:t}),i=DocConfig.server+"/api/page/setLock";if("sendBeacon"in navigator)navigator.sendBeacon(i,e);else{var a=new XMLHttpRequest;a.open("POST",i,!1),a.send(e)}},refreshCat:function(){this.getCatalog(this.item_id)},goToCat:function(){var t=this.$router.resolve({path:"/catalog/"+this.item_id});window.open(t.href,"_blank")},editTitle:function(){var t=this,e="";(this.page_id||this.copy_page_id)&&(e=this.title),this.$prompt("","",{inputValue:e}).then(function(e){t.title=e.value})},isShowAI:function(){var t=this;this.request("/api/common/homePageSetting",{}).then(function(e){e.data&&e.data.is_show_ai&&(t.showAIBtn=!0)})}},mounted:function(){this.page_id=this.edit_page_id,this.copy_page_id>0?this.getPageContent(this.copy_page_id):this.page_id>0?this.getPageContent(this.page_id):(this.content="\n",this.showContent=!0,this.title=this.$t("default_title"),this.getCatalog(this.item_id)),this.heartBeatLock(),this.remoteIsLock(),document.addEventListener("paste",this.clipboardEvents),window.addEventListener("beforeunload",this.unLockOnClose);var t=this.$store.state.open_cat_id;this.page_id<=0&&t>0&&(this.cat_id=t);var e=v();this.user_token=e.user_token,this.isShowAI()},beforeDestroy:function(){document.removeEventListener("paste",this.clipboardEvents),this.$message.closeAll(),clearInterval(this.intervalId),this.unlock(),window.removeEventListener("beforeunload",this.unLockOnClose)}},Ti={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",[a("el-dialog",{staticClass:"sdialog",attrs:{width:"98%",visible:e.dialogVisible,"show-close":!1,top:"2vh","append-to-body":!0,"close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"title-header pt-4",attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"inline-block"},[a("el-button",{staticClass:"close-btn",attrs:{type:"text",icon:"el-icon-close"},on:{click:e.goback}}),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("click_to_edit_page_title")}},[a("span",{staticClass:"page-title",on:{click:e.editTitle}},[e._v(e._s(e.title))])]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("select_catalog")}},[a("span",{staticClass:"cat-class v3-color-aux v3-font-size-sm",on:{click:function(t){e.showSelectCat=!0}}},[a("i",{staticClass:"el-icon-folder-opened mr-1"}),e._v(e._s(e.currentCatName)+"\n ")])])],1),e._v(" "),a("div",{staticClass:"inline-block float-right"},[a("el-button",{staticClass:"mr-2",attrs:{type:"",size:"medium"},on:{click:e.showNotify}},[a("i",{staticClass:"el-icon-s-comment mr-2"}),e._v(e._s(e.$t("save_and_notify")))]),e._v(" "),a("el-dropdown",{attrs:{"split-button":"",type:"primary",size:"medium",trigger:"click",title:"Ctrl + S"},on:{command:e.dropdownCallback,click:e.save}},[a("span",{attrs:{id:"save-page"}},[a("i",{staticClass:"el-icon-s-shop mr-2"}),e._v(e._s(e.$t("save")))]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.saveToTemplate(t)}}},[e._v(e._s(e.$t("save_to_templ")))]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("lock_edit_tips"),placement:"left"}},[e.isLock?e._e():a("el-dropdown-item",{nativeOn:{click:function(t){return e.setLock(t)}}},[e._v(e._s(e.$t("lock_edit")))])],1),e._v(" "),e.isLock?a("el-dropdown-item",{nativeOn:{click:function(t){return e.unlock(t)}}},[e._v(e._s(e.$t("cacel_lock")))]):e._e()],1)],1)],1)]),e._v(" "),a("div",{on:{keydown:[function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.ctrlKey?(t.preventDefault(),e.save(t)):null},function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.metaKey?(t.preventDefault(),e.save(t)):null}]}},[a("el-row",{staticClass:"fun-btn-group"},[a("el-dropdown",{attrs:{type:"",size:"medium",trigger:"hover"}},[a("el-button",[a("i",{staticClass:"mr-1 fas fa-gear"}),e._v("\n "+e._s(e.$t("doc_tool"))+"\n "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){e.showHistoryVersionDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-rectangle-history"}),e._v("\n "+e._s(e.$t("history_version")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.showAttachment(t)}}},[a("el-badge",{attrs:{value:e.attachment_count}},[a("i",{staticClass:"mr-1 far fa-cloud-arrow-up"}),e._v("\n "+e._s(e.$t("attachment")))])],1),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.showSortPage(t)}}},[a("i",{staticClass:"mr-1 far fa-sort"}),e._v("\n "+e._s(e.$t("sort_pages")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showJsonToTableDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-table"}),e._v("\n "+e._s(e.$t("json_to_table")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showJsonBeautifyDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-goal-net"}),e._v("\n "+e._s(e.$t("beautify_json")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showPasteTableDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-table"}),e._v("\n "+e._s(e.$t("paste_insert_table")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showSqlToMarkdownTableDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-table"}),e._v("\n "+e._s(e.$t("sql_to_markdown_table")))]),e._v(" "),"zh-cn"==e.$lang?a("el-dropdown-item",{nativeOn:{click:function(t){e.showMock=!0}}},[a("i",{staticClass:"mr-1 far fa-database"}),e._v("\n Mock\n ")]):e._e(),e._v(" "),"zh-cn"==e.$lang?a("el-dropdown-item",{nativeOn:{click:function(t){return e.showRunApi(t)}}},[a("i",{staticClass:"mr-1 far fa-link"}),e._v("\n "+e._s(e.$t("http_test_api")))]):e._e()],1)],1),e._v(" "),"zh-cn"==e.$lang&&e.showAIBtn?a("el-button",{staticStyle:{"padding-top":"12px","padding-bottom":"12px"},attrs:{size:"medium"},on:{click:e.createContent},nativeOn:{click:function(t){e.showAI=!0}}},[a("i",{staticClass:"mr-1 far fa-robot"}),e._v("\n "+e._s(e.$t("ai_assistant")))]):e._e(),e._v(" "),a("el-dropdown",{attrs:{type:"",size:"medium",trigger:"hover"}},[a("el-button",[a("i",{staticClass:"mr-1 fas fa-files"}),e._v("\n "+e._s(e.$t("add_from_template"))),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.insertApiTemplate(t)}}},[a("i",{staticClass:"mr-1 far fa-plug"}),e._v("\n "+e._s(e.$t("insert_apidoc_template")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.insertDatabaseTemplate(t)}}},[a("i",{staticClass:"mr-1 far fa-database"}),e._v("\n "+e._s(e.$t("insert_database_doc_template")))]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showTemplateDialog=!0}}},[a("i",{staticClass:"mr-1 far fa-files"}),e._v("\n "+e._s(e.$t("more_templ")))])],1)],1)],1),e._v(" "),e.showContent?a("Editormd",{ref:"Editormd",attrs:{content:e.content,type:"editor",id:"page-editor"}}):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})]),e._v(" "),e.showTemplateDialog?a("TemplateList",{ref:"TemplateList",attrs:{item_id:e.item_id,callback:function(t){t&&"string"==typeof t&&e.insertValue(t),e.showTemplateDialog=!1}}}):e._e(),e._v(" "),e.showHistoryVersionDialog?a("HistoryVersion",{attrs:{is_show_recover_btn:!0,page_id:e.page_id,callback:function(i){t.showHistoryVersionDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showJsonToTableDialog?a("JsonToTable",{attrs:{callback:function(i){t.showJsonToTableDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showJsonBeautifyDialog?a("JsonBeautify",{attrs:{callback:function(i){t.showJsonBeautifyDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showSqlToMarkdownTableDialog?a("SqlToMarkdownTable",{attrs:{callback:function(i){t.showSqlToMarkdownTableDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showAttachmentListDialog?a("AttachmentList",{attrs:{item_id:e.item_id,manage:!0,page_id:e.page_id,callback:function(i){t.showAttachmentListDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.showPasteTableDialog?a("PasteTable",{attrs:{callback:function(i){t.showPasteTableDialog=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),e.sortPageVisiable?a("SortPage",{ref:"SortPage",attrs:{callback:function(){e.sortPageVisiable=!1},item_id:e.item_id,page_id:e.page_id,cat_id:e.cat_id}}):e._e(),e._v(" "),e.notifyVisiable?a("Notify",{ref:"Notify",attrs:{page_id:e.page_id,item_id:e.item_id,callback:function(t){e.notifyVisiable=!1,t&&"string"==typeof t&&(e.is_notify=1,e.notify_content=t,e.save(function(){e.goback()}))}}}):e._e(),e._v(" "),e.showSelectCat?a("SelectCat",{attrs:{cat_id:e.cat_id,item_id:e.item_id,callback:function(i){t.showSelectCat=!1,!i||"string"!=typeof i&&"number"!=typeof i||(t.cat_id=i,e.refreshCat())}}}):e._e(),e._v(" "),e.showMock?a("Mock",{attrs:{page_id:e.page_id,item_id:e.item_id,callback:function(){e.showMock=!1}}}):e._e(),e._v(" "),e.showAI?a("AI",{attrs:{page_id:e.page_id,item_id:e.item_id,callback:function(i){t.showAI=!1,i&&"string"==typeof i&&e.insertValue(i)}}}):e._e(),e._v(" "),a("div",{attrs:{contenteditable:"true",id:"pastebin"}})],1)},staticRenderFns:[]};var Mi=i("VU/8")(Li,Ti,!1,function(t){i("Tjeq"),i("8C//")},"data-v-6f286537",null).exports,qi=function(t){var e=t;if(!e)return[];var i=[];e.pages&&e.pages.map(function(t){i.push({title:t.page_title,id:t.page_id,page_id:t.page_id,page_cat_id:0,key:"page_"+t.page_id,type:"page",methods:""})});return function t(e){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=[],n=0;n0){o.children=[];for(var s=0;s0){var r=t(e[n].catalogs,e[n].cat_id);o.children=o.children.concat(r)}a.push(o)}return a}(e.catalogs).map(function(t){i.push(t)}),i},Oi=function t(e,i){for(var a=0;a0){var o=t(n.children,i);if(null!==o)return o.push(n.id),o}}return null},Pi={props:{getPageContent:"",item_info:"",searchItem:function(){},keyword:""},components:{PageEdit:Mi,Catalog:yi,HistoryVersion:We,CopyCatalog:vi},data:function(){return{openeds:[],menu:"",show_menu_btn:!1,hideScrollbar:!0,menuMarginLeft:"menu-margin-left1",expandCollapseCatalogStatus:"0",defaultProps:{children:"children",label:"title"},copyPageId:0,editPageId:0,showPageEdit:!1,showCatalog:!1,showRecycle:!1,showHistoryVersiong:!1,showCopyCatalog:!1,editCatId:0}},methods:{showContextMenu:function(t,e){!function(t){var e=t.x,i=void 0===e?0:e,a=t.y,n=void 0===a?0:a,s=t.list,r=void 0===s?[]:s,l=document.createElement("div"),c=Math.random().toString(36).substring(2);l.id=c,document.body.appendChild(l);var m=document.createElement("div");l.appendChild(m);var d=new o.default({render:function(t){return t(Ie,{props:{x:i,y:n,list:r,onCancel:function(){d.$destroy();var t=document.getElementById(c);t&&t.parentNode.removeChild(t)}}})}});d.$mount(m)}({x:t.x,y:t.y,list:"folder"===e.type?this.catContextmenu(e):this.pageContextmenu(e)})},pageContextmenu:function(t){var e=this;return[{icon:"fas fa-edit",text:this.$t("edit_page"),onclick:function(){e.editPageId=t.page_id,e.showPageEdit=!0}},{icon:"fas fa-copy",text:this.$t("copy_page"),onclick:function(){e.editPageId=0,e.copyPageId=t.page_id,e.showPageEdit=!0}},{icon:"fas fa-circle-info",text:this.$t("page_info"),onclick:function(){e.request("/api/page/info",{page_id:t.page_id}).then(function(t){var i="本页面由 "+t.data.author_username+" 于 "+t.data.addtime+" 更新";e.$alert(i)})}},{icon:"fas fa-rectangle-history",text:this.$t("page_history_version"),onclick:function(){e.editPageId=t.page_id,e.showHistoryVersiong=!0}},{icon:"fas fa-trash-can",text:this.$t("delete_page"),onclick:function(){var i=t.page_id;e.$confirm(e.$t("comfirm_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){e.request("/api/page/delete",{page_id:i}).then(function(t){window.location.reload()})})}}]},catContextmenu:function(t){var e=this;return[{icon:"fas fa-plus",text:this.$t("add_sub_page"),onclick:function(){e.$store.dispatch("changeOpenCatId",t.cat_id),e.editPageId=0,e.showPageEdit=!0}},{icon:"fas fa-folder-tree",text:this.$t("add_sub_cat"),onclick:function(){e.$prompt("","").then(function(i){e.request("/api/catalog/save",{item_id:e.item_info.item_id,cat_id:0,parent_cat_id:t.cat_id,cat_name:i.value}).then(function(t){e.reload()})})}},{icon:"fas fa-folder-plus",text:this.$t("add_si_bling_cat"),onclick:function(){e.$prompt("","").then(function(i){e.request("/api/catalog/save",{item_id:e.item_info.item_id,cat_id:0,parent_cat_id:t.parent_cat_id,cat_name:i.value}).then(function(t){e.reload()})})}},{icon:"fas fa-edit",text:this.$t("edt_cat"),onclick:function(){e.$prompt("","",{inputValue:t.title}).then(function(i){e.request("/api/catalog/save",{item_id:e.item_info.item_id,cat_id:t.cat_id,parent_cat_id:t.parent_cat_id,cat_name:i.value}).then(function(t){e.reload()})})}},{icon:"fas fa-clone",text:this.$t("clone_move"),onclick:function(){e.editCatId=t.cat_id,e.showCopyCatalog=!0}},{icon:"fas fa-trash-can",text:this.$t("delete"),onclick:function(){var i=t.cat_id;e.$confirm(e.$t("confirm_cat_delete")," ",{confirmButtonText:e.$t("confirm"),cancelButtonText:e.$t("cancel"),type:"warning"}).then(function(){e.request("/api/catalog/delete",{item_id:e.item_info.item_id,cat_id:i}).then(function(t){e.reload()})})}}]},allowDrop:function(t,e,i){return!("inner"==i&&e.data.page_id>0)},handleDragEnd:function(){var t=this.menu;if(this.keyword)return!1;var e=function(t){for(var e=[],i=function t(i,a,n,o){if(e.push({cat_id:i.id||0,cat_name:i.title||"",page_id:i.page_id||0,parent_cat_id:a||0,page_cat_id:a||0,level:n,s_number:o+1}),i.hasOwnProperty("children"))for(var s=0;s0)||t!=this.$route.query.page_id&&t!=this.$route.params.page_id){var e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.$router.replace({path:"/"+e+"/"+t})}},inputKeyword:function(){this.searchItem(this.keyword)},showMenu:function(){this.show_menu_btn=!1;var t=document.getElementById("left-side-menu");t.style.display="block",t.style.marginLeft="0px",t.style.marginTop="0px",(t=document.getElementById("p-content")).style.display="none"},hideMenu:function(){this.show_menu_btn=!0;var t=document.getElementById("left-side-menu");t.style.display="none",(t=document.getElementById("p-content")).style.marginLeft="0px",t.style.display="block",(t=document.getElementById("page_md_content")).style.width="95%"},randerUrl:function(t){return"/"+(this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id)+"/"+t}},mounted:function(){var t=this;this.menu=qi(this.item_info.menu);var e=this.item_info.default_page_id?this.item_info.default_page_id:0;if(e){var i=Oi(this.menu,e);i&&(this.openeds=i,setTimeout(function(){document.querySelector("#node-"+e).scrollIntoView(),t.selectMenu(e)},1e3))}}},Di={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",{staticClass:"hide-scrollbar"},[a("div",{attrs:{id:"left-side-menu"}},[a("el-input",{staticClass:"search-box",attrs:{placeholder:e.$t("input_keyword"),clearable:!0,size:"small","suffix-icon":"el-icon-search"},on:{clear:function(t){return e.searchItem()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.inputKeyword(t)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),e._v(" "),e.menu&&e.menu.length>0?a("el-tree",{ref:"tree",attrs:{data:e.menu,props:e.defaultProps,"node-key":"id","default-expanded-keys":e.openeds,draggable:!!e.item_info.item_edit,"allow-drop":e.allowDrop,"auto-expand-parent":!1},on:{"node-click":e.handleNodeClick,"node-drag-end":e.handleDragEnd},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node;return t.data,a("span",{staticClass:"custom-tree-node",on:{contextmenu:function(t){return t.preventDefault(),a=t,void(e.item_info.item_edit&&e.showContextMenu(a,i.data));var a}}},["folder"===i.data.type?a("span",{staticClass:"custom-tree-node node-folder",attrs:{id:"node-"+i.data.id}},[e.openeds.includes(i.data.id)&&i.data.children.length?a("i",{staticClass:"mr-2 far fa-folder-open"}):a("i",{staticClass:"mr-2 far fa-folder-closed"}),e._v(" "),a("span",{staticClass:"node-label"},[e._v(e._s(i.label))])]):a("span",{staticClass:"custom-tree-node node-page",attrs:{id:"node-"+i.data.id}},[a("i",{staticClass:"mr-2 fas fa-file-alt"}),e._v(" "),a("span",{staticClass:"node-label"},[e._v(e._s(i.label))])]),e._v(" "),e.item_info.item_edit?a("span",{staticClass:"node-tool"},[a("span",{on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.showContextMenu(t,i.data)}}},[a("i",{staticClass:"mr-3 fas fa-ellipsis"})])]):e._e()])}}],null,!1,2066946501)}):e._e(),e._v(" "),e.showPageEdit?a("PageEdit",{attrs:{edit_page_id:e.editPageId,item_id:e.item_info.item_id,copy_page_id:e.copyPageId,callback:function(){e.showPageEdit=!1,e.reload()}}}):e._e(),e._v(" "),e.showCatalog?a("Catalog",{attrs:{item_id:e.item_id,callback:function(){e.showCatalog=!1,e.reload()}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e(),e._v(" "),e.showHistoryVersiong?a("HistoryVersion",{attrs:{page_id:e.editPageId,is_show_recover_btn:!1,is_modal:!1,callback:function(e){t.showHistoryVersiong=!1}}}):e._e(),e._v(" "),e.showCopyCatalog?a("CopyCatalog",{attrs:{item_id:e.item_info.item_id,cat_id:e.editCatId,callback:function(){e.reload()}}}):e._e()],1)])},staticRenderFns:[]};var Vi=i("VU/8")(Pi,Di,!1,function(t){i("1KaE")},"data-v-3b9435c4",null).exports,ji={props:{callback:function(){},page_id:"",item_id:""},data:function(){return{page:1,count:10,dataList:[],total:0,dialogTableVisible:!0}},components:{},computed:{},methods:{getList:function(){var t=this;this.request("/api/item/getChangeLog",{page:this.page,count:this.count,item_id:this.item_id}).then(function(e){var i=e.data;t.dialogTableVisible=!0,t.dataList=i.list,t.total=parseInt(i.total)})},handleCurrentChange:function(t){this.page=t,this.getList()},visitPage:function(t){var e=this.$router.resolve({path:"/"+this.item_id+"/"+t});window.open(e.href,"_blank")}},mounted:function(){this.getList()}},Ai={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("item_change_log_dialog_title"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"70%",top:"5vh"}},[i("el-table",{attrs:{data:t.dataList}},[i("el-table-column",{attrs:{property:"optime",label:t.$t("optime"),width:"170"}}),t._v(" "),i("el-table-column",{attrs:{property:"oper",label:t.$t("oper")}}),t._v(" "),"zh-cn"==t.$lang?i("el-table-column",{attrs:{property:"op_action_type_desc",label:t.$t("op_action_type_desc")}}):t._e(),t._v(" "),"zh-cn"==t.$lang?i("el-table-column",{attrs:{property:"op_object_type_desc",label:t.$t("op_object_type_desc")}}):t._e(),t._v(" "),"en"==t.$lang?i("el-table-column",{attrs:{property:"op_action_type",label:t.$t("op_action_type_desc")}}):t._e(),t._v(" "),"en"==t.$lang?i("el-table-column",{attrs:{property:"op_object_type",label:t.$t("op_object_type_desc")}}):t._e(),t._v(" "),i("el-table-column",{attrs:{property:"op_object_name",label:t.$t("op_object_name")},scopedSlots:t._u([{key:"default",fn:function(e){return["create"!=e.row.op_action_type&&"update"!=e.row.op_action_type||"page"!=e.row.op_object_type?i("span",[t._v(t._s(e.row.op_object_name))]):i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.visitPage(e.row.op_object_id)}}},[t._v(t._s(e.row.op_object_name))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1)},staticRenderFns:[]};var Ui=i("VU/8")(ji,Ai,!1,function(t){i("ypCA")},null,null).exports,Ei={props:{callback:function(){},page_info:"",item_info:""},data:function(){return{qr_page_link:"#",qr_single_link:"#",share_page_link:"",share_single_link:"",copyText1:"",copyText2:"",isCreateSiglePage:!1,page_id:""}},components:{},computed:{},methods:{sharePage:function(){var t=this.page_id>0?this.page_id:0,e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.share_page_link=this.getRootPath()+"#/"+e+"/"+t,this.qr_page_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_page_link),this.showShare=!0,this.copyText1=this.item_info.item_name+" - "+this.page_info.page_title+"\r\n"+this.share_page_link,this.copyText2=this.page_info.page_title+"\r\n"+this.share_single_link},onCopy:function(){this.$message(this.$t("copy_success"))},checkCreateSiglePage:function(t){var e=this;t?this.createSiglePage():this.$confirm(this.$t("cancelSingle")," ",{confirmButtonText:this.$t("cancelSingleYes"),cancelButtonText:this.$t("cancelSingleNo"),type:"warning"}).then(function(){e.createSiglePage()},function(){e.isCreateSiglePage=!0})},createSiglePage:function(){var t=this,e=this.page_id>0?this.page_id:0;this.request("/api/page/createSinglePage",{page_id:e,isCreateSiglePage:this.isCreateSiglePage}).then(function(e){var i=e.data.unique_key;t.share_single_link=i?t.getRootPath()+"#/p/"+i:""})}},mounted:function(){this.page_id=this.page_info.page_id,this.sharePage(),this.page_info.unique_key&&(this.isCreateSiglePage=!0,this.share_single_link=this.getRootPath()+"#/p/"+this.page_info.unique_key)}},Ri={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{title:t.$t("share"),onCancel:t.callback,showCancel:!1,showOk:!1,onOK:t.callback,width:"600px"}},[i("p",[t._v("\n "+t._s(t.$t("item_page_address"))+" :\n "),i("code",[t._v(t._s(t.share_page_link))]),t._v(" "),i("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.share_page_link,expression:"share_page_link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy cursor-pointer"})]),t._v(" "),t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.item_info.item_edit,expression:"item_info.item_edit"}]},[i("el-checkbox",{on:{change:t.checkCreateSiglePage},model:{value:t.isCreateSiglePage,callback:function(e){t.isCreateSiglePage=e},expression:"isCreateSiglePage"}},[t._v(t._s(t.$t("create_sigle_page")))]),t._v(" "),t.isCreateSiglePage?i("p",[t._v("\n "+t._s(t.$t("single_page_address"))+" :\n "),i("code",[t._v(t._s(t.share_single_link))]),t._v(" "),i("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.share_single_link,expression:"share_single_link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"el-icon-document-copy cursor-pointer"})]):t._e(),t._v(" "),i("p"),t._v(" "),i("p",{staticClass:"tips-text"},[t._v(t._s(t.$t("create_sigle_page_tips")))])],1)])],1)},staticRenderFns:[]};var Ni=i("VU/8")(Ei,Ri,!1,function(t){i("Imfp")},null,null).exports,zi={name:"Login",components:{},props:{callback:function(){},item_id:0},data:function(){return{catalogs:[],cat_id:"",export_type:"1",export_format:"word",pages:[{page_id:"0",page_title:this.$t("all_pages")}],page_id:"0",showMarkdown:!0,user_token:""}},computed:{computed_catalogs:function(){for(var t=this.catalogs.slice(0),e=[],i=0;i0)for(var n=0;n0)for(var s=0;s0?window.location.reload():(this.$router.push({path:"/item/index"}),window.location.reload())}},mounted:function(){var t=v();this.user_token=t.user_token,this.importToItemId=this.item_id},beforeDestroy:function(){}},Gi={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("SDialog",{attrs:{onCancel:t.callback,title:t.$t("import"),width:"400px",showOk:!1}},[i("div",[i("div",{staticClass:"ml-6"},[i("el-radio",{attrs:{label:t.item_id},model:{value:t.importToItemId,callback:function(e){t.importToItemId=e},expression:"importToItemId"}},[t._v(t._s(t.$t("import_into_cur_item")))]),t._v(" "),i("el-radio",{attrs:{label:"0"},model:{value:t.importToItemId,callback:function(e){t.importToItemId=e},expression:"importToItemId"}},[t._v(t._s(t.$t("import_into_new_item")))])],1),t._v(" "),i("br"),t._v(" "),i("div",[i("el-upload",{attrs:{drag:"",name:"file",action:t.uploadUrl,data:{item_id:this.importToItemId,user_token:this.user_token},"on-success":t.uploadCallback,"show-file-list":!1}},[i("i",{staticClass:"el-icon-upload"}),t._v(" "),i("div",{staticClass:"el-upload__text"},[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips2"))}})])])],1),t._v(" "),i("br"),t._v(" "),i("div",[i("span",{staticClass:"tips-text",domProps:{innerHTML:t._s(t.$t("import_file_tips1"))}})]),t._v(" "),i("br"),t._v(" "),i("div",{staticClass:"tips-text"},[t._v(t._s(t.$t("import_into_cur_item_tips")))])])])],1)},staticRenderFns:[]};var Ji={components:{PageEdit:Mi,Catalog:yi,Member:Ut,HistoryVersion:We,SortPage:mi,ChangeLog:Ui,OpenApi:Rt,Recycle:zt,Archive:Bt,Attorn:Gt,Delete:Yt,ItemUpdate:W,ItemExport:Bi,ItemImport:i("VU/8")(Ki,Gi,!1,function(t){i("mNYk")},"data-v-70ffa830",null).exports,Share:Ni,UserSetting:q,Message:kt},props:{searchItem:function(){},page_id:"",item_info:{},page_info:{}},data:function(){return{showPageEdit:!1,showCatalog:!1,item_id:"",edit_page_id:0,showTeam:!1,copy_page_id:0,showHistoryVersiong:!1,showSortPage:!1,showMember:!1,showOpenApi:!1,showRecycle:!1,showArchive:!1,showAttorn:!1,showDelete:!1,showItemUpdate:!1,showChangeLog:!1,showItemExport:!1,showItemImport:!1,showShare:!1,showUserSetting:!1,showMessage:!1}},computed:{},methods:{goback:function(){var t=this;setTimeout(function(){t.$router.push({path:"/item/index"})},500)}},mounted:function(){this.item_id=this.item_info.item_id}},Wi={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",{staticClass:"header-right float-right mt-6 mr-5"},[a("div",[e.item_info.item_edit&&e.page_id?a("el-tooltip",{attrs:{effect:"dark",content:e.$t("edit_page")}},[a("div",{staticClass:"icon-item",on:{click:function(t){e.edit_page_id=e.page_id,e.showPageEdit=!0}}},[a("i",{staticClass:"fas fa-edit"})])]):e._e(),e._v(" "),3==e.item_info.item_type&&e.item_info.is_login?a("el-tooltip",{attrs:{effect:"dark",content:"runapi项目请在runapi客户端编辑"}},[a("div",{staticClass:"icon-item cursor-not-allowed"},[a("i",{staticClass:"cursor-not-allowed far fa-edit"})])]):e._e(),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("share"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(t){e.showShare=!0}}},[a("i",{staticClass:"far fa-share-nodes"})])]),e._v(" "),e.item_info.is_login?a("el-tooltip",{attrs:{effect:"dark",content:e.$t("my_notice"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(){e.$store.dispatch("changeNewMsg",0),e.showMessage=!0}}},[a("el-badge",{attrs:{value:e.$store.state.new_msg?"New":""}},[a("i",{staticClass:"far fa-message"})])],1)]):e._e(),e._v(" "),e.item_info.is_login?a("el-tooltip",{attrs:{effect:"dark",content:e.$t("user_center"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(t){e.showUserSetting=!0}}},[a("i",{staticClass:"far fa-user"})])]):e._e(),e._v(" "),e.item_info.is_login?e._e():a("el-tooltip",{attrs:{effect:"dark",content:e.$t("login"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(){e.$router.push({path:"/user/login"})}}},[a("i",{staticClass:"far fa-user"})])]),e._v(" "),e.item_info.is_login?e._e():a("el-tooltip",{attrs:{effect:"dark",content:e.$t("about_showdoc"),placement:"top"}},[a("div",{staticClass:"icon-item",on:{click:function(t){return e.toOutLink("https://www.showdoc.com.cn/help")}}},[a("i",{staticClass:"far fa-circle-info"})])]),e._v(" "),e.item_info.item_manage?a("div",{staticClass:"inline"},[a("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[a("div",{staticClass:"icon-item"},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"far fa-ellipsis"})])]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){e.showItemImport=!0}}},[a("i",{staticClass:"mr-2 far fa-arrow-down-to-bracket",staticStyle:{transform:"rotate(180deg)"}}),e._v("\n "+e._s(e.$t("import"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showItemExport=!0}}},[a("i",{staticClass:"mr-2 far fa-arrow-down-to-bracket"}),e._v("\n "+e._s(e.$t("export"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showMember=!0}}},[a("i",{staticClass:"mr-2 far fa-users"}),e._v("\n "+e._s(e.$t("member_manage"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showRecycle=!0}}},[a("i",{staticClass:"mr-2 far fa-trash"}),e._v("\n "+e._s(e.$t("recycle"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showItemUpdate=!0}}},[a("i",{staticClass:"mr-2 far fa-edit"}),e._v("\n "+e._s(e.$t("update_item_base_info"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showChangeLog=!0}}},[a("i",{staticClass:"mr-2 far fa-rectangle-vertical-history"}),e._v("\n "+e._s(e.$t("item_change_log"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showAttorn=!0}}},[a("i",{staticClass:"mr-2 fas fa-recycle"}),e._v("\n "+e._s(e.$t("attorn_item"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showArchive=!0}}},[a("i",{staticClass:"mr-2 far fa-box-archive"}),e._v("\n "+e._s(e.$t("archive_item"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showDelete=!0}}},[a("i",{staticClass:"mr-2 fae fa-trash-can"}),e._v("\n "+e._s(e.$t("delete_item"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showOpenApi=!0}}},[a("i",{staticClass:"mr-2 fas fa-terminal"}),e._v("\n "+e._s(e.$t("open_api"))+"\n ")])],1)],1)],1):e._e()],1),e._v(" "),e.showPageEdit?a("PageEdit",{attrs:{edit_page_id:e.edit_page_id,item_id:e.item_info.item_id,copy_page_id:e.copy_page_id,callback:function(){e.showPageEdit=!1,e.reload()}}}):e._e(),e._v(" "),e.showCatalog?a("Catalog",{attrs:{item_id:e.item_info.item_id,callback:function(){e.showCatalog=!1,e.reload()}}}):e._e(),e._v(" "),e.showShare?a("Share",{attrs:{callback:function(){e.showShare=!1},item_info:e.item_info,page_info:e.page_info}}):e._e(),e._v(" "),e.showMember?a("Member",{attrs:{callback:function(){e.showMember=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showHistoryVersiong?a("HistoryVersion",{attrs:{page_id:e.page_id,is_show_recover_btn:!1,is_modal:!1,callback:function(e){t.showHistoryVersiong=!1}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e(),e._v(" "),e.showRecycle?a("Recycle",{attrs:{callback:function(){e.showRecycle=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showItemUpdate?a("ItemUpdate",{attrs:{callback:function(){e.showItemUpdate=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showChangeLog?a("ChangeLog",{attrs:{callback:function(){e.showChangeLog=!1},item_id:e.item_id,page_id:e.page_id}}):e._e(),e._v(" "),e.showArchive?a("Archive",{attrs:{callback:function(){e.showArchive=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showAttorn?a("Attorn",{attrs:{callback:function(){e.showAttorn=!1,e.goback()},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showDelete?a("Delete",{attrs:{callback:function(){e.showDelete=!1,e.goback()},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showOpenApi?a("OpenApi",{attrs:{callback:function(){e.showOpenApi=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showItemExport?a("ItemExport",{attrs:{callback:function(){e.showItemExport=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showItemImport?a("ItemImport",{attrs:{callback:function(){e.showItemImport=!1},item_id:e.item_info.item_id}}):e._e(),e._v(" "),e.showUserSetting?a("UserSetting",{attrs:{callback:function(){e.showUserSetting=!1}}}):e._e(),e._v(" "),e.showMessage?a("Message",{attrs:{callback:function(){e.showMessage=!1}}}):e._e()],1)},staticRenderFns:[]};var Yi=i("VU/8")(Ji,Wi,!1,function(t){i("koPa")},"data-v-10b464a2",null).exports,Xi={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"header grey-bg"},[e("div",{staticClass:"logo float-left mt-6 ml-5 cursor-pointer"},[e("div",[e("div",{staticClass:"inline-block align-middle"},[e("router-link",{attrs:{to:"/item/index"}},[e("div",{staticClass:"icon-item"},[e("i",{staticClass:"far fa-arrow-left"})])])],1),this._v(" "),e("div",{staticClass:"inline-block align-middle"},[e("div",{staticClass:"font-bold"},[this._v(this._s(this.item_info.item_name))])])])]),this._v(" "),this._t("default")],2)},staticRenderFns:[]};var Qi=i("VU/8")({props:{item_info:""},data:function(){return{}},components:{},computed:{},methods:{},mounted:function(){}},Xi,!1,function(t){i("vUpo")},"data-v-680e67fd",null).exports,Zi={props:{item_info:{type:Object,required:!0},searchItem:{type:Function,required:!0},getPageContent:{type:Function,required:!0}},data:function(){return{drawer:!1,menu:[],defaultProps:{children:"children",label:"title"},openeds:[],hideElement:!1,lastScrollTop:0}},methods:{handleNodeClick:function(t){t.page_id&&(this.selectMenu(t.page_id),this.drawer=!1)},selectMenu:function(t){this.changeUrl(t),this.getPageContent(t),this.$refs.tree.setCurrentKey(parseInt(t))},changeUrl:function(t){if(!(t>0)||t!=this.$route.query.page_id&&t!=this.$route.params.page_id){var e=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.$router.replace({path:"/"+e+"/"+t})}},handleScroll:function(){var t=event.target.scrollTop||window.pageYOffset||document.documentElement.scrollTop;t<100||t0?a("el-tree",{ref:"tree",attrs:{data:t.menu,props:t.defaultProps,"default-expanded-keys":t.openeds,"node-key":"id"},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node;return e.data,a("span",{staticClass:"custom-tree-node"},[a("span",["folder"===i.data.type?a("span",{staticClass:"custom-tree-node node-folder",attrs:{id:"node-"+i.data.id}},[a("i",{staticClass:"mr-2 far fa-folder-closed"}),t._v(" "),a("span",{staticClass:"node-label"},[t._v(t._s(i.label))])]):a("span",{staticClass:"custom-tree-node node-page",attrs:{id:"node-"+i.data.id}},[a("i",{staticClass:"mr-2 fas fa-file-alt"}),t._v(" "),a("span",{staticClass:"node-label"},[t._v(t._s(i.label))])])])])}}],null,!1,1330467333)}):t._e()],1)])],1)},staticRenderFns:[]};var ea=i("VU/8")(Zi,ta,!1,function(t){i("N2Ug")},"data-v-ebaaf0a8",null).exports,ia={props:{searchItem:function(){},page_id:"",item_id:"",page_info:{},item_info:{}},data:function(){return{showPageEdit:!1,showCatalog:!1,showSortPage:!1,showRecycle:!1,copyPageId:0,showHistoryVersiong:!1}},components:{PageEdit:Mi,Catalog:yi,SortPage:mi,Recycle:zt,HistoryVersion:We},computed:{},methods:{showPageInfo:function(){var t="本页面由 "+this.page_info.author_username+" 于 "+this.page_info.addtime+" 更新";this.$alert(t)},deletePage:function(){var t=this,e=this.page_id>0?this.page_id:0;this.$confirm(this.$t("comfirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){t.request("/api/page/delete",{page_id:e}).then(function(t){window.location.reload()})})}},mounted:function(){}},aa={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return a("div",[e.item_info.item_edit?a("div",{staticClass:"left-menu-bottom-bar",attrs:{id:"left-menu-bottom-bar"}},[a("el-tooltip",{attrs:{effect:"dark",content:e.$t("new_page"),placement:"top"}},[a("div",{staticClass:"bottom-bar-item-icon",on:{click:function(t){e.showPageEdit=!0}}},[a("i",{staticClass:"far fa-plus"})])]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("copy_page"),placement:"top"}},[a("div",{staticClass:"bottom-bar-item-icon",on:{click:function(t){e.copyPageId=e.page_id,e.showPageEdit=!0}}},[a("i",{staticClass:" far fa-clone"})])]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:e.$t("new_catalog"),placement:"top"}},[a("div",{staticClass:"bottom-bar-item-icon",on:{click:function(t){e.showCatalog=!0}}},[a("i",{staticClass:"far fa-folder-plus"})])]),e._v(" "),a("div",{staticClass:"bottom-bar-item-icon"},[a("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[a("div",{staticClass:"bottom-bar-item-icon"},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:" fas fa-ellipsis"})])]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){e.showRecycle=!0}}},[a("i",{staticClass:" far fa-trash"}),e._v("\n "+e._s(e.$t("recycle"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showHistoryVersiong=!0}}},[a("i",{staticClass:" far fa-rectangle-history"}),e._v("\n "+e._s(e.$t("page_history_version"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){e.showSortPage=!0}}},[a("i",{staticClass:" far fa-sort"}),e._v("\n "+e._s(e.$t("sort_page"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.showPageInfo(t)}}},[a("i",{staticClass:" far fa-circle-info"}),e._v("\n "+e._s(e.$t("page_info"))+"\n ")]),e._v(" "),a("el-dropdown-item",{nativeOn:{click:function(t){return e.deletePage(t)}}},[a("i",{staticClass:" far fa-trash-can"}),e._v("\n "+e._s(e.$t("delete_page"))+"\n ")])],1)],1)],1),e._v(" "),e.showPageEdit?a("PageEdit",{attrs:{edit_page_id:0,item_id:e.item_id,copy_page_id:e.copyPageId,callback:function(){e.showPageEdit=!1,e.reload()}}}):e._e(),e._v(" "),e.showCatalog?a("Catalog",{attrs:{item_id:e.item_id,callback:function(){e.showCatalog=!1,e.reload()}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e(),e._v(" "),e.showRecycle?a("Recycle",{attrs:{callback:function(){e.showRecycle=!1},item_id:e.item_id}}):e._e(),e._v(" "),e.showHistoryVersiong?a("HistoryVersion",{attrs:{page_id:e.page_id,is_show_recover_btn:!1,is_modal:!1,callback:function(e){t.showHistoryVersiong=!1}}}):e._e(),e._v(" "),e.showSortPage?a("SortPage",{attrs:{callback:function(){e.showSortPage=!1,e.reload()},item_id:e.item_id,page_id:e.page_id,cat_id:e.page_info.cat_id}}):e._e()],1):e._e()])},staticRenderFns:[]};var na={props:{item_info:"",searchItem:function(){},keyword:""},data:function(){return{content:"###正在加载...",page_id:"",page_title:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",page_info:"",copyText:"",attachment_count:"",fullPage:!1,showToc:!0,showComp:!0,emptyItem:!1,showAttachmentListDialog:!1,showMobileHeader:!1,showPCHeader:!0,device:"pc"}},components:{Editormd:we,LeftMenu:Vi,Toc:$e,AttachmentList:ti,Header:Qi,HeaderRight:Yi,LeftMenuBottomBar:i("VU/8")(ia,aa,!1,function(t){i("UA7n"),i("jJGY")},"data-v-73ed3b30",null).exports,MobileHeader:ea},methods:{getPageContent:function(t){var e=this;t<=0||(this.adaptScreen(),this.request("/api/page/info",{page_id:t},"post",!1).then(function(i){e.content=Ke(i.data.page_content,e.$store.state.item_info.global_param),e.$store.dispatch("changeOpenCatId",i.data.cat_id),e.page_title=i.data.page_title,e.page_info=i.data,e.attachment_count=i.data.attachment_count>0?i.data.attachment_count:"",e.page_id=0,e.item_info.default_page_id=t,e.$nextTick(function(){e.page_id=t,document.body.scrollTop=document.documentElement.scrollTop=0,document.title=e.page_title+"--ShowDoc"})}))},adaptToMobile:function(){this.$refs.leftMenu.hideMenu();var t=document.getElementById("doc-container");t.style.padding="0px",t.style.width="calc( 100vw - 1px )",t.style.minWidth="calc( 100vw - 1px )",t.style.maxWidth="calc( 100vw - 1px )",t.style.margin="0px",this.showPCHeader=!1,this.showMobileHeader=!0,this.device="mobile";var e=document.getElementById("content-side");e.style.width="calc (100% -1px)",e.style.minWidth="calc( 100% - 1px )",e.style.maxWidth="calc( 100% - 1px )",e.style.minHeight="calc(100vh - 60px + 5px )",e.style.marginLeft="0px",e.style.borderRadius="0px",document.getElementById("doc-title-box").style.marginTop="0px",this.showToc=!1;var i=document.getElementById("left-menu-bottom-bar");i&&(i.style.display="none")},adaptScreen:function(){var t=this;this.$nextTick(function(){t.isMobile()&&t.adaptToMobile()})},onCopy:function(){this.$message(this.$t("copy_success"))},clickFullPage:function(){var t=this;if(this.fullPage)this.showComp=!1,this.$nextTick(function(){t.showComp=!0,t.showToc=!0,t.showPCHeader=!0,t.showMobileHeader=!1,t.device="pc"});else{this.adaptToMobile(),this.showMobileHeader=!1;var e=this.page_id;this.page_id=0,this.$nextTick(function(){t.page_id=e,setTimeout(function(){$(".editormd-html-preview").css("font-size","16px")},200)}),$("#left-side").hide(),$("#right-side").hide(),$("#left-menu-bottom-bar").hide()}this.fullPage=!this.fullPage}},mounted:function(){this.adaptScreen(),this.item_info&&this.item_info.menu&&0===this.item_info.menu.catalogs.length&&0===this.item_info.menu.pages.length&&(this.emptyItem=!0)}},oa={render:function(){var t=this,e=this,i=e.$createElement,a=e._self._c||i;return e.showComp?a("div",{class:e.device},[e.showPCHeader?a("Header",{attrs:{id:"header",item_info:e.item_info}},[a("HeaderRight",{attrs:{page_id:e.page_id,item_info:e.item_info,page_info:e.page_info,searchItem:e.searchItem}})],1):e._e(),e._v(" "),e.showMobileHeader?a("MobileHeader",{attrs:{item_info:e.item_info,searchItem:e.searchItem,getPageContent:e.getPageContent}}):e._e(),e._v(" "),a("div",{staticClass:"doc-container ",attrs:{id:"doc-container"}},[a("div",{attrs:{id:"left-side"}},[e.item_info&&!e.showMobileHeader?a("LeftMenu",{ref:"leftMenu",attrs:{getPageContent:e.getPageContent,keyword:e.keyword,item_info:e.item_info,searchItem:e.searchItem}}):e._e(),e._v(" "),e.item_info?a("LeftMenuBottomBar",{attrs:{item_id:e.item_info.item_id,page_info:e.page_info,searchItem:e.searchItem,page_id:e.page_id,item_info:e.item_info}}):e._e()],1),e._v(" "),a("div",{attrs:{id:"content-side"}},[a("div",{attrs:{id:"p-content"}},[a("div",{staticClass:"doc-title-box",attrs:{id:"doc-title-box"}},[a("span",{staticClass:"v3-font-size-lg font-bold ",attrs:{id:"doc-title"}},[e._v(e._s(e.page_title))]),e._v(" "),a("span",{staticClass:"float-right"},[e.attachment_count?a("i",{staticClass:"el-icon-upload item",attrs:{id:"attachment"},on:{click:function(t){e.showAttachmentListDialog=!0}}}):e._e(),e._v(" "),e.page_id&&!e.isMobile()?a("i",{staticClass:"el-icon-full-screen",attrs:{id:"full-page"},on:{click:e.clickFullPage}}):e._e()])]),e._v(" "),a("div",{attrs:{id:"doc-body"}},[a("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[e.page_id?a("Editormd",{attrs:{content:e.content,type:"html",keyword:e.keyword}}):e._e()],1),e._v(" "),e.emptyItem&&"zh-cn"==e.$lang?a("div",{staticClass:"empty-tips"},[e._m(0),e._v(" "),e._m(1)]):e._e()])])]),e._v(" "),e._m(2)]),e._v(" "),a("el-backtop",{attrs:{right:"40",bottom:"40"}}),e._v(" "),e.page_id&&e.showToc?a("Toc"):e._e(),e._v(" "),e.showAttachmentListDialog?a("AttachmentList",{attrs:{item_id:e.page_info.item_id,manage:!1,page_id:e.page_info.page_id,callback:function(e){t.showAttachmentListDialog=!1}}}):e._e()],1):e._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon"},[e("i",{staticClass:"el-icon-warning"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text"},[i("p",[t._v("\n 当前项目是空的,你可以点击左下方的 + 以手动添加页面。\n ")]),t._v(" "),i("div",[t._v("\n 除了手动添加外,你还可以通过以下三种方式自动化生成文档:\n "),i("p",{staticClass:"links"},[i("i",{staticClass:"el-icon-star-on v3-color-yellow"}),t._v(" "),i("a",{attrs:{href:"https://www.showdoc.com.cn/runapi",target:"_blank"}},[t._v("\n 使用runapi工具自动生成(推荐)")]),i("i",{staticClass:"el-icon-star-on v3-color-yellow"}),i("br"),t._v(" "),i("a",{attrs:{href:"https://www.showdoc.com.cn/page/7416564025093",target:"_blank"}},[t._v("\n 使用程序注释自动生成")]),i("br"),t._v(" "),i("a",{attrs:{href:"https://www.showdoc.com.cn/page/102098",target:"_blank"}},[t._v("自己写程序调用接口来生成")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"right-side"}},[e("div",{attrs:{id:"toc-pos"}})])}]};var sa=i("VU/8")(na,oa,!1,function(t){i("fPSf")},"data-v-77845de8",null).exports,ra={components:{Member:Ut,Archive:Bt,Attorn:Gt,Delete:Yt,ItemUpdate:W,Share:Zt,PageEdit:Mi},props:{item_info:{},page_id:0},data:function(){return{lang:"",item_id:"",showTeam:!1,showHistoryVersiong:!1,showMember:!1,showArchive:!1,showAttorn:!1,showItemUpdate:!1,showShare:!1,showDelete:!1,showPageEdit:!1}},methods:{goback:function(){var t=this;setTimeout(function(){t.$router.push({path:"/item/index"})},500)}},mounted:function(){this.item_id=this.item_info.item_id}},la={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header-right float-right mt-6 mr-5"},[i("div",[t.item_info.item_edit?i("div",{staticClass:"icon-item",on:{click:function(e){t.showPageEdit=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("edit_page")}},[i("i",{staticClass:"far fa-edit"})])],1):t._e(),t._v(" "),i("div",{staticClass:"icon-item",on:{click:function(e){t.showShare=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("share"),placement:"top"}},[i("i",{staticClass:"far fa-share-nodes"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:function(e){t.showMember=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("member_manage"),placement:"top"}},[i("i",{staticClass:"fal fa-users"})])],1):t._e(),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(){t.$router.push({path:"/user/login"})}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("login"),placement:"top"}},[i("i",{staticClass:"far fa-user"})])],1),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/help")}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("about_showdoc"),placement:"top"}},[i("i",{staticClass:"far fa-circle-info"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"inline"},[i("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[i("div",{staticClass:"icon-item"},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"far fa-ellipsis"})])]),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){t.showItemUpdate=!0}}},[i("i",{staticClass:"mr-2 far fa-edit"}),t._v("\n "+t._s(t.$t("update_item_base_info"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showAttorn=!0}}},[t._v("\n "+t._s(t.$t("attorn_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showArchive=!0}}},[i("i",{staticClass:"mr-2 far fa-box-archive"}),t._v("\n "+t._s(t.$t("archive_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showDelete=!0}}},[i("i",{staticClass:"mr-2 far fa-trash-can"}),t._v("\n "+t._s(t.$t("delete_item"))+"\n ")])],1)],1)],1):t._e()]),t._v(" "),t.showPageEdit?i("PageEdit",{attrs:{edit_page_id:t.page_id,item_id:t.item_info.item_id,callback:function(){t.showPageEdit=!1,t.reload()}}}):t._e(),t._v(" "),t.showShare?i("Share",{attrs:{callback:function(){t.showShare=!1},item_info:t.item_info}}):t._e(),t._v(" "),t.showMember?i("Member",{attrs:{callback:function(){t.showMember=!1},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showItemUpdate?i("ItemUpdate",{attrs:{callback:function(){t.showItemUpdate=!1,t.reload()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showArchive?i("Archive",{attrs:{callback:function(){t.showArchive=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showAttorn?i("Attorn",{attrs:{callback:function(){t.showAttorn=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showDelete?i("Delete",{attrs:{callback:function(){t.showDelete=!1,t.goback()},item_id:t.item_info.item_id}}):t._e()],1)},staticRenderFns:[]};var ca={props:{item_info:""},data:function(){return{menu:"",content:"",page_title:"",page_id:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",copyText:""}},components:{Editormd:we,Toc:$e,Header:Qi,HeaderRight:i("VU/8")(ra,la,!1,function(t){i("X23A")},"data-v-a0ed0c62",null).exports},methods:{getPageContent:function(t){var e=this;t||(t=this.page_id),this.request("/api/page/info",{page_id:t}).then(function(t){var i=t.data;e.content=Ke(i.page_content),e.page_title=i.page_title})},editPage:function(){var t=this.page_id>0?this.page_id:0,e="/page/edit/"+this.item_info.item_id+"/"+t;this.$router.push({path:e})},shareItem:function(){var t=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.share_item_link=this.getRootPath()+"#/"+t,this.qr_item_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_item_link),this.dialogVisible=!0,this.copyText=this.item_info.item_name+" -- ShowDoc \r\n"+this.share_item_link},adaptToMobile:function(){var t=document.getElementById("doc-container");t.style.width="95%",t.style.padding="5px",t.style.marginTop="10px",document.getElementById("header").style.display="none"},onCopy:function(){this.$message(this.$t("copy_success"))}},mounted:function(){var t=this;this.menu=this.item_info.menu,this.page_id=this.menu.pages[0].page_id,this.getPageContent(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){t.adaptToMobile()})}},ma={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello grey-bg"},[i("Header",{attrs:{id:"header",item_info:t.item_info}},[i("HeaderRight",{attrs:{item_info:t.item_info,page_id:t.page_id}})],1),t._v(" "),i("div",{staticClass:"container doc-container",attrs:{id:"doc-container"}},[i("div",{staticClass:"doc-title-box"},[i("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),t._v(" "),i("h2",{attrs:{id:"doc-title"}},[t._v(t._s(t.page_title))])]),t._v(" "),i("div",{attrs:{id:"doc-body"}},[i("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[t.content?i("Editormd",{attrs:{content:t.content,type:"html"}}):t._e()],1)])]),t._v(" "),t.dialogVisible?i("SDialog",{attrs:{title:t.$t("share"),onCancel:function(){t.dialogVisible=!1},showCancel:!1,onOK:function(){t.dialogVisible=!1},width:"500px"}},[i("div",{staticClass:"text-center"},[i("p",[t._v("\n "+t._s(t.$t("item_address"))+" :\n "),i("code",[t._v(t._s(t.share_item_link))])]),t._v(" "),i("p",[i("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copyhttplist",value:t.copyText,expression:"copyText",arg:"copyhttplist"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"home-phone-butt",attrs:{href:"javascript:;"}},[t._v(t._s(t.$t("copy_link")))])]),t._v(" "),i("p",{staticStyle:{"border-bottom":"1px solid #eee"}},[i("img",{staticStyle:{width:"114px",height:"114px"},attrs:{id:"",src:t.qr_item_link}})])])]):t._e(),t._v(" "),i("el-backtop",{attrs:{right:"40",bottom:"40"}}),t._v(" "),t.page_id?i("Toc"):t._e(),t._v(" "),i("Footer"),t._v(" "),i("div",{})],1)},staticRenderFns:[]};var da=i("VU/8")(ca,ma,!1,function(t){i("hQ8A")},"data-v-791c56a5",null).exports,_a={components:{Member:Ut,Archive:Bt,Attorn:Gt,Delete:Yt,ItemUpdate:W,Share:Zt},props:{item_info:{},spreadsheetObj:{},exportFile:function(){},improtFile:function(){}},data:function(){return{item_id:"",showTeam:!1,copy_page_id:0,showHistoryVersiong:!1,showMember:!1,showArchive:!1,showAttorn:!1,showItemUpdate:!1,showShare:!1,showImport:!1,showDelete:!1}},methods:{goback:function(){this.$router.push({path:"/item/index"}),setTimeout(function(){window.location.reload()},200)}},mounted:function(){this.item_id=this.item_info.item_id}},ua={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"header-right float-right mt-6 mr-5"},[i("div",[i("div",{staticClass:"icon-item",on:{click:function(e){t.showShare=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("share"),placement:"top"}},[i("i",{staticClass:"far fa-share-nodes"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:t.exportFile}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("export"),placement:"top"}},[i("i",{staticClass:"far fa-arrow-down-to-bracket"})])],1):t._e(),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:function(e){t.showImport=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("import"),placement:"top"}},[i("i",{staticClass:"far fa-arrow-down-to-bracket",staticStyle:{transform:"rotate(180deg)"}})])],1):t._e(),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"icon-item",on:{click:function(e){t.showMember=!0}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("member_manage"),placement:"top"}},[i("i",{staticClass:"fal fa-users"})])],1):t._e(),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(){t.$router.push({path:"/user/login"})}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("login"),placement:"top"}},[i("i",{staticClass:"far fa-user"})])],1),t._v(" "),t.item_info.is_login?t._e():i("div",{staticClass:"icon-item",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/help")}}},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("about_showdoc"),placement:"top"}},[i("i",{staticClass:"far fa-circle-info"})])],1),t._v(" "),t.item_info.item_manage?i("div",{staticClass:"inline"},[i("el-dropdown",{attrs:{"show-timeout":0,trigger:"hover"}},[i("div",{staticClass:"icon-item"},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"far fa-ellipsis"})])]),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){t.showItemUpdate=!0}}},[i("i",{staticClass:"mr-2 far fa-edit"}),t._v("\n "+t._s(t.$t("update_item_base_info"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showAttorn=!0}}},[i("i",{staticClass:"mr-2 far fa-recycle"}),t._v("\n "+t._s(t.$t("attorn_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showArchive=!0}}},[i("i",{staticClass:"mr-2 far fa-archive"}),t._v("\n "+t._s(t.$t("archive_item"))+"\n ")]),t._v(" "),i("el-dropdown-item",{nativeOn:{click:function(e){t.showDelete=!0}}},[i("i",{staticClass:"mr-2 far fa-trash-can"}),t._v("\n "+t._s(t.$t("delete_item"))+"\n ")])],1)],1)],1):t._e()]),t._v(" "),t.showShare?i("Share",{attrs:{callback:function(){t.showShare=!1},item_info:t.item_info}}):t._e(),t._v(" "),t.showMember?i("Member",{attrs:{callback:function(){t.showMember=!1},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showItemUpdate?i("ItemUpdate",{attrs:{callback:function(){t.showItemUpdate=!1,t.reload()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showArchive?i("Archive",{attrs:{callback:function(){t.showArchive=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showAttorn?i("Attorn",{attrs:{callback:function(){t.showAttorn=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showDelete?i("Delete",{attrs:{callback:function(){t.showDelete=!1,t.goback()},item_id:t.item_info.item_id}}):t._e(),t._v(" "),t.showImport?i("SDialog",{attrs:{title:t.$t("import_excel"),onCancel:function(){t.showImport=!1},onOK:function(){t.showImport=!1},width:"400px"}},[i("div",{staticClass:"text-center"},[i("p",[i("input",{attrs:{type:"file",name:"xlfile",id:"xlf"},on:{change:function(e){t.improtFile(e.target.files),t.showImport=!1}}})])])]):t._e()],1)},staticRenderFns:[]};var pa=i("VU/8")(_a,ua,!1,function(t){i("AzjR")},"data-v-191bcb4a",null).exports;if("undefined"!=typeof window)var ha=i("zhAq");var fa={props:{item_info:""},data:function(){return{menu:"",content:"",page_title:"",page_id:"",dialogVisible:!1,share_item_link:"",qr_item_link:"",copyText:"",spreadsheetObj:{},spreadsheetData:{},isLock:0,isEditable:0,intervalId:0}},components:{Header:Qi,HeaderRight:pa},methods:{getPageContent:function(t){var e=this;t||(t=this.page_id),this.request("/api/page/info",{page_id:t}).then(function(t){if(t.data.page_content){var i=void 0;try{i=JSON.parse(Be(t.data.page_content))}catch(t){i={}}e.spreadsheetData=i,e.initSheet(),e.item_info.item_edit&&e.draft()}})},initSheet:function(){var t=this;if(!x_spreadsheet)return!1;var e=this.isEditable?"edit":"read";document.getElementById("table-item").innerHTML="",this.spreadsheetObj=null,this.spreadsheetObj=x_spreadsheet("#table-item",{mode:e,showToolbar:!0,row:{len:800,height:25},view:{height:function(){return document.documentElement.clientHeight-90}}}).loadData(this.spreadsheetData),this.spreadsheetObj.on("cell-edited",function(e,i,a){t.save()})},shareItem:function(){var t=this.item_info.item_domain?this.item_info.item_domain:this.item_info.item_id;this.share_item_link=this.getRootPath()+"#/"+t,this.qr_item_link=DocConfig.server+"/api/common/qrcode&size=3&url="+encodeURIComponent(this.share_item_link),this.dialogVisible=!0,this.copyText=this.item_info.item_name+" -- ShowDoc \r\n"+this.share_item_link},onCopy:function(){this.$message(this.$t("copy_success"))},save:function(){var t=this;this.request("/api/page/save",{page_id:this.page_id,page_title:this.item_info.item_name,item_id:this.item_info.item_id,is_urlencode:1,page_content:encodeURIComponent(C()(this.spreadsheetObj.getData()))}).then(function(e){t.autoSaveTips(),t.deleteDraft()})},draft:function(){var t=this,e="page_content_"+this.page_id;setInterval(function(){var i=C()(t.spreadsheetObj.getData());localStorage.setItem(e,i)},3e4);var i=JSON.parse(localStorage.getItem(e));i&&i.length>0&&localStorage.getItem(e)!=C()(this.spreadsheetObj.getData())&&(localStorage.removeItem(e),this.$confirm(this.$t("draft_tips"),"",{showClose:!1}).then(function(){t.spreadsheetData=i,t.initSheet(),localStorage.removeItem(e)}).catch(function(){localStorage.removeItem(e)}))},deleteDraft:function(){for(var t=0;t-1&&localStorage.removeItem(e)}},setLock:function(){var t=this;this.page_id>0&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_info.item_id}).then(function(){t.isLock=1})},unlock:function(){var t=this;this.isLock&&this.request("/api/page/setLock",{page_id:this.page_id,item_id:this.item_info.item_id,lock_to:1e3}).then(function(){t.isLock=0})},heartBeatLock:function(){var t=this;this.intervalId=setInterval(function(){t.isLock&&t.setLock()},18e4)},remoteIsLock:function(){var t=this;this.request("/api/page/isLock",{page_id:this.page_id}).then(function(e){e.data.lock>0?e.data.is_cur_user>0?(t.isLock=1,t.isEditable=1,t.initSheet(),t.heartBeatLock()):(t.$alert(t.$t("locking")+e.data.lock_username),t.item_info.item_edit=!1,clearInterval(t.intervalId),t.deleteDraft()):(t.setLock(),t.isEditable=1,t.initSheet(),t.heartBeatLock())})},exportFile:function(){var t,e,i=(t=this.spreadsheetObj.getData(),e=XLSX.utils.book_new(),t.forEach(function(t){for(var i=[[]],a=t.rows,n=0;n0&&e.renderWatermark()}else 10307===t.error_code||10303===t.error_code?e.$router.replace({path:"/item/password/"+a,query:{page_id:n,redirect:e.$router.currentRoute.fullPath}}):e.$alert(t.error_message)}),setTimeout(function(){i.close()},2e4)},searchItem:function(t){this.item_info="",this.$store.dispatch("changeItemInfo",""),this.keyword=t,this.getItemMenu(t)},renderWatermark:function(){var t=this;if(this.$store.state.user_info&&this.$store.state.user_info.username){var e=this.$store.state.user_info;e&&e.username&&(this.watermark_txt=e.username+","+ka()().format("L"),e.name&&(this.watermark_txt+=","+e.name),setTimeout(function(){wa.a.load({monitor:!1,watermark_txt:t.watermark_txt,watermark_alpha:.05})},500))}else g(function(e){if(0===e.data.error_code){var i=e.data.data;t.$store.dispatch("changeUserInfo",i).then(function(){t.renderWatermark()})}})}},mounted:function(){this.getItemMenu(),this.$store.dispatch("changeOpenCatId",0)},beforeDestroy:function(){this.$message.closeAll(),this.$notify.closeAll(),document.title="ShowDoc",wa.a.remove()}},Ca={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),t._m(0),t._v(" "),!t.item_info||1!=t.item_info.item_type&&3!=t.item_info.item_type&&"0"!==t.item_info.item_type&&0!==t.item_info.item_type?t._e():i("ShowRegularItem",{attrs:{item_info:t.item_info,searchItem:t.searchItem,keyword:t.keyword}}),t._v(" "),t.item_info&&2==t.item_info.item_type?i("ShowSinglePageItem",{attrs:{item_info:t.item_info}}):t._e(),t._v(" "),t.item_info&&4==t.item_info.item_type?i("ShowTableItem",{attrs:{item_info:t.item_info}}):t._e(),t._v(" "),t.item_info.is_login?i("Notify"):t._e(),t._v(" "),i("Footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"back-home"},[e("a",{attrs:{href:"/"}},[this._v("首页")])])}]};var xa=i("VU/8")($a,Ca,!1,function(t){i("039K")},"data-v-29823b62",null).exports,Ia={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"infoForm",attrs:{"status-icon":"","label-width":"100px"},model:{value:t.infoForm,callback:function(e){t.infoForm=e},expression:"infoForm"}},[i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:"项目名",placement:"right"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:""},model:{value:t.infoForm.item_name,callback:function(e){t.$set(t.infoForm,"item_name",e)},expression:"infoForm.item_name"}})],1)],1),t._v(" "),i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:"项目描述",placement:"right"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("item_description")},model:{value:t.infoForm.item_description,callback:function(e){t.$set(t.infoForm,"item_description",e)},expression:"infoForm.item_description"}})],1)],1),t._v(" "),i("el-form-item",[i("el-tooltip",{attrs:{effect:"dark",content:"假如你的个性域名设置为abc,则你的项目地址为www.showdoc.com.cn/abc",placement:"top-end"}},[i("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:t.$t("info_item_domain")},model:{value:t.infoForm.item_domain,callback:function(e){t.$set(t.infoForm,"item_domain",e)},expression:"infoForm.item_domain"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-radio",{attrs:{label:!0},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("Open_item")))]),t._v(" "),i("el-radio",{attrs:{label:!1},model:{value:t.isOpenItem,callback:function(e){t.isOpenItem=e},expression:"isOpenItem"}},[t._v(t._s(t.$t("private_item")))])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.isOpenItem,expression:"!isOpenItem"}]},[i("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:t.$t("visit_password")},model:{value:t.infoForm.password,callback:function(e){t.$set(t.infoForm,"password",e)},expression:"infoForm.password"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v(t._s(t.$t("submit")))])],1)],1)],1)},staticRenderFns:[]};var Sa={name:"Login",components:{Info:i("VU/8")({name:"Login",components:{},data:function(){return{infoForm:{},isOpenItem:!0}},methods:{getItemInfo:function(){var t=this;this.request("/api/item/detail",{item_id:this.$route.params.item_id}).then(function(e){var i=e.data;i.password&&(t.isOpenItem=!1),t.infoForm=i})},formSubmit:function(){var t=this;if(!this.isOpenItem&&!this.infoForm.password)return this.$alert(this.$t("private_item_passwrod")),!1;this.isOpenItem&&(this.infoForm.password=""),this.request("/api/item/update",{item_id:this.$route.params.item_id,item_name:this.infoForm.item_name,item_description:this.infoForm.item_description,item_domain:this.infoForm.item_domain,password:this.infoForm.password}).then(function(e){t.$message.success(t.$t("modify_success"))})}},mounted:function(){this.getItemInfo()}},Ia,!1,function(t){i("39gu")},"data-v-206c45b2",null).exports,Member:Ut,OpenApi:Rt,Recycle:zt},data:function(){return{userInfo:{}}},methods:{goback:function(){this.$router.go(-1)}},mounted:function(){},beforeDestroy:function(){}},Fa={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("el-container",[i("el-card",{staticClass:"center-card"},[[i("el-button",{staticClass:"goback-btn",attrs:{type:"text"},on:{click:t.goback}},[i("i",{staticClass:"el-icon-back"})]),t._v(" "),i("el-tabs",{attrs:{value:"first",type:"card"}},[i("el-tab-pane",{attrs:{label:t.$t("base_info"),name:"first"}},[i("Info")],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("member_manage"),name:"second"}},[i("Member")],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("open_api"),name:"four"}},[i("OpenApi")],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("recycle"),name:"five"}},[i("Recycle")],1)],1)]],2)],1),t._v(" "),i("Footer")],1)},staticRenderFns:[]};var La=i("VU/8")(Sa,Fa,!1,function(t){i("hBvi")},"data-v-f747da0c",null).exports,Ta={data:function(){return{currentDate:new Date,itemList:{},content:"",page_title:"",page_id:0,fullPage:!1,showComp:!0,showfullPageBtn:!0,showToc:!0}},components:{Editormd:we,Toc:$e},methods:{getPageContent:function(){var t,e=this,i=this.$route.params.page_id,a=this.$route.params.unique_key;t=a?"/api/page/infoByKey":"/api/page/info",this.request(t,{page_id:i,unique_key:a},"post",!1).then(function(t){0===t.error_code?(e.content=Ke(t.data.page_content),e.page_title=t.data.page_title,e.page_id=t.data.page_id,document.title=t.data.page_title):10307===t.error_code||10303===t.error_code?e.$router.replace({path:"/item/password/0",query:{page_id:i,redirect:e.$router.currentRoute.fullPath}}):alert(t.error_message)})},adaptToMobile:function(){var t=document.getElementById("doc-container");t.style.width="95%",t.style.padding="5px",document.getElementById("header").style.height="10px",this.showToc=!1},clickFullPage:function(){var t=this;if(this.fullPage)this.showComp=!1,this.$nextTick(function(){t.showComp=!0,t.showToc=!0});else{this.adaptToMobile();var e=this.page_id;this.page_id=0,this.$nextTick(function(){t.page_id=e,setTimeout(function(){$(".editormd-html-preview").css("font-size","16px")},200)})}this.fullPage=!this.fullPage}},mounted:function(){var t=this;this.getPageContent(),(this.isMobile()||window.screen.width<1e3)&&this.$nextTick(function(){t.showfullPageBtn=!1,t.adaptToMobile()})},beforeDestroy:function(){document.title="ShowDoc"}},Ma={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showComp?i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("div",{attrs:{id:"header"}}),t._v(" "),i("div",{staticClass:"container doc-container",attrs:{id:"doc-container"}},[i("div",{staticClass:"doc-title-box"},[i("span",{staticClass:"dn",attrs:{id:"doc-title-span"}}),t._v(" "),i("h2",{attrs:{id:"doc-title"}},[t._v(t._s(t.page_title))]),t._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:t.showfullPageBtn,expression:"showfullPageBtn"}],staticClass:"el-icon-full-screen",attrs:{id:"full-page"},on:{click:t.clickFullPage}})]),t._v(" "),i("div",{attrs:{id:"doc-body"}},[i("div",{staticClass:"page_content_main",attrs:{id:"page_md_content"}},[t.page_id&&t.content?i("Editormd",{attrs:{content:t.content,type:"html"}}):t._e()],1)])]),t._v(" "),i("el-backtop",{attrs:{right:"40",bottom:"40"}}),t._v(" "),t.page_id&&t.showToc?i("Toc"):t._e(),t._v(" "),i("Footer"),t._v(" "),i("div",{})],1):t._e()},staticRenderFns:[]};var qa=i("VU/8")(Ta,Ma,!1,function(t){i("D8vU")},"data-v-b6671fbe",null).exports;if("undefined"!=typeof window)var Oa=i("zhAq");var Pa={props:{callback:""},data:function(){return{content:"",historyContent:""}},components:{},methods:{getContent:function(){var t=this;this.request("/api/page/diff",{page_id:this.$route.params.page_id,page_history_id:this.$route.params.page_history_id}).then(function(e){var i=e.data;t.content=i.page.page_content,t.historyContent=i.history_page.page_content,t.$nextTick(function(){t.diffUsingJS(0)})})},diffUsingJS:function(t){var e=function(t){return document.getElementById(t)},i=difflib.stringAsLines(e("baseText").value),a=difflib.stringAsLines(e("newText").value),n=new difflib.SequenceMatcher(i,a).get_opcodes(),o=e("diffoutput");o.innerHTML="",o.appendChild(diffview.buildView({baseTextLines:i,newTextLines:a,opcodes:n,baseTextName:this.$t("cur_page_content"),newTextName:this.$t("history_version"),viewType:t}))}},mounted:function(){var t=this;Oa(["static/diff/difflib.js","static/diff/diffview.js"],function(){t.getContent()})},beforeDestroy:function(){}},Da={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("Header"),t._v(" "),i("link",{attrs:{href:"static/diff/diffview.css",rel:"stylesheet"}}),t._v(" "),i("el-container",{staticClass:"container-narrow"},[i("div",{staticClass:"textInput"},[i("textarea",{staticStyle:{display:"none"},attrs:{id:"baseText"},domProps:{innerHTML:t._s(t.content)}})]),t._v(" "),i("div",{staticClass:"textInput spacer"},[i("textarea",{staticStyle:{display:"none"},attrs:{id:"newText"},domProps:{innerHTML:t._s(t.historyContent)}})]),t._v(" "),i("div",{attrs:{id:"diffoutput"}})]),t._v(" "),i("Footer"),t._v(" "),i("div",{})],1)},staticRenderFns:[]};var Va=i("VU/8")(Pa,Da,!1,function(t){i("OY20")},"data-v-35ae0910",null).exports,ja={data:function(){return{page:1,count:7,item_name:"",username:"",itemList:[],total:0,dialogAttornVisible:!1,attornForm:{username:""},attorn_item_id:""}},methods:{getItemList:function(){var t=this;this.request("/api/adminItem/getList",{item_name:this.item_name,username:this.username,page:this.page,count:this.count}).then(function(e){var i=e.data;t.itemList=i.items,t.total=i.total})},formatPrivacy:function(t,e){if(t)return t.password.length>0?this.$t("private"):this.$t("public")},jumpToItem:function(t){var e="#/"+t.item_id;window.open(e)},handleCurrentChange:function(t){this.page=t,this.getItemList()},onSubmit:function(){this.page=1,this.getItemList()},deleteItem:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/adminItem/deleteItem",{item_id:t.item_id}).then(function(t){e.$message.success("删除成功"),e.getItemList()})})},clickAttornItem:function(t){this.dialogAttornVisible=!0,this.attorn_item_id=t.item_id},attorn:function(){var t=this;this.request("/api/adminItem/attorn",{item_id:this.attorn_item_id,username:this.attornForm.username}).then(function(){t.dialogAttornVisible=!1,t.$message.success(t.$t("success")),t.getItemList()})}},mounted:function(){this.getItemList()},beforeDestroy:function(){this.$message.closeAll()}},Aa={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("item_name")},model:{value:t.item_name,callback:function(e){t.item_name=e},expression:"item_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("owner")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1)],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.itemList}},[i("el-table-column",{attrs:{prop:"item_name",label:t.$t("item_name"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_description",label:t.$t("item_description"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"password",label:t.$t("privacy"),formatter:t.formatPrivacy,width:"80"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_id",label:t.$t("link"),width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.jumpToItem(e.row)}}},[t._v(t._s(t.$t("link")))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"username",label:t.$t("owner"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("memberCount"),width:"80"}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_domain",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.clickAttornItem(e.row)}}},[t._v(t._s(t.$t("attorn")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteItem(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogAttornVisible,"close-on-click-modal":!1,width:"300px"},on:{"update:visible":function(e){t.dialogAttornVisible=e}}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("attorn_username")},model:{value:t.attornForm.username,callback:function(e){t.$set(t.attornForm,"username",e)},expression:"attornForm.username"}})],1)],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogAttornVisible=!1}}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.attorn}},[t._v(t._s(t.$t("attorn")))])],1)],1)],1)},staticRenderFns:[]};var Ua={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("username")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1)],1),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogAddVisible=!0}}},[t._v(t._s(t.$t("add_user")))]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.itemList}},[i("el-table-column",{attrs:{prop:"username",label:t.$t("username"),width:"200"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:t.$t("name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"groupid",label:t.$t("userrole"),formatter:t.formatGroup,width:"150"}}),t._v(" "),i("el-table-column",{attrs:{prop:"reg_time",label:t.$t("reg_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"last_login_time",label:t.$t("last_login_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"item_domain",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.clickEdit(e.row)}}},[t._v(t._s(t.$t("edit")))]),t._v(" "),1!=e.row.groupid?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteUser(e.row)}}},[t._v(t._s(t.$t("delete")))]):t._e()]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogAddVisible,"before-close":t.resetForm,"close-on-click-modal":!1,width:"300px"},on:{"update:visible":function(e){t.dialogAddVisible=e}}},[i("el-form",[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"text",placeholder:t.$t("username"),readonly:t.addForm.uid>0},model:{value:t.addForm.username,callback:function(e){t.$set(t.addForm,"username",e)},expression:"addForm.username"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"text",placeholder:t.$t("name")},model:{value:t.addForm.name,callback:function(e){t.$set(t.addForm,"name",e)},expression:"addForm.name"}})],1),t._v(" "),t.addForm.uid<=0?i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("password")},model:{value:t.addForm.password,callback:function(e){t.$set(t.addForm,"password",e)},expression:"addForm.password"}})],1):t._e(),t._v(" "),t.addForm.uid>0?i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:t.$t("update_pwd_tips")},model:{value:t.addForm.password,callback:function(e){t.$set(t.addForm,"password",e)},expression:"addForm.password"}})],1):t._e()],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.resetForm}},[t._v(t._s(t.$t("cancel")))]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.addUser}},[t._v(t._s(t.$t("confirm")))])],1)],1)],1)},staticRenderFns:[]};var Ea={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"150px"}},[i("el-form-item",{attrs:{label:t.$t("register_open")}},[i("el-switch",{model:{value:t.form.register_open,callback:function(e){t.$set(t.form,"register_open",e)},expression:"form.register_open"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("home_page")}},[i("el-select",{attrs:{placeholder:t.$t("please_choose")},model:{value:t.form.home_page,callback:function(e){t.$set(t.form,"home_page",e)},expression:"form.home_page"}},[i("el-option",{attrs:{label:t.$t("full_page"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("login_page"),value:"2"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("jump_to_an_item"),value:"3"}})],1)],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3==t.form.home_page,expression:"form.home_page == 3"}],attrs:{label:t.$t("jump_to_item")}},[i("el-select",{attrs:{placeholder:t.$t("please_choose")},model:{value:t.form.home_item,callback:function(e){t.$set(t.form,"home_item",e)},expression:"form.home_item"}},t._l(t.itemList,function(t){return i("el-option",{key:t.item_id,attrs:{label:t.item_name,value:t.item_id}})}),1)],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{label:"备案号"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.beian,callback:function(e){t.$set(t.form,"beian",e)},expression:"form.beian"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:"设置后会展示在网站首页最下方",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("history_version_count")}},[i("el-input",{staticClass:"form-el",model:{value:t.form.history_version_count,callback:function(e){t.$set(t.form,"history_version_count",e)},expression:"form.history_version_count"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("history_version_count_content"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("watermark")}},[i("el-switch",{model:{value:t.form.show_watermark,callback:function(e){t.$set(t.form,"show_watermark",e)},expression:"form.show_watermark"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("watermark_tips"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("site_url")}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"https://www.your-site.com"},model:{value:t.form.site_url,callback:function(e){t.$set(t.form,"site_url",e)},expression:"form.site_url"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("site_url_tips"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{label:"AI助手认证KEY"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:""},model:{value:t.form.open_api_key,callback:function(e){t.$set(t.form,"open_api_key",e)},expression:"form.open_api_key"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:"点击查看填写说明",placement:"top"}},[i("i",{staticClass:"el-icon-question cursor-pointer ",on:{click:function(e){return t.toOutLink("https://www.showdoc.com.cn/p/30dd0637811cd5c690ffd547f3c46889")}}})])],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{label:"AI助手代理HOST"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"可选"},model:{value:t.form.open_api_host,callback:function(e){t.$set(t.form,"open_api_host",e)},expression:"form.open_api_host"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:"点击查看填写说明",placement:"top"}},[i("i",{staticClass:"el-icon-question cursor-pointer ",on:{click:function(e){return t.toOutLink("https://github.com/star7th/showdoc/issues/1904")}}})])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("oss_open")}},[i("el-switch",{model:{value:t.form.oss_open,callback:function(e){t.$set(t.form,"oss_open",e)},expression:"form.oss_open"}})],1),t._v(" "),t.form.oss_open?i("div",{staticStyle:{"margin-left":"50px"}},[i("el-form-item",{attrs:{label:t.$t("oss_server")}},[i("el-select",{model:{value:t.form.oss_setting.oss_type,callback:function(e){t.$set(t.form.oss_setting,"oss_type",e)},expression:"form.oss_setting.oss_type"}},[i("el-option",{attrs:{label:t.$t("aliyun"),value:"aliyun"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("qiniu"),value:"qiniu"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("qcloud"),value:"qcloud"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("s3_storage"),value:"s3_storage"}})],1)],1),t._v(" "),"qcloud"!=t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"key"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.key,callback:function(e){t.$set(t.form.oss_setting,"key",e)},expression:"form.oss_setting.key"}})],1):t._e(),t._v(" "),"qcloud"!=t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"secret"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.secret,callback:function(e){t.$set(t.form.oss_setting,"secret",e)},expression:"form.oss_setting.secret"}})],1):t._e(),t._v(" "),"aliyun"==t.form.oss_setting.oss_type||"s3_storage"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"endpoint"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.endpoint,callback:function(e){t.$set(t.form.oss_setting,"endpoint",e)},expression:"form.oss_setting.endpoint"}})],1):t._e(),t._v(" "),"qcloud"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"region"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.region,callback:function(e){t.$set(t.form.oss_setting,"region",e)},expression:"form.oss_setting.region"}})],1):t._e(),t._v(" "),"qcloud"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"secretId"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.secretId,callback:function(e){t.$set(t.form.oss_setting,"secretId",e)},expression:"form.oss_setting.secretId"}})],1):t._e(),t._v(" "),"qcloud"==t.form.oss_setting.oss_type?i("el-form-item",{attrs:{label:"secretKey"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.secretKey,callback:function(e){t.$set(t.form.oss_setting,"secretKey",e)},expression:"form.oss_setting.secretKey"}})],1):t._e(),t._v(" "),i("el-form-item",{attrs:{label:"bucket"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.bucket,callback:function(e){t.$set(t.form.oss_setting,"bucket",e)},expression:"form.oss_setting.bucket"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("oss_domain")}},[i("el-select",{staticStyle:{width:"100px"},model:{value:t.form.oss_setting.protocol,callback:function(e){t.$set(t.form.oss_setting,"protocol",e)},expression:"form.oss_setting.protocol"}},[i("el-option",{attrs:{label:"http://",value:"http"}}),t._v(" "),i("el-option",{attrs:{label:"https://",value:"https"}})],1),t._v(" "),i("el-input",{staticClass:"form-el",model:{value:t.form.oss_setting.domain,callback:function(e){t.$set(t.form.oss_setting,"domain",e)},expression:"form.oss_setting.domain"}})],1)],1):t._e(),t._v(" "),i("br"),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("save")))]),t._v(" "),i("el-button",{on:{click:t.loadConfig}},[t._v(t._s(t.$t("cancel")))])],1)],1)],1)},staticRenderFns:[]};var Ra={data:function(){return{page:1,count:7,display_name:"",username:"",dataList:[],total:0,positive_type:"1",attachment_type:"-1",used:0}},methods:{getList:function(){var t=this;this.request("/api/attachment/getAllList",{page:this.page,count:this.count,attachment_type:this.attachment_type,display_name:this.display_name,username:this.username}).then(function(e){var i=e.data;t.dataList=i.list,t.total=parseInt(i.total),t.used=i.used_m})},handleCurrentChange:function(t){this.page=t,this.getList()},onSubmit:function(){this.page=1,this.getList()},visit:function(t){window.open(t.url)},deleteRow:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/attachment/deleteAttachment",{file_id:t.file_id}).then(function(t){e.$message.success(e.$t("op_success")),e.getList()})})}},mounted:function(){this.getList()},beforeDestroy:function(){this.$message.closeAll()}},Na={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("display_name")},model:{value:t.display_name,callback:function(e){t.display_name=e},expression:"display_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-select",{attrs:{placeholder:""},model:{value:t.attachment_type,callback:function(e){t.attachment_type=e},expression:"attachment_type"}},[i("el-option",{attrs:{label:t.$t("all_attachment_type"),value:"-1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("image"),value:"1"}}),t._v(" "),i("el-option",{attrs:{label:t.$t("general_attachment"),value:"2"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{placeholder:t.$t("uploader")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("search")))])],1)],1),t._v(" "),i("P",[t._v(t._s(t.$t("used_space"))+" "+t._s(t.used)+"M")]),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList}},[i("el-table-column",{attrs:{prop:"file_id",label:t.$t("file_id")}}),t._v(" "),i("el-table-column",{attrs:{prop:"display_name",label:t.$t("display_name")}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_type",label:t.$t("file_type"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"file_size_m",label:t.$t("file_size_m"),width:"140"}}),t._v(" "),i("el-table-column",{attrs:{prop:"visit_times",label:t.$t("visit_times")}}),t._v(" "),i("el-table-column",{attrs:{prop:"username",label:t.$t("uploader")}}),t._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:t.$t("add_time"),width:"160"}}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:t.$t("operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.visit(e.row)}}},[t._v(t._s(t.$t("visit")))]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.deleteRow(e.row)}}},[t._v(t._s(t.$t("delete")))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"}),t._v(" "),i("el-pagination",{attrs:{"page-size":t.count,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var za={data:function(){return{form:{ldap_open:!1,ldap_form:{host:"",port:"389",version:"3",base_dn:"",bind_dn:"",bind_password:"",user_field:"",search_filter:"(cn=*)"},oauth2_open:!1,oauth2_form:{redirectUri:"",entrance_tips:"",client_id:"",client_secret:"",protocol:"https",host:"",authorize_path:"",token_path:"",resource_path:"",userinfo_path:"",logout_redirect_uri:""}},login_secret_key:"",itemList:[]}},methods:{saveLdapConfig:function(){var t=this,e=this.$loading();setTimeout(function(){e.close(),t.saving=!1},3e4),this.request("/api/adminSetting/saveLdapConfig",this.form,"post",!0,"json").then(function(i){t.$alert(t.$t("success")),e.close()})},loadLdapConfig:function(){var t=this;this.request("/api/adminSetting/loadLdapConfig",this.form,"post",!0,"json").then(function(e){0!==e.data.length&&(t.form.ldap_open=e.data.ldap_open>0,t.form.ldap_form=e.data.ldap_form?e.data.ldap_form:t.form.ldap_form)})},saveOauth2Config:function(){var t=this;this.request("/api/adminSetting/saveOauth2Config",this.form,"post",!0,"json").then(function(e){t.$alert(t.$t("success"))})},loadOauth2Config:function(){var t=this;this.request("/api/adminSetting/loadOauth2Config",this.form,"post",!0,"json").then(function(e){0!==e.data.length&&(t.form.oauth2_open=e.data.oauth2_open>0,t.form.oauth2_form=e.data.oauth2_form?e.data.oauth2_form:t.form.oauth2_form,t.form.oauth2_form.logout_redirect_uri=e.data.oauth2_form&&e.data.oauth2_form.logout_redirect_uri?e.data.oauth2_form.logout_redirect_uri:"")})},getLoginSecretKey:function(){var t=this;this.request("/api/adminSetting/getLoginSecretKey",{}).then(function(e){t.login_secret_key=e.data.login_secret_key})},resetLoginSecretKey:function(){var t=this;this.$confirm(this.$t("confirm")+"?"," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){t.request("/api/adminSetting/resetLoginSecretKey",{}).then(function(e){t.login_secret_key=e.data.login_secret_key})})}},mounted:function(){this.loadLdapConfig(),this.loadOauth2Config(),this.getLoginSecretKey()},beforeDestroy:function(){this.$message.closeAll()}},Ha={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-tabs",{attrs:{type:"border-card"}},[i("el-tab-pane",{attrs:{label:"LDAP"}},[i("el-form",{ref:"form",attrs:{"label-width":"150px"}},[i("el-form-item",{attrs:{label:t.$t("ldap_open_label")}},[i("el-switch",{model:{value:t.form.ldap_open,callback:function(e){t.$set(t.form,"ldap_open",e)},expression:"form.ldap_open"}})],1),t._v(" "),i("div",[i("el-form-item",{attrs:{label:"ldap host"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.ldap_form.host,callback:function(e){t.$set(t.form.ldap_form,"host",e)},expression:"form.ldap_form.host"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap port"}},[i("el-input",{staticStyle:{width:"90px"},model:{value:t.form.ldap_form.port,callback:function(e){t.$set(t.form.ldap_form,"port",e)},expression:"form.ldap_form.port"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap base dn "}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 dc=showdoc,dc=com"},model:{value:t.form.ldap_form.base_dn,callback:function(e){t.$set(t.form.ldap_form,"base_dn",e)},expression:"form.ldap_form.base_dn"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap bind dn "}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"cn=admin,dc=showdoc,dc=com"},model:{value:t.form.ldap_form.bind_dn,callback:function(e){t.$set(t.form.ldap_form,"bind_dn",e)},expression:"form.ldap_form.bind_dn"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap bind password "}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 123456"},model:{value:t.form.ldap_form.bind_password,callback:function(e){t.$set(t.form.ldap_form,"bind_password",e)},expression:"form.ldap_form.bind_password"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap version"}},[i("el-select",{staticClass:"form-el",model:{value:t.form.ldap_form.version,callback:function(e){t.$set(t.form.ldap_form,"version",e)},expression:"form.ldap_form.version"}},[i("el-option",{attrs:{label:"3",value:"3"}}),t._v(" "),i("el-option",{attrs:{label:"2",value:"2"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:"ldap user filed"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"例如 cn 或者 sAMAccountName"},model:{value:t.form.ldap_form.user_field,callback:function(e){t.$set(t.form.ldap_form,"user_field",e)},expression:"form.ldap_form.user_field"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"search filter"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"(cn=*)"},model:{value:t.form.ldap_form.search_filter,callback:function(e){t.$set(t.form.ldap_form,"search_filter",e)},expression:"form.ldap_form.search_filter"}})],1)],1),t._v(" "),i("br"),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:t.saveLdapConfig}},[t._v(t._s(t.$t("save")))]),t._v(" "),i("el-button",[t._v(t._s(t.$t("cancel")))])],1)],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:"OAuth2"}},[i("el-form",{ref:"form",attrs:{"label-width":"150px"}},[i("el-form-item",{attrs:{label:t.$t("enable_oauth")}},[i("el-switch",{model:{value:t.form.oauth2_open,callback:function(e){t.$set(t.form,"oauth2_open",e)},expression:"form.oauth2_open"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"callback url"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oauth2_form.redirectUri,callback:function(e){t.$set(t.form.oauth2_form,"redirectUri",e)},expression:"form.oauth2_form.redirectUri"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("callback_eg")}},[t._v("\n http://"+t._s(t.$t("your_showdoc_server"))+"/server/?s=/api/extLogin/oauth2\n ")]),t._v(" "),i("div",[i("el-form-item",{attrs:{label:t.$t("入口文字提示")}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:""},model:{value:t.form.oauth2_form.entrance_tips,callback:function(e){t.$set(t.form.oauth2_form,"entrance_tips",e)},expression:"form.oauth2_form.entrance_tips"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("entrance_tips_content"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:"Client id"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oauth2_form.client_id,callback:function(e){t.$set(t.form.oauth2_form,"client_id",e)},expression:"form.oauth2_form.client_id"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Client secret"}},[i("el-input",{staticClass:"form-el",model:{value:t.form.oauth2_form.client_secret,callback:function(e){t.$set(t.form.oauth2_form,"client_secret",e)},expression:"form.oauth2_form.client_secret"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Oauth host"}},[i("el-select",{staticStyle:{width:"100px"},model:{value:t.form.oauth2_form.protocol,callback:function(e){t.$set(t.form.oauth2_form,"protocol",e)},expression:"form.oauth2_form.protocol"}},[i("el-option",{attrs:{label:"http://",value:"http"}}),t._v(" "),i("el-option",{attrs:{label:"https://",value:"https"}})],1),t._v(" "),i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: sso.your-site.com"},model:{value:t.form.oauth2_form.host,callback:function(e){t.$set(t.form.oauth2_form,"host",e)},expression:"form.oauth2_form.host"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Authorize path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/authorize"},model:{value:t.form.oauth2_form.authorize_path,callback:function(e){t.$set(t.form.oauth2_form,"authorize_path",e)},expression:"form.oauth2_form.authorize_path"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"AccessToken path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/token"},model:{value:t.form.oauth2_form.token_path,callback:function(e){t.$set(t.form.oauth2_form,"token_path",e)},expression:"form.oauth2_form.token_path"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"Resource path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/resource"},model:{value:t.form.oauth2_form.resource_path,callback:function(e){t.$set(t.form.oauth2_form,"resource_path",e)},expression:"form.oauth2_form.resource_path"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"User info path"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:"eg: /oauth/v2/me"},model:{value:t.form.oauth2_form.userinfo_path,callback:function(e){t.$set(t.form.oauth2_form,"userinfo_path",e)},expression:"form.oauth2_form.userinfo_path"}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.$t("userinfo_path_content"),placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),t._v(" "),i("el-form-item",{attrs:{label:"Logout_redirect_uri"}},[i("el-input",{staticClass:"form-el",attrs:{placeholder:t.$t("logout_redirect_uri_desc")},model:{value:t.form.oauth2_form.logout_redirect_uri,callback:function(e){t.$set(t.form.oauth2_form,"logout_redirect_uri",e)},expression:"form.oauth2_form.logout_redirect_uri"}})],1)],1),t._v(" "),i("br"),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:t.saveOauth2Config}},[t._v(t._s(t.$t("save")))]),t._v(" "),i("el-button",[t._v(t._s(t.$t("cancel")))])],1)],1)],1),t._v(" "),"zh-cn"==t.$lang?i("el-tab-pane",{attrs:{label:"通用接入"}},[i("div",{staticStyle:{"min-height":"600px","margin-top":"50px","margin-left":"30px"}},[i("p",[t._v("\n LoginSecretKey: \n "),i("el-input",{staticClass:"form-el",attrs:{readonly:""},model:{value:t.login_secret_key,callback:function(e){t.login_secret_key=e},expression:"login_secret_key"}}),t._v(" "),i("el-button",{on:{click:t.resetLoginSecretKey}},[t._v(t._s(t.$t("reset")))])],1),t._v(" "),i("p",[t._v("\n 通用接入提供的是一种自动登录showdoc的能力,需要自己根据文档开发集成。"),i("a",{attrs:{href:"https://www.showdoc.com.cn/p/0fb2753c5a48acc7c3fbbb00f9504e6b",target:"_blank"}},[t._v("点击这里查看文档")])])])]):t._e()],1)],1)},staticRenderFns:[]};var Ba={data:function(){return{isUpdate:!1,cur_version:"",new_version:"",url:""}},methods:{getCurVersion:function(){var t=this;this.request("/api/common/version",{}).then(function(e){e&&e.data&&e.data.version&&(t.cur_version=e.data.version)})},checkUpadte:function(){var t=this;this.request("/api/adminUpdate/checkUpdate",{}).then(function(e){e&&e.data&&e.data.url&&(t.url=e.data.url,t.new_version=e.data.new_version,t.cur_version=e.data.version,t.isUpdate=!0)})},clickToUpdate:function(){var t=this,e=this.$loading({text:"正在下载更新包..."});this.request("/api/adminUpdate/download",{}).then(function(i){e.close(),e=t.$loading({text:"正在更新文件..."}),t.request("/api/adminUpdate/updateFiles",{}).then(function(){e.close(),e=t.$loading({text:"升级文件成功,准备刷新页面...如果页面缓存迟迟不能自动更新,请手动刷新页面以更新浏览器缓存"}),t.request("/api/update/checkDb"),setTimeout(function(){window.location.reload()},7e3)},function(){e.close()})},function(){e.close()})}},mounted:function(){this.checkUpadte(),this.getCurVersion()},beforeDestroy:function(){}},Ka={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("div",[i("br"),t._v(" "),i("p",[t._v("\n 本站基于开源版"),i("b",[t._v("showdoc "+t._s(t.cur_version))]),t._v("搭建\n ")]),t._v(" "),t._m(0),t._v(" "),t._m(1)]),t._v(" "),t.isUpdate?i("div",[i("hr"),t._v(" "),i("p",[t._v("\n 检测到showdoc有新版更新("+t._s(t.new_version)+"),点击下方按钮将自动升级到最新稳定版。"),i("a",{attrs:{href:"https://www.showdoc.com.cn/help/13733",target:"_blank"}},[t._v("更新日志")])]),t._v(" "),i("p",[t._v("\n 升级到最新版有助于及时得到官方的安全修复和功能更新,以获得更安全更稳定的使用体验。\n ")]),t._v(" "),i("el-badge",{attrs:{value:"new"}},[i("el-button",{attrs:{type:"primary"},on:{click:t.clickToUpdate}},[t._v("点此更新")])],1),t._v(" "),i("br"),t._v(" "),i("br"),t._v(" "),t._m(2)],1):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n 如有问题或者建议,请到github提issue:"),e("a",{attrs:{href:"https://github.com/star7th/showdoc/issues",target:"_blank"}},[this._v("https://github.com/star7th/showdoc/issues")]),this._v(" "),e("br"),this._v("如果你觉得showdoc好用,不妨去"),e("a",{attrs:{href:"https://github.com/star7th/showdoc",target:"_blank"}},[this._v("github")]),this._v("给开源项目点一个star。良好的关注度和参与度有助于开源项目的长远发展。\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{href:"https://www.showdoc.com.cn/",target:"_blank"}},[this._v("showdoc官方")]),this._v("\n 拥有程序的版权和相应权利,在保留版权信息和链接的前提下可免费使用或者二次开发\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[this._v("\n 如点击上面按钮更新失败,"),e("a",{attrs:{href:"https://www.showdoc.com.cn/help?page_id=13732",target:"_blank"}},[this._v("点击这里")]),this._v("参考文档进行手动升级\n ")])}]};var Ga={data:function(){return{open_menu_index:1,isUpdate:!1}},components:{Item:i("VU/8")(ja,Aa,!1,function(t){i("mZxz")},"data-v-705ad4a0",null).exports,User:i("VU/8")({data:function(){return{itemList:[],username:"",page:1,count:7,total:0,addForm:{username:"",password:"",uid:0,name:""},dialogAddVisible:!1}},methods:{getUserList:function(){var t=this;this.request("/api/adminUser/getList",{username:this.username,page:this.page,count:this.count}).then(function(e){t.itemList=e.data.users,t.total=e.data.total})},formatGroup:function(t,e){if(t)return 1==t.groupid?this.$t("administrator"):2==t.groupid?this.$t("ordinary_users"):""},handleCurrentChange:function(t){this.page=t,this.getUserList()},onSubmit:function(){this.page=1,this.getUserList()},deleteUser:function(t){var e=this;this.$confirm(this.$t("confirm_delete")," ",{confirmButtonText:this.$t("confirm"),cancelButtonText:this.$t("cancel"),type:"warning"}).then(function(){e.request("/api/adminUser/deleteUser",{uid:t.uid}).then(function(t){e.$message.success("success"),e.getUserList(),e.username=""})})},clickEdit:function(t){this.dialogAddVisible=!0,this.addForm={uid:t.uid,name:t.name,username:t.username,password:""}},addUser:function(){var t=this;this.request("/api/adminUser/addUser",{username:this.addForm.username,password:this.addForm.password,uid:this.addForm.uid,name:this.addForm.name}).then(function(e){t.dialogAddVisible=!1,t.addForm.password="",t.addForm.username="",t.addForm.uid=0,t.addForm.name="",t.$message.success(t.$t("success")),t.getUserList()})},resetForm:function(){this.addForm={uid:0,name:"",username:"",password:""},this.dialogAddVisible=!1}},mounted:function(){this.getUserList()},beforeDestroy:function(){this.$message.closeAll()}},Ua,!1,function(t){i("quNz")},"data-v-2389a51e",null).exports,Setting:i("VU/8")({data:function(){return{form:{register_open:!0,home_page:"1",home_item:"",oss_open:!1,oss_setting:{oss_type:"aliyun",key:"",secret:"",endpoint:"",bucket:"",protocol:"http",domain:"",region:"",secretId:"",secretKey:""},history_version_count:20,beian:"",show_watermark:!1,site_url:"",open_api_key:"",open_api_host:""},itemList:[]}},methods:{onSubmit:function(){var t=this;this.request("/api/adminSetting/saveConfig",this.form,"post",!0,"json").then(function(e){t.$alert(t.$t("success"))})},loadConfig:function(){var t=this;this.request("/api/adminSetting/loadConfig",{}).then(function(e){0!==e.data.length&&(t.form.register_open=e.data.register_open>0,t.form.history_version_count=e.data.history_version_count?e.data.history_version_count:t.form.history_version_count,t.form.oss_open=e.data.oss_open>0,t.form.home_page=e.data.home_page>0?e.data.home_page:1,t.form.home_item=e.data.home_item>0?e.data.home_item:"",t.form.oss_setting=e.data.oss_setting?e.data.oss_setting:t.form.oss_setting,t.form.oss_setting.region=t.form.oss_setting.region?t.form.oss_setting.region:"",t.form.oss_setting.secretId=t.form.oss_setting.secretId?t.form.oss_setting.secretId:"",t.form.oss_setting.secretKey=t.form.oss_setting.secretKey?t.form.oss_setting.secretKey:"",t.form.beian=e.data.beian?e.data.beian:"",t.form.show_watermark=e.data.show_watermark>0,t.form.site_url=e.data.site_url?e.data.site_url:"",t.form.open_api_key=e.data.open_api_key?e.data.open_api_key:"",t.form.open_api_host=e.data.open_api_host?e.data.open_api_host:"")})},getItemList:function(){var t=this;this.request("/api/adminItem/getList",{page:1,count:100}).then(function(e){t.itemList=e.data.items})}},mounted:function(){this.getItemList(),this.loadConfig()},beforeDestroy:function(){this.$message.closeAll()}},Ea,!1,function(t){i("2QHw")},"data-v-72b40682",null).exports,Attachment:i("VU/8")(Ra,Na,!1,function(t){i("1Ar1")},"data-v-4519c7ff",null).exports,ExtLogin:i("VU/8")(za,Ha,!1,function(t){i("nuVR")},"data-v-a41cb89e",null).exports,About:i("VU/8")(Ba,Ka,!1,function(t){i("MK3e")},"data-v-d07c97c6",null).exports},methods:{selectMenu:function(t,e){var i=this;this.open_menu_index=0,this.$nextTick(function(){i.open_menu_index=t})},checkUpadte:function(){var t=this;this.request("/api/adminUpdate/checkUpdate",{}).then(function(e){e&&e.data&&e.data.url&&(t.isUpdate=!0)})}},mounted:function(){this.checkUpadte()},beforeDestroy:function(){this.$message.closeAll()}},Ja={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hello"},[i("el-container",[i("el-header",[i("div",{staticClass:"header_title"},[t._v("ShowDoc")]),t._v(" "),i("router-link",{staticClass:"goback",attrs:{to:"/item/index"}},[t._v(t._s(t.$t("goback")))])],1),t._v(" "),i("el-container",[i("el-aside",{attrs:{width:"150px"}},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"1","background-color":"#545c64","text-color":"#fff","active-text-color":"#ffd04b"},on:{select:t.selectMenu}},[i("el-menu-item",{attrs:{index:"1"}},[i("i",{staticClass:"el-icon-info"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("user_manage")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"2"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("item_manage")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"5"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("attachment_manage")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"7"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("ext_login")))])]),t._v(" "),i("el-menu-item",{attrs:{index:"3"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("web_setting")))])]),t._v(" "),i("el-menu-item",{directives:[{name:"show",rawName:"v-show",value:"zh-cn"==t.$lang,expression:"$lang == 'zh-cn'"}],attrs:{index:"6"}},[i("i",{staticClass:"el-icon-tickets"}),t._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[i("el-badge",{attrs:{value:t.isUpdate?"new":""}},[t._v(t._s(t.$t("about_site"))+"\n ")])],1)])],1)],1),t._v(" "),i("el-container",[i("el-main",[1==t.open_menu_index?i("User"):t._e(),t._v(" "),2==t.open_menu_index?i("Item"):t._e(),t._v(" "),3==t.open_menu_index?i("Setting"):t._e(),t._v(" "),5==t.open_menu_index?i("Attachment"):t._e(),t._v(" "),6==t.open_menu_index?i("About"):t._e(),t._v(" "),7==t.open_menu_index?i("ExtLogin"):t._e()],1),t._v(" "),i("el-footer")],1)],1)],1)],1)},staticRenderFns:[]};var Wa=i("VU/8")(Ga,Ja,!1,function(t){i("cdKK")},"data-v-62b5d169",null).exports;o.default.use(l.a);var Ya=new l.a({routes:[{path:"/",name:"Index",component:y},{path:"/user/login",name:"UserLogin",component:S},{path:"/user/setting",name:"UserSetting",component:q},{path:"/user/register",name:"UserRegister",component:D},{path:"/item/index",name:"ItemIndex",component:de},{path:"/item/add",name:"ItemAdd",component:rt},{path:"/item/password/:item_id",name:"ItemPassword",component:pe},{path:"/item/export/:item_id",name:"ItemExport",component:Bi},{path:"/item/setting/:item_id",name:"ItemSetting",component:La},{path:"/page/:page_id",name:"PageIndex",component:qa},{path:"/p/:unique_key",name:"PageIndex",component:qa},{path:"/page/edit/:item_id/:page_id",name:"PageEdit",component:Mi},{path:"/page/diff/:page_id/:page_history_id",name:"PageDiff",component:Va},{path:"/catalog/:item_id",name:"Catalog",component:yi},{path:"/admin/index",name:"Admin",component:Wa},{path:"/team/index",name:"Team",component:ft},{path:"/team/member/:team_id",name:"TeamMember",component:ut},{path:"/team/item/:team_id",name:"TeamItem",component:mt},{path:"/attachment/index",name:"Attachment",component:bt},{path:"/item/group/index",name:"ItemGroup",component:K},{path:"/message/index",name:"Message",component:kt},{path:"/user/loginByUserToken",name:"loginByUserToken",component:A},{path:"/:item_id",name:"ItemShow",component:xa},{path:"/:item_id/:page_id(\\d+)",name:"ItemShow",component:xa}]}),Xa=(i("YWLt"),{render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]});var Qa=i("VU/8")({name:"Header",data:function(){return{msg:"头部"}}},Xa,!1,function(t){i("8gQg")},"data-v-168051ae",null).exports,Za={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]};var tn=i("VU/8")({name:"Footer",data:function(){return{msg:"尾部"}}},Za,!1,function(t){i("GFba")},"data-v-065ddbfc",null).exports,en={install:function(t,e){t.prototype.getData=function(){console.log("我是插件中的方法")},t.prototype.request=function(){},t.prototype.getRootPath=function(){return window.location.protocol+"//"+window.location.host+window.location.pathname},t.prototype.isMobile=function(){return!!navigator.userAgent.match(/iPhone|iPad|iPod|Android|android|BlackBerry|IEMobile/i)},t.prototype.formatJson=function(t){if(!1===(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))try{return"string"==typeof t&&(t=JSON.parse(t)),C()(t,null,2)}catch(e){return t}try{var e=JSON.parse(t);return C()(e)}catch(e){return t}},t.prototype.reload=function(){return window.location.reload()},t.prototype.toOutLink=function(t){return window.open(t)}}},an=i("xO72"),nn=i.n(an),on=i("wUZ8"),sn=i.n(on),rn=i("Vi3T"),ln=i.n(rn),cn=i("4LCr"),mn=i.n(cn),dn=i("FQqZ"),_n=i.n(dn),un=(i("9Z4o"),i("j1ja"),i("wvfG")),pn=i.n(un),hn=i("NYxO"),fn=i("bOdI"),gn=i.n(fn)()({increment:function(t,e){t.count++},changeItemInfo:function(t,e){t.item_info=e},changeOpenCatId:function(t,e){t.open_cat_id=e},changeUserInfo:function(t,e){t.user_info=e},changeNewMsg:function(t,e){t.new_msg=e}},"SOME_MUTATION",function(t){}),vn={incrementAsync:function(t){var e=t.commit;setTimeout(function(){e("increment")},1e3)},changeItemInfo:function(t,e){t.commit("changeItemInfo",e)},changeOpenCatId:function(t,e){t.commit("changeOpenCatId",e)},changeUserInfo:function(t,e){t.commit("changeUserInfo",e)},changeNewMsg:function(t,e){t.commit("changeNewMsg",e)}},bn={count:"1",item_info:{},open_cat_id:0,user_info:{},new_msg:0};o.default.use(hn.a);var wn=new hn.a.Store({state:bn,actions:vn,mutations:gn}),yn=(i("Ffbd"),{name:"SDialog",props:{title:{type:String,required:!1,default:""},titleIcon:{type:String,required:!1,default:"el-icon-s-platform"},modal:{type:Boolean,required:!1,default:!0},onCancel:{type:Function,required:!1,default:function(){}},showCancel:{type:Boolean,required:!1,default:!0},showOk:{type:Boolean,required:!1,default:!0},onOK:{type:Function,required:!1,default:function(){}},width:{type:String,required:!1,default:"50%"},btn1Text:{type:String,required:!1,default:""},btn1Icon:{type:String,required:!1,default:""},btn1Medthod:{type:Function,required:!1,default:function(){}},btn2Text:{type:String,required:!1,default:""},btn2Icon:{type:String,required:!1,default:""},btn2Medthod:{type:Function,required:!1,default:function(){}},btn3Text:{type:String,required:!1,default:""},btn3Icon:{type:String,required:!1,default:""},btn3Medthod:{type:Function,required:!1,default:function(){}},btn4Text:{type:String,required:!1,default:""},btn4Icon:{type:String,required:!1,default:""},btn4Medthod:{type:Function,required:!1,default:function(){}},top:{type:String,required:!1,default:"15vh"},cancelText:{type:String,required:!1,default:""},okText:{type:String,required:!1,default:""}},data:function(){return{dialogVisible:!1}},methods:{isEmptyFunction:function(t){if("function"!=typeof t)return console.log("请输入函数"),!1;if("function _default() {}"==t.toString())return!0;var e=t.toString().replace(/\s+/g,"");return"{}"===(e=e.match(/{.*}/g)[0])},goHome:function(){this.$router.push({path:"/item/index"})}},mounted:function(){var t=this;setTimeout(function(){t.dialogVisible=!0},200)}}),kn={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-dialog",{staticClass:"sdialog",attrs:{width:t.width,visible:t.dialogVisible,"close-on-click-modal":!1,"show-close":!1,modal:t.modal,"append-to-body":!0,top:t.top,"close-on-press-escape":!1},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){t.isEmptyFunction(t.onCancel)?t.goHome():t.onCancel()}}},[i("div",{staticClass:"title-header",attrs:{slot:"title"},slot:"title"},[i("span",{staticClass:"title-header-left float-left "},[i("i",{class:t.titleIcon}),t._v("  "+t._s(t.title))]),t._v(" "),i("span",{staticClass:"title-header-right float-right mr-2"},[t.btn1Text?i("div",{staticClass:"btn-div",on:{click:t.btn1Medthod}},[i("i",{class:t.btn1Icon}),t._v(" "+t._s(t.btn1Text)+"\n ")]):t._e(),t._v(" "),t.btn2Text?i("div",{staticClass:"btn-div",on:{click:t.btn2Medthod}},[i("i",{class:t.btn2Icon}),t._v(" "+t._s(t.btn2Text)+"\n ")]):t._e(),t._v(" "),t.btn3Text?i("div",{staticClass:"btn-div",on:{click:t.btn3Medthod}},[i("i",{class:t.btn3Icon}),t._v(" "+t._s(t.btn3Text)+"\n ")]):t._e(),t._v(" "),t.btn4Text?i("div",{staticClass:"btn-div",on:{click:t.btn4Medthod}},[i("i",{class:t.btn4Icon}),t._v(" "+t._s(t.btn4Text)+"\n ")]):t._e(),t._v(" "),i("i",{staticClass:"close-btn far fa-close",on:{click:function(e){t.isEmptyFunction(t.onCancel)?t.goHome():t.onCancel()}}})])]),t._v(" "),t._t("default"),t._v(" "),i("div",{staticClass:"dialog-footer text-center",attrs:{slot:"footer"},slot:"footer"},[t.showCancel?i("el-button",{staticClass:"v3-lg-btn",on:{click:function(e){t.isEmptyFunction(t.onCancel)?t.goHome():t.onCancel()}}},[t._v(t._s(t.cancelText?t.cancelText:t.$t("cancel")))]):t._e(),t._v(" "),t.showOk?i("el-button",{staticClass:"v3-lg-btn",attrs:{type:"primary"},on:{click:function(e){t.isEmptyFunction(t.onOK)?t.goHome():t.onOK()}}},[t._v(t._s(t.okText?t.okText:t.$t("confirm")))]):t._e()],1)],2)],1)},staticRenderFns:[]};var $n=i("VU/8")(yn,kn,!1,function(t){i("2sLY"),i("ZjEb")},"data-v-20c1f6dd",null).exports;i("J2yJ");o.default.use(en),o.default.config.productionTip=!1,o.default.component("Header",Qa),o.default.component("Footer",tn),o.default.use(h.a),o.default.use(nn.a),o.default.use(pn.a),o.default.component("SDialog",$n);var Cn=n()(ln.a,mn.a),xn=n()(sn.a,_n.a);o.default.config.lang=DocConfig.lang,o.default.locale("zh-cn",Cn),o.default.locale("en",xn),o.default.prototype.axios=u,o.default.prototype.request=f,o.default.prototype.$lang=DocConfig.lang,new o.default({el:"#app",router:Ya,store:wn,template:"",components:{App:r}})},Nf2D:function(t,e){},OGYI:function(t,e){},OHg9:function(t,e){},OY20:function(t,e){},"P5r/":function(t,e){},PMJu:function(t,e){},R4PV:function(t,e){},Tjeq:function(t,e){},UA7n:function(t,e){},UXcT:function(t,e){},Uf1M:function(t,e){},V7ie:function(t,e){},VJJ0:function(t,e){},VMcb:function(t,e){},VlEL:function(t,e){},VyQB:function(t,e){},WNq7:function(t,e){},X23A:function(t,e){},XuxQ:function(t,e){},YWLt:function(t,e){},ZjEb:function(t,e){},adXc:function(t,e){},bOhL:function(t,e){},bRZX:function(t,e){},cdKK:function(t,e){},dR3X:function(t,e){},dSvU:function(t,e){},dlsc:function(t,e){},f6dU:function(t,e){},fGnW:function(t,e){},fPSf:function(t,e){},fhtO:function(t,e){},gY2G:function(t,e){},"gke+":function(t,e){},h3ci:function(t,e){},hBvi:function(t,e){},hQ8A:function(t,e){},hYZC:function(t,e){},hkn8:function(t,e){},intr:function(t,e){},jJGY:function(t,e){},jom5:function(t,e){},koPa:function(t,e){},mFjg:function(t,e){},mNYk:function(t,e){},mZxz:function(t,e){},nuVR:function(t,e){},oUOD:function(t,e){},q94s:function(t,e){},quNz:function(t,e){},rnTS:function(t,e){},rpoe:function(t,e){},u2hI:function(t,e){},uslO:function(t,e,i){var a={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn-bd":"1C9R","./bn-bd.js":"1C9R","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-in":"yJfC","./en-in.js":"yJfC","./en-nz":"dyB6","./en-nz.js":"dyB6","./en-sg":"NYST","./en-sg.js":"NYST","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-mx":"USNP","./es-mx.js":"USNP","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fil":"rMbQ","./fil.js":"rMbQ","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-deva":"VGQH","./gom-deva.js":"VGQH","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./oc-lnc":"KOFO","./oc-lnc.js":"KOFO","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tk":"+WRH","./tk.js":"+WRH","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-mo":"+WA1","./zh-mo.js":"+WA1","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function n(t){return i(o(t))}function o(t){var e=a[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}n.keys=function(){return Object.keys(a)},n.resolve=o,t.exports=n,n.id="uslO"},vUpo:function(t,e){},voUU:function(t,e){},w7Ho:function(t,e){},x0nN:function(t,e,i){t.exports=i.p+"static/img/Logo.29f9ff6.svg"},xPZZ:function(t,e){},xWR6:function(t,e){},xhEc:function(t,e){},ypCA:function(t,e){},zg0L:function(t,e){}},["NHnr"]); \ No newline at end of file diff --git a/web_src/src/components/common/Toc.vue b/web_src/src/components/common/Toc.vue index 5381c1865..81a837445 100644 --- a/web_src/src/components/common/Toc.vue +++ b/web_src/src/components/common/Toc.vue @@ -55,7 +55,7 @@ export default { .substring(1) if ( $('[name="' + name + '"]').offset().top - $(window).scrollTop() < - 120 + 150 ) { activeName = name } else {