Skip to content

Commit

Permalink
Merge pull request #22 from opencloud-eu/use-theming-web
Browse files Browse the repository at this point in the history
WEB theming
  • Loading branch information
butonic authored Jan 15, 2025
2 parents f1a2f4a + baccead commit 2f3c7e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 201 deletions.
1 change: 1 addition & 0 deletions services/web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_web
8 changes: 6 additions & 2 deletions services/web/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL := bash
NAME := web
WEB_ASSETS_VERSION = v11.1.0
WEB_ASSETS_VERSION = 552ff3c3f8e9543de653537087161c070698661e

include ../../.make/recursion.mk

Expand Down Expand Up @@ -33,7 +33,11 @@ ci-node-generate: pull-assets
.PHONY: pull-assets
pull-assets:
git clean -xfd assets
curl --fail -slL -o- https://github.com/owncloud/web/releases/download/$(WEB_ASSETS_VERSION)/web.tar.gz | tar xzf - -C assets/core/
rm -rf _web && git clone -b theming --single-branch [email protected]:opencloud-eu/web.git _web
make -C _web release
tar xfv _web/release/web.tar.gz -C assets/core/
cp -r _web/dev/docker/ocis-themes/opencloud assets/core/themes/ && rm -rf assets/core/themes/owncloud
rm -rf _web

############ licenses ############
.PHONY: ci-node-check-licenses
Expand Down
198 changes: 0 additions & 198 deletions services/web/assets/themes/owncloud/theme.json

This file was deleted.

5 changes: 4 additions & 1 deletion services/web/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func DefaultConfig() *config.Config {
GatewayAddress: "com.owncloud.api.gateway",
Web: config.Web{
ThemeServer: "https://localhost:9200",
ThemePath: "/themes/owncloud/theme.json",
ThemePath: "/themes/opencloud/theme.json",
Config: config.WebConfig{
Server: "https://localhost:9200",
Theme: "",
Expand All @@ -112,6 +112,9 @@ func DefaultConfig() *config.Config {
TokenStorageLocal: true,
UserListRequiresFilter: false,
},
Styles: []config.CustomStyle{
{Href: "/themes/opencloud/font.css"},
},
},
},
}
Expand Down

0 comments on commit 2f3c7e3

Please sign in to comment.