]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
remove autocomplete and bring fonts through npm
authorThomas Citharel <tcit@tcit.fr>
Wed, 28 Sep 2016 16:59:15 +0000 (18:59 +0200)
committerThomas Citharel <tcit@tcit.fr>
Wed, 28 Sep 2016 16:59:15 +0000 (18:59 +0200)
Gruntfile.js
app/Resources/static/themes/baggy/js/init.js
package.json

index 9277408110f28daac3fe6dfc3759eb1429f2ad85..bf488ff997dcec19a2df9209da425cb5a57fd588 100644 (file)
@@ -67,12 +67,22 @@ module.exports = function (grunt) {
         transform: [
           ["babelify", {
           presets: ["es2015"]
-        }], "browserify-shim"
+        }], ["browserify-shim", {
+            "jquery": {
+              "exports": "$"
+            },
+            "materialize": "materialize",
+            "jquery-ui": {
+              "depends": "jquery",
+              "exports": null
+            }
+          }]
         ],
         browserifyOptions: {
           browser: {
             "jQuery": "./node_modules/jquery/dist/jquery.js",
-            "jquery.tinydot": "./nodes_modules/jquery.tinydot/src/jquery.tinydot.js"
+            "jquery.tinydot": "./node_modules/jquery.tinydot/src/jquery.tinydot.js",
+            "jquery.ui": "./node_modules/jquery-ui-browserify/dist/jquery-ui.js"
           }
         }
       }
index c6a54f6fa696fc75c858d8a4ee327a3455aa89fa..8da9a859bf88831a80cce8c4a55072318ed68e12 100755 (executable)
@@ -1,6 +1,6 @@
 const $ = global.jquery = require('jquery');
 require('jquery.cookie');
-require('jquery-ui');
+require('jquery-ui-browserify');
 const annotator = require('annotator');
 import { savePercent, retrievePercent } from '../../_global/js/tools.js';
 import { split, extractLast } from './autoCompleteTags.js';
@@ -124,6 +124,10 @@ $.fn.ready(() => {
   /**
    * Tags autocomplete
    */
+  /**
+   * Not working on v2
+   *
+
   $('#value').bind('keydown', (event) => {
     if (event.keyCode === $.ui.keyCode.TAB && $(this).data('ui-autocomplete').menu.active) {
       event.preventDefault();
@@ -156,6 +160,7 @@ $.fn.ready(() => {
       return false;
     },
   });
+  */
 
   //---------------------------------------------------------------------------
   // Close the message box when the user clicks the close icon
index 78970f8f29e1631f9bfcc6077f0efc27779d32ae..f7918d8f1c00acffa5a86343436a9a690a2b0787 100644 (file)
     "grunt-contrib-uglify": "^1.0.0",
     "grunt-postcss": "^0.8.0",
     "hammerjs": "^2.0.6",
-    "jquery": "^2.2.1",
-    "jquery-ui": "^1.10.5",
+    "icomoon-free-npm": "0.0.0",
+    "jquery": "^2.2.4",
+    "jquery-ui-browserify": "^1.11.0-pre-seelio",
     "jquery.cookie": "^1.4.1",
     "jquery.tinydot": "^0.2.1",
     "load-grunt-tasks": "^3.4.1",
+    "material-design-icons-iconfont": "^3.0.0",
     "materialize-css": "0.97.5",
     "npm": "^3.8.3",
     "pickadate": "^3.5.6",
     "pixrem": "^3.0.0",
     "postcss-cssnext": "^2.5.1",
     "prismjs": "^1.4.1",
+    "ptsans-npm-webfont": "0.0.4",
+    "roboto-fontface": "^0.6.0",
     "through": "^2.3.8"
   },
   "engines": {
     "materialize": "./node_modules/materialize-css/bin/materialize.js"
   },
   "browserify-shim": {
-    "jquery": "$",
-    "jQuery": "jQuery",
-    "materialize": "materialize"
+    "jquery": {
+      "exports": "$"
+    },
+    "materialize": "materialize",
+    "jquery-ui": {
+      "depends": "jquery",
+      "exports": null
+    }
   },
   "browserify": {
     "transform": [