mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Removed some print statements
Former-commit-id: ede1d0443b007b388e9a3f3e466a9885df71ef64 [formerly 0f18dde1fefb41aadde69b63216e54b1e9f85435] [formerly 5935351723aa69890870e602f67946e6e9b4b1fc [formerly c5efcb31743d7583a7023b6d2f5da2ed4fceeeb3 [formerly0b964047e6
]]] Former-commit-id: 326963feabc89058a5b264063dc3d9cb3ae6c593 [formerly 01e9d78b633099612914a395c47f30f33b56ab3f] Former-commit-id: c6d7be3ae78549adb7751e7a4ad166103df5bfb7 Former-commit-id:3aa2ac93bf
This commit is contained in:
parent
56b43600b1
commit
6fd69965ed
@ -88,7 +88,6 @@ type EncryptionPost struct {
|
|||||||
func encryptionRoute(c *gin.Context) {
|
func encryptionRoute(c *gin.Context) {
|
||||||
title := c.Param("title")
|
title := c.Param("title")
|
||||||
option := c.Param("option")
|
option := c.Param("option")
|
||||||
fmt.Println(option, title)
|
|
||||||
var jsonLoad EncryptionPost
|
var jsonLoad EncryptionPost
|
||||||
if option == "/decrypt" {
|
if option == "/decrypt" {
|
||||||
if c.BindJSON(&jsonLoad) == nil {
|
if c.BindJSON(&jsonLoad) == nil {
|
||||||
@ -458,7 +457,6 @@ func renderList(c *gin.Context, title string) {
|
|||||||
pClean.AllowDataURIImages()
|
pClean.AllowDataURIImages()
|
||||||
text := pClean.SanitizeBytes([]byte(p.CurrentText))
|
text := pClean.SanitizeBytes([]byte(p.CurrentText))
|
||||||
listItems, _ := reorderList(string(text))
|
listItems, _ := reorderList(string(text))
|
||||||
fmt.Println(string(text))
|
|
||||||
c.HTML(http.StatusOK, "list.tmpl", gin.H{
|
c.HTML(http.StatusOK, "list.tmpl", gin.H{
|
||||||
"Title": title,
|
"Title": title,
|
||||||
"WikiName": RuntimeArgs.WikiName,
|
"WikiName": RuntimeArgs.WikiName,
|
||||||
@ -506,8 +504,6 @@ func deleteListItem(c *gin.Context) {
|
|||||||
func deletePage(c *gin.Context) {
|
func deletePage(c *gin.Context) {
|
||||||
deleteName := c.DefaultQuery("DeleteName", "None")
|
deleteName := c.DefaultQuery("DeleteName", "None")
|
||||||
adminKey := c.DefaultQuery("AdminKey", "None")
|
adminKey := c.DefaultQuery("AdminKey", "None")
|
||||||
fmt.Println(adminKey)
|
|
||||||
fmt.Println(deleteName)
|
|
||||||
// if adminKey == RuntimeArgs.AdminKey || true == true {
|
// if adminKey == RuntimeArgs.AdminKey || true == true {
|
||||||
if strings.ToLower(deleteName) != "help" {
|
if strings.ToLower(deleteName) != "help" {
|
||||||
p := WikiData{strings.ToLower(deleteName), "", []string{}, []string{}, false, ""}
|
p := WikiData{strings.ToLower(deleteName), "", []string{}, []string{}, false, ""}
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
max-width: 800px;
|
max-width: 900px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-bottom: 65px;
|
padding-bottom: 65px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user