DLUX Move codermirror to common assets 30/39830/8
authorDaniel Malachovsky <dmalacho@cisco.com>
Fri, 15 Jul 2016 15:54:08 +0000 (17:54 +0200)
committerDaniel Malachovsky <dmalacho@cisco.com>
Mon, 18 Jul 2016 13:48:13 +0000 (15:48 +0200)
Move codemirror library to dlux assets due to its implementation in yangui
and yangman app
Add ngMessages library to bower json
Rebased to https://git.opendaylight.org/gerrit/#/c/39725/

Change-Id: Ia7237767061ea2efbf44538d16bef871bacd59c8
Signed-off-by: Stanislav Jamrich <sjamrich@cisco.com>
Signed-off-by: Daniel Malachovsky <dmalacho@cisco.com>
20 files changed:
dlux-web/bower.json
dlux-web/build.config.js
dlux-web/src/less/main.less
modules/loader-resources/src/main/resources/assets/js/codemirror/addon/edit/matchbrackets.js [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/addon/edit/matchbrackets.js with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/addon/hint/show-hint.js [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/addon/hint/show-hint.js with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/addon/hint/show-hint.less [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/addon/hint/show-hint.less with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/addon/hint/yangman-json-hint.js [new file with mode: 0644]
modules/loader-resources/src/main/resources/assets/js/codemirror/addon/mode/loadmode.js [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/addon/mode/loadmode.js with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/lib/codemirror.js [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/lib/codemirror.js with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/lib/codemirror.less [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/lib/codemirror.less with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/mode/javascript/javascript.js [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/mode/javascript/javascript.js with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/theme/eclipse-disabled.less [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/theme/eclipse-disabled.less with 100% similarity]
modules/loader-resources/src/main/resources/assets/js/codemirror/theme/eclipse.less [moved from modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/theme/eclipse.less with 100% similarity]
modules/loader-resources/src/main/resources/main.js
modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/AUTHORS [deleted file]
modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/CONTRIBUTING.md [deleted file]
modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/LICENSE [deleted file]
modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/README.md [deleted file]
modules/yangui-resources/src/main/resources/yangui/main.js
modules/yangui-resources/src/main/resources/yangui/yangui.less

index be8c9ff50270f7a196c6013fe3df8ae58ab24b26..906a5d3f76ed6093ef4ff982b764181cd7a299d5 100644 (file)
@@ -34,7 +34,8 @@
     "ng-clip": "~0.2.6",
     "angular-translate-loader-partial": "~2.7.2",
     "angular-material": "^1.0.8",
-    "material-design-icons": "^2.2.3"
+    "material-design-icons": "^2.2.3",
+    "angular-messages": "^1.5.5"
   },
   "devDependencies": {
     "angular": "~1.4.0",
index e9b3ac497670d7f26a31fb390b655737a8ec81c7..9b487f090117fe58861868a97a542a3bba6a6782 100644 (file)
@@ -24,7 +24,7 @@ module.exports = {
     jsunit: [ 'src/**/*.spec.js' ],\r
     js_common: [ 'src/common/**/*.js', '!src/common/**/*.spec.js', '!src/common/assets/**/*.js'  ],\r
     js_app: [ 'src/app/**/*.js', '!src/app/**/*.spec.js', '!src/app/assets/**/*.js'  ],\r
-    app_assets: [ '! src/app/yangui/assets/js/**/*.js' ],\r
+    app_assets: [ '! src/app/yangui/assets/js/**/*.js', '! src/app/yangman/assets/js/**/*.js' ],\r
 \r
     atpl: [ 'src/app/**/*.tpl.html' ],\r
     ctpl: [ 'src/common/**/*.tpl.html' ],\r
@@ -104,6 +104,7 @@ module.exports = {
       'vendor/angular-animate/angular-animate.min.js',\r
       'vendor/angular-aria/angular-aria.min.js',\r
       'vendor/angular-material/angular-material.min.js',\r
+      'vendor/angular-messages/angular-messages.min.js',\r
     ],\r
     css: [\r
     'vendor/ng-grid/ng-grid.min.css',\r
index 06c5a108bdbf331dd9b53723816ec558d1fe4344..ace5fdc436b709411d796ba212d45e83ff2cf6b8 100644 (file)
@@ -133,3 +133,7 @@ h2 {
 @import '../common/topbar/topbar.less';\r
 @import '../app/topology/topology.less';\r
 @import '../app/yangman/yangman.less';\r
+@import '../assets/js/codemirror/lib/codemirror.less';\r
+@import '../assets/js/codemirror/theme/eclipse.less';\r
+@import '../assets/js/codemirror/theme/eclipse-disabled.less';\r
+@import '../assets/js/codemirror/addon/hint/show-hint.less';\r
diff --git a/modules/loader-resources/src/main/resources/assets/js/codemirror/addon/hint/yangman-json-hint.js b/modules/loader-resources/src/main/resources/assets/js/codemirror/addon/hint/yangman-json-hint.js
new file mode 100644 (file)
index 0000000..50d5707
--- /dev/null
@@ -0,0 +1,66 @@
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: http://codemirror.net/LICENSE
+
+(function(mod) {
+    if (typeof exports == "object" && typeof module == "object") // CommonJS
+        mod(require("codemirror"));
+    else if (typeof define == "function" && define.amd) // AMD
+        define(["codemirror"], mod);
+    else // Plain browser env
+        mod(CodeMirror);
+})(function(CodeMirror) {
+    "use strict";
+
+    var WORD = /[<<\w$]+/, RANGE = 500;
+    CodeMirror.registerHelper("hint", "anyword", function(editor, options) {
+        var acList = [],
+            word = options && options.word || WORD,
+            cur = editor.getCursor(), 
+            curLine = editor.getLine(cur.line),
+            end = cur.ch, 
+            start = end,
+            paramList = editor.data.parameterListObj.list;
+            
+        function forEachParam(arr, f, fParam) {
+            for (var i = 0, e = arr.length; i < e; ++i){ 
+                f(arr[i].name, fParam);
+            };
+        }
+        
+        
+        function maybeAdd(possibleWord, word) {
+            var pw = '<<' + possibleWord + '>>';
+            if (pw.lastIndexOf(word, 0) == 0 && !arrayContains(acList, pw)) 
+                acList.push(pw);
+        }
+        
+        function arrayContains(arr, item) {
+            if (!Array.prototype.indexOf) {
+                var i = arr.length;
+                while (i--) {
+                    if (arr[i] === item) {
+                        return true;
+                    }
+                }
+                return false;
+            }
+            return arr.indexOf(item) != -1;
+        }
+        
+        
+        options.completeSingle = false;
+        
+        while (start && word.test(curLine.charAt(start - 1))) 
+            --start;
+        
+        var curWord = curLine.slice(start, end);
+        
+        if(curWord.length > 1){
+            forEachParam(paramList, maybeAdd, curWord);
+        }
+        
+        
+        
+        return {list: acList, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)};
+    });
+});
index d25a0e9ec016a515d96e2d669ff45b1b76bba17f..fab7098381022a45957778db34f3eb172a56f401 100644 (file)
@@ -1,5 +1,10 @@
 require.config({
   baseUrl : 'src',
+  packages: [{
+    name: 'codemirror',
+    location: '../assets/js/codemirror',
+    main: 'lib/codemirror',
+  }],
   paths : {
     'angular' : '../vendor/angular/angular',
     'ui-bootstrap' : '../vendor/angular-bootstrap/ui-bootstrap-tpls.min',
@@ -29,7 +34,11 @@ require.config({
     'angular-translate-loader-partial' : '../vendor/angular-translate-loader-partial/angular-translate-loader-partial',
     'ngAnimate': '../vendor/angular-animate/angular-animate.min',
     'ngAria': '../vendor/angular-aria/angular-aria.min',
-    'ngMaterial': '../vendor/angular-material/angular-material.min'
+    'ngMaterial': '../vendor/angular-material/angular-material.min',
+    'ngMessages': '../vendor/angular-messages/angular-messages.min',
+    'codeMirror-showHint' : '../assets/js/codemirror/addon/hint/show-hint',
+    'codeMirror-javascriptMode' : '../assets/js/codemirror/mode/javascript/javascript',
+    'codeMirror-matchBrackets' : '../assets/js/codemirror/addon/edit/matchbrackets',
   },
   map: {
     '*': {
@@ -74,7 +83,11 @@ require.config({
     'ngAria': ['angular'],
     'ngMaterial': {
       deps: ['ngAnimate', 'ngAria']
-    }
+    },
+    'codeMirros_showHint': ['codemirror'],
+    'codeMirros_javascriptHint': ['codemirror'],
+    'codeMirror_javascriptMode': ['codemirror'],
+    'codeMirror_matchBrackets': ['codemirror'],
   },
 
   deps : ['app/app.module']
diff --git a/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/AUTHORS b/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/AUTHORS
deleted file mode 100644 (file)
index 3299d4f..0000000
+++ /dev/null
@@ -1,466 +0,0 @@
-List of CodeMirror contributors. Updated before every release.
-
-4r2r
-Aaron Brooks
-Abdelouahab
-Abe Fettig
-Adam Ahmed
-Adam King
-adanlobato
-Adán Lobato
-Adrian Aichner
-aeroson
-Ahmad Amireh
-Ahmad M. Zawawi
-ahoward
-Akeksandr Motsjonov
-Alberto González Palomo
-Alberto Pose
-Albert Xing
-Alexander Pavlov
-Alexander Schepanovski
-Alexander Shvets
-Alexander Solovyov
-Alexandre Bique
-alexey-k
-Alex Piggott
-Aliaksei Chapyzhenka
-Amin Shali
-Amsul
-amuntean
-Amy
-Ananya Sen
-anaran
-AndersMad
-Anders Nawroth
-Anderson Mesquita
-Andrea G
-Andreas Reischuck
-Andre von Houck
-Andrey Fedorov
-Andrey Klyuchnikov
-Andrey Lushnikov
-Andy Joslin
-Andy Kimball
-Andy Li
-Angelo
-angelozerr
-angelo.zerr@gmail.com
-Ankit
-Ankit Ahuja
-Ansel Santosa
-Anthony Dugois
-Anthony Grimes
-Anton Kovalyov
-AQNOUCH Mohammed
-areos
-as3boyan
-AtomicPages LLC
-Atul Bhouraskar
-Aurelian Oancea
-Bastian Müller
-Bem Jones-Bey
-benbro
-Beni Cherniavsky-Paskin
-Benjamin DeCoste
-Ben Keen
-Bernhard Sirlinger
-Bert Chang
-Billy Moon
-binny
-B Krishna Chaitanya
-Blaine G
-blukat29
-boomyjee
-borawjm
-Brad Metcalf
-Brandon Frohs
-Brandon Wamboldt
-Brett Zamir
-Brian Grinstead
-Brian Sletten
-Bruce Mitchener
-Calin Barbat
-Chandra Sekhar Pydi
-Charles Skelton
-Cheah Chu Yeow
-Chris Coyier
-Chris Granger
-Chris Houseknecht
-Chris Lohfink
-Chris Morgan
-Christian Oyarzun
-Christian Petrov
-Christopher Brown
-Christopher Mitchell
-Christopher Pfohl
-ciaranj
-CodeAnimal
-coderaiser
-ComFreek
-Curtis Gagliardi
-dagsta
-daines
-Dale Jung
-Dan Bentley
-Dan Heberden
-Daniel, Dao Quang Minh
-Daniele Di Sarli
-Daniel Faust
-Daniel Huigens
-Daniel KJ
-Daniel Neel
-Daniel Parnell
-Danny Yoo
-darealshinji
-Darius Roberts
-Dave Myers
-David Barnett
-David Mignot
-David Pathakjee
-David Vázquez
-deebugger
-Deep Thought
-Devon Carew
-dignifiedquire
-Dimage Sapelkin
-Dmitry Kiselyov
-domagoj412
-Dominator008
-Domizio Demichelis
-Doug Wikle
-Drew Bratcher
-Drew Hintz
-Drew Khoury
-Dror BG
-duralog
-eborden
-edsharp
-ekhaled
-Enam Mijbah Noor
-Eric Allam
-eustas
-Fabien O'Carroll
-Fabio Zendhi Nagao
-Faiza Alsaied
-Fauntleroy
-fbuchinger
-feizhang365
-Felipe Lalanne
-Felix Raab
-Filip Noetzel
-flack
-ForbesLindesay
-Forbes Lindesay
-Ford_Lawnmower
-Forrest Oliphant
-Frank Wiegand
-Gabriel Gheorghian
-Gabriel Horner
-Gabriel Nahmias
-galambalazs
-Gautam Mehta
-gekkoe
-Gerard Braad
-Gergely Hegykozi
-Giovanni Calò
-Glenn Jorde
-Glenn Ruehle
-Golevka
-Gordon Smith
-Grant Skinner
-greengiant
-Gregory Koberger
-Guillaume Massé
-Guillaume Massé
-Gustavo Rodrigues
-Hakan Tunc
-Hans Engel
-Hardest
-Hasan Karahan
-Hector Oswaldo Caballero
-Herculano Campos
-Hiroyuki Makino
-hitsthings
-Hocdoc
-Ian Beck
-Ian Dickinson
-Ian Wehrman
-Ian Wetherbee
-Ice White
-ICHIKAWA, Yuji
-ilvalle
-Ingo Richter
-Irakli Gozalishvili
-Ivan Kurnosov
-Ivoah
-Jacob Lee
-Jakob Miland
-Jakub Vrana
-Jakub Vrána
-James Campos
-James Thorne
-Jamie Hill
-Jan Jongboom
-jankeromnes
-Jan Keromnes
-Jan Odvarko
-Jan T. Sott
-Jared Forsyth
-Jason
-Jason Barnabe
-Jason Grout
-Jason Johnston
-Jason San Jose
-Jason Siefken
-Jaydeep Solanki
-Jean Boussier
-jeffkenton
-Jeff Pickhardt
-jem (graphite)
-Jeremy Parmenter
-Jochen Berger
-Johan Ask
-John Connor
-John Lees-Miller
-John Snelson
-John Van Der Loo
-Jonas Döbertin
-Jonathan Malmaud
-jongalloway
-Jon Malmaud
-Jon Sangster
-Joost-Wim Boekesteijn
-Joseph Pecoraro
-Joshua Newman
-Josh Watzman
-jots
-jsoojeon
-ju1ius
-Juan Benavides Romero
-Jucovschi Constantin
-Juho Vuori
-Justin Hileman
-jwallers@gmail.com
-kaniga
-Ken Newman
-Ken Rockot
-Kevin Earls
-Kevin Sawicki
-Kevin Ushey
-Klaus Silveira
-Koh Zi Han, Cliff
-komakino
-Konstantin Lopuhin
-koops
-ks-ifware
-kubelsmieci
-KwanEsq
-Lanfei
-Lanny
-Laszlo Vidacs
-leaf corcoran
-Leonid Khachaturov
-Leon Sorokin
-Leonya Khachaturov
-Liam Newman
-Libo Cannici
-LloydMilligan
-LM
-lochel
-Lorenzo Stoakes
-Luciano Longo
-Luke Stagner
-lynschinzer
-Madhura Jayaratne
-Maksim Lin
-Maksym Taran
-Malay Majithia
-Manuel Rego Casasnovas
-Marat Dreizin
-Marcel Gerber
-Marco Aurélio
-Marco Munizaga
-Marcus Bointon
-Marek Rudnicki
-Marijn Haverbeke
-Mário Gonçalves
-Mario Pietsch
-Mark Lentczner
-Marko Bonaci
-Martin Balek
-Martín Gaitán
-Martin Hasoň
-Martin Hunt
-Mason Malone
-Mateusz Paprocki
-Mathias Bynens
-mats cronqvist
-Matthew Beale
-Matthew Rathbone
-Matthias Bussonnier
-Matthias BUSSONNIER
-Matt McDonald
-Matt Pass
-Matt Sacks
-mauricio
-Maximilian Hils
-Maxim Kraev
-Max Kirsch
-Max Xiantu
-mbarkhau
-Metatheos
-Micah Dubinko
-Michael Grey
-Michael Kaminsky
-Michael Lehenbauer
-Michael Zhou
-Michal Dorner
-Mighty Guava
-Miguel Castillo
-mihailik
-Mike
-Mike Brevoort
-Mike Diaz
-Mike Ivanov
-Mike Kadin
-MinRK
-Miraculix87
-misfo
-mloginov
-Moritz Schwörer
-mps
-ms
-mtaran-google
-Narciso Jaramillo
-Nathan Williams
-ndr
-nerbert
-nextrevision
-ngn
-nguillaumin
-Ng Zhi An
-Nicholas Bollweg
-Nicholas Bollweg (Nick)
-Nick Kreeger
-Nick Small
-Niels van Groningen
-nightwing
-Nikita Beloglazov
-Nikita Vasilyev
-Nikolay Kostov
-nilp0inter
-Nisarg Jhaveri
-nlwillia
-noragrossman
-Norman Rzepka
-pablo
-Page
-Panupong Pasupat
-paris
-Paris
-Patil Arpith
-Patrick Stoica
-Patrick Strawderman
-Paul Garvin
-Paul Ivanov
-Pavel Feldman
-Pavel Strashkin
-Paweł Bartkiewicz
-peteguhl
-Peter Flynn
-peterkroon
-Peter Kroon
-prasanthj
-Prasanth J
-Radek Piórkowski
-Rahul
-Randall Mason
-Randy Burden
-Randy Edmunds
-Rasmus Erik Voel Jensen
-ray ratchup
-Ray Ratchup
-Richard van der Meer
-Richard Z.H. Wang
-Robert Crossfield
-Roberto Abdelkader Martínez Pérez
-robertop23
-Robert Plummer
-Ruslan Osmanov
-Ryan Prior
-sabaca
-Samuel Ainsworth
-sandeepshetty
-Sander AKA Redsandro
-santec
-Sascha Peilicke
-satamas
-satchmorun
-sathyamoorthi
-SCLINIC\jdecker
-Scott Aikin
-Scott Goodhew
-Sebastian Zaha
-shaund
-shaun gilchrist
-Shawn A
-sheopory
-Shiv Deepak
-Shmuel Englard
-Shubham Jain
-silverwind
-snasa
-soliton4
-sonson
-spastorelli
-srajanpaliwal
-Stanislav Oaserele
-Stas Kobzar
-Stefan Borsje
-Steffen Beyer
-Steve O'Hara
-stoskov
-Taha Jahangir
-Takuji Shimokawa
-Tarmil
-tel
-tfjgeorge
-Thaddee Tyl
-TheHowl
-think
-Thomas Dvornik
-Thomas Schmid
-Tim Alby
-Tim Baumann
-Timothy Farrell
-Timothy Hatcher
-TobiasBg
-Tomas-A
-Tomas Varaneckas
-Tom Erik Støwer
-Tom MacWright
-Tony Jian
-Travis Heppe
-Triangle717
-twifkak
-Vestimir Markov
-vf
-Vincent Woo
-Volker Mische
-wenli
-Wesley Wiser
-Will Binns-Smith
-William Jamieson
-William Stein
-Willy
-Wojtek Ptak
-Xavier Mendez
-Yassin N. Hassan
-YNH Webdev
-Yunchi Luo
-Yuvi Panda
-Zachary Dremann
-Zhang Hao
-zziuni
-魏鹏刚
diff --git a/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/CONTRIBUTING.md b/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/CONTRIBUTING.md
deleted file mode 100644 (file)
index 1645548..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-# How to contribute
-
-- [Getting help](#getting-help-)
-- [Submitting bug reports](#submitting-bug-reports-)
-- [Contributing code](#contributing-code-)
-
-## Getting help
-
-Community discussion, questions, and informal bug reporting is done on the
-[discuss.CodeMirror forum](http://discuss.codemirror.net).
-
-## Submitting bug reports
-
-The preferred way to report bugs is to use the
-[GitHub issue tracker](http://github.com/codemirror/CodeMirror/issues). Before
-reporting a bug, read these pointers.
-
-**Note:** The issue tracker is for *bugs*, not requests for help. Questions
-should be asked on the
-[discuss.CodeMirror forum](http://discuss.codemirror.net) instead.
-
-### Reporting bugs effectively
-
-- CodeMirror is maintained by volunteers. They don't owe you anything, so be
-  polite. Reports with an indignant or belligerent tone tend to be moved to the
-  bottom of the pile.
-
-- Include information about **the browser in which the problem occurred**. Even
-  if you tested several browsers, and the problem occurred in all of them,
-  mention this fact in the bug report. Also include browser version numbers and
-  the operating system that you're on.
-
-- Mention which release of CodeMirror you're using. Preferably, try also with
-  the current development snapshot, to ensure the problem has not already been
-  fixed.
-
-- Mention very precisely what went wrong. "X is broken" is not a good bug
-  report. What did you expect to happen? What happened instead? Describe the
-  exact steps a maintainer has to take to make the problem occur. We can not
-  fix something that we can not observe.
-
-- If the problem can not be reproduced in any of the demos included in the
-  CodeMirror distribution, please provide an HTML document that demonstrates
-  the problem. The best way to do this is to go to
-  [jsbin.com](http://jsbin.com/ihunin/edit), enter it there, press save, and
-  include the resulting link in your bug report.
-
-## Contributing code
-
-- Make sure you have a [GitHub Account](https://github.com/signup/free)
-- Fork [CodeMirror](https://github.com/codemirror/CodeMirror/)
-  ([how to fork a repo](https://help.github.com/articles/fork-a-repo))
-- Make your changes
-- If your changes are easy to test or likely to regress, add tests.
-  Tests for the core go into `test/test.js`, some modes have their own
-  test suite under `mode/XXX/test.js`. Feel free to add new test
-  suites to modes that don't have one yet (be sure to link the new
-  tests into `test/index.html`).
-- Follow the general code style of the rest of the project (see
-  below). Run `bin/lint` to verify that the linter is happy.
-- Make sure all tests pass. Visit `test/index.html` in your browser to
-  run them.
-- Submit a pull request
-([how to create a pull request](https://help.github.com/articles/fork-a-repo))
-
-By contributing code to CodeMirror you
-
- - agree to license the contributed code under CodeMirror's [MIT
-   license](http://codemirror.net/LICENSE).
-
- - confirm that you have the right to contribute and license the code
-   in question. (Either you hold all rights on the code, or the rights
-   holder has explicitly granted the right to use it like this,
-   through a compatible open source license or through a direct
-   agreement with you.)
-
-### Coding standards
-
-- 2 spaces per indentation level, no tabs.
-- Include semicolons after statements.
-- Note that the linter (`bin/lint`) which is run after each commit
-  complains about unused variables and functions. Prefix their names
-  with an underscore to muffle it.
-
-- CodeMirror does *not* follow JSHint or JSLint prescribed style.
-  Patches that try to 'fix' code to pass one of these linters will be
-  unceremoniously discarded.
diff --git a/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/LICENSE b/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/LICENSE
deleted file mode 100644 (file)
index f4a5a4a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2015 by Marijn Haverbeke <marijnh@gmail.com> and others
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/README.md b/modules/yangui-resources/src/main/resources/yangui/assets/js/codemirror/README.md
deleted file mode 100644 (file)
index 38156a7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# CodeMirror
-[![Build Status](https://travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror)
-[![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.org/package/codemirror)  
-[Funding status: ![maintainer happiness](https://marijnhaverbeke.nl/fund/status_s.png?again)](https://marijnhaverbeke.nl/fund/)
-
-CodeMirror is a JavaScript component that provides a code editor in
-the browser. When a mode is available for the language you are coding
-in, it will color your code, and optionally help with indentation.
-
-The project page is http://codemirror.net  
-The manual is at http://codemirror.net/doc/manual.html  
-The contributing guidelines are in [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md)
index d26c3877be295ea104c8533f472077447d87f681..9b17b86d4a92878e006a6207673ace56f9a325c5 100644 (file)
@@ -2,23 +2,10 @@
  * Created by dakuzma on 25. 8. 2015.
  */
 require.config({
-    packages: [{
-        name: "codemirror",
-        location: "app/yangui/assets/js/codemirror",
-        main: "lib/codemirror"
-    }],
     paths: {
-        'codeMirror-showHint' : 'app/yangui/assets/js/codemirror/addon/hint/show-hint',
-        'codeMirror-yanguiJsonHint' : 'app/yangui/assets/js/codemirror/addon/hint/yangui-json-hint',
-        'codeMirror-javascriptMode' : 'app/yangui/assets/js/codemirror/mode/javascript/javascript',
-        'codeMirror-matchBrackets' : 'app/yangui/assets/js/codemirror/addon/edit/matchbrackets'
+        'codeMirror-yanguiJsonHint': 'app/yangui/assets/js/codemirror/addon/hint/yangui-json-hint',
     },
-    shim:{
-        'codeMirros_showHint': ['codemirror'],
-        'codeMirros_javascriptHint': ['codemirror'],
-        'codeMirror_javascriptMode': ['codemirror'],
-        'codeMirror_matchBrackets': ['codemirror']
-    }
+
 });
 
 define(['app/yangui/yangui.module']);
index 83661bbc4ecd9be18f5ce84616d4cfd9f40c821c..80468bb1b53a0964f259b01cc6fed081252b220b 100644 (file)
@@ -1,10 +1,3 @@
-/*PLUGINS importing*/\r
-@import 'assets/js/codemirror/lib/codemirror.less';\r
-@import 'assets/js/codemirror/theme/eclipse.less';\r
-@import 'assets/js/codemirror/theme/eclipse-disabled.less';\r
-@import 'assets/js/codemirror/addon/hint/show-hint.less';\r
-/*PLUGINS importing END*/\r
-\r
 @iconsNewRootPath : '../src/app/yangui/assets/images/';\r
 \r
 /******** WINDOW SCROLLBARS *****/\r
@@ -309,6 +302,10 @@ input[type="file"].upload-collection{
     color: white;\r
   }\r
 \r
+  .yangUIwrapper .CodeMirror span{\r
+    color: auto;\r
+  }\r
+\r
   ::-webkit-scrollbar {\r
     width: 10px;\r
     height: 10px;\r