Show More
The requested changes are too big and content was truncated. Show full diff
@@ -3,15 +3,15 b'' | |||||
3 | "description": "User interface for elements for rhodecode", |
|
3 | "description": "User interface for elements for rhodecode", | |
4 | "main": "index.html", |
|
4 | "main": "index.html", | |
5 | "dependencies": { |
|
5 | "dependencies": { | |
6 |
"webcomponentsjs": "^ |
|
6 | "webcomponentsjs": "^1.2.3", | |
7 |
"polymer": "Polymer/polymer#^ |
|
7 | "polymer": "Polymer/polymer#^2.6.0", | |
8 |
"paper-button": "PolymerElements/paper-button#^ |
|
8 | "paper-button": "PolymerElements/paper-button#^2.1.2", | |
9 |
"paper-spinner": "PolymerElements/paper-spinner#^ |
|
9 | "paper-spinner": "PolymerElements/paper-spinner#^2.1.0", | |
10 |
"paper-tooltip": "PolymerElements/paper-tooltip#^1.1 |
|
10 | "paper-tooltip": "PolymerElements/paper-tooltip#^2.1.1", | |
11 |
"paper-toast": "PolymerElements/paper-toast#^ |
|
11 | "paper-toast": "PolymerElements/paper-toast#^2.1.2", | |
12 |
"paper-toggle-button": "PolymerElements/paper-toggle-button#^ |
|
12 | "paper-toggle-button": "PolymerElements/paper-toggle-button#^2.1.1", | |
13 |
"iron-ajax": "PolymerElements/iron-ajax#^ |
|
13 | "iron-ajax": "PolymerElements/iron-ajax#^2.1.3", | |
14 |
"iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^ |
|
14 | "iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^2.2.0", | |
15 |
"iron-a11y-keys": "PolymerElements/iron-a11y-keys#^ |
|
15 | "iron-a11y-keys": "PolymerElements/iron-a11y-keys#^2.1.2" | |
16 | } |
|
16 | } | |
17 | } |
|
17 | } |
@@ -15,8 +15,8 b'' | |||||
15 | "grunt-contrib-jshint": "^0.12.0", |
|
15 | "grunt-contrib-jshint": "^0.12.0", | |
16 | "grunt-contrib-less": "^1.1.0", |
|
16 | "grunt-contrib-less": "^1.1.0", | |
17 | "grunt-contrib-watch": "^0.6.1", |
|
17 | "grunt-contrib-watch": "^0.6.1", | |
18 |
"crisper": "^2. |
|
18 | "crisper": "^2.1.1", | |
19 |
"vulcanize": "^1.1 |
|
19 | "vulcanize": "^1.16.0", | |
20 | "grunt-crisper": "^1.0.1", |
|
20 | "grunt-crisper": "^1.0.1", | |
21 | "grunt-vulcanize": "^1.0.0", |
|
21 | "grunt-vulcanize": "^1.0.0", | |
22 | "node2nix": "^1.0.0", |
|
22 | "node2nix": "^1.0.0", |
@@ -33,7 +33,7 b' var rhodeCodeApp = Polymer({' | |||||
33 | }, |
|
33 | }, | |
34 |
|
34 | |||
35 | faviconUpdate: function (data) { |
|
35 | faviconUpdate: function (data) { | |
36 |
this. |
|
36 | this.shadowRoot.querySelector('rhodecode-favicon').counter = data.count; | |
37 | }, |
|
37 | }, | |
38 |
|
38 | |||
39 | /** opens connection to ws server */ |
|
39 | /** opens connection to ws server */ |
@@ -1,5 +1,4 b'' | |||||
1 | <link rel="import" href="../../../../../../bower_components/paper-button/paper-button.html"> |
|
1 | <link rel="import" href="../../../../../../bower_components/paper-button/paper-button.html"> | |
2 | <link rel="import" href="../../../../../../bower_components/paper-toast/paper-toast.html"> |
|
|||
3 | <link rel="import" href="../../../../../../bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html"> |
|
2 | <link rel="import" href="../../../../../../bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html"> | |
4 | <link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html"> |
|
3 | <link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html"> | |
5 | <dom-module id="rhodecode-toast"> |
|
4 | <dom-module id="rhodecode-toast"> |
@@ -3,7 +3,7 b'' | |||||
3 | <dom-module id="rhodecode-unsafe-html"> |
|
3 | <dom-module id="rhodecode-unsafe-html"> | |
4 | <template> |
|
4 | <template> | |
5 | <style include="shared-styles"></style> |
|
5 | <style include="shared-styles"></style> | |
6 |
< |
|
6 | <slot></slot> | |
7 | </template> |
|
7 | </template> | |
8 | <script src="rhodecode-unsafe-html.js"></script> |
|
8 | <script src="rhodecode-unsafe-html.js"></script> | |
9 | </dom-module> |
|
9 | </dom-module> |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
@@ -1,4 +1,5 b'' | |||||
1 |
< |
|
1 | <dom-bind id="notificationsPage"> | |
|
2 | <template> | |||
2 | <iron-ajax id="toggleNotifications" |
|
3 | <iron-ajax id="toggleNotifications" | |
3 | method="post" |
|
4 | method="post" | |
4 | url="${h.route_path('my_account_notifications_toggle_visibility')}" |
|
5 | url="${h.route_path('my_account_notifications_toggle_visibility')}" | |
@@ -60,6 +61,10 b'' | |||||
60 |
|
61 | |||
61 | </div> |
|
62 | </div> | |
62 |
|
63 | |||
|
64 | ||||
|
65 | </template> | |||
|
66 | </dom-bind> | |||
|
67 | ||||
63 | <script type="text/javascript"> |
|
68 | <script type="text/javascript"> | |
64 | /** because im not creating a custom element for this page |
|
69 | /** because im not creating a custom element for this page | |
65 | * we need to push the function onto the dom-template |
|
70 | * we need to push the function onto the dom-template | |
@@ -81,7 +86,7 b'' | |||||
81 | var levels = ['info', 'error', 'warning', 'success']; |
|
86 | var levels = ['info', 'error', 'warning', 'success']; | |
82 | var level = levels[Math.floor(Math.random()*levels.length)]; |
|
87 | var level = levels[Math.floor(Math.random()*levels.length)]; | |
83 | function getRandomArbitrary(min, max) { |
|
88 | function getRandomArbitrary(min, max) { | |
84 | return parseInt(Math.random() * (max - min) + min); |
|
89 | return parseInt(Math.random() * (max - min) + min); | |
85 | } |
|
90 | } | |
86 | function shuffle(a) { |
|
91 | function shuffle(a) { | |
87 | var j, x, i; |
|
92 | var j, x, i; | |
@@ -126,5 +131,3 b'' | |||||
126 | }; |
|
131 | }; | |
127 |
|
132 | |||
128 | </script> |
|
133 | </script> | |
129 |
|
||||
130 | </template> |
|
@@ -27,7 +27,7 b" c.template_context['default_user'] = {" | |||||
27 | %> |
|
27 | %> | |
28 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|
28 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
29 | <head> |
|
29 | <head> | |
30 |
<script src="${h.asset('js/vendors/webcomponentsjs/webcomponents-lite. |
|
30 | <script src="${h.asset('js/vendors/webcomponentsjs/webcomponents-lite.js', ver=c.rhodecode_version_hash)}"></script> | |
31 | <link rel="import" href="${h.asset('js/rhodecode-components.html', ver=c.rhodecode_version_hash)}"> |
|
31 | <link rel="import" href="${h.asset('js/rhodecode-components.html', ver=c.rhodecode_version_hash)}"> | |
32 | <title>${self.title()}</title> |
|
32 | <title>${self.title()}</title> | |
33 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
|
33 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
@@ -63,33 +63,6 b" c.template_context['default_user'] = {" | |||||
63 |
|
63 | |||
64 | ## JAVASCRIPT |
|
64 | ## JAVASCRIPT | |
65 | <%def name="js()"> |
|
65 | <%def name="js()"> | |
66 | <script> |
|
|||
67 | // setup Polymer options |
|
|||
68 | window.Polymer = {lazyRegister: true, dom: 'shadow'}; |
|
|||
69 |
|
||||
70 | // Load webcomponentsjs polyfill if browser does not support native Web Components |
|
|||
71 | (function() { |
|
|||
72 | 'use strict'; |
|
|||
73 | var onload = function() { |
|
|||
74 | // For native Imports, manually fire WebComponentsReady so user code |
|
|||
75 | // can use the same code path for native and polyfill'd imports. |
|
|||
76 | if (!window.HTMLImports) { |
|
|||
77 | document.dispatchEvent( |
|
|||
78 | new CustomEvent('WebComponentsReady', {bubbles: true}) |
|
|||
79 | ); |
|
|||
80 | } |
|
|||
81 | }; |
|
|||
82 | var webComponentsSupported = ( |
|
|||
83 | 'registerElement' in document |
|
|||
84 | && 'import' in document.createElement('link') |
|
|||
85 | && 'content' in document.createElement('template') |
|
|||
86 | ); |
|
|||
87 | if (!webComponentsSupported) { |
|
|||
88 | } else { |
|
|||
89 | onload(); |
|
|||
90 | } |
|
|||
91 | })(); |
|
|||
92 | </script> |
|
|||
93 |
|
66 | |||
94 | <script src="${h.asset('js/rhodecode/i18n/%s.js' % c.language, ver=c.rhodecode_version_hash)}"></script> |
|
67 | <script src="${h.asset('js/rhodecode/i18n/%s.js' % c.language, ver=c.rhodecode_version_hash)}"></script> | |
95 | <script type="text/javascript"> |
|
68 | <script type="text/javascript"> |
General Comments 0
You need to be logged in to leave comments.
Login now