mirror of
https://github.com/discourse/discourse-signatures.git
synced 2025-12-12 18:03:31 +00:00
DEV: Update linting config and run gjs-codemod (#89)
This commit is contained in:
parent
98a570abf4
commit
def8ece32c
@ -1,3 +1,4 @@
|
||||
< 3.5.0.beta5-dev: 9834dba01aff6644bd2fb9d1ed700854394a4bdf
|
||||
< 3.5.0.beta1-dev: 46f0eec457a4f01a60566eb31f2c0f16b83ddc01
|
||||
< 3.4.0.beta1-dev: e0f24180bbf475a0f8f836363120425d9fc2e717
|
||||
< 3.3.0.beta1-dev: 47ec4d03d96a5658f43ede013d64e41814bd5c6d
|
||||
|
||||
44
Gemfile.lock
44
Gemfile.lock
@ -14,30 +14,31 @@ GEM
|
||||
securerandom (>= 0.3)
|
||||
tzinfo (~> 2.0, >= 2.0.5)
|
||||
uri (>= 0.13.1)
|
||||
ast (2.4.2)
|
||||
base64 (0.2.0)
|
||||
benchmark (0.4.0)
|
||||
bigdecimal (3.1.9)
|
||||
ast (2.4.3)
|
||||
base64 (0.3.0)
|
||||
benchmark (0.4.1)
|
||||
bigdecimal (3.2.0)
|
||||
concurrent-ruby (1.3.5)
|
||||
connection_pool (2.5.0)
|
||||
drb (2.2.1)
|
||||
connection_pool (2.5.3)
|
||||
drb (2.2.3)
|
||||
i18n (1.14.7)
|
||||
concurrent-ruby (~> 1.0)
|
||||
json (2.10.2)
|
||||
language_server-protocol (3.17.0.4)
|
||||
json (2.12.2)
|
||||
language_server-protocol (3.17.0.5)
|
||||
lint_roller (1.1.0)
|
||||
logger (1.6.6)
|
||||
logger (1.7.0)
|
||||
minitest (5.25.5)
|
||||
parallel (1.26.3)
|
||||
parser (3.3.7.1)
|
||||
parallel (1.27.0)
|
||||
parser (3.3.8.0)
|
||||
ast (~> 2.4.1)
|
||||
racc
|
||||
prettier_print (1.2.1)
|
||||
prism (1.4.0)
|
||||
racc (1.8.1)
|
||||
rack (3.1.12)
|
||||
rack (3.1.15)
|
||||
rainbow (3.1.1)
|
||||
regexp_parser (2.10.0)
|
||||
rubocop (1.74.0)
|
||||
rubocop (1.75.8)
|
||||
json (~> 2.3)
|
||||
language_server-protocol (~> 3.17.0.2)
|
||||
lint_roller (~> 1.1.0)
|
||||
@ -45,11 +46,12 @@ GEM
|
||||
parser (>= 3.3.0.2)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
regexp_parser (>= 2.9.3, < 3.0)
|
||||
rubocop-ast (>= 1.38.0, < 2.0)
|
||||
rubocop-ast (>= 1.44.0, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 2.4.0, < 4.0)
|
||||
rubocop-ast (1.38.1)
|
||||
parser (>= 3.3.1.0)
|
||||
rubocop-ast (1.44.1)
|
||||
parser (>= 3.3.7.2)
|
||||
prism (~> 1.4)
|
||||
rubocop-capybara (2.22.1)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (~> 1.72, >= 1.72.1)
|
||||
@ -65,13 +67,13 @@ GEM
|
||||
rubocop-factory_bot (2.27.1)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (~> 1.72, >= 1.72.1)
|
||||
rubocop-rails (2.30.3)
|
||||
rubocop-rails (2.32.0)
|
||||
activesupport (>= 4.2.0)
|
||||
lint_roller (~> 1.1)
|
||||
rack (>= 1.1)
|
||||
rubocop (>= 1.72.1, < 2.0)
|
||||
rubocop-ast (>= 1.38.0, < 2.0)
|
||||
rubocop-rspec (3.5.0)
|
||||
rubocop (>= 1.75.0, < 2.0)
|
||||
rubocop-ast (>= 1.44.0, < 2.0)
|
||||
rubocop-rspec (3.6.0)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (~> 1.72, >= 1.72.1)
|
||||
rubocop-rspec_rails (2.31.0)
|
||||
@ -97,4 +99,4 @@ DEPENDENCIES
|
||||
syntax_tree
|
||||
|
||||
BUNDLED WITH
|
||||
2.6.6
|
||||
2.6.9
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
import Component, { Input } from "@ember/component";
|
||||
import { classNames, tagName } from "@ember-decorators/component";
|
||||
import DEditor from "discourse/components/d-editor";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
@tagName("div")
|
||||
@classNames("user-custom-preferences-outlet", "signature-preferences")
|
||||
export default class SignaturePreferences extends Component {
|
||||
<template>
|
||||
{{#if this.siteSettings.signatures_enabled}}
|
||||
<div class="control-group signatures">
|
||||
<label class="control-label">{{i18n
|
||||
"signatures.enable_signatures"
|
||||
}}</label>
|
||||
<div class="controls">
|
||||
<label class="checkbox-label">
|
||||
<Input @type="checkbox" @checked={{this.model.see_signatures}} />
|
||||
{{i18n "signatures.show_signatures"}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group signatures">
|
||||
<label class="control-label">{{i18n "signatures.my_signature"}}</label>
|
||||
{{#if this.siteSettings.signatures_advanced_mode}}
|
||||
<DEditor
|
||||
@value={{this.model.custom_fields.signature_raw}}
|
||||
@showUploadModal="showUploadModal"
|
||||
/>
|
||||
{{else}}
|
||||
<Input
|
||||
@type="text"
|
||||
class="input-xxlarge"
|
||||
placeholder={{i18n "signatures.signature_placeholder"}}
|
||||
@value={{this.model.custom_fields.signature_url}}
|
||||
/>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</template>
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
{{#if this.siteSettings.signatures_enabled}}
|
||||
<div class="control-group signatures">
|
||||
<label class="control-label">{{i18n "signatures.enable_signatures"}}</label>
|
||||
<div class="controls">
|
||||
<label class="checkbox-label">
|
||||
<Input @type="checkbox" @checked={{this.model.see_signatures}} />
|
||||
{{i18n "signatures.show_signatures"}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group signatures">
|
||||
<label class="control-label">{{i18n "signatures.my_signature"}}</label>
|
||||
{{#if this.siteSettings.signatures_advanced_mode}}
|
||||
<DEditor
|
||||
@value={{this.model.custom_fields.signature_raw}}
|
||||
@showUploadModal="showUploadModal"
|
||||
/>
|
||||
{{else}}
|
||||
<Input
|
||||
@type="text"
|
||||
class="input-xxlarge"
|
||||
placeholder={{i18n "signatures.signature_placeholder"}}
|
||||
@value={{this.model.custom_fields.signature_url}}
|
||||
/>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
@ -1,11 +1,11 @@
|
||||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@discourse/lint-configs": "2.11.1",
|
||||
"ember-template-lint": "7.0.1",
|
||||
"eslint": "9.22.0",
|
||||
"@discourse/lint-configs": "2.23.0",
|
||||
"ember-template-lint": "7.7.0",
|
||||
"eslint": "9.28.0",
|
||||
"prettier": "3.5.3",
|
||||
"stylelint": "16.16.0"
|
||||
"stylelint": "16.20.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 22",
|
||||
|
||||
872
pnpm-lock.yaml
generated
872
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user