##// END OF EJS Templates
front-end: Use select2 from node_modules and stop bundling it...
Mads Kiilerich -
r7384:12455b1a default
parent child Browse files
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -24,12 +24,17 b' syntax: regexp'
24 ^kallithea/front-end/node_modules$
24 ^kallithea/front-end/node_modules$
25 ^kallithea/front-end/package-lock\.json$
25 ^kallithea/front-end/package-lock\.json$
26 ^kallithea/front-end/tmp$
26 ^kallithea/front-end/tmp$
27 ^kallithea/public/css/style\.css(\.map)?$
27 ^kallithea/public/css/select2-spinner\.gif$
28 ^kallithea/public/css/select2\.png$
29 ^kallithea/public/css/select2x2\.png$
30 ^kallithea/public/css/style\.css$
31 ^kallithea/public/css/style\.css\.map$
28 ^kallithea/public/js/bootstrap\.js$
32 ^kallithea/public/js/bootstrap\.js$
29 ^kallithea/public/js/jquery\.flot\.js$
33 ^kallithea/public/js/jquery\.flot\.js$
30 ^kallithea/public/js/jquery\.flot\.selection\.js$
34 ^kallithea/public/js/jquery\.flot\.selection\.js$
31 ^kallithea/public/js/jquery\.flot\.time\.js$
35 ^kallithea/public/js/jquery\.flot\.time\.js$
32 ^kallithea/public/js/jquery\.min\.js$
36 ^kallithea/public/js/jquery\.min\.js$
37 ^kallithea/public/js/select2\.js$
33 ^theme\.less$
38 ^theme\.less$
34 ^kallithea\.db$
39 ^kallithea\.db$
35 ^test\.db$
40 ^test\.db$
@@ -113,7 +113,7 b' tri-license.'
113 Select2
113 Select2
114 -------
114 -------
115
115
116 Kallithea incorporates parts of the Javascript system called
116 Kallithea uses the Javascript system called
117 [Select2](http://ivaynberg.github.io/select2/), which is:
117 [Select2](http://ivaynberg.github.io/select2/), which is:
118
118
119 Copyright 2012 Igor Vaynberg (and probably others)
119 Copyright 2012 Igor Vaynberg (and probably others)
@@ -132,12 +132,15 b' in this distribution.'
132 Kallithea will take the Apache license fork of the dual license, since
132 Kallithea will take the Apache license fork of the dual license, since
133 Kallithea is GPLv3'd.
133 Kallithea is GPLv3'd.
134
134
135 It is not distributed with Kallithea, but will be downloaded
136 using the ''kallithea-cli front-end-build'' command.
137
135
138
136
139
137 Select2-Bootstrap-CSS
140 Select2-Bootstrap-CSS
138 ---------------------
141 ---------------------
139
142
140 Kallithea incorporates some CSS from a system called
143 Kallithea uses some CSS from a system called
141 [Select2-bootstrap-css](https://github.com/t0m/select2-bootstrap-css), which
144 [Select2-bootstrap-css](https://github.com/t0m/select2-bootstrap-css), which
142 is:
145 is:
143
146
@@ -146,6 +149,9 b' Copyright © 2013 Tom Terrace (and l'
146 and licensed under the MIT-permissive license, which is
149 and licensed under the MIT-permissive license, which is
147 [included in this distribution](MIT-Permissive-License.txt).
150 [included in this distribution](MIT-Permissive-License.txt).
148
151
152 It is not distributed with Kallithea, but will be downloaded
153 using the ''kallithea-cli front-end-build'' command.
154
149
155
150
156
151 History.js
157 History.js
@@ -72,6 +72,12 b' def front_end_build(install_deps, genera'
72 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery.flot', 'jquery.flot.selection.js'), os.path.join(public_dir, 'js', 'jquery.flot.selection.js'))
72 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery.flot', 'jquery.flot.selection.js'), os.path.join(public_dir, 'js', 'jquery.flot.selection.js'))
73 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery.flot', 'jquery.flot.time.js'), os.path.join(public_dir, 'js', 'jquery.flot.time.js'))
73 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery.flot', 'jquery.flot.time.js'), os.path.join(public_dir, 'js', 'jquery.flot.time.js'))
74
74
75 click.echo("Preparing Select2 JS")
76 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2.js'), os.path.join(public_dir, 'js', 'select2.js'))
77 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2.png'), os.path.join(public_dir, 'css', 'select2.png'))
78 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2x2.png'), os.path.join(public_dir, 'css', 'select2x2.png'))
79 shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2-spinner.gif'), os.path.join(public_dir, 'css', 'select2-spinner.gif'))
80
75 click.echo("Generating LICENSES.txt")
81 click.echo("Generating LICENSES.txt")
76 check_licensing_json_path = os.path.join(tmp_dir, 'licensing.json')
82 check_licensing_json_path = os.path.join(tmp_dir, 'licensing.json')
77 licensing_txt_path = os.path.join(public_dir, 'LICENSES.txt')
83 licensing_txt_path = os.path.join(public_dir, 'LICENSES.txt')
@@ -4,7 +4,9 b''
4 "dependencies": {
4 "dependencies": {
5 "bootstrap": "3.3.7",
5 "bootstrap": "3.3.7",
6 "jquery": "1.12.3",
6 "jquery": "1.12.3",
7 "jquery.flot": "0.8.3"
7 "jquery.flot": "0.8.3",
8 "select2": "3.5.1",
9 "select2-bootstrap-css": "1.2.4"
8 },
10 },
9 "devDependencies": {
11 "devDependencies": {
10 "less": "~2.7",
12 "less": "~2.7",
@@ -11,8 +11,8 b''
11 /* 3rd party styles */
11 /* 3rd party styles */
12 @import "node_modules/bootstrap/less/bootstrap.less";
12 @import "node_modules/bootstrap/less/bootstrap.less";
13 @import (inline) "3rd-party/dataTables.bootstrap.css";
13 @import (inline) "3rd-party/dataTables.bootstrap.css";
14 @import (less) "../js/select2/select2.css";
14 @import (less) "node_modules/select2/select2.css";
15 @import (less) "../js/select2/select2-bootstrap.css";
15 @import (less) "node_modules/select2-bootstrap-css/select2-bootstrap.css";
16 @import (less) "tmp/pygments.css";
16 @import (less) "tmp/pygments.css";
17 @import (less) "../fontello/css/kallithea.css";
17 @import (less) "../fontello/css/kallithea.css";
18
18
@@ -72,7 +72,7 b''
72 <script type="text/javascript" src="${h.url('/js/jquery.dataTables.min.js', ver=c.kallithea_version)}"></script>
72 <script type="text/javascript" src="${h.url('/js/jquery.dataTables.min.js', ver=c.kallithea_version)}"></script>
73 <script type="text/javascript" src="${h.url('/js/dataTables.bootstrap.js', ver=c.kallithea_version)}"></script>
73 <script type="text/javascript" src="${h.url('/js/dataTables.bootstrap.js', ver=c.kallithea_version)}"></script>
74 <script type="text/javascript" src="${h.url('/js/bootstrap.js', ver=c.kallithea_version)}"></script>
74 <script type="text/javascript" src="${h.url('/js/bootstrap.js', ver=c.kallithea_version)}"></script>
75 <script type="text/javascript" src="${h.url('/js/select2/select2.js', ver=c.kallithea_version)}"></script>
75 <script type="text/javascript" src="${h.url('/js/select2.js', ver=c.kallithea_version)}"></script>
76 <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.kallithea_version)}"></script>
76 <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.kallithea_version)}"></script>
77 <script type="text/javascript" src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script>
77 <script type="text/javascript" src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script>
78 ## EXTRA FOR JS
78 ## EXTRA FOR JS
@@ -2,7 +2,7 b''
2
2
3 # Enforce some consistency in whitespace - just to avoid spurious whitespaces changes
3 # Enforce some consistency in whitespace - just to avoid spurious whitespaces changes
4
4
5 files=`hg mani | egrep -v '/codemirror/|/fontello/|/email_templates/|(/lockfiles.py|^LICENSE-MERGELY.html|^docs/Makefile|^scripts/whitespacecleanup.sh|/(graph|mergely|native.history|select2/select2|yui.2.9|jquery.dataTables)\.js|/test_dump_html_mails.ref.html|\.png|\.gif|\.ico|\.pot|\.po|\.mo|\.tar\.gz|\.diff)$'`
5 files=`hg mani | egrep -v '/codemirror/|/fontello/|/email_templates/|(/lockfiles.py|^LICENSE-MERGELY.html|^docs/Makefile|^scripts/whitespacecleanup.sh|/(graph|mergely|native.history|yui.2.9|jquery.dataTables)\.js|/test_dump_html_mails.ref.html|\.png|\.gif|\.ico|\.pot|\.po|\.mo|\.tar\.gz|\.diff)$'`
6
6
7 sed -i "s/`printf '\r'`//g" $files
7 sed -i "s/`printf '\r'`//g" $files
8 sed -i -e "s,`printf '\t'`, ,g" $files
8 sed -i -e "s,`printf '\t'`, ,g" $files
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (692 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
General Comments 0
You need to be logged in to leave comments. Login now