Reusable Status QML components
Go to file
Pascal Precht 21f1c4ce52 feat(StatusMessage): add support for `messageAttachments`
Prior to this commit, a `StatusMessage` can hold only a single
`messageImage`.

There will be scenarios where messages can have multiple attachments.
This is the case when importing messages from discord.
Hence, this commit introduces a new `messageAttachments` property which
is a whitespace separated list of attachment URLs (very analogous to the
already existing `linkUrls` property).

For now, we can safely assume these URLs will resolve to image content.
In future versions however, we might want to support additional content
types to handle any byte stream.
We will then change `messageAttachments` from `string` to a list model
that holds `attachment`s where we also have access to its `contentType`.
This will allow us to decide at runtime which component should be used
to view/play the attachment.
2022-09-09 10:35:30 +02:00
.github chore: add check for dark and light theme to PR template (#597) 2022-03-24 07:03:31 +01:00
doc feat(StatusCard): Create a new reusbale card component (#731) 2022-07-14 00:03:44 +02:00
sandbox feat(StatusListItem): Added new properties to handle inline tags needed in the wallet section (#879) 2022-09-09 00:03:28 +02:00
src feat(StatusMessage): add support for `messageAttachments` 2022-09-09 10:35:30 +02:00
tests fix(tests): fix building tests 2022-08-09 01:07:17 +02:00
vendor bump vendor/SortFilterProxyModel 2022-07-21 15:00:11 +02:00
.gitignore tests(StatusInput): add regression test to check for qml output 2022-03-28 22:52:36 +03:00
.gitmodules chore(git): add vendor/SortFilterProxyModel 2022-07-21 15:00:11 +02:00
CHANGELOG.md chore: cut v0.25.0 release 2022-03-07 19:11:38 +01:00
CMakeLists.txt Fix building x86_64 solution on Mac M1 2022-07-21 15:00:11 +02:00
README.md chore: update README and build script 2022-07-21 15:00:11 +02:00

README.md

StatusQ

An emerging reusable QML UI component library for Status applications.

Usage

StatusQ introduces a module namespace that semantically groups components so they can be easily imported. These modules are:

Provided components can be viewed and tested in the sandbox application that comes with this repository. Other than that, modules and components can be used as expected.

Example:

import Status.Core 0.1
import Status.Controls 0.1

StatusInput {
  ...
}

Viewing and testing components

To make viewing and testing components easy, we've added a sandbox application to this repository in which StatusQ components are being build. This is the first place where components see the light of the world and can be run in a proper application environment.

Using Qt Creator

The easiest way to run the sandbox application is to simply open the provided CMakeLists.txt file using Qt Creator.

Using command line interface

To run the sandbox from within a command line interface, run the following commands:

$ git clone https://github.com/status-im/StatusQ
$ cd StatusQ
$ git submodule update --init
$ ./sandbox/scripts/build

Once that is done, the sandbox can be started with the generated executable:

$ ./build/sandbox/Sandbox