Skip to content

Commit

Permalink
Merge pull request #9 from OSC/update/theme
Browse files Browse the repository at this point in the history
Update dex theme
  • Loading branch information
treydock authored Aug 4, 2020
2 parents fcf5d55 + 955853d commit 893f8ba
Show file tree
Hide file tree
Showing 33 changed files with 686 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.tar.gz
/packaging/theme.tar.gz
/packaging/*.tar.gz
/packaging/tmp
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: packaging

packaging:
cd theme && tar czvf ../packaging/theme.tar.gz ./*
cd web && tar czvf ../packaging/web.tar.gz ./*
12 changes: 5 additions & 7 deletions packaging/ondemand-dex.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ License: Apache-2.0
URL: https://github.com/dexidp/dex
Source0: https://github.com/dexidp/dex/archive/v%{version}.tar.gz
Source1: https://dl.google.com/go/go%{go_version}.linux-amd64.tar.gz
Source2: theme.tar.gz
Source2: web.tar.gz
# Adds session support
Source3: https://github.com/OSC/dex/commit/b3fc3e6c2295c0af166803bdde0977ed170d1d40.patch
Source5: https://github.com/OSC/dex/commit/b3fc3e6c2295c0af166803bdde0977ed170d1d40.patch

BuildRequires: ondemand-scldevel
BuildRequires: systemd
Expand All @@ -46,7 +46,7 @@ GOPATH=$(go env GOPATH)
cd $GOPATH/src/github.com/dexidp/dex/
%__make bin/dex
%__mv bin/dex bin/dex-orig
%__patch -p1 < %{SOURCE3}
%__patch -p1 < %{SOURCE5}
%__make bin/dex
%__mv bin/dex bin/dex-session
%__mv bin/dex-orig bin/dex
Expand All @@ -60,10 +60,8 @@ cd $GOPATH/src/github.com/dexidp/dex/
%__install -p -m 755 -D bin/dex-session %{buildroot}%{_sbindir}/%{name}-session
%__install -p -m 600 -D examples/config-dev.yaml %{buildroot}%{confdir}/config.yaml
touch %{buildroot}%{confdir}/dex.db
%__mkdir_p %{buildroot}%{_datadir}/%{name}
%__cp -R web %{buildroot}%{_datadir}/%{name}/web
%__mkdir_p %{buildroot}%{_datadir}/%{name}/web/themes/ondemand
%__tar -C %{buildroot}%{_datadir}/%{name}/web/themes/ondemand -xzf %{SOURCE2}
%__mkdir_p %{buildroot}%{_datadir}/%{name}/web
%__tar -C %{buildroot}%{_datadir}/%{name}/web -xzf %{SOURCE2}
%__mkdir_p %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d
%__cat >> %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d/session.conf.example << EOF
[Service]
Expand Down
Binary file removed theme/favicon.png
Binary file not shown.
Binary file removed theme/logo.png
Binary file not shown.
113 changes: 0 additions & 113 deletions theme/styles.css

This file was deleted.

7 changes: 7 additions & 0 deletions web/static/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web/static/bootstrap.min.css.map

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions web/static/img/atlassian-crowd-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions web/static/img/bitbucket-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions web/static/img/coreos-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions web/static/img/email-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions web/static/img/github-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions web/static/img/gitlab-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions web/static/img/google-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions web/static/img/ldap-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions web/static/img/linkedin-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions web/static/img/microsoft-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 893f8ba

Please sign in to comment.