开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 1.2K

LC/BookStack

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (2)
标签 (18)
master
dev
v2.8
v2.7
v2.6
v2.5
v2.4
v2.3
v2.2
v2.1
v2.0
v2.0-beta
v1.7
v1.6
v1.5
v1.4
v1.3.1
v1.3
v1.2
v1.1
master
分支 (2)
标签 (18)
master
dev
v2.8
v2.7
v2.6
v2.5
v2.4
v2.3
v2.2
v2.1
v2.0
v2.0-beta
v1.7
v1.6
v1.5
v1.4
v1.3.1
v1.3
v1.2
v1.1
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (2)
标签 (18)
master
dev
v2.8
v2.7
v2.6
v2.5
v2.4
v2.3
v2.2
v2.1
v2.0
v2.0-beta
v1.7
v1.6
v1.5
v1.4
v1.3.1
v1.3
v1.2
v1.1
BookStack
/
controllers
/
BaseController.go
BookStack
/
controllers
/
BaseController.go
BaseController.go 17.80 KB
一键复制 编辑 原始数据 按行查看 历史
进击的皇虫 提交于 2020年04月08日 07:35 +08:00 . referer优化
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
package controllers
import (
"bytes"
"fmt"
"net/url"
"strconv"
"unicode/utf8"
"github.com/TruthHun/BookStack/utils"
"encoding/json"
"io"
"strings"
"compress/gzip"
"time"
"errors"
"github.com/PuerkitoBio/goquery"
"github.com/TruthHun/BookStack/conf"
"github.com/TruthHun/BookStack/models"
"github.com/astaxie/beego"
"github.com/astaxie/beego/orm"
)
type BaseController struct {
beego.Controller
Member *models.Member
Option map[string]string
EnableAnonymous bool
AllowRegister bool
EnableDocumentHistory int
Sitename string
IsMobile bool
OssDomain string
StaticDomain string
NoNeedLoginRouter bool
}
type CookieRemember struct {
MemberId int
Account string
Time time.Time
}
func (this *BaseController) refreshReferer() {
referer := this.Ctx.Request.Header.Get("referer")
if referer != "" {
referer, _ = url.QueryUnescape(referer)
referer = strings.ToLower(referer)
forbid := models.NewOption().ForbiddenReferer()
if len(forbid) > 0 {
for _, item := range forbid {
item = strings.ToLower(strings.TrimSpace(item))
// 先判断是否带有非法关键字
if item != "" && strings.Contains(referer, item) && !strings.HasSuffix(referer, strings.ToLower(this.Ctx.Request.RequestURI)) {
if u, err := url.Parse(referer); err == nil {
// 且referer的host与当前请求的host不是同一个,则进行302跳转以刷新过滤当前referer
if strings.ToLower(u.Host) != strings.ToLower(this.Ctx.Request.Host) {
this.Redirect(this.Ctx.Request.RequestURI, 302)
this.StopRun()
return
}
}
}
}
}
}
}
// Prepare 预处理.
func (this *BaseController) Prepare() {
this.refreshReferer()
this.Data["Version"] = utils.Version
this.IsMobile = utils.IsMobile(this.Ctx.Request.UserAgent())
this.Data["IsMobile"] = this.IsMobile
this.Member = models.NewMember() //初始化
this.EnableAnonymous = false
this.AllowRegister = true
this.EnableDocumentHistory = 0
this.OssDomain = strings.TrimRight(beego.AppConfig.String("oss::Domain"), "/ ")
this.Data["OssDomain"] = this.OssDomain
this.StaticDomain = strings.Trim(beego.AppConfig.DefaultString("static_domain", ""), "/")
this.Data["StaticDomain"] = this.StaticDomain
//从session中获取用户信息
if member, ok := this.GetSession(conf.LoginSessionName).(models.Member); ok && member.MemberId > 0 {
m, _ := models.NewMember().Find(member.MemberId)
this.Member = m
} else {
//如果Cookie中存在登录信息,从cookie中获取用户信息
if cookie, ok := this.GetSecureCookie(conf.GetAppKey(), "login"); ok {
var remember CookieRemember
err := utils.Decode(cookie, &remember)
if err == nil {
member, err := models.NewMember().Find(remember.MemberId)
if err == nil {
this.SetMember(*member)
this.Member = member
}
}
}
}
if this.Member.RoleName == "" {
this.Member.ResolveRoleName()
}
this.Data["Member"] = this.Member
this.Data["BaseUrl"] = this.BaseUrl()
this.Data["IsSignedToday"] = false
if this.Member.MemberId > 0 {
this.Data["IsSignedToday"] = models.NewSign().IsSignToday(this.Member.MemberId)
}
if options, err := models.NewOption().All(); err == nil {
this.Option = make(map[string]string, len(options))
for _, item := range options {
if item.OptionName == "SITE_NAME" {
this.Sitename = item.OptionValue
}
this.Data[item.OptionName] = item.OptionValue
this.Option[item.OptionName] = item.OptionValue
if strings.EqualFold(item.OptionName, "ENABLE_ANONYMOUS") && item.OptionValue == "true" {
this.EnableAnonymous = true
}
if strings.EqualFold(item.OptionName, "ENABLED_REGISTER") && item.OptionValue == "false" {
this.AllowRegister = false
}
if verNum, _ := strconv.Atoi(item.OptionValue); strings.EqualFold(item.OptionName, "ENABLE_DOCUMENT_HISTORY") && verNum > 0 {
this.EnableDocumentHistory = verNum
}
}
}
if v, ok := this.Option["CLOSE_OPEN_SOURCE_LINK"]; ok {
this.Data["CloseOpenSourceLink"] = v == "true"
}
if v, ok := this.Option["HIDE_TAG"]; ok {
this.Data["HideTag"] = v == "true"
}
if v, ok := this.Option["CLOSE_SUBMIT_ENTER"]; ok {
this.Data["CloseSubmitEnter"] = v == "true"
}
this.Data["SiteName"] = this.Sitename
if this.Member.MemberId == 0 {
if this.EnableAnonymous == false && !this.NoNeedLoginRouter { // 不允许游客访问
allowPaths := map[string]bool{
beego.URLFor("AccountController.Login"): true,
beego.URLFor("AccountController.Logout"): true,
beego.URLFor("AccountController.FindPassword"): true,
beego.URLFor("AccountController.ValidEmail"): true,
}
if _, ok := allowPaths[this.Ctx.Request.URL.Path]; !ok {
this.Redirect(beego.URLFor("AccountController.Login"), 302)
return
}
}
if this.AllowRegister == false { // 不允许用户注册
denyPaths := map[string]bool{
// 第三方登录,如果是新注册的话,需要绑定信息,这里不让绑定信息就是不让注册
beego.URLFor("AccountController.Bind"): true,
// 禁止邮箱注册
beego.URLFor("AccountController.Oauth", ":oauth", "email"): true,
}
if _, ok := denyPaths[this.Ctx.Request.URL.Path]; ok {
this.Redirect("/login", 302)
return
}
}
}
}
// SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session
func (this *BaseController) SetMember(member models.Member) {
if member.MemberId <= 0 {
this.DelSession(conf.LoginSessionName)
this.DelSession("uid")
this.DestroySession()
} else {
this.SetSession(conf.LoginSessionName, member)
this.SetSession("uid", member.MemberId)
}
}
// JsonResult 响应 json 结果
func (this *BaseController) JsonResult(errCode int, errMsg string, data ...interface{}) {
jsonData := make(map[string]interface{}, 3)
jsonData["errcode"] = errCode
jsonData["message"] = errMsg
if len(data) > 0 && data[0] != nil {
jsonData["data"] = data[0]
}
returnJSON, err := json.Marshal(jsonData)
if err != nil {
beego.Error(err)
}
this.Ctx.ResponseWriter.Header().Set("Content-Type", "application/json; charset=utf-8")
//this.Ctx.ResponseWriter.Header().Set("Cache-Control", "no-cache, no-store")//解决回退出现json的问题
//使用gzip原始,json数据会只有原本数据的10分之一左右
if strings.Contains(strings.ToLower(this.Ctx.Request.Header.Get("Accept-Encoding")), "gzip") {
this.Ctx.ResponseWriter.Header().Set("Content-Encoding", "gzip")
//gzip压缩
w := gzip.NewWriter(this.Ctx.ResponseWriter)
defer w.Close()
w.Write(returnJSON)
w.Flush()
} else {
io.WriteString(this.Ctx.ResponseWriter, string(returnJSON))
}
this.StopRun()
}
// ExecuteViewPathTemplate 执行指定的模板并返回执行结果.
func (this *BaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error) {
var buf bytes.Buffer
viewPath := this.ViewPath
if this.ViewPath == "" {
viewPath = beego.BConfig.WebConfig.ViewsPath
}
if err := beego.ExecuteViewPathTemplate(&buf, tplName, viewPath, data); err != nil {
return "", err
}
return buf.String(), nil
}
func (this *BaseController) BaseUrl() string {
host := beego.AppConfig.String("sitemap_host")
if len(host) > 0 {
if strings.HasPrefix(host, "http://") || strings.HasPrefix(host, "https://") {
return host
}
return this.Ctx.Input.Scheme() + "://" + host
}
return this.Ctx.Input.Scheme() + "://" + this.Ctx.Request.Host
}
//显示错误信息页面.
func (this *BaseController) ShowErrorPage(errCode int, errMsg string) {
this.TplName = "errors/error.html"
this.Data["ErrorMessage"] = errMsg
this.Data["ErrorCode"] = errCode
this.StopRun()
}
//根据页面获取seo
//@param page 页面标识
//@param defSeo 默认的seo的map,必须有title、keywords和description字段
func (this *BaseController) GetSeoByPage(page string, defSeo map[string]string) {
var seo models.Seo
orm.NewOrm().QueryTable(models.TableSeo).Filter("Page", page).One(&seo)
defSeo["sitename"] = this.Sitename
if seo.Id > 0 {
for k, v := range defSeo {
seo.Title = strings.Replace(seo.Title, fmt.Sprintf("{%v}", k), v, -1)
seo.Keywords = strings.Replace(seo.Keywords, fmt.Sprintf("{%v}", k), v, -1)
seo.Description = strings.Replace(seo.Description, fmt.Sprintf("{%v}", k), v, -1)
}
}
this.Data["SeoTitle"] = seo.Title
this.Data["SeoKeywords"] = seo.Keywords
this.Data["SeoDescription"] = seo.Description
}
//站点地图
func (this *BaseController) Sitemap() {
this.Data["SeoTitle"] = "站点地图 - " + this.Sitename
page, _ := this.GetInt("page")
listRows := 100
totalCount, docs := models.SitemapData(page, listRows)
if totalCount > 0 {
html := utils.GetPagerHtml(this.Ctx.Request.RequestURI, page, listRows, int(totalCount))
this.Data["PageHtml"] = html
} else {
this.Data["PageHtml"] = ""
}
//this.JsonResult(0, "aaa", docs)
this.Data["Docs"] = docs
this.TplName = "widgets/sitemap.html"
}
func (this *BaseController) loginByMemberId(memberId int) (err error) {
member, err := models.NewMember().Find(memberId)
if member.MemberId == 0 {
return errors.New("用户不存在")
}
//如果没有数据
if err != nil {
return err
}
member.LastLoginTime = time.Now()
member.Update()
this.SetMember(*member)
var remember CookieRemember
remember.MemberId = member.MemberId
remember.Account = member.Account
remember.Time = time.Now()
v, err := utils.Encode(remember)
if err == nil {
this.SetSecureCookie(conf.GetAppKey(), "login", v, 24*3600*365)
}
return err
}
//在markdown头部加上<bookstack></bookstack>或者<bookstack/>,即解析markdown中的ul>li>a链接作为目录
func (this *BaseController) sortBySummary(bookIdentify, htmlStr string, bookId int) string {
debug := beego.AppConfig.String("runmod") != "prod"
o := orm.NewOrm()
qs := o.QueryTable("md_documents").Filter("book_id", bookId)
doc, err := goquery.NewDocumentFromReader(strings.NewReader(htmlStr))
if err != nil {
beego.Error(err)
}
idx := 1
if debug {
beego.Info("根据summary文件进行排序")
}
//查找ul>li下的所有a标签,并提取text和href,查询数据库,如果标识不存在,则把这些新的数据录入数据库
var hrefs = make(map[string]string)
var hrefSlice []interface{}
var docs []models.Document
doc.Find("li>a").Each(func(i int, selection *goquery.Selection) {
if href, ok := selection.Attr("href"); ok && strings.HasPrefix(href, "$") {
href = strings.TrimLeft(strings.Replace(href, "/", "-", -1), "$")
if utf8.RuneCountInString(href) <= 100 {
if href == "" {
href = strings.Replace(selection.Text(), " ", "", -1) + ".md"
selection.SetAttr("href", "$"+href)
}
hrefs[href] = selection.Text()
hrefSlice = append(hrefSlice, href)
}
}
})
if debug {
beego.Info(hrefs)
}
if len(hrefSlice) > 0 {
if _, err := qs.Filter("identify__in", hrefSlice...).Limit(len(hrefSlice)).All(&docs, "identify"); err != nil {
beego.Error(err.Error())
} else {
for _, doc := range docs {
//删除存在的标识
delete(hrefs, doc.Identify)
}
}
}
if len(hrefs) > 0 { //存在未创建的文档,先创建
ModelStore := new(models.DocumentStore)
for identify, docName := range hrefs {
// 如果文档标识超过了规定长度(100),则进行忽略
if utf8.RuneCountInString(identify) <= 100 {
doc := models.Document{
BookId: bookId,
Identify: identify,
DocumentName: docName,
CreateTime: time.Now(),
ModifyTime: time.Now(),
}
if docId, err := doc.InsertOrUpdate(); err == nil {
if err = ModelStore.InsertOrUpdate(models.DocumentStore{DocumentId: int(docId), Markdown: "[TOC]\n\r\n\r"}); err != nil {
beego.Error(err.Error())
}
}
}
}
}
// 重置所有之前的文档排序
_, _ = qs.Update(orm.Params{"order_sort": 100000})
doc.Find("a").Each(func(i int, selection *goquery.Selection) {
docName := strings.TrimSpace(selection.Text())
pid := 0
if docId, exist := selection.Attr("data-pid"); exist {
did, _ := strconv.Atoi(docId)
eleParent := selection.Parent().Parent().Parent()
if eleParent.Is("li") {
fst := eleParent.Find("a").First()
pidstr, _ := fst.Attr("data-pid")
//如果这里的pid为0,表示数据库还没存在这个标识,需要创建
pid, _ = strconv.Atoi(pidstr)
}
if did > 0 {
if docName == "$auto-title" {
docName = models.NewDocument().AutoTitle(did, docName)
}
qs.Filter("document_id", did).Update(orm.Params{
"parent_id": pid, "document_name": docName,
"order_sort": idx, "modify_time": time.Now(),
})
}
} else if href, ok := selection.Attr("href"); ok && strings.HasPrefix(href, "$") {
identify := strings.TrimPrefix(href, "$") //文档标识
eleParent := selection.Parent().Parent().Parent()
if eleParent.Is("li") {
if parentHref, ok := eleParent.Find("a").First().Attr("href"); ok {
var one models.Document
qs.Filter("identify", strings.Split(strings.TrimPrefix(parentHref, "$"), "#")[0]).One(&one, "document_id")
pid = one.DocumentId
}
}
if docName == "$auto-title" {
docName = models.NewDocument().AutoTitle(identify, docName)
}
if _, err := qs.Filter("identify", identify).Update(orm.Params{
"parent_id": pid, "document_name": docName,
"order_sort": idx, "modify_time": time.Now(),
}); err != nil {
beego.Error(err)
}
}
idx++
})
htmlStr, _ = doc.Find("body").Html()
if len(hrefs) > 0 { //如果有新创建的文档,则再调用一遍,用于处理排序
htmlStr = this.replaceLinks(bookIdentify, htmlStr, true)
}
return htmlStr
}
//排序
type Sort struct {
Id int
Pid int
SortOrder int
Identify string
}
//替换链接
//如果是summary,则根据这个进行排序调整
func (this *BaseController) replaceLinks(bookIdentify string, docHtml string, isSummary ...bool) string {
var (
book models.Book
docs []models.Document
o = orm.NewOrm()
)
o.QueryTable("md_books").Filter("identify", bookIdentify).One(&book, "book_id")
if book.BookId > 0 {
o.QueryTable("md_documents").Filter("book_id", book.BookId).Limit(5000).All(&docs, "identify", "document_id")
if len(docs) > 0 {
Links := make(map[string]string)
for _, doc := range docs {
idStr := strconv.Itoa(doc.DocumentId)
if len(doc.Identify) > 0 {
Links["$"+strings.ToLower(doc.Identify)] = beego.URLFor("DocumentController.Read", ":key", bookIdentify, ":id", doc.Identify) + "||" + idStr
}
if doc.DocumentId > 0 {
Links["$"+strconv.Itoa(doc.DocumentId)] = beego.URLFor("DocumentController.Read", ":key", bookIdentify, ":id", doc.DocumentId) + "||" + idStr
}
}
//替换文档内容中的链接
if gq, err := goquery.NewDocumentFromReader(strings.NewReader(docHtml)); err == nil {
gq.Find("a").Each(func(i int, selection *goquery.Selection) {
if href, ok := selection.Attr("href"); ok && strings.HasPrefix(href, "$") {
if slice := strings.Split(href, "#"); len(slice) > 1 {
if newHref, ok := Links[strings.ToLower(slice[0])]; ok {
arr := strings.Split(newHref, "||") //整理的arr数组长度,肯定为2,所以不做数组长度判断
selection.SetAttr("href", arr[0]+"#"+strings.Join(slice[1:], "#"))
selection.SetAttr("data-pid", arr[1])
}
} else {
if newHref, ok := Links[strings.ToLower(href)]; ok {
arr := strings.Split(newHref, "||") //整理的arr数组长度,肯定为2,所以不做数组长度判断
selection.SetAttr("href", arr[0])
selection.SetAttr("data-pid", arr[1])
}
}
}
})
if newHtml, err := gq.Find("body").Html(); err == nil {
docHtml = newHtml
if len(isSummary) > 0 && isSummary[0] == true { //更新排序
docHtml = this.sortBySummary(bookIdentify, docHtml, book.BookId) //更新排序
}
}
} else {
beego.Error(err.Error())
}
}
}
return docHtml
}
//内容采集
func (this *BaseController) Crawl() {
if this.Member.MemberId > 0 {
if val, ok := this.GetSession("crawl").(string); ok && val == "1" {
this.JsonResult(1, "您提交的上一次采集未完成,请稍后再提交新的内容采集")
}
this.SetSession("crawl", "1")
defer this.DelSession("crawl")
urlStr := this.GetString("url")
force, _ := this.GetBool("force") //是否是强力采集,强力采集,使用Chrome
intelligence, _ := this.GetInt("intelligence") //是否是强力采集,强力采集,使用Chrome
contType, _ := this.GetInt("type")
diySel := this.GetString("diy")
content, err := utils.CrawlHtml2Markdown(urlStr, contType, force, intelligence, diySel, []string{}, nil)
if err != nil {
this.JsonResult(1, "采集失败:"+err.Error())
}
this.JsonResult(0, "采集成功", content)
}
this.JsonResult(1, "请先登录再操作")
}
//关注或取消关注
func (this *BaseController) SetFollow() {
var cancel bool
if this.Member == nil || this.Member.MemberId == 0 {
this.JsonResult(1, "请先登录")
}
uid, _ := this.GetInt(":uid")
if uid == this.Member.MemberId {
this.JsonResult(1, "自己不能关注自己")
}
cancel, _ = new(models.Fans).FollowOrCancel(uid, this.Member.MemberId)
if cancel {
this.JsonResult(0, "您已经成功取消了关注")
}
this.JsonResult(0, "您已经成功关注了Ta")
}
func (this *BaseController) SignToday() {
if this.Member == nil || this.Member.MemberId == 0 {
this.JsonResult(1, "请先登录")
}
reward, err := models.NewSign().Sign(this.Member.MemberId, false)
if err != nil {
this.JsonResult(1, "签到失败:"+err.Error())
}
this.JsonResult(0, fmt.Sprintf("恭喜您,签到成功,奖励阅读时长 %v 秒", reward))
}
func (this *BaseController) forbidGeneralRole() bool {
// 如果只有作者和管理员才能写作的话,那么已创建了项目的普通用户无法将项目转为公开或者是私密分享
if this.Member.Role == conf.MemberGeneralRole && models.GetOptionValue("ALL_CAN_WRITE_BOOK", "true") != "true" {
return true
}
return false
}
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

BookStack,基于MinDoc,使用Beego开发的在线文档管理系统,功能类似Gitbook和看云。
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tinyLC/BookStack.git
git@gitee.com:tinyLC/BookStack.git
tinyLC
BookStack
BookStack
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /