Skip to content

Commit 99f74a8

Browse files
vincbecknailo2c
authored andcommitted
FAB login. Fix asset URLs and missing alert (apache#47586)
1 parent 77399b5 commit 99f74a8

File tree

12 files changed

+153
-6
lines changed

12 files changed

+153
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,6 @@ repos:
592592
^airflow/models/baseoperator.py$|
593593
^airflow/operators/__init__.py$|
594594
^providers/common/sql/tests/provider_tests/common/sql/operators/test_sql_execute.py$|
595-
^providers/fab/src/airflow/providers/fab/www/static/css/bootstrap-theme.css$|
596595
^providers/amazon/src/airflow/providers/amazon/aws/hooks/emr.py$|
597596
^providers/amazon/src/airflow/providers/amazon/aws/operators/emr.py$|
598597
^providers/apache/cassandra/src/airflow/providers/apache/cassandra/hooks/cassandra.py$|
@@ -603,14 +602,14 @@ repos:
603602
^providers/apache/spark/src/airflow/providers/apache/spark/operators/|
604603
^providers/exasol/src/airflow/providers/exasol/hooks/exasol.py$|
605604
^providers/fab/src/airflow/providers/fab/auth_manager/security_manager/|
606-
^providers/fab/src/airflow/providers/fab/www/static/css/bootstrap-theme.css$|
605+
^providers/fab/src/airflow/providers/fab/www/static/|
606+
^providers/fab/src/airflow/providers/fab/www/templates/|
607607
^providers/google/src/airflow/providers/google/cloud/hooks/bigquery.py$|
608608
^providers/google/src/airflow/providers/google/cloud/operators/cloud_build.py$|
609609
^providers/google/src/airflow/providers/google/cloud/operators/dataproc.py$|
610610
^providers/google/src/airflow/providers/google/cloud/operators/mlengine.py$|
611611
^providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/cosmos.py$|
612612
^providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py$|
613-
^airflow/www/fab_security/manager.py$|
614613
^docs/.*commits.rst$|
615614
^docs/apache-airflow-providers-apache-cassandra/connections/cassandra.rst$|
616615
^providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/operators/winrm.py$|

providers/fab/src/airflow/providers/fab/www/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"babel-jest": "^27.3.1",
4747
"babel-loader": "^9.1.0",
4848
"clean-webpack-plugin": "^3.0.0",
49-
"copy-webpack-plugin": "^12.0.2",
49+
"copy-webpack-plugin": "^6.0.3",
5050
"css-loader": "5.2.7",
5151
"css-minimizer-webpack-plugin": "^4.0.0",
5252
"eslint": "^8.6.0",
@@ -74,5 +74,8 @@
7474
"dependencies": {
7575
"jquery-ui": "^1.14.1",
7676
"moment-timezone": "^0.5.43"
77+
},
78+
"resolutions": {
79+
"moment-timezone": ">=0.5.35"
7780
}
7881
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*!
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
.panel-heading #alerts-accordion-toggle::after {
21+
float: right;
22+
color: grey;
23+
}
24+
25+
.panel-heading #alerts-accordion-toggle.collapsed::after {
26+
float: right;
27+
color: grey;
28+
}
29+
30+
#errorHeading {
31+
background-color: #d6d8d9; /* same color as Bootstrap's Dark Alert */
32+
}
33+
34+
.dag-import-error {
35+
position: relative;
36+
white-space: pre;
37+
height: 14px;
38+
line-height: 14px; /* show only one line of 14px text */
39+
overflow: hidden;
40+
cursor: pointer;
41+
}
42+
43+
.expanded-error {
44+
height: 100%;
45+
}
46+
47+
.dag-import-error::after {
48+
float: right;
49+
color: #e43921;
50+
position: absolute;
51+
top: 0;
52+
right: 0;
53+
}
54+
55+
.expanded-error .toggle-direction {
56+
transform: rotate(180deg);
57+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/.panel-heading #alerts-accordion-toggle.collapsed:after,.panel-heading #alerts-accordion-toggle:after{color:grey;float:right}#errorHeading{background-color:#d6d8d9}.dag-import-error{cursor:pointer;height:14px;line-height:14px;overflow:hidden;position:relative;white-space:pre}.expanded-error{height:100%}.dag-import-error:after{color:#e43921;float:right;position:absolute;right:0;top:0}.expanded-error .toggle-direction{transform:rotate(180deg)}

providers/fab/src/airflow/providers/fab/www/static/dist/flash.137b30cff85b5588e661.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/fab/src/airflow/providers/fab/www/static/dist/jquery-ui.min.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/fab/src/airflow/providers/fab/www/static/dist/jquery-ui.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*! jQuery UI - v1.14.1 - 2024-10-30
2+
* https://jqueryui.com
3+
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
4+
* Copyright OpenJS Foundation and other contributors; Licensed MIT */
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"airflowDefaultTheme.css": "airflowDefaultTheme.feec4a4075c2f3d6ae01.css",
3+
"airflowDefaultTheme.js": "airflowDefaultTheme.feec4a4075c2f3d6ae01.js",
4+
"flash.css": "flash.137b30cff85b5588e661.css",
5+
"flash.js": "flash.137b30cff85b5588e661.js",
6+
"loadingDots.css": "loadingDots.48ab7d5b04e66f2686b0.css",
7+
"loadingDots.js": "loadingDots.48ab7d5b04e66f2686b0.js",
8+
"main.css": "main.ec1d38d994d72bb083cd.css",
9+
"main.js": "main.ec1d38d994d72bb083cd.js",
10+
"materialIcons.css": "materialIcons.57390fa60d8f61175334.css",
11+
"materialIcons.js": "materialIcons.57390fa60d8f61175334.js",
12+
"moment.js": "moment.4d28b37c229bdfc54575.js",
13+
"jquery-ui.min.js": "jquery-ui.min.js",
14+
"jquery-ui.min.css": "jquery-ui.min.css",
15+
"oss-licenses.json": "oss-licenses.json",
16+
"../../../../3rd-party-licenses/LICENSES-ui.txt": "../../../../3rd-party-licenses/LICENSES-ui.txt"
17+
}

providers/fab/src/airflow/providers/fab/www/templates/airflow/main.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
{% endblock %}
5454

5555
{% block messages %}
56+
{% include 'appbuilder/flash.html' %}
5657
{% if show_plugin_message %}
5758
{% call show_message(category='warning', dismissible=false) %}
5859
<p>

0 commit comments

Comments
 (0)