Skip to content

Commit ebab39a

Browse files
author
xhlulu
committed
Apply black
Former-commit-id: 4e125e2
1 parent c936f4b commit ebab39a

File tree

8 files changed

+60
-22
lines changed

8 files changed

+60
-22
lines changed

apps/dash-financial-report/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ def get_header(app):
1616
src=app.get_asset_url("dash-financial-logo.png"),
1717
className="logo",
1818
),
19-
href="https://plotly.com/dash"
19+
href="https://plotly.com/dash",
2020
),
2121
html.A(
22-
html.Button("Enterprise Demo", id="learn-more-button", style={"margin-left": "-10px"}),
22+
html.Button(
23+
"Enterprise Demo",
24+
id="learn-more-button",
25+
style={"margin-left": "-10px"},
26+
),
2327
href="https://plotly.com/get-demo/",
2428
),
2529
html.A(

apps/dash-interest-rate/utils.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@
33
import dash_core_components as dcc
44
import dash_bootstrap_components as dbc
55

6+
67
def Header(name, app):
78
title = html.H2(name, style={"margin-top": 7})
89
logo = html.Img(
910
src=app.get_asset_url("dash-logo.png"), style={"float": "right", "height": 60}
1011
)
1112
link = html.A(logo, href="https://plotly.com/dash/")
12-
btn_style = {'margin-top': '13px', 'float': 'right', 'margin-right': '10px'}
13-
demo_btn = html.A(dbc.Button("Enterprise Demo", style=btn_style, color="primary"), href="https://plotly.com/get-demo/")
14-
code_btn = html.A(dbc.Button("Source Code", style=btn_style, color="secondary"), href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-interest-rate")
13+
btn_style = {"margin-top": "13px", "float": "right", "margin-right": "10px"}
14+
demo_btn = html.A(
15+
dbc.Button("Enterprise Demo", style=btn_style, color="primary"),
16+
href="https://plotly.com/get-demo/",
17+
)
18+
code_btn = html.A(
19+
dbc.Button("Source Code", style=btn_style, color="secondary"),
20+
href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-interest-rate",
21+
)
1522

1623
return dbc.Row([dbc.Col(title, md=7), dbc.Col([link, demo_btn, code_btn], md=5)])
1724

25+
1826
def OptionMenu(values, label, **kwargs):
1927
options = [{"label": s.replace("_", " ").capitalize(), "value": s} for s in values]
2028
kwargs["value"] = kwargs.get("value", values[0])

apps/dash-manufacture-spc-dashboard/app.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ def build_banner():
5050
id="banner-logo",
5151
children=[
5252
html.A(
53-
html.Button(
54-
children="ENTERPRISE DEMO"
55-
),
56-
href="https://plotly.com/get-demo/"
53+
html.Button(children="ENTERPRISE DEMO"),
54+
href="https://plotly.com/get-demo/",
5755
),
5856
html.Button(
5957
id="learn-more-button", children="LEARN MORE", n_clicks=0
6058
),
6159
html.A(
6260
html.Img(id="logo", src=app.get_asset_url("dash-logo-new.png")),
63-
href="https://plotly.com/dash/"
61+
href="https://plotly.com/dash/",
6462
),
6563
],
6664
),

apps/dash-opioid-epidemic/app.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,18 @@
9494
html.Div(
9595
id="header",
9696
children=[
97-
html.A(html.Img(id="logo", src=app.get_asset_url("dash-logo.png")), href="https://plotly.com/dash/"),
98-
html.A(html.Button("Enterprise Demo", className="link-button"), href="https://plotly.com/get-demo/"),
99-
html.A(html.Button("Source Code", className="link-button"), href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-opioid-epidemic"),
97+
html.A(
98+
html.Img(id="logo", src=app.get_asset_url("dash-logo.png")),
99+
href="https://plotly.com/dash/",
100+
),
101+
html.A(
102+
html.Button("Enterprise Demo", className="link-button"),
103+
href="https://plotly.com/get-demo/",
104+
),
105+
html.A(
106+
html.Button("Source Code", className="link-button"),
107+
href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-opioid-epidemic",
108+
),
100109
html.H4(children="Rate of US Poison-Induced Deaths"),
101110
html.P(
102111
id="description",

apps/dash-pivottable/app.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,19 @@ def Header(name, app):
1616
html.H1(name, style={"margin": 10, "display": "inline"}),
1717
html.A(dash_logo, href="https://plotly.com/dash/"),
1818
html.A(ghub_logo, href="https://github.com/plotly/dash-pivottable"),
19-
html.A(html.Button("Enterprise Demo", style={"float": "right", "margin-right": "10px", "margin-top": "5px", "padding": "5px 10px", "font-size": "15px"}), href="https://plotly.com/get-demo/"),
19+
html.A(
20+
html.Button(
21+
"Enterprise Demo",
22+
style={
23+
"float": "right",
24+
"margin-right": "10px",
25+
"margin-top": "5px",
26+
"padding": "5px 10px",
27+
"font-size": "15px",
28+
},
29+
),
30+
href="https://plotly.com/get-demo/",
31+
),
2032
html.Hr(),
2133
]
2234
)

apps/dash-uber-rides-demo/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@
7070
children=[
7171
html.A(
7272
html.Img(
73-
className="logo", src=app.get_asset_url("dash-logo-new.png")
73+
className="logo",
74+
src=app.get_asset_url("dash-logo-new.png"),
7475
),
75-
href="https://plotly.com/dash/"
76+
href="https://plotly.com/dash/",
7677
),
7778
html.H2("DASH - UBER DATA APP"),
7879
html.P(

apps/dash-web-trader/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,10 @@ def modal(pair):
797797
children=[
798798
html.A(
799799
html.Img(
800-
className="logo", src=app.get_asset_url("dash-logo-new.png")
800+
className="logo",
801+
src=app.get_asset_url("dash-logo-new.png"),
801802
),
802-
href="https://plotly.com/dash/"
803+
href="https://plotly.com/dash/",
803804
),
804805
html.H6(className="title-header", children="FOREX TRADER"),
805806
dcc.Markdown(

apps/dash-wind-streaming/app.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,21 @@
4141
),
4242
html.Div(
4343
[
44-
html.A(html.Button("SOURCE CODE", className="link-button"), href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-wind-streaming"),
45-
html.A(html.Button("ENTERPRISE DEMO", className="link-button"), href="https://plotly.com/get-demo/"),
44+
html.A(
45+
html.Button("SOURCE CODE", className="link-button"),
46+
href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-wind-streaming",
47+
),
48+
html.A(
49+
html.Button("ENTERPRISE DEMO", className="link-button"),
50+
href="https://plotly.com/get-demo/",
51+
),
4652
html.A(
4753
html.Img(
4854
src=app.get_asset_url("dash-new-logo.png"),
4955
className="app__menu__img",
5056
),
51-
href="https://plotly.com/dash/"
57+
href="https://plotly.com/dash/",
5258
),
53-
5459
],
5560
className="app__header__logo",
5661
),

0 commit comments

Comments
 (0)