Skip to content

Commit

Permalink
Merge pull request #223 from emcie-co/feature/mc-498-serve-font-local…
Browse files Browse the repository at this point in the history
…ly-in-sandbox-ui

Serve font locally in sandbox UI
  • Loading branch information
kichanyurd authored Jan 5, 2025
2 parents f71a5e6 + 99fc0ff commit 4900638
Show file tree
Hide file tree
Showing 113 changed files with 521 additions and 8 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/parlant/api/chat/dist/assets/index-C4KihbFp.css

This file was deleted.

1 change: 1 addition & 0 deletions src/parlant/api/chat/dist/assets/index-eACvjaA9.css

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions src/parlant/api/chat/dist/fonts/ubuntu-sans/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
Ubuntu Sans Variable Font
=========================

This download contains Ubuntu Sans as both variable fonts and static fonts.

Ubuntu Sans is a variable font with these axes:
wdth
wght

This means all the styles are contained in these files:
Ubuntu_Sans/UbuntuSans-VariableFont_wdth,wght.ttf
Ubuntu_Sans/UbuntuSans-Italic-VariableFont_wdth,wght.ttf

If your app fully supports variable fonts, you can now pick intermediate styles
that aren’t available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Ubuntu Sans:
Ubuntu_Sans/static/UbuntuSans_Condensed-Thin.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraLight.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Light.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Regular.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Medium.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-SemiBold.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Bold.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraBold.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Thin.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraLight.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Light.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Regular.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Medium.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-SemiBold.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Bold.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraBold.ttf
Ubuntu_Sans/static/UbuntuSans-Thin.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraLight.ttf
Ubuntu_Sans/static/UbuntuSans-Light.ttf
Ubuntu_Sans/static/UbuntuSans-Regular.ttf
Ubuntu_Sans/static/UbuntuSans-Medium.ttf
Ubuntu_Sans/static/UbuntuSans-SemiBold.ttf
Ubuntu_Sans/static/UbuntuSans-Bold.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraBold.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ThinItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraLightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-LightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Italic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-MediumItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-SemiBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-BoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ThinItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraLightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-LightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Italic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-MediumItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-SemiBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-BoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans-ThinItalic.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraLightItalic.ttf
Ubuntu_Sans/static/UbuntuSans-LightItalic.ttf
Ubuntu_Sans/static/UbuntuSans-Italic.ttf
Ubuntu_Sans/static/UbuntuSans-MediumItalic.ttf
Ubuntu_Sans/static/UbuntuSans-SemiBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans-BoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraBoldItalic.ttf

Get started
-----------

1. Install the font files you want to use

2. Use your app's font picker to view the font family and all the
available styles

Learn more about variable fonts
-------------------------------

https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts

In desktop apps

https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts

Online

https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts

Installing fonts

MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows

Android Apps

https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts

License
-------
Please read the full license text (UFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.

You can use them in your products & projects – print or digital,
commercial or otherwise.

This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.
96 changes: 96 additions & 0 deletions src/parlant/api/chat/dist/fonts/ubuntu-sans/UFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
-------------------------------
UBUNTU FONT LICENCE Version 1.0
-------------------------------

PREAMBLE
This licence allows the licensed fonts to be used, studied, modified and
redistributed freely. The fonts, including any derivative works, can be
bundled, embedded, and redistributed provided the terms of this licence
are met. The fonts and derivatives, however, cannot be released under
any other licence. The requirement for fonts to remain under this
licence does not require any document created using the fonts or their
derivatives to be published under this licence, as long as the primary
purpose of the document is not to be a vehicle for the distribution of
the fonts.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this licence and clearly marked as such. This may
include source files, build scripts and documentation.

"Original Version" refers to the collection of Font Software components
as received under this licence.

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to
a new environment.

"Copyright Holder(s)" refers to all individuals and companies who have a
copyright ownership of the Font Software.

"Substantially Changed" refers to Modified Versions which can be easily
identified as dissimilar to the Font Software by users of the Font
Software comparing the Original Version with the Modified Version.

To "Propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification and with or without charging
a redistribution fee), making available to the public, and in some
countries other activities as well.

PERMISSION & CONDITIONS
This licence does not grant any rights under trademark law and all such
rights are reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of the Font Software, to propagate the Font Software, subject to
the below conditions:

1) Each copy of the Font Software must contain the above copyright
notice and this licence. These can be included either as stand-alone
text files, human-readable headers or in the appropriate machine-
readable metadata fields within text or binary files as long as those
fields can be easily viewed by the user.

2) The font name complies with the following:
(a) The Original Version must retain its name, unmodified.
(b) Modified Versions which are Substantially Changed must be renamed to
avoid use of the name of the Original Version or similar names entirely.
(c) Modified Versions which are not Substantially Changed must be
renamed to both (i) retain the name of the Original Version and (ii) add
additional naming elements to distinguish the Modified Version from the
Original Version. The name of such Modified Versions must be the name of
the Original Version, with "derivative X" where X represents the name of
the new work, appended to that name.

3) The name(s) of the Copyright Holder(s) and any contributor to the
Font Software shall not be used to promote, endorse or advertise any
Modified Version, except (i) as required by this licence, (ii) to
acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with
their explicit written permission.

4) The Font Software, modified or unmodified, in part or in whole, must
be distributed entirely under this licence, and must not be distributed
under any other licence. The requirement for fonts to remain under this
licence does not affect any document created using the Font Software,
except any version of the Font Software extracted from a document
created using the Font Software may only be distributed under this
licence.

TERMINATION
This licence becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
48 changes: 48 additions & 0 deletions src/parlant/api/chat/dist/fonts/ubuntu-sans/ubuntu_sans.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 100;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-Thin.ttf') format('truetype')
}
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 200;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-ExtraLight.ttf') format('truetype')
}
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 300;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-Light.ttf') format('truetype')
}
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 400;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-Regular.ttf') format('truetype')
}
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 500;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-Medium.ttf') format('truetype')
}
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 600;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-SemiBold.ttf') format('truetype')
}
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 700;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-Bold.ttf') format('truetype')
}
@font-face {
font-family: 'Ubuntu Sans';
font-style: normal;
font-weight: 800;
src: url('/fonts/ubuntu-sans/static/UbuntuSans-ExtraBold.ttf') format('truetype')
}
4 changes: 2 additions & 2 deletions src/parlant/api/chat/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Parlant Chatbot">
<title>Parlant</title>
<script type="module" crossorigin src="/chat/assets/index-BinoUHav.js"></script>
<link rel="stylesheet" crossorigin href="/chat/assets/index-C4KihbFp.css">
<script type="module" crossorigin src="/chat/assets/index-5Z6avyxj.js"></script>
<link rel="stylesheet" crossorigin href="/chat/assets/index-eACvjaA9.css">
</head>
<body>
<div id="root"></div>
Expand Down
112 changes: 112 additions & 0 deletions src/parlant/api/chat/public/fonts/ubuntu-sans/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
Ubuntu Sans Variable Font
=========================

This download contains Ubuntu Sans as both variable fonts and static fonts.

Ubuntu Sans is a variable font with these axes:
wdth
wght

This means all the styles are contained in these files:
Ubuntu_Sans/UbuntuSans-VariableFont_wdth,wght.ttf
Ubuntu_Sans/UbuntuSans-Italic-VariableFont_wdth,wght.ttf

If your app fully supports variable fonts, you can now pick intermediate styles
that aren’t available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Ubuntu Sans:
Ubuntu_Sans/static/UbuntuSans_Condensed-Thin.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraLight.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Light.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Regular.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Medium.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-SemiBold.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Bold.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraBold.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Thin.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraLight.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Light.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Regular.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Medium.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-SemiBold.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Bold.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraBold.ttf
Ubuntu_Sans/static/UbuntuSans-Thin.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraLight.ttf
Ubuntu_Sans/static/UbuntuSans-Light.ttf
Ubuntu_Sans/static/UbuntuSans-Regular.ttf
Ubuntu_Sans/static/UbuntuSans-Medium.ttf
Ubuntu_Sans/static/UbuntuSans-SemiBold.ttf
Ubuntu_Sans/static/UbuntuSans-Bold.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraBold.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ThinItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraLightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-LightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-Italic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-MediumItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-SemiBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-BoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_Condensed-ExtraBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ThinItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraLightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-LightItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-Italic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-MediumItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-SemiBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-BoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans_SemiCondensed-ExtraBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans-ThinItalic.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraLightItalic.ttf
Ubuntu_Sans/static/UbuntuSans-LightItalic.ttf
Ubuntu_Sans/static/UbuntuSans-Italic.ttf
Ubuntu_Sans/static/UbuntuSans-MediumItalic.ttf
Ubuntu_Sans/static/UbuntuSans-SemiBoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans-BoldItalic.ttf
Ubuntu_Sans/static/UbuntuSans-ExtraBoldItalic.ttf

Get started
-----------

1. Install the font files you want to use

2. Use your app's font picker to view the font family and all the
available styles

Learn more about variable fonts
-------------------------------

https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts

In desktop apps

https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts

Online

https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts

Installing fonts

MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows

Android Apps

https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts

License
-------
Please read the full license text (UFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.

You can use them in your products & projects – print or digital,
commercial or otherwise.

This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.
Loading

0 comments on commit 4900638

Please sign in to comment.