forked from portainer/portainer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch.sh
More file actions
executable file
·71 lines (60 loc) · 3.53 KB
/
Copy pathpatch.sh
File metadata and controls
executable file
·71 lines (60 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
function patch_rzslider()
{
echo "Patching 'node_modules/angularjs-slider/dist/rzslider.css'..."
sed -i "s/#0db9f0/#208B69/g" node_modules/angularjs-slider/dist/rzslider.css
}
function patch_bootstrap()
{
echo "Patching 'node_modules/bootstrap/dist/css/bootstrap.css'..."
sed -i "s/\ color: #23527c;/ color: #222222;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ color: #286090;/ color: #222222;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ color: #337ab7;/ color: #333333;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ color: #337ab7;/ color: #333333;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ border-color: #2e6da4;/ border-color: #53B193;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ background-color: #337ab7;/ background-color: #208B69;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ border-color: #204d74;/ border-color: #208B69;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ background-color: #286090;/ background-color: #53B193;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ border-color: #204d74;/ border-color: #208B69;/g" node_modules/bootstrap/dist/css/bootstrap.css
sed -i "s/\ background-color: #204d74;/ background-color: #208B69;/g" node_modules/bootstrap/dist/css/bootstrap.css
}
function patch_bootstrap_theme()
{
echo "Patching 'node_modules/bootstrap/dist/css/bootstrap.css'..."
sed -i "s/\ background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);/ background-image: -webkit-linear-gradient(top, #53B193 0%, #208B69 100%);/g" node_modules/bootstrap/dist/css/bootstrap-theme.css
sed -i "s/\ background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);/ background-image: -o-linear-gradient(top, #53B193 0%, #208B69 100%);/g" node_modules/bootstrap/dist/css/bootstrap-theme.css
sed -i "s/\ background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));/ background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#208B69));/g" node_modules/bootstrap/dist/css/bootstrap-theme.css
sed -i "s/\ background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);/ background-image: linear-gradient(to bottom, #53B193 0%, #208B69 100%);/g" node_modules/bootstrap/dist/css/bootstrap-theme.css
sed -i "s/\ background-color: #2e6da4;/ background-color: #208B69;/g" node_modules/bootstrap/dist/css/bootstrap-theme.css
}
function patch_rdash()
{
echo "Patching 'node_modules/rdash-ui/dist/css/rdash.css'..."
sed -i "s/\ background: #30426a;/ background: #208B69;/g" node_modules/rdash-ui/dist/css/rdash.css
sed -i "s/\ background: #2d3e63;/ background: #53B193;/g" node_modules/rdash-ui/dist/css/rdash.css
sed -i "s/\ color: #738bc0;/ color: #FFFFFF;/g" node_modules/rdash-ui/dist/css/rdash.css
sed -i "s/\ color: #b2bfdc;/ color: #FFFFFF;/g" node_modules/rdash-ui/dist/css/rdash.css
sed -i "s/\ border-left: 3px solid #FFA509;/ border-left: 3px solid #e99d1a;/g" node_modules/rdash-ui/dist/css/rdash.css
sed -i "s/\ color: #b2bfdc;/ color: #FFFFFF;/g" node_modules/rdash-ui/dist/css/rdash.css
}
function patch_css()
{
patch_rzslider
patch_bootstrap
patch_bootstrap_theme
patch_rdash
}
function main()
{
git checkout -b portainer-develop develop
git pull git://github.com/portainer/portainer.git develop
git checkout develop
git merge --no-ff portainer-develop
#git push origin develop
docker rmi -f portainer/base:latest
docker load -i portainer_base.tar
yarn
yarn build
patch_css
}
main