Make redirect_uri verification optional because many IndieAuth clients don't implement it - show a stylish icon to convey whether the client was verified
This commit is contained in:
parent
3c95eeeefb
commit
e5d3af1b51
8 changed files with 63 additions and 9 deletions
|
@ -11,8 +11,15 @@ module.exports = function() {
|
|||
return function(style) {
|
||||
for (let i = 0; i < 16; i++) {
|
||||
const key = 'base0' + i.toString(16).toUpperCase();
|
||||
const hex = theme[key];
|
||||
const colour = new stylus.nodes.RGBA(
|
||||
parseInt(hex.substr(0, 2), 16),
|
||||
parseInt(hex.substr(2, 2), 16),
|
||||
parseInt(hex.substr(4, 2), 16),
|
||||
1
|
||||
);
|
||||
|
||||
style.define('$' + key, new stylus.nodes.Literal('#' + theme[key]));
|
||||
style.define('$' + key, colour);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
1
lemoncurry/static/tippy.js
Symbolic link
1
lemoncurry/static/tippy.js
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/tippy.js/dist
|
|
@ -24,6 +24,7 @@
|
|||
integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous" />
|
||||
{% compress css %}
|
||||
<link rel="stylesheet" type="text/css" href={% static 'openwebicons/css/openwebicons.css' %} />
|
||||
<link rel="stylesheet" type="text/css" href={% static 'tippy.js/tippy.css' %} />
|
||||
<link rel="stylesheet" type="text/stylus" href="{% static 'lemoncurry/css/layout.styl' %}" />
|
||||
{% block styles %}{% endblock %}
|
||||
{% endcompress %}
|
||||
|
@ -64,5 +65,9 @@
|
|||
integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" crossorigin="anonymous"
|
||||
integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ"></script>
|
||||
{% compress js %}
|
||||
<script src="{% static 'tippy.js/tippy.standalone.js' %}"></script>
|
||||
{% block foot %}{% endblock %}
|
||||
{% endcompress %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue