Skip to content

Commit d0631eb

Browse files
v0.1.3 released
* Go to unlock gradient and pattern * Structural changes * Codecov and other changes * Test workflow * v0.1.3
1 parent ebfd98a commit d0631eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1441
-755
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ It would be nice to have screenshot or result image uploaded
1515
Some minimal reproduce code is highly recommended
1616

1717
**Version Information**
18-
Please give us what version you are using. If you are pulling `Plotters` directly from git repo, please mention this as well
18+
Please give us what version you are using. If you are pulling `UX Primitives` directly from git repo, please mention this as well

.github/ISSUE_TEMPLATE/feature_request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Feature request
3-
about: Suggest an idea to Plotter maintainers
3+
about: Suggest an idea to UX Primitives maintainers
44
title: "[Feature Request]"
55
labels: feature request
66
assignees: ''

.github/codecov.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
comment:
2+
layout: "diff, flags, files"
3+
require_changes: true
4+
5+
coverage:
6+
status:
7+
project:
8+
default:
9+
informational: true

.github/workflows/audit.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Security audit
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: '0 0 * * 0'
9+
10+
jobs:
11+
security_audit:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions-rs/audit-check@v1
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/coverage.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Coverage
2+
3+
#on:
4+
# push:
5+
# branches:
6+
# - main
7+
# pull_request:
8+
9+
on: [push, pull_request]
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
RUST_BACKTRACE: full
14+
15+
jobs:
16+
coverage:
17+
name: Coverage
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Install Rust
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: nightly
27+
profile: minimal
28+
default: true
29+
30+
- name: Restore cache
31+
uses: Swatinem/rust-cache@v1
32+
33+
- name: Run cargo-tarpaulin
34+
uses: actions-rs/tarpaulin@v0.1
35+
with:
36+
args: '--all-features --run-types Doctests,Tests'
37+
timeout: 120
38+
39+
- name: Upload to codecov.io
40+
uses: codecov/codecov-action@239febf655bba88b16ff5dea1d3135ea8663a1f9
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
44+
- name: Archive code coverage results
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: code-coverage-report
48+
path: cobertura.xml
49+
retention-days: 30

.github/workflows/tests.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: cargo build --verbose
14+
- name: Run tests
15+
run: cargo test --verbose
16+
17+
clippy_check:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v1
23+
- run: rustup component add clippy
24+
- uses: actions-rs/clippy-check@v1
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
args: --all-features

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Changelog
2+
3+
## Package vX.X.X (YYYY-MM-DD)
4+
5+
### Improved
6+
7+
- A here your changes
8+
9+
### Added
10+
11+
- A here your changes
12+
13+
### Fixed
14+
15+
- A here your changes
16+
17+
### Improvement
18+
19+
- A here your changes
20+
21+
### Removed
22+
23+
- A here your changes

CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ available for creating polished solutions for your application's target users.
1313

1414
## How to Contribute
1515

16+
We believe the wider community can create better code. The first tool for improving the community is to tell the developers about the project by giving it a star. More stars - more members.
17+
18+
[![](https://dudochkin-victor.github.io/assets/star-me-wide.svg)](https://github.com/angular-rust/ux-primitives)
19+
1620
### Join the Community
1721

1822
The first step to improving Angular Rust is to join the community and help grow it! You can find the community on:
@@ -23,10 +27,6 @@ The first step to improving Angular Rust is to join the community and help grow
2327
[![](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@angular.rust)
2428
[![](https://img.shields.io/gitter/room/angular_rust/angular_rust?style=for-the-badge)](https://gitter.im/angular_rust/community)
2529

26-
We believe the wider community can create better code. The first tool for improving the community is to tell the developers about the project by giving it a star. More stars - more members.
27-
28-
![Star a repo](https://dudochkin-victor.github.io/assets/star-me-wide.svg)
29-
3030
Once you've joined, there are many ways to contribute to Angular Rust:
3131

3232
* Report bugs (via GitHub)

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ux-primitives"
3-
version = "0.1.1"
4-
authors = ["Victor Dudochkin <dudochkin.victor@gmail.com>", "Maksim Makarov <pr0n1x@yandex.ru>"]
3+
version = "0.1.3"
4+
authors = ["Victor Dudochkin <dudochkin.victor@gmail.com>"]
55
readme = "README.md"
66
homepage = "https://angular-rust.github.io/ux-primitives"
77
repository = "https://github.com/angular-rust/ux-primitives"
@@ -31,6 +31,7 @@ lyon_geom = { version = "0.17", optional = true }
3131
lyon_path = { version = "0.17", optional = true }
3232
euclid = { version = "0.22", optional = true }
3333
lazy_static = "1.4.0"
34+
bytes = "1.0"
3435

3536
[dev-dependencies]
3637
libmath = "0.2.1"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
test: export RUST_BACKTRACE = 0
33
test:
4-
cargo test --features "color_from_css color_quantization experimental"
4+
cargo test --all-features

README.md

+19-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<div align="center">
22

3-
![Star a repo](https://dudochkin-victor.github.io/assets/ux-primitives/logo.svg)
3+
[![](https://dudochkin-victor.github.io/assets/ux-primitives/logo-wide.svg)](#top)
44
# UX Primitives
55

66
[![API Docs][docrs-badge]][docrs-url]
77
[![Crates.io][crates-badge]][crates-url]
8+
[![Code coverage][codecov-badge]][codecov-url]
9+
[![Tests][tests-badge]][tests-url]
810
[![MPL-2.0 licensed][license-badge]][license-url]
911
[![Gitter chat][gitter-badge]][gitter-url]
10-
[![Rustc Version 1.45+][rust-badge]][rust-url]
1112
[![loc][loc-badge]][loc-url]
1213
</div>
1314

@@ -17,16 +18,20 @@
1718
[crates-url]: https://crates.io/crates/ux-primitives
1819
[license-badge]: https://img.shields.io/badge/license-MPL--2.0-blue.svg?style=flat-square
1920
[license-url]: https://github.com/angular-rust/ux-primitives/blob/master/LICENSE
20-
[gitter-badge]: https://img.shields.io/gitter/room/angular_rust/angular_rust.svg?style=flat-square
21-
[gitter-url]: https://gitter.im/angular_rust/angular_rust
22-
[rust-badge]: https://img.shields.io/badge/rustc-1.45-lightgrey.svg?style=flat-square
23-
[rust-url]: https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html
24-
[loc-badge]: https://tokei.rs/b1/github/angular-rust/ux-primitives?category=code
25-
[loc-url]: https://github.com/Aaronepower/tokei#badges
21+
[gitter-badge]: https://img.shields.io/gitter/room/angular_rust/community.svg?style=flat-square
22+
[gitter-url]: https://gitter.im/angular_rust/community
23+
[tests-badge]: https://img.shields.io/github/workflow/status/angular-rust/ux-primitives/Tests?label=tests&logo=github&style=flat-square
24+
[tests-url]: https://github.com/angular-rust/ux-primitives/actions/workflows/tests.yml
25+
[codecov-badge]: https://img.shields.io/codecov/c/github/angular-rust/ux-primitives?logo=codecov&style=flat-square&token=RRKF1UAOSR
26+
[codecov-url]: https://codecov.io/gh/angular-rust/ux-primitives
27+
[loc-badge]: https://img.shields.io/tokei/lines/github/angular-rust/ux-primitives?style=flat-square
28+
[loc-url]: https://github.com/angular-rust/ux-primitives
2629

2730
UX Primitives is a core graphic and color abstraction for Angular Rust.
2831

29-
Angular Rust is a high productivity, `platform-agnostic` frontend framework for the [Rust language](https://www.rust-lang.org/). It now supports desktop and web development. Angular Rust currently uses GTK for desktop development and WebAssembly for web development. We are planning to add support for mobile development.
32+
**Angular Rust** is a high productivity, `platform-agnostic` frontend framework for the [Rust language](https://www.rust-lang.org/). It now supports desktop and web development. Angular Rust currently uses GTK for desktop development and WebAssembly for web development. We are planning to add support for mobile development.
33+
34+
![Angular Rust structure](https://dudochkin-victor.github.io/assets/angular-rust/structure.svg)
3035

3136
## Features
3237

@@ -52,7 +57,7 @@ UX Primitives contain powerfull palette for easy of use and more professional lo
5257

5358
## Quick Start
5459

55-
Install Angular Rust:
60+
Install UX Primitives:
5661

5762
cargo add ux-primitives
5863

@@ -74,13 +79,13 @@ Install Angular Rust:
7479

7580
## Contributing
7681

77-
Angular Rust is a community effort and we welcome all kinds of contributions, big or small, from developers of all backgrounds. We want the Angular Rust community to be a fun and friendly place, so please review our [Code of Conduct](CODE_OF_CONDUCT.md) to learn what behavior will not be tolerated.
78-
7982
We believe the wider community can create better code. The first tool for improving the community is to tell the developers about the project by giving it a star. More stars - more members.
8083

81-
![Star a repo](https://dudochkin-victor.github.io/assets/star-me-wide.svg)
84+
[![](https://dudochkin-victor.github.io/assets/star-me-wide.svg)](https://github.com/angular-rust/ux-primitives#top)
85+
86+
Angular Rust is a community effort and we welcome all kinds of contributions, big or small, from developers of all backgrounds. We want the Angular Rust community to be a fun and friendly place, so please review our [Code of Conduct](CODE_OF_CONDUCT.md) to learn what behavior will not be tolerated.
8287

83-
## New to Angular Rust?
88+
### New to Angular Rust?
8489

8590
Start learning about the framework by helping us improve our [documentation](https://angular-rust.github.io/). Pull requests which improve test coverage are also very welcome.
8691

0 commit comments

Comments
 (0)