Conversation
the element spawns a button that opens the donation dialog
|
@diracs-delta The build failed :( |
|
hm. the offending code segment seems to be the script in For some reason, it looks like TS is recognizing |
|
I think I remember this happening elsewhere. Let me find other uses of |
|
@diracs-delta This should fix it. Quasar is currently working on better TS support |
|
pushing another commit right now. think this will fix it, since the build completes on my end. |
|
i believe it's bad practice to cast types as https://v3.vuejs.org/guide/typescript-support.html#using-with-options-api which talks about how the TS compiler has difficulty inferring types in the Vue framework. Explicitly specifying them with an interface seems to help. |
|
huzzah. all checks passed. 👍 finally i can get some lunch |
This is excellent. We should refactor all instances of this anti-pattern to use interfaces :) |
ArsalaBangash
left a comment
There was a problem hiding this comment.
Maybe we should consider using a dropdown button instead: https://quasar.dev/vue-components/button-dropdown
What do you thinK?
| <div class="column items-center"> | ||
| <q-btn | ||
| class="q-pa-xs q-ma-sm" | ||
| icon="img:../statics/icons/paypal-28x28.png" |
There was a problem hiding this comment.
Please use the mdi-paypal icon
There was a problem hiding this comment.
uh... there isn't a native mdi-paypal icon that ships with quasar. the only mention of one i could find is here
https://themesdesign.in/xoric/layouts/blue/vertical/icons-materialdesign.html
but this isn't the mdi icon set quasar ships with.
There was a problem hiding this comment.
The website's new navbar has a paypal icon! https://github.com/grey-software/grey.software/blob/master/assets/icons/paypal.svg
@ArsalaBangash I don't know. I think it's a unique solution that achieves more sleek UI, but the downside is that there's no cute message thanking supporters who click and consider donating. I would leave it as it is right now, but it's your call. |
I agree with you about the messaging. Let's add the following: This app was developed by Grey Software, a a not-for-profit organization that empowers students to build open-source software for their communities and societies. You can support us as we envision and build the software ecosystem of the future by sponsoring us on GitHub backing us on OpenCollective, or making a donation via PayPal. |
There was a problem hiding this comment.
Solid Iteration!
Great work. I have a couple suggestions:
-
Since we're using a q-card component, we could consider using the card action UI pattern for our donate buttons: https://quasar.dev/vue-components/card#With-actions
-
I think it would be good for the org to use a standard set of resources, so I suggest using the icons from the website: https://github.com/grey-software/grey.software/tree/master/assets/icons
added. this is the current layout:
we'll do that and use the SVG icons later once #83 is merged, so we can use |



Description
This PR adds a donation dialog, with separate PayPal, OC, and GH donation icons & buttons. I've also had to put the 28x28 minified icons in the src/statics directory, since I couldn't find any free CDN distributing these icons.
I also got rid of the old HTML/CSS, and switched to using the default QBtn template provided by Quasar. It looks a lot cleaner than the nested
<a><button></button></a>old HTML. Example:Showcase