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"
"fmt"
"io/ioutil"
"local/args"
"gogs.inhome.blapointe.com/local/args"
"log"
"os"
"path/filepath"

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package filetree
import (
"local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/config"
"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
@ -8,26 +8,9 @@ require (
github.com/russross/blackfriday v1.6.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0
github.com/yuin/goldmark v1.3.4-0.20210326114109-75d8cce5b78c
local/args v0.0.0-00010101000000-000000000000
local/gziphttp v0.0.0-00010101000000-000000000000
local/notes-server/notes/md v0.0.0-00010101000000-000000000000
local/oauth2 v0.0.0-00010101000000-000000000000
local/router v0.0.0-00010101000000-000000000000
local/simpleserve v0.0.0-00010101000000-000000000000
gogs.inhome.blapointe.com/local/args latest
gogs.inhome.blapointe.com/local/gziphttp latest
gogs.inhome.blapointe.com/local/oauth2 latest
gogs.inhome.blapointe.com/local/router latest
gogs.inhome.blapointe.com/local/simpleserve latest
)
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
import (
"local/notes-server/config"
"local/notes-server/notes/editor"
"local/notes-server/server"
"local/notes-server/versions"
"gogs.inhome.blapointe.com/local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/notes/editor"
"gogs.inhome.blapointe.com/local/notes-server/server"
"gogs.inhome.blapointe.com/local/notes-server/versions"
"log"
"net/http"
"os"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@ package notes
import (
"fmt"
"io/ioutil"
"local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/config"
"os"
"path"
"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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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