Skip to content

Commit

Permalink
first commit, very rough
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Apr 20, 2024
0 parents commit c60a0cc
Show file tree
Hide file tree
Showing 126 changed files with 41,324 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
221 changes: 221 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
{
"root": true,
"ignorePatterns": [
"dist/**/*",
"release/**/*",
"www/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"./tsconfig.app.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
],
"plugins": [
"unused-imports"
],
"rules": {
"unused-imports/no-unused-imports": "error",
"prefer-arrow/prefer-arrow-functions": 0,
"object-curly-spacing": ["error", "always"],
"curly": ["error", "all"],
"nonblock-statement-body-position": ["error", "below"],
"no-multiple-empty-lines": ["error"],
"brace-style": ["error", "1tbs"],
"@angular-eslint/component-class-suffix": ["error", {
"suffixes": ["Component", "Page", "Dialog"]
}],
"@angular-eslint/directive-selector": 0,
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Object": {
"message": "Avoid using the `Object` type. Did you mean `object`?"
},
"Function": {
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
},
"Boolean": {
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
},
"Number": {
"message": "Avoid using the `Number` type. Did you mean `number`?"
},
"String": {
"message": "Avoid using the `String` type. Did you mean `string`?"
},
"Symbol": {
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
}
}
}
],
"indent": "off",
"@typescript-eslint/indent": [
"error",
2,
{
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
}
}
],
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": [
"error",
"single"
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/semi": 2,
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": [
"camelCase"
]
},
{
"selector": "enumMember",
"format": [
"PascalCase"
]
},
{
"selector": "typeLike",
"format": [
"PascalCase"
]
}
],
"@typescript-eslint/member-ordering": ["error", {
"default": [
"field",
"signature",
"constructor",
"method"
]
}],

"no-console": [
"error",
{
"allow": [
"log",
"info",
"warn",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"error",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context"
]
}
],
"new-parens": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-debugger": "error",
"no-eval": "error",
"no-fallthrough": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-var": "error",
"object-shorthand": "error",
"radix": "error",
"prefer-const": "error",
"quote-props": [
"error",
"as-needed"
],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never"
}
],
"use-isnan": "error",
"yoda": "error"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
}
}
]
}
67 changes: 67 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Bug Report
description: File a bug report for unexpected or broken behavior
title: "[Bug] -"
labels: [bug]
body:
- type: checkboxes
attributes:
label: Prerequisites
description: Please answer the following questions for yourself before submitting an issue.
options:
- label: I have searched the issue tracker to check if the issue has already been reported.
required: true

- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true

- type: textarea
attributes:
label: Current behavior
description: A clear and concise description of what actually happened.
validations:
required: true

- type: textarea
attributes:
label: To Reproduce
description: |
Steps to reproduce the behaviour:
- When on x page
- Given x button is pressed
- Then error x should be present
validations:
required: true

- type: dropdown
attributes:
label: Platform
options:
- Desktop
- Web Browser - Chrome
- Web Browser - Firefox
- Web Browser - Safari
- Web Browser - Edge
- Other
validations:
required: true

- type: textarea
attributes:
label: Additional Context
description: |
Links? References? Screenshots? Anything that will give us more context about the issue you are encountering
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Feature request
description: Suggest an idea for this project
title: "[Feature] - "
labels: [enhancement]
body:
- type: checkboxes
attributes:
label: Prerequisites
description: Please answer the following questions for yourself before submitting an issue.
options:
- label: I have searched the issue tracker to check if the issue has already been reported.
required: true

- type: textarea
attributes:
label: Describe the feature and its requirements
description: A clear and concise description of the feature and its requirements. Include all technical notes and finer details, not just an overview.
validations:
required: true

- type: textarea
attributes:
label: Is your feature request related to an existing issue? Please describe.
description: A clear and concise description of why it related to these issues.
validations:
required: true

- type: textarea
attributes:
label: Is there anything stopping this feature being completed?
description: A list of any potential blockers for this feature with linked issues.
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered or encountered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# Checklist:

- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have run tests (npm run test & npm run e2e) that prove my fix is effective or that my feature works
Loading

0 comments on commit c60a0cc

Please sign in to comment.