-
-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'framework_core/REWRITE'
- Loading branch information
Showing
1,228 changed files
with
94,905 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{diff,md}] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{php,xml,json}] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitmodules export-ignore | ||
.github export-ignore | ||
.travis export-ignore | ||
.travis.yml export-ignore | ||
.editorconfig export-ignore | ||
.styleci.yml export-ignore | ||
|
||
phpunit.xml export-ignore | ||
tests export-ignore | ||
|
||
js/dist/* -diff | ||
js/dist/* linguist-generated | ||
js/dist-typings/* linguist-generated | ||
js/yarn.lock -diff | ||
js/package-lock.json -diff | ||
|
||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: "🐛 Bug Report" | ||
about: "If something isn't working as expected" | ||
|
||
--- | ||
## Bug Report | ||
|
||
**Current Behavior** | ||
A clear and concise description of the behavior. | ||
|
||
**Steps to Reproduce** | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected Behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Environment** | ||
- Flarum version: x.y.z | ||
- Website URL: http://example.com | ||
- Webserver: [e.g. apache, nginx] | ||
- Hosting environment: [e.g. shared, vps] | ||
- PHP version: x.y.z | ||
- Browser: [e.g. chrome 67, safari 11] | ||
|
||
``` | ||
Output of "php flarum info", run this in terminal in your Flarum directory. | ||
``` | ||
|
||
**Possible Solution** | ||
<!--- Only if you have suggestions or a fix for the bug --> | ||
|
||
**Additional Context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: "🚀 Feature Request" | ||
about: "I have a suggestion (and may want to implement it!)" | ||
|
||
--- | ||
|
||
<!-- | ||
IMPORTANT: Feature requests on this GitHub issue tracker are only accepted in case they have been approved by a core developer or contain extensive argumentation and directions for implementation. For all other feature requests, ideas and feedback please post in the Flarum Community: https://discuss.flarum.org/t/feedback. | ||
--> | ||
|
||
## Feature Request | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. eg. I have an issue when [...] | ||
|
||
**Describe the solution you'd like** | ||
A detailed description of your proposed solution. Include: | ||
- How the feature would work/behave | ||
- Any potential drawbacks | ||
- Maybe a screenshot, design, or example code | ||
|
||
**Justify why this feature belongs in Flarum's core, rather than in a third-party extension** | ||
Consider who this change will be useful to – most Flarum forums, or just a few? | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
name: "🙋 Support Question" | ||
about: "If you have a question, please check out our forum or Discord!" | ||
|
||
--- | ||
|
||
We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks! | ||
|
||
* Flarum Community: https://discuss.flarum.org/ | ||
* Discord Chat: https://flarum.org/discord/ | ||
* Twitter: https://twitter.com/Flarum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
daysUntilStale: 90 | ||
daysUntilClose: 30 | ||
|
||
staleLabel: stale | ||
|
||
exemptLabels: | ||
- org/keep | ||
- type/bug | ||
- type/regression | ||
- critical | ||
- security | ||
exemptAssignees: true | ||
exemptMilestones: true | ||
exemptProjects: true | ||
|
||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. We do this | ||
to keep the amount of open issues to a manageable minimum. | ||
In any case, thanks for taking an interest in this software and contributing | ||
by opening the issue in the first place! | ||
closeComment: > | ||
We are closing this issue as it seems to have grown stale. If you still | ||
encounter this problem with the latest version, feel free to re-open it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Core PHP | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. | ||
# This will break your current script. | ||
# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. | ||
|
||
jobs: | ||
run: | ||
uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main | ||
with: | ||
enable_backend_testing: true | ||
|
||
backend_directory: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
# Run on: | ||
# - pushes to master, or | ||
# - PRs with a base of `master` | ||
# - which do not **only** consist of changes to .md or .less files | ||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.less' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.less' | ||
schedule: | ||
- cron: '0 0 * * 1,3,5' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze / ${{ matrix.language }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
# Learn more: | ||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Core JS | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. | ||
# This will break your current script. | ||
# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. | ||
|
||
jobs: | ||
run: | ||
uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main | ||
with: | ||
enable_bundlewatch: true | ||
enable_prettier: true | ||
enable_typescript: true | ||
|
||
frontend_directory: ./js | ||
backend_directory: . | ||
js_package_manager: yarn | ||
main_git_branch: master | ||
|
||
secrets: | ||
bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/vendor | ||
composer.lock | ||
composer.phar | ||
|
||
.DS_Store | ||
Thumbs.db | ||
tests/.phpunit.result.cache | ||
/tests/integration/tmp | ||
.vagrant | ||
.idea/* | ||
.vscode | ||
js/coverage-ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
preset: recommended | ||
|
||
enabled: | ||
- logical_not_operators_with_successor_space | ||
|
||
disabled: | ||
- align_double_arrow | ||
- blank_line_after_opening_tag | ||
- multiline_array_trailing_comma | ||
- new_with_braces | ||
- phpdoc_align | ||
- phpdoc_order | ||
- phpdoc_separation | ||
- phpdoc_types |
Oops, something went wrong.