-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
=
committed
Oct 11, 2022
0 parents
commit 4179978
Showing
36 changed files
with
4,705 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,16 @@ | ||
{ | ||
"name": "Discourse", | ||
"image": "discourse/discourse_dev:release", | ||
"workspaceMount": "source=${localWorkspaceFolder}/../..,target=/var/www/discourse,type=bind", | ||
"workspaceFolder": "/var/www/discourse", | ||
"settings": { | ||
"search.followSymlinks": false | ||
}, | ||
"postStartCommand": "sudo /sbin/boot", | ||
"extensions": ["rebornix.Ruby"], | ||
"forwardPorts": [9292], | ||
"remoteUser": "discourse", | ||
"remoteEnv": { | ||
"DISCOURSE_DEV_HOSTS": ".githubpreview.dev" | ||
} | ||
} |
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 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,16 @@ | ||
app/assets/javascripts/browser-update.js | ||
app/assets/javascripts/locales/i18n.js | ||
app/assets/javascripts/ember-addons/ | ||
app/assets/javascripts/discourse/lib/autosize.js | ||
lib/javascripts/locale/ | ||
lib/javascripts/messageformat.js | ||
lib/highlight_js/ | ||
lib/pretty_text/ | ||
plugins/**/lib/javascripts/locale | ||
public/ | ||
vendor/ | ||
app/assets/javascripts/discourse/tests/fixtures | ||
node_modules/ | ||
spec/ | ||
dist/ | ||
tmp/ |
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,48 @@ | ||
{ | ||
"extends": "eslint-config-discourse", | ||
"rules": { | ||
"discourse-ember/global-ember": 2, | ||
"eol-last": 2, | ||
"no-restricted-globals": 0 | ||
}, | ||
"globals": { | ||
"_": "off", | ||
"acceptance": "off", | ||
"asyncRender": "off", | ||
"bootbox": "off", | ||
"click": "off", | ||
"count": "off", | ||
"currentPath": "off", | ||
"currentRouteName": "off", | ||
"currentURL": "off", | ||
"currentUser": "off", | ||
"Discourse": "off", | ||
"Ember": "off", | ||
"exists": "off", | ||
"fillIn": "off", | ||
"find": "off", | ||
"getSettledState": "off", | ||
"globalThis": "readonly", | ||
"hasModule": "off", | ||
"invisible": "off", | ||
"jQuery": "off", | ||
"keyboardHelper": "off", | ||
"keyEvent": "off", | ||
"moduleFor": "off", | ||
"moduleForComponent": "off", | ||
"pauseTest": "off", | ||
"Pretender": "off", | ||
"query": "off", | ||
"queryAll": "off", | ||
"QUnit": "off", | ||
"sandbox": "off", | ||
"sinon": "off", | ||
"test": "off", | ||
"testDone": "off", | ||
"testStart": "off", | ||
"triggerEvent": "off", | ||
"visible": "off", | ||
"visit": "off", | ||
"waitUntil": "off" | ||
} | ||
} |
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,60 @@ | ||
# Only add no-op commits to this file | ||
# To prevent these commits to show in git blame | ||
# git config blame.ignoreRevsFile .git-blame-ignore-revs | ||
|
||
# DEV: introduces prettier for es6 files | ||
03a7d532cf8f09b12573b21ef013c21100d52728 | ||
|
||
# DEV: enforces no self-closing-void-elements | ||
dafd3c3b47f116c6c1dc56cb18df614c11747733 | ||
|
||
# Rename many `.js.es6` files to `.js` | ||
032205e2029cbf82dc8f05b459fb93adf2503c60 | ||
|
||
# Rename pretty-text from es6 -> js | ||
c15056650647e8650288f973d9038500dc9cf7bb | ||
|
||
# Rename wizard from es6 -> js | ||
1ac02422011f89716ab27250d39b0e0212e03892 | ||
|
||
# DEV: enforces block-indentation of ember-template-lint rules | ||
b66b277dc44bcd2122dc21965dab209c30636214 | ||
|
||
# DEV: enforces double quotes ember-template-lint | ||
c4644c61d97c823b7dd940ffaf0967a104f4b58c | ||
|
||
# Migrate to app directory | ||
7a2e8d3ead63c7d99e1069fc7823e933f931ba85 | ||
|
||
# DEV: Fix indentation for routes.rb | ||
985900818ff985b04def6aa4c5d99c1aa6dbd45c | ||
|
||
# Add rubocop to our build. | ||
5012d46cbd3bcf79b7351f7d2d41003496a796c5 | ||
|
||
# Make rubocop happy again. | ||
ad5082d969ab1f60b5c5b1e89a616117906289f8 | ||
|
||
# DEV: apply new coding standards (#10592) | ||
52672b9eabccb1184d85dc7f08062d5a7c18cb73 | ||
|
||
# DEV: apply coding standards to plugins (#10594) | ||
bf88410126f73aab47b7e694e3c5b46453cec1b6 | ||
|
||
# REFACTOR: Support bundling our `admin` section as an ember addon | ||
ce3fe2f4c4ddf166949ee3cec3d9ecbf9108ab52 | ||
|
||
# REFACTOR: Move qunit tests to a different directory structure | ||
445d6ba45fe954fb7de11ce7b1392232160e2b63 | ||
|
||
# REFACTOR: Move javascript tests inside discourse app | ||
23f24bfb510edb25b18b6a0d5485270c88df9b24 | ||
|
||
# DEV: Tidy up imports. (#11364) | ||
1c2358ba162eb9f9ba9095c9afe30cf51dd85e04 | ||
|
||
# DEV: Sort imports alphabetically (#11382) | ||
bbe5d8d5cf1220165842985c0e2cd4c454d501cd | ||
|
||
# DEV: Template colocation for sidebar files | ||
95c7cdab941a56686ac5831d2a5c5eca38d780c5 |
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,29 @@ | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Treat email fixtures as binary files so CRLF are not converted to LF. | ||
*.eml binary | ||
|
||
# Explicitly declare text files we want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.yml text | ||
|
||
# Custom for Visual Studio, very unlikely, but lets keep it | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
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,64 @@ | ||
/copyright | ||
/coverage | ||
/data | ||
/log | ||
/tmp | ||
|
||
/.bundle | ||
/.env | ||
/.procfile | ||
/dump.rdb | ||
|
||
/config/discourse.conf | ||
/config/discourse.pill | ||
/config/multisite.yml | ||
# `discourse_dev` gem | ||
/config/dev.yml | ||
|
||
/public/assets | ||
/public/backups | ||
/public/csv | ||
/public/fonts | ||
/public/plugins | ||
/public/tombstone | ||
/public/uploads | ||
|
||
# Ignore the default SQLite database and db dumps | ||
*.sql | ||
*.sql.gz | ||
!/spec/fixtures/**/*.sql | ||
/db/*.sqlite3 | ||
/db/structure.sql | ||
/db/schema.rb | ||
/db/schema_cache.yml | ||
|
||
# Plugins except for the bundled ones | ||
/plugins/* | ||
!/plugins/discourse-details/ | ||
!/plugins/discourse-local-dates | ||
!/plugins/discourse-narrative-bot | ||
!/plugins/discourse-presence | ||
!/plugins/lazy-yt/ | ||
!/plugins/poll/ | ||
!/plugins/styleguide | ||
/plugins/*/auto_generated/ | ||
|
||
/spec/fixtures/plugins/my_plugin/auto_generated | ||
|
||
/vendor/bundle/* | ||
/vendor/data/GeoLite2-City.mmdb | ||
/vendor/data/GeoLite2-ASN.mmdb | ||
|
||
# Front-end | ||
dist | ||
node_modules | ||
yarn-error.log | ||
|
||
# Auto-generated plugin JS assets | ||
/app/assets/javascripts/plugins/* | ||
|
||
# Generated API documentation files | ||
openapi/* | ||
|
||
# Cached License Data Files | ||
/.licenses |
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,57 @@ | ||
sources: | ||
bundler: true | ||
allowed: | ||
- 0bsd | ||
- apache-2.0 | ||
- bsd-2-clause | ||
- bsd-3-clause | ||
- cc0-1.0 | ||
- isc | ||
- mit | ||
- ruby | ||
|
||
ignored: | ||
bundler: | ||
- rchardet # Ruby terms | ||
- strscan # Ruby | ||
|
||
reviewed: | ||
bundler: | ||
- activerecord # MIT | ||
- coderay # MIT | ||
- concurrent-ruby # MIT | ||
- css_parser # MIT | ||
- excon # MIT | ||
- faraday-em_http # MIT | ||
- faraday-em_synchrony # MIT | ||
- faraday-excon # MIT | ||
- faraday-httpclient # MIT | ||
- faraday-patron # MIT | ||
- faraday-net_http # MIT | ||
- faraday-rack # MIT | ||
- highline # GPL-2.0 OR Ruby terms | ||
- htmlentities # MIT | ||
- image_size # MIT | ||
- io-wait # Ruby terms | ||
- json # Ruby terms | ||
- jwt # MIT | ||
- kgio # LGPL-2.1+ | ||
- logstash-event # Apache-2.0 | ||
- net-http # Ruby | ||
- net-imap # Ruby | ||
- net-pop # Ruby | ||
- net-protocol # Ruby | ||
- net-smtp # Ruby | ||
- omniauth # MIT | ||
- openssl # Ruby terms | ||
- pg # Ruby terms | ||
- r2 # Apache-2.0 (Twitter) | ||
- racc # Ruby terms | ||
- raindrops # LGPL-2.1+ | ||
- rubyzip # Ruby terms | ||
- sidekiq # LGPL (Sidekiq) | ||
- tilt | ||
- timeout # Ruby | ||
- unf # BSD-2-Clause | ||
- unicorn | ||
- uri # Ruby |
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,17 @@ | ||
{ | ||
"licenses": { | ||
"blueOak": "bronze", | ||
"spdx": [ | ||
"CC0-1.0", | ||
"CC-BY-3.0", | ||
"CC-BY-4.0", | ||
"Apache-2.0 WITH LLVM-exception" | ||
] | ||
}, | ||
"packages": { | ||
"@fortawesome/fontawesome-free": "*", | ||
"ember-template-lint-plugin-discourse": "*", | ||
"squoosh": "2.0.0" | ||
}, | ||
"corrections": true | ||
} |
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 @@ | ||
engine-strict = true |
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,32 @@ | ||
app/assets/stylesheets/vendor/ | ||
plugins/**/assets/stylesheets/vendor/ | ||
plugins/**/assets/javascripts/vendor/ | ||
plugins/**/config/locales/**/*.yml | ||
plugins/**/config/*.yml | ||
package.json | ||
config/locales/**/*.yml | ||
!config/locales/**/*.en*.yml | ||
script/import_scripts/**/*.yml | ||
|
||
app/assets/javascripts/browser-update.js | ||
app/assets/javascripts/locales/i18n.js | ||
app/assets/javascripts/ember-addons/ | ||
app/assets/javascripts/discourse/lib/autosize.js | ||
lib/javascripts/locale/ | ||
lib/javascripts/messageformat.js | ||
lib/highlight_js/ | ||
plugins/**/lib/javascripts/locale | ||
public/ | ||
!/app/assets/javascripts/discourse/public | ||
vendor/ | ||
app/assets/javascripts/discourse/tests/fixtures | ||
spec/ | ||
node_modules/ | ||
dist/ | ||
tmp/ | ||
|
||
**/*.rb | ||
**/*.hbs | ||
**/*.html | ||
**/*.json | ||
**/*.md |
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 @@ | ||
{} |
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 @@ | ||
--require 'rails_helper' |
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,4 @@ | ||
--format progress | ||
--format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log | ||
--format ParallelTests::RSpec::SummaryLogger --out tmp/spec_summary.log | ||
--format ParallelTests::RSpec::FailuresLogger --out tmp/failing_specs.log |
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,9 @@ | ||
inherit_gem: | ||
rubocop-discourse: default.yml | ||
|
||
# Still work to do in ensuring we don't link old files | ||
Discourse/NoAddReferenceOrAliasesActiveRecordMigration: | ||
Enabled: false | ||
|
||
Discourse/NoResetColumnInformationInMigrations: | ||
Enabled: true |
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 @@ | ||
discourse |
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 @@ | ||
2.7.6 |
Oops, something went wrong.