Skip to content

Commit

Permalink
chore(.prettierignore): fix merge conflicts. fix prettier config error
Browse files Browse the repository at this point in the history
chore #484
  • Loading branch information
alejandrosaenz117 committed Jan 4, 2021
2 parents f22e7de + 79f6b44 commit baf5767
Show file tree
Hide file tree
Showing 11 changed files with 2,483 additions and 985 deletions.
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage
dist
frontend/dist
node_modules
frontend/node_modules
.prettierignore
# Ignore all HTML files:
*.html
19 changes: 19 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false
}
336 changes: 183 additions & 153 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ npm run lint
```

In case your PR is failing from style guide issues try running `npm run lint:fix` - this will fix all syntax or code style issues automatically without breaking your code.

### Prettier

Bulwark uses [Prettier](https://prettier.io/) for opinionating code formatting. It is recommended to run it from your editor. Use the following [steps](https://prettier.io/docs/en/editors.html) to integrate Prettier into your editor.
422 changes: 301 additions & 121 deletions frontend/package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"private": true,
"dependencies": {
"@angular-devkit/build-angular": "~0.1100.3",
"@angular-devkit/build-angular": "~0.1100.5",
"@angular/animations": "~11.0.0",
"@angular/cdk": "^11.0.2",
"@angular/cli": "~11.0.3",
"@angular/cdk": "^11.0.3",
"@angular/cli": "~11.0.5",
"@angular/common": "~11.0.0",
"@angular/compiler": "~11.0.0",
"@angular/compiler-cli": "^11.0.0",
Expand All @@ -23,10 +23,10 @@
"@angular/platform-browser": "~11.0.0",
"@angular/platform-browser-dynamic": "~11.0.0",
"@angular/router": "~11.0.0",
"@ng-select/ng-select": "^5.0.9",
"@ng-select/ng-select": "^5.0.14",
"chart.js": "^2.9.4",
"core-js": "^3.8.1",
"jwt-decode": "^3.1.2",
"core-js": "^3.8.2",
"ngx-markdown": "^11.0.1",
"primeflex": "^2.0.0",
"primeicons": "^4.1.0",
Expand All @@ -37,11 +37,11 @@
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1100.3",
"@angular/language-service": "~11.0.4",
"@angular-devkit/build-angular": "~0.1100.5",
"@angular/language-service": "~11.0.5",
"@types/jasmine": "~3.6.2",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^14.14.13",
"@types/node": "^14.14.19",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~6.0.0",
Expand All @@ -51,7 +51,7 @@
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~9.0.0",
"ts-node": "~9.1.1",
"tslint": "~6.1.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
<div class="container col-12 col-md-7 mx-auto">
<p-card>
<h6>Invite a User</h6>
<div id="formContent">
<form [formGroup]="inviteForm" (ngSubmit)="onSubmit(inviteForm)" id="userForm">
<input
formControlName="email"
type="text"
class="fill-width"
id="email"
class="form-control"
name="email"
placeholder="Email"
style="margin-bottom: 5px;"
/>
<input
[disabled]="!inviteForm.valid"
type="submit"
class="btn btn-success centerBtn"
value="Submit"
/>
<br>
</form>
</div>
</p-card>
</div>
<h6>Invite a User</h6>
<div id="formContent">
<form [formGroup]="inviteForm" (ngSubmit)="onSubmit(inviteForm)" id="userForm">
<div class="col-12">
<div class="p-d-flex p-flex-column">
<div class="p-d-flex p-flex-column p-flex-md-row">
<label for="inviteUser" class="col-12 col-md-4 col-form-label">User Email:</label>
<div class="col-12 col-md-8">
<input pInputText formControlName="email" type="text" class="fill-width" id="email" class="form-control"
name="email" placeholder="Email" style="margin-bottom: 5px;" />
</div>
</div>
</div>
</div>
<input pInputText [disabled]="!inviteForm.valid" type="submit" class="btn btn-primary float-right"
value="Submit" />
<br />
</form>
</div>
</p-card>
</div>
84 changes: 43 additions & 41 deletions frontend/src/app/administration/settings/settings.component.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
<div class="container col-12 col-md-7 mx-auto">
<p-card>
<h6>Application Email Settings</h6>
<div id="formContent">
<form [formGroup]="settingsForm" (ngSubmit)="onSubmit(settingsForm)" id="userForm">
<div class="col-12">
<div class="p-d-flex p-flex-column">
<div class="p-d-flex p-flex-column">
<span>
<i class="pi pi-info-circle"></i><i style="font-size: smaller;"> An app password is a
16-digit passcode that gives a
non-Google app or device permission to access your Google Account. Please follow this <a
href="https://support.google.com/mail/answer/185833?hl=en-GB">link</a> for more
information.</i>
</span></div>
<div class="p-d-flex p-flex-column p-flex-md-row">
<label for="fromEmail" class="col-12 col-md-4 col-form-label">Gmail Account:</label>
<div class="col-12 col-md-8">
<input formControlName="fromEmail" type="text" id="fromEmail" class="form-control"
name="fromEmail" placeholder="Email" style="margin-bottom: 5px;" pInputText/>
</div>
</div>
<p-card>
<h6>Application Email Settings</h6>
<div id="formContent">
<form [formGroup]="settingsForm" (ngSubmit)="onSubmit(settingsForm)" id="userForm">
<div class="col-12">
<div class="p-d-flex p-flex-column">
<div class="p-d-flex p-flex-column">
<span>
<i class="pi pi-info-circle"></i><i style="font-size: smaller;"> An app password is a
16-digit passcode that gives a
non-Google app or device permission to access your Google Account. Please follow this <a
href="https://support.google.com/mail/answer/185833?hl=en-GB">link</a> for more
information.</i>
</span>
</div>
<div class="p-d-flex p-flex-column p-flex-md-row">
<label for="fromEmail" class="col-12 col-md-4 col-form-label">Gmail Account:</label>
<div class="col-12 col-md-8">
<input pInputText formControlName="fromEmail" type="text" id="fromEmail" class="form-control"
name="fromEmail" placeholder="Email" style="margin-bottom: 5px;" pInputText />
</div>
</div>

<div class="p-d-flex p-flex-column p-flex-md-row">
<label for="fromEmailPassword" class="col-12 col-md-4 col-form-label">Gmail App Password:</label>
<div class="col-12 col-md-8">
<input formControlName="fromEmailPassword" type="password" id="fromEmailPassword"
class="form-control" name="fromEmailPassword" [placeholder]="isEdit ? '':keyPlaceholder"
style="margin-bottom: 5px;" pInputText/>
</div>
</div>
</div>
<div class="p-d-flex p-flex-column p-flex-md-row">
<label for="companyName" class="col-12 col-md-4 col-form-label">Company Name:</label>
<div class="col-12 col-md-8">
<input formControlName="companyName" type="text" id="companyName" class="form-control"
name="companyName" placeholder="Company Name" style="margin-bottom: 5px;" pInputText/>
</div>
<div class="p-d-flex p-flex-column p-flex-md-row">
<label for="fromEmailPassword" class="col-12 col-md-4 col-form-label">Gmail App Password:</label>
<div class="col-12 col-md-8">
<input pInputText formControlName="fromEmailPassword" type="password" id="fromEmailPassword"
class="form-control" name="fromEmailPassword" [placeholder]="isEdit ? '':keyPlaceholder"
style="margin-bottom: 5px;" pInputText />
</div>
</div>
<input [disabled]="isEdit ? !settingsForm.valid : false" type="submit" class="btn btn-success centerBtn"
[value]="isEdit ? 'Update' : 'Edit'" pInputText/>
</form>
</div>
<div class="p-d-flex p-flex-column p-flex-md-row">
<label for="companyName" class="col-12 col-md-4 col-form-label">Company Name:</label>
<div class="col-12 col-md-8">
<input pInputText formControlName="companyName" type="text" id="companyName" class="form-control"
name="companyName" placeholder="Company Name" style="margin-bottom: 5px;" pInputText />
</div>
</div>
</div>
</p-card>
</div>
<input pInputText [disabled]="isEdit ? !settingsForm.valid : false" type="submit"
class="btn btn-primary float-right" [value]="isEdit ? 'Update' : 'Edit'" pInputText />
<br />
</form>
</div>
</p-card>
</div>
Loading

0 comments on commit baf5767

Please sign in to comment.