adjust path
This commit is contained in:
parent
e1a3ec1f1d
commit
77d85278a2
|
@ -2,17 +2,17 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
"context"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
"github.com/Azareal/Gosora/query_gen"
|
||||
"gopkg.in/olivere/elastic.v6"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"gopkg.in/olivere/elastic.v6"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
//go:build hookgen
|
||||
// +build hookgen
|
||||
|
||||
package main // import "github.com/Azareal/Gosora/hook_gen"
|
||||
package main // import "git.tuxpa.in/a/gosora/hook_gen"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
"fmt"
|
||||
"log"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
|
||||
h "github.com/Azareal/Gosora/cmd/common_hook_gen"
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
_ "github.com/Azareal/Gosora/extend"
|
||||
h "git.tuxpa.in/a/gosora/cmd/common_hook_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
_ "git.tuxpa.in/a/gosora/extend"
|
||||
)
|
||||
|
||||
// TODO: Make sure all the errors in this file propagate upwards properly
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package main // import "github.com/Azareal/Gosora/hook_stub_gen"
|
||||
package main // import "git.tuxpa.in/a/gosora/hook_stub_gen"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
"runtime/debug"
|
||||
"fmt"
|
||||
"log"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
|
||||
h "github.com/Azareal/Gosora/cmd/common_hook_gen"
|
||||
h "git.tuxpa.in/a/gosora/cmd/common_hook_gen"
|
||||
)
|
||||
|
||||
// TODO: Make sure all the errors in this file propagate upwards properly
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"strings"
|
||||
"bufio"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Azareal/Gosora/install"
|
||||
"git.tuxpa.in/a/gosora/install"
|
||||
)
|
||||
|
||||
var scanner *bufio.Scanner
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
/* WIP Under Construction */
|
||||
package main // import "github.com/Azareal/Gosora/query_gen"
|
||||
package main // import "git.tuxpa.in/a/gosora/query_gen"
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"strings"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// TODO: Make sure all the errors in this file propagate upwards properly
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
package main
|
||||
|
||||
import "strings"
|
||||
import "github.com/Azareal/Gosora/query_gen"
|
||||
import (
|
||||
"strings"
|
||||
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
type PrimaryKeySpitter struct {
|
||||
keys map[string]string
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Activity ActivityStream
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var ActivityMatches ActivityStreamMatches
|
||||
|
|
|
@ -7,16 +7,16 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
//"fmt"
|
||||
//"fmt"
|
||||
|
||||
"github.com/Azareal/Gosora/common/phrases"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"git.tuxpa.in/a/gosora/common/phrases"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
type Alert struct {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"log"
|
||||
"time"
|
||||
"database/sql"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Analytics AnalyticsStore
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"database/sql"
|
||||
"errors"
|
||||
|
||||
//"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
//"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Attachments AttachmentStore
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"time"
|
||||
"database/sql"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var ModLogs LogStore
|
||||
|
|
|
@ -7,20 +7,20 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"crypto/subtle"
|
||||
"database/sql"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"crypto/sha256"
|
||||
"crypto/subtle"
|
||||
"database/sql"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Azareal/Gosora/common/gauth"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"git.tuxpa.in/a/gosora/common/gauth"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
|
||||
//"golang.org/x/crypto/argon2"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
//"golang.org/x/crypto/argon2"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
|
||||
// TODO: Write more authentication tests
|
||||
|
|
|
@ -4,23 +4,23 @@
|
|||
* Copyright Azareal 2018 - 2020
|
||||
*
|
||||
*/
|
||||
package common // import "github.com/Azareal/Gosora/common"
|
||||
package common // import "git.tuxpa.in/a/gosora/common"
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
"database/sql"
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
meta "github.com/Azareal/Gosora/common/meta"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
meta "git.tuxpa.in/a/gosora/common/meta"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var SoftwareVersion = Version{Major: 0, Minor: 3, Patch: 0, Tag: "dev"}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"time"
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
//"log"
|
||||
//"log"
|
||||
|
||||
"database/sql"
|
||||
"strconv"
|
||||
"database/sql"
|
||||
"strconv"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Convos ConversationStore
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"database/sql"
|
||||
"sync/atomic"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"database/sql"
|
||||
"sync"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"database/sql"
|
||||
"sync/atomic"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"math"
|
||||
"time"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"database/sql"
|
||||
"sync/atomic"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"database/sql"
|
||||
"sync/atomic"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"github.com/Azareal/Gosora/uutils"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"git.tuxpa.in/a/gosora/uutils"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"database/sql"
|
||||
"sync/atomic"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"database/sql"
|
||||
"sync/atomic"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"net/mail"
|
||||
"net/smtp"
|
||||
"strings"
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"net/mail"
|
||||
"net/smtp"
|
||||
"strings"
|
||||
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
)
|
||||
|
||||
func SendActivationEmail(username, email, token string) error {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Emails EmailStore
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
)
|
||||
|
||||
type ErrorItem struct {
|
||||
|
|
|
@ -8,14 +8,14 @@ package common
|
|||
|
||||
// TODO: Break this file up into multiple files to make it easier to maintain
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"log"
|
||||
"net/http"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"log"
|
||||
"net/http"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var ErrPluginNotInstallable = errors.New("This plugin is not installable")
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"crypto/sha256"
|
||||
"encoding/base64"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"crypto/sha256"
|
||||
"encoding/base64"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
tmpl "github.com/Azareal/Gosora/tmpl_client"
|
||||
"github.com/andybalholm/brotli"
|
||||
tmpl "git.tuxpa.in/a/gosora/tmpl_client"
|
||||
"github.com/andybalholm/brotli"
|
||||
)
|
||||
|
||||
//type SFileList map[string]*SFile
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
//"log"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
//"log"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
)
|
||||
|
||||
// TODO: Do we really need this?
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var ForumActionStore ForumActionStoreInt
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// ? - Can we avoid duplicating the items in this list in a bunch of places?
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"sync"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"sync"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var FPStore ForumPermsStore
|
||||
|
|
|
@ -7,16 +7,16 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"log"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"log"
|
||||
|
||||
//"fmt"
|
||||
"sort"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
//"fmt"
|
||||
"sort"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var forumCreateMutex sync.Mutex
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var blankGroup = Group{ID: 0, Name: ""}
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"sync"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Groups GroupStore
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var IPSearch IPSearcher
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Likes LikeStore
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
"database/sql"
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Menus *DefaultMenuStore
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"strconv"
|
||||
"strings"
|
||||
"bytes"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Azareal/Gosora/common/phrases"
|
||||
tmpl "github.com/Azareal/Gosora/common/templates"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"git.tuxpa.in/a/gosora/common/phrases"
|
||||
tmpl "git.tuxpa.in/a/gosora/common/templates"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
type MenuItemList []MenuItem
|
||||
|
|
|
@ -3,7 +3,7 @@ package common
|
|||
import (
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// MetaStore is a simple key-value store for the system to stash things in when needed
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strings"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var MFAstore MFAStore
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"time"
|
||||
"database/sql"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var RegLogs RegLogStore
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"strconv"
|
||||
"strings"
|
||||
"database/sql"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
type CustomPageStmts struct {
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
)
|
||||
|
||||
/*type HResource struct {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"crypto/subtle"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"crypto/subtle"
|
||||
"database/sql"
|
||||
"errors"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var PasswordResetter *DefaultPasswordResetter
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
"encoding/json"
|
||||
"log"
|
||||
|
||||
"github.com/Azareal/Gosora/common/phrases"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"git.tuxpa.in/a/gosora/common/phrases"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// TODO: Refactor the perms system
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var pollStmts PollStmts
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"strconv"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Polls PollStore
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"html"
|
||||
"strconv"
|
||||
"time"
|
||||
"database/sql"
|
||||
"html"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var profileReplyStmts ProfileReplyStmts
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Prstore ProfileReplyStore
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
//"log"
|
||||
"time"
|
||||
"database/sql"
|
||||
//"log"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var GroupPromotions GroupPromotionStore
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
//"log"
|
||||
"strconv"
|
||||
"database/sql"
|
||||
//"log"
|
||||
"strconv"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Recalc RecalcInt
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var UserBlocks BlockStore
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"html"
|
||||
"strconv"
|
||||
"time"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"html"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
type ReplyUser struct {
|
||||
|
|
|
@ -2,9 +2,9 @@ package common
|
|||
|
||||
//import "log"
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Rstore ReplyStore
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// TODO: Make the default report forum ID configurable
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"crypto/subtle"
|
||||
"html"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"crypto/subtle"
|
||||
"html"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Azareal/Gosora/common/phrases"
|
||||
"github.com/Azareal/Gosora/uutils"
|
||||
"git.tuxpa.in/a/gosora/common/phrases"
|
||||
"git.tuxpa.in/a/gosora/uutils"
|
||||
)
|
||||
|
||||
// nolint
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var RepliesSearch Searcher
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var SettingBox atomic.Value // An atomic value pointing to a SettingBox
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Subscriptions SubscriptionStore
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"log"
|
||||
"time"
|
||||
"database/sql"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
type TaskStmts struct {
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/Azareal/Gosora/common/alerts"
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
tmpl "github.com/Azareal/Gosora/common/templates"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"github.com/Azareal/Gosora/uutils"
|
||||
"git.tuxpa.in/a/gosora/common/alerts"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
tmpl "git.tuxpa.in/a/gosora/common/templates"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"git.tuxpa.in/a/gosora/uutils"
|
||||
)
|
||||
|
||||
var Ctemplates []string // TODO: Use this to filter out top level templates we don't need
|
||||
|
@ -182,7 +182,7 @@ func CompileTemplates() error {
|
|||
c.SetConfig(config)
|
||||
c.SetBaseImportMap(map[string]string{
|
||||
"io": "io",
|
||||
"github.com/Azareal/Gosora/common": "c github.com/Azareal/Gosora/common",
|
||||
"git.tuxpa.in/a/gosora/common": "c git.tuxpa.in/a/gosora/common",
|
||||
})
|
||||
c.SetBuildTags("!no_templategen")
|
||||
c.SetOverrideTrack(overriden)
|
||||
|
@ -520,7 +520,7 @@ func compileJSTemplates(wg *sync.WaitGroup, c *tmpl.CTemplateSet, themeName stri
|
|||
|
||||
c.SetBaseImportMap(map[string]string{
|
||||
"io": "io",
|
||||
"github.com/Azareal/Gosora/common/alerts": "github.com/Azareal/Gosora/common/alerts",
|
||||
"git.tuxpa.in/a/gosora/common/alerts": "git.tuxpa.in/a/gosora/common/alerts",
|
||||
})
|
||||
|
||||
// TODO: Check what sort of path is sent exactly and use it here
|
||||
|
@ -532,7 +532,7 @@ func compileJSTemplates(wg *sync.WaitGroup, c *tmpl.CTemplateSet, themeName stri
|
|||
|
||||
c.SetBaseImportMap(map[string]string{
|
||||
"io": "io",
|
||||
"github.com/Azareal/Gosora/common": "c github.com/Azareal/Gosora/common",
|
||||
"git.tuxpa.in/a/gosora/common": "c git.tuxpa.in/a/gosora/common",
|
||||
})
|
||||
// TODO: Fix the import loop so we don't have to use this hack anymore
|
||||
c.SetBuildTags("!no_templategen,tmplgentopic")
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
var textOverlapList = make(map[string]int)
|
||||
|
||||
// TODO: Stop hard-coding this here
|
||||
var langPkg = "github.com/Azareal/Gosora/common/phrases"
|
||||
var langPkg = "git.tuxpa.in/a/gosora/common/phrases"
|
||||
|
||||
type VarItem struct {
|
||||
Name string
|
||||
|
@ -241,7 +241,7 @@ func (c *CTemplateSet) CompileByLoggedin(name, fileDir, expects string, expectsI
|
|||
}
|
||||
fname += "_" + c.themeName
|
||||
}
|
||||
c.importMap["github.com/Azareal/Gosora/common"] = "c github.com/Azareal/Gosora/common"
|
||||
c.importMap["git.tuxpa.in/a/gosora/common"] = "c git.tuxpa.in/a/gosora/common"
|
||||
|
||||
c.fsb.Reset()
|
||||
stub = `package ` + c.config.PackageName + "\n" + importList + "\n"
|
||||
|
@ -1319,7 +1319,7 @@ ArgLoop:
|
|||
// TODO: Validate that this is actually a time.Time
|
||||
//litString("time.Since("+leftParam+").String()", false)
|
||||
c.importMap["time"] = "time"
|
||||
c.importMap["github.com/Azareal/Gosora/uutils"] = "github.com/Azareal/Gosora/uutils"
|
||||
c.importMap["git.tuxpa.in/a/gosora/uutils"] = "git.tuxpa.in/a/gosora/uutils"
|
||||
litString("time.Duration(uutils.Nanotime() - "+leftParam+").String()", false)
|
||||
break ArgLoop
|
||||
case "dock":
|
||||
|
|
|
@ -2,26 +2,26 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/sha256"
|
||||
"database/sql"
|
||||
"encoding/base64"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
htmpl "html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
"text/template"
|
||||
"bytes"
|
||||
"crypto/sha256"
|
||||
"database/sql"
|
||||
"encoding/base64"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
htmpl "html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
"text/template"
|
||||
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
)
|
||||
|
||||
var ErrNoDefaultTheme = errors.New("The default theme isn't registered in the system")
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// TODO: Something more thread-safe
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"image"
|
||||
"image/gif"
|
||||
"image/jpeg"
|
||||
"image/png"
|
||||
"os"
|
||||
"strconv"
|
||||
"image"
|
||||
"image/gif"
|
||||
"image/jpeg"
|
||||
"image/png"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"golang.org/x/image/tiff"
|
||||
"golang.org/x/image/tiff"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func ThumbTask(thumbChan chan bool) {
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"github.com/Azareal/Gosora/uutils"
|
||||
"github.com/pkg/errors"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"git.tuxpa.in/a/gosora/uutils"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var CTickLoop *TickLoop
|
||||
|
|
|
@ -7,18 +7,18 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"html"
|
||||
"html/template"
|
||||
"database/sql"
|
||||
"html"
|
||||
"html/template"
|
||||
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
//"log"
|
||||
//"log"
|
||||
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// This is also in reply.go
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var TopicList TopicListInt
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// TODO: Add the watchdog goroutine
|
||||
|
|
|
@ -7,16 +7,16 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
//"log"
|
||||
//"log"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"github.com/go-sql-driver/mysql"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"github.com/go-sql-driver/mysql"
|
||||
)
|
||||
|
||||
// TODO: Replace any literals with this
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"strconv"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
|
||||
// TODO: Add the watchdog goroutine
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build !no_ws
|
||||
// +build !no_ws
|
||||
|
||||
/*
|
||||
|
@ -9,20 +10,20 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
"github.com/Azareal/gopsutil/cpu"
|
||||
"github.com/Azareal/gopsutil/mem"
|
||||
"github.com/gorilla/websocket"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
"github.com/Azareal/gopsutil/cpu"
|
||||
"github.com/Azareal/gopsutil/mem"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
// TODO: Disable WebSockets on high load? Add a Control Panel interface for disabling it?
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
type WidgetStmts struct {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
//"log"
|
||||
"net/http/httptest"
|
||||
"bytes"
|
||||
//"log"
|
||||
"net/http/httptest"
|
||||
|
||||
p "github.com/Azareal/Gosora/common/phrases"
|
||||
min "github.com/Azareal/Gosora/common/templates"
|
||||
p "git.tuxpa.in/a/gosora/common/phrases"
|
||||
min "git.tuxpa.in/a/gosora/common/templates"
|
||||
)
|
||||
|
||||
type wolUsers struct {
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
package common
|
||||
|
||||
import "github.com/Azareal/Gosora/common/phrases"
|
||||
import "git.tuxpa.in/a/gosora/common/phrases"
|
||||
|
||||
func wolContextRender(widget *Widget, hvars interface{}) (string, error) {
|
||||
header := hvars.(*Header)
|
||||
if header.Zone != "view_topic" {
|
||||
return "", nil
|
||||
}
|
||||
var ucount int
|
||||
var users []*User
|
||||
topicMutex.RLock()
|
||||
topic, ok := topicWatchers[header.ZoneID]
|
||||
if ok {
|
||||
ucount = len(topic)
|
||||
if ucount < 30 {
|
||||
users = make([]*User, len(topic))
|
||||
i := 0
|
||||
for wsUser, _ := range topic {
|
||||
users[i] = wsUser.User
|
||||
i++
|
||||
}
|
||||
}
|
||||
}
|
||||
topicMutex.RUnlock()
|
||||
wol := &wolUsers{header, phrases.GetTmplPhrase("widget.online_view_topic_name"), users, ucount}
|
||||
e := header.Theme.RunTmpl("widget_online", wol, header.Writer)
|
||||
return "", e
|
||||
header := hvars.(*Header)
|
||||
if header.Zone != "view_topic" {
|
||||
return "", nil
|
||||
}
|
||||
var ucount int
|
||||
var users []*User
|
||||
topicMutex.RLock()
|
||||
topic, ok := topicWatchers[header.ZoneID]
|
||||
if ok {
|
||||
ucount = len(topic)
|
||||
if ucount < 30 {
|
||||
users = make([]*User, len(topic))
|
||||
i := 0
|
||||
for wsUser, _ := range topic {
|
||||
users[i] = wsUser.User
|
||||
i++
|
||||
}
|
||||
}
|
||||
}
|
||||
topicMutex.RUnlock()
|
||||
wol := &wolUsers{header, phrases.GetTmplPhrase("widget.online_view_topic_name"), users, ucount}
|
||||
e := header.Theme.RunTmpl("widget_online", wol, header.Writer)
|
||||
return "", e
|
||||
}
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
min "github.com/Azareal/Gosora/common/templates"
|
||||
"github.com/Azareal/Gosora/uutils"
|
||||
"github.com/pkg/errors"
|
||||
min "git.tuxpa.in/a/gosora/common/templates"
|
||||
"git.tuxpa.in/a/gosora/uutils"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// TODO: Clean this file up
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"sync/atomic"
|
||||
"database/sql"
|
||||
"sync/atomic"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
// TODO: Move some features into methods on this?
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"log"
|
||||
"database/sql"
|
||||
"log"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
"github.com/pkg/errors"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var stmts *Stmts
|
||||
|
|
|
@ -14,9 +14,9 @@ Dev is for a few flags which help out with the development of Gosora.
|
|||
|
||||
Plugin which you may not have run into is a category in which plugins can define their own custom configuration settings.
|
||||
|
||||
An example of what the file might look like: https://github.com/Azareal/Gosora/blob/master/config/config_example.json
|
||||
An example of what the file might look like: https://git.tuxpa.in/a/gosora/blob/master/config/config_example.json
|
||||
|
||||
Other configuration files: [config/weakpass.json](https://github.com/Azareal/Gosora/blob/master/docs/weak_passwords.md), [config/emoji.json](https://github.com/Azareal/Gosora/blob/master/docs/emoji.md) (WIP)
|
||||
Other configuration files: [config/weakpass.json](https://git.tuxpa.in/a/gosora/blob/master/docs/weak_passwords.md), [config/emoji.json](https://git.tuxpa.in/a/gosora/blob/master/docs/emoji.md) (WIP)
|
||||
|
||||
# Site
|
||||
|
||||
|
@ -36,7 +36,7 @@ EnableEmails - Determines whether the SMTP mail subsystem is enabled. The experi
|
|||
|
||||
HasProxy - Brittle, but lets you set whether you're sitting behind a proxy like Cloudflare. Unknown effects with reverse-proxies like Nginx.
|
||||
|
||||
Language - The language you want to use. Defaults to english. Please consult [internationalisation](https://github.com/Azareal/Gosora/blob/master/docs/internationalisation.md) for details.
|
||||
Language - The language you want to use. Defaults to english. Please consult [internationalisation](https://git.tuxpa.in/a/gosora/blob/master/docs/internationalisation.md) for details.
|
||||
|
||||
# Config
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ First, we need somewhere for the software to live, if you're familiar with Linux
|
|||
|
||||
First, we'll navigate to our home folder by typing: `cd ~`
|
||||
|
||||
And then, we'll going to pull a copy of Gosora off the git server with: `git clone https://github.com/Azareal/Gosora gosora`
|
||||
And then, we'll going to pull a copy of Gosora off the git server with: `git clone https://git.tuxpa.in/a/gosora gosora`
|
||||
|
||||
We can now hop into the newly created folder with the same command we used for getting to the home folder:
|
||||
|
||||
|
@ -63,7 +63,7 @@ mkdir gosora
|
|||
|
||||
cd gosora
|
||||
|
||||
git clone https://github.com/Azareal/Gosora src
|
||||
git clone https://git.tuxpa.in/a/gosora src
|
||||
|
||||
chown -R gosora ../gosora
|
||||
|
||||
|
@ -99,7 +99,7 @@ We will also want to setup a service:
|
|||
|
||||
# Additional Configuration
|
||||
|
||||
For things like HTTPS, you might also need to [modify your config.json](https://github.com/Azareal/Gosora/blob/master/docs/configuration.md) file after installing Gosora to get it working.
|
||||
For things like HTTPS, you might also need to [modify your config.json](https://git.tuxpa.in/a/gosora/blob/master/docs/configuration.md) file after installing Gosora to get it working.
|
||||
|
||||
You can get a free private key and certificate pair from Let's Encrypt or Cloudflare.
|
||||
|
||||
|
@ -125,7 +125,7 @@ For more info, you might want to take a gander inside the `./run-linux` and `./i
|
|||
Linux:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Azareal/Gosora gosora
|
||||
git clone https://git.tuxpa.in/a/gosora gosora
|
||||
|
||||
cd gosora
|
||||
|
||||
|
@ -181,7 +181,7 @@ easyjson -pkg common
|
|||
Windows:
|
||||
|
||||
```batch
|
||||
git clone https://github.com/Azareal/Gosora gosora
|
||||
git clone https://git.tuxpa.in/a/gosora gosora
|
||||
|
||||
cd gosora
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
The update system is currently under development, but you can run `dev-update.bat` to update your instance to the latest commit and to update the associated database schema, etc.
|
||||
|
||||
If you run into any issues doing so, please open an issue: https://github.com/Azareal/Gosora/issues/new
|
||||
If you run into any issues doing so, please open an issue: https://git.tuxpa.in/a/gosora/issues/new
|
||||
|
||||
If you want to manually patch Gosora rather than relying on the above scripts to do it, you'll first want to save your changes with `git stash`, and then, you'll overwrite the files with the new ones with `git pull origin master`, and then, you can re-apply your custom changes with `git stash apply`
|
||||
|
||||
|
@ -14,7 +14,7 @@ Once you've done that, you just need to run `patcher.exe` to apply the latest pa
|
|||
|
||||
The update system is currently under development, but you can run `dev-update-linux` to update your instance to the latest commit and to update the associated database schema, etc.
|
||||
|
||||
If you run into any issues doing so, please open an issue: https://github.com/Azareal/Gosora/issues/new
|
||||
If you run into any issues doing so, please open an issue: https://git.tuxpa.in/a/gosora/issues/new
|
||||
|
||||
If you want to manually patch Gosora rather than relying on the above scripts to do it, you'll first want to save your changes with `git stash`, and then, you'll overwrite the files with the new ones with `git pull origin master`, and then, you'll re-apply your changes with `git stash apply`.
|
||||
|
||||
|
@ -29,7 +29,7 @@ You will first want to follow the instructions in the section for updating depen
|
|||
|
||||
The update system is currently under development, but you can run `quick-update-linux` in `/home/gosora/src`to update your instance to the latest commit and to update the associated database schema, etc.
|
||||
|
||||
If you run into any issues doing so, please open an issue: https://github.com/Azareal/Gosora/issues/new
|
||||
If you run into any issues doing so, please open an issue: https://git.tuxpa.in/a/gosora/issues/new
|
||||
|
||||
If you're using a systemd service, then you might want to switch to the `gosora` user with `su gosora` (you may be prompted for the password to the user), you can switch back by typing `exit`.
|
||||
If this is the first time you've done an update as the `gosora` user, then you might have to configure Git, simply do:
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
package main
|
||||
|
||||
import c "github.com/Azareal/Gosora/common"
|
||||
import "github.com/oschwald/geoip2-golang"
|
||||
import (
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
"github.com/oschwald/geoip2-golang"
|
||||
)
|
||||
|
||||
var geoipDB *geoip.DB
|
||||
var geoipDB *geoip2.Reader
|
||||
var geoipDBLocation = "geoip_db.mmdb"
|
||||
|
||||
func init() {
|
||||
c.Plugins.Add(&c.Plugin{UName: "geoip", Name: "Geoip", Author: "Azareal", Init: initGeoip, Deactivate: deactivateGeoip})
|
||||
c.Plugins.Add(&c.Plugin{UName: "geoip", Name: "Geoip", Author: "Azareal", Init: initGeoip, Deactivate: deactivateGeoip})
|
||||
}
|
||||
|
||||
func initGeoip(plugin *c.Plugin) (err error) {
|
||||
geoipDB, err = geoip2.Open(geoipDBLocation)
|
||||
return err
|
||||
geoipDB, err = geoip2.Open(geoipDBLocation)
|
||||
return err
|
||||
}
|
||||
|
||||
func deactivateGeoip(plugin *c.Plugin) {
|
||||
geoipDB.Close()
|
||||
geoipDB.Close()
|
||||
}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
"errors"
|
||||
"io"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
)
|
||||
|
||||
/*
|
||||
Sending emails in a way you really shouldn't be sending them.
|
||||
This method doesn't require a SMTP server, but has higher chances of an email being rejected or being seen as spam. Use at your own risk. Only for Linux as Windows doesn't have Sendmail.
|
||||
Sending emails in a way you really shouldn't be sending them.
|
||||
This method doesn't require a SMTP server, but has higher chances of an email being rejected or being seen as spam. Use at your own risk. Only for Linux as Windows doesn't have Sendmail.
|
||||
*/
|
||||
func init() {
|
||||
// Don't bother registering this plugin on platforms other than Linux
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
"UName":"adventure",
|
||||
"Name":"Adventure",
|
||||
"Author":"Azareal",
|
||||
"URL":"https://github.com/Azareal/Gosora",
|
||||
"URL":"https://git.tuxpa.in/a/gosora",
|
||||
"Skip":true
|
||||
}
|
|
@ -3,7 +3,7 @@ package guilds
|
|||
import (
|
||||
"database/sql"
|
||||
|
||||
qgen "github.com/Azareal/Gosora/query_gen"
|
||||
qgen "git.tuxpa.in/a/gosora/query_gen"
|
||||
)
|
||||
|
||||
var Gstore GuildStore
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package guilds // import "github.com/Azareal/Gosora/extend/guilds/lib"
|
||||
package guilds // import "git.tuxpa.in/a/gosora/extend/guilds/lib"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -10,8 +10,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
"github.com/Azareal/Gosora/routes"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
"git.tuxpa.in/a/gosora/routes"
|
||||
)
|
||||
|
||||
// A blank list to fill out that parameter in Page for routes which don't use it
|
||||
|
@ -62,6 +62,7 @@ type Page struct {
|
|||
// ListPage is a page struct for constructing a list of every guild
|
||||
type ListPage struct {
|
||||
Title string
|
||||
User *c.User
|
||||
Header *c.Header
|
||||
GuildList []*Guild
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
"UName":"guilds",
|
||||
"Name":"Guilds",
|
||||
"Author":"Azareal",
|
||||
"URL":"https://github.com/Azareal/Gosora",
|
||||
"URL":"https://git.tuxpa.in/a/gosora",
|
||||
"Skip":true
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
guilds "github.com/Azareal/Gosora/extend/guilds/lib"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
guilds "git.tuxpa.in/a/gosora/extend/guilds/lib"
|
||||
)
|
||||
|
||||
// TODO: Add a better way of splitting up giant plugins like this
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
"UName":"heytherejs",
|
||||
"Name":"HeythereJS",
|
||||
"Author":"Azareal",
|
||||
"URL":"https://github.com/Azareal/Gosora",
|
||||
"URL":"https://git.tuxpa.in/a/gosora",
|
||||
"Main":"main.js"
|
||||
}
|
|
@ -1,23 +1,23 @@
|
|||
// WIP - Experimental adventure plugin, this might find a new home soon, but it's here to stress test Gosora's extensibility for now
|
||||
package extend
|
||||
|
||||
import c "github.com/Azareal/Gosora/common"
|
||||
import c "git.tuxpa.in/a/gosora/common"
|
||||
|
||||
func init() {
|
||||
c.Plugins.Add(&c.Plugin{
|
||||
UName: "adventure",
|
||||
Name: "Adventure",
|
||||
Tag: "WIP",
|
||||
Author: "Azareal",
|
||||
URL: "https://github.com/Azareal",
|
||||
Init: initAdventure,
|
||||
Deactivate: deactivateAdventure,
|
||||
Install: installAdventure,
|
||||
})
|
||||
c.Plugins.Add(&c.Plugin{
|
||||
UName: "adventure",
|
||||
Name: "Adventure",
|
||||
Tag: "WIP",
|
||||
Author: "Azareal",
|
||||
URL: "https://github.com/Azareal",
|
||||
Init: initAdventure,
|
||||
Deactivate: deactivateAdventure,
|
||||
Install: installAdventure,
|
||||
})
|
||||
}
|
||||
|
||||
func initAdventure(pl *c.Plugin) error {
|
||||
return nil
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: Change the signature to return an error?
|
||||
|
@ -25,5 +25,5 @@ func deactivateAdventure(pl *c.Plugin) {
|
|||
}
|
||||
|
||||
func installAdventure(pl *c.Plugin) error {
|
||||
return nil
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package extend
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"math/rand"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"time"
|
||||
"bytes"
|
||||
"math/rand"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
)
|
||||
|
||||
var bbcodeRandom *rand.Rand
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
package extend
|
||||
|
||||
import c "github.com/Azareal/Gosora/common"
|
||||
import c "git.tuxpa.in/a/gosora/common"
|
||||
|
||||
func init() {
|
||||
c.Plugins.Add(&c.Plugin{UName: "heythere", Name: "Hey There", Author: "Azareal", URL: "https://github.com/Azareal", Init: initHeythere, Deactivate: deactivateHeythere})
|
||||
c.Plugins.Add(&c.Plugin{UName: "heythere", Name: "Hey There", Author: "Azareal", URL: "https://github.com/Azareal", Init: initHeythere, Deactivate: deactivateHeythere})
|
||||
}
|
||||
|
||||
// initHeythere is separate from init() as we don't want the plugin to run if the plugin is disabled
|
||||
func initHeythere(plugin *c.Plugin) error {
|
||||
plugin.AddHook("topic_reply_row_assign", heythereReply)
|
||||
return nil
|
||||
plugin.AddHook("topic_reply_row_assign", heythereReply)
|
||||
return nil
|
||||
}
|
||||
|
||||
func deactivateHeythere(plugin *c.Plugin) {
|
||||
plugin.RemoveHook("topic_reply_row_assign", heythereReply)
|
||||
plugin.RemoveHook("topic_reply_row_assign", heythereReply)
|
||||
}
|
||||
|
||||
func heythereReply(data ...interface{}) interface{} {
|
||||
currentUser := data[0].(*c.TopicPage).Header.CurrentUser
|
||||
reply := data[1].(*c.ReplyUser)
|
||||
reply.Content = "Hey there, " + currentUser.Name + "!"
|
||||
reply.ContentHtml = "Hey there, " + currentUser.Name + "!"
|
||||
reply.Tag = "Auto"
|
||||
return nil
|
||||
currentUser := data[0].(*c.TopicPage).Header.CurrentUser
|
||||
reply := data[1].(*c.ReplyUser)
|
||||
reply.Content = "Hey there, " + currentUser.Name + "!"
|
||||
reply.ContentHtml = "Hey there, " + currentUser.Name + "!"
|
||||
reply.Tag = "Auto"
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -2,18 +2,18 @@
|
|||
package extend
|
||||
|
||||
import (
|
||||
//"log"
|
||||
"bytes"
|
||||
"errors"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
//"log"
|
||||
"bytes"
|
||||
"errors"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
"github.com/Azareal/Gosora/routes"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
"git.tuxpa.in/a/gosora/routes"
|
||||
)
|
||||
|
||||
var hyperspace *Hyperspace
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package extend
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"strings"
|
||||
|
||||
c "github.com/Azareal/Gosora/common"
|
||||
c "git.tuxpa.in/a/gosora/common"
|
||||
)
|
||||
|
||||
var markdownMaxDepth = 25 // How deep the parser will go when parsing Markdown strings
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue