Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ec25975
feat: created a codesplitted image loader component for airgap
Apr 2, 2023
3e275fb
feat: replace assets url with constant
Apr 4, 2023
ed426ce
feat: update regex
Apr 4, 2023
adcea65
feat: replace and rename with AssetLoader
Apr 4, 2023
aa9d35e
feat: keep it simple to support multiple asset types
Apr 4, 2023
51a917f
chore: rename helper file and script file
Apr 4, 2023
d4dee88
Merge branch 'release' of github.com:appsmithorg/appsmith into feat/a…
Apr 4, 2023
8e4f60a
Merge branch 'release' of github.com:appsmithorg/appsmith into feat/a…
Apr 4, 2023
847c307
fix: missed wrapping with util function
Apr 4, 2023
5e18d09
feat: self host google fonts
Apr 5, 2023
deb609c
feat: reorder folders and remove old gitignore which ignored .svg in …
Apr 5, 2023
8565298
remove fontloader
jsartisan Apr 6, 2023
efe7c48
remove google font
jsartisan Apr 6, 2023
90e0a10
Merge branch 'release' of github.com:appsmithorg/appsmith into feat/b…
Apr 10, 2023
a03ca99
Merge branch 'feat/bundle-fonts' of github.com:appsmithorg/appsmith i…
Apr 10, 2023
d1b0edd
Merge branch 'release' of github.com:appsmithorg/appsmith into feat/b…
Apr 11, 2023
73bbb71
feat: added license files for fonts
Apr 11, 2023
e8ee00e
feat: remove other binary formats except woff2
Apr 11, 2023
fe3dbee
fix: missed removing ref for open sans ttf,woff files
Apr 11, 2023
7c0b3b0
feat: add full language support for fonts
Apr 11, 2023
7ee9c30
Merge branch 'release' of github.com:appsmithorg/appsmith into feat/b…
Apr 12, 2023
cb6f688
fix: CI tests
Apr 12, 2023
336606c
fix: add fallback font and fix cypress
Apr 12, 2023
15e51fe
fix: add fallback font in ci tests
Apr 12, 2023
0d05b4d
fix: theme form widget spec
Apr 12, 2023
b216eea
fix: chart spec
Apr 12, 2023
6c346f2
fix: string quotes
Apr 12, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ describe("App Theming funtionality", function () {
cy.get(widgetsPage.widgetBtn).should(
"have.css",
"font-family",
$childElem.children().last().text(),
`${$childElem.children().last().text()}, sans-serif`,
);
});
});
Expand Down Expand Up @@ -221,12 +221,12 @@ describe("App Theming funtionality", function () {
cy.get(widgetsPage.iconWidgetBtn).should(
"have.css",
"font-family",
$childElem.children().last().text(),
`${$childElem.children().last().text()}, sans-serif`,
);
cy.get(widgetsPage.widgetBtn).should(
"have.css",
"font-family",
$childElem.children().last().text(),
`${$childElem.children().last().text()}, sans-serif`,
);
});
});
Expand Down Expand Up @@ -701,7 +701,7 @@ describe("App Theming funtionality", function () {

//cy.wait(4000); //for theme to settle

cy.get("body").should("have.css", "font-family", "Montserrat"); //Font
cy.get("body").should("have.css", "font-family", "Montserrat, sans-serif"); //Font

cy.xpath("//div[@id='root']//section/parent::div").should(
"have.css",
Expand Down Expand Up @@ -886,7 +886,7 @@ describe("App Theming funtionality", function () {
cy.PublishtheApp();

cy.wait(4000); //for theme to settle
cy.get("body").should("have.css", "font-family", "Montserrat"); //Font
cy.get("body").should("have.css", "font-family", "Montserrat, sans-serif"); //Font

cy.xpath("//div[@id='root']//section/parent::div").should(
"have.css",
Expand Down Expand Up @@ -1115,7 +1115,7 @@ describe("App Theming funtionality", function () {
cy.PublishtheApp();

cy.wait(4000); //for theme to settle
cy.get("body").should("have.css", "font-family", "Rubik"); //Font for Rounded theme
cy.get("body").should("have.css", "font-family", "Rubik, sans-serif"); //Font for Rounded theme

cy.xpath("//div[@id='root']//section/parent::div").should(
"have.css",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe("Theme validation usecases", function () {
cy.get(".t--draggable-buttonwidget button :contains('Sub')").should(
"have.css",
"font-family",
$childElem.children().last().text(),
`${$childElem.children().last().text()}, sans-serif`,
);
themeFont = $childElem.children().last().text();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe("Theme validation usecase for multi-select widget", function () {
cy.get(".t--draggable-multiselectwidgetv2:contains('more')").should(
"have.css",
"font-family",
$childElem.children().last().text(),
`${$childElem.children().last().text()}, sans-serif`,
);
themeFont = $childElem.children().last().text();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,19 @@ describe("Chart Widget Functionality", function () {
cy.get(".fusioncharts-container").should(
"have.css",
"font-family",
'"Nunito Sans"',
'"Nunito Sans", sans-serif',
);

cy.UpdateChartType("Pie Chart");
cy.get("g[class$='item'] text").should(
"have.css",
"font-family",
'"Nunito Sans"',
'"Nunito Sans", sans-serif',
);
cy.get("g[class$='labels'] text").should(
"have.css",
"font-family",
'"Nunito Sans"',
'"Nunito Sans", sans-serif',
);
});

Expand Down
1 change: 0 additions & 1 deletion app/client/src/.gitignore

This file was deleted.

9 changes: 9 additions & 0 deletions app/client/src/assets/fonts/custom/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import "./nunito-sans/nunito-sans.css";
@import "./poppins/poppins.css";
@import "./inter/inter.css";
@import "./monteserrat/montserrat.css";
@import "./noto-sans/noto-sans.css";
@import "./open-sans/open-sans.css";
@import "./roboto/roboto.css";
@import "./rubik/rubik.css";
@import "./ubuntu/ubuntu.css";
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
40 changes: 40 additions & 0 deletions app/client/src/assets/fonts/custom/inter/inter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* inter-300 - cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: normal;
font-weight: 300;
src: url("./inter-v12/inter-v12-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-300.woff2")
format("woff2");
/* Chrome 36+, Opera 23+, Firefox 39+ */
}
/* inter-regular - cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: normal;
font-weight: 400;
src: url("./inter-v12/inter-v12-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.woff2")
format("woff2");
/* Chrome 36+, Opera 23+, Firefox 39+ */
}
/* inter-500 - cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: normal;
font-weight: 500;
src: url("./inter-v12/inter-v12-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-500.woff2")
format("woff2");
/* Chrome 36+, Opera 23+, Firefox 39+ */
}
/* inter-700 - cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Inter";
font-style: normal;
font-weight: 700;
src: url("./inter-v12/inter-v12-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.woff2")
format("woff2");
/* Chrome 36+, Opera 23+, Firefox 39+ */
}
92 changes: 92 additions & 0 deletions app/client/src/assets/fonts/custom/inter/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

---

## SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

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

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"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.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION AND CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1. Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2. Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. 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.

3. No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5. The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license 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.
93 changes: 93 additions & 0 deletions app/client/src/assets/fonts/custom/monteserrat/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

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

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"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.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. 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.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license 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.
Loading