Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit a3a65bb

Browse files
authored
Merge pull request #3 from andrey18106/dev
Merge dev into main. MediaDC v0.1.0
2 parents 6e1a059 + 3198ec4 commit a3a65bb

File tree

141 files changed

+33574
-21765
lines changed

Some content is hidden

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

141 files changed

+33574
-21765
lines changed

.github/CONTRIBUTING.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Submitting issues
2+
3+
### Short version
4+
5+
* The [**issue template can be found here**][template] but be aware of the different repositories! See list below. Please always use the issue template when reporting issues.
6+
7+
### Guidelines
8+
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
9+
- Go to one of the repositories, click "issues" and type any word in the top search/command bar.
10+
- You can also filter by appending e. g. "state:open" to the search string.
11+
- More info on [search syntax within github](https://help.github.com/articles/searching-issues)
12+
* Report the issue using our [template][template], it includes all the informations we need to track down the issue.
13+
14+
If your issue appears to be a bug, and hasn't been reported, open a new issue.
15+
16+
Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues.
17+
18+
[template]: https://raw.github.com/andrey18106/main/.github/issue_template.md
19+
20+
## Contributing to Source Code
21+
22+
Thanks for wanting to contribute source code to the Mail app. That's great!
23+
24+
## Translations
25+
During the beta version testing we don't support translations.

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: mediadc
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+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
| Name | About |
2+
| ---- | -------------------------------------------------- |
3+
| Bug | Have you encountered a bug or unexpected behaviour |
4+
5+
**Describe the bug**
6+
A clear and concise description of what the bug is.
7+
8+
**To Reproduce**
9+
Steps to reproduce the behavior:
10+
1. Go to '...'
11+
2. Click on '....'
12+
3. Scroll down to '....'
13+
4. See error
14+
15+
**Expected behavior**
16+
A clear and concise description of what you expected to happen.
17+
18+
**Screenshots**
19+
If applicable, add screenshots to help explain your problem.
20+
21+
**Desktop (please complete the following information):**
22+
- OS: [e.g. iOS]
23+
- Browser [e.g. chrome, safari]
24+
- Nextcloud version [e.g. 22]
25+
- MediaDC version [e.g. 0.1.0]
26+
27+
**Smartphone (please complete the following information):**
28+
- Device: [e.g. iPhone6]
29+
- OS: [e.g. iOS8.1]
30+
- Browser [e.g. stock browser, safari]
31+
- Nextcloud version [e.g. 22]
32+
- MediaDC version [e.g. 0.1.0]
33+
34+
**Additional context**
35+
Add any other context about the problem here.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Name | About |
2+
| -------------------- | -------------------------------------------------- |
3+
| Documentation Issue | Typo fix or additions to our Wiki |
4+
5+
The MediaDC Wiki is open to anyone to edit. If you find something inaccurate,
6+
missing or that can be improved, please feel free to contribute to it.
7+
8+
https://github.com/andrey18106/mediadc/wiki
9+
10+
Thank you!

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Name | About |
2+
| --------------- | --------------------------------------- |
3+
| Feature Request | Ideas for new features and improvements |
4+
5+
**Description**
6+
A clear and concise description of the new feature.
7+
8+
**Example**
9+
A simple example of the new feature in action (include PHP code, YAML config, etc.)
10+
If the new feature changes an existing feature, include a simple before/after comparison.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
| Name | About |
2+
| ----------------- | -------------------------------------------- |
3+
| Support Question | Do NOT ask here - Use the forum |
4+
5+
Thanks for reporting issues back to MediaDC!
6+
7+
# DO NOT ASK QUESTIONS, USE THE FORUMS
8+
9+
We use GitHub issues only to discuss about MediaDC bugs and new features.
10+
11+
MediaDC and its extras are explained in the [wiki](https://github.com/andrey18106/mediadc/wiki).
12+
13+
For any other question or comment, please use the official Telegram support [chat](https://t.me/mediadc_support).
14+
15+
Note that quite probably your question has an answer in the [FAQ](https://github.com/andrey18106/mediadc/wiki/FAQ).
16+
17+
Thank you!

.github/ISSUE_TEMPLATE/security.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
| Name | About |
2+
| --------------- | -------------------------------------------- |
3+
| Security Issue | Important security issue or bug |
4+
5+
⚠ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.
6+
7+
If you have found a security issue in MediaDC, please type to one of administrators
8+
in our official Telegram support [chat](https://t.me/mediadc_support)
9+
and don't disclose it publicly until we can provide a fix for it.
10+
11+
Thank you!

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
types: [closed]
7+
tags:
8+
- v*
9+
release:
10+
types: [created]
11+
workflow_dispatch:
12+
13+
env:
14+
APP_NAME: mediadc
15+
16+
jobs:
17+
build_and_publish:
18+
runs-on: ubuntu-latest
19+
name: Build and package app
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: 14.x
29+
30+
- name: Build
31+
run: make
32+
33+
- name: Install Krankerl
34+
run: |
35+
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.13.0/krankerl_0.13.0_amd64.deb
36+
sudo dpkg -i krankerl_0.13.0_amd64.deb
37+
38+
- name: Package app
39+
run: krankerl package
40+
41+
- uses: actions/upload-artifact@v2
42+
with:
43+
name: tarball
44+
path: build/artifacts/${{ env.APP_NAME }}.tar.gz
45+
if-no-files-found: error
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
name: Static analysis
2+
3+
on:
4+
pull_request:
5+
branches: [main, test, dev]
6+
types: [closed]
7+
push:
8+
branches: [dev]
9+
workflow_dispatch:
10+
11+
jobs:
12+
changes:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
php_src: ${{ steps.filter.outputs.php_src }}
16+
js_src: ${{ steps.filter.outputs.js_src }}
17+
py_src: ${{ steps.filter.outputs.py_src }}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: dorny/paths-filter@v2
21+
id: filter
22+
with:
23+
base: ${{ github.ref }}
24+
filters: |
25+
php_src:
26+
- '**/*.php'
27+
js_src:
28+
- '*.js'
29+
- '**/*.js'
30+
py_src:
31+
- 'lib/Service/python/**'
32+
- 'lib/Service/python/*.py'
33+
34+
linters-php:
35+
needs: changes
36+
if: ${{ needs.changes.outputs.php_src == 'true' || github.event_name == 'workflow_dispatch' }}
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
php-versions: [7.4, 8.0]
41+
steps:
42+
- uses: actions/checkout@v2
43+
44+
- name: Setup php${{ matrix.php-versions }}
45+
uses: shivammathur/setup-php@master
46+
with:
47+
php-version: ${{ matrix.php-versions }}
48+
tools: composer:v2
49+
coverage: none
50+
51+
- name: PHP Lint
52+
run: composer run lint
53+
54+
linters-js:
55+
needs: changes
56+
if: ${{ needs.changes.outputs.js_src == 'true' || github.event_name == 'workflow_dispatch' }}
57+
runs-on: ubuntu-latest
58+
name: ESLint
59+
steps:
60+
- uses: actions/checkout@v2
61+
62+
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#installed-software
63+
# do we need this step? this is already installed in github's ubuntu...
64+
# - name: Setup Node
65+
# uses: actions/[email protected]
66+
# with:
67+
# node-version: 14.x
68+
69+
- name: Install dependencies
70+
run: npm ci
71+
72+
- name: ESLint
73+
run: npm run lint
74+
75+
linters-python:
76+
needs: changes
77+
if: ${{ needs.changes.outputs.py_src == 'true' || github.event_name == 'workflow_dispatch' }}
78+
runs-on: ubuntu-latest
79+
name: PyLint
80+
steps:
81+
- uses: actions/checkout@v2
82+
83+
- name: pylint installation
84+
run: |
85+
python -m pip install --upgrade pip
86+
pip install pylint
87+
88+
- name: pylint analysis
89+
run: |
90+
pylint --rcfile .pylintrc lib/Service/python/*
91+
92+
security-analysis:
93+
needs: [changes, linters-php]
94+
if: ${{ needs.changes.outputs.php_src == 'true' || github.event_name == 'workflow_dispatch' }}
95+
runs-on: ubuntu-latest
96+
name: Security analysis
97+
steps:
98+
- uses: actions/checkout@v2
99+
with:
100+
submodules: recursive
101+
102+
- name: Psalm
103+
uses: docker://vimeo/psalm-github-actions:4.9.3
104+
with:
105+
security_analysis: true
106+
composer_ignore_platform_reqs: false
107+
report_file: results.sarif
108+
109+
- name: Upload Security Analysis results to GitHub
110+
uses: github/codeql-action/upload-sarif@v1
111+
with:
112+
sarif_file: results.sarif
113+
114+
psalm-analysis:
115+
needs: [changes, linters-php]
116+
if: ${{ needs.changes.outputs.php_src == 'true' || github.event_name == 'workflow_dispatch' }}
117+
runs-on: ubuntu-latest
118+
strategy:
119+
matrix:
120+
ocp-version: [ 'dev-master', 'dev-stable21', 'dev-stable22' ]
121+
name: Psalm statis-analysis
122+
steps:
123+
- uses: actions/checkout@v2
124+
125+
- name: Set up php
126+
uses: shivammathur/setup-php@master
127+
with:
128+
php-version: 7.4
129+
tools: composer:v2
130+
coverage: none
131+
132+
- name: Install dependencies
133+
run: composer i
134+
135+
- name: Install dependencies
136+
run: composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }}
137+
138+
- name: Run coding standards check
139+
run: composer run psalm
140+
141+
npm-audit:
142+
needs: [changes, linters-js]
143+
if: ${{ needs.changes.outputs.js_src == 'true' || github.event_name == 'workflow_dispatch' }}
144+
runs-on: ubuntu-latest
145+
name: npm-audit
146+
steps:
147+
- uses: actions/checkout@v2
148+
149+
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#installed-software
150+
# do we need this step? this is already installed in github's ubuntu...
151+
# - name: Setup Node
152+
# uses: actions/[email protected]
153+
# with:
154+
# node-version: 14.x
155+
156+
- name: Audit
157+
run: npm audit

0 commit comments

Comments
 (0)