Spaces:
Sleeping
Sleeping
Sync app from GitHub Actions
Browse files- src/ui/app_factory.py +14 -2
- src/ui/theme.py +176 -0
src/ui/app_factory.py
CHANGED
|
@@ -3012,8 +3012,14 @@ def create_app() -> gr.Blocks:
|
|
| 3012 |
projects_table = gr.Dataframe(
|
| 3013 |
value=_project_rows(),
|
| 3014 |
headers=["Project", "Name", "Dataset", "Visibility", "Owner", "Token", "Active"],
|
|
|
|
| 3015 |
interactive=False,
|
| 3016 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3017 |
)
|
| 3018 |
|
| 3019 |
with gr.Row(elem_classes=["bn-admin-action-row"]):
|
|
@@ -3392,8 +3398,14 @@ def create_app() -> gr.Blocks:
|
|
| 3392 |
pending_invites_table = gr.Dataframe(
|
| 3393 |
value=[],
|
| 3394 |
headers=["Username", "Project", "Role", "Invited by", "Expires at", "Expires in"],
|
|
|
|
| 3395 |
interactive=False,
|
| 3396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3397 |
)
|
| 3398 |
pending_invites_message = gr.Markdown()
|
| 3399 |
with gr.Row(elem_classes=["bn-admin-action-row"]):
|
|
|
|
| 3012 |
projects_table = gr.Dataframe(
|
| 3013 |
value=_project_rows(),
|
| 3014 |
headers=["Project", "Name", "Dataset", "Visibility", "Owner", "Token", "Active"],
|
| 3015 |
+
label="Registered projects",
|
| 3016 |
interactive=False,
|
| 3017 |
+
max_height=300,
|
| 3018 |
+
wrap=False,
|
| 3019 |
+
column_widths=["13%", "17%", "28%", "13%", "13%", "8%", "8%"],
|
| 3020 |
+
show_row_numbers=False,
|
| 3021 |
+
elem_id="bn-admin-projects-table",
|
| 3022 |
+
elem_classes=["bn-dataframe", "bn-polished-dataframe", "bn-admin-dataframe"],
|
| 3023 |
)
|
| 3024 |
|
| 3025 |
with gr.Row(elem_classes=["bn-admin-action-row"]):
|
|
|
|
| 3398 |
pending_invites_table = gr.Dataframe(
|
| 3399 |
value=[],
|
| 3400 |
headers=["Username", "Project", "Role", "Invited by", "Expires at", "Expires in"],
|
| 3401 |
+
label="Pending invites",
|
| 3402 |
interactive=False,
|
| 3403 |
+
max_height=300,
|
| 3404 |
+
wrap=False,
|
| 3405 |
+
column_widths=["18%", "18%", "12%", "18%", "22%", "12%"],
|
| 3406 |
+
show_row_numbers=False,
|
| 3407 |
+
elem_id="bn-admin-pending-invites-table",
|
| 3408 |
+
elem_classes=["bn-dataframe", "bn-polished-dataframe", "bn-admin-dataframe"],
|
| 3409 |
)
|
| 3410 |
pending_invites_message = gr.Markdown()
|
| 3411 |
with gr.Row(elem_classes=["bn-admin-action-row"]):
|
src/ui/theme.py
CHANGED
|
@@ -961,6 +961,182 @@ button.bn-report-download-action-blue:hover {
|
|
| 961 |
font-weight: 750 !important;
|
| 962 |
}
|
| 963 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 964 |
.bn-validation-dataframe {
|
| 965 |
overflow: hidden !important;
|
| 966 |
border: 1px solid var(--bn-border) !important;
|
|
|
|
| 961 |
font-weight: 750 !important;
|
| 962 |
}
|
| 963 |
|
| 964 |
+
.bn-polished-dataframe {
|
| 965 |
+
overflow: hidden !important;
|
| 966 |
+
border: 1px solid var(--bn-border) !important;
|
| 967 |
+
border-radius: 8px !important;
|
| 968 |
+
background: #eef4fb !important;
|
| 969 |
+
box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05) !important;
|
| 970 |
+
padding: 0 !important;
|
| 971 |
+
}
|
| 972 |
+
|
| 973 |
+
.bn-polished-dataframe .table-container {
|
| 974 |
+
margin: 0 !important;
|
| 975 |
+
padding: 0 !important;
|
| 976 |
+
background: #ffffff !important;
|
| 977 |
+
border-radius: 8px !important;
|
| 978 |
+
overflow: hidden !important;
|
| 979 |
+
}
|
| 980 |
+
|
| 981 |
+
.bn-polished-dataframe .header-row {
|
| 982 |
+
position: static !important;
|
| 983 |
+
display: flex !important;
|
| 984 |
+
align-items: center !important;
|
| 985 |
+
min-height: 40px !important;
|
| 986 |
+
margin: 0 !important;
|
| 987 |
+
padding: 10px 14px !important;
|
| 988 |
+
border: 0 !important;
|
| 989 |
+
border-bottom: 1px solid #dbe5ef !important;
|
| 990 |
+
background: #eef4fb !important;
|
| 991 |
+
color: #40566f !important;
|
| 992 |
+
font-size: 13px !important;
|
| 993 |
+
font-weight: 650 !important;
|
| 994 |
+
line-height: 1.2 !important;
|
| 995 |
+
}
|
| 996 |
+
|
| 997 |
+
.bn-polished-dataframe .header-row .label,
|
| 998 |
+
.bn-polished-dataframe .header-row .label p {
|
| 999 |
+
margin: 0 !important;
|
| 1000 |
+
padding: 0 !important;
|
| 1001 |
+
color: inherit !important;
|
| 1002 |
+
font: inherit !important;
|
| 1003 |
+
line-height: inherit !important;
|
| 1004 |
+
}
|
| 1005 |
+
|
| 1006 |
+
.bn-polished-dataframe .wrap,
|
| 1007 |
+
.bn-polished-dataframe .table-wrap,
|
| 1008 |
+
.bn-polished-dataframe [data-testid="dataframe"] {
|
| 1009 |
+
margin: 0 !important;
|
| 1010 |
+
padding: 0 !important;
|
| 1011 |
+
border: 0 !important;
|
| 1012 |
+
border-radius: 0 0 8px 8px !important;
|
| 1013 |
+
background: #ffffff !important;
|
| 1014 |
+
}
|
| 1015 |
+
|
| 1016 |
+
.bn-polished-dataframe,
|
| 1017 |
+
.bn-polished-dataframe .wrap,
|
| 1018 |
+
.bn-polished-dataframe .table-wrap,
|
| 1019 |
+
.bn-polished-dataframe [data-testid="dataframe"],
|
| 1020 |
+
.bn-polished-dataframe [role="grid"] {
|
| 1021 |
+
max-width: 100% !important;
|
| 1022 |
+
overflow-x: hidden !important;
|
| 1023 |
+
}
|
| 1024 |
+
|
| 1025 |
+
.bn-polished-dataframe table {
|
| 1026 |
+
width: 100% !important;
|
| 1027 |
+
min-width: 0 !important;
|
| 1028 |
+
table-layout: fixed !important;
|
| 1029 |
+
border-collapse: separate !important;
|
| 1030 |
+
border-spacing: 0 !important;
|
| 1031 |
+
}
|
| 1032 |
+
|
| 1033 |
+
.bn-polished-dataframe th,
|
| 1034 |
+
.bn-polished-dataframe td {
|
| 1035 |
+
overflow: hidden !important;
|
| 1036 |
+
text-overflow: ellipsis !important;
|
| 1037 |
+
white-space: nowrap !important;
|
| 1038 |
+
padding: 9px 8px !important;
|
| 1039 |
+
border-color: #e6edf5 !important;
|
| 1040 |
+
vertical-align: middle !important;
|
| 1041 |
+
}
|
| 1042 |
+
|
| 1043 |
+
.bn-polished-dataframe th {
|
| 1044 |
+
background: #eef4fb !important;
|
| 1045 |
+
color: #1f344d !important;
|
| 1046 |
+
font-size: 12px !important;
|
| 1047 |
+
letter-spacing: 0 !important;
|
| 1048 |
+
text-transform: uppercase !important;
|
| 1049 |
+
}
|
| 1050 |
+
|
| 1051 |
+
.bn-polished-dataframe td {
|
| 1052 |
+
color: #102033 !important;
|
| 1053 |
+
font-size: 13px !important;
|
| 1054 |
+
}
|
| 1055 |
+
|
| 1056 |
+
.bn-polished-dataframe tbody tr:nth-child(even) td {
|
| 1057 |
+
background: #fbfdff !important;
|
| 1058 |
+
}
|
| 1059 |
+
|
| 1060 |
+
.bn-polished-dataframe tbody tr:hover td {
|
| 1061 |
+
background: #eff6ff !important;
|
| 1062 |
+
}
|
| 1063 |
+
|
| 1064 |
+
.bn-polished-dataframe * {
|
| 1065 |
+
scrollbar-width: none !important;
|
| 1066 |
+
}
|
| 1067 |
+
|
| 1068 |
+
.bn-polished-dataframe *::-webkit-scrollbar {
|
| 1069 |
+
display: none !important;
|
| 1070 |
+
}
|
| 1071 |
+
|
| 1072 |
+
#bn-admin-projects-table th:nth-child(1),
|
| 1073 |
+
#bn-admin-projects-table td:nth-child(1) {
|
| 1074 |
+
width: 13% !important;
|
| 1075 |
+
}
|
| 1076 |
+
|
| 1077 |
+
#bn-admin-projects-table th:nth-child(2),
|
| 1078 |
+
#bn-admin-projects-table td:nth-child(2) {
|
| 1079 |
+
width: 17% !important;
|
| 1080 |
+
}
|
| 1081 |
+
|
| 1082 |
+
#bn-admin-projects-table th:nth-child(3),
|
| 1083 |
+
#bn-admin-projects-table td:nth-child(3) {
|
| 1084 |
+
width: 28% !important;
|
| 1085 |
+
}
|
| 1086 |
+
|
| 1087 |
+
#bn-admin-projects-table th:nth-child(4),
|
| 1088 |
+
#bn-admin-projects-table td:nth-child(4),
|
| 1089 |
+
#bn-admin-projects-table th:nth-child(5),
|
| 1090 |
+
#bn-admin-projects-table td:nth-child(5) {
|
| 1091 |
+
width: 13% !important;
|
| 1092 |
+
}
|
| 1093 |
+
|
| 1094 |
+
#bn-admin-projects-table th:nth-child(6),
|
| 1095 |
+
#bn-admin-projects-table td:nth-child(6),
|
| 1096 |
+
#bn-admin-projects-table th:nth-child(7),
|
| 1097 |
+
#bn-admin-projects-table td:nth-child(7) {
|
| 1098 |
+
width: 8% !important;
|
| 1099 |
+
}
|
| 1100 |
+
|
| 1101 |
+
#bn-admin-pending-invites-table th:nth-child(1),
|
| 1102 |
+
#bn-admin-pending-invites-table td:nth-child(1),
|
| 1103 |
+
#bn-admin-pending-invites-table th:nth-child(2),
|
| 1104 |
+
#bn-admin-pending-invites-table td:nth-child(2),
|
| 1105 |
+
#bn-admin-pending-invites-table th:nth-child(4),
|
| 1106 |
+
#bn-admin-pending-invites-table td:nth-child(4) {
|
| 1107 |
+
width: 18% !important;
|
| 1108 |
+
}
|
| 1109 |
+
|
| 1110 |
+
#bn-admin-pending-invites-table th:nth-child(3),
|
| 1111 |
+
#bn-admin-pending-invites-table td:nth-child(3),
|
| 1112 |
+
#bn-admin-pending-invites-table th:nth-child(6),
|
| 1113 |
+
#bn-admin-pending-invites-table td:nth-child(6) {
|
| 1114 |
+
width: 12% !important;
|
| 1115 |
+
}
|
| 1116 |
+
|
| 1117 |
+
#bn-admin-pending-invites-table th:nth-child(5),
|
| 1118 |
+
#bn-admin-pending-invites-table td:nth-child(5) {
|
| 1119 |
+
width: 22% !important;
|
| 1120 |
+
}
|
| 1121 |
+
|
| 1122 |
+
#bn-admin-projects-table td:nth-child(1),
|
| 1123 |
+
#bn-admin-projects-table td:nth-child(3),
|
| 1124 |
+
#bn-admin-pending-invites-table td:nth-child(1),
|
| 1125 |
+
#bn-admin-pending-invites-table td:nth-child(2),
|
| 1126 |
+
#bn-admin-pending-invites-table td:nth-child(5) {
|
| 1127 |
+
color: #475467 !important;
|
| 1128 |
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
|
| 1129 |
+
font-size: 12px !important;
|
| 1130 |
+
}
|
| 1131 |
+
|
| 1132 |
+
#bn-admin-projects-table td:nth-child(6),
|
| 1133 |
+
#bn-admin-projects-table td:nth-child(7),
|
| 1134 |
+
#bn-admin-pending-invites-table td:nth-child(3),
|
| 1135 |
+
#bn-admin-pending-invites-table td:nth-child(6) {
|
| 1136 |
+
color: #0b5e86 !important;
|
| 1137 |
+
font-weight: 750 !important;
|
| 1138 |
+
}
|
| 1139 |
+
|
| 1140 |
.bn-validation-dataframe {
|
| 1141 |
overflow: hidden !important;
|
| 1142 |
border: 1px solid var(--bn-border) !important;
|