From 223da5e2bb65422cb8a0211042343d6a7ee87ad4 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Fri, 25 Sep 2020 22:06:22 -0700 Subject: [PATCH] removed chart.js webjar --- pom.xml | 6 -- src/main/frontend/package.json | 1 + src/main/frontend/src/VersionList.vue | 3 +- src/main/frontend/src/js/channelManage.js | 1 - src/main/frontend/src/js/projectDetail.js | 13 ++- src/main/frontend/src/js/projectManage.js | 11 +++ src/main/frontend/src/js/stats.js | 92 ++++++++++++++++++ src/main/frontend/yarn.lock | 27 +++++- .../templates/projects/channels/list.ftlh | 4 +- .../resources/templates/projects/discuss.ftlh | 2 +- .../templates/projects/settings.ftlh | 11 --- .../resources/templates/projects/view.ftlh | 3 +- .../templates/users/admin/stats.ftlh | 93 ++----------------- 13 files changed, 154 insertions(+), 113 deletions(-) diff --git a/pom.xml b/pom.xml index 1573759c..e3a6d1f1 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,6 @@ 0.40 3.5.1 - 2.9.3 1.10.0 @@ -191,11 +190,6 @@ jquery ${jquery.version} - - org.webjars.npm - chart.js - ${chart.js.version} - diff --git a/src/main/frontend/package.json b/src/main/frontend/package.json index 7345a00b..8f9fc345 100644 --- a/src/main/frontend/package.json +++ b/src/main/frontend/package.json @@ -15,6 +15,7 @@ "@fortawesome/free-solid-svg-icons": "5.14.0", "axios": "^0.20.0", "bootstrap": "^4.5.2", + "chart.js": "^2.9.3", "clipboard": "^2.0.6", "core-js": "^3.6.5", "diff-match-patch": "^1.0.5", diff --git a/src/main/frontend/src/VersionList.vue b/src/main/frontend/src/VersionList.vue index 758d1fb5..94516ee1 100644 --- a/src/main/frontend/src/VersionList.vue +++ b/src/main/frontend/src/VersionList.vue @@ -87,6 +87,7 @@ diff --git a/src/main/resources/templates/projects/discuss.ftlh b/src/main/resources/templates/projects/discuss.ftlh index 711564ba..484db89b 100644 --- a/src/main/resources/templates/projects/discuss.ftlh +++ b/src/main/resources/templates/projects/discuss.ftlh @@ -16,7 +16,7 @@ Discussion page within Project overview. }; - + <#----> <#-- TODO jquery was removed from this scope --> <@view.view p=p sp=sp active="#discussion" additionalScripts=scriptsVar> diff --git a/src/main/resources/templates/projects/settings.ftlh b/src/main/resources/templates/projects/settings.ftlh index c58377a7..2110ec6f 100644 --- a/src/main/resources/templates/projects/settings.ftlh +++ b/src/main/resources/templates/projects/settings.ftlh @@ -210,17 +210,6 @@ Save changes - - diff --git a/src/main/resources/templates/projects/view.ftlh b/src/main/resources/templates/projects/view.ftlh index 318c24c2..c66df4b5 100644 --- a/src/main/resources/templates/projects/view.ftlh +++ b/src/main/resources/templates/projects/view.ftlh @@ -18,7 +18,8 @@ Base template for Project overview. window.PROJECT_SLUG = "${p.project.slug}"; window.PROJECT_ID = "${p.project.pluginId}"; window.ALREADY_STARRED = ${sp.starred?c}; - $(function() { $(".nav").find("${active}").addClass("active"); }); + + window.ACTIVE_NAV = "${active}"; diff --git a/src/main/resources/templates/users/admin/stats.ftlh b/src/main/resources/templates/users/admin/stats.ftlh index f78ab02b..62138ae3 100644 --- a/src/main/resources/templates/users/admin/stats.ftlh +++ b/src/main/resources/templates/users/admin/stats.ftlh @@ -3,91 +3,14 @@ <#import "*/layout/base.ftlh" as base /> <#assign scriptsVar> - @@ -105,7 +28,7 @@ value="${toDate}"> - +