Skip to content

Commit a5dbe3b

Browse files
authored
Merge pull request #70 from Mc-Auth-com/typescript-recode
Mc-Auth.com has been fully recoded in TypeScript. Still needs some polishing - You can find a full list inside README.md
2 parents dcdac44 + 17af838 commit a5dbe3b

File tree

109 files changed

+6141
-3190
lines changed

Some content is hidden

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

109 files changed

+6141
-3190
lines changed
Lines changed: 27 additions & 0 deletions
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 the bug.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to ...
16+
2. Click on ....
17+
3. ...
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Screenshots, Videos, Logs or Errors**
23+
If applicable, add screenshots to help explain your problem.
24+
If possible, try uploading images or large logs as an attachment instead of somewhere else to ensure it's availability.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is.
12+
Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
A clear and concise description of what you want to happen.
16+
17+
**Describe alternatives you've considered**
18+
A clear and concise description of any alternative solutions or features you've considered.
19+
20+
**Additional context**
21+
Add any other context or screenshots about the feature request here.

.github/workflows/nodejs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: TypeScript Compile
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [10.x] # Oldest 'Active' version: https://nodejs.org/en/about/releases/
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js v${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: 'Cache: npm-node_modules'
27+
uses: actions/cache@v1
28+
with:
29+
path: ./node_modules/
30+
key: ${{ runner.os }}-npm-${{ hashFiles('./package-lock.json') }}
31+
- run: npm i
32+
- run: npm run build
33+
#- run: npm test
34+
env:
35+
CI: true

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
node_modules/
2-
storage/
3-
logs/
1+
/build/
2+
/logs/
3+
/node_modules/
4+
/storage/

.static/script-login.js

Lines changed: 0 additions & 105 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at developer@sprax2013.de. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contributing to Mc-Auth-Web
2+
We love your input!
3+
We want to make contributing to this project as easy and transparent as possible, whether it's:
4+
5+
* Reporting a bug
6+
* Discussing the current state of the code
7+
* Submitting a fix
8+
* Proposing new features
9+
10+
## We Develop with GitHub
11+
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
12+
13+
## We Use [GitHub Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
14+
Pull requests are the best way to propose changes to the codebase (we use [GitHub Flow](https://guides.github.com/introduction/flow/index.html)).
15+
We actively welcome your pull requests:
16+
17+
1. Fork the repo and create your branch from `master`.
18+
2. If you've added code that should be tested, add tests.
19+
3. If you've changed APIs, update the documentation.
20+
5. Ensure the test suite passes.
21+
6. Issue that pull request!
22+
23+
## Any contributions you make will be under the MIT Software License
24+
In short, when you submit code changes, your submissions are understood to be under the same
25+
[MIT License](https://choosealicense.com/licenses/mit/) that covers the project.
26+
Feel free to contact the maintainers if that's a concern.
27+
28+
## Report bugs using GitHub's [issues](https://github.com/Mc-Auth-com/Mc-Auth-Web/issues)
29+
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/Mc-Auth-com/Mc-Auth-Web/issues/new) – it's that easy!
30+
31+
## Write bug reports with detail, background, and sample code
32+
Make sure to provide all the relevant information needed to reproduce the bug you are reporting. You can upload logs, images or videos if needed.
33+
34+
**Great Bug Reports** tend to have:
35+
36+
* A quick summary and/or background
37+
* Steps to reproduce
38+
* Be specific!
39+
* Give sample code if you can – Try to make it as universal as possible, so is quickly understood.
40+
* What you expected would happen
41+
* What actually happens
42+
* Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
43+
44+
People *love* thorough bug reports. I'm not even kidding.
45+
46+
## Use a Consistent Coding Style
47+
* 2 spaces for indentation rather than tabs
48+
* Use `const` or `let` rather than `var`
49+
50+
## License
51+
By contributing, you agree that your contributions will be licensed under its [MIT License](./LICENSE.md).
52+
53+
## Enforcement
54+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at developer@sprax2013.de.
55+
All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.
56+
The project team is obligated to maintain confidentiality with regard to the reporter of an incident.
57+
Further details of specific enforcement policies may be posted separately.
58+
59+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined
60+
by other members of the project's leadership.
61+
62+
## References
63+
This document was adapted from [briandk](https://gist.github.com/briandk/3d2e8b3ec8daf5a27a62), who originally adapted it from Facebook's Draft.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Mc-Auth.com
3+
Copyright (c) 2019 Christian Koop
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)