Show More
The requested changes are too big and content was truncated. Show full diff
@@ -3,15 +3,15 b'' | |||
|
3 | 3 | "description": "User interface for elements for rhodecode", |
|
4 | 4 | "main": "index.html", |
|
5 | 5 | "dependencies": { |
|
6 |
"webcomponentsjs": "^ |
|
|
7 |
"polymer": "Polymer/polymer#^ |
|
|
8 |
"paper-button": "PolymerElements/paper-button#^ |
|
|
9 |
"paper-spinner": "PolymerElements/paper-spinner#^ |
|
|
10 |
"paper-tooltip": "PolymerElements/paper-tooltip#^1.1 |
|
|
11 |
"paper-toast": "PolymerElements/paper-toast#^ |
|
|
12 |
"paper-toggle-button": "PolymerElements/paper-toggle-button#^ |
|
|
13 |
"iron-ajax": "PolymerElements/iron-ajax#^ |
|
|
14 |
"iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^ |
|
|
15 |
"iron-a11y-keys": "PolymerElements/iron-a11y-keys#^ |
|
|
6 | "webcomponentsjs": "^1.2.3", | |
|
7 | "polymer": "Polymer/polymer#^2.6.0", | |
|
8 | "paper-button": "PolymerElements/paper-button#^2.1.2", | |
|
9 | "paper-spinner": "PolymerElements/paper-spinner#^2.1.0", | |
|
10 | "paper-tooltip": "PolymerElements/paper-tooltip#^2.1.1", | |
|
11 | "paper-toast": "PolymerElements/paper-toast#^2.1.2", | |
|
12 | "paper-toggle-button": "PolymerElements/paper-toggle-button#^2.1.1", | |
|
13 | "iron-ajax": "PolymerElements/iron-ajax#^2.1.3", | |
|
14 | "iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^2.2.0", | |
|
15 | "iron-a11y-keys": "PolymerElements/iron-a11y-keys#^2.1.2" | |
|
16 | 16 | } |
|
17 | 17 | } |
@@ -15,8 +15,8 b'' | |||
|
15 | 15 | "grunt-contrib-jshint": "^0.12.0", |
|
16 | 16 | "grunt-contrib-less": "^1.1.0", |
|
17 | 17 | "grunt-contrib-watch": "^0.6.1", |
|
18 |
"crisper": "^2. |
|
|
19 |
"vulcanize": "^1.1 |
|
|
18 | "crisper": "^2.1.1", | |
|
19 | "vulcanize": "^1.16.0", | |
|
20 | 20 | "grunt-crisper": "^1.0.1", |
|
21 | 21 | "grunt-vulcanize": "^1.0.0", |
|
22 | 22 | "node2nix": "^1.0.0", |
@@ -33,7 +33,7 b' var rhodeCodeApp = Polymer({' | |||
|
33 | 33 | }, |
|
34 | 34 | |
|
35 | 35 | faviconUpdate: function (data) { |
|
36 |
this. |
|
|
36 | this.shadowRoot.querySelector('rhodecode-favicon').counter = data.count; | |
|
37 | 37 | }, |
|
38 | 38 | |
|
39 | 39 | /** opens connection to ws server */ |
@@ -1,5 +1,4 b'' | |||
|
1 | 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 | 2 | <link rel="import" href="../../../../../../bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html"> |
|
4 | 3 | <link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html"> |
|
5 | 4 | <dom-module id="rhodecode-toast"> |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <dom-module id="rhodecode-unsafe-html"> |
|
4 | 4 | <template> |
|
5 | 5 | <style include="shared-styles"></style> |
|
6 |
< |
|
|
6 | <slot></slot> | |
|
7 | 7 | </template> |
|
8 | 8 | <script src="rhodecode-unsafe-html.js"></script> |
|
9 | 9 | </dom-module> |
|
1 | 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 | 3 | <iron-ajax id="toggleNotifications" |
|
3 | 4 | method="post" |
|
4 | 5 | url="${h.route_path('my_account_notifications_toggle_visibility')}" |
@@ -60,6 +61,10 b'' | |||
|
60 | 61 | |
|
61 | 62 | </div> |
|
62 | 63 | |
|
64 | ||
|
65 | </template> | |
|
66 | </dom-bind> | |
|
67 | ||
|
63 | 68 | <script type="text/javascript"> |
|
64 | 69 | /** because im not creating a custom element for this page |
|
65 | 70 | * we need to push the function onto the dom-template |
@@ -81,7 +86,7 b'' | |||
|
81 | 86 | var levels = ['info', 'error', 'warning', 'success']; |
|
82 | 87 | var level = levels[Math.floor(Math.random()*levels.length)]; |
|
83 | 88 | function getRandomArbitrary(min, max) { |
|
84 | return parseInt(Math.random() * (max - min) + min); | |
|
89 | return parseInt(Math.random() * (max - min) + min); | |
|
85 | 90 | } |
|
86 | 91 | function shuffle(a) { |
|
87 | 92 | var j, x, i; |
@@ -126,5 +131,3 b'' | |||
|
126 | 131 | }; |
|
127 | 132 | |
|
128 | 133 | </script> |
|
129 | ||
|
130 | </template> |
@@ -27,7 +27,7 b" c.template_context['default_user'] = {" | |||
|
27 | 27 | %> |
|
28 | 28 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|
29 | 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 | 31 | <link rel="import" href="${h.asset('js/rhodecode-components.html', ver=c.rhodecode_version_hash)}"> |
|
32 | 32 | <title>${self.title()}</title> |
|
33 | 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 | 64 | ## JAVASCRIPT |
|
65 | 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 | 67 | <script src="${h.asset('js/rhodecode/i18n/%s.js' % c.language, ver=c.rhodecode_version_hash)}"></script> |
|
95 | 68 | <script type="text/javascript"> |
General Comments 0
You need to be logged in to leave comments.
Login now