Skip to content

Commit 0ef6bc9

Browse files
committed
initial commit
0 parents  commit 0ef6bc9

Some content is hidden

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

68 files changed

+5989
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
[*]
3+
indent_style = space
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
charset = utf-8
8+
9+
[*.{build,css,doap,scss,ui,xml,xml.in,xml.in.in,yaml,yml}]
10+
indent_size = 2
11+
12+
[*.{json,py,rs}]
13+
indent_size = 4
14+
15+
[*.{c,h,h.in}]
16+
indent_size = 2
17+
max_line_length = 80
18+
19+
[NEWS]
20+
indent_size = 2
21+
max_line_length = 72

.github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: vhdirk
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: ['https://www.buymeacoffee.com/edfloreshz', 'https://www.paypal.com/paypalme/edfloreshz', 'https://donate.stripe.com/fZe9B24JU7Xa8AUdQQ']

.github/ISSUE_TEMPLATE/bug_report.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the feature you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Additional context**
14+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
push:
3+
branches: [main, next]
4+
pull_request:
5+
branches: [main, next]
6+
7+
name: CI
8+
9+
jobs:
10+
rustfmt:
11+
name: Rustfmt
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
profile: minimal
18+
toolchain: stable
19+
override: true
20+
components: rustfmt
21+
- name: Create blank versions of configured file
22+
run: echo -e "" >> src/config.rs
23+
- name: Run cargo fmt
24+
run: cargo fmt --all -- --check
25+
26+
flatpak:
27+
name: Flatpak
28+
runs-on: ubuntu-latest
29+
container:
30+
image: bilelmoussaoui/flatpak-github-actions:gnome-44
31+
options: --privileged
32+
steps:
33+
- uses: actions/checkout@v3
34+
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
35+
with:
36+
bundle: my-terms.flatpak
37+
manifest-path: build-aux/com.github.vhdirk.MyTerms.Devel.json
38+
run-tests: true
39+
cache-key: flatpak-builder-${{ github.sha }}

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/target/
2+
/build/
3+
/_build/
4+
/builddir/
5+
/build-aux/app
6+
/build-aux/.flatpak-builder/
7+
/src/config.rs
8+
*.ui.in~
9+
*.ui~
10+
/.flatpak/
11+
/vendor
12+
/.vscode
13+
.flatpak-builder/

.gitlab-ci.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
stages:
2+
- check
3+
- test
4+
5+
flatpak:
6+
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-43'
7+
stage: test
8+
tags:
9+
- flatpak
10+
variables:
11+
BUNDLE: "terms-nightly.flatpak"
12+
MANIFEST_PATH: "build-aux/com.github.vhdirk.Terms.Devel.json"
13+
FLATPAK_MODULE: "terms"
14+
APP_ID: "com.github.vhdirk.Terms.Devel"
15+
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
16+
script:
17+
- flatpak install --user --noninteractive org.freedesktop.Sdk.Extension.llvm15//22.08
18+
- >
19+
xvfb-run -a -s "-screen 0 1024x768x24"
20+
flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
21+
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
22+
artifacts:
23+
name: 'Flatpak artifacts'
24+
expose_as: 'Get Flatpak bundle here'
25+
when: 'always'
26+
paths:
27+
- "${BUNDLE}"
28+
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt'
29+
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt'
30+
expire_in: 14 days
31+
32+
# Configure and run rustfmt
33+
# Exits and builds fails if on bad format
34+
rustfmt:
35+
image: "rust:slim"
36+
script:
37+
- rustup component add rustfmt
38+
# Create blank versions of our configured files
39+
# so rustfmt does not yell about non-existent files or completely empty files
40+
- echo -e "" >> src/config.rs
41+
- rustc -Vv && cargo -Vv
42+
- cargo fmt --version
43+
- cargo fmt --all -- --color=always --check

0 commit comments

Comments
 (0)