You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/10/24 12:24:13 UTC

(grails-forge-ui) branch localize-external-resources created (now 7d8000f)

This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a change to branch localize-external-resources
in repository https://gitbox.apache.org/repos/asf/grails-forge-ui.git


      at 7d8000f  Update homepage field so it will work in dev and within a directory

This branch includes the following new commits:

     new bc9235a  Move Materialize CSS and Material Icons to launch app directly
     new 7d8000f  Update homepage field so it will work in dev and within a directory

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(grails-forge-ui) 02/02: Update homepage field so it will work in dev and within a directory

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch localize-external-resources
in repository https://gitbox.apache.org/repos/asf/grails-forge-ui.git

commit 7d8000f3c61bc057b1cbabe553ad52dac1565e2b
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Fri Oct 24 08:24:03 2025 -0400

    Update homepage field so it will work in dev and within a directory
    
    Changed the homepage field from a URL to a relative path ('.') in package.json to adjust deployment or build settings.
---
 app/launch/package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/launch/package.json b/app/launch/package.json
index 539de85..e01686b 100755
--- a/app/launch/package.json
+++ b/app/launch/package.json
@@ -2,7 +2,7 @@
     "name": "app",
     "version": "0.1.1",
     "private": true,
-    "homepage": "https://start.grails.org",
+    "homepage": ".",
     "dependencies": {
         "@material-ui/core": "^4.11.4",
         "@material-ui/icons": "^4.11.2",


(grails-forge-ui) 01/02: Move Materialize CSS and Material Icons to launch app directly

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch localize-external-resources
in repository https://gitbox.apache.org/repos/asf/grails-forge-ui.git

commit bc9235ad638946e4657bf9075a055b99e17bb0d1
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Fri Oct 24 08:22:44 2025 -0400

    Move Materialize CSS and Material Icons to launch app directly
    
    Added Materialize CSS framework and Material Icons font to the app/launch/public directory, including CSS, JS, and font files. Updated index.html to include the new styles and scripts, enabling Materialize UI components and icon support.  These were referenced from external locations which will not work with ASF CSP restrictions
---
 app/launch/public/css/material-icons.css           |  25 +++++++++++++++++++++
 app/launch/public/css/materialize.min.css          |  13 +++++++++++
 app/launch/public/fonts/MaterialIcons-Regular.woff | Bin 0 -> 164912 bytes
 .../public/fonts/MaterialIcons-Regular.woff2       | Bin 0 -> 128352 bytes
 app/launch/public/index.html                       |   6 ++---
 app/launch/public/js/materialize.min.js            |   6 +++++
 6 files changed, 47 insertions(+), 3 deletions(-)

diff --git a/app/launch/public/css/material-icons.css b/app/launch/public/css/material-icons.css
new file mode 100644
index 0000000..07c8b7c
--- /dev/null
+++ b/app/launch/public/css/material-icons.css
@@ -0,0 +1,25 @@
+/* Material Icons Font */
+@font-face {
+  font-family: 'Material Icons';
+  font-style: normal;
+  font-weight: 400;
+  src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
+       url('../fonts/MaterialIcons-Regular.woff') format('woff');
+}
+
+.material-icons {
+  font-family: 'Material Icons';
+  font-weight: normal;
+  font-style: normal;
+  font-size: 24px;
+  line-height: 1;
+  letter-spacing: normal;
+  text-transform: none;
+  display: inline-block;
+  white-space: nowrap;
+  word-wrap: normal;
+  direction: ltr;
+  -webkit-font-feature-settings: 'liga';
+  -webkit-font-smoothing: antialiased;
+}
+
diff --git a/app/launch/public/css/materialize.min.css b/app/launch/public/css/materialize.min.css
new file mode 100644
index 0000000..74b1741
--- /dev/null
+++ b/app/launch/public/css/materialize.min.css
@@ -0,0 +1,13 @@
+/*!
+ * Materialize v1.0.0 (http://materializecss.com)
+ * Copyright 2014-2017 Materialize
+ * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
+ */
+.materialize-red{background-color:#e51c23 !important}.materialize-red-text{color:#e51c23 !important}.materialize-red.lighten-5{background-color:#fdeaeb !important}.materialize-red-text.text-lighten-5{color:#fdeaeb !important}.materialize-red.lighten-4{background-color:#f8c1c3 !important}.materialize-red-text.text-lighten-4{color:#f8c1c3 !important}.materialize-red.lighten-3{background-color:#f3989b !important}.materialize-red-text.text-lighten-3{color:#f3989b !important}.materialize-red. [...]
+ * Waves v0.6.0
+ * http://fian.my.id/Waves
+ *
+ * Copyright 2014 Alfiana E. Sibuea and other contributors
+ * Released under the MIT license
+ * https://github.com/fians/Waves/blob/master/LICENSE
+ */.waves-effect{position:relative;cursor:pointer;display:inline-block;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle;z-index:1;-webkit-transition:.3s ease-out;transition:.3s ease-out}.waves-effect .waves-ripple{position:absolute;border-radius:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;opacity:0;background:rgba(0,0,0,0.2);-webkit-transition:all 0.7s ease- [...]
 visibility 0s 1s,  -webkit-transform .3s;transition:opacity .3s,  visibility 0s 1s,  -webkit-transform .3s;transition:opacity .3s,  transform .3s,  visibility 0s 1s;transition:opacity .3s,  transform .3s,  visibility 0s 1s,  -webkit-transform .3s}.tap-target{position:absolute;font-size:1rem;border-radius:50%;background-color:#ee6e73;-webkit-box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);width:100%;height:100%;opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform  [...]
 visibility 0s,  -webkit-transform .3s;transition:opacity .3s,  visibility 0s,  -webkit-transform .3s;transition:opacity .3s,  transform .3s,  visibility 0s;transition:opacity .3s,  transform .3s,  visibility 0s,  -webkit-transform .3s;z-index:-1}.tap-target-origin{top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);z-index:10002;position:absolute !important}.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small),.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small):hover{background:none}@media only screen and (max-width: 600px){.tap-target,.tap-target-wrapper{width:600px;height:600px}}.pulse{overflow:visible;position:relative}.pulse::before{content [...]
diff --git a/app/launch/public/fonts/MaterialIcons-Regular.woff b/app/launch/public/fonts/MaterialIcons-Regular.woff
new file mode 100644
index 0000000..88fdf4d
Binary files /dev/null and b/app/launch/public/fonts/MaterialIcons-Regular.woff differ
diff --git a/app/launch/public/fonts/MaterialIcons-Regular.woff2 b/app/launch/public/fonts/MaterialIcons-Regular.woff2
new file mode 100644
index 0000000..5492a6e
Binary files /dev/null and b/app/launch/public/fonts/MaterialIcons-Regular.woff2 differ
diff --git a/app/launch/public/index.html b/app/launch/public/index.html
index f7b46c5..8a52571 100755
--- a/app/launch/public/index.html
+++ b/app/launch/public/index.html
@@ -4,8 +4,8 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
 
-    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
-    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.css">
+    <link rel="stylesheet" href="%PUBLIC_URL%/css/material-icons.css">
+    <link rel="stylesheet" href="%PUBLIC_URL%/css/materialize.min.css">
 
     <link rel="icon" type="image/png" href="%PUBLIC_URL%/favicon-96x96.png" sizes="96x96" />
     <link rel="icon" type="image/svg+xml" href="%PUBLIC_URL%/favicon.svg" />
@@ -61,6 +61,6 @@
     <noscript>You need to enable JavaScript to run this app.</noscript>
     <div id="root"></div>
      <!-- Import materialize.js -->
-    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.js"></script>
+    <script src="%PUBLIC_URL%/js/materialize.min.js"></script>
   </body>
 </html>
diff --git a/app/launch/public/js/materialize.min.js b/app/launch/public/js/materialize.min.js
new file mode 100644
index 0000000..7d80c93
--- /dev/null
+++ b/app/launch/public/js/materialize.min.js
@@ -0,0 +1,6 @@
+/*!
+ * Materialize v1.0.0 (http://materializecss.com)
+ * Copyright 2014-2017 Materialize
+ * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
+ */
+var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in s)return s.value;var a=s.get;return void 0!==a?a.call(n):void 0},_createClass=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.protot [...]
\ No newline at end of file