Compare commits
No commits in common. "a5f24427a151435d4d3d2f1bda4b34e6ded006a3" and "686cd72ec2835a96fec79de25dd1ec8711bf4d3a" have entirely different histories.
a5f24427a1
...
686cd72ec2
|
@ -17,29 +17,28 @@ jobs:
|
|||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
# - uses: actions/setup-python@v5
|
||||
# with:
|
||||
# python-version: '3.11'
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
# - name: Build
|
||||
# run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
# - name: Test
|
||||
# run: go test -v ./...
|
||||
|
||||
- name: E2E Test
|
||||
run: |
|
||||
cd e2e_tests
|
||||
docker compose -f docker-compose.ci.yml up -d
|
||||
pip install -r requirements.txt
|
||||
pytest
|
||||
# - name: E2E Test
|
||||
# run: |
|
||||
# cd e2e_tests
|
||||
# docker compose -f docker-compose.ci.yml up -d
|
||||
# pip install -r requirements.txt
|
||||
# pytest
|
||||
|
||||
- name: Build Release
|
||||
env:
|
||||
CGO_ENABLED: 1
|
||||
GOOS: linux
|
||||
GOARCH: amd64
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
go build -o owl-linux-amd64 ./cmd/owl
|
||||
gh release upload ${{github.event.release.tag_name}} owl-linux-amd64
|
||||
|
|
|
@ -25,6 +25,7 @@ func (svc *SiteConfigService) defaultConfig() model.SiteConfig {
|
|||
return model.SiteConfig{
|
||||
Title: "My Owl-Blog",
|
||||
SubTitle: "A freshly created blog",
|
||||
HeaderColor: "#efc48c",
|
||||
PrimaryColor: "#d37f12",
|
||||
AuthorName: "",
|
||||
Me: []model.MeLinks{},
|
||||
|
|
|
@ -92,6 +92,7 @@ var importCmd = &cobra.Command{
|
|||
}
|
||||
v2Config.Title = v1Config.Title
|
||||
v2Config.SubTitle = v1Config.SubTitle
|
||||
v2Config.HeaderColor = v1Config.HeaderColor
|
||||
v2Config.AuthorName = v1Config.AuthorName
|
||||
v2Config.Me = mes
|
||||
v2Config.Lists = lists
|
||||
|
|
|
@ -22,6 +22,7 @@ type MenuItem struct {
|
|||
type SiteConfig struct {
|
||||
Title string
|
||||
SubTitle string
|
||||
HeaderColor string
|
||||
PrimaryColor string
|
||||
AuthorName string
|
||||
Me []MeLinks
|
||||
|
|
|
@ -13,12 +13,7 @@
|
|||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/index.xml">
|
||||
|
||||
<link rel='stylesheet' href='/static/owl.css'>
|
||||
<link rel='stylesheet' href='/static/style.css'>
|
||||
<style>
|
||||
:root {
|
||||
--primary: {{.SiteConfig.PrimaryColor}};
|
||||
}
|
||||
</style>
|
||||
<link rel='stylesheet' href='/static/style.css'>
|
||||
{{ .SiteConfig.HtmlHeadExtra }}
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
<label for="SubTitle">SubTitle</label>
|
||||
<input type="text" name="SubTitle" id="SubTitle" value="{{.SubTitle}}"/>
|
||||
|
||||
<label for="HeaderColor">HeaderColor</label>
|
||||
<input type="color" name="HeaderColor" id="HeaderColor" value="{{.HeaderColor}}"/>
|
||||
|
||||
<label for="PrimaryColor">PrimaryColor</label>
|
||||
<input type="color" name="PrimaryColor" id="PrimaryColor" value="{{.PrimaryColor}}"/>
|
||||
|
||||
|
|
|
@ -39,8 +39,7 @@ func NewWebApp(
|
|||
apService *app.ActivityPubService,
|
||||
) *WebApp {
|
||||
fiberApp := fiber.New(fiber.Config{
|
||||
BodyLimit: 50 * 1024 * 1024, // 50MB in bytes
|
||||
DisableStartupMessage: true,
|
||||
BodyLimit: 50 * 1024 * 1024, // 50MB in bytes
|
||||
})
|
||||
fiberApp.Use(middleware.NewUserMiddleware(authorService).Handle)
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ func (h *SiteConfigHandler) HandlePost(c *fiber.Ctx) error {
|
|||
|
||||
siteConfig.Title = c.FormValue("Title")
|
||||
siteConfig.SubTitle = c.FormValue("SubTitle")
|
||||
siteConfig.HeaderColor = c.FormValue("HeaderColor")
|
||||
siteConfig.PrimaryColor = c.FormValue("PrimaryColor")
|
||||
siteConfig.AuthorName = c.FormValue("AuthorName")
|
||||
siteConfig.AvatarUrl = c.FormValue("AvatarUrl")
|
||||
|
|
Loading…
Reference in New Issue