-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from marcopollivier/feat/ui-ssr
Implement SSR UI
- Loading branch information
Showing
114 changed files
with
6,681 additions
and
1,268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*/node_modules | ||
.dockerignore | ||
Dockerfile | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
issues: | ||
exclude-rules: | ||
- path: internal/user/handler_oauth.go | ||
- path: pkg/user/middleware.go | ||
text: 'SA1029: should not use built-in type string as key for value; define your own type to avoid collisions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package cmd | ||
|
||
import ( | ||
"crypto/ed25519" | ||
"encoding/base64" | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
func init() { | ||
rootCmd.AddCommand(generateJWTKey) | ||
} | ||
|
||
var ( | ||
generateJWTKey = &cobra.Command{ | ||
Use: "key-gen", | ||
Short: "Generate a private and a public ED25519 key", | ||
RunE: func(cmd *cobra.Command, args []string) (err error) { | ||
pub, pk, err := ed25519.GenerateKey(nil) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
pkb64 := base64.StdEncoding.EncodeToString(pk) | ||
pubb64 := base64.StdEncoding.EncodeToString(pub) | ||
|
||
fmt.Printf("PK: %s\n", pkb64) | ||
fmt.Printf("PUB: %s\n", pubb64) | ||
return nil | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
GOOSE_DRIVER=postgres | ||
GOOSE_DRIVER=postgres | ||
GOOSE_DBSTRING="user=postgres dbname=postgres sslmode=disable" | ||
|
||
ENVIRONMENT=development | ||
DB_HOST=localhost | ||
DATABASE_HOST=localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.