Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(icon): add airflow icon #487

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dist/components/icon/list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export declare enum IconName {
stderr = 90,
tensorflow = 91,
rokect = 92,
python = 93
python = 93,
airflow = 94
}
export declare function getIcon(iconName: IconName, color?: string, size?: string): ReactElement<any, any>;
19 changes: 18 additions & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ var oU = /* @__PURE__ */ vX(1, "split");
const aU = oU;
var OU = /* @__PURE__ */ vX(0, "toUpperCase");
const sU = OU;
var Ge = /* @__PURE__ */ ((t) => (t[t.db = 0] = "db", t[t.terminal = 1] = "terminal", t[t.plus = 2] = "plus", t[t.home = 3] = "home", t[t.fg = 4] = "fg", t[t.td = 5] = "td", t[t.sc = 6] = "sc", t[t.settings = 7] = "settings", t[t.back = 8] = "back", t[t.download = 9] = "download", t[t.folder = 10] = "folder", t[t.creation = 11] = "creation", t[t.more_zoom = 12] = "more_zoom", t[t.stats = 13] = "stats", t[t.history = 14] = "history", t[t.table = 15] = "table", t[t.list = 16] = "list", t[t.loading = 17] = "loading", t[t.refresh = 18] = "refresh", t[t.copy = 19] = "copy", t[t.bin = 20] = "bin", t[t.edit = 21] = "edit", t[t.stop = 22] = "stop", t[t.play = 23] = "play", t[t.card = 24] = "card", t[t.lines = 25] = "lines", t[t.arrow_down = 26] = "arrow_down", t[t.arrow_up = 27] = "arrow_up", t[t.arrow_left = 28] = "arrow_left", t[t.arrow_right = 29] = "arrow_right", t[t.arrows_maximize = 30] = "arrows_maximize", t[t.validate = 31] = "validate", t[t.data_validation = 32] = "data_validation", t[t.ingest = 33] = "ingest", t[t.jobs = 34] = "jobs", t[t.job = 35] = "job", t[t.birth = 36] = "birth", t[t.schema_update = 37] = "schema_update", t[t.new_stats = 38] = "new_stats", t[t.primary = 39] = "primary", t[t.partition = 40] = "partition", t[t.secondary = 41] = "secondary", t[t.lock = 42] = "lock", t[t.glass = 43] = "glass", t[t.left = 44] = "left", t[t.more = 45] = "more", t[t.cross = 46] = "cross", t[t.eye = 47] = "eye", t[t.warning = 48] = "warning", t[t.error = 49] = "error", t[t.info_block = 50] = "info_block", t[t.info = 51] = "info", t[t.interrogation = 52] = "interrogation", t[t.user_square = 53] = "user_square", t[t.ram = 54] = "ram", t[t.server = 55] = "server", t[t.cpu = 56] = "cpu", t[t.time = 57] = "time", t[t.commit = 58] = "commit", t[t.block = 59] = "block", t[t.streamed = 60] = "streamed", t[t.polygonUp = 61] = "polygonUp", t[t.polygonDown = 62] = "polygonDown", t[t.file = 63] = "file", t[t.fileData = 64] = "fileData", t[t.filecode = 65] = "filecode", t[t.fileImage = 66] = "fileImage", t[t.fileZip = 67] = "fileZip", t[t.dataset = 68] = "dataset", t[t.sharedWith = 69] = "sharedWith", t[t.sharedFrom = 70] = "sharedFrom", t[t.hopworks = 71] = "hopworks", t[t.upload = 72] = "upload", t[t.arrow_down_filled = 73] = "arrow_down_filled", t[t.arrow_up_down = 74] = "arrow_up_down", t[t.contact = 75] = "contact", t[t.expand = 76] = "expand", t[t.minimise = 77] = "minimise", t[t.pin_filled = 78] = "pin_filled", t[t.pin_empty = 79] = "pin_empty", t[t.models = 80] = "models", t[t.deployments = 81] = "deployments", t[t.jupyter = 82] = "jupyter", t[t.datasets = 83] = "datasets", t[t.favouriteEmpty = 84] = "favouriteEmpty", t[t.favouriteFilled = 85] = "favouriteFilled", t[t.correlation = 86] = "correlation", t[t.grafana = 87] = "grafana", t[t.target = 88] = "target", t[t.stdout = 89] = "stdout", t[t.stderr = 90] = "stderr", t[t.tensorflow = 91] = "tensorflow", t[t.rokect = 92] = "rokect", t[t.python = 93] = "python", t))(Ge || {});
var Ge = /* @__PURE__ */ ((t) => (t[t.db = 0] = "db", t[t.terminal = 1] = "terminal", t[t.plus = 2] = "plus", t[t.home = 3] = "home", t[t.fg = 4] = "fg", t[t.td = 5] = "td", t[t.sc = 6] = "sc", t[t.settings = 7] = "settings", t[t.back = 8] = "back", t[t.download = 9] = "download", t[t.folder = 10] = "folder", t[t.creation = 11] = "creation", t[t.more_zoom = 12] = "more_zoom", t[t.stats = 13] = "stats", t[t.history = 14] = "history", t[t.table = 15] = "table", t[t.list = 16] = "list", t[t.loading = 17] = "loading", t[t.refresh = 18] = "refresh", t[t.copy = 19] = "copy", t[t.bin = 20] = "bin", t[t.edit = 21] = "edit", t[t.stop = 22] = "stop", t[t.play = 23] = "play", t[t.card = 24] = "card", t[t.lines = 25] = "lines", t[t.arrow_down = 26] = "arrow_down", t[t.arrow_up = 27] = "arrow_up", t[t.arrow_left = 28] = "arrow_left", t[t.arrow_right = 29] = "arrow_right", t[t.arrows_maximize = 30] = "arrows_maximize", t[t.validate = 31] = "validate", t[t.data_validation = 32] = "data_validation", t[t.ingest = 33] = "ingest", t[t.jobs = 34] = "jobs", t[t.job = 35] = "job", t[t.birth = 36] = "birth", t[t.schema_update = 37] = "schema_update", t[t.new_stats = 38] = "new_stats", t[t.primary = 39] = "primary", t[t.partition = 40] = "partition", t[t.secondary = 41] = "secondary", t[t.lock = 42] = "lock", t[t.glass = 43] = "glass", t[t.left = 44] = "left", t[t.more = 45] = "more", t[t.cross = 46] = "cross", t[t.eye = 47] = "eye", t[t.warning = 48] = "warning", t[t.error = 49] = "error", t[t.info_block = 50] = "info_block", t[t.info = 51] = "info", t[t.interrogation = 52] = "interrogation", t[t.user_square = 53] = "user_square", t[t.ram = 54] = "ram", t[t.server = 55] = "server", t[t.cpu = 56] = "cpu", t[t.time = 57] = "time", t[t.commit = 58] = "commit", t[t.block = 59] = "block", t[t.streamed = 60] = "streamed", t[t.polygonUp = 61] = "polygonUp", t[t.polygonDown = 62] = "polygonDown", t[t.file = 63] = "file", t[t.fileData = 64] = "fileData", t[t.filecode = 65] = "filecode", t[t.fileImage = 66] = "fileImage", t[t.fileZip = 67] = "fileZip", t[t.dataset = 68] = "dataset", t[t.sharedWith = 69] = "sharedWith", t[t.sharedFrom = 70] = "sharedFrom", t[t.hopworks = 71] = "hopworks", t[t.upload = 72] = "upload", t[t.arrow_down_filled = 73] = "arrow_down_filled", t[t.arrow_up_down = 74] = "arrow_up_down", t[t.contact = 75] = "contact", t[t.expand = 76] = "expand", t[t.minimise = 77] = "minimise", t[t.pin_filled = 78] = "pin_filled", t[t.pin_empty = 79] = "pin_empty", t[t.models = 80] = "models", t[t.deployments = 81] = "deployments", t[t.jupyter = 82] = "jupyter", t[t.datasets = 83] = "datasets", t[t.favouriteEmpty = 84] = "favouriteEmpty", t[t.favouriteFilled = 85] = "favouriteFilled", t[t.correlation = 86] = "correlation", t[t.grafana = 87] = "grafana", t[t.target = 88] = "target", t[t.stdout = 89] = "stdout", t[t.stderr = 90] = "stderr", t[t.tensorflow = 91] = "tensorflow", t[t.rokect = 92] = "rokect", t[t.python = 93] = "python", t[t.airflow = 94] = "airflow", t))(Ge || {});
function _Q(t, e = vg.colors.black, n = vg.iconSizes.lg) {
switch (t) {
case 71:
Expand Down Expand Up @@ -2973,6 +2973,23 @@ function _Q(t, e = vg.colors.black, n = vg.iconSizes.lg) {
]
}
);
case 94:
return /* @__PURE__ */ h.jsx(
"svg",
{
width: n,
height: n,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 100 100",
children: /* @__PURE__ */ h.jsx(
"path",
{
d: "M69.51,44A76.67,76.67,0,0,0,71.44,33.9c0-.35.08-.73.13-1.16.66-6.37-.21-6.92-.21-6.92h0a.25.25,0,0,0-.17-.06c-.08,0-.16.07-.24.17l-3,3.15h0c-2.51,2.52-6.29,6.28-9.8,9.8l-6.8-6.8A12.68,12.68,0,0,0,49,29.92a11.51,11.51,0,0,0-2.62-1.45c-.2-.09-.41-.17-.64-.25s-.43-.17-.66-.25a76,76,0,0,0-11-2.06l-.46-.07c-6.71-.95-6.71.35-6.71.35h0c0,.13,0,.29.26.49.44.3,7,6.9,12.78,12.73,0,0-6.69,5.75-9.13,9.18-.11.16-.23.32-.33.49h0l0,0A14.43,14.43,0,0,0,29,52.32,78.82,78.82,0,0,0,27.1,62h0s-.71,5.07-.24,7.77c0,0,0,0,0,0a.47.47,0,0,0,0,.17l0,0a.26.26,0,0,0,.07.14c.11.2.23.36.42.36a.29.29,0,0,0,.21-.12c.09-.11,3.39-3.53,4.24-4.41l8.55-8.53,7.33,7.33,0,0a.1.1,0,0,1,0,.06l.12.12a11.58,11.58,0,0,0,5.51,3.42s1.32.36,3.26.79l1.47.35c12.57,2.87,13.2,1,13.23.88s.1-.33-.22-.59-6.82-6.91-12.63-12.75L66,49.67A11.71,11.71,0,0,0,69.51,44Zm-37,18.39C30.92,64,29.75,65.15,29,65.92c0-5.18,2-12.43,2.07-13.07,1.44-4,3.89-6.09,7.51-6.09a18.79,18.79,0,0,1,7.52,1.93C43.09,51.8,36.48,58.54,32.48,62.43Zm11.44-22.1-.05,0c-.15-.16-.3-.29-.45-.43-2.93-2.89-6.21-6.14-8.49-8.5a43.13,43.13,0,0,1-3.49-3.5c5.18,0,12.43,1.94,13.07,2.07,3.11,1,4.92,2.58,5.7,4.79,1.17,3.49-.38,7.64-1.56,10.23C47.47,43.81,45.79,42.17,43.92,40.33ZM63.55,65,67,68.51c-5.18,0-12.43-1.94-13.08-2.07-3.11-1-4.91-2.59-5.69-4.79-1.16-3.51.38-7.78,1.56-10.23C52.94,54.39,59.66,61,63.55,65ZM59.92,49.47a18.88,18.88,0,0,1-7.51-1.94l3.77-3.89a10.71,10.71,0,0,0,1-.91,6.3,6.3,0,0,0,.91-1.06c2.73-2.76,5.69-5.74,7.89-7.86,1.56-1.55,2.72-2.73,3.5-3.51,0,5.18-1.94,12.43-2.07,13.08C66,47.53,63.55,49.47,59.92,49.47Z",
fill: e
}
)
}
);
default:
return /* @__PURE__ */ h.jsx("svg", {});
}
Expand Down
16 changes: 16 additions & 0 deletions src/components/icon/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export enum IconName {
tensorflow,
rokect,
python,
airflow,
}

export function getIcon(
Expand Down Expand Up @@ -1905,6 +1906,21 @@ export function getIcon(
</svg>
);

case IconName.airflow:
return (
<svg
width={size}
height={size}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
>
<path
d="M69.51,44A76.67,76.67,0,0,0,71.44,33.9c0-.35.08-.73.13-1.16.66-6.37-.21-6.92-.21-6.92h0a.25.25,0,0,0-.17-.06c-.08,0-.16.07-.24.17l-3,3.15h0c-2.51,2.52-6.29,6.28-9.8,9.8l-6.8-6.8A12.68,12.68,0,0,0,49,29.92a11.51,11.51,0,0,0-2.62-1.45c-.2-.09-.41-.17-.64-.25s-.43-.17-.66-.25a76,76,0,0,0-11-2.06l-.46-.07c-6.71-.95-6.71.35-6.71.35h0c0,.13,0,.29.26.49.44.3,7,6.9,12.78,12.73,0,0-6.69,5.75-9.13,9.18-.11.16-.23.32-.33.49h0l0,0A14.43,14.43,0,0,0,29,52.32,78.82,78.82,0,0,0,27.1,62h0s-.71,5.07-.24,7.77c0,0,0,0,0,0a.47.47,0,0,0,0,.17l0,0a.26.26,0,0,0,.07.14c.11.2.23.36.42.36a.29.29,0,0,0,.21-.12c.09-.11,3.39-3.53,4.24-4.41l8.55-8.53,7.33,7.33,0,0a.1.1,0,0,1,0,.06l.12.12a11.58,11.58,0,0,0,5.51,3.42s1.32.36,3.26.79l1.47.35c12.57,2.87,13.2,1,13.23.88s.1-.33-.22-.59-6.82-6.91-12.63-12.75L66,49.67A11.71,11.71,0,0,0,69.51,44Zm-37,18.39C30.92,64,29.75,65.15,29,65.92c0-5.18,2-12.43,2.07-13.07,1.44-4,3.89-6.09,7.51-6.09a18.79,18.79,0,0,1,7.52,1.93C43.09,51.8,36.48,58.54,32.48,62.43Zm11.44-22.1-.05,0c-.15-.16-.3-.29-.45-.43-2.93-2.89-6.21-6.14-8.49-8.5a43.13,43.13,0,0,1-3.49-3.5c5.18,0,12.43,1.94,13.07,2.07,3.11,1,4.92,2.58,5.7,4.79,1.17,3.49-.38,7.64-1.56,10.23C47.47,43.81,45.79,42.17,43.92,40.33ZM63.55,65,67,68.51c-5.18,0-12.43-1.94-13.08-2.07-3.11-1-4.91-2.59-5.69-4.79-1.16-3.51.38-7.78,1.56-10.23C52.94,54.39,59.66,61,63.55,65ZM59.92,49.47a18.88,18.88,0,0,1-7.51-1.94l3.77-3.89a10.71,10.71,0,0,0,1-.91,6.3,6.3,0,0,0,.91-1.06c2.73-2.76,5.69-5.74,7.89-7.86,1.56-1.55,2.72-2.73,3.5-3.51,0,5.18-1.94,12.43-2.07,13.08C66,47.53,63.55,49.47,59.92,49.47Z"
fill={color}
/>
</svg>
);

default:
return <svg />;
}
Expand Down