change imports

This commit is contained in:
simon987 2019-03-10 09:47:11 -04:00
parent f50df4226d
commit 15a3e66b70
20 changed files with 23 additions and 19 deletions

View File

@ -2,8 +2,8 @@ package api
import ( import (
"encoding/json" "encoding/json"
"github.com/Sirupsen/logrus"
"github.com/simon987/task_tracker/storage" "github.com/simon987/task_tracker/storage"
"github.com/sirupsen/logrus"
"strconv" "strconv"
) )

View File

@ -1,7 +1,7 @@
package api package api
import ( import (
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
"runtime/debug" "runtime/debug"
) )

View File

@ -6,9 +6,9 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/Sirupsen/logrus"
"github.com/simon987/task_tracker/config" "github.com/simon987/task_tracker/config"
"github.com/simon987/task_tracker/storage" "github.com/simon987/task_tracker/storage"
"github.com/sirupsen/logrus"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"hash" "hash"
"strings" "strings"

View File

@ -2,7 +2,7 @@ package api
import ( import (
"encoding/json" "encoding/json"
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
) )

View File

@ -3,8 +3,8 @@ package api
import ( import (
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/Sirupsen/logrus"
"github.com/simon987/task_tracker/config" "github.com/simon987/task_tracker/config"
"github.com/sirupsen/logrus"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"os" "os"
"time" "time"

View File

@ -2,12 +2,12 @@ package api
import ( import (
"fmt" "fmt"
"github.com/Sirupsen/logrus"
"github.com/buaazp/fasthttprouter" "github.com/buaazp/fasthttprouter"
"github.com/kataras/go-sessions" "github.com/kataras/go-sessions"
"github.com/robfig/cron" "github.com/robfig/cron"
"github.com/simon987/task_tracker/config" "github.com/simon987/task_tracker/config"
"github.com/simon987/task_tracker/storage" "github.com/simon987/task_tracker/storage"
"github.com/sirupsen/logrus"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"sync" "sync"
) )

View File

@ -2,9 +2,9 @@ package api
import ( import (
"encoding/json" "encoding/json"
"github.com/Sirupsen/logrus"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/simon987/task_tracker/storage" "github.com/simon987/task_tracker/storage"
"github.com/sirupsen/logrus"
"golang.org/x/time/rate" "golang.org/x/time/rate"
"strconv" "strconv"
) )

View File

@ -7,9 +7,9 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/Sirupsen/logrus"
"github.com/dchest/siphash" "github.com/dchest/siphash"
"github.com/simon987/task_tracker/storage" "github.com/simon987/task_tracker/storage"
"github.com/sirupsen/logrus"
"math" "math"
"strconv" "strconv"
"time" "time"

View File

@ -2,8 +2,8 @@ package api
import ( import (
"encoding/json" "encoding/json"
"github.com/Sirupsen/logrus"
"github.com/simon987/task_tracker/storage" "github.com/simon987/task_tracker/storage"
"github.com/sirupsen/logrus"
"math/rand" "math/rand"
"strconv" "strconv"
"time" "time"

View File

@ -1,7 +1,7 @@
package config package config
import ( import (
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/viper" "github.com/spf13/viper"
"time" "time"
) )

View File

@ -5,7 +5,7 @@ import (
"crypto" "crypto"
"database/sql" "database/sql"
"errors" "errors"
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
) )
type ManagerRole int type ManagerRole int

View File

@ -2,9 +2,9 @@ package storage
import ( import (
"database/sql" "database/sql"
"github.com/Sirupsen/logrus"
_ "github.com/lib/pq" _ "github.com/lib/pq"
"github.com/simon987/task_tracker/config" "github.com/simon987/task_tracker/config"
"github.com/sirupsen/logrus"
"io/ioutil" "io/ioutil"
"os" "os"
"sync" "sync"

View File

@ -2,8 +2,8 @@ package storage
import ( import (
"encoding/json" "encoding/json"
"github.com/Sirupsen/logrus"
"github.com/simon987/task_tracker/config" "github.com/simon987/task_tracker/config"
"github.com/sirupsen/logrus"
) )
type LogEntry struct { type LogEntry struct {

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
) )
func (database *Database) ResetFailedTasks(pid int64) int64 { func (database *Database) ResetFailedTasks(pid int64) int64 {

View File

@ -1,8 +1,8 @@
package storage package storage
import ( import (
"github.com/Sirupsen/logrus"
"github.com/simon987/task_tracker/config" "github.com/simon987/task_tracker/config"
"github.com/sirupsen/logrus"
"time" "time"
) )

View File

@ -2,7 +2,7 @@ package storage
import ( import (
"database/sql" "database/sql"
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
"golang.org/x/time/rate" "golang.org/x/time/rate"
"strings" "strings"
) )

View File

@ -3,7 +3,7 @@ package storage
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
) )
type Task struct { type Task struct {

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
) )
type Worker struct { type Worker struct {

View File

@ -2,9 +2,9 @@ package test
import ( import (
"fmt" "fmt"
"github.com/Sirupsen/logrus"
"github.com/simon987/task_tracker/api" "github.com/simon987/task_tracker/api"
"github.com/simon987/task_tracker/storage" "github.com/simon987/task_tracker/storage"
"github.com/sirupsen/logrus"
"testing" "testing"
"time" "time"
) )

View File

@ -46,6 +46,10 @@
<mat-label>{{"project.submit_rate"|translate}}</mat-label> <mat-label>{{"project.submit_rate"|translate}}</mat-label>
<input matInput [(ngModel)]="project.submit_rate" name="submit_rate" type="number"> <input matInput [(ngModel)]="project.submit_rate" name="submit_rate" type="number">
</mat-form-field> </mat-form-field>
<mat-checkbox [(ngModel)]="project.public"
style="padding-top: 1em">
{{"project.public" | translate}}</mat-checkbox>
</form> </form>
</mat-card-content> </mat-card-content>
<mat-card-actions> <mat-card-actions>