-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summary of essential components #9
Comments
Suggestion: |
In this context we should think about a refresh/reload mechanism that might be used by some apps (e.g. load new messages in Mail, pull in synced contacts in Contacts). |
ContentList: https://github.com/nextcloud/contacts/blob/6713a73479c9cb054034e3466ffa2167a9f74055/src/components/ContentList.vue Needs to be adapted for more standardised variables name (no contacts), but works fine :) |
I would add a date and a time picker to get rid of using jQuery with vue. |
This comment has been minimized.
This comment has been minimized.
|
@georgehrke the idea is to support the same features as the designer guide :) |
This comment has been minimized.
This comment has been minimized.
Any good datepicker? :) |
An autocomplete component would be highly appreciated :) |
@georgehrke with dropdown? |
What about vuetify? OK, it could start a new discussion about using material design, but it has many useful components. |
@dartcafe the idea is not to port other components into nextcloud. Let's keep our simplified and unified design. :) |
Date-time picker? https://mengxiong10.github.io/vue2-datepicker/demo/index.html Material: https://github.com/mariomka/vue-datetime |
There should also be components for list elements, and grid view elements, right? We already use the list view in lots of places. And the grid view is being experimented with in Bookmarks: http://github.com/nextcloud/bookmarks/ and Files: nextcloud/server#11050 |
And let’s make sure that these components use HTML standard elements as much as possible. Buttons/links instead of divs etc – so we get a lot of the accessibility parts for free. |
@jancborchardt I'm not sure. The idea is small individuals components that are simple and reusable everywhere. Big lists or stuff like that can be standardised for the html/css but will be far too complicated for a vue component. |
Hm – I would say it’s very comparable to the ContentList component though? https://docs.nextcloud.com/server/14/developer_manual/design/list.html And of course "grid view" is a bit of a big part. But a component would be a "tiled element", or "preview component with a title component below and action menu right next to it". |
Content list is very simple, you have like 5 différents options, tops. Remember, that for those components, you cannot edit the inner data or structure. You just give it an object ant vue does the rest. This exclude all custom ideas you might want to add into your app or other complex methods. And as a developer, I really like the idea of having small snippets/components to speed up the development of my app, but I would totally hate having an entire structured component preventing me from doing whatever I want to do. |
But small stuff like that, yes definitely 😬 👍 💯 |
Did we mention a sharing component? |
Sidebar with SidebarTab would be nice too. |
Ok 👍 |
@splitt3r though, we have a pending discussion to standardise the sidebar ;) |
Also, we can just have separate tickets for these kinds of components that would be nice to have, but are not essential right now? I mean we're happy for all feedback and I'm sure the number of components will grow over time, so there's nothing wrong with proposing (exotic) ones right now 😉 |
@ChristophWurst Yes! If the component is not something that is used by almost all of the apps, then please create a new issue :) |
I think we could still provide a basic tab component with slots for the content. So devs at least don't need to mess with the tab switching for example. |
@juliushaertl yes for the tabs, seems simple enough :) |
About some external components, like the date-time picker for example : https://github.com/mengxiong10/vue2-datepicker How should we handle theming? |
👍 on that. Let's try to reuse as much as possible without forking/duplicating. |
@skjnldsv the datepicker look different from the one in core, like top bar arrows are different, week day names are too present? The design should at least start out with the way it currently is. 🙂 |
@jancborchardt I used most of the design we had on the one we added on server, but there was a lot of part missing (year pick, month pick)! |
Closing now, most of them have their own issue or already exists :) |
This is just a collection of what might be a good starting point for components.
@skjnldsv @ChristophWurst
The text was updated successfully, but these errors were encountered: