From d67e9b9629557df1e355f0a864792c194b3e8848 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Tue, 11 Feb 2020 19:53:18 -0600 Subject: [PATCH] SVG Octicon fixes (#10237) * SVG fixes Signed-off-by: jolheiser * Colorize span->svg only Signed-off-by: jolheiser * @silverwind suggestions Signed-off-by: jolheiser * Alphabetical Signed-off-by: jolheiser * Convert suburl and staticPrefix to window.config Signed-off-by: jolheiser * De-structure Signed-off-by: jolheiser Co-authored-by: Antoine GIRARD --- .eslintrc | 1 + templates/base/head.tmpl | 4 +- templates/repo/issue/view_title.tmpl | 2 +- web_src/js/features/contextPopup.js | 31 +++++++++------ web_src/js/index.js | 57 +++++++++++++--------------- web_src/js/utils.js | 5 +++ web_src/less/_base.less | 6 +-- web_src/less/_repository.less | 26 ++++++------- 8 files changed, 72 insertions(+), 60 deletions(-) create mode 100644 web_src/js/utils.js diff --git a/.eslintrc b/.eslintrc index 3a8dc93fc..e8c63a682 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,6 +33,7 @@ rules: default-case: [0] func-names: [0] import/extensions: [0] + import/prefer-default-export: [0] max-len: [0] newline-per-chained-call: [0] no-alert: [0] diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index c9ae07f63..f1558f948 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -36,8 +36,6 @@ - - {{if .IsSigned}} {{end}} @@ -86,6 +84,8 @@