Niko
5610cde131
Fix crush discard confirmation when Accepted + some UI fixes
2022-03-02 18:57:11 +01:00
Niko
9529520bcd
String refactoring on /app + added discard confirm in pages.meet
2022-03-02 02:11:16 +01:00
Niko
08bc50fcea
Add confirmation on quiz.send and discard actions + Some z-index fixes
2022-03-02 01:17:55 +01:00
Niko
3519aba243
Add disabled state for Quiz when filled + More locales in /app
2022-03-02 00:54:38 +01:00
Niko
f6b03ee4c8
Move html2text to a function in utils.js + Securing html in outbox texts
2022-03-02 00:25:11 +01:00
Niko
73bdac849f
Added function for replying to a Quiz request from any platform
...
* The reply format is just regular HTML (text) which will help the
originating user to choose if we can be it's crush
2022-03-01 23:59:55 +01:00
Niko
f00aa6d9d8
Basic code added for sending quizs.
...
TODO: check quiz is valid, it hasn't been responded yet, and is owned by the actor responding
+ create Note with the response for activitypub + create federation INBOX event for parsing responses
2022-02-28 22:05:18 +01:00
Niko
034963b258
Refactor api.account to api.accounts + Added action.discard to quizs
2022-02-27 13:44:32 +01:00
Niko
8e1f2af662
Create module "api" for various repeated api method calls inside UI
2022-02-27 13:12:26 +01:00
Niko
ccf5954091
Fixed race condition when scroll to 0 intends to happend after page-switch
2022-02-27 12:50:07 +01:00
Niko
b0fefb4690
Support localized menu strings + improved some css for menus
2022-02-26 02:59:04 +01:00
Niko
258f69cc11
Created framework for showing menus easily on top of a button click
2022-02-26 02:41:11 +01:00
Niko
d9420fffca
Fix bug where customCss was filling html + some UX stabilization
2022-02-26 00:45:15 +01:00
Niko
6d85cb134c
Reorganizing code
2022-02-26 00:23:08 +01:00
Niko
9d02511d35
Change javascript: to onclick= on most html
2022-02-26 00:05:26 +01:00
Niko
3252ce5d6f
Wrap window.history.back() into "exit()" to be able to write a custom exit function in modules
2022-02-25 19:24:03 +01:00
Niko
db0297297f
Added css $variable use (like live-sass) + added discard/send buttons in quiz
2022-02-25 18:54:12 +01:00
Niko
4d4cb14a2a
Add cssprops in a css.php module instead of by-JS loaded
2022-02-25 17:32:22 +01:00
Niko
ba0afb813b
Make images in pages.meet full size even if they are smaller
2022-02-25 15:45:03 +01:00
Niko
e99f1bd636
Improve pages.home preloading when loading pages.quiz
2022-02-25 15:34:44 +01:00
Niko
2d501f7575
Support GIFs in pages.meet user profile image
2022-02-25 15:27:33 +01:00
Niko
6bf5ee7fcd
Added a navigation at bottom with "Back" button in fullscreen
...
* Refactor all buttons with "noback" to support custom backgrounds
* Create calcCustomCss function that creates custom background-color hover colors automatically
* Other refactors
2022-02-25 15:25:21 +01:00
Niko
e973da1aa8
Animation framework using JS + Improvements in Quiz UX
2022-02-25 13:27:25 +01:00
Niko
452837cf55
Improved UX + change form of quiz to be global
2022-02-24 10:01:52 +01:00
Niko
76b6787c60
Add app.fullscreen module to handle virtual "fullscreen" of app content
2022-02-24 01:11:39 +01:00
Niko
ac4a4ac715
Added options on Quiz + Improved UX in pages.quiz and other App aspects
2022-02-24 00:59:10 +01:00
Niko
27eefb7da3
Avoid computation of code blocks search in template if no callback
2022-02-23 20:00:14 +01:00
Niko
36151c128c
Support template blocks in app.template, to be used in loops
2022-02-23 19:56:00 +01:00
Niko
c8966e1c8b
Basic quiz.index implementation done. TODO: options using {loop}
2022-02-23 19:28:59 +01:00
Niko
b41812592d
Disable pages.meet actions.maybe when user is already a crush
2022-02-23 17:40:44 +01:00
Niko
29620c3bb1
Created module app.button for controlling button disabled states
2022-02-23 17:29:39 +01:00
Niko
caffafa7fc
Sort API me.quizs by DESC order
2022-02-23 15:56:06 +01:00
Niko
f273506d9d
Added app.preload module to be able to add preload methods for other UI modules
2022-02-23 15:49:54 +01:00
Niko
4e3501ce37
Show up a button to the Quiz related to pages.meet item
2022-02-23 15:32:20 +01:00
Niko
8dc1923219
Include active quizs.id in the /feed/meet API
2022-02-23 14:49:03 +01:00
Niko
791bb1eaf0
Make getQuiz a wrapper for use in other API methods
2022-02-23 14:47:57 +01:00
Niko
0b49d59ee1
UX improvements on pages.home quizs
2022-02-23 14:09:35 +01:00
Niko
d00803e90f
Preload quiz.index template on pages.home quizs loading
2022-02-23 10:49:56 +01:00
Niko
5cff51596e
Change pages.meet.exit() to window.history.back to support browsing history
2022-02-23 10:41:11 +01:00
Niko
06008f5a8f
Preserve last URL hash in /app to make going back easier
2022-02-23 10:34:52 +01:00
Niko
2ae794a92f
Some refactoring + UX improvements + translations
2022-02-23 10:18:47 +01:00
Niko
7ea551fffb
Remove chrome blue highlight and outline + some accessibility improvements
...
* TODO: test more elements in all UI for better accessibility
2022-02-23 09:51:05 +01:00
Niko
c33f833a6b
Added custom emoji in pages.home quizs + improve UX
2022-02-23 09:20:59 +01:00
Niko
2e6b06ed57
Implement pages.quiz for loading and filling a Quiz in /app
...
* Added id= filter in API /me/quizs
* Added animations slide-to-(right|left)
* TODO: develop the quiz.index template
2022-02-22 22:26:13 +01:00
Niko
ae39f3141d
Created new view for pages.home for Quizs
...
* User is now able to view their pending quizs
* Quizs have 2 states: new (not answered) and answered.
Once answered you can't modify or re-upload the quiz.
* Once the crush accepts/rejects the Quiz answer, it will get deleted
2022-02-22 20:08:30 +01:00
Niko
ffc8f14280
Add "account" object in API /me/quizs
2022-02-22 18:12:58 +01:00
Niko
3de7d6b29a
Create API method for getting quizs for me
2022-02-22 17:46:04 +01:00
Niko
c6dd391bbf
Support deletion of quiz when the Note deletion is related
2022-02-22 10:07:39 +01:00
Niko
ab39f741f3
Intercept AP Create.Note and check if contains #fedilovequiz to parse
...
* FediLove Quiz is a standar text-based (parsed) protocol wrapped inside the object "Note"
that can create a Quiz inside FediLove instance so there can be an interaction between non-FediLove
instances and FediLove instances.
* TODO: implement the response from this side, so it goes parsed as a regular response to the original "Note"
but parsed so if the target instance is FediLove, it parses it as a quiz result and can be interpreted on any AP software
2022-02-21 23:54:59 +01:00
Niko
9f587750eb
Added a "app.warn" ns in locales for warning messages instead of all error
2022-02-21 22:27:28 +01:00