Chore/update linter (#1355)
* chore: 🤖 Update editor config settings * chore: 🤖 Add back ember-template-lint-plugin-prettier * style: 💄 Format admin * style: 💄 Format desktop * style: 💄 Format rose * style: 💄 Format core * style: 💄 Format api
This commit is contained in:
1 parent
ebb172c46a
commit
b55c50cf64
344 files changed
+484
-456
No files matched your search
@@ -14,3 +14,6 @@ indent_size = 2
|
||||
|
||||
[*.{diff,md}]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
@@ -1,4 +1,4 @@
|
||||
import ModelAbility from "./model";
|
||||
import ModelAbility from './model';
|
||||
/**
|
||||
* Provides abilities for credential.
|
||||
*/
|
||||
@@ -12,4 +12,4 @@ export default class CredentialAbility extends ModelAbility {
|
||||
get canRead() {
|
||||
return !this.model.isUnknown && this.hasAuthorizedAction('read');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ export default class CredentialModel extends GeneratedCredentialModel {
|
||||
/**
|
||||
* All Credentials are prefixed with "cred" and are considered
|
||||
* static due to their relation with Static Credential Stores.
|
||||
*
|
||||
*
|
||||
* True if credential starts with the "cred" prefix.
|
||||
* @type {boolean}
|
||||
*/
|
||||
|
||||
@@ -1 +1 @@
|
||||
export { default } from 'api/abilities/credential';
|
||||
export { default } from 'api/abilities/credential';
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
<h2 id="title">Welcome to Ember</h2>
|
||||
|
||||
{{outlet}}
|
||||
{{outlet}}
|
||||
@@ -1 +1 @@
|
||||
index
|
||||
index
|
||||
@@ -14,7 +14,9 @@ module('Unit | Model | credential library', function (hooks) {
|
||||
assert.expect(2);
|
||||
const store = this.owner.lookup('service:store');
|
||||
const modelA = store.createRecord('credential-library', { type: 'vault' });
|
||||
const modelB = store.createRecord('credential-library', { type: 'unknown' });
|
||||
const modelB = store.createRecord('credential-library', {
|
||||
type: 'unknown',
|
||||
});
|
||||
|
||||
assert.false(modelA.isUnknown);
|
||||
assert.true(modelB.isUnknown);
|
||||
|
||||
@@ -14,3 +14,6 @@ indent_size = 2
|
||||
|
||||
[*.{diff,md}]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
@@ -14,3 +14,6 @@ indent_size = 2
|
||||
|
||||
[*.{diff,md}]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
@@ -1,10 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
extends: ['recommended', 'stylistic'],
|
||||
rules: {
|
||||
quotes: 'single',
|
||||
'self-closing-void-elements': false,
|
||||
'block-indentation': false,
|
||||
},
|
||||
plugins: ['ember-template-lint-plugin-prettier'],
|
||||
extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
|
||||
};
|
||||
@@ -6,4 +6,4 @@
|
||||
title={{t 'actions.get-topic-help'}}
|
||||
>
|
||||
<Rose::Icon @name='flight-icons/svg/help-24' @size={{@iconSize}} />
|
||||
</a>
|
||||
</a>
|
||||
@@ -10,4 +10,4 @@
|
||||
{{#if this.helpRoute}}
|
||||
<message.link @route={{this.helpRoute}}>{{t 'actions.help'}}</message.link>
|
||||
{{/if}}
|
||||
</Rose::Message>
|
||||
</Rose::Message>
|
||||
@@ -7,4 +7,4 @@
|
||||
cancel=false
|
||||
disabled=@disabled
|
||||
}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -11,4 +11,4 @@
|
||||
@showCancel={{false}}
|
||||
/>
|
||||
|
||||
</Rose::Form>
|
||||
</Rose::Form>
|
||||
@@ -29,4 +29,4 @@
|
||||
@showCancel={{false}}
|
||||
/>
|
||||
|
||||
</Rose::Form>
|
||||
</Rose::Form>
|
||||
@@ -1,3 +1,3 @@
|
||||
<span ...attributes class='image-container'>
|
||||
{{inline-svg @name}}
|
||||
</span>
|
||||
</span>
|
||||
@@ -11,4 +11,4 @@
|
||||
{{on 'click' this.toggleRefresh}}
|
||||
>
|
||||
{{yield}}
|
||||
</Rose::Button>
|
||||
</Rose::Button>
|
||||
@@ -4,4 +4,4 @@
|
||||
(fn this.accept confirmation)
|
||||
(fn this.deny confirmation)
|
||||
}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
<LoadingButton @onClick={{this.onClick}}>
|
||||
{{t 'actions.refresh'}}
|
||||
</LoadingButton>
|
||||
</LoadingButton>
|
||||
@@ -69,6 +69,7 @@
|
||||
"ember-resolver": "^8.0.3",
|
||||
"ember-source": "~3.28.4",
|
||||
"ember-template-lint": "^4.14.0",
|
||||
"ember-template-lint-plugin-prettier": "^4.0.0",
|
||||
"eslint": "^8.18.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-ember": "^10.6.1",
|
||||
@@ -77,7 +78,7 @@
|
||||
"js-bexpr": "hashicorp/js-bexpr#9b4a4b54d85eba67fdfc0990133d1518d890b1e1",
|
||||
"loader.js": "^4.7.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.4.0",
|
||||
"prettier": "^2.7.1",
|
||||
"qunit": "^2.17.1",
|
||||
"qunit-dom": "^2.0.0",
|
||||
"webpack": "5"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<h2 id='title'>Welcome to Ember</h2>
|
||||
<p>{{relative-datetime-live this.now}}</p>
|
||||
<p>{{relative-datetime-live this.now}}</p>
|
||||
@@ -14,3 +14,6 @@ indent_size = 2
|
||||
|
||||
[*.{diff,md}]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
@@ -1,17 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
extends: ['recommended', 'stylistic'],
|
||||
rules: {
|
||||
quotes: 'single',
|
||||
'self-closing-void-elements': false,
|
||||
'block-indentation': false,
|
||||
},
|
||||
plugins: ['ember-template-lint-plugin-prettier'],
|
||||
extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
|
||||
overrides: [
|
||||
{
|
||||
files: [
|
||||
'addon/components/rose/anonymous/index.hbs',
|
||||
'addon/components/rose/table/row/cell/index.hbs',
|
||||
'addon/components/rose/anonymous/index.hbs',
|
||||
],
|
||||
rules: {
|
||||
'no-yield-only': false,
|
||||
|
||||
@@ -1 +1 @@
|
||||
{{yield}}
|
||||
{{yield}}
|
||||
@@ -1,6 +1,6 @@
|
||||
<span
|
||||
...attributes
|
||||
class='rose-badge {{if @style (concat 'rose-badge-' @style)}}'
|
||||
class='rose-badge {{if @style (concat "rose-badge-" @style)}}'
|
||||
>
|
||||
{{#if @icon}}
|
||||
<Rose::Icon @name={{@icon}} @size='medium' />
|
||||
@@ -9,4 +9,4 @@
|
||||
<span class='rose-badge-body'>
|
||||
{{yield}}
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
@@ -2,10 +2,10 @@
|
||||
...attributes
|
||||
type={{if @submit 'submit' 'button'}}
|
||||
disabled={{if @disabled 'disabled'}}
|
||||
class='{{if @style (concat 'rose-button-' @style)}}
|
||||
{{if @iconLeft 'has-icon-left'}}
|
||||
{{if @iconRight 'has-icon-right'}}
|
||||
{{if @iconOnly 'has-icon-only'}}'
|
||||
class='{{if @style (concat "rose-button-" @style)}}
|
||||
{{if @iconLeft "has-icon-left"}}
|
||||
{{if @iconRight "has-icon-right"}}
|
||||
{{if @iconOnly "has-icon-only"}}'
|
||||
>
|
||||
|
||||
<span class='rose-button-wrapper'>
|
||||
@@ -25,4 +25,4 @@
|
||||
<Rose::Icon @name={{@iconRight}} @size='medium' />
|
||||
{{/if}}
|
||||
</span>
|
||||
</button>
|
||||
</button>
|
||||
@@ -29,4 +29,4 @@
|
||||
</LinkTo>
|
||||
|
||||
{{yield}}
|
||||
</article>
|
||||
</article>
|
||||
@@ -1,3 +1,3 @@
|
||||
<div ...attributes class='rose-cards'>
|
||||
{{yield (hash link=(component 'rose/card/link'))}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -3,4 +3,4 @@
|
||||
...attributes
|
||||
class='rose-codemirror-container'
|
||||
{{code-mirror value=@value onInput=@onInput options=@options}}
|
||||
></div>
|
||||
></div>
|
||||
@@ -5,4 +5,4 @@
|
||||
toolbar=(component 'rose/code-editor/toolbar' copyText=@codeValue)
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -26,4 +26,4 @@
|
||||
Copy code
|
||||
</CopyButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class='rose-dialog-body' tabindex='0'>
|
||||
{{yield}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -18,4 +18,4 @@
|
||||
<div class='rose-dialog-cover-body'>
|
||||
{{yield to='body'}}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
@@ -5,8 +5,8 @@
|
||||
...attributes
|
||||
role='dialog'
|
||||
class='rose-dialog
|
||||
{{if @style (concat 'rose-dialog-' @style)}}
|
||||
{{if @modal 'modal'}}'
|
||||
{{if @style (concat "rose-dialog-" @style)}}
|
||||
{{if @modal "modal"}}'
|
||||
id={{this.id}}
|
||||
aria-describedby={{concat 'dialog-header-' this.id}}
|
||||
{{focus-trap}}
|
||||
@@ -48,8 +48,8 @@
|
||||
...attributes
|
||||
role='dialog'
|
||||
class='rose-dialog
|
||||
{{if @style (concat 'rose-dialog-' @style)}}
|
||||
{{if @modal 'modal'}}'
|
||||
{{if @style (concat "rose-dialog-" @style)}}
|
||||
{{if @modal "modal"}}'
|
||||
>
|
||||
|
||||
{{#if @heading}}
|
||||
@@ -84,4 +84,4 @@
|
||||
|
||||
</section>
|
||||
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -3,8 +3,8 @@
|
||||
type={{if @submit 'submit' 'button'}}
|
||||
disabled={{if @disabled 'disabled'}}
|
||||
class='rose-dropdown-button
|
||||
{{if @style (concat 'rose-dropdown-button-' @style)}}
|
||||
{{if @iconOnly 'has-icon-only'}}'
|
||||
{{if @style (concat "rose-dropdown-button-" @style)}}
|
||||
{{if @iconOnly "has-icon-only"}}'
|
||||
>
|
||||
<span class='rose-dropdown-button-wrapper'>
|
||||
<span class='rose-dropdown-button-body'>
|
||||
@@ -15,4 +15,4 @@
|
||||
<Rose::Icon @name={{@iconOnly}} @size='medium' />
|
||||
{{/if}}
|
||||
</span>
|
||||
</button>
|
||||
</button>
|
||||
@@ -1,15 +1,15 @@
|
||||
<details
|
||||
...attributes
|
||||
class='rose-dropdown
|
||||
{{if @dropdownRight 'rose-dropdown-right'}}
|
||||
{{if @style (concat 'rose-dropdown-' @style)}}'
|
||||
{{if @dropdownRight "rose-dropdown-right"}}
|
||||
{{if @style (concat "rose-dropdown-" @style)}}'
|
||||
{{on-click-outside this.close}}
|
||||
>
|
||||
|
||||
<summary
|
||||
class='rose-dropdown-trigger
|
||||
{{if @iconOnly 'has-icon-only'}}
|
||||
{{if this.showCaret 'show-caret'}}'
|
||||
{{if @iconOnly "has-icon-only"}}
|
||||
{{if this.showCaret "show-caret"}}'
|
||||
title={{@text}}
|
||||
>
|
||||
|
||||
@@ -58,4 +58,4 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
</details>
|
||||
</details>
|
||||
@@ -6,4 +6,4 @@
|
||||
<dd class='rose-dropdown-value'>
|
||||
{{yield to='value'}}
|
||||
</dd>
|
||||
</dl>
|
||||
</dl>
|
||||
@@ -11,7 +11,7 @@
|
||||
@query={{@query}}
|
||||
@model={{@model}}
|
||||
class='rose-dropdown-link
|
||||
{{if @style (concat 'rose-dropdown-link-' @style)}}'
|
||||
{{if @style (concat "rose-dropdown-link-" @style)}}'
|
||||
>
|
||||
{{yield}}
|
||||
</LinkTo>
|
||||
@@ -21,7 +21,7 @@
|
||||
@route={{@route}}
|
||||
@model={{@model}}
|
||||
class='rose-dropdown-link
|
||||
{{if @style (concat 'rose-dropdown-link-' @style)}}'
|
||||
{{if @style (concat "rose-dropdown-link-" @style)}}'
|
||||
>
|
||||
{{yield}}
|
||||
</LinkTo>
|
||||
@@ -33,7 +33,7 @@
|
||||
@route={{@route}}
|
||||
@query={{@query}}
|
||||
class='rose-dropdown-link
|
||||
{{if @style (concat 'rose-dropdown-link-' @style)}}'
|
||||
{{if @style (concat "rose-dropdown-link-" @style)}}'
|
||||
>
|
||||
{{yield}}
|
||||
</LinkTo>
|
||||
@@ -42,9 +42,9 @@
|
||||
...attributes
|
||||
@route={{@route}}
|
||||
class='rose-dropdown-link
|
||||
{{if @style (concat 'rose-dropdown-link-' @style)}}'
|
||||
{{if @style (concat "rose-dropdown-link-" @style)}}'
|
||||
>
|
||||
{{yield}}
|
||||
</LinkTo>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -15,4 +15,4 @@
|
||||
{{/if}}
|
||||
|
||||
{{yield}}
|
||||
</section>
|
||||
</section>
|
||||
@@ -9,4 +9,4 @@
|
||||
{{inline-svg @logo}}
|
||||
{{/if}}
|
||||
|
||||
</LinkTo>
|
||||
</LinkTo>
|
||||
@@ -8,4 +8,4 @@
|
||||
<span class='rose-footer-copyright-text'>
|
||||
{{@text}}
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
@@ -6,4 +6,4 @@
|
||||
text=(component 'rose/anonymous' class='rose-footer-text')
|
||||
)
|
||||
}}
|
||||
</footer>
|
||||
</footer>
|
||||
@@ -1,3 +1,3 @@
|
||||
<nav class='rose-footer-nav' aria-label='footer-nav'>
|
||||
{{yield (hash link=(component 'rose/footer/nav/link'))}}
|
||||
</nav>
|
||||
</nav>
|
||||
@@ -18,4 +18,4 @@
|
||||
>
|
||||
{{yield}}
|
||||
</LinkTo>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -8,4 +8,4 @@
|
||||
v{{@version}}
|
||||
</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
</span>
|
||||
@@ -2,4 +2,4 @@
|
||||
<Rose::Button @style='secondary' {{on 'click' @enableEdit}}>
|
||||
{{@enableEditText}}
|
||||
</Rose::Button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -12,4 +12,4 @@
|
||||
{{@cancelText}}
|
||||
</Rose::Button>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -12,4 +12,4 @@
|
||||
)
|
||||
)
|
||||
}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class='rose-form-checkbox{{if @error ' error'}} {{if @inline ' inline'}}'>
|
||||
<div class='rose-form-checkbox{{if @error " error"}} {{if @inline " inline"}}'>
|
||||
|
||||
<Input
|
||||
...attributes
|
||||
@@ -9,9 +9,9 @@
|
||||
onChange={{@onChange}}
|
||||
@type='checkbox'
|
||||
@checked={{if @checked true false}}
|
||||
aria-describedby='{{if @helperText (concat 'helper-text-' this.id)}} {{if
|
||||
aria-describedby='{{if @helperText (concat "helper-text-" this.id)}} {{if
|
||||
@error
|
||||
(concat 'errors-' this.id)
|
||||
(concat "errors-" this.id)
|
||||
}}'
|
||||
/>
|
||||
|
||||
@@ -32,4 +32,4 @@
|
||||
(hash errors=(component 'rose/form/errors' id=(concat 'errors-' this.id)))
|
||||
}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class='rose-form-errors' id={{@id}} ...attributes>
|
||||
{{yield (hash message=(component 'rose/form/errors/message'))}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<p class='rose-form-error-message' ...attributes>
|
||||
<Rose::Icon @name='flight-icons/svg/x-square-16' @size='medium' />
|
||||
{{yield}}
|
||||
</p>
|
||||
</p>
|
||||
@@ -20,16 +20,16 @@
|
||||
{{/if}}
|
||||
|
||||
{{#if @helperText}}
|
||||
<Rose::Form::HelperText
|
||||
@id='helper-text-{{this.id}}'
|
||||
@error={{@error}}
|
||||
@link={{@link}}
|
||||
@linkText={{@linkText}}
|
||||
>
|
||||
{{@helperText}}
|
||||
</Rose::Form::HelperText>
|
||||
{{/if}}
|
||||
<Rose::Form::HelperText
|
||||
@id='helper-text-{{this.id}}'
|
||||
@error={{@error}}
|
||||
@link={{@link}}
|
||||
@linkText={{@linkText}}
|
||||
>
|
||||
{{@helperText}}
|
||||
</Rose::Form::HelperText>
|
||||
{{/if}}
|
||||
<div class='rose-form-fieldset-body'>
|
||||
{{yield to='body'}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
@@ -1,5 +1,5 @@
|
||||
<span
|
||||
class='rose-form-helper-text{{if @error ' error'}}'
|
||||
class='rose-form-helper-text{{if @error " error"}}'
|
||||
id={{@id}}
|
||||
...attributes
|
||||
>
|
||||
@@ -11,4 +11,4 @@
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</span>
|
||||
</span>
|
||||
@@ -39,4 +39,4 @@
|
||||
isEditable=this.isEditable
|
||||
)
|
||||
}}
|
||||
</form>
|
||||
</form>
|
||||
@@ -53,8 +53,8 @@
|
||||
@error={{@error}}
|
||||
@aria-describedby='{{if
|
||||
@helperText
|
||||
(concat 'helper-text-' this.id)
|
||||
}} {{if @error (concat 'errors-' this.id)}}'
|
||||
(concat "helper-text-" this.id)
|
||||
}} {{if @error (concat "errors-" this.id)}}'
|
||||
/>
|
||||
</div>
|
||||
{{yield
|
||||
@@ -62,4 +62,4 @@
|
||||
}}
|
||||
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -1,10 +1,10 @@
|
||||
<Input
|
||||
...attributes
|
||||
class='rose-form-input-field{{if @error ' error'}}'
|
||||
class='rose-form-input-field{{if @error " error"}}'
|
||||
id={{@id}}
|
||||
disabled={{@disabled}}
|
||||
name={{@name}}
|
||||
@type={{@type}}
|
||||
@value={{@value}}
|
||||
aria-describedby={{@aria-describedby}}
|
||||
/>
|
||||
/>
|
||||
@@ -1,3 +1,3 @@
|
||||
<label class='rose-form-label{{if @error ' error'}}' for={{@for}} ...attributes>
|
||||
<label class='rose-form-label{{if @error " error"}}' for={{@for}} ...attributes>
|
||||
{{yield}}
|
||||
</label>
|
||||
</label>
|
||||
@@ -17,4 +17,4 @@
|
||||
layout=@layout
|
||||
)
|
||||
)
|
||||
}}
|
||||
}}
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class='{{this.className}} {{if @error ' error'}} {{if @inline 'inline'}}'>
|
||||
<div class='{{this.className}} {{if @error " error"}} {{if @inline "inline"}}'>
|
||||
|
||||
<RadioButton
|
||||
...attributes
|
||||
@@ -35,4 +35,4 @@
|
||||
|
||||
{{yield}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -54,4 +54,4 @@
|
||||
}}
|
||||
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -1,6 +1,6 @@
|
||||
<XSelect
|
||||
...attributes
|
||||
class='rose-form-select-field{{if @error ' error'}}'
|
||||
class='rose-form-select-field{{if @error " error"}}'
|
||||
id={{@id}}
|
||||
name={{@name}}
|
||||
disabled={{@disabled}}
|
||||
@@ -10,4 +10,4 @@
|
||||
as |xs|
|
||||
>
|
||||
{{yield xs}}
|
||||
</XSelect>
|
||||
</XSelect>
|
||||
@@ -45,9 +45,9 @@
|
||||
@value={{@value}}
|
||||
@disabled={{@disabled}}
|
||||
@error={{@error}}
|
||||
@aria-describedby='{{if @helperText (concat 'helper-text-' this.id)}} {{if
|
||||
@aria-describedby='{{if @helperText (concat "helper-text-" this.id)}} {{if
|
||||
@error
|
||||
(concat 'errors-' this.id)
|
||||
(concat "errors-" this.id)
|
||||
}}'
|
||||
/>
|
||||
|
||||
@@ -56,4 +56,4 @@
|
||||
}}
|
||||
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -1,9 +1,9 @@
|
||||
<Textarea
|
||||
...attributes
|
||||
class='rose-form-input-field{{if @error ' error'}}'
|
||||
class='rose-form-input-field{{if @error " error"}}'
|
||||
id={{@id}}
|
||||
name={{@name}}
|
||||
disabled={{@disabled}}
|
||||
@value={{@value}}
|
||||
aria-describedby={{@aria-describedby}}
|
||||
/>
|
||||
/>
|
||||
@@ -8,4 +8,4 @@
|
||||
{{yield to='body'}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
@@ -13,4 +13,4 @@
|
||||
<h1 class='rose-header-brand-text'>{{@text}}</h1>
|
||||
{{/if}}
|
||||
|
||||
</LinkTo>
|
||||
</LinkTo>
|
||||
@@ -6,4 +6,4 @@
|
||||
nav=(component 'rose/header/nav')
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -5,4 +5,4 @@
|
||||
dropdown=(component 'rose/dropdown')
|
||||
)
|
||||
}}
|
||||
</nav>
|
||||
</nav>
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class='rose-header-utilities'>
|
||||
{{yield (hash dropdown=(component 'rose/dropdown' dropdownRight=true))}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,3 @@
|
||||
<span ...attributes class='rose-icon {{@size}}'>
|
||||
{{inline-svg @name}}
|
||||
</span>
|
||||
</span>
|
||||
@@ -1,3 +1,3 @@
|
||||
<section ...attributes class='rose-layout-centered'>
|
||||
{{yield}}
|
||||
</section>
|
||||
</section>
|
||||
@@ -8,4 +8,4 @@
|
||||
footer=(component 'rose/anonymous' class='rose-layout-global-footer')
|
||||
)
|
||||
}}
|
||||
</section>
|
||||
</section>
|
||||
@@ -12,4 +12,4 @@
|
||||
body=(component 'rose/anonymous' class='rose-layout-page-body')
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -7,4 +7,4 @@
|
||||
)
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,9 +1,9 @@
|
||||
<LinkTo
|
||||
class='rose-link-button
|
||||
{{if @style (concat 'rose-button-' @style)}}
|
||||
{{if @iconOnly 'has-icon-only'}}
|
||||
{{if @iconLeft 'has-icon-left'}}
|
||||
{{if @iconRight 'has-icon-right'}}'
|
||||
{{if @style (concat "rose-button-" @style)}}
|
||||
{{if @iconOnly "has-icon-only"}}
|
||||
{{if @iconLeft "has-icon-left"}}
|
||||
{{if @iconRight "has-icon-right"}}'
|
||||
@route={{@route}}
|
||||
...attributes
|
||||
>
|
||||
@@ -24,4 +24,4 @@
|
||||
<Rose::Icon @name={{@iconRight}} @size='medium' />
|
||||
{{/if}}
|
||||
</span>
|
||||
</LinkTo>
|
||||
</LinkTo>
|
||||
@@ -1,3 +1,3 @@
|
||||
<ul class='rose-list-key-value'>
|
||||
{{yield (hash item=(component 'rose/list/key-value/item'))}}
|
||||
</ul>
|
||||
</ul>
|
||||
@@ -17,4 +17,4 @@
|
||||
)
|
||||
)
|
||||
}}
|
||||
</li>
|
||||
</li>
|
||||
@@ -25,4 +25,4 @@
|
||||
}}
|
||||
</section>
|
||||
|
||||
</article>
|
||||
</article>
|
||||
@@ -1,3 +1,3 @@
|
||||
<nav ...attributes class='rose-nav-breadcrumbs' aria-label='breadcrumbs'>
|
||||
{{yield (hash link=(component 'rose/nav/link'))}}
|
||||
</nav>
|
||||
</nav>
|
||||
@@ -6,4 +6,4 @@
|
||||
<LinkTo @route={{@route}} class='rose-nav-link'>
|
||||
{{yield}}
|
||||
</LinkTo>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -14,4 +14,4 @@
|
||||
|
||||
{{yield (hash link=(component 'rose/nav/link'))}}
|
||||
|
||||
</nav>
|
||||
</nav>
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
{{yield (hash link=(component 'rose/nav/link'))}}
|
||||
|
||||
</nav>
|
||||
</nav>
|
||||
@@ -1,6 +1,6 @@
|
||||
<section
|
||||
...attributes
|
||||
class='rose-notification is-{{@style}}{{if @dismiss ' is-dismissible'}}'
|
||||
class='rose-notification is-{{@style}}{{if @dismiss " is-dismissible"}}'
|
||||
role='alert'
|
||||
aria-live={{if @dismiss 'assertive'}}
|
||||
aria-atomic='true'
|
||||
@@ -33,4 +33,4 @@
|
||||
</button>
|
||||
{{/if}}
|
||||
|
||||
</section>
|
||||
</section>
|
||||
@@ -1 +1 @@
|
||||
<hr class='rose-separator' />
|
||||
<hr class='rose-separator' />
|
||||
@@ -1,6 +1,6 @@
|
||||
<table
|
||||
...attributes
|
||||
class='rose-table {{if @style (concat 'rose-table-' @style)}}'
|
||||
class='rose-table {{if @style (concat "rose-table-" @style)}}'
|
||||
>
|
||||
{{#if @caption}}
|
||||
<caption>{{@caption}}</caption>
|
||||
@@ -19,4 +19,4 @@
|
||||
)
|
||||
)
|
||||
}}
|
||||
</table>
|
||||
</table>
|
||||
@@ -1 +1 @@
|
||||
{{yield}}
|
||||
{{yield}}
|
||||
@@ -1,8 +1,8 @@
|
||||
<tr
|
||||
...attributes
|
||||
class='rose-table-row
|
||||
{{if @hidden (concat 'rose-table-row-visually-hidden')}}
|
||||
{{if @style (concat 'rose-table-row-' @style)}}'
|
||||
{{if @hidden (concat "rose-table-row-visually-hidden")}}
|
||||
{{if @style (concat "rose-table-row-" @style)}}'
|
||||
>
|
||||
{{yield
|
||||
(hash
|
||||
@@ -10,4 +10,4 @@
|
||||
headerCell=(component 'rose/table/row/cell' tagName='th')
|
||||
)
|
||||
}}
|
||||
</tr>
|
||||
</tr>
|
||||
@@ -1 +1 @@
|
||||
{{yield (hash row=(component 'rose/table/row'))}}
|
||||
{{yield (hash row=(component 'rose/table/row'))}}
|
||||
@@ -9,4 +9,4 @@
|
||||
)
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,3 @@
|
||||
<span class='rose-toolbar-info'>
|
||||
{{yield}}
|
||||
</span>
|
||||
</span>
|
||||
@@ -85,6 +85,7 @@
|
||||
"ember-resolver": "^8.0.3",
|
||||
"ember-source": "~3.28.4",
|
||||
"ember-template-lint": "^4.14.0",
|
||||
"ember-template-lint-plugin-prettier": "^4.0.0",
|
||||
"eslint": "^8.18.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-ember": "^10.6.1",
|
||||
@@ -93,7 +94,7 @@
|
||||
"jest": "^27.4.7",
|
||||
"loader.js": "^4.7.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.4.0",
|
||||
"prettier": "^2.7.1",
|
||||
"qunit": "^2.17.1",
|
||||
"qunit-dom": "^2.0.0",
|
||||
"react": "^16",
|
||||
|
||||
@@ -1 +1 @@
|
||||
{{outlet}}
|
||||
{{outlet}}
|
||||
@@ -28,4 +28,4 @@
|
||||
</Rose::Button>
|
||||
</Rose::Form>
|
||||
</toolbar.secondary>
|
||||
</Rose::Toolbar>
|
||||
</Rose::Toolbar>
|
||||
@@ -100,4 +100,4 @@
|
||||
</Rose::Layout::Sidebar>
|
||||
|
||||
</layout.body>
|
||||
</Rose::Layout::Global>
|
||||
</Rose::Layout::Global>
|
||||
@@ -14,3 +14,6 @@ indent_size = 2
|
||||
|
||||
[*.{diff,md}]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
@@ -1,7 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
extends: ['recommended', 'stylistic'],
|
||||
plugins: ['ember-template-lint-plugin-prettier'],
|
||||
extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
|
||||
rules: {
|
||||
'no-passed-in-event-handlers': false,
|
||||
'no-bare-strings': true,
|
||||
@@ -17,9 +18,6 @@ module.exports = {
|
||||
'is-loading',
|
||||
],
|
||||
},
|
||||
quotes: 'single',
|
||||
'self-closing-void-elements': false,
|
||||
'block-indentation': false,
|
||||
'no-route-action': false,
|
||||
},
|
||||
};
|
||||
@@ -12,4 +12,4 @@
|
||||
{{t 'resources.account.actions.delete'}}
|
||||
</dropdown.button>
|
||||
</Rose::Dropdown>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -9,4 +9,4 @@
|
||||
@acknowledgeText={{t 'states.copied'}}
|
||||
>
|
||||
<code>{{@model.id}}</code>
|
||||
</Copyable>
|
||||
</Copyable>
|
||||
@@ -13,4 +13,4 @@
|
||||
</nav.link>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</Rose::Nav::Tabs>
|
||||
</Rose::Nav::Tabs>
|
||||
@@ -86,4 +86,4 @@
|
||||
{{t 'resources.auth-method.actions.delete'}}
|
||||
</dropdown.button>
|
||||
{{/if}}
|
||||
</Rose::Dropdown>
|
||||
</Rose::Dropdown>
|
||||
@@ -16,4 +16,4 @@
|
||||
@acknowledgeText={{t 'states.copied'}}
|
||||
>
|
||||
<code>{{@model.id}}</code>
|
||||
</Copyable>
|
||||
</Copyable>
|
||||
Loaded 100 of 344 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user