Skip to content

Commit

Permalink
Include dataiku font in minified assets.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienDaou committed Jan 2, 2025
1 parent 007d847 commit 6315ed2
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 15 deletions.
3 changes: 1 addition & 2 deletions dash_tabulator/assets/tabulator_dataiku.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* define SourceSansPro */
@font-face {
font-family: 'dataiku';
src: url('/static/fonts/SourceSansPro-Regular.woff');
src: url('themes/default/assets/fonts/SourceSansPro-Regular.woff');
font-weight: 400;
}

Expand Down
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions dss-plugin-visual-edit/webapps/visual-edit/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# 3. Define Dash webapp layout and components.
from __future__ import annotations
import logging
import os
from webapp.config.models import LinkedRecord
import webapp.logging.setup # noqa: F401 necessary to setup logging basicconfig before dataiku module sets a default config
from datetime import datetime
Expand All @@ -25,7 +24,7 @@
EditUnauthorized,
DataEditor,
)
from flask import Flask, jsonify, make_response, request, send_from_directory
from flask import Flask, jsonify, make_response, request
from tabulator_utils import get_columns_tabulator, get_values_from_df

from webapp.config.loader import WebAppConfig
Expand Down Expand Up @@ -493,14 +492,4 @@ def lookup_endpoint(linked_ds_name):
return jsonify(editor_values_param)


FONTS_FOLDER = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "assets", "fonts"
)


@server.route("/static/fonts/<path:filename>", methods=["GET"])
def serve_fonts(filename):
return send_from_directory(FONTS_FOLDER, filename)


logging.info("Webapp OK")

0 comments on commit 6315ed2

Please sign in to comment.