From: "Long, Qin" <qin.long@intel.com>
To: Stephano Cetola <stephano.cetola@linux.intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [staging/MicroPythonTestFramework][PATCH] MpyTestFrameworkPkg: use minified jquery source
Date: Tue, 4 Sep 2018 23:18:39 +0000 [thread overview]
Message-ID: <BF2CCE9263284D428840004653A28B6E54178ED8@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <20180904175107.38605-1-stephano.cetola@linux.intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
Best Regards & Thanks,
LONG, Qin
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Stephano Cetola
> Sent: Tuesday, September 4, 2018 10:51 AM
> To: edk2-devel@lists.01.org
> Cc: Long, Qin <qin.long@intel.com>
> Subject: [edk2] [staging/MicroPythonTestFramework][PATCH]
> MpyTestFrameworkPkg: use minified jquery source
>
> We should be using the compressed "minified" jquery source file rather than the
> uncompressed version, as it will reduce the page load times.
>
> This updates the relevant FreeMaker templates, the readme, and the setup script.
> It also corrects a small mistake in the error text of the setup script.
>
> Contributed-under: TianoCore Contribution Agreement 1.1.
> Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
> ---
> MpyTestFrameworkPkg/README.md | 2 +-
> .../ReportGenerator/src/main/resources/templates/index.ftl | 2 +-
> .../src/main/resources/templates/iteration.ftl | 4 ++--
> .../src/main/resources/templates/recurrentSequence.ftl | 2 +-
> MpyTestFrameworkPkg/setup.py | 6 +++---
> 5 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/MpyTestFrameworkPkg/README.md
> b/MpyTestFrameworkPkg/README.md index bd1579dcd3..9bcd22d843 100644
> --- a/MpyTestFrameworkPkg/README.md
> +++ b/MpyTestFrameworkPkg/README.md
> @@ -13,7 +13,7 @@ This test framework is dependent on the MicroPython
> Interpreter for UEFI: [Micro
> * Install [Python27](https://www.python.org/).
> * Install Maven, using the official site tutorial: [Installing Apache
> Maven](https://maven.apache.org/install.html). JDK 1.8 is preferred.
> * Download `Chart.bundle.min.js` from the [ChartJS official
> site](https://github.com/chartjs/Chart.js/releases) and copy it to
> `MpyTestFrameworkPkg\Report\resources\js`
> - * Download `jquery-3.3.1.js` from the [JQuery official
> site](https://jquery.com/download/) and copy it to
> `MpyTestFrameworkPkg\Report\resources\js`
> + * Download `jquery-3.3.1.min.js` from the [JQuery official
> + site](https://jquery.com/download/) and copy it to
> + `MpyTestFrameworkPkg\Report\resources\js`
>
> ### Configuration
>
> diff --git
> a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/index.ftl
> b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/index.ftl
> index ed611f3805..d58c002baf 100644
> ---
> a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/index.ftl
> +++
> b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templ
> +++ ates/index.ftl
> @@ -3,7 +3,7 @@
> <title>ETS Report</title>
> <link rel="stylesheet" href="../resources/css/style.css">
> <script src="../resources/js/Chart.bundle.min.js"></script>
> - <script src="../resources/js/jquery-3.3.1.js"></script>
> + <script src="../resources/js/jquery-3.3.1.min.js"></script>
> </head>
>
> <body>
> diff --git
> a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/iteration.ftl
> b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/iteration.ftl
> index 82b681c8a4..e3f2490215 100644
> ---
> a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/iteration.ftl
> +++
> b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templ
> +++ ates/iteration.ftl
> @@ -3,7 +3,7 @@
> <title>ETS Report</title>
> <link rel="stylesheet" href="../../../resources/css/style.css">
> <script src="../../../resources/js/Chart.bundle.min.js"></script>
> - <script src="../../../resources/js/jquery-3.3.1.js"></script>
> + <script src="../../../resources/js/jquery-3.3.1.min.js"></script>
> </head>
> <body>
>
> @@ -170,4 +170,4 @@
> </script>
>
> </body>
> -</html>
> \ No newline at end of file
> +</html>
> diff --git
> a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/recurrentSequence.ftl
> b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/recurrentSequence.ftl
> index d3c263cf91..1d09752095 100644
> ---
> a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templat
> es/recurrentSequence.ftl
> +++
> b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templ
> +++ ates/recurrentSequence.ftl
> @@ -3,7 +3,7 @@
> <title>ETS Report</title>
> <link rel="stylesheet" href="../../resources/css/style.css">
> <script src="../../resources/js/Chart.bundle.min.js"></script>
> - <script src="../../resources/js/jquery-3.3.1.js"></script>
> + <script src="../../resources/js/jquery-3.3.1.min.js"></script>
> </head>
>
> <body>
> diff --git a/MpyTestFrameworkPkg/setup.py b/MpyTestFrameworkPkg/setup.py
> index 993a4cc598..4eaf43bfed 100644
> --- a/MpyTestFrameworkPkg/setup.py
> +++ b/MpyTestFrameworkPkg/setup.py
> @@ -31,8 +31,8 @@ def check_environment():
> error_p('Please download Chart.bundle.min.js to
> MpyTestFrameworkPkg/Report/resources/js folder')
> return False
>
> - if not os.path.exists(origin + '/Report' + '/resources' + '/js' + '/jquery-3.3.1.js'):
> - error_p('Please download jquery-3.3.1.jsChart.bundle.min.js to
> MpyTestFrameworkPkg/Report/resources/js folder')
> + if not os.path.exists(origin + '/Report' + '/resources' + '/js' + '/jquery-
> 3.3.1.min.js'):
> + error_p('Please download jquery-3.3.1.min.js
> + MpyTestFrameworkPkg/Report/resources/js folder')
> return False
>
> return True
> @@ -111,4 +111,4 @@ def generate_target():
>
> # Main procedure
> if check_environment() == True:
> - generate_target()
> \ No newline at end of file
> + generate_target()
> --
> 2.17.1
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
prev parent reply other threads:[~2018-09-04 23:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-04 17:51 [staging/MicroPythonTestFramework][PATCH] MpyTestFrameworkPkg: use minified jquery source Stephano Cetola
2018-09-04 23:18 ` Long, Qin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BF2CCE9263284D428840004653A28B6E54178ED8@SHSMSX103.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox