master
Bel LaPointe 2023-04-10 11:09:40 -06:00
parent b495652eb9
commit 6a82a7d90c
43 changed files with 61 additions and 78 deletions

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"local/args" "gogs.inhome.blapointe.com/local/args"
"log" "log"
"os" "os"
"path/filepath" "path/filepath"

View File

@ -1,4 +1,4 @@
#! /usr/local/bin/python3 #! /usr/gogs.inhome.blapointe.com/local/bin/python3
def main(args) : def main(args) :
print("args", args) print("args", args)

View File

@ -1,7 +1,7 @@
package filetree package filetree
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"testing" "testing"
) )

View File

@ -1,7 +1,7 @@
package filetree package filetree
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"testing" "testing"
) )

View File

@ -2,7 +2,7 @@ package filetree
import ( import (
"fmt" "fmt"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"path" "path"
"strings" "strings"

View File

@ -1,7 +1,7 @@
package filetree package filetree
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"testing" "testing"
) )

29
go.mod
View File

@ -1,4 +1,4 @@
module local/notes-server module gogs.inhome.blapointe.com/local/notes-server
go 1.16 go 1.16
@ -8,26 +8,9 @@ require (
github.com/russross/blackfriday v1.6.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 github.com/russross/blackfriday/v2 v2.1.0
github.com/yuin/goldmark v1.3.4-0.20210326114109-75d8cce5b78c github.com/yuin/goldmark v1.3.4-0.20210326114109-75d8cce5b78c
local/args v0.0.0-00010101000000-000000000000 gogs.inhome.blapointe.com/local/args latest
local/gziphttp v0.0.0-00010101000000-000000000000 gogs.inhome.blapointe.com/local/gziphttp latest
local/notes-server/notes/md v0.0.0-00010101000000-000000000000 gogs.inhome.blapointe.com/local/oauth2 latest
local/oauth2 v0.0.0-00010101000000-000000000000 gogs.inhome.blapointe.com/local/router latest
local/router v0.0.0-00010101000000-000000000000 gogs.inhome.blapointe.com/local/simpleserve latest
local/simpleserve v0.0.0-00010101000000-000000000000
) )
replace local/gziphttp => ../gziphttp
replace local/logb => ../logb
replace local/oauth2 => ../oauth2
replace local/simpleserve => ../simpleserve
replace local/args => ../args
replace local/router => ../router
replace local/storage => ../storage
replace local/notes-server/notes/md => ./notes/md

View File

@ -1,10 +1,10 @@
package main package main
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"local/notes-server/notes/editor" "gogs.inhome.blapointe.com/local/notes-server/notes/editor"
"local/notes-server/server" "gogs.inhome.blapointe.com/local/notes-server/server"
"local/notes-server/versions" "gogs.inhome.blapointe.com/local/notes-server/versions"
"log" "log"
"net/http" "net/http"
"os" "os"

View File

@ -3,8 +3,8 @@ package main
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"local/notes-server/server" "gogs.inhome.blapointe.com/local/notes-server/server"
"log" "log"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"

View File

@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"os" "os"
"path" "path"
"strings" "strings"

View File

@ -3,7 +3,7 @@ package notes
import ( import (
"bytes" "bytes"
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"path" "path"
"strings" "strings"

View File

@ -2,7 +2,7 @@ package notes
import ( import (
"errors" "errors"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"path" "path"
) )

View File

@ -1,7 +1,7 @@
package notes package notes
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"testing" "testing"
) )

View File

@ -2,7 +2,7 @@ package notes
import ( import (
"fmt" "fmt"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"os" "os"
) )

View File

@ -2,7 +2,7 @@ package notes
import ( import (
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"path" "path"
"testing" "testing"

View File

@ -3,7 +3,7 @@ package notes
import ( import (
"errors" "errors"
"io/ioutil" "io/ioutil"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
) )
func (n *Notes) Dir(urlPath string) (string, string, error) { func (n *Notes) Dir(urlPath string) (string, string, error) {

View File

@ -1,7 +1,7 @@
package notes package notes
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"testing" "testing"
) )

View File

@ -4,8 +4,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"local/notes-server/notes/editor" "gogs.inhome.blapointe.com/local/notes-server/notes/editor"
"strings" "strings"
) )

View File

@ -1,7 +1,7 @@
package notes package notes
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"strings" "strings"
"testing" "testing"
) )

View File

@ -7,8 +7,8 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"local/notes-server/notes/md" "gogs.inhome.blapointe.com/local/notes-server/notes/md"
"path" "path"
"regexp" "regexp"
"strings" "strings"

View File

@ -3,7 +3,7 @@ package notes
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"path" "path"
"strings" "strings"

View File

@ -1,4 +1,4 @@
module local/notes-server/notes/md module gogs.inhome.blapointe.com/local/notes-server/notes/md
go 1.18 go 1.18

View File

@ -1,6 +1,6 @@
package notes package notes
import "local/notes-server/config" import "gogs.inhome.blapointe.com/local/notes-server/config"
type Notes struct { type Notes struct {
root string root string

View File

@ -4,7 +4,7 @@ import (
"bufio" "bufio"
"errors" "errors"
"io" "io"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"log" "log"
"os" "os"
"path" "path"

View File

@ -45,7 +45,7 @@ func TestSearch(t *testing.T) {
func TestSearchBigFiles(t *testing.T) { func TestSearchBigFiles(t *testing.T) {
n := New() n := New()
n.root = "/usr/local/bin" n.root = "/usr/gogs.inhome.blapointe.com/local/bin"
_, err := n.Search("this file") _, err := n.Search("this file")
if err != nil { if err != nil {

View File

@ -2,7 +2,7 @@ package notes
import ( import (
"io/ioutil" "io/ioutil"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"os" "os"
"path" "path"
) )

View File

@ -2,7 +2,7 @@ package notes
import ( import (
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"testing" "testing"
) )

View File

@ -3,7 +3,7 @@ package server
import ( import (
"errors" "errors"
"io" "io"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"net/http" "net/http"
"os" "os"
"path" "path"

View File

@ -2,7 +2,7 @@ package server
import ( import (
"html" "html"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"net/http" "net/http"
"path" "path"
"strconv" "strconv"

View File

@ -2,7 +2,7 @@ package server
import ( import (
"fmt" "fmt"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"net/http" "net/http"
) )

View File

@ -2,7 +2,7 @@ package server
import ( import (
"fmt" "fmt"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"net/http" "net/http"
) )

View File

@ -1,7 +1,7 @@
package server package server
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"net/http/httptest" "net/http/httptest"
"regexp" "regexp"
"strings" "strings"

View File

@ -2,8 +2,8 @@ package server
import ( import (
"fmt" "fmt"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"net/http" "net/http"
"path" "path"
"regexp" "regexp"

View File

@ -2,8 +2,8 @@ package server
import ( import (
"io" "io"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"local/simpleserve/simpleserve" "gogs.inhome.blapointe.com/local/simpleserve/simpleserve"
"net/http" "net/http"
"os" "os"
) )

View File

@ -2,9 +2,9 @@ package server
import ( import (
"fmt" "fmt"
"local/gziphttp" "gogs.inhome.blapointe.com/local/gziphttp"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"local/router" "gogs.inhome.blapointe.com/local/router"
"net/http" "net/http"
"path/filepath" "path/filepath"
"strings" "strings"

View File

@ -3,7 +3,7 @@ package server
import ( import (
"fmt" "fmt"
"html" "html"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"net/http" "net/http"
) )

View File

@ -1,10 +1,10 @@
package server package server
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"local/notes-server/notes" "gogs.inhome.blapointe.com/local/notes-server/notes"
"local/oauth2/oauth2client" "gogs.inhome.blapointe.com/local/oauth2/oauth2client"
"local/router" "gogs.inhome.blapointe.com/local/router"
"log" "log"
"net/http" "net/http"
) )

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"html" "html"
"local/notes-server/filetree" "gogs.inhome.blapointe.com/local/notes-server/filetree"
"net/http" "net/http"
"path" "path"
"strings" "strings"

View File

@ -1,7 +1,7 @@
package versions package versions
import ( import (
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"time" "time"
git "gopkg.in/src-d/go-git.v4" git "gopkg.in/src-d/go-git.v4"

View File

@ -2,7 +2,7 @@ package versions
import ( import (
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"path" "path"
"testing" "testing"

View File

@ -2,7 +2,7 @@ package versions
import ( import (
"fmt" "fmt"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"strings" "strings"
) )

View File

@ -3,7 +3,7 @@ package versions
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"log" "log"
"os" "os"
"os/exec" "os/exec"

View File

@ -2,7 +2,7 @@ package versions
import ( import (
"io/ioutil" "io/ioutil"
"local/notes-server/config" "gogs.inhome.blapointe.com/local/notes-server/config"
"os" "os"
"path" "path"
"testing" "testing"