]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18940 Embed Inter font
authorJeremy Davis <jeremy.davis@sonarsource.com>
Tue, 4 Apr 2023 08:20:52 +0000 (10:20 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 11 Apr 2023 20:03:15 +0000 (20:03 +0000)
24 files changed:
server/sonar-web/config/esbuild-config.js
server/sonar-web/public/fonts/Inter/Inter-Black.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-Bold.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-Italic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-Light.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-Medium.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-Regular.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-Thin.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2 [new file with mode: 0644]
server/sonar-web/public/fonts/Inter/inter.css [new file with mode: 0644]
server/sonar-web/src/main/js/app/styles/init/base.css
server/sonar-web/src/main/js/app/styles/sonar.ts
sonar-application/build.gradle
sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java

index b0a861f8fa28168e9205a50f5f6f90fed861e895..3c1ec5150c1bd451a3ad7c06f227fb150c6b3723 100644 (file)
@@ -56,7 +56,7 @@ module.exports = (release) => {
   return {
     entryPoints: ['src/main/js/app/index.ts'],
     tsconfig: './tsconfig.json',
-    external: ['/images/*'],
+    external: ['/images/*', '/fonts/*'],
     loader: {
       '.png': 'dataurl',
       '.md': 'text',
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Black.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Black.woff2
new file mode 100644 (file)
index 0000000..68f64c9
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-Black.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2
new file mode 100644 (file)
index 0000000..1c9c7ca
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2
new file mode 100644 (file)
index 0000000..2846f29
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2
new file mode 100644 (file)
index 0000000..0b1fe8e
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2
new file mode 100644 (file)
index 0000000..c24c2bd
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2
new file mode 100644 (file)
index 0000000..4a81dc7
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2
new file mode 100644 (file)
index 0000000..f2ea706
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2
new file mode 100644 (file)
index 0000000..9af717b
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2
new file mode 100644 (file)
index 0000000..a619fc5
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Light.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Light.woff2
new file mode 100644 (file)
index 0000000..bc4be66
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-Light.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2
new file mode 100644 (file)
index 0000000..842b2df
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2
new file mode 100644 (file)
index 0000000..f92498a
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2
new file mode 100644 (file)
index 0000000..0e3019f
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2
new file mode 100644 (file)
index 0000000..6c2b689
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2
new file mode 100644 (file)
index 0000000..611e90c
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2
new file mode 100644 (file)
index 0000000..545685b
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2
new file mode 100644 (file)
index 0000000..abbc3a5
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2
new file mode 100644 (file)
index 0000000..ab0b200
Binary files /dev/null and b/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2 differ
diff --git a/server/sonar-web/public/fonts/Inter/inter.css b/server/sonar-web/public/fonts/Inter/inter.css
new file mode 100644 (file)
index 0000000..f434cf0
--- /dev/null
@@ -0,0 +1,134 @@
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 100;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-Thin.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 100;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-ThinItalic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 200;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-ExtraLight.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 200;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-ExtraLightItalic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 300;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-Light.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 300;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-LightItalic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 400;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-Regular.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 400;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-Italic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 500;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-Medium.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 500;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-MediumItalic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 600;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-SemiBold.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 600;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-SemiBoldItalic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 700;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-Bold.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 700;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-BoldItalic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 800;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-ExtraBold.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 800;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-ExtraBoldItalic.woff2?v=3.19') format('woff2');
+}
+
+@font-face {
+  font-family: 'Inter';
+  font-style: normal;
+  font-weight: 900;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-Black.woff2?v=3.19') format('woff2');
+}
+@font-face {
+  font-family: 'Inter';
+  font-style: italic;
+  font-weight: 900;
+  font-display: swap;
+  src: url('/fonts/Inter/Inter-BlackItalic.woff2?v=3.19') format('woff2');
+}
index 985e1baf7730a2467f9bc915726daeecd166715d..ac1826c2bcd987ef87c61f8484418696673ed8cf 100644 (file)
@@ -17,7 +17,6 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-
 @tailwind base;
 @tailwind components;
 @tailwind utilities;
index d4b3d4351d972d435f548aba861fe05faa93d7e1..b62de46e3a6ff89c371593afe2d2d3bf101f2017 100644 (file)
@@ -20,6 +20,8 @@
 /*
  * The esbuild postcss plugin fails to handle CSS `@import`
  */
+import '../../../../../public/fonts/Inter/inter.css';
+
 import './components/badges.css';
 import './components/boxed-group.css';
 import './components/columns.css';
index 1ee3a5be18fbf3e14f63fd5dcc4e04c291b9b8ae..aaebfb4c7d4d69b1650f14054800e4f8d7f2a5fa 100644 (file)
@@ -327,7 +327,7 @@ task zip(type: Zip, dependsOn: [configurations.compileClasspath, downloadElastic
 // Check the size of the archive
 zip.doLast {
   def minLength = 320000000
-  def maxLength = 355000000
+  def maxLength = 357000000
 
   def length = archiveFile.get().asFile.length()
   if (length < minLength)
index 5da0f634a6a07643f87f18e3b75fb72fb5bb3d08..e635dd3839aced74fc18f09d6541e6494c5e8996 100644 (file)
@@ -56,6 +56,7 @@ public final class MediaTypes {
   private static final String TIFF = "image/tiff";
   private static final String TGZ = "application/tgz";
   private static final String TSV = "text/tab-separated-values";
+  private static final String WOFF2 = "application/font-woff2";
   private static final String XLS = "application/vnd.ms-excel";
   private static final String XSLT = "application/xslt+xml";
 
@@ -90,6 +91,7 @@ public final class MediaTypes {
     MAP.put("html", HTML);
     MAP.put("css", CSS);
     MAP.put("tsv", TSV);
+    MAP.put("woff2", WOFF2);
   }
 
   private MediaTypes() {