Skip to content

Commit

Permalink
Merge branch 'dev' into rasswanth/remove-unused-code
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavajay authored May 21, 2024
2 parents 9f192b0 + 38e64a7 commit 46c7c62
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 43 deletions.
44 changes: 7 additions & 37 deletions packages/syft/src/syft/assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
body[data-jp-theme-light="false"] {
body[data-jp-theme-light="false"],
body.vscode-dark {
--primary-color: #111111;
--secondary-color: #212121;
--tertiary-color: #cfcdd6;
--button-color: #111111;
--colors-black: #ffffff;
}

body {
--primary-color: #ffffff;
--secondary-color: #f5f5f5;
--tertiary-color: #000000de;
--button-color: #d1d5db;
--colors-black: #17161d;
}

.header-1 {
Expand All @@ -19,7 +22,7 @@ body {
line-height: 100%;
leading-trim: both;
text-edge: cap;
color: #17161d;
color: var(--colors-black);
}

.header-2 {
Expand All @@ -29,7 +32,7 @@ body {
line-height: 100%;
leading-trim: both;
text-edge: cap;
color: #17161d;
color: var(--colors-black);
}

.header-3 {
Expand All @@ -49,7 +52,7 @@ body {
line-height: 100%;
leading-trim: both;
text-edge: cap;
color: #17161d;
color: var(--colors-black);
}

.paragraph {
Expand Down Expand Up @@ -561,36 +564,3 @@ body {
.syft-widget li a:hover {
background-color: #c2def0;
}

.tabulator .tabulator-row .tabulator-cell {
border-right: 1px solid #e0e0e0;
background-color: var(--primary-color);
}

.tabulator .tabulator-row .tabulator-cell {
white-space: normal;
overflow-wrap: break-word;
}

.tabulator .tabulator-header .tabulator-col {
background-color: var(--secondary-color);
border-right: 1px solid #e0e0e0;
border-top: 1px solid #e0e0e0;
}

.tabulator .tabulator-header .tabulator-col:first-child {
border-left: 1px solid #e0e0e0;
}

.tabulator-row .tabulator-cell.tabulator-row-header {
background-color: var(--secondary-color);
border-right: 2px solid #e0e0e0;
}

.tabulator .tabulator-row .tabulator-cell:first-child {
border-left: 1px solid #e0e0e0;
}

.tabulator .tabulator-footer {
border-top: none;
}

This file was deleted.

6 changes: 6 additions & 0 deletions packages/syft/src/syft/assets/css/tabulator_pysyft.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/syft/src/syft/assets/js/table.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TABULATOR_SRC =
"https://unpkg.com/[email protected]/dist/js/tabulator.min";
TABULATOR_CSS =
"https://unpkg.com/[email protected]/dist/css/tabulator_materialize.min.css";
"https://cdn.jsdelivr.net/gh/openmined/pysyft/packages/syft/src/syft/assets/css/tabulator_pysyft.min.css";

document.querySelectorAll(".escape-unfocus").forEach((input) => {
input.addEventListener("keydown", (event) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/syft/src/syft/client/domain_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def upload_dataset(self, dataset: CreateDataset) -> SyftSuccess | SyftError:
)
prompt_warning_message(message=message, confirm=True)

for asset in tqdm(dataset.asset_list):
for asset in tqdm(dataset.asset_list, colour="green"):
print(f"Uploading: {asset.name}")
try:
twin = TwinObject(
Expand Down
1 change: 1 addition & 0 deletions packages/syft/src/syft/store/blob_storage/seaweedfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def write(self, data: BytesIO) -> SyftSuccess | SyftError:
with tqdm(
total=total_iterations,
desc=f"Uploading progress", # noqa
colour="green",
) as pbar:
for part_no, url in enumerate(
self.urls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def build_tabulator_table(obj: Any) -> str | None:

table_template = env.get_template("table.jinja2")
tabulator_js = load_js("tabulator.min.js")
tabulator_css = load_css("tabulator_materialize.min.css")
tabulator_css = load_css("tabulator_pysyft.min.css")
js = load_js("table.js")
css = load_css("style.css")

Expand Down
1 change: 0 additions & 1 deletion packages/syft/src/syft/util/notebook_ui/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
JS_DOWNLOAD_FONTS = f"""
<script>
function addStyleSheet(fileName) {{
var head = document.head;
var link = document.createElement("link");
Expand Down

0 comments on commit 46c7c62

Please sign in to comment.