simplecov-tailwindcss 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.erb-lint.yml +8 -0
  3. data/.eslintignore +1 -0
  4. data/.eslintrc.json +10 -0
  5. data/.github/ISSUE_TEMPLATE/bug_report.yml +54 -0
  6. data/.github/ISSUE_TEMPLATE/config.yml +8 -0
  7. data/.github/ISSUE_TEMPLATE/feature_request.yml +26 -0
  8. data/.github/ISSUE_TEMPLATE/question.yml +26 -0
  9. data/.github/workflows/builds.yml +91 -0
  10. data/.github/workflows/github_publish.yml +1 -1
  11. data/.github/workflows/lints.yml +49 -0
  12. data/.github/workflows/rubygem_publish.yml +1 -1
  13. data/.github/workflows/tests.yml +16 -12
  14. data/.gitignore +1 -0
  15. data/.markdownlint.yml +18 -18
  16. data/.prettierignore +0 -1
  17. data/.prettierrc.json +12 -0
  18. data/.rubocop.yml +4935 -649
  19. data/.ruby-version +1 -1
  20. data/CHANGELOG.md +16 -0
  21. data/CODE_OF_CONDUCT.md +11 -11
  22. data/CONTRIBUTING.md +25 -25
  23. data/Gemfile +12 -9
  24. data/README.md +16 -15
  25. data/dist/app.css +3 -3
  26. data/dist/app.js +10 -10
  27. data/dist/scripts/controllers/darktheme_controller.js +13 -16
  28. data/dist/scripts/controllers/navigation_controller.js +9 -13
  29. data/dist/scripts/controllers/search_controller.js +48 -61
  30. data/dist/scripts/controllers/slideover_controller.js +11 -24
  31. data/dist/scripts/timeago.js +2 -2
  32. data/lib/simplecov-tailwindcss/version.rb +1 -1
  33. data/lib/simplecov-tailwindcss.rb +67 -51
  34. data/package.json +60 -55
  35. data/public/application.css +1 -1
  36. data/simplecov-tailwindcss.gemspec +23 -23
  37. data/tailwind.config.js +7 -7
  38. data/test/simplecov-tailwindcss/simplecov_tailwindcss_test.rb +2 -2
  39. data/views/dialog.erb +75 -29
  40. data/views/file_detail.erb +57 -56
  41. data/views/group_page.erb +2 -2
  42. data/views/main.erb +8 -9
  43. data/views/stat_card.erb +1 -1
  44. data/yarn.lock +814 -5
  45. metadata +12 -7
  46. data/.eslintrc.js +0 -91
  47. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  48. data/.github/ISSUE_TEMPLATE/feature-request.md +0 -20
  49. data/.github/ISSUE_TEMPLATE/question.md +0 -10
  50. data/.prettierrc +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef666413e8aa6afc530cdae3a5143cfb707e926ca1a4086d11a0f2972b89dc17
4
- data.tar.gz: d67937d8eb29dca65a52e517a64be6a984ada260831d21797d555f27aabf7b13
3
+ metadata.gz: ba8412b8aa8af8aa83b143e207adea5f74bab35dbda197d915187077fc61643e
4
+ data.tar.gz: 5a8b3a33330fa72c7cd2c2a9832d5497e16b64337b07ffc087f87e310b7a78a5
5
5
  SHA512:
6
- metadata.gz: c0634cd6d8f1bf3277267d0aec3bfb8abef47ae6a71a046c33eacaea003b62690d724fd49a40bb36ded8aa35fd118491864932eb83fe9a33d1f75f03bc5e450a
7
- data.tar.gz: 0b999e3ce95c646992bd84cc5ba26062d48d55b724b09a7b3576fda900e7ef9d728160b8a9b8832e2b096bed2fd81fe00a3dea234900da87bd6b9cb126d48ec6
6
+ metadata.gz: 9b2f34f91019709490735b6aef0ef8bf29de1d39feb6b74832f9c0c6d8b7261bba82a991837566954fbf60fd667cb21e8ef903e225547ea66c62658c781fdb2d
7
+ data.tar.gz: caf720c63233963b5fcdd1a66e4ae31bdda2e66bda69d2f98f6a7e0068c5323f6371763f6422c05272d09db0979a504aa2d6158e286598e0fef913e95f6e7ff0
data/.erb-lint.yml ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ glob: '**/*.erb'
3
+ exclude:
4
+ - '**/vendor/**/*'
5
+ - '**/node_modules/**/*'
6
+ linters:
7
+ ErbSafety:
8
+ enabled: true
data/.eslintignore CHANGED
@@ -1 +1,2 @@
1
1
  node_modules/*
2
+ public/
data/.eslintrc.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "parser": "@babel/eslint-parser",
3
+ "parserOptions": { "requireConfigFile": "false" },
4
+ "rules": {
5
+ "indent": ["error", 2],
6
+ "linebreak-style": ["error", "unix"],
7
+ "quotes": ["error", "single"],
8
+ "semi": ["error", "never"]
9
+ }
10
+ }
@@ -0,0 +1,54 @@
1
+ name: Bug Report
2
+ description: File a bug report
3
+ title: '[Bug]: '
4
+ labels: ['bug', 'triage']
5
+ assignees:
6
+ - chiefpansancolt
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ Thanks for taking the time to fill out this bug report!
12
+ - type: textarea
13
+ id: what-happened
14
+ attributes:
15
+ label: What happened?
16
+ description: Also tell us, what did you expect to happen?
17
+ placeholder: Tell us what you see!
18
+ value: 'A bug happened!'
19
+ validations:
20
+ required: true
21
+ - type: dropdown
22
+ id: version
23
+ attributes:
24
+ label: Version
25
+ description: What version of our software are you running?
26
+ options:
27
+ - 2.0.0
28
+ - 1.0.0
29
+ validations:
30
+ required: true
31
+ - type: dropdown
32
+ id: browsers
33
+ attributes:
34
+ label: What browsers are you seeing the problem on?
35
+ multiple: true
36
+ options:
37
+ - Firefox
38
+ - Chrome
39
+ - Safari
40
+ - Microsoft Edge
41
+ - type: textarea
42
+ id: logs
43
+ attributes:
44
+ label: Relevant log output
45
+ description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
46
+ render: shell
47
+ - type: checkboxes
48
+ id: terms
49
+ attributes:
50
+ label: Code of Conduct
51
+ description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/chiefpansancolt/simplecov-tailwindcss/blob/main/CODE_OF_CONDUCT.md)
52
+ options:
53
+ - label: I agree to follow this project's Code of Conduct
54
+ required: true
@@ -0,0 +1,8 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: GitHub Community Support
4
+ url: https://github.community/
5
+ about: Please ask and answer questions here.
6
+ - name: GitHub Security Bug Bounty
7
+ url: https://bounty.github.com/
8
+ about: Please report security vulnerabilities here.
@@ -0,0 +1,26 @@
1
+ name: Feature Request
2
+ description: Have a feature Idea tell us about it
3
+ title: '[Enhancement]: '
4
+ labels: ['enhancement', 'triage']
5
+ assignees:
6
+ - chiefpansancolt
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ Thanks for taking the time to tell us about your idea to help make this better!
12
+ - type: textarea
13
+ attributes:
14
+ label: What is the Idea?
15
+ placeholder: Tell us what you are thinking about!
16
+ value: 'A Idea is happening!'
17
+ validations:
18
+ required: true
19
+ - type: checkboxes
20
+ id: terms
21
+ attributes:
22
+ label: Code of Conduct
23
+ description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/chiefpansancolt/simplecov-tailwindcss/blob/main/CODE_OF_CONDUCT.md)
24
+ options:
25
+ - label: I agree to follow this project's Code of Conduct
26
+ required: true
@@ -0,0 +1,26 @@
1
+ name: Question
2
+ description: Have a Question that is outside bug/feature?
3
+ title: '[Question]: '
4
+ labels: ['question', 'triage']
5
+ assignees:
6
+ - chiefpansancolt
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ Thanks for taking the time to ask a question about the project!
12
+ - type: textarea
13
+ attributes:
14
+ label: What is the Question?
15
+ placeholder: Tell us what you are thinking about!
16
+ value: 'A Question is happening!'
17
+ validations:
18
+ required: true
19
+ - type: checkboxes
20
+ id: terms
21
+ attributes:
22
+ label: Code of Conduct
23
+ description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/chiefpansancolt/simplecov-tailwindcss/blob/main/CODE_OF_CONDUCT.md)
24
+ options:
25
+ - label: I agree to follow this project's Code of Conduct
26
+ required: true
@@ -0,0 +1,91 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ permissions:
12
+ checks: write
13
+ contents: write
14
+
15
+ jobs:
16
+ run-js-build:
17
+ name: Run JS Build
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - name: Check out Git repository
22
+ uses: actions/checkout@v2
23
+
24
+ - name: Set up Node.js
25
+ uses: actions/setup-node@v3
26
+ with:
27
+ node-version: 16
28
+
29
+ - name: Install Node.js dependencies
30
+ run: yarn install
31
+
32
+ - name: Compile JS
33
+ run: yarn build:js
34
+
35
+ - name: Upload Compiled JS
36
+ uses: actions/upload-artifact@v3
37
+ with:
38
+ name: application.js
39
+ path: public/application.js
40
+
41
+ run-css-build:
42
+ name: Run CSS Build
43
+ runs-on: ubuntu-latest
44
+
45
+ steps:
46
+ - name: Check out Git repository
47
+ uses: actions/checkout@v2
48
+
49
+ - name: Set up Node.js
50
+ uses: actions/setup-node@v3
51
+ with:
52
+ node-version: 16
53
+
54
+ - name: Install Node.js dependencies
55
+ run: yarn install
56
+
57
+ - name: Compile JS
58
+ run: yarn build:css
59
+
60
+ - name: Upload Compiled CSS
61
+ uses: actions/upload-artifact@v3
62
+ with:
63
+ name: application.css
64
+ path: public/application.css
65
+
66
+ run-gem-build:
67
+ name: Run Gem Build
68
+ runs-on: ubuntu-latest
69
+
70
+ steps:
71
+ - name: Check out Git repository
72
+ uses: actions/checkout@v2
73
+
74
+ - name: Set up Ruby
75
+ uses: ruby/setup-ruby@v1
76
+ with:
77
+ ruby-version: .ruby-version
78
+
79
+ - name: Install Ruby Gem dependencies
80
+ run: |
81
+ gem install bundler -v 2.3.11
82
+ bundle install --jobs 4 --retry 3
83
+
84
+ - name: Build Gem
85
+ run: yarn gem:build
86
+
87
+ - name: Upload Compiled Gem
88
+ uses: actions/upload-artifact@v3
89
+ with:
90
+ name: simplecov-tailwindcss.gem
91
+ path: ./*.gem
@@ -13,4 +13,4 @@ jobs:
13
13
  uses: jstastny/publish-gem-to-github@master
14
14
  with:
15
15
  token: ${{ secrets.GITHUB_TOKEN }}
16
- owner: chiefpansancolt
16
+ owner: chiefpansancolt
@@ -0,0 +1,49 @@
1
+ name: Lint
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ permissions:
12
+ checks: write
13
+ contents: write
14
+
15
+ jobs:
16
+ run-linters:
17
+ name: Run linters
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - name: Check out Git repository
22
+ uses: actions/checkout@v2
23
+
24
+ - name: Set up Node.js
25
+ uses: actions/setup-node@v3
26
+ with:
27
+ node-version: 16
28
+
29
+ - name: Install Node.js dependencies
30
+ run: yarn install
31
+
32
+ - name: Set up Ruby
33
+ uses: ruby/setup-ruby@v1
34
+ with:
35
+ ruby-version: .ruby-version
36
+
37
+ - name: Install Ruby Gem dependencies
38
+ run: |
39
+ gem install bundler -v 2.3.11
40
+ bundle install --jobs 4 --retry 3
41
+
42
+ - name: Run linters
43
+ uses: wearerequired/lint-action@v2
44
+ with:
45
+ eslint: true
46
+ prettier: true
47
+ rubocop: true
48
+ erblint: true
49
+ erblint_args: '--lint-all'
@@ -18,4 +18,4 @@ jobs:
18
18
  - name: Push to rubygems.org
19
19
  run: |
20
20
  gem build *.gemspec
21
- gem push *.gem
21
+ gem push *.gem
@@ -4,7 +4,6 @@ on: [pull_request]
4
4
 
5
5
  jobs:
6
6
  ruby-test:
7
-
8
7
  runs-on: ubuntu-latest
9
8
 
10
9
  strategy:
@@ -12,15 +11,20 @@ jobs:
12
11
  ruby: [3.1.2, 3.0.4, 2.7.6, 2.6.10, 2.5.9, head]
13
12
 
14
13
  steps:
15
- - name: Checkout Code
16
- uses: actions/checkout@v1
17
- - name: Set up Ruby
18
- uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby }}
14
+ - name: Checkout Code
15
+ uses: actions/checkout@v1
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
21
20
 
22
- - name: Build and Test
23
- run: |
24
- gem install bundler
25
- bundle install --jobs 4 --retry 3
26
- bundle exec rake test
21
+ - name: Build and Test
22
+ run: |
23
+ gem install bundler -v 2.3.11
24
+ bundle install --jobs 4 --retry 3
25
+ bundle exec rake test
26
+ - name: Upload coverage results
27
+ uses: actions/upload-artifact@v3
28
+ with:
29
+ name: coverage-report
30
+ path: coverage
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
  Gemfile.lock
11
11
  yarn-error.log
12
12
  test/reports/
13
+ *.gem
data/.markdownlint.yml CHANGED
@@ -1,21 +1,21 @@
1
1
  default: true
2
2
 
3
3
  # Exclusions for deliberate/widespread violations
4
- MD001: false # Header levels should only increment by one level at a time
5
- MD002: false # First header should be a h1 header
6
- MD007: # Unordered list indentation
7
- indent: 4
8
- MD012: false # Multiple consecutive blank lines
9
- MD013: false # Line length
10
- MD014: false # Dollar signs used before commands without showing output
11
- MD019: false # Multiple spaces after hash on atx style header
12
- MD021: false # Multiple spaces inside hashes on closed atx style header
13
- MD024: false # Multiple headers with the same content
14
- MD026: false # Trailing punctuation in header
15
- MD029: false # Ordered list item prefix
16
- MD030: false # Spaces after list markers
17
- MD033: false # Allow inline HTML
18
- MD034: false # Bare URL used
19
- MD040: false # Fenced code blocks should have a language specified
20
- MD041: false # First line in file should be a top level header
21
- MD046: false # Code block style
4
+ MD001: false # Header levels should only increment by one level at a time
5
+ MD002: false # First header should be a h1 header
6
+ MD007: # Unordered list indentation
7
+ indent: 4
8
+ MD012: false # Multiple consecutive blank lines
9
+ MD013: false # Line length
10
+ MD014: false # Dollar signs used before commands without showing output
11
+ MD019: false # Multiple spaces after hash on atx style header
12
+ MD021: false # Multiple spaces inside hashes on closed atx style header
13
+ MD024: false # Multiple headers with the same content
14
+ MD026: false # Trailing punctuation in header
15
+ MD029: false # Ordered list item prefix
16
+ MD030: false # Spaces after list markers
17
+ MD033: false # Allow inline HTML
18
+ MD034: false # Bare URL used
19
+ MD040: false # Fenced code blocks should have a language specified
20
+ MD041: false # First line in file should be a top level header
21
+ MD046: false # Code block style
data/.prettierignore CHANGED
@@ -9,6 +9,5 @@ pkg/
9
9
  public/
10
10
  Gemfile.lock
11
11
  yarn.lock
12
-
13
12
  bin/
14
13
  views/
data/.prettierrc.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "semi": false,
3
+ "singleQuote": true,
4
+ "printWidth": 100,
5
+ "trailingComma": "es5",
6
+ "arrowParens": "always",
7
+ "tabWidth": 2,
8
+ "useTabs": false,
9
+ "quoteProps": "as-needed",
10
+ "jsxSingleQuote": false,
11
+ "bracketSpacing": true
12
+ }