Skip to content

Commit

Permalink
(Mostly) finish the configuration web interface, remove all _img fiel…
Browse files Browse the repository at this point in the history
…ds since text boards won't happen
  • Loading branch information
Joshua Merrell committed Aug 9, 2018
1 parent 0ef760d commit c700e4c
Show file tree
Hide file tree
Showing 20 changed files with 421 additions and 385 deletions.
35 changes: 11 additions & 24 deletions gochan.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,17 @@
"SiteWebfolder": "/",
"DomainRegex": "(https|http):\\/\\/(gochan\\.lunachan\\.net|gochan\\.org)\\/(.*)",

"Styles_img": ["pipes","efchan"],
"DefaultStyle_img": "pipes",
"Styles_txt": ["efchan,pipes"],
"DefaultStyle_txt": "pipes",
"Styles": ["pipes","efchan"],
"DefaultStyle": "pipes",

"AllowDuplicateImages": true,
"AllowVideoUploads": true,
"NewThreadDelay": 30,
"ReplyDelay": 7,
"MaxLineLength": 150,
"ReversedTrips": [
{
"from": "##thischangesto",
"to": "this"
},
{
"from": "##andthischangesto",
"to": "this"
}
"ReservedTrips": [
"thischangesto##this",
"andthischangesto##this"
],

"ThumbWidth": 200,
Expand All @@ -62,36 +54,31 @@
"ThumbWidth_catalog": 50,
"ThumbHeight_catalog": 50,

"ThreadsPerPage_img": 4,
"ThreadsPerPage_txt": 15,
"PostsPerThreadPage": 4,
"ThreadsPerPage": 15,
"PostsPerThreadPage": 50,
"RepliesOnBoardPage": 3,
"StickyRepliesOnBoardPage": 1,
"BanColors": [
{
"Role": "admin",
"Color": "#0000A0"
}
"admin:#0000A0",
"somemod:blue"
],
"BanMsg": "<br /><span style=\"color:##BANCOLOR## \"><b>(USER WAS BANNED FOR THIS POST)</b></span>",
"BanMsg": "USER WAS BANNED FOR THIS POST",
"EmbedWidth": 200,
"EmbedHeight": 164,
"ExpandButton": true,
"ImagesOpenNewTab": true,
"MakeURLsHyperlinked": true,
"NewTabOnOutlinks": true,


"DateTimeFormat": "Mon, January 02, 2006 15:04 PM",
"DefaultBanReason": "",
"AkismetAPIKey": "",
"EnableGeoIP": true,
"_comment": "set GeoIPDBlocation to cf to use Cloudflare's GeoIP",
"GeoIPDBlocation": "/usr/share/GeoIP/GeoIP.dat",
"MaxRecentPosts": 3,
"Verbosity": 0,
"EnableAppeals": true,
"MaxModlogDays": 14,
"MaxLogDays": 14,
"_comment": "Set RandomSeed to a (preferrably large) string of letters and numbers",
"RandomSeed": ""
}
14 changes: 14 additions & 0 deletions html/css/global/manage.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,18 @@ table, table th, td, tr {
h1, h2 {
padding-left: 4px;
padding-right: 4px;
}

input.config-text {
-moz-box-sizing: border-box;
box-sizing: border-box;
display: block;
padding: 4px;
width: 100%;
height: 100%;
}

.warning, div.config-status {
color:red;
font-weight: bold;
}
Empty file removed html/css/global/txt.css
Empty file.
175 changes: 0 additions & 175 deletions html/css/leetchan/front.old.css

This file was deleted.

1 change: 0 additions & 1 deletion src/gochan.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"os"
)

// set in Makefile via -ldflags
var version string
var buildtimeString string // set in Makefile, format: YRMMDD.HHMM

Expand Down
Loading

0 comments on commit c700e4c

Please sign in to comment.