diff --git a/.github/database.yml b/.github/database.yml index 54bc1ca4..8161c99e 100644 --- a/.github/database.yml +++ b/.github/database.yml @@ -5,7 +5,7 @@ default: &default password: root encoding: utf8mb4 variables: - transaction_isolation: "READ-COMMITTED" + transaction_isolation: 'READ-COMMITTED' production: <<: *default diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..d93aea19 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +/assets diff --git a/.rubocop.yml b/.rubocop.yml index fc8d65d1..e6dbb423 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,7 +3,7 @@ Layout/LineLength: Metrics/ClassLength: Exclude: - - 'test/**/*.rb' + - 'test/**/*.rb' Style/Documentation: Enabled: false @@ -13,8 +13,8 @@ Style/HashSyntax: Style/MixinUsage: Exclude: - - 'bin/setup' - - 'bin/update' + - 'bin/setup' + - 'bin/update' Style/NonNilCheck: IncludeSemanticChanges: true @@ -33,15 +33,15 @@ Style/HashAsLastArrayItem: Metrics/BlockLength: Exclude: - - 'config/environments/**/*.rb' - - 'config/routes.rb' - - 'init.rb' + - 'config/environments/**/*.rb' + - 'config/routes.rb' + - 'init.rb' Metrics/MethodLength: CountAsOne: - - array - - hash - - heredoc + - array + - hash + - heredoc AllCops: NewCops: enable diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a12f08..9fc7f689 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # 0.1.1 -* Add feedback for overlapping time entries. +- Add feedback for overlapping time entries. # 0.1.0 -* Initial release. +- Initial release. diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 486e5986..c5fdfa36 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community. Examples of behavior that contributes to a positive environment for our community include: -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the +- Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or +- The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an +standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within diff --git a/README.md b/README.md index 00c75372..55156d59 100644 --- a/README.md +++ b/README.md @@ -45,34 +45,34 @@ Administration => Roles & Permissions ```mermaid stateDiagram-v2 [*] --> CheckingSession : Start Request - + CheckingSession --> Conflict : Session Exists Conflict --> [*] : Return Conflict - + CheckingSession --> SessionCreation : No Active Session SessionCreation --> ValidatingSession : Create Session - + ValidatingSession --> IssueAssociation : Valid Session ValidatingSession --> Error : Invalid Session Error --> [*] : Return Unprocessable - + IssueAssociation --> ConnectorValidation : Issue Connector Init ConnectorValidation --> Error : Connector Invalid Error --> [*] : Return Unprocessable - + ConnectorValidation --> CheckingFinished : Connector Valid CheckingFinished --> Finalize : Session Finished CheckingFinished --> UpdateTimer : Session Active - + Finalize --> TimeEntryCreation : Mark Finished TimeEntryCreation --> Success : Create Time Entries Success --> [*] : Return Success - + UpdateTimer --> TimerUpdated : Update Session TimerUpdated --> Success : Valid Update TimerUpdated --> Error : Invalid Update Error --> [*] : Return Unprocessable - + destroy : Destroy Session destroy --> Cancel : Cancel Timer Cancel --> [*] : Return Cancel @@ -80,8 +80,8 @@ stateDiagram-v2 ## Contributing -Bug reports and pull requests are welcome on GitHub at https://github.com/renuo/redmine_tracky. -This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to +Bug reports and pull requests are welcome on GitHub at https://github.com/renuo/redmine_tracky. +This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/renuo/redmine_tracky/blob/main/CODE_OF_CONDUCT.md). ## Copyright diff --git a/assets.src/src/redmine-tracky.css b/assets.src/src/redmine-tracky.css index 22fb0b8f..7fe7b09d 100644 --- a/assets.src/src/redmine-tracky.css +++ b/assets.src/src/redmine-tracky.css @@ -1,4 +1,4 @@ -@import "flatpickr/dist/flatpickr.css"; -@import "./styles/time_sessions_table.scss"; -@import "./styles/utils.scss"; -@import "./styles/timer_container.scss"; +@import 'flatpickr/dist/flatpickr.css'; +@import './styles/time_sessions_table.scss'; +@import './styles/utils.scss'; +@import './styles/timer_container.scss'; diff --git a/assets.src/src/redmine-tracky.scss b/assets.src/src/redmine-tracky.scss index fa9fd86b..26377e7a 100644 --- a/assets.src/src/redmine-tracky.scss +++ b/assets.src/src/redmine-tracky.scss @@ -1,6 +1,6 @@ -@import "flatpickr/dist/flatpickr.css"; -@import "./styles/time_sessions_table.scss"; -@import "./styles/utils.scss"; -@import "./styles/timer_container.scss"; +@import 'flatpickr/dist/flatpickr.css'; +@import './styles/time_sessions_table.scss'; +@import './styles/utils.scss'; +@import './styles/timer_container.scss'; -@import "./styles/variables.scss"; +@import './styles/variables.scss'; diff --git a/assets.src/src/redmine-tracky/controllers/issue-completion-controller.ts b/assets.src/src/redmine-tracky/controllers/issue-completion-controller.ts index 087851a9..56df3866 100644 --- a/assets.src/src/redmine-tracky/controllers/issue-completion-controller.ts +++ b/assets.src/src/redmine-tracky/controllers/issue-completion-controller.ts @@ -47,7 +47,7 @@ export default class extends Controller { const urlParams = new URLSearchParams(window.location.search) const issueIds = urlParams.getAll('issue_ids[]') - issueIds.forEach(id => { + issueIds.forEach((id) => { const url = window.RedmineTracky.issueCompletionPath const data = { term: id, scope: 'all' }