Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion engine/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (
"log/slog"
"os"
"path/filepath"
"quotient/engine/checks"
"slices"
"sort"
"strings"

"github.com/dbaseqp/Quotient/engine/checks"

"github.com/BurntSushi/toml"
)

Expand Down
3 changes: 2 additions & 1 deletion engine/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"log/slog"
"os"
"path/filepath"
"quotient/engine/db"
"sync"

"github.com/dbaseqp/Quotient/engine/db"
)

// safeOpenInDir opens a file within the given base directory safely using os.Root.
Expand Down
2 changes: 1 addition & 1 deletion engine/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log/slog"
"os"

"quotient/engine/config"
"github.com/dbaseqp/Quotient/engine/config"

"github.com/go-ldap/ldap/v3"
"gorm.io/driver/postgres"
Expand Down
6 changes: 3 additions & 3 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"time"
"unicode/utf8"

"quotient/engine/checks"
"quotient/engine/config"
"quotient/engine/db"
"github.com/dbaseqp/Quotient/engine/checks"
"github.com/dbaseqp/Quotient/engine/config"
"github.com/dbaseqp/Quotient/engine/db"

"github.com/redis/go-redis/v9"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module quotient
module github.com/dbaseqp/Quotient

go 1.25.1

Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log/slog"
"os"

"quotient/engine"
"quotient/engine/config"
"quotient/engine/db"
"quotient/www"
"github.com/dbaseqp/Quotient/engine"
"github.com/dbaseqp/Quotient/engine/config"
"github.com/dbaseqp/Quotient/engine/db"
"github.com/dbaseqp/Quotient/www"
)

var logLvels = map[string]slog.Level{
Expand Down
3 changes: 2 additions & 1 deletion www/api/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"encoding/json"
"log/slog"
"net/http"
"quotient/engine/db"
"regexp"

"github.com/dbaseqp/Quotient/engine/db"
)

var validIdentifierRegex = regexp.MustCompile(`^[0-9]{1,3}$`)
Expand Down
3 changes: 2 additions & 1 deletion www/api/announcements.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"net/http"
"os"
"path"
"quotient/engine/db"
"slices"
"time"

"github.com/dbaseqp/Quotient/engine/db"

"gorm.io/gorm"
)

Expand Down
7 changes: 4 additions & 3 deletions www/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"log/slog"
"net/http"
"os"
"quotient/engine"
"quotient/engine/config"
"quotient/engine/db"

"github.com/dbaseqp/Quotient/engine"
"github.com/dbaseqp/Quotient/engine/config"
"github.com/dbaseqp/Quotient/engine/db"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion www/api/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import (
"log/slog"
"net/http"
"os"
"quotient/engine/config"
"strings"
"time"

"github.com/dbaseqp/Quotient/engine/config"

"github.com/go-ldap/ldap/v3"
"github.com/gorilla/securecookie"
)
Expand Down
3 changes: 2 additions & 1 deletion www/api/graphs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package api

import (
"net/http"
"quotient/engine/db"
"slices"

"github.com/dbaseqp/Quotient/engine/db"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion www/api/injects.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"net/http"
"os"
"path"
"quotient/engine/db"
"slices"
"time"

"github.com/dbaseqp/Quotient/engine/db"

"gorm.io/gorm"
)

Expand Down
3 changes: 2 additions & 1 deletion www/api/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package api

import (
"net/http"
"quotient/engine/checks"

"github.com/dbaseqp/Quotient/engine/checks"
)

type BoxMetadata struct {
Expand Down
3 changes: 2 additions & 1 deletion www/api/pcrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"fmt"
"log/slog"
"net/http"
"quotient/engine/db"
"slices"
"strconv"

"github.com/dbaseqp/Quotient/engine/db"
)

func GetCredlists(w http.ResponseWriter, r *http.Request) {
Expand Down
3 changes: 2 additions & 1 deletion www/api/red.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import (
"log/slog"
"net/http"
"os"
"quotient/engine/db"
"strconv"

"github.com/dbaseqp/Quotient/engine/db"
)

func GetRed(w http.ResponseWriter, r *http.Request) {
Expand Down
3 changes: 2 additions & 1 deletion www/api/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"fmt"
"log/slog"
"net/http"
"quotient/engine/db"
"slices"
"strconv"
"strings"

"github.com/dbaseqp/Quotient/engine/db"
)

func GetTeams(w http.ResponseWriter, r *http.Request) {
Expand Down
3 changes: 2 additions & 1 deletion www/api/submissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import (
"net/http"
"os"
"path/filepath"
"quotient/engine/db"
"slices"
"strconv"
"time"

"github.com/dbaseqp/Quotient/engine/db"
)

func CreateSubmission(w http.ResponseWriter, r *http.Request) {
Expand Down
3 changes: 2 additions & 1 deletion www/api/teamchecks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"encoding/json"
"log/slog"
"net/http"
"quotient/engine/db"

"github.com/dbaseqp/Quotient/engine/db"
)

// GetTeamChecks returns per-team service check states for admins
Expand Down
5 changes: 3 additions & 2 deletions www/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package www
import (
"maps"
"net/http"
"quotient/engine/db"
"quotient/www/api"
"slices"
"text/template"

"github.com/dbaseqp/Quotient/engine/db"
"github.com/dbaseqp/Quotient/www/api"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion www/middleware/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package middleware
import (
"context"
"net/http"
"quotient/www/api"
"slices"
"strings"

"github.com/dbaseqp/Quotient/www/api"
)

// load in authentication sources
Expand Down
3 changes: 2 additions & 1 deletion www/middleware/securityheaders.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package middleware

import (
"net/http"
"quotient/engine/config"

"github.com/dbaseqp/Quotient/engine/config"
)

// SecurityHeaders adds essential security headers to all responses
Expand Down
8 changes: 4 additions & 4 deletions www/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"net/http"
"time"

"quotient/engine"
"quotient/engine/config"
"quotient/www/api"
"quotient/www/middleware"
"github.com/dbaseqp/Quotient/engine"
"github.com/dbaseqp/Quotient/engine/config"
"github.com/dbaseqp/Quotient/www/api"
"github.com/dbaseqp/Quotient/www/middleware"
)

type Router struct {
Expand Down